autotool.patch 2.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353
  1. older libtool is unecessary checking for c++
  2. * remove sample and test subdirs from Makefile.am
  3. * regen autotool infrastruture via
  4. "libtoolize; autoregen -vif; rm -rf automa4te"
  5. * add fstack-protector patch manually
  6. diff -Nur libevent-1.3.orig/aclocal.m4 libevent-1.3/aclocal.m4
  7. --- libevent-1.3.orig/aclocal.m4 2007-02-16 01:52:03.000000000 +0100
  8. +++ libevent-1.3/aclocal.m4 2011-02-17 17:08:15.673558570 +0100
  9. @@ -1,7 +1,7 @@
  10. -# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  11. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  12. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13. -# 2005 Free Software Foundation, Inc.
  14. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15. # This file is free software; the Free Software Foundation
  16. # gives unlimited permission to copy and/or distribute it,
  17. # with or without modifications, as long as this notice is preserved.
  18. @@ -11,103 +11,196 @@
  19. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  20. # PARTICULAR PURPOSE.
  21. +m4_ifndef([AC_AUTOCONF_VERSION],
  22. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  23. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  24. +[m4_warning([this file was generated for autoconf 2.65.
  25. +You have another version of autoconf. It may work, but is not guaranteed to.
  26. +If you have problems, you may need to regenerate the build system entirely.
  27. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  28. +
  29. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  30. +#
  31. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  32. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  33. +# Written by Gordon Matzigkeit, 1996
  34. +#
  35. +# This file is free software; the Free Software Foundation gives
  36. +# unlimited permission to copy and/or distribute it, with or without
  37. +# modifications, as long as this notice is preserved.
  38. +
  39. +m4_define([_LT_COPYING], [dnl
  40. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  41. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  42. +# Written by Gordon Matzigkeit, 1996
  43. +#
  44. +# This file is part of GNU Libtool.
  45. +#
  46. +# GNU Libtool is free software; you can redistribute it and/or
  47. +# modify it under the terms of the GNU General Public License as
  48. +# published by the Free Software Foundation; either version 2 of
  49. +# the License, or (at your option) any later version.
  50. +#
  51. +# As a special exception to the GNU General Public License,
  52. +# if you distribute this file as part of a program or library that
  53. +# is built using GNU Libtool, you may include this file under the
  54. +# same distribution terms that you use for the rest of that program.
  55. +#
  56. +# GNU Libtool is distributed in the hope that it will be useful,
  57. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  58. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  59. +# GNU General Public License for more details.
  60. +#
  61. +# You should have received a copy of the GNU General Public License
  62. +# along with GNU Libtool; see the file COPYING. If not, a copy
  63. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  64. +# obtained by writing to the Free Software Foundation, Inc.,
  65. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  66. +])
  67. -# serial 48 AC_PROG_LIBTOOL
  68. +# serial 56 LT_INIT
  69. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  70. -# -----------------------------------------------------------
  71. -# If this macro is not defined by Autoconf, define it here.
  72. -m4_ifdef([AC_PROVIDE_IFELSE],
  73. - [],
  74. - [m4_define([AC_PROVIDE_IFELSE],
  75. - [m4_ifdef([AC_PROVIDE_$1],
  76. - [$2], [$3])])])
  77. +# LT_PREREQ(VERSION)
  78. +# ------------------
  79. +# Complain and exit if this libtool version is less that VERSION.
  80. +m4_defun([LT_PREREQ],
  81. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  82. + [m4_default([$3],
  83. + [m4_fatal([Libtool version $1 or higher is required],
  84. + 63)])],
  85. + [$2])])
  86. -# AC_PROG_LIBTOOL
  87. -# ---------------
  88. -AC_DEFUN([AC_PROG_LIBTOOL],
  89. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  90. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  91. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  92. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  93. - [AC_LIBTOOL_CXX],
  94. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  95. - ])])
  96. -dnl And a similar setup for Fortran 77 support
  97. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  98. - [AC_LIBTOOL_F77],
  99. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  100. -])])
  101. -
  102. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  103. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  104. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  105. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  106. - [AC_LIBTOOL_GCJ],
  107. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  108. - [AC_LIBTOOL_GCJ],
  109. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  110. - [AC_LIBTOOL_GCJ],
  111. - [ifdef([AC_PROG_GCJ],
  112. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  113. - ifdef([A][M_PROG_GCJ],
  114. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  115. - ifdef([LT_AC_PROG_GCJ],
  116. - [define([LT_AC_PROG_GCJ],
  117. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  118. -])])# AC_PROG_LIBTOOL
  119. +# _LT_CHECK_BUILDDIR
  120. +# ------------------
  121. +# Complain if the absolute build directory name contains unusual characters
  122. +m4_defun([_LT_CHECK_BUILDDIR],
  123. +[case `pwd` in
  124. + *\ * | *\ *)
  125. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  126. +esac
  127. +])
  128. -# _AC_PROG_LIBTOOL
  129. -# ----------------
  130. -AC_DEFUN([_AC_PROG_LIBTOOL],
  131. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  133. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  134. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  135. +# LT_INIT([OPTIONS])
  136. +# ------------------
  137. +AC_DEFUN([LT_INIT],
  138. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  139. +AC_BEFORE([$0], [LT_LANG])dnl
  140. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  141. +AC_BEFORE([$0], [LTDL_INIT])dnl
  142. +m4_require([_LT_CHECK_BUILDDIR])dnl
  143. +
  144. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  145. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  146. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  147. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  148. +dnl unless we require an AC_DEFUNed macro:
  149. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  150. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  151. +AC_REQUIRE([LTVERSION_VERSION])dnl
  152. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  153. +m4_require([_LT_PROG_LTMAIN])dnl
  154. +
  155. +dnl Parse OPTIONS
  156. +_LT_SET_OPTIONS([$0], [$1])
  157. # This can be used to rebuild libtool when needed
  158. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  159. +LIBTOOL_DEPS="$ltmain"
  160. # Always use our own libtool.
  161. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  162. AC_SUBST(LIBTOOL)dnl
  163. -# Prevent multiple expansion
  164. -define([AC_PROG_LIBTOOL], [])
  165. -])# _AC_PROG_LIBTOOL
  166. +_LT_SETUP
  167. +# Only expand once:
  168. +m4_define([LT_INIT])
  169. +])# LT_INIT
  170. +
  171. +# Old names:
  172. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  173. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  174. +dnl aclocal-1.4 backwards compatibility:
  175. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  176. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  177. -# AC_LIBTOOL_SETUP
  178. -# ----------------
  179. -AC_DEFUN([AC_LIBTOOL_SETUP],
  180. -[AC_PREREQ(2.50)dnl
  181. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  182. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  183. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  184. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  185. +
  186. +# _LT_CC_BASENAME(CC)
  187. +# -------------------
  188. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  189. +m4_defun([_LT_CC_BASENAME],
  190. +[for cc_temp in $1""; do
  191. + case $cc_temp in
  192. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  193. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  194. + \-*) ;;
  195. + *) break;;
  196. + esac
  197. +done
  198. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  199. +])
  200. +
  201. +
  202. +# _LT_FILEUTILS_DEFAULTS
  203. +# ----------------------
  204. +# It is okay to use these file commands and assume they have been set
  205. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  206. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  207. +[: ${CP="cp -f"}
  208. +: ${MV="mv -f"}
  209. +: ${RM="rm -f"}
  210. +])# _LT_FILEUTILS_DEFAULTS
  211. +
  212. +
  213. +# _LT_SETUP
  214. +# ---------
  215. +m4_defun([_LT_SETUP],
  216. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  217. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  218. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  219. +_LT_DECL([], [host], [0])dnl
  220. +_LT_DECL([], [host_os], [0])dnl
  221. +dnl
  222. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  223. +_LT_DECL([], [build], [0])dnl
  224. +_LT_DECL([], [build_os], [0])dnl
  225. +dnl
  226. AC_REQUIRE([AC_PROG_CC])dnl
  227. -AC_REQUIRE([AC_PROG_LD])dnl
  228. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  229. -AC_REQUIRE([AC_PROG_NM])dnl
  230. -
  231. +AC_REQUIRE([LT_PATH_LD])dnl
  232. +AC_REQUIRE([LT_PATH_NM])dnl
  233. +dnl
  234. AC_REQUIRE([AC_PROG_LN_S])dnl
  235. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  236. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  237. -AC_REQUIRE([AC_OBJEXT])dnl
  238. -AC_REQUIRE([AC_EXEEXT])dnl
  239. +test -z "$LN_S" && LN_S="ln -s"
  240. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  241. +dnl
  242. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  243. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  244. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  245. dnl
  246. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  247. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  248. +m4_require([_LT_CMD_RELOAD])dnl
  249. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  250. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  251. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  252. +
  253. +_LT_CONFIG_LIBTOOL_INIT([
  254. +# See if we are running on zsh, and set the options which allow our
  255. +# commands through without removal of \ escapes INIT.
  256. +if test -n "\${ZSH_VERSION+set}" ; then
  257. + setopt NO_GLOB_SUBST
  258. +fi
  259. +])
  260. +if test -n "${ZSH_VERSION+set}" ; then
  261. + setopt NO_GLOB_SUBST
  262. +fi
  263. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  264. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  265. -AC_LIBTOOL_OBJDIR
  266. +_LT_CHECK_OBJDIR
  267. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  268. -_LT_AC_PROG_ECHO_BACKSLASH
  269. +m4_require([_LT_TAG_COMPILER])dnl
  270. +_LT_PROG_ECHO_BACKSLASH
  271. case $host_os in
  272. aix3*)
  273. @@ -123,6272 +216,7776 @@
  274. # Sed substitution that helps us do robust quoting. It backslashifies
  275. # metacharacters that are still active within double-quoted strings.
  276. -Xsed='sed -e 1s/^X//'
  277. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  278. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  279. # Same as above, but do not quote variable references.
  280. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  281. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  282. # Sed substitution to delay expansion of an escaped shell variable in a
  283. # double_quote_subst'ed string.
  284. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  285. +# Sed substitution to delay expansion of an escaped single quote.
  286. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  287. +
  288. # Sed substitution to avoid accidental globbing in evaled expressions
  289. no_glob_subst='s/\*/\\\*/g'
  290. -# Constants:
  291. -rm="rm -f"
  292. -
  293. # Global variables:
  294. -default_ofile=libtool
  295. +ofile=libtool
  296. can_build_shared=yes
  297. # All known linkers require a `.a' archive for static linking (except MSVC,
  298. # which needs '.lib').
  299. libext=a
  300. -ltmain="$ac_aux_dir/ltmain.sh"
  301. -ofile="$default_ofile"
  302. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  303. -AC_CHECK_TOOL(AR, ar, false)
  304. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  305. -AC_CHECK_TOOL(STRIP, strip, :)
  306. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  307. old_CC="$CC"
  308. old_CFLAGS="$CFLAGS"
  309. # Set sane defaults for various variables
  310. -test -z "$AR" && AR=ar
  311. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  312. -test -z "$AS" && AS=as
  313. test -z "$CC" && CC=cc
  314. test -z "$LTCC" && LTCC=$CC
  315. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  316. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  317. test -z "$LD" && LD=ld
  318. -test -z "$LN_S" && LN_S="ln -s"
  319. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  320. -test -z "$NM" && NM=nm
  321. -test -z "$SED" && SED=sed
  322. -test -z "$OBJDUMP" && OBJDUMP=objdump
  323. -test -z "$RANLIB" && RANLIB=:
  324. -test -z "$STRIP" && STRIP=:
  325. test -z "$ac_objext" && ac_objext=o
  326. -# Determine commands to create old-style static archives.
  327. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  328. -old_postinstall_cmds='chmod 644 $oldlib'
  329. -old_postuninstall_cmds=
  330. -
  331. -if test -n "$RANLIB"; then
  332. - case $host_os in
  333. - openbsd*)
  334. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  335. - ;;
  336. - *)
  337. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  338. - ;;
  339. - esac
  340. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  341. -fi
  342. -
  343. _LT_CC_BASENAME([$compiler])
  344. # Only perform the check for file, if the check method requires it
  345. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  346. case $deplibs_check_method in
  347. file_magic*)
  348. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  349. - AC_PATH_MAGIC
  350. + _LT_PATH_MAGIC
  351. fi
  352. ;;
  353. esac
  354. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  355. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  356. -enable_win32_dll=yes, enable_win32_dll=no)
  357. -
  358. -AC_ARG_ENABLE([libtool-lock],
  359. - [AC_HELP_STRING([--disable-libtool-lock],
  360. - [avoid locking (might break parallel builds)])])
  361. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  362. +# Use C for the default configuration in the libtool script
  363. +LT_SUPPORTED_TAG([CC])
  364. +_LT_LANG_C_CONFIG
  365. +_LT_LANG_DEFAULT_CONFIG
  366. +_LT_CONFIG_COMMANDS
  367. +])# _LT_SETUP
  368. -AC_ARG_WITH([pic],
  369. - [AC_HELP_STRING([--with-pic],
  370. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  371. - [pic_mode="$withval"],
  372. - [pic_mode=default])
  373. -test -z "$pic_mode" && pic_mode=default
  374. -# Use C for the default configuration in the libtool script
  375. -tagname=
  376. -AC_LIBTOOL_LANG_C_CONFIG
  377. -_LT_AC_TAGCONFIG
  378. -])# AC_LIBTOOL_SETUP
  379. +# _LT_PROG_LTMAIN
  380. +# ---------------
  381. +# Note that this code is called both from `configure', and `config.status'
  382. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  383. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  384. +# so we pass a copy along to make sure it has a sensible value anyway.
  385. +m4_defun([_LT_PROG_LTMAIN],
  386. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  387. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  388. +ltmain="$ac_aux_dir/ltmain.sh"
  389. +])# _LT_PROG_LTMAIN
  390. -# _LT_AC_SYS_COMPILER
  391. -# -------------------
  392. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  393. -[AC_REQUIRE([AC_PROG_CC])dnl
  394. -# If no C compiler was specified, use CC.
  395. -LTCC=${LTCC-"$CC"}
  396. +# So that we can recreate a full libtool script including additional
  397. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  398. +# in macros and then make a single call at the end using the `libtool'
  399. +# label.
  400. -# If no C compiler flags were specified, use CFLAGS.
  401. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  402. -# Allow CC to be a program name with arguments.
  403. -compiler=$CC
  404. -])# _LT_AC_SYS_COMPILER
  405. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  406. +# ----------------------------------------
  407. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  408. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  409. +[m4_ifval([$1],
  410. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  411. + [$1
  412. +])])])
  413. +# Initialize.
  414. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  415. -# _LT_CC_BASENAME(CC)
  416. -# -------------------
  417. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  418. -AC_DEFUN([_LT_CC_BASENAME],
  419. -[for cc_temp in $1""; do
  420. - case $cc_temp in
  421. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  422. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  423. - \-*) ;;
  424. - *) break;;
  425. - esac
  426. -done
  427. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  428. +
  429. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  430. +# ------------------------------
  431. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  432. +m4_define([_LT_CONFIG_LIBTOOL],
  433. +[m4_ifval([$1],
  434. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  435. + [$1
  436. +])])])
  437. +
  438. +# Initialize.
  439. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  440. +
  441. +
  442. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  443. +# -----------------------------------------------------
  444. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  445. +[_LT_CONFIG_LIBTOOL([$1])
  446. +_LT_CONFIG_LIBTOOL_INIT([$2])
  447. ])
  448. -# _LT_COMPILER_BOILERPLATE
  449. -# ------------------------
  450. -# Check for compiler boilerplate output or warnings with
  451. -# the simple compiler test code.
  452. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  453. -[ac_outfile=conftest.$ac_objext
  454. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  455. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  456. -_lt_compiler_boilerplate=`cat conftest.err`
  457. -$rm conftest*
  458. -])# _LT_COMPILER_BOILERPLATE
  459. +# _LT_FORMAT_COMMENT([COMMENT])
  460. +# -----------------------------
  461. +# Add leading comment marks to the start of each line, and a trailing
  462. +# full-stop to the whole comment if one is not present already.
  463. +m4_define([_LT_FORMAT_COMMENT],
  464. +[m4_ifval([$1], [
  465. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  466. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  467. +)])
  468. -# _LT_LINKER_BOILERPLATE
  469. -# ----------------------
  470. -# Check for linker boilerplate output or warnings with
  471. -# the simple link test code.
  472. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  473. -[ac_outfile=conftest.$ac_objext
  474. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  475. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  476. -_lt_linker_boilerplate=`cat conftest.err`
  477. -$rm conftest*
  478. -])# _LT_LINKER_BOILERPLATE
  479. -# _LT_AC_SYS_LIBPATH_AIX
  480. -# ----------------------
  481. -# Links a minimal program and checks the executable
  482. -# for the system default hardcoded library path. In most cases,
  483. -# this is /usr/lib:/lib, but when the MPI compilers are used
  484. -# the location of the communication and MPI libs are included too.
  485. -# If we don't find anything, use the default library path according
  486. -# to the aix ld manual.
  487. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  488. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  489. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  490. -}'`
  491. -# Check for a 64-bit object if we didn't find anything.
  492. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  493. -}'`; fi],[])
  494. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  495. -])# _LT_AC_SYS_LIBPATH_AIX
  496. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  497. +# -------------------------------------------------------------------
  498. +# CONFIGNAME is the name given to the value in the libtool script.
  499. +# VARNAME is the (base) name used in the configure script.
  500. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  501. +# VARNAME. Any other value will be used directly.
  502. +m4_define([_LT_DECL],
  503. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  504. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  505. + [m4_ifval([$1], [$1], [$2])])
  506. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  507. + m4_ifval([$4],
  508. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  509. + lt_dict_add_subkey([lt_decl_dict], [$2],
  510. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  511. +])
  512. -# _LT_AC_SHELL_INIT(ARG)
  513. -# ----------------------
  514. -AC_DEFUN([_LT_AC_SHELL_INIT],
  515. -[ifdef([AC_DIVERSION_NOTICE],
  516. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  517. - [AC_DIVERT_PUSH(NOTICE)])
  518. -$1
  519. -AC_DIVERT_POP
  520. -])# _LT_AC_SHELL_INIT
  521. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  522. +# --------------------------------------------------------
  523. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  524. +
  525. +
  526. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  527. +# ------------------------------------------------
  528. +m4_define([lt_decl_tag_varnames],
  529. +[_lt_decl_filter([tagged?], [yes], $@)])
  530. +
  531. +
  532. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  533. +# ---------------------------------------------------------
  534. +m4_define([_lt_decl_filter],
  535. +[m4_case([$#],
  536. + [0], [m4_fatal([$0: too few arguments: $#])],
  537. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  538. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  539. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  540. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  541. +])
  542. -# _LT_AC_PROG_ECHO_BACKSLASH
  543. -# --------------------------
  544. -# Add some code to the start of the generated configure script which
  545. -# will find an echo command which doesn't interpret backslashes.
  546. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  547. -[_LT_AC_SHELL_INIT([
  548. -# Check that we are running under the correct shell.
  549. -SHELL=${CONFIG_SHELL-/bin/sh}
  550. -case X$ECHO in
  551. -X*--fallback-echo)
  552. - # Remove one level of quotation (which was required for Make).
  553. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  554. - ;;
  555. -esac
  556. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  557. +# --------------------------------------------------
  558. +m4_define([lt_decl_quote_varnames],
  559. +[_lt_decl_filter([value], [1], $@)])
  560. +
  561. +
  562. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  563. +# ---------------------------------------------------
  564. +m4_define([lt_decl_dquote_varnames],
  565. +[_lt_decl_filter([value], [2], $@)])
  566. +
  567. +
  568. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  569. +# ---------------------------------------------------
  570. +m4_define([lt_decl_varnames_tagged],
  571. +[m4_assert([$# <= 2])dnl
  572. +_$0(m4_quote(m4_default([$1], [[, ]])),
  573. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  574. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  575. +m4_define([_lt_decl_varnames_tagged],
  576. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  577. +
  578. +
  579. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  580. +# ------------------------------------------------
  581. +m4_define([lt_decl_all_varnames],
  582. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  583. + m4_if([$2], [],
  584. + m4_quote(lt_decl_varnames),
  585. + m4_quote(m4_shift($@))))[]dnl
  586. +])
  587. +m4_define([_lt_decl_all_varnames],
  588. +[lt_join($@, lt_decl_varnames_tagged([$1],
  589. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  590. +])
  591. -echo=${ECHO-echo}
  592. -if test "X[$]1" = X--no-reexec; then
  593. - # Discard the --no-reexec flag, and continue.
  594. - shift
  595. -elif test "X[$]1" = X--fallback-echo; then
  596. - # Avoid inline document here, it may be left over
  597. - :
  598. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  599. - # Yippee, $echo works!
  600. - :
  601. -else
  602. - # Restart under the correct shell.
  603. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  604. -fi
  605. -if test "X[$]1" = X--fallback-echo; then
  606. - # used as fallback echo
  607. - shift
  608. - cat <<EOF
  609. -[$]*
  610. -EOF
  611. - exit 0
  612. -fi
  613. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  614. +# ------------------------------------
  615. +# Quote a variable value, and forward it to `config.status' so that its
  616. +# declaration there will have the same value as in `configure'. VARNAME
  617. +# must have a single quote delimited value for this to work.
  618. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  619. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  620. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  621. -# if CDPATH is set.
  622. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  623. -if test -z "$ECHO"; then
  624. -if test "X${echo_test_string+set}" != Xset; then
  625. -# find a string as large as possible, as long as the shell can cope with it
  626. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  627. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  628. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  629. - echo_test_string=`eval $cmd` &&
  630. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  631. - then
  632. - break
  633. - fi
  634. - done
  635. -fi
  636. +# _LT_CONFIG_STATUS_DECLARATIONS
  637. +# ------------------------------
  638. +# We delimit libtool config variables with single quotes, so when
  639. +# we write them to config.status, we have to be sure to quote all
  640. +# embedded single quotes properly. In configure, this macro expands
  641. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  642. +#
  643. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  644. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  645. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  646. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  647. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  648. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  649. - test "X$echo_testing_string" = "X$echo_test_string"; then
  650. - :
  651. -else
  652. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  653. - # backslashes. This makes it impossible to quote backslashes using
  654. - # echo "$something" | sed 's/\\/\\\\/g'
  655. - #
  656. - # So, first we look for a working echo in the user's PATH.
  657. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  658. - for dir in $PATH /usr/ucb; do
  659. - IFS="$lt_save_ifs"
  660. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  661. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  662. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  663. - test "X$echo_testing_string" = "X$echo_test_string"; then
  664. - echo="$dir/echo"
  665. - break
  666. - fi
  667. - done
  668. - IFS="$lt_save_ifs"
  669. +# _LT_LIBTOOL_TAGS
  670. +# ----------------
  671. +# Output comment and list of tags supported by the script
  672. +m4_defun([_LT_LIBTOOL_TAGS],
  673. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  674. +available_tags="_LT_TAGS"dnl
  675. +])
  676. - if test "X$echo" = Xecho; then
  677. - # We didn't find a better echo, so look for alternatives.
  678. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  679. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  680. - test "X$echo_testing_string" = "X$echo_test_string"; then
  681. - # This shell has a builtin print -r that does the trick.
  682. - echo='print -r'
  683. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  684. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  685. - # If we have ksh, try running configure again with it.
  686. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  687. - export ORIGINAL_CONFIG_SHELL
  688. - CONFIG_SHELL=/bin/ksh
  689. - export CONFIG_SHELL
  690. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  691. - else
  692. - # Try using printf.
  693. - echo='printf %s\n'
  694. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  695. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  696. - test "X$echo_testing_string" = "X$echo_test_string"; then
  697. - # Cool, printf works
  698. - :
  699. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  700. - test "X$echo_testing_string" = 'X\t' &&
  701. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  702. - test "X$echo_testing_string" = "X$echo_test_string"; then
  703. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  704. - export CONFIG_SHELL
  705. - SHELL="$CONFIG_SHELL"
  706. - export SHELL
  707. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  708. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  709. - test "X$echo_testing_string" = 'X\t' &&
  710. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  711. - test "X$echo_testing_string" = "X$echo_test_string"; then
  712. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  713. - else
  714. - # maybe with a smaller string...
  715. - prev=:
  716. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  717. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  718. - then
  719. - break
  720. - fi
  721. - prev="$cmd"
  722. - done
  723. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  724. +# -----------------------------------
  725. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  726. +# expand to a commented shell variable setting:
  727. +#
  728. +# # Some comment about what VAR is for.
  729. +# visible_name=$lt_internal_name
  730. +m4_define([_LT_LIBTOOL_DECLARE],
  731. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  732. + [description])))[]dnl
  733. +m4_pushdef([_libtool_name],
  734. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  735. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  736. + [0], [_libtool_name=[$]$1],
  737. + [1], [_libtool_name=$lt_[]$1],
  738. + [2], [_libtool_name=$lt_[]$1],
  739. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  740. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  741. +])
  742. - if test "$prev" != 'sed 50q "[$]0"'; then
  743. - echo_test_string=`eval $prev`
  744. - export echo_test_string
  745. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  746. - else
  747. - # Oops. We lost completely, so just stick with echo.
  748. - echo=echo
  749. - fi
  750. - fi
  751. - fi
  752. - fi
  753. -fi
  754. -fi
  755. -# Copy echo and quote the copy suitably for passing to libtool from
  756. -# the Makefile, instead of quoting the original, which is used later.
  757. -ECHO=$echo
  758. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  759. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  760. -fi
  761. +# _LT_LIBTOOL_CONFIG_VARS
  762. +# -----------------------
  763. +# Produce commented declarations of non-tagged libtool config variables
  764. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  765. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  766. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  767. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  768. +[m4_foreach([_lt_var],
  769. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  770. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  771. -AC_SUBST(ECHO)
  772. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  773. +# _LT_LIBTOOL_TAG_VARS(TAG)
  774. +# -------------------------
  775. +m4_define([_LT_LIBTOOL_TAG_VARS],
  776. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  777. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  778. -# _LT_AC_LOCK
  779. -# -----------
  780. -AC_DEFUN([_LT_AC_LOCK],
  781. -[AC_ARG_ENABLE([libtool-lock],
  782. - [AC_HELP_STRING([--disable-libtool-lock],
  783. - [avoid locking (might break parallel builds)])])
  784. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  785. -# Some flags need to be propagated to the compiler or linker for good
  786. -# libtool support.
  787. -case $host in
  788. -ia64-*-hpux*)
  789. - # Find out which ABI we are using.
  790. - echo 'int i;' > conftest.$ac_ext
  791. - if AC_TRY_EVAL(ac_compile); then
  792. - case `/usr/bin/file conftest.$ac_objext` in
  793. - *ELF-32*)
  794. - HPUX_IA64_MODE="32"
  795. - ;;
  796. - *ELF-64*)
  797. - HPUX_IA64_MODE="64"
  798. - ;;
  799. - esac
  800. - fi
  801. - rm -rf conftest*
  802. - ;;
  803. -*-*-irix6*)
  804. - # Find out which ABI we are using.
  805. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  806. - if AC_TRY_EVAL(ac_compile); then
  807. - if test "$lt_cv_prog_gnu_ld" = yes; then
  808. - case `/usr/bin/file conftest.$ac_objext` in
  809. - *32-bit*)
  810. - LD="${LD-ld} -melf32bsmip"
  811. - ;;
  812. - *N32*)
  813. - LD="${LD-ld} -melf32bmipn32"
  814. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  815. +# ------------------------------
  816. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  817. +
  818. +
  819. +# _LT_CONFIG_COMMANDS
  820. +# -------------------
  821. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  822. +# variables for single and double quote escaping we saved from calls
  823. +# to _LT_DECL, we can put quote escaped variables declarations
  824. +# into `config.status', and then the shell code to quote escape them in
  825. +# for loops in `config.status'. Finally, any additional code accumulated
  826. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  827. +m4_defun([_LT_CONFIG_COMMANDS],
  828. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  829. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  830. + dnl instead of duplicating it all over again into config.status,
  831. + dnl then we will have config.status run $CONFIG_LT later, so it
  832. + dnl needs to know what name is stored there:
  833. + [AC_CONFIG_COMMANDS([libtool],
  834. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  835. + dnl If the libtool generation code is destined for config.status,
  836. + dnl expand the accumulated commands and init code now:
  837. + [AC_CONFIG_COMMANDS([libtool],
  838. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  839. +])#_LT_CONFIG_COMMANDS
  840. +
  841. +
  842. +# Initialize.
  843. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  844. +[
  845. +
  846. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  847. +# if CDPATH is set.
  848. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  849. +
  850. +sed_quote_subst='$sed_quote_subst'
  851. +double_quote_subst='$double_quote_subst'
  852. +delay_variable_subst='$delay_variable_subst'
  853. +_LT_CONFIG_STATUS_DECLARATIONS
  854. +LTCC='$LTCC'
  855. +LTCFLAGS='$LTCFLAGS'
  856. +compiler='$compiler_DEFAULT'
  857. +
  858. +# Quote evaled strings.
  859. +for var in lt_decl_all_varnames([[ \
  860. +]], lt_decl_quote_varnames); do
  861. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  862. + *[[\\\\\\\`\\"\\\$]]*)
  863. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  864. ;;
  865. - *64-bit*)
  866. - LD="${LD-ld} -melf64bmip"
  867. + *)
  868. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  869. ;;
  870. esac
  871. - else
  872. - case `/usr/bin/file conftest.$ac_objext` in
  873. - *32-bit*)
  874. - LD="${LD-ld} -32"
  875. - ;;
  876. - *N32*)
  877. - LD="${LD-ld} -n32"
  878. +done
  879. +
  880. +# Double-quote double-evaled strings.
  881. +for var in lt_decl_all_varnames([[ \
  882. +]], lt_decl_dquote_varnames); do
  883. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  884. + *[[\\\\\\\`\\"\\\$]]*)
  885. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  886. ;;
  887. - *64-bit*)
  888. - LD="${LD-ld} -64"
  889. + *)
  890. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  891. ;;
  892. esac
  893. - fi
  894. - fi
  895. - rm -rf conftest*
  896. - ;;
  897. -
  898. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  899. - # Find out which ABI we are using.
  900. - echo 'int i;' > conftest.$ac_ext
  901. - if AC_TRY_EVAL(ac_compile); then
  902. - case `/usr/bin/file conftest.o` in
  903. - *32-bit*)
  904. - case $host in
  905. - x86_64-*linux*)
  906. - LD="${LD-ld} -m elf_i386"
  907. - ;;
  908. - ppc64-*linux*|powerpc64-*linux*)
  909. - LD="${LD-ld} -m elf32ppclinux"
  910. - ;;
  911. - s390x-*linux*)
  912. - LD="${LD-ld} -m elf_s390"
  913. - ;;
  914. - sparc64-*linux*)
  915. - LD="${LD-ld} -m elf32_sparc"
  916. - ;;
  917. - esac
  918. - ;;
  919. - *64-bit*)
  920. - case $host in
  921. - x86_64-*linux*)
  922. - LD="${LD-ld} -m elf_x86_64"
  923. - ;;
  924. - ppc*-*linux*|powerpc*-*linux*)
  925. - LD="${LD-ld} -m elf64ppc"
  926. - ;;
  927. - s390*-*linux*)
  928. - LD="${LD-ld} -m elf64_s390"
  929. - ;;
  930. - sparc*-*linux*)
  931. - LD="${LD-ld} -m elf64_sparc"
  932. - ;;
  933. - esac
  934. - ;;
  935. - esac
  936. - fi
  937. - rm -rf conftest*
  938. - ;;
  939. -
  940. -*-*-sco3.2v5*)
  941. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  942. - SAVE_CFLAGS="$CFLAGS"
  943. - CFLAGS="$CFLAGS -belf"
  944. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  945. - [AC_LANG_PUSH(C)
  946. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  947. - AC_LANG_POP])
  948. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  949. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  950. - CFLAGS="$SAVE_CFLAGS"
  951. - fi
  952. - ;;
  953. -sparc*-*solaris*)
  954. - # Find out which ABI we are using.
  955. - echo 'int i;' > conftest.$ac_ext
  956. - if AC_TRY_EVAL(ac_compile); then
  957. - case `/usr/bin/file conftest.o` in
  958. - *64-bit*)
  959. - case $lt_cv_prog_gnu_ld in
  960. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  961. - *) LD="${LD-ld} -64" ;;
  962. - esac
  963. - ;;
  964. - esac
  965. - fi
  966. - rm -rf conftest*
  967. - ;;
  968. +done
  969. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  970. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  971. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  972. - AC_CHECK_TOOL(AS, as, false)
  973. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  974. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  975. +case \$lt_ECHO in
  976. +*'\\\[$]0 --fallback-echo"')dnl "
  977. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  978. ;;
  979. - ])
  980. esac
  981. -need_locks="$enable_libtool_lock"
  982. +_LT_OUTPUT_LIBTOOL_INIT
  983. +])
  984. -])# _LT_AC_LOCK
  985. +# LT_OUTPUT
  986. +# ---------
  987. +# This macro allows early generation of the libtool script (before
  988. +# AC_OUTPUT is called), incase it is used in configure for compilation
  989. +# tests.
  990. +AC_DEFUN([LT_OUTPUT],
  991. +[: ${CONFIG_LT=./config.lt}
  992. +AC_MSG_NOTICE([creating $CONFIG_LT])
  993. +cat >"$CONFIG_LT" <<_LTEOF
  994. +#! $SHELL
  995. +# Generated by $as_me.
  996. +# Run this file to recreate a libtool stub with the current configuration.
  997. +
  998. +lt_cl_silent=false
  999. +SHELL=\${CONFIG_SHELL-$SHELL}
  1000. +_LTEOF
  1001. +
  1002. +cat >>"$CONFIG_LT" <<\_LTEOF
  1003. +AS_SHELL_SANITIZE
  1004. +_AS_PREPARE
  1005. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1006. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1007. -# ----------------------------------------------------------------
  1008. -# Check whether the given compiler option works
  1009. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1010. -[AC_REQUIRE([LT_AC_PROG_SED])
  1011. -AC_CACHE_CHECK([$1], [$2],
  1012. - [$2=no
  1013. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1014. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1015. - lt_compiler_flag="$3"
  1016. - # Insert the option either (1) after the last *FLAGS variable, or
  1017. - # (2) before a word containing "conftest.", or (3) at the end.
  1018. - # Note that $ac_compile itself does not contain backslashes and begins
  1019. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1020. - # The option is referenced via a variable to avoid confusing sed.
  1021. - lt_compile=`echo "$ac_compile" | $SED \
  1022. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1023. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1024. - -e 's:$: $lt_compiler_flag:'`
  1025. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1026. - (eval "$lt_compile" 2>conftest.err)
  1027. - ac_status=$?
  1028. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1029. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1030. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1031. - # The compiler can only warn and ignore the option if not recognized
  1032. - # So say no if there are warnings other than the usual output.
  1033. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1034. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1035. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1036. - $2=yes
  1037. - fi
  1038. - fi
  1039. - $rm conftest*
  1040. -])
  1041. +exec AS_MESSAGE_FD>&1
  1042. +exec AS_MESSAGE_LOG_FD>>config.log
  1043. +{
  1044. + echo
  1045. + AS_BOX([Running $as_me.])
  1046. +} >&AS_MESSAGE_LOG_FD
  1047. +
  1048. +lt_cl_help="\
  1049. +\`$as_me' creates a local libtool stub from the current configuration,
  1050. +for use in further configure time tests before the real libtool is
  1051. +generated.
  1052. +
  1053. +Usage: $[0] [[OPTIONS]]
  1054. +
  1055. + -h, --help print this help, then exit
  1056. + -V, --version print version number, then exit
  1057. + -q, --quiet do not print progress messages
  1058. + -d, --debug don't remove temporary files
  1059. +
  1060. +Report bugs to <bug-libtool@gnu.org>."
  1061. +
  1062. +lt_cl_version="\
  1063. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1064. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1065. +configured by $[0], generated by m4_PACKAGE_STRING.
  1066. +
  1067. +Copyright (C) 2008 Free Software Foundation, Inc.
  1068. +This config.lt script is free software; the Free Software Foundation
  1069. +gives unlimited permision to copy, distribute and modify it."
  1070. -if test x"[$]$2" = xyes; then
  1071. - ifelse([$5], , :, [$5])
  1072. -else
  1073. - ifelse([$6], , :, [$6])
  1074. -fi
  1075. -])# AC_LIBTOOL_COMPILER_OPTION
  1076. +while test $[#] != 0
  1077. +do
  1078. + case $[1] in
  1079. + --version | --v* | -V )
  1080. + echo "$lt_cl_version"; exit 0 ;;
  1081. + --help | --h* | -h )
  1082. + echo "$lt_cl_help"; exit 0 ;;
  1083. + --debug | --d* | -d )
  1084. + debug=: ;;
  1085. + --quiet | --q* | --silent | --s* | -q )
  1086. + lt_cl_silent=: ;;
  1087. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1088. +Try \`$[0] --help' for more information.]) ;;
  1089. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1090. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1091. -# ------------------------------------------------------------
  1092. -# Check whether the given compiler option works
  1093. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1094. -[AC_CACHE_CHECK([$1], [$2],
  1095. - [$2=no
  1096. - save_LDFLAGS="$LDFLAGS"
  1097. - LDFLAGS="$LDFLAGS $3"
  1098. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1099. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1100. - # The linker can only warn and ignore the option if not recognized
  1101. - # So say no if there are warnings
  1102. - if test -s conftest.err; then
  1103. - # Append any errors to the config.log.
  1104. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1105. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1106. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1107. - if diff conftest.exp conftest.er2 >/dev/null; then
  1108. - $2=yes
  1109. - fi
  1110. - else
  1111. - $2=yes
  1112. - fi
  1113. - fi
  1114. - $rm conftest*
  1115. - LDFLAGS="$save_LDFLAGS"
  1116. -])
  1117. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1118. +Try \`$[0] --help' for more information.]) ;;
  1119. + esac
  1120. + shift
  1121. +done
  1122. -if test x"[$]$2" = xyes; then
  1123. - ifelse([$4], , :, [$4])
  1124. -else
  1125. - ifelse([$5], , :, [$5])
  1126. +if $lt_cl_silent; then
  1127. + exec AS_MESSAGE_FD>/dev/null
  1128. fi
  1129. -])# AC_LIBTOOL_LINKER_OPTION
  1130. +_LTEOF
  1131. +cat >>"$CONFIG_LT" <<_LTEOF
  1132. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1133. +_LTEOF
  1134. +
  1135. +cat >>"$CONFIG_LT" <<\_LTEOF
  1136. +AC_MSG_NOTICE([creating $ofile])
  1137. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1138. +AS_EXIT(0)
  1139. +_LTEOF
  1140. +chmod +x "$CONFIG_LT"
  1141. +
  1142. +# configure is writing to config.log, but config.lt does its own redirection,
  1143. +# appending to config.log, which fails on DOS, as config.log is still kept
  1144. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1145. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1146. +if test "$no_create" != yes; then
  1147. + lt_cl_success=:
  1148. + test "$silent" = yes &&
  1149. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1150. + exec AS_MESSAGE_LOG_FD>/dev/null
  1151. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1152. + exec AS_MESSAGE_LOG_FD>>config.log
  1153. + $lt_cl_success || AS_EXIT(1)
  1154. +fi
  1155. +])# LT_OUTPUT
  1156. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1157. -# --------------------------
  1158. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1159. -[# find the maximum length of command line arguments
  1160. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1161. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1162. - i=0
  1163. - teststring="ABCD"
  1164. - case $build_os in
  1165. - msdosdjgpp*)
  1166. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1167. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1168. - # during glob expansion). Even if it were fixed, the result of this
  1169. - # check would be larger than it should be.
  1170. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1171. - ;;
  1172. +# _LT_CONFIG(TAG)
  1173. +# ---------------
  1174. +# If TAG is the built-in tag, create an initial libtool script with a
  1175. +# default configuration from the untagged config vars. Otherwise add code
  1176. +# to config.status for appending the configuration named by TAG from the
  1177. +# matching tagged config vars.
  1178. +m4_defun([_LT_CONFIG],
  1179. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1180. +_LT_CONFIG_SAVE_COMMANDS([
  1181. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1182. + m4_if(_LT_TAG, [C], [
  1183. + # See if we are running on zsh, and set the options which allow our
  1184. + # commands through without removal of \ escapes.
  1185. + if test -n "${ZSH_VERSION+set}" ; then
  1186. + setopt NO_GLOB_SUBST
  1187. + fi
  1188. - gnu*)
  1189. - # Under GNU Hurd, this test is not required because there is
  1190. - # no limit to the length of command line arguments.
  1191. - # Libtool will interpret -1 as no limit whatsoever
  1192. - lt_cv_sys_max_cmd_len=-1;
  1193. - ;;
  1194. + cfgfile="${ofile}T"
  1195. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1196. + $RM "$cfgfile"
  1197. - cygwin* | mingw*)
  1198. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1199. - # about 5 minutes as the teststring grows exponentially.
  1200. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1201. - # you end up with a "frozen" computer, even though with patience
  1202. - # the test eventually succeeds (with a max line length of 256k).
  1203. - # Instead, let's just punt: use the minimum linelength reported by
  1204. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1205. - lt_cv_sys_max_cmd_len=8192;
  1206. - ;;
  1207. + cat <<_LT_EOF >> "$cfgfile"
  1208. +#! $SHELL
  1209. - amigaos*)
  1210. - # On AmigaOS with pdksh, this test takes hours, literally.
  1211. - # So we just punt and use a minimum line length of 8192.
  1212. - lt_cv_sys_max_cmd_len=8192;
  1213. - ;;
  1214. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1215. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1216. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1217. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1218. +#
  1219. +_LT_COPYING
  1220. +_LT_LIBTOOL_TAGS
  1221. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1222. - # This has been around since 386BSD, at least. Likely further.
  1223. - if test -x /sbin/sysctl; then
  1224. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1225. - elif test -x /usr/sbin/sysctl; then
  1226. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1227. - else
  1228. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1229. - fi
  1230. - # And add a safety zone
  1231. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1232. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1233. - ;;
  1234. +# ### BEGIN LIBTOOL CONFIG
  1235. +_LT_LIBTOOL_CONFIG_VARS
  1236. +_LT_LIBTOOL_TAG_VARS
  1237. +# ### END LIBTOOL CONFIG
  1238. - interix*)
  1239. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1240. - lt_cv_sys_max_cmd_len=196608
  1241. - ;;
  1242. +_LT_EOF
  1243. - osf*)
  1244. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1245. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1246. - # nice to cause kernel panics so lets avoid the loop below.
  1247. - # First set a reasonable default.
  1248. - lt_cv_sys_max_cmd_len=16384
  1249. - #
  1250. - if test -x /sbin/sysconfig; then
  1251. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1252. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1253. - esac
  1254. - fi
  1255. - ;;
  1256. - sco3.2v5*)
  1257. - lt_cv_sys_max_cmd_len=102400
  1258. - ;;
  1259. - sysv5* | sco5v6* | sysv4.2uw2*)
  1260. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1261. - if test -n "$kargmax"; then
  1262. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1263. - else
  1264. - lt_cv_sys_max_cmd_len=32768
  1265. - fi
  1266. - ;;
  1267. - *)
  1268. - # If test is not a shell built-in, we'll probably end up computing a
  1269. - # maximum length that is only half of the actual maximum length, but
  1270. - # we can't tell.
  1271. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1272. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1273. - = "XX$teststring") >/dev/null 2>&1 &&
  1274. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1275. - lt_cv_sys_max_cmd_len=$new_result &&
  1276. - test $i != 17 # 1/2 MB should be enough
  1277. - do
  1278. - i=`expr $i + 1`
  1279. - teststring=$teststring$teststring
  1280. - done
  1281. - teststring=
  1282. - # Add a significant safety factor because C++ compilers can tack on massive
  1283. - # amounts of additional arguments before passing them to the linker.
  1284. - # It appears as though 1/2 is a usable value.
  1285. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1286. + case $host_os in
  1287. + aix3*)
  1288. + cat <<\_LT_EOF >> "$cfgfile"
  1289. +# AIX sometimes has problems with the GCC collect2 program. For some
  1290. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1291. +# vanish in a puff of smoke.
  1292. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1293. + COLLECT_NAMES=
  1294. + export COLLECT_NAMES
  1295. +fi
  1296. +_LT_EOF
  1297. ;;
  1298. esac
  1299. -])
  1300. -if test -n $lt_cv_sys_max_cmd_len ; then
  1301. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1302. -else
  1303. - AC_MSG_RESULT(none)
  1304. -fi
  1305. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1306. +
  1307. + _LT_PROG_LTMAIN
  1308. +
  1309. + # We use sed instead of cat because bash on DJGPP gets confused if
  1310. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1311. + # text mode, it properly converts lines to CR/LF. This bash problem
  1312. + # is reportedly fixed, but why not run on old versions too?
  1313. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1314. + || (rm -f "$cfgfile"; exit 1)
  1315. +
  1316. + _LT_PROG_XSI_SHELLFNS
  1317. +
  1318. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1319. + || (rm -f "$cfgfile"; exit 1)
  1320. +
  1321. + mv -f "$cfgfile" "$ofile" ||
  1322. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1323. + chmod +x "$ofile"
  1324. +],
  1325. +[cat <<_LT_EOF >> "$ofile"
  1326. +
  1327. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1328. +dnl in a comment (ie after a #).
  1329. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1330. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1331. +# ### END LIBTOOL TAG CONFIG: $1
  1332. +_LT_EOF
  1333. +])dnl /m4_if
  1334. +],
  1335. +[m4_if([$1], [], [
  1336. + PACKAGE='$PACKAGE'
  1337. + VERSION='$VERSION'
  1338. + TIMESTAMP='$TIMESTAMP'
  1339. + RM='$RM'
  1340. + ofile='$ofile'], [])
  1341. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1342. +])# _LT_CONFIG
  1343. +
  1344. +
  1345. +# LT_SUPPORTED_TAG(TAG)
  1346. +# ---------------------
  1347. +# Trace this macro to discover what tags are supported by the libtool
  1348. +# --tag option, using:
  1349. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1350. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1351. +
  1352. +
  1353. +# C support is built-in for now
  1354. +m4_define([_LT_LANG_C_enabled], [])
  1355. +m4_define([_LT_TAGS], [])
  1356. +
  1357. +
  1358. +# LT_LANG(LANG)
  1359. +# -------------
  1360. +# Enable libtool support for the given language if not already enabled.
  1361. +AC_DEFUN([LT_LANG],
  1362. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1363. +m4_case([$1],
  1364. + [C], [_LT_LANG(C)],
  1365. + [C++], [_LT_LANG(CXX)],
  1366. + [Java], [_LT_LANG(GCJ)],
  1367. + [Fortran 77], [_LT_LANG(F77)],
  1368. + [Fortran], [_LT_LANG(FC)],
  1369. + [Windows Resource], [_LT_LANG(RC)],
  1370. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1371. + [_LT_LANG($1)],
  1372. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1373. +])# LT_LANG
  1374. -# _LT_AC_CHECK_DLFCN
  1375. +# _LT_LANG(LANGNAME)
  1376. # ------------------
  1377. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1378. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1379. -])# _LT_AC_CHECK_DLFCN
  1380. +m4_defun([_LT_LANG],
  1381. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1382. + [LT_SUPPORTED_TAG([$1])dnl
  1383. + m4_append([_LT_TAGS], [$1 ])dnl
  1384. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1385. + _LT_LANG_$1_CONFIG($1)])dnl
  1386. +])# _LT_LANG
  1387. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1388. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1389. -# ---------------------------------------------------------------------
  1390. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1391. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1392. -if test "$cross_compiling" = yes; then :
  1393. - [$4]
  1394. -else
  1395. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1396. - lt_status=$lt_dlunknown
  1397. - cat > conftest.$ac_ext <<EOF
  1398. -[#line __oline__ "configure"
  1399. -#include "confdefs.h"
  1400. +# _LT_LANG_DEFAULT_CONFIG
  1401. +# -----------------------
  1402. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1403. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1404. + [LT_LANG(CXX)],
  1405. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1406. +
  1407. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1408. + [LT_LANG(F77)],
  1409. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1410. +
  1411. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1412. + [LT_LANG(FC)],
  1413. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1414. +
  1415. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1416. +dnl pulling things in needlessly.
  1417. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1418. + [LT_LANG(GCJ)],
  1419. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1420. + [LT_LANG(GCJ)],
  1421. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1422. + [LT_LANG(GCJ)],
  1423. + [m4_ifdef([AC_PROG_GCJ],
  1424. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1425. + m4_ifdef([A][M_PROG_GCJ],
  1426. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1427. + m4_ifdef([LT_PROG_GCJ],
  1428. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1429. +
  1430. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1431. + [LT_LANG(RC)],
  1432. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1433. +])# _LT_LANG_DEFAULT_CONFIG
  1434. +
  1435. +# Obsolete macros:
  1436. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1437. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1438. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1439. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1440. +dnl aclocal-1.4 backwards compatibility:
  1441. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1442. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1443. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1444. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1445. -#if HAVE_DLFCN_H
  1446. -#include <dlfcn.h>
  1447. -#endif
  1448. -#include <stdio.h>
  1449. +# _LT_TAG_COMPILER
  1450. +# ----------------
  1451. +m4_defun([_LT_TAG_COMPILER],
  1452. +[AC_REQUIRE([AC_PROG_CC])dnl
  1453. -#ifdef RTLD_GLOBAL
  1454. -# define LT_DLGLOBAL RTLD_GLOBAL
  1455. -#else
  1456. -# ifdef DL_GLOBAL
  1457. -# define LT_DLGLOBAL DL_GLOBAL
  1458. -# else
  1459. -# define LT_DLGLOBAL 0
  1460. -# endif
  1461. -#endif
  1462. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1463. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1464. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1465. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1466. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1467. - find out it does not work in some platform. */
  1468. -#ifndef LT_DLLAZY_OR_NOW
  1469. -# ifdef RTLD_LAZY
  1470. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1471. -# else
  1472. -# ifdef DL_LAZY
  1473. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1474. -# else
  1475. -# ifdef RTLD_NOW
  1476. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1477. -# else
  1478. -# ifdef DL_NOW
  1479. -# define LT_DLLAZY_OR_NOW DL_NOW
  1480. -# else
  1481. -# define LT_DLLAZY_OR_NOW 0
  1482. -# endif
  1483. -# endif
  1484. -# endif
  1485. -# endif
  1486. -#endif
  1487. +# If no C compiler was specified, use CC.
  1488. +LTCC=${LTCC-"$CC"}
  1489. -#ifdef __cplusplus
  1490. -extern "C" void exit (int);
  1491. -#endif
  1492. +# If no C compiler flags were specified, use CFLAGS.
  1493. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1494. -void fnord() { int i=42;}
  1495. -int main ()
  1496. -{
  1497. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1498. - int status = $lt_dlunknown;
  1499. +# Allow CC to be a program name with arguments.
  1500. +compiler=$CC
  1501. +])# _LT_TAG_COMPILER
  1502. - if (self)
  1503. - {
  1504. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1505. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1506. - /* dlclose (self); */
  1507. - }
  1508. - else
  1509. - puts (dlerror ());
  1510. - exit (status);
  1511. -}]
  1512. -EOF
  1513. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1514. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1515. - lt_status=$?
  1516. - case x$lt_status in
  1517. - x$lt_dlno_uscore) $1 ;;
  1518. - x$lt_dlneed_uscore) $2 ;;
  1519. - x$lt_dlunknown|x*) $3 ;;
  1520. - esac
  1521. - else :
  1522. - # compilation failed
  1523. - $3
  1524. - fi
  1525. -fi
  1526. -rm -fr conftest*
  1527. -])# _LT_AC_TRY_DLOPEN_SELF
  1528. +# _LT_COMPILER_BOILERPLATE
  1529. +# ------------------------
  1530. +# Check for compiler boilerplate output or warnings with
  1531. +# the simple compiler test code.
  1532. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1533. +[m4_require([_LT_DECL_SED])dnl
  1534. +ac_outfile=conftest.$ac_objext
  1535. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1536. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1537. +_lt_compiler_boilerplate=`cat conftest.err`
  1538. +$RM conftest*
  1539. +])# _LT_COMPILER_BOILERPLATE
  1540. -# AC_LIBTOOL_DLOPEN_SELF
  1541. +# _LT_LINKER_BOILERPLATE
  1542. # ----------------------
  1543. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1544. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1545. -if test "x$enable_dlopen" != xyes; then
  1546. - enable_dlopen=unknown
  1547. - enable_dlopen_self=unknown
  1548. - enable_dlopen_self_static=unknown
  1549. -else
  1550. - lt_cv_dlopen=no
  1551. - lt_cv_dlopen_libs=
  1552. +# Check for linker boilerplate output or warnings with
  1553. +# the simple link test code.
  1554. +m4_defun([_LT_LINKER_BOILERPLATE],
  1555. +[m4_require([_LT_DECL_SED])dnl
  1556. +ac_outfile=conftest.$ac_objext
  1557. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1558. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1559. +_lt_linker_boilerplate=`cat conftest.err`
  1560. +$RM -r conftest*
  1561. +])# _LT_LINKER_BOILERPLATE
  1562. +# _LT_REQUIRED_DARWIN_CHECKS
  1563. +# -------------------------
  1564. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1565. case $host_os in
  1566. - beos*)
  1567. - lt_cv_dlopen="load_add_on"
  1568. - lt_cv_dlopen_libs=
  1569. - lt_cv_dlopen_self=yes
  1570. - ;;
  1571. -
  1572. - mingw* | pw32*)
  1573. - lt_cv_dlopen="LoadLibrary"
  1574. - lt_cv_dlopen_libs=
  1575. - ;;
  1576. -
  1577. - cygwin*)
  1578. - lt_cv_dlopen="dlopen"
  1579. - lt_cv_dlopen_libs=
  1580. - ;;
  1581. -
  1582. - darwin*)
  1583. - # if libdl is installed we need to link against it
  1584. - AC_CHECK_LIB([dl], [dlopen],
  1585. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1586. - lt_cv_dlopen="dyld"
  1587. - lt_cv_dlopen_libs=
  1588. - lt_cv_dlopen_self=yes
  1589. + rhapsody* | darwin*)
  1590. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1591. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1592. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1593. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1594. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1595. + _LT_DECL([], [DSYMUTIL], [1],
  1596. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1597. + _LT_DECL([], [NMEDIT], [1],
  1598. + [Tool to change global to local symbols on Mac OS X])
  1599. + _LT_DECL([], [LIPO], [1],
  1600. + [Tool to manipulate fat objects and archives on Mac OS X])
  1601. + _LT_DECL([], [OTOOL], [1],
  1602. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1603. + _LT_DECL([], [OTOOL64], [1],
  1604. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1605. +
  1606. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1607. + [lt_cv_apple_cc_single_mod=no
  1608. + if test -z "${LT_MULTI_MODULE}"; then
  1609. + # By default we will add the -single_module flag. You can override
  1610. + # by either setting the environment variable LT_MULTI_MODULE
  1611. + # non-empty at configure time, or by adding -multi_module to the
  1612. + # link flags.
  1613. + rm -rf libconftest.dylib*
  1614. + echo "int foo(void){return 1;}" > conftest.c
  1615. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1616. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1617. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1618. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1619. + _lt_result=$?
  1620. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1621. + lt_cv_apple_cc_single_mod=yes
  1622. + else
  1623. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1624. + fi
  1625. + rm -rf libconftest.dylib*
  1626. + rm -f conftest.*
  1627. + fi])
  1628. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1629. + [lt_cv_ld_exported_symbols_list],
  1630. + [lt_cv_ld_exported_symbols_list=no
  1631. + save_LDFLAGS=$LDFLAGS
  1632. + echo "_main" > conftest.sym
  1633. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1634. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1635. + [lt_cv_ld_exported_symbols_list=yes],
  1636. + [lt_cv_ld_exported_symbols_list=no])
  1637. + LDFLAGS="$save_LDFLAGS"
  1638. ])
  1639. - ;;
  1640. -
  1641. - *)
  1642. - AC_CHECK_FUNC([shl_load],
  1643. - [lt_cv_dlopen="shl_load"],
  1644. - [AC_CHECK_LIB([dld], [shl_load],
  1645. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1646. - [AC_CHECK_FUNC([dlopen],
  1647. - [lt_cv_dlopen="dlopen"],
  1648. - [AC_CHECK_LIB([dl], [dlopen],
  1649. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1650. - [AC_CHECK_LIB([svld], [dlopen],
  1651. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1652. - [AC_CHECK_LIB([dld], [dld_link],
  1653. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1654. - ])
  1655. - ])
  1656. - ])
  1657. - ])
  1658. - ])
  1659. + case $host_os in
  1660. + rhapsody* | darwin1.[[012]])
  1661. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1662. + darwin1.*)
  1663. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1664. + darwin*) # darwin 5.x on
  1665. + # if running on 10.5 or later, the deployment target defaults
  1666. + # to the OS version, if on x86, and 10.4, the deployment
  1667. + # target defaults to 10.4. Don't you love it?
  1668. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1669. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1670. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1671. + 10.[[012]]*)
  1672. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1673. + 10.*)
  1674. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1675. + esac
  1676. + ;;
  1677. + esac
  1678. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1679. + _lt_dar_single_mod='$single_module'
  1680. + fi
  1681. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1682. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1683. + else
  1684. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1685. + fi
  1686. + if test "$DSYMUTIL" != ":"; then
  1687. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1688. + else
  1689. + _lt_dsymutil=
  1690. + fi
  1691. ;;
  1692. esac
  1693. +])
  1694. - if test "x$lt_cv_dlopen" != xno; then
  1695. - enable_dlopen=yes
  1696. +
  1697. +# _LT_DARWIN_LINKER_FEATURES
  1698. +# --------------------------
  1699. +# Checks for linker and compiler features on darwin
  1700. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1701. +[
  1702. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1703. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1704. + _LT_TAGVAR(hardcode_direct, $1)=no
  1705. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1706. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1707. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1708. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1709. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1710. + case $cc_basename in
  1711. + ifort*) _lt_dar_can_shared=yes ;;
  1712. + *) _lt_dar_can_shared=$GCC ;;
  1713. + esac
  1714. + if test "$_lt_dar_can_shared" = "yes"; then
  1715. + output_verbose_link_cmd=echo
  1716. + _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}"
  1717. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1718. + _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}"
  1719. + _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}"
  1720. + m4_if([$1], [CXX],
  1721. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1722. + _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}"
  1723. + _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}"
  1724. + fi
  1725. +],[])
  1726. else
  1727. - enable_dlopen=no
  1728. + _LT_TAGVAR(ld_shlibs, $1)=no
  1729. fi
  1730. +])
  1731. - case $lt_cv_dlopen in
  1732. - dlopen)
  1733. - save_CPPFLAGS="$CPPFLAGS"
  1734. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1735. -
  1736. - save_LDFLAGS="$LDFLAGS"
  1737. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1738. +# _LT_SYS_MODULE_PATH_AIX
  1739. +# -----------------------
  1740. +# Links a minimal program and checks the executable
  1741. +# for the system default hardcoded library path. In most cases,
  1742. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1743. +# the location of the communication and MPI libs are included too.
  1744. +# If we don't find anything, use the default library path according
  1745. +# to the aix ld manual.
  1746. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1747. +[m4_require([_LT_DECL_SED])dnl
  1748. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1749. +lt_aix_libpath_sed='
  1750. + /Import File Strings/,/^$/ {
  1751. + /^0/ {
  1752. + s/^0 *\(.*\)$/\1/
  1753. + p
  1754. + }
  1755. + }'
  1756. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1757. +# Check for a 64-bit object if we didn't find anything.
  1758. +if test -z "$aix_libpath"; then
  1759. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1760. +fi],[])
  1761. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1762. +])# _LT_SYS_MODULE_PATH_AIX
  1763. - save_LIBS="$LIBS"
  1764. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1765. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1766. - lt_cv_dlopen_self, [dnl
  1767. - _LT_AC_TRY_DLOPEN_SELF(
  1768. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1769. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1770. - ])
  1771. +# _LT_SHELL_INIT(ARG)
  1772. +# -------------------
  1773. +m4_define([_LT_SHELL_INIT],
  1774. +[ifdef([AC_DIVERSION_NOTICE],
  1775. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1776. + [AC_DIVERT_PUSH(NOTICE)])
  1777. +$1
  1778. +AC_DIVERT_POP
  1779. +])# _LT_SHELL_INIT
  1780. - if test "x$lt_cv_dlopen_self" = xyes; then
  1781. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1782. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1783. - lt_cv_dlopen_self_static, [dnl
  1784. - _LT_AC_TRY_DLOPEN_SELF(
  1785. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1786. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1787. - ])
  1788. - fi
  1789. - CPPFLAGS="$save_CPPFLAGS"
  1790. - LDFLAGS="$save_LDFLAGS"
  1791. - LIBS="$save_LIBS"
  1792. - ;;
  1793. - esac
  1794. +# _LT_PROG_ECHO_BACKSLASH
  1795. +# -----------------------
  1796. +# Add some code to the start of the generated configure script which
  1797. +# will find an echo command which doesn't interpret backslashes.
  1798. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1799. +[_LT_SHELL_INIT([
  1800. +# Check that we are running under the correct shell.
  1801. +SHELL=${CONFIG_SHELL-/bin/sh}
  1802. - case $lt_cv_dlopen_self in
  1803. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1804. - *) enable_dlopen_self=unknown ;;
  1805. - esac
  1806. +case X$lt_ECHO in
  1807. +X*--fallback-echo)
  1808. + # Remove one level of quotation (which was required for Make).
  1809. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1810. + ;;
  1811. +esac
  1812. - case $lt_cv_dlopen_self_static in
  1813. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1814. - *) enable_dlopen_self_static=unknown ;;
  1815. - esac
  1816. +ECHO=${lt_ECHO-echo}
  1817. +if test "X[$]1" = X--no-reexec; then
  1818. + # Discard the --no-reexec flag, and continue.
  1819. + shift
  1820. +elif test "X[$]1" = X--fallback-echo; then
  1821. + # Avoid inline document here, it may be left over
  1822. + :
  1823. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1824. + # Yippee, $ECHO works!
  1825. + :
  1826. +else
  1827. + # Restart under the correct shell.
  1828. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1829. fi
  1830. -])# AC_LIBTOOL_DLOPEN_SELF
  1831. -
  1832. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1833. -# ---------------------------------
  1834. -# Check to see if options -c and -o are simultaneously supported by compiler
  1835. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1836. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1837. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1838. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1839. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1840. - $rm -r conftest 2>/dev/null
  1841. - mkdir conftest
  1842. - cd conftest
  1843. - mkdir out
  1844. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1845. +if test "X[$]1" = X--fallback-echo; then
  1846. + # used as fallback echo
  1847. + shift
  1848. + cat <<_LT_EOF
  1849. +[$]*
  1850. +_LT_EOF
  1851. + exit 0
  1852. +fi
  1853. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1854. - # Insert the option either (1) after the last *FLAGS variable, or
  1855. - # (2) before a word containing "conftest.", or (3) at the end.
  1856. - # Note that $ac_compile itself does not contain backslashes and begins
  1857. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1858. - lt_compile=`echo "$ac_compile" | $SED \
  1859. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1860. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1861. - -e 's:$: $lt_compiler_flag:'`
  1862. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1863. - (eval "$lt_compile" 2>out/conftest.err)
  1864. - ac_status=$?
  1865. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1866. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1867. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1868. - then
  1869. - # The compiler can only warn and ignore the option if not recognized
  1870. - # So say no if there are warnings
  1871. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1872. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1873. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1874. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1875. - fi
  1876. - fi
  1877. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1878. - $rm conftest*
  1879. - # SGI C++ compiler will create directory out/ii_files/ for
  1880. - # template instantiation
  1881. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1882. - $rm out/* && rmdir out
  1883. - cd ..
  1884. - rmdir conftest
  1885. - $rm conftest*
  1886. -])
  1887. -])# AC_LIBTOOL_PROG_CC_C_O
  1888. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1889. +# if CDPATH is set.
  1890. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1891. +if test -z "$lt_ECHO"; then
  1892. + if test "X${echo_test_string+set}" != Xset; then
  1893. + # find a string as large as possible, as long as the shell can cope with it
  1894. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1895. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1896. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1897. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1898. + then
  1899. + break
  1900. + fi
  1901. + done
  1902. + fi
  1903. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1904. -# -----------------------------------------
  1905. -# Check to see if we can do hard links to lock some files if needed
  1906. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1907. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1908. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1909. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1910. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1911. + :
  1912. + else
  1913. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1914. + # backslashes. This makes it impossible to quote backslashes using
  1915. + # echo "$something" | sed 's/\\/\\\\/g'
  1916. + #
  1917. + # So, first we look for a working echo in the user's PATH.
  1918. -hard_links="nottested"
  1919. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1920. - # do not overwrite the value of need_locks provided by the user
  1921. - AC_MSG_CHECKING([if we can lock with hard links])
  1922. - hard_links=yes
  1923. - $rm conftest*
  1924. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1925. - touch conftest.a
  1926. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1927. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1928. - AC_MSG_RESULT([$hard_links])
  1929. - if test "$hard_links" = no; then
  1930. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1931. - need_locks=warn
  1932. - fi
  1933. -else
  1934. - need_locks=no
  1935. -fi
  1936. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1937. -
  1938. -
  1939. -# AC_LIBTOOL_OBJDIR
  1940. -# -----------------
  1941. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1942. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1943. -[rm -f .libs 2>/dev/null
  1944. -mkdir .libs 2>/dev/null
  1945. -if test -d .libs; then
  1946. - lt_cv_objdir=.libs
  1947. -else
  1948. - # MS-DOS does not allow filenames that begin with a dot.
  1949. - lt_cv_objdir=_libs
  1950. -fi
  1951. -rmdir .libs 2>/dev/null])
  1952. -objdir=$lt_cv_objdir
  1953. -])# AC_LIBTOOL_OBJDIR
  1954. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1955. + for dir in $PATH /usr/ucb; do
  1956. + IFS="$lt_save_ifs"
  1957. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1958. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1959. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1960. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1961. + ECHO="$dir/echo"
  1962. + break
  1963. + fi
  1964. + done
  1965. + IFS="$lt_save_ifs"
  1966. + if test "X$ECHO" = Xecho; then
  1967. + # We didn't find a better echo, so look for alternatives.
  1968. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1969. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1970. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1971. + # This shell has a builtin print -r that does the trick.
  1972. + ECHO='print -r'
  1973. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1974. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1975. + # If we have ksh, try running configure again with it.
  1976. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1977. + export ORIGINAL_CONFIG_SHELL
  1978. + CONFIG_SHELL=/bin/ksh
  1979. + export CONFIG_SHELL
  1980. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1981. + else
  1982. + # Try using printf.
  1983. + ECHO='printf %s\n'
  1984. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1985. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1986. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1987. + # Cool, printf works
  1988. + :
  1989. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1990. + test "X$echo_testing_string" = 'X\t' &&
  1991. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1992. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1993. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1994. + export CONFIG_SHELL
  1995. + SHELL="$CONFIG_SHELL"
  1996. + export SHELL
  1997. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1998. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1999. + test "X$echo_testing_string" = 'X\t' &&
  2000. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2001. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2002. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2003. + else
  2004. + # maybe with a smaller string...
  2005. + prev=:
  2006. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2007. -# ----------------------------------------------
  2008. -# Check hardcoding attributes.
  2009. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2010. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  2011. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2012. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2013. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2014. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2015. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2016. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2017. + then
  2018. + break
  2019. + fi
  2020. + prev="$cmd"
  2021. + done
  2022. - # We can hardcode non-existant directories.
  2023. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2024. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2025. - # have to relink, otherwise we might link with an installed library
  2026. - # when we should be linking with a yet-to-be-installed one
  2027. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2028. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2029. - # Linking always hardcodes the temporary library directory.
  2030. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2031. - else
  2032. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2033. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2034. + if test "$prev" != 'sed 50q "[$]0"'; then
  2035. + echo_test_string=`eval $prev`
  2036. + export echo_test_string
  2037. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2038. + else
  2039. + # Oops. We lost completely, so just stick with echo.
  2040. + ECHO=echo
  2041. + fi
  2042. + fi
  2043. + fi
  2044. + fi
  2045. fi
  2046. -else
  2047. - # We cannot hardcode anything, or else we can only hardcode existing
  2048. - # directories.
  2049. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2050. fi
  2051. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2052. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2053. - # Fast installation is not supported
  2054. - enable_fast_install=no
  2055. -elif test "$shlibpath_overrides_runpath" = yes ||
  2056. - test "$enable_shared" = no; then
  2057. - # Fast installation is not necessary
  2058. - enable_fast_install=needless
  2059. +# Copy echo and quote the copy suitably for passing to libtool from
  2060. +# the Makefile, instead of quoting the original, which is used later.
  2061. +lt_ECHO=$ECHO
  2062. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2063. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2064. fi
  2065. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2066. +AC_SUBST(lt_ECHO)
  2067. +])
  2068. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2069. +_LT_DECL([], [ECHO], [1],
  2070. + [An echo program that does not interpret backslashes])
  2071. +])# _LT_PROG_ECHO_BACKSLASH
  2072. -# AC_LIBTOOL_SYS_LIB_STRIP
  2073. -# ------------------------
  2074. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2075. -[striplib=
  2076. -old_striplib=
  2077. -AC_MSG_CHECKING([whether stripping libraries is possible])
  2078. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2079. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2080. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2081. - AC_MSG_RESULT([yes])
  2082. -else
  2083. -# FIXME - insert some real tests, host_os isn't really good enough
  2084. - case $host_os in
  2085. - darwin*)
  2086. - if test -n "$STRIP" ; then
  2087. - striplib="$STRIP -x"
  2088. - AC_MSG_RESULT([yes])
  2089. - else
  2090. - AC_MSG_RESULT([no])
  2091. -fi
  2092. - ;;
  2093. - *)
  2094. - AC_MSG_RESULT([no])
  2095. - ;;
  2096. - esac
  2097. -fi
  2098. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2099. +# _LT_ENABLE_LOCK
  2100. +# ---------------
  2101. +m4_defun([_LT_ENABLE_LOCK],
  2102. +[AC_ARG_ENABLE([libtool-lock],
  2103. + [AS_HELP_STRING([--disable-libtool-lock],
  2104. + [avoid locking (might break parallel builds)])])
  2105. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2106. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2107. -# -----------------------------
  2108. -# PORTME Fill in your ld.so characteristics
  2109. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2110. -[AC_MSG_CHECKING([dynamic linker characteristics])
  2111. -library_names_spec=
  2112. -libname_spec='lib$name'
  2113. -soname_spec=
  2114. -shrext_cmds=".so"
  2115. -postinstall_cmds=
  2116. -postuninstall_cmds=
  2117. -finish_cmds=
  2118. -finish_eval=
  2119. -shlibpath_var=
  2120. -shlibpath_overrides_runpath=unknown
  2121. -version_type=none
  2122. -dynamic_linker="$host_os ld.so"
  2123. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2124. -if test "$GCC" = yes; then
  2125. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2126. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2127. - # if the path contains ";" then we assume it to be the separator
  2128. - # otherwise default to the standard path separator (i.e. ":") - it is
  2129. - # assumed that no part of a normal pathname contains ";" but that should
  2130. - # okay in the real world where ";" in dirpaths is itself problematic.
  2131. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2132. - else
  2133. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2134. +# Some flags need to be propagated to the compiler or linker for good
  2135. +# libtool support.
  2136. +case $host in
  2137. +ia64-*-hpux*)
  2138. + # Find out which ABI we are using.
  2139. + echo 'int i;' > conftest.$ac_ext
  2140. + if AC_TRY_EVAL(ac_compile); then
  2141. + case `/usr/bin/file conftest.$ac_objext` in
  2142. + *ELF-32*)
  2143. + HPUX_IA64_MODE="32"
  2144. + ;;
  2145. + *ELF-64*)
  2146. + HPUX_IA64_MODE="64"
  2147. + ;;
  2148. + esac
  2149. fi
  2150. -else
  2151. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2152. -fi
  2153. -need_lib_prefix=unknown
  2154. -hardcode_into_libs=no
  2155. -
  2156. -# when you set need_version to no, make sure it does not cause -set_version
  2157. -# flags to be left without arguments
  2158. -need_version=unknown
  2159. -
  2160. -case $host_os in
  2161. -aix3*)
  2162. - version_type=linux
  2163. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2164. - shlibpath_var=LIBPATH
  2165. -
  2166. - # AIX 3 has no versioning support, so we append a major version to the name.
  2167. - soname_spec='${libname}${release}${shared_ext}$major'
  2168. + rm -rf conftest*
  2169. ;;
  2170. -
  2171. -aix4* | aix5*)
  2172. - version_type=linux
  2173. - need_lib_prefix=no
  2174. - need_version=no
  2175. - hardcode_into_libs=yes
  2176. - if test "$host_cpu" = ia64; then
  2177. - # AIX 5 supports IA64
  2178. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2179. - shlibpath_var=LD_LIBRARY_PATH
  2180. - else
  2181. - # With GCC up to 2.95.x, collect2 would create an import file
  2182. - # for dependence libraries. The import file would start with
  2183. - # the line `#! .'. This would cause the generated library to
  2184. - # depend on `.', always an invalid library. This was fixed in
  2185. - # development snapshots of GCC prior to 3.0.
  2186. - case $host_os in
  2187. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2188. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2189. - echo ' yes '
  2190. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2191. - :
  2192. - else
  2193. - can_build_shared=no
  2194. - fi
  2195. - ;;
  2196. - esac
  2197. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2198. - # soname into executable. Probably we can add versioning support to
  2199. - # collect2, so additional links can be useful in future.
  2200. - if test "$aix_use_runtimelinking" = yes; then
  2201. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2202. - # instead of lib<name>.a to let people know that these are not
  2203. - # typical AIX shared libraries.
  2204. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2205. +*-*-irix6*)
  2206. + # Find out which ABI we are using.
  2207. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2208. + if AC_TRY_EVAL(ac_compile); then
  2209. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2210. + case `/usr/bin/file conftest.$ac_objext` in
  2211. + *32-bit*)
  2212. + LD="${LD-ld} -melf32bsmip"
  2213. + ;;
  2214. + *N32*)
  2215. + LD="${LD-ld} -melf32bmipn32"
  2216. + ;;
  2217. + *64-bit*)
  2218. + LD="${LD-ld} -melf64bmip"
  2219. + ;;
  2220. + esac
  2221. else
  2222. - # We preserve .a as extension for shared libraries through AIX4.2
  2223. - # and later when we are not doing run time linking.
  2224. - library_names_spec='${libname}${release}.a $libname.a'
  2225. - soname_spec='${libname}${release}${shared_ext}$major'
  2226. + case `/usr/bin/file conftest.$ac_objext` in
  2227. + *32-bit*)
  2228. + LD="${LD-ld} -32"
  2229. + ;;
  2230. + *N32*)
  2231. + LD="${LD-ld} -n32"
  2232. + ;;
  2233. + *64-bit*)
  2234. + LD="${LD-ld} -64"
  2235. + ;;
  2236. + esac
  2237. fi
  2238. - shlibpath_var=LIBPATH
  2239. fi
  2240. + rm -rf conftest*
  2241. ;;
  2242. -amigaos*)
  2243. - library_names_spec='$libname.ixlibrary $libname.a'
  2244. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2245. - 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'
  2246. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2247. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2248. + # Find out which ABI we are using.
  2249. + echo 'int i;' > conftest.$ac_ext
  2250. + if AC_TRY_EVAL(ac_compile); then
  2251. + case `/usr/bin/file conftest.o` in
  2252. + *32-bit*)
  2253. + case $host in
  2254. + x86_64-*kfreebsd*-gnu)
  2255. + LD="${LD-ld} -m elf_i386_fbsd"
  2256. + ;;
  2257. + x86_64-*linux*)
  2258. + LD="${LD-ld} -m elf_i386"
  2259. + ;;
  2260. + ppc64-*linux*|powerpc64-*linux*)
  2261. + LD="${LD-ld} -m elf32ppclinux"
  2262. + ;;
  2263. + s390x-*linux*)
  2264. + LD="${LD-ld} -m elf_s390"
  2265. + ;;
  2266. + sparc64-*linux*)
  2267. + LD="${LD-ld} -m elf32_sparc"
  2268. + ;;
  2269. + esac
  2270. + ;;
  2271. + *64-bit*)
  2272. + case $host in
  2273. + x86_64-*kfreebsd*-gnu)
  2274. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2275. + ;;
  2276. + x86_64-*linux*)
  2277. + LD="${LD-ld} -m elf_x86_64"
  2278. + ;;
  2279. + ppc*-*linux*|powerpc*-*linux*)
  2280. + LD="${LD-ld} -m elf64ppc"
  2281. + ;;
  2282. + s390*-*linux*|s390*-*tpf*)
  2283. + LD="${LD-ld} -m elf64_s390"
  2284. + ;;
  2285. + sparc*-*linux*)
  2286. + LD="${LD-ld} -m elf64_sparc"
  2287. + ;;
  2288. + esac
  2289. + ;;
  2290. + esac
  2291. + fi
  2292. + rm -rf conftest*
  2293. ;;
  2294. -beos*)
  2295. - library_names_spec='${libname}${shared_ext}'
  2296. - dynamic_linker="$host_os ld.so"
  2297. - shlibpath_var=LIBRARY_PATH
  2298. +*-*-sco3.2v5*)
  2299. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2300. + SAVE_CFLAGS="$CFLAGS"
  2301. + CFLAGS="$CFLAGS -belf"
  2302. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2303. + [AC_LANG_PUSH(C)
  2304. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2305. + AC_LANG_POP])
  2306. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2307. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2308. + CFLAGS="$SAVE_CFLAGS"
  2309. + fi
  2310. ;;
  2311. -
  2312. -bsdi[[45]]*)
  2313. - version_type=linux
  2314. - need_version=no
  2315. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2316. - soname_spec='${libname}${release}${shared_ext}$major'
  2317. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2318. - shlibpath_var=LD_LIBRARY_PATH
  2319. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2320. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2321. - # the default ld.so.conf also contains /usr/contrib/lib and
  2322. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2323. - # libtool to hard-code these into programs
  2324. +sparc*-*solaris*)
  2325. + # Find out which ABI we are using.
  2326. + echo 'int i;' > conftest.$ac_ext
  2327. + if AC_TRY_EVAL(ac_compile); then
  2328. + case `/usr/bin/file conftest.o` in
  2329. + *64-bit*)
  2330. + case $lt_cv_prog_gnu_ld in
  2331. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2332. + *)
  2333. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2334. + LD="${LD-ld} -64"
  2335. + fi
  2336. + ;;
  2337. + esac
  2338. + ;;
  2339. + esac
  2340. + fi
  2341. + rm -rf conftest*
  2342. ;;
  2343. +esac
  2344. -cygwin* | mingw* | pw32*)
  2345. - version_type=windows
  2346. - shrext_cmds=".dll"
  2347. - need_version=no
  2348. - need_lib_prefix=no
  2349. +need_locks="$enable_libtool_lock"
  2350. +])# _LT_ENABLE_LOCK
  2351. - case $GCC,$host_os in
  2352. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2353. - library_names_spec='$libname.dll.a'
  2354. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2355. - postinstall_cmds='base_file=`basename \${file}`~
  2356. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2357. - dldir=$destdir/`dirname \$dlpath`~
  2358. - test -d \$dldir || mkdir -p \$dldir~
  2359. - $install_prog $dir/$dlname \$dldir/$dlname~
  2360. - chmod a+x \$dldir/$dlname'
  2361. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2362. - dlpath=$dir/\$dldll~
  2363. - $rm \$dlpath'
  2364. - shlibpath_overrides_runpath=yes
  2365. - case $host_os in
  2366. - cygwin*)
  2367. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2368. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2369. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2370. - ;;
  2371. - mingw*)
  2372. - # MinGW DLLs use traditional 'lib' prefix
  2373. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2374. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2375. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2376. - # It is most probably a Windows format PATH printed by
  2377. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2378. - # path with ; separators, and with drive letters. We can handle the
  2379. - # drive letters (cygwin fileutils understands them), so leave them,
  2380. - # especially as we might pass files found there to a mingw objdump,
  2381. - # which wouldn't understand a cygwinified path. Ahh.
  2382. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2383. - else
  2384. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2385. - fi
  2386. - ;;
  2387. - pw32*)
  2388. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2389. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2390. - ;;
  2391. - esac
  2392. - ;;
  2393. +# _LT_CMD_OLD_ARCHIVE
  2394. +# -------------------
  2395. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2396. +[AC_CHECK_TOOL(AR, ar, false)
  2397. +test -z "$AR" && AR=ar
  2398. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2399. +_LT_DECL([], [AR], [1], [The archiver])
  2400. +_LT_DECL([], [AR_FLAGS], [1])
  2401. +
  2402. +AC_CHECK_TOOL(STRIP, strip, :)
  2403. +test -z "$STRIP" && STRIP=:
  2404. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2405. +
  2406. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2407. +test -z "$RANLIB" && RANLIB=:
  2408. +_LT_DECL([], [RANLIB], [1],
  2409. + [Commands used to install an old-style archive])
  2410. +
  2411. +# Determine commands to create old-style static archives.
  2412. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2413. +old_postinstall_cmds='chmod 644 $oldlib'
  2414. +old_postuninstall_cmds=
  2415. +if test -n "$RANLIB"; then
  2416. + case $host_os in
  2417. + openbsd*)
  2418. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2419. + ;;
  2420. *)
  2421. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2422. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2423. ;;
  2424. esac
  2425. - dynamic_linker='Win32 ld.exe'
  2426. - # FIXME: first we should search . and the directory the executable is in
  2427. - shlibpath_var=PATH
  2428. - ;;
  2429. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2430. +fi
  2431. +_LT_DECL([], [old_postinstall_cmds], [2])
  2432. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2433. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2434. + [Commands used to build an old-style archive])
  2435. +])# _LT_CMD_OLD_ARCHIVE
  2436. -darwin* | rhapsody*)
  2437. - dynamic_linker="$host_os dyld"
  2438. - version_type=darwin
  2439. - need_lib_prefix=no
  2440. - need_version=no
  2441. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2442. - soname_spec='${libname}${release}${major}$shared_ext'
  2443. - shlibpath_overrides_runpath=yes
  2444. - shlibpath_var=DYLD_LIBRARY_PATH
  2445. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2446. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2447. - if test "$GCC" = yes; then
  2448. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  2449. - else
  2450. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2451. - fi
  2452. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2453. - ;;
  2454. -dgux*)
  2455. - version_type=linux
  2456. - need_lib_prefix=no
  2457. - need_version=no
  2458. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2459. - soname_spec='${libname}${release}${shared_ext}$major'
  2460. - shlibpath_var=LD_LIBRARY_PATH
  2461. - ;;
  2462. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2463. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2464. +# ----------------------------------------------------------------
  2465. +# Check whether the given compiler option works
  2466. +AC_DEFUN([_LT_COMPILER_OPTION],
  2467. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2468. +m4_require([_LT_DECL_SED])dnl
  2469. +AC_CACHE_CHECK([$1], [$2],
  2470. + [$2=no
  2471. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2472. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2473. + lt_compiler_flag="$3"
  2474. + # Insert the option either (1) after the last *FLAGS variable, or
  2475. + # (2) before a word containing "conftest.", or (3) at the end.
  2476. + # Note that $ac_compile itself does not contain backslashes and begins
  2477. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2478. + # The option is referenced via a variable to avoid confusing sed.
  2479. + lt_compile=`echo "$ac_compile" | $SED \
  2480. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2481. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2482. + -e 's:$: $lt_compiler_flag:'`
  2483. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2484. + (eval "$lt_compile" 2>conftest.err)
  2485. + ac_status=$?
  2486. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2487. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2488. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2489. + # The compiler can only warn and ignore the option if not recognized
  2490. + # So say no if there are warnings other than the usual output.
  2491. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2492. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2493. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2494. + $2=yes
  2495. + fi
  2496. + fi
  2497. + $RM conftest*
  2498. +])
  2499. -freebsd1*)
  2500. - dynamic_linker=no
  2501. - ;;
  2502. +if test x"[$]$2" = xyes; then
  2503. + m4_if([$5], , :, [$5])
  2504. +else
  2505. + m4_if([$6], , :, [$6])
  2506. +fi
  2507. +])# _LT_COMPILER_OPTION
  2508. -kfreebsd*-gnu)
  2509. - version_type=linux
  2510. - need_lib_prefix=no
  2511. - need_version=no
  2512. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2513. - soname_spec='${libname}${release}${shared_ext}$major'
  2514. - shlibpath_var=LD_LIBRARY_PATH
  2515. - shlibpath_overrides_runpath=no
  2516. - hardcode_into_libs=yes
  2517. - dynamic_linker='GNU ld.so'
  2518. - ;;
  2519. +# Old name:
  2520. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2521. +dnl aclocal-1.4 backwards compatibility:
  2522. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2523. +
  2524. +
  2525. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2526. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2527. +# ----------------------------------------------------
  2528. +# Check whether the given linker option works
  2529. +AC_DEFUN([_LT_LINKER_OPTION],
  2530. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2531. +m4_require([_LT_DECL_SED])dnl
  2532. +AC_CACHE_CHECK([$1], [$2],
  2533. + [$2=no
  2534. + save_LDFLAGS="$LDFLAGS"
  2535. + LDFLAGS="$LDFLAGS $3"
  2536. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2537. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2538. + # The linker can only warn and ignore the option if not recognized
  2539. + # So say no if there are warnings
  2540. + if test -s conftest.err; then
  2541. + # Append any errors to the config.log.
  2542. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2543. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2544. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2545. + if diff conftest.exp conftest.er2 >/dev/null; then
  2546. + $2=yes
  2547. + fi
  2548. + else
  2549. + $2=yes
  2550. + fi
  2551. + fi
  2552. + $RM -r conftest*
  2553. + LDFLAGS="$save_LDFLAGS"
  2554. +])
  2555. -freebsd* | dragonfly*)
  2556. - # DragonFly does not have aout. When/if they implement a new
  2557. - # versioning mechanism, adjust this.
  2558. - if test -x /usr/bin/objformat; then
  2559. - objformat=`/usr/bin/objformat`
  2560. - else
  2561. - case $host_os in
  2562. - freebsd[[123]]*) objformat=aout ;;
  2563. - *) objformat=elf ;;
  2564. - esac
  2565. - fi
  2566. - version_type=freebsd-$objformat
  2567. - case $version_type in
  2568. - freebsd-elf*)
  2569. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2570. - need_version=no
  2571. - need_lib_prefix=no
  2572. - ;;
  2573. - freebsd-*)
  2574. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2575. - need_version=yes
  2576. - ;;
  2577. - esac
  2578. - shlibpath_var=LD_LIBRARY_PATH
  2579. - case $host_os in
  2580. - freebsd2*)
  2581. - shlibpath_overrides_runpath=yes
  2582. +if test x"[$]$2" = xyes; then
  2583. + m4_if([$4], , :, [$4])
  2584. +else
  2585. + m4_if([$5], , :, [$5])
  2586. +fi
  2587. +])# _LT_LINKER_OPTION
  2588. +
  2589. +# Old name:
  2590. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2591. +dnl aclocal-1.4 backwards compatibility:
  2592. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2593. +
  2594. +
  2595. +# LT_CMD_MAX_LEN
  2596. +#---------------
  2597. +AC_DEFUN([LT_CMD_MAX_LEN],
  2598. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2599. +# find the maximum length of command line arguments
  2600. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2601. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2602. + i=0
  2603. + teststring="ABCD"
  2604. +
  2605. + case $build_os in
  2606. + msdosdjgpp*)
  2607. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2608. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2609. + # during glob expansion). Even if it were fixed, the result of this
  2610. + # check would be larger than it should be.
  2611. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2612. ;;
  2613. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2614. - shlibpath_overrides_runpath=yes
  2615. - hardcode_into_libs=yes
  2616. +
  2617. + gnu*)
  2618. + # Under GNU Hurd, this test is not required because there is
  2619. + # no limit to the length of command line arguments.
  2620. + # Libtool will interpret -1 as no limit whatsoever
  2621. + lt_cv_sys_max_cmd_len=-1;
  2622. ;;
  2623. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2624. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2625. - shlibpath_overrides_runpath=no
  2626. - hardcode_into_libs=yes
  2627. +
  2628. + cygwin* | mingw* | cegcc*)
  2629. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2630. + # about 5 minutes as the teststring grows exponentially.
  2631. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2632. + # you end up with a "frozen" computer, even though with patience
  2633. + # the test eventually succeeds (with a max line length of 256k).
  2634. + # Instead, let's just punt: use the minimum linelength reported by
  2635. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2636. + lt_cv_sys_max_cmd_len=8192;
  2637. ;;
  2638. - freebsd*) # from 4.6 on
  2639. - shlibpath_overrides_runpath=yes
  2640. - hardcode_into_libs=yes
  2641. +
  2642. + amigaos*)
  2643. + # On AmigaOS with pdksh, this test takes hours, literally.
  2644. + # So we just punt and use a minimum line length of 8192.
  2645. + lt_cv_sys_max_cmd_len=8192;
  2646. ;;
  2647. - esac
  2648. - ;;
  2649. -gnu*)
  2650. - version_type=linux
  2651. - need_lib_prefix=no
  2652. - need_version=no
  2653. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2654. - soname_spec='${libname}${release}${shared_ext}$major'
  2655. - shlibpath_var=LD_LIBRARY_PATH
  2656. - hardcode_into_libs=yes
  2657. - ;;
  2658. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2659. + # This has been around since 386BSD, at least. Likely further.
  2660. + if test -x /sbin/sysctl; then
  2661. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2662. + elif test -x /usr/sbin/sysctl; then
  2663. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2664. + else
  2665. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2666. + fi
  2667. + # And add a safety zone
  2668. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2669. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2670. + ;;
  2671. -hpux9* | hpux10* | hpux11*)
  2672. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2673. - # link against other versions.
  2674. - version_type=sunos
  2675. - need_lib_prefix=no
  2676. - need_version=no
  2677. - case $host_cpu in
  2678. - ia64*)
  2679. - shrext_cmds='.so'
  2680. - hardcode_into_libs=yes
  2681. - dynamic_linker="$host_os dld.so"
  2682. - shlibpath_var=LD_LIBRARY_PATH
  2683. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2684. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2685. - soname_spec='${libname}${release}${shared_ext}$major'
  2686. - if test "X$HPUX_IA64_MODE" = X32; then
  2687. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2688. - else
  2689. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2690. + interix*)
  2691. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2692. + lt_cv_sys_max_cmd_len=196608
  2693. + ;;
  2694. +
  2695. + osf*)
  2696. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2697. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2698. + # nice to cause kernel panics so lets avoid the loop below.
  2699. + # First set a reasonable default.
  2700. + lt_cv_sys_max_cmd_len=16384
  2701. + #
  2702. + if test -x /sbin/sysconfig; then
  2703. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2704. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2705. + esac
  2706. fi
  2707. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2708. ;;
  2709. - hppa*64*)
  2710. - shrext_cmds='.sl'
  2711. - hardcode_into_libs=yes
  2712. - dynamic_linker="$host_os dld.sl"
  2713. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2714. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2715. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2716. - soname_spec='${libname}${release}${shared_ext}$major'
  2717. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2718. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2719. - ;;
  2720. - *)
  2721. - shrext_cmds='.sl'
  2722. - dynamic_linker="$host_os dld.sl"
  2723. - shlibpath_var=SHLIB_PATH
  2724. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2725. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2726. - soname_spec='${libname}${release}${shared_ext}$major'
  2727. + sco3.2v5*)
  2728. + lt_cv_sys_max_cmd_len=102400
  2729. ;;
  2730. - esac
  2731. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2732. - postinstall_cmds='chmod 555 $lib'
  2733. - ;;
  2734. -
  2735. -interix3*)
  2736. - version_type=linux
  2737. - need_lib_prefix=no
  2738. - need_version=no
  2739. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2740. - soname_spec='${libname}${release}${shared_ext}$major'
  2741. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2742. - shlibpath_var=LD_LIBRARY_PATH
  2743. - shlibpath_overrides_runpath=no
  2744. - hardcode_into_libs=yes
  2745. - ;;
  2746. -
  2747. -irix5* | irix6* | nonstopux*)
  2748. - case $host_os in
  2749. - nonstopux*) version_type=nonstopux ;;
  2750. - *)
  2751. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2752. - version_type=linux
  2753. - else
  2754. - version_type=irix
  2755. - fi ;;
  2756. - esac
  2757. - need_lib_prefix=no
  2758. - need_version=no
  2759. - soname_spec='${libname}${release}${shared_ext}$major'
  2760. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2761. - case $host_os in
  2762. - irix5* | nonstopux*)
  2763. - libsuff= shlibsuff=
  2764. + sysv5* | sco5v6* | sysv4.2uw2*)
  2765. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2766. + if test -n "$kargmax"; then
  2767. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2768. + else
  2769. + lt_cv_sys_max_cmd_len=32768
  2770. + fi
  2771. ;;
  2772. *)
  2773. - case $LD in # libtool.m4 will add one of these switches to LD
  2774. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2775. - libsuff= shlibsuff= libmagic=32-bit;;
  2776. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2777. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2778. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2779. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2780. - *) libsuff= shlibsuff= libmagic=never-match;;
  2781. - esac
  2782. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2783. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2784. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2785. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2786. + else
  2787. + # Make teststring a little bigger before we do anything with it.
  2788. + # a 1K string should be a reasonable start.
  2789. + for i in 1 2 3 4 5 6 7 8 ; do
  2790. + teststring=$teststring$teststring
  2791. + done
  2792. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2793. + # If test is not a shell built-in, we'll probably end up computing a
  2794. + # maximum length that is only half of the actual maximum length, but
  2795. + # we can't tell.
  2796. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2797. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2798. + test $i != 17 # 1/2 MB should be enough
  2799. + do
  2800. + i=`expr $i + 1`
  2801. + teststring=$teststring$teststring
  2802. + done
  2803. + # Only check the string length outside the loop.
  2804. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2805. + teststring=
  2806. + # Add a significant safety factor because C++ compilers can tack on
  2807. + # massive amounts of additional arguments before passing them to the
  2808. + # linker. It appears as though 1/2 is a usable value.
  2809. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2810. + fi
  2811. ;;
  2812. esac
  2813. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2814. - shlibpath_overrides_runpath=no
  2815. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2816. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2817. - hardcode_into_libs=yes
  2818. - ;;
  2819. +])
  2820. +if test -n $lt_cv_sys_max_cmd_len ; then
  2821. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2822. +else
  2823. + AC_MSG_RESULT(none)
  2824. +fi
  2825. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2826. +_LT_DECL([], [max_cmd_len], [0],
  2827. + [What is the maximum length of a command?])
  2828. +])# LT_CMD_MAX_LEN
  2829. -# No shared lib support for Linux oldld, aout, or coff.
  2830. -linux*oldld* | linux*aout* | linux*coff*)
  2831. - dynamic_linker=no
  2832. - ;;
  2833. +# Old name:
  2834. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2835. +dnl aclocal-1.4 backwards compatibility:
  2836. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2837. -# This must be Linux ELF.
  2838. -linux*)
  2839. - version_type=linux
  2840. - need_lib_prefix=no
  2841. - need_version=no
  2842. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2843. - soname_spec='${libname}${release}${shared_ext}$major'
  2844. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2845. - shlibpath_var=LD_LIBRARY_PATH
  2846. - shlibpath_overrides_runpath=no
  2847. - # This implies no fast_install, which is unacceptable.
  2848. - # Some rework will be needed to allow for fast_install
  2849. - # before this can be enabled.
  2850. - hardcode_into_libs=yes
  2851. - # Append ld.so.conf contents to the search path
  2852. - if test -f /etc/ld.so.conf; then
  2853. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2854. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2855. - fi
  2856. +# _LT_HEADER_DLFCN
  2857. +# ----------------
  2858. +m4_defun([_LT_HEADER_DLFCN],
  2859. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2860. +])# _LT_HEADER_DLFCN
  2861. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2862. - # powerpc, because MkLinux only supported shared libraries with the
  2863. - # GNU dynamic linker. Since this was broken with cross compilers,
  2864. - # most powerpc-linux boxes support dynamic linking these days and
  2865. - # people can always --disable-shared, the test was removed, and we
  2866. - # assume the GNU/Linux dynamic linker is in use.
  2867. - dynamic_linker='GNU/Linux ld.so'
  2868. - ;;
  2869. -knetbsd*-gnu)
  2870. - version_type=linux
  2871. - need_lib_prefix=no
  2872. - need_version=no
  2873. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2874. - soname_spec='${libname}${release}${shared_ext}$major'
  2875. - shlibpath_var=LD_LIBRARY_PATH
  2876. - shlibpath_overrides_runpath=no
  2877. - hardcode_into_libs=yes
  2878. - dynamic_linker='GNU ld.so'
  2879. - ;;
  2880. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2881. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2882. +# ----------------------------------------------------------------
  2883. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2884. +[m4_require([_LT_HEADER_DLFCN])dnl
  2885. +if test "$cross_compiling" = yes; then :
  2886. + [$4]
  2887. +else
  2888. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2889. + lt_status=$lt_dlunknown
  2890. + cat > conftest.$ac_ext <<_LT_EOF
  2891. +[#line __oline__ "configure"
  2892. +#include "confdefs.h"
  2893. -netbsd*)
  2894. - version_type=sunos
  2895. - need_lib_prefix=no
  2896. - need_version=no
  2897. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2898. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2899. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2900. - dynamic_linker='NetBSD (a.out) ld.so'
  2901. +#if HAVE_DLFCN_H
  2902. +#include <dlfcn.h>
  2903. +#endif
  2904. +
  2905. +#include <stdio.h>
  2906. +
  2907. +#ifdef RTLD_GLOBAL
  2908. +# define LT_DLGLOBAL RTLD_GLOBAL
  2909. +#else
  2910. +# ifdef DL_GLOBAL
  2911. +# define LT_DLGLOBAL DL_GLOBAL
  2912. +# else
  2913. +# define LT_DLGLOBAL 0
  2914. +# endif
  2915. +#endif
  2916. +
  2917. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2918. + find out it does not work in some platform. */
  2919. +#ifndef LT_DLLAZY_OR_NOW
  2920. +# ifdef RTLD_LAZY
  2921. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2922. +# else
  2923. +# ifdef DL_LAZY
  2924. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2925. +# else
  2926. +# ifdef RTLD_NOW
  2927. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2928. +# else
  2929. +# ifdef DL_NOW
  2930. +# define LT_DLLAZY_OR_NOW DL_NOW
  2931. +# else
  2932. +# define LT_DLLAZY_OR_NOW 0
  2933. +# endif
  2934. +# endif
  2935. +# endif
  2936. +# endif
  2937. +#endif
  2938. +
  2939. +void fnord() { int i=42;}
  2940. +int main ()
  2941. +{
  2942. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2943. + int status = $lt_dlunknown;
  2944. +
  2945. + if (self)
  2946. + {
  2947. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2948. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2949. + /* dlclose (self); */
  2950. + }
  2951. else
  2952. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2953. - soname_spec='${libname}${release}${shared_ext}$major'
  2954. - dynamic_linker='NetBSD ld.elf_so'
  2955. + puts (dlerror ());
  2956. +
  2957. + return status;
  2958. +}]
  2959. +_LT_EOF
  2960. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2961. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2962. + lt_status=$?
  2963. + case x$lt_status in
  2964. + x$lt_dlno_uscore) $1 ;;
  2965. + x$lt_dlneed_uscore) $2 ;;
  2966. + x$lt_dlunknown|x*) $3 ;;
  2967. + esac
  2968. + else :
  2969. + # compilation failed
  2970. + $3
  2971. fi
  2972. - shlibpath_var=LD_LIBRARY_PATH
  2973. - shlibpath_overrides_runpath=yes
  2974. - hardcode_into_libs=yes
  2975. - ;;
  2976. +fi
  2977. +rm -fr conftest*
  2978. +])# _LT_TRY_DLOPEN_SELF
  2979. -newsos6)
  2980. - version_type=linux
  2981. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2982. - shlibpath_var=LD_LIBRARY_PATH
  2983. - shlibpath_overrides_runpath=yes
  2984. - ;;
  2985. -nto-qnx*)
  2986. - version_type=linux
  2987. - need_lib_prefix=no
  2988. - need_version=no
  2989. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2990. - soname_spec='${libname}${release}${shared_ext}$major'
  2991. - shlibpath_var=LD_LIBRARY_PATH
  2992. - shlibpath_overrides_runpath=yes
  2993. - ;;
  2994. +# LT_SYS_DLOPEN_SELF
  2995. +# ------------------
  2996. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  2997. +[m4_require([_LT_HEADER_DLFCN])dnl
  2998. +if test "x$enable_dlopen" != xyes; then
  2999. + enable_dlopen=unknown
  3000. + enable_dlopen_self=unknown
  3001. + enable_dlopen_self_static=unknown
  3002. +else
  3003. + lt_cv_dlopen=no
  3004. + lt_cv_dlopen_libs=
  3005. -openbsd*)
  3006. - version_type=sunos
  3007. - sys_lib_dlsearch_path_spec="/usr/lib"
  3008. - need_lib_prefix=no
  3009. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  3010. case $host_os in
  3011. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  3012. - *) need_version=no ;;
  3013. - esac
  3014. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3015. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3016. - shlibpath_var=LD_LIBRARY_PATH
  3017. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3018. - case $host_os in
  3019. - openbsd2.[[89]] | openbsd2.[[89]].*)
  3020. - shlibpath_overrides_runpath=no
  3021. - ;;
  3022. - *)
  3023. - shlibpath_overrides_runpath=yes
  3024. - ;;
  3025. - esac
  3026. - else
  3027. - shlibpath_overrides_runpath=yes
  3028. - fi
  3029. - ;;
  3030. -
  3031. -os2*)
  3032. - libname_spec='$name'
  3033. - shrext_cmds=".dll"
  3034. - need_lib_prefix=no
  3035. - library_names_spec='$libname${shared_ext} $libname.a'
  3036. - dynamic_linker='OS/2 ld.exe'
  3037. - shlibpath_var=LIBPATH
  3038. - ;;
  3039. + beos*)
  3040. + lt_cv_dlopen="load_add_on"
  3041. + lt_cv_dlopen_libs=
  3042. + lt_cv_dlopen_self=yes
  3043. + ;;
  3044. -osf3* | osf4* | osf5*)
  3045. - version_type=osf
  3046. - need_lib_prefix=no
  3047. - need_version=no
  3048. - soname_spec='${libname}${release}${shared_ext}$major'
  3049. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3050. - shlibpath_var=LD_LIBRARY_PATH
  3051. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3052. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3053. - ;;
  3054. + mingw* | pw32* | cegcc*)
  3055. + lt_cv_dlopen="LoadLibrary"
  3056. + lt_cv_dlopen_libs=
  3057. + ;;
  3058. -solaris*)
  3059. - version_type=linux
  3060. - need_lib_prefix=no
  3061. - need_version=no
  3062. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3063. - soname_spec='${libname}${release}${shared_ext}$major'
  3064. - shlibpath_var=LD_LIBRARY_PATH
  3065. - shlibpath_overrides_runpath=yes
  3066. - hardcode_into_libs=yes
  3067. - # ldd complains unless libraries are executable
  3068. - postinstall_cmds='chmod +x $lib'
  3069. - ;;
  3070. + cygwin*)
  3071. + lt_cv_dlopen="dlopen"
  3072. + lt_cv_dlopen_libs=
  3073. + ;;
  3074. -sunos4*)
  3075. - version_type=sunos
  3076. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3077. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3078. - shlibpath_var=LD_LIBRARY_PATH
  3079. - shlibpath_overrides_runpath=yes
  3080. - if test "$with_gnu_ld" = yes; then
  3081. - need_lib_prefix=no
  3082. - fi
  3083. - need_version=yes
  3084. - ;;
  3085. + darwin*)
  3086. + # if libdl is installed we need to link against it
  3087. + AC_CHECK_LIB([dl], [dlopen],
  3088. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3089. + lt_cv_dlopen="dyld"
  3090. + lt_cv_dlopen_libs=
  3091. + lt_cv_dlopen_self=yes
  3092. + ])
  3093. + ;;
  3094. -sysv4 | sysv4.3*)
  3095. - version_type=linux
  3096. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3097. - soname_spec='${libname}${release}${shared_ext}$major'
  3098. - shlibpath_var=LD_LIBRARY_PATH
  3099. - case $host_vendor in
  3100. - sni)
  3101. - shlibpath_overrides_runpath=no
  3102. - need_lib_prefix=no
  3103. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  3104. - runpath_var=LD_RUN_PATH
  3105. - ;;
  3106. - siemens)
  3107. - need_lib_prefix=no
  3108. - ;;
  3109. - motorola)
  3110. - need_lib_prefix=no
  3111. - need_version=no
  3112. - shlibpath_overrides_runpath=no
  3113. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3114. - ;;
  3115. + *)
  3116. + AC_CHECK_FUNC([shl_load],
  3117. + [lt_cv_dlopen="shl_load"],
  3118. + [AC_CHECK_LIB([dld], [shl_load],
  3119. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3120. + [AC_CHECK_FUNC([dlopen],
  3121. + [lt_cv_dlopen="dlopen"],
  3122. + [AC_CHECK_LIB([dl], [dlopen],
  3123. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3124. + [AC_CHECK_LIB([svld], [dlopen],
  3125. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3126. + [AC_CHECK_LIB([dld], [dld_link],
  3127. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3128. + ])
  3129. + ])
  3130. + ])
  3131. + ])
  3132. + ])
  3133. + ;;
  3134. esac
  3135. - ;;
  3136. -
  3137. -sysv4*MP*)
  3138. - if test -d /usr/nec ;then
  3139. - version_type=linux
  3140. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3141. - soname_spec='$libname${shared_ext}.$major'
  3142. - shlibpath_var=LD_LIBRARY_PATH
  3143. - fi
  3144. - ;;
  3145. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3146. - version_type=freebsd-elf
  3147. - need_lib_prefix=no
  3148. - need_version=no
  3149. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3150. - soname_spec='${libname}${release}${shared_ext}$major'
  3151. - shlibpath_var=LD_LIBRARY_PATH
  3152. - hardcode_into_libs=yes
  3153. - if test "$with_gnu_ld" = yes; then
  3154. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3155. - shlibpath_overrides_runpath=no
  3156. + if test "x$lt_cv_dlopen" != xno; then
  3157. + enable_dlopen=yes
  3158. else
  3159. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3160. - shlibpath_overrides_runpath=yes
  3161. - case $host_os in
  3162. - sco3.2v5*)
  3163. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3164. - ;;
  3165. - esac
  3166. + enable_dlopen=no
  3167. fi
  3168. - sys_lib_dlsearch_path_spec='/usr/lib'
  3169. - ;;
  3170. -
  3171. -uts4*)
  3172. - version_type=linux
  3173. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3174. - soname_spec='${libname}${release}${shared_ext}$major'
  3175. - shlibpath_var=LD_LIBRARY_PATH
  3176. - ;;
  3177. -*)
  3178. - dynamic_linker=no
  3179. - ;;
  3180. -esac
  3181. -AC_MSG_RESULT([$dynamic_linker])
  3182. -test "$dynamic_linker" = no && can_build_shared=no
  3183. + case $lt_cv_dlopen in
  3184. + dlopen)
  3185. + save_CPPFLAGS="$CPPFLAGS"
  3186. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3187. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3188. -if test "$GCC" = yes; then
  3189. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3190. -fi
  3191. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3192. + save_LDFLAGS="$LDFLAGS"
  3193. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3194. + save_LIBS="$LIBS"
  3195. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3196. -# _LT_AC_TAGCONFIG
  3197. -# ----------------
  3198. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3199. -[AC_ARG_WITH([tags],
  3200. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3201. - [include additional configurations @<:@automatic@:>@])],
  3202. - [tagnames="$withval"])
  3203. -
  3204. -if test -f "$ltmain" && test -n "$tagnames"; then
  3205. - if test ! -f "${ofile}"; then
  3206. - AC_MSG_WARN([output file `$ofile' does not exist])
  3207. - fi
  3208. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3209. + lt_cv_dlopen_self, [dnl
  3210. + _LT_TRY_DLOPEN_SELF(
  3211. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3212. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3213. + ])
  3214. - if test -z "$LTCC"; then
  3215. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3216. - if test -z "$LTCC"; then
  3217. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3218. - else
  3219. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3220. + if test "x$lt_cv_dlopen_self" = xyes; then
  3221. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3222. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3223. + lt_cv_dlopen_self_static, [dnl
  3224. + _LT_TRY_DLOPEN_SELF(
  3225. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3226. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3227. + ])
  3228. fi
  3229. - fi
  3230. - if test -z "$LTCFLAGS"; then
  3231. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  3232. - fi
  3233. - # Extract list of available tagged configurations in $ofile.
  3234. - # Note that this assumes the entire list is on one line.
  3235. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3236. + CPPFLAGS="$save_CPPFLAGS"
  3237. + LDFLAGS="$save_LDFLAGS"
  3238. + LIBS="$save_LIBS"
  3239. + ;;
  3240. + esac
  3241. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3242. - for tagname in $tagnames; do
  3243. - IFS="$lt_save_ifs"
  3244. - # Check whether tagname contains only valid characters
  3245. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3246. - "") ;;
  3247. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3248. - ;;
  3249. - esac
  3250. + case $lt_cv_dlopen_self in
  3251. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3252. + *) enable_dlopen_self=unknown ;;
  3253. + esac
  3254. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3255. - then
  3256. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3257. - fi
  3258. + case $lt_cv_dlopen_self_static in
  3259. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3260. + *) enable_dlopen_self_static=unknown ;;
  3261. + esac
  3262. +fi
  3263. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3264. + [Whether dlopen is supported])
  3265. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3266. + [Whether dlopen of programs is supported])
  3267. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3268. + [Whether dlopen of statically linked programs is supported])
  3269. +])# LT_SYS_DLOPEN_SELF
  3270. +
  3271. +# Old name:
  3272. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3273. +dnl aclocal-1.4 backwards compatibility:
  3274. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3275. - # Update the list of available tags.
  3276. - if test -n "$tagname"; then
  3277. - echo appending configuration tag \"$tagname\" to $ofile
  3278. -
  3279. - case $tagname in
  3280. - CXX)
  3281. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3282. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3283. - (test "X$CXX" != "Xg++"))) ; then
  3284. - AC_LIBTOOL_LANG_CXX_CONFIG
  3285. - else
  3286. - tagname=""
  3287. - fi
  3288. - ;;
  3289. - F77)
  3290. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3291. - AC_LIBTOOL_LANG_F77_CONFIG
  3292. - else
  3293. - tagname=""
  3294. - fi
  3295. - ;;
  3296. +# _LT_COMPILER_C_O([TAGNAME])
  3297. +# ---------------------------
  3298. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3299. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3300. +m4_defun([_LT_COMPILER_C_O],
  3301. +[m4_require([_LT_DECL_SED])dnl
  3302. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3303. +m4_require([_LT_TAG_COMPILER])dnl
  3304. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3305. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3306. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3307. + $RM -r conftest 2>/dev/null
  3308. + mkdir conftest
  3309. + cd conftest
  3310. + mkdir out
  3311. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3312. - GCJ)
  3313. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3314. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3315. - else
  3316. - tagname=""
  3317. - fi
  3318. - ;;
  3319. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3320. + # Insert the option either (1) after the last *FLAGS variable, or
  3321. + # (2) before a word containing "conftest.", or (3) at the end.
  3322. + # Note that $ac_compile itself does not contain backslashes and begins
  3323. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3324. + lt_compile=`echo "$ac_compile" | $SED \
  3325. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3326. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3327. + -e 's:$: $lt_compiler_flag:'`
  3328. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3329. + (eval "$lt_compile" 2>out/conftest.err)
  3330. + ac_status=$?
  3331. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3332. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3333. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3334. + then
  3335. + # The compiler can only warn and ignore the option if not recognized
  3336. + # So say no if there are warnings
  3337. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3338. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3339. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3340. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3341. + fi
  3342. + fi
  3343. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3344. + $RM conftest*
  3345. + # SGI C++ compiler will create directory out/ii_files/ for
  3346. + # template instantiation
  3347. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3348. + $RM out/* && rmdir out
  3349. + cd ..
  3350. + $RM -r conftest
  3351. + $RM conftest*
  3352. +])
  3353. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3354. + [Does compiler simultaneously support -c and -o options?])
  3355. +])# _LT_COMPILER_C_O
  3356. - RC)
  3357. - AC_LIBTOOL_LANG_RC_CONFIG
  3358. - ;;
  3359. - *)
  3360. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3361. - ;;
  3362. - esac
  3363. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3364. +# ----------------------------------
  3365. +# Check to see if we can do hard links to lock some files if needed
  3366. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3367. +[m4_require([_LT_ENABLE_LOCK])dnl
  3368. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3369. +_LT_COMPILER_C_O([$1])
  3370. - # Append the new tag name to the list of available tags.
  3371. - if test -n "$tagname" ; then
  3372. - available_tags="$available_tags $tagname"
  3373. - fi
  3374. - fi
  3375. - done
  3376. - IFS="$lt_save_ifs"
  3377. -
  3378. - # Now substitute the updated list of available tags.
  3379. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3380. - mv "${ofile}T" "$ofile"
  3381. - chmod +x "$ofile"
  3382. - else
  3383. - rm -f "${ofile}T"
  3384. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3385. +hard_links="nottested"
  3386. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3387. + # do not overwrite the value of need_locks provided by the user
  3388. + AC_MSG_CHECKING([if we can lock with hard links])
  3389. + hard_links=yes
  3390. + $RM conftest*
  3391. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3392. + touch conftest.a
  3393. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3394. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3395. + AC_MSG_RESULT([$hard_links])
  3396. + if test "$hard_links" = no; then
  3397. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3398. + need_locks=warn
  3399. fi
  3400. +else
  3401. + need_locks=no
  3402. fi
  3403. -])# _LT_AC_TAGCONFIG
  3404. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3405. +])# _LT_COMPILER_FILE_LOCKS
  3406. -# AC_LIBTOOL_DLOPEN
  3407. -# -----------------
  3408. -# enable checks for dlopen support
  3409. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3410. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3411. -])# AC_LIBTOOL_DLOPEN
  3412. +# _LT_CHECK_OBJDIR
  3413. +# ----------------
  3414. +m4_defun([_LT_CHECK_OBJDIR],
  3415. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3416. +[rm -f .libs 2>/dev/null
  3417. +mkdir .libs 2>/dev/null
  3418. +if test -d .libs; then
  3419. + lt_cv_objdir=.libs
  3420. +else
  3421. + # MS-DOS does not allow filenames that begin with a dot.
  3422. + lt_cv_objdir=_libs
  3423. +fi
  3424. +rmdir .libs 2>/dev/null])
  3425. +objdir=$lt_cv_objdir
  3426. +_LT_DECL([], [objdir], [0],
  3427. + [The name of the directory that contains temporary libtool files])dnl
  3428. +m4_pattern_allow([LT_OBJDIR])dnl
  3429. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3430. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3431. +])# _LT_CHECK_OBJDIR
  3432. -# AC_LIBTOOL_WIN32_DLL
  3433. -# --------------------
  3434. -# declare package support for building win32 DLLs
  3435. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3436. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3437. -])# AC_LIBTOOL_WIN32_DLL
  3438. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3439. +# --------------------------------------
  3440. +# Check hardcoding attributes.
  3441. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3442. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3443. +_LT_TAGVAR(hardcode_action, $1)=
  3444. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3445. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3446. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3447. + # We can hardcode non-existent directories.
  3448. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3449. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3450. + # have to relink, otherwise we might link with an installed library
  3451. + # when we should be linking with a yet-to-be-installed one
  3452. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3453. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3454. + # Linking always hardcodes the temporary library directory.
  3455. + _LT_TAGVAR(hardcode_action, $1)=relink
  3456. + else
  3457. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3458. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3459. + fi
  3460. +else
  3461. + # We cannot hardcode anything, or else we can only hardcode existing
  3462. + # directories.
  3463. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3464. +fi
  3465. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3466. -# AC_ENABLE_SHARED([DEFAULT])
  3467. -# ---------------------------
  3468. -# implement the --enable-shared flag
  3469. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3470. -AC_DEFUN([AC_ENABLE_SHARED],
  3471. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3472. -AC_ARG_ENABLE([shared],
  3473. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3474. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3475. - [p=${PACKAGE-default}
  3476. - case $enableval in
  3477. - yes) enable_shared=yes ;;
  3478. - no) enable_shared=no ;;
  3479. - *)
  3480. - enable_shared=no
  3481. - # Look at the argument we got. We use all the common list separators.
  3482. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3483. - for pkg in $enableval; do
  3484. - IFS="$lt_save_ifs"
  3485. - if test "X$pkg" = "X$p"; then
  3486. - enable_shared=yes
  3487. - fi
  3488. - done
  3489. - IFS="$lt_save_ifs"
  3490. - ;;
  3491. - esac],
  3492. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3493. -])# AC_ENABLE_SHARED
  3494. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3495. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3496. + # Fast installation is not supported
  3497. + enable_fast_install=no
  3498. +elif test "$shlibpath_overrides_runpath" = yes ||
  3499. + test "$enable_shared" = no; then
  3500. + # Fast installation is not necessary
  3501. + enable_fast_install=needless
  3502. +fi
  3503. +_LT_TAGDECL([], [hardcode_action], [0],
  3504. + [How to hardcode a shared library path into an executable])
  3505. +])# _LT_LINKER_HARDCODE_LIBPATH
  3506. -# AC_DISABLE_SHARED
  3507. -# -----------------
  3508. -# set the default shared flag to --disable-shared
  3509. -AC_DEFUN([AC_DISABLE_SHARED],
  3510. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3511. -AC_ENABLE_SHARED(no)
  3512. -])# AC_DISABLE_SHARED
  3513. +# _LT_CMD_STRIPLIB
  3514. +# ----------------
  3515. +m4_defun([_LT_CMD_STRIPLIB],
  3516. +[m4_require([_LT_DECL_EGREP])
  3517. +striplib=
  3518. +old_striplib=
  3519. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3520. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3521. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3522. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3523. + AC_MSG_RESULT([yes])
  3524. +else
  3525. +# FIXME - insert some real tests, host_os isn't really good enough
  3526. + case $host_os in
  3527. + darwin*)
  3528. + if test -n "$STRIP" ; then
  3529. + striplib="$STRIP -x"
  3530. + old_striplib="$STRIP -S"
  3531. + AC_MSG_RESULT([yes])
  3532. + else
  3533. + AC_MSG_RESULT([no])
  3534. + fi
  3535. + ;;
  3536. + *)
  3537. + AC_MSG_RESULT([no])
  3538. + ;;
  3539. + esac
  3540. +fi
  3541. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3542. +_LT_DECL([], [striplib], [1])
  3543. +])# _LT_CMD_STRIPLIB
  3544. -# AC_ENABLE_STATIC([DEFAULT])
  3545. -# ---------------------------
  3546. -# implement the --enable-static flag
  3547. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3548. -AC_DEFUN([AC_ENABLE_STATIC],
  3549. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3550. -AC_ARG_ENABLE([static],
  3551. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3552. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3553. - [p=${PACKAGE-default}
  3554. - case $enableval in
  3555. - yes) enable_static=yes ;;
  3556. - no) enable_static=no ;;
  3557. - *)
  3558. - enable_static=no
  3559. - # Look at the argument we got. We use all the common list separators.
  3560. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3561. - for pkg in $enableval; do
  3562. - IFS="$lt_save_ifs"
  3563. - if test "X$pkg" = "X$p"; then
  3564. - enable_static=yes
  3565. - fi
  3566. - done
  3567. - IFS="$lt_save_ifs"
  3568. - ;;
  3569. - esac],
  3570. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3571. -])# AC_ENABLE_STATIC
  3572. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3573. +# -----------------------------
  3574. +# PORTME Fill in your ld.so characteristics
  3575. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3576. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3577. +m4_require([_LT_DECL_EGREP])dnl
  3578. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3579. +m4_require([_LT_DECL_OBJDUMP])dnl
  3580. +m4_require([_LT_DECL_SED])dnl
  3581. +AC_MSG_CHECKING([dynamic linker characteristics])
  3582. +m4_if([$1],
  3583. + [], [
  3584. +if test "$GCC" = yes; then
  3585. + case $host_os in
  3586. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3587. + *) lt_awk_arg="/^libraries:/" ;;
  3588. + esac
  3589. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3590. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3591. + # if the path contains ";" then we assume it to be the separator
  3592. + # otherwise default to the standard path separator (i.e. ":") - it is
  3593. + # assumed that no part of a normal pathname contains ";" but that should
  3594. + # okay in the real world where ";" in dirpaths is itself problematic.
  3595. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3596. + else
  3597. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3598. + fi
  3599. + # Ok, now we have the path, separated by spaces, we can step through it
  3600. + # and add multilib dir if necessary.
  3601. + lt_tmp_lt_search_path_spec=
  3602. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3603. + for lt_sys_path in $lt_search_path_spec; do
  3604. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3605. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3606. + else
  3607. + test -d "$lt_sys_path" && \
  3608. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3609. + fi
  3610. + done
  3611. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3612. +BEGIN {RS=" "; FS="/|\n";} {
  3613. + lt_foo="";
  3614. + lt_count=0;
  3615. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3616. + if ($lt_i != "" && $lt_i != ".") {
  3617. + if ($lt_i == "..") {
  3618. + lt_count++;
  3619. + } else {
  3620. + if (lt_count == 0) {
  3621. + lt_foo="/" $lt_i lt_foo;
  3622. + } else {
  3623. + lt_count--;
  3624. + }
  3625. + }
  3626. + }
  3627. + }
  3628. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3629. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3630. +}'`
  3631. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3632. +else
  3633. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3634. +fi])
  3635. +library_names_spec=
  3636. +libname_spec='lib$name'
  3637. +soname_spec=
  3638. +shrext_cmds=".so"
  3639. +postinstall_cmds=
  3640. +postuninstall_cmds=
  3641. +finish_cmds=
  3642. +finish_eval=
  3643. +shlibpath_var=
  3644. +shlibpath_overrides_runpath=unknown
  3645. +version_type=none
  3646. +dynamic_linker="$host_os ld.so"
  3647. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3648. +need_lib_prefix=unknown
  3649. +hardcode_into_libs=no
  3650. +# when you set need_version to no, make sure it does not cause -set_version
  3651. +# flags to be left without arguments
  3652. +need_version=unknown
  3653. -# AC_DISABLE_STATIC
  3654. -# -----------------
  3655. -# set the default static flag to --disable-static
  3656. -AC_DEFUN([AC_DISABLE_STATIC],
  3657. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3658. -AC_ENABLE_STATIC(no)
  3659. -])# AC_DISABLE_STATIC
  3660. +case $host_os in
  3661. +aix3*)
  3662. + version_type=linux
  3663. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3664. + shlibpath_var=LIBPATH
  3665. + # AIX 3 has no versioning support, so we append a major version to the name.
  3666. + soname_spec='${libname}${release}${shared_ext}$major'
  3667. + ;;
  3668. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3669. -# ---------------------------------
  3670. -# implement the --enable-fast-install flag
  3671. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3672. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3673. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3674. -AC_ARG_ENABLE([fast-install],
  3675. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3676. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3677. - [p=${PACKAGE-default}
  3678. - case $enableval in
  3679. - yes) enable_fast_install=yes ;;
  3680. - no) enable_fast_install=no ;;
  3681. - *)
  3682. - enable_fast_install=no
  3683. - # Look at the argument we got. We use all the common list separators.
  3684. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3685. - for pkg in $enableval; do
  3686. - IFS="$lt_save_ifs"
  3687. - if test "X$pkg" = "X$p"; then
  3688. - enable_fast_install=yes
  3689. - fi
  3690. - done
  3691. - IFS="$lt_save_ifs"
  3692. +aix[[4-9]]*)
  3693. + version_type=linux
  3694. + need_lib_prefix=no
  3695. + need_version=no
  3696. + hardcode_into_libs=yes
  3697. + if test "$host_cpu" = ia64; then
  3698. + # AIX 5 supports IA64
  3699. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3700. + shlibpath_var=LD_LIBRARY_PATH
  3701. + else
  3702. + # With GCC up to 2.95.x, collect2 would create an import file
  3703. + # for dependence libraries. The import file would start with
  3704. + # the line `#! .'. This would cause the generated library to
  3705. + # depend on `.', always an invalid library. This was fixed in
  3706. + # development snapshots of GCC prior to 3.0.
  3707. + case $host_os in
  3708. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3709. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3710. + echo ' yes '
  3711. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3712. + :
  3713. + else
  3714. + can_build_shared=no
  3715. + fi
  3716. ;;
  3717. - esac],
  3718. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3719. -])# AC_ENABLE_FAST_INSTALL
  3720. -
  3721. + esac
  3722. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3723. + # soname into executable. Probably we can add versioning support to
  3724. + # collect2, so additional links can be useful in future.
  3725. + if test "$aix_use_runtimelinking" = yes; then
  3726. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3727. + # instead of lib<name>.a to let people know that these are not
  3728. + # typical AIX shared libraries.
  3729. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3730. + else
  3731. + # We preserve .a as extension for shared libraries through AIX4.2
  3732. + # and later when we are not doing run time linking.
  3733. + library_names_spec='${libname}${release}.a $libname.a'
  3734. + soname_spec='${libname}${release}${shared_ext}$major'
  3735. + fi
  3736. + shlibpath_var=LIBPATH
  3737. + fi
  3738. + ;;
  3739. -# AC_DISABLE_FAST_INSTALL
  3740. -# -----------------------
  3741. -# set the default to --disable-fast-install
  3742. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3743. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3744. -AC_ENABLE_FAST_INSTALL(no)
  3745. -])# AC_DISABLE_FAST_INSTALL
  3746. +amigaos*)
  3747. + case $host_cpu in
  3748. + powerpc)
  3749. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  3750. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  3751. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3752. + ;;
  3753. + m68k)
  3754. + library_names_spec='$libname.ixlibrary $libname.a'
  3755. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3756. + 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'
  3757. + ;;
  3758. + esac
  3759. + ;;
  3760. +beos*)
  3761. + library_names_spec='${libname}${shared_ext}'
  3762. + dynamic_linker="$host_os ld.so"
  3763. + shlibpath_var=LIBRARY_PATH
  3764. + ;;
  3765. -# AC_LIBTOOL_PICMODE([MODE])
  3766. -# --------------------------
  3767. -# implement the --with-pic flag
  3768. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3769. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3770. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3771. -pic_mode=ifelse($#,1,$1,default)
  3772. -])# AC_LIBTOOL_PICMODE
  3773. +bsdi[[45]]*)
  3774. + version_type=linux
  3775. + need_version=no
  3776. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3777. + soname_spec='${libname}${release}${shared_ext}$major'
  3778. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3779. + shlibpath_var=LD_LIBRARY_PATH
  3780. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3781. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3782. + # the default ld.so.conf also contains /usr/contrib/lib and
  3783. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3784. + # libtool to hard-code these into programs
  3785. + ;;
  3786. +cygwin* | mingw* | pw32* | cegcc*)
  3787. + version_type=windows
  3788. + shrext_cmds=".dll"
  3789. + need_version=no
  3790. + need_lib_prefix=no
  3791. -# AC_PROG_EGREP
  3792. -# -------------
  3793. -# This is predefined starting with Autoconf 2.54, so this conditional
  3794. -# definition can be removed once we require Autoconf 2.54 or later.
  3795. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3796. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3797. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3798. - then ac_cv_prog_egrep='grep -E'
  3799. - else ac_cv_prog_egrep='egrep'
  3800. - fi])
  3801. - EGREP=$ac_cv_prog_egrep
  3802. - AC_SUBST([EGREP])
  3803. -])])
  3804. + case $GCC,$host_os in
  3805. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  3806. + library_names_spec='$libname.dll.a'
  3807. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3808. + postinstall_cmds='base_file=`basename \${file}`~
  3809. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  3810. + dldir=$destdir/`dirname \$dlpath`~
  3811. + test -d \$dldir || mkdir -p \$dldir~
  3812. + $install_prog $dir/$dlname \$dldir/$dlname~
  3813. + chmod a+x \$dldir/$dlname~
  3814. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  3815. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  3816. + fi'
  3817. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3818. + dlpath=$dir/\$dldll~
  3819. + $RM \$dlpath'
  3820. + shlibpath_overrides_runpath=yes
  3821. + case $host_os in
  3822. + cygwin*)
  3823. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3824. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3825. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3826. + ;;
  3827. + mingw* | cegcc*)
  3828. + # MinGW DLLs use traditional 'lib' prefix
  3829. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3830. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3831. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  3832. + # It is most probably a Windows format PATH printed by
  3833. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3834. + # path with ; separators, and with drive letters. We can handle the
  3835. + # drive letters (cygwin fileutils understands them), so leave them,
  3836. + # especially as we might pass files found there to a mingw objdump,
  3837. + # which wouldn't understand a cygwinified path. Ahh.
  3838. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3839. + else
  3840. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3841. + fi
  3842. + ;;
  3843. + pw32*)
  3844. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  3845. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3846. + ;;
  3847. + esac
  3848. + ;;
  3849. -# AC_PATH_TOOL_PREFIX
  3850. -# -------------------
  3851. -# find a file program which can recognise shared library
  3852. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3853. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3854. -AC_MSG_CHECKING([for $1])
  3855. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3856. -[case $MAGIC_CMD in
  3857. -[[\\/*] | ?:[\\/]*])
  3858. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3859. + *)
  3860. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  3861. + ;;
  3862. + esac
  3863. + dynamic_linker='Win32 ld.exe'
  3864. + # FIXME: first we should search . and the directory the executable is in
  3865. + shlibpath_var=PATH
  3866. ;;
  3867. -*)
  3868. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3869. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3870. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3871. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3872. -dnl not every word. This closes a longstanding sh security hole.
  3873. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3874. - for ac_dir in $ac_dummy; do
  3875. - IFS="$lt_save_ifs"
  3876. - test -z "$ac_dir" && ac_dir=.
  3877. - if test -f $ac_dir/$1; then
  3878. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3879. - if test -n "$file_magic_test_file"; then
  3880. - case $deplibs_check_method in
  3881. - "file_magic "*)
  3882. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3883. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3884. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3885. - $EGREP "$file_magic_regex" > /dev/null; then
  3886. - :
  3887. - else
  3888. - cat <<EOF 1>&2
  3889. -*** Warning: the command libtool uses to detect shared libraries,
  3890. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3891. -*** The result is that libtool may fail to recognize shared libraries
  3892. -*** as such. This will affect the creation of libtool libraries that
  3893. -*** depend on shared libraries, but programs linked with such libtool
  3894. -*** libraries will work regardless of this problem. Nevertheless, you
  3895. -*** may want to report the problem to your system manager and/or to
  3896. -*** bug-libtool@gnu.org
  3897. +darwin* | rhapsody*)
  3898. + dynamic_linker="$host_os dyld"
  3899. + version_type=darwin
  3900. + need_lib_prefix=no
  3901. + need_version=no
  3902. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  3903. + soname_spec='${libname}${release}${major}$shared_ext'
  3904. + shlibpath_overrides_runpath=yes
  3905. + shlibpath_var=DYLD_LIBRARY_PATH
  3906. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  3907. +m4_if([$1], [],[
  3908. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  3909. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  3910. + ;;
  3911. -EOF
  3912. - fi ;;
  3913. - esac
  3914. - fi
  3915. - break
  3916. - fi
  3917. - done
  3918. - IFS="$lt_save_ifs"
  3919. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3920. +dgux*)
  3921. + version_type=linux
  3922. + need_lib_prefix=no
  3923. + need_version=no
  3924. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  3925. + soname_spec='${libname}${release}${shared_ext}$major'
  3926. + shlibpath_var=LD_LIBRARY_PATH
  3927. ;;
  3928. -esac])
  3929. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3930. -if test -n "$MAGIC_CMD"; then
  3931. - AC_MSG_RESULT($MAGIC_CMD)
  3932. -else
  3933. - AC_MSG_RESULT(no)
  3934. -fi
  3935. -])# AC_PATH_TOOL_PREFIX
  3936. +freebsd1*)
  3937. + dynamic_linker=no
  3938. + ;;
  3939. -# AC_PATH_MAGIC
  3940. -# -------------
  3941. -# find a file program which can recognise a shared library
  3942. -AC_DEFUN([AC_PATH_MAGIC],
  3943. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3944. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3945. - if test -n "$ac_tool_prefix"; then
  3946. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3947. +freebsd* | dragonfly*)
  3948. + # DragonFly does not have aout. When/if they implement a new
  3949. + # versioning mechanism, adjust this.
  3950. + if test -x /usr/bin/objformat; then
  3951. + objformat=`/usr/bin/objformat`
  3952. else
  3953. - MAGIC_CMD=:
  3954. + case $host_os in
  3955. + freebsd[[123]]*) objformat=aout ;;
  3956. + *) objformat=elf ;;
  3957. + esac
  3958. fi
  3959. -fi
  3960. -])# AC_PATH_MAGIC
  3961. -
  3962. -
  3963. -# AC_PROG_LD
  3964. -# ----------
  3965. -# find the pathname to the GNU or non-GNU linker
  3966. -AC_DEFUN([AC_PROG_LD],
  3967. -[AC_ARG_WITH([gnu-ld],
  3968. - [AC_HELP_STRING([--with-gnu-ld],
  3969. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3970. - [test "$withval" = no || with_gnu_ld=yes],
  3971. - [with_gnu_ld=no])
  3972. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3973. -AC_REQUIRE([AC_PROG_CC])dnl
  3974. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3975. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3976. -ac_prog=ld
  3977. -if test "$GCC" = yes; then
  3978. - # Check if gcc -print-prog-name=ld gives a path.
  3979. - AC_MSG_CHECKING([for ld used by $CC])
  3980. - case $host in
  3981. - *-*-mingw*)
  3982. - # gcc leaves a trailing carriage return which upsets mingw
  3983. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3984. - *)
  3985. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3986. - esac
  3987. - case $ac_prog in
  3988. - # Accept absolute paths.
  3989. - [[\\/]]* | ?:[[\\/]]*)
  3990. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3991. - # Canonicalize the pathname of ld
  3992. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3993. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3994. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3995. - done
  3996. - test -z "$LD" && LD="$ac_prog"
  3997. + version_type=freebsd-$objformat
  3998. + case $version_type in
  3999. + freebsd-elf*)
  4000. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4001. + need_version=no
  4002. + need_lib_prefix=no
  4003. ;;
  4004. - "")
  4005. - # If it fails, then pretend we aren't using GCC.
  4006. - ac_prog=ld
  4007. + freebsd-*)
  4008. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4009. + need_version=yes
  4010. + ;;
  4011. + esac
  4012. + shlibpath_var=LD_LIBRARY_PATH
  4013. + case $host_os in
  4014. + freebsd2*)
  4015. + shlibpath_overrides_runpath=yes
  4016. ;;
  4017. - *)
  4018. - # If it is relative, then search for the first ld in PATH.
  4019. - with_gnu_ld=unknown
  4020. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4021. + shlibpath_overrides_runpath=yes
  4022. + hardcode_into_libs=yes
  4023. + ;;
  4024. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4025. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4026. + shlibpath_overrides_runpath=no
  4027. + hardcode_into_libs=yes
  4028. + ;;
  4029. + *) # from 4.6 on, and DragonFly
  4030. + shlibpath_overrides_runpath=yes
  4031. + hardcode_into_libs=yes
  4032. ;;
  4033. esac
  4034. -elif test "$with_gnu_ld" = yes; then
  4035. - AC_MSG_CHECKING([for GNU ld])
  4036. -else
  4037. - AC_MSG_CHECKING([for non-GNU ld])
  4038. -fi
  4039. -AC_CACHE_VAL(lt_cv_path_LD,
  4040. -[if test -z "$LD"; then
  4041. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4042. - for ac_dir in $PATH; do
  4043. - IFS="$lt_save_ifs"
  4044. - test -z "$ac_dir" && ac_dir=.
  4045. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4046. - lt_cv_path_LD="$ac_dir/$ac_prog"
  4047. - # Check to see if the program is GNU ld. I'd rather use --version,
  4048. - # but apparently some variants of GNU ld only accept -v.
  4049. - # Break only if it was the GNU/non-GNU ld that we prefer.
  4050. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4051. - *GNU* | *'with BFD'*)
  4052. - test "$with_gnu_ld" != no && break
  4053. - ;;
  4054. - *)
  4055. - test "$with_gnu_ld" != yes && break
  4056. - ;;
  4057. - esac
  4058. - fi
  4059. - done
  4060. - IFS="$lt_save_ifs"
  4061. -else
  4062. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4063. -fi])
  4064. -LD="$lt_cv_path_LD"
  4065. -if test -n "$LD"; then
  4066. - AC_MSG_RESULT($LD)
  4067. -else
  4068. - AC_MSG_RESULT(no)
  4069. -fi
  4070. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  4071. -AC_PROG_LD_GNU
  4072. -])# AC_PROG_LD
  4073. -
  4074. -
  4075. -# AC_PROG_LD_GNU
  4076. -# --------------
  4077. -AC_DEFUN([AC_PROG_LD_GNU],
  4078. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  4079. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  4080. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  4081. -case `$LD -v 2>&1 </dev/null` in
  4082. -*GNU* | *'with BFD'*)
  4083. - lt_cv_prog_gnu_ld=yes
  4084. - ;;
  4085. -*)
  4086. - lt_cv_prog_gnu_ld=no
  4087. ;;
  4088. -esac])
  4089. -with_gnu_ld=$lt_cv_prog_gnu_ld
  4090. -])# AC_PROG_LD_GNU
  4091. +gnu*)
  4092. + version_type=linux
  4093. + need_lib_prefix=no
  4094. + need_version=no
  4095. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4096. + soname_spec='${libname}${release}${shared_ext}$major'
  4097. + shlibpath_var=LD_LIBRARY_PATH
  4098. + hardcode_into_libs=yes
  4099. + ;;
  4100. -# AC_PROG_LD_RELOAD_FLAG
  4101. -# ----------------------
  4102. -# find reload flag for linker
  4103. -# -- PORTME Some linkers may need a different reload flag.
  4104. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  4105. -[AC_CACHE_CHECK([for $LD option to reload object files],
  4106. - lt_cv_ld_reload_flag,
  4107. - [lt_cv_ld_reload_flag='-r'])
  4108. -reload_flag=$lt_cv_ld_reload_flag
  4109. -case $reload_flag in
  4110. -"" | " "*) ;;
  4111. -*) reload_flag=" $reload_flag" ;;
  4112. -esac
  4113. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4114. -case $host_os in
  4115. - darwin*)
  4116. - if test "$GCC" = yes; then
  4117. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4118. - else
  4119. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4120. - fi
  4121. - ;;
  4122. -esac
  4123. -])# AC_PROG_LD_RELOAD_FLAG
  4124. -
  4125. -
  4126. -# AC_DEPLIBS_CHECK_METHOD
  4127. -# -----------------------
  4128. -# how to check for library dependencies
  4129. -# -- PORTME fill in with the dynamic library characteristics
  4130. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  4131. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  4132. -lt_cv_deplibs_check_method,
  4133. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  4134. -lt_cv_file_magic_test_file=
  4135. -lt_cv_deplibs_check_method='unknown'
  4136. -# Need to set the preceding variable on all platforms that support
  4137. -# interlibrary dependencies.
  4138. -# 'none' -- dependencies not supported.
  4139. -# `unknown' -- same as none, but documents that we really don't know.
  4140. -# 'pass_all' -- all dependencies passed with no checks.
  4141. -# 'test_compile' -- check by making test program.
  4142. -# 'file_magic [[regex]]' -- check by looking for files in library path
  4143. -# which responds to the $file_magic_cmd with a given extended regex.
  4144. -# If you have `file' or equivalent on your system and you're not sure
  4145. -# whether `pass_all' will *always* work, you probably want this one.
  4146. -
  4147. -case $host_os in
  4148. -aix4* | aix5*)
  4149. - lt_cv_deplibs_check_method=pass_all
  4150. - ;;
  4151. -
  4152. -beos*)
  4153. - lt_cv_deplibs_check_method=pass_all
  4154. - ;;
  4155. -
  4156. -bsdi[[45]]*)
  4157. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  4158. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  4159. - lt_cv_file_magic_test_file=/shlib/libc.so
  4160. - ;;
  4161. -
  4162. -cygwin*)
  4163. - # func_win32_libid is a shell function defined in ltmain.sh
  4164. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4165. - lt_cv_file_magic_cmd='func_win32_libid'
  4166. - ;;
  4167. -
  4168. -mingw* | pw32*)
  4169. - # Base MSYS/MinGW do not provide the 'file' command needed by
  4170. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4171. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4172. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  4173. - ;;
  4174. -
  4175. -darwin* | rhapsody*)
  4176. - lt_cv_deplibs_check_method=pass_all
  4177. - ;;
  4178. -
  4179. -freebsd* | kfreebsd*-gnu | dragonfly*)
  4180. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4181. - case $host_cpu in
  4182. - i*86 )
  4183. - # Not sure whether the presence of OpenBSD here was a mistake.
  4184. - # Let's accept both of them until this is cleared up.
  4185. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  4186. - lt_cv_file_magic_cmd=/usr/bin/file
  4187. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4188. - ;;
  4189. - esac
  4190. - else
  4191. - lt_cv_deplibs_check_method=pass_all
  4192. - fi
  4193. - ;;
  4194. -
  4195. -gnu*)
  4196. - lt_cv_deplibs_check_method=pass_all
  4197. - ;;
  4198. -
  4199. -hpux10.20* | hpux11*)
  4200. - lt_cv_file_magic_cmd=/usr/bin/file
  4201. +hpux9* | hpux10* | hpux11*)
  4202. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4203. + # link against other versions.
  4204. + version_type=sunos
  4205. + need_lib_prefix=no
  4206. + need_version=no
  4207. case $host_cpu in
  4208. ia64*)
  4209. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4210. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4211. + shrext_cmds='.so'
  4212. + hardcode_into_libs=yes
  4213. + dynamic_linker="$host_os dld.so"
  4214. + shlibpath_var=LD_LIBRARY_PATH
  4215. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4216. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4217. + soname_spec='${libname}${release}${shared_ext}$major'
  4218. + if test "X$HPUX_IA64_MODE" = X32; then
  4219. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4220. + else
  4221. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4222. + fi
  4223. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4224. ;;
  4225. hppa*64*)
  4226. - [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]']
  4227. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4228. + shrext_cmds='.sl'
  4229. + hardcode_into_libs=yes
  4230. + dynamic_linker="$host_os dld.sl"
  4231. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4232. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4233. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4234. + soname_spec='${libname}${release}${shared_ext}$major'
  4235. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4236. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4237. ;;
  4238. *)
  4239. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4240. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4241. + shrext_cmds='.sl'
  4242. + dynamic_linker="$host_os dld.sl"
  4243. + shlibpath_var=SHLIB_PATH
  4244. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4245. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4246. + soname_spec='${libname}${release}${shared_ext}$major'
  4247. ;;
  4248. esac
  4249. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4250. + postinstall_cmds='chmod 555 $lib'
  4251. ;;
  4252. -interix3*)
  4253. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4254. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4255. +interix[[3-9]]*)
  4256. + version_type=linux
  4257. + need_lib_prefix=no
  4258. + need_version=no
  4259. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4260. + soname_spec='${libname}${release}${shared_ext}$major'
  4261. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4262. + shlibpath_var=LD_LIBRARY_PATH
  4263. + shlibpath_overrides_runpath=no
  4264. + hardcode_into_libs=yes
  4265. ;;
  4266. irix5* | irix6* | nonstopux*)
  4267. - case $LD in
  4268. - *-32|*"-32 ") libmagic=32-bit;;
  4269. - *-n32|*"-n32 ") libmagic=N32;;
  4270. - *-64|*"-64 ") libmagic=64-bit;;
  4271. - *) libmagic=never-match;;
  4272. + case $host_os in
  4273. + nonstopux*) version_type=nonstopux ;;
  4274. + *)
  4275. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4276. + version_type=linux
  4277. + else
  4278. + version_type=irix
  4279. + fi ;;
  4280. esac
  4281. - lt_cv_deplibs_check_method=pass_all
  4282. + need_lib_prefix=no
  4283. + need_version=no
  4284. + soname_spec='${libname}${release}${shared_ext}$major'
  4285. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4286. + case $host_os in
  4287. + irix5* | nonstopux*)
  4288. + libsuff= shlibsuff=
  4289. + ;;
  4290. + *)
  4291. + case $LD in # libtool.m4 will add one of these switches to LD
  4292. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4293. + libsuff= shlibsuff= libmagic=32-bit;;
  4294. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4295. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4296. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4297. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4298. + *) libsuff= shlibsuff= libmagic=never-match;;
  4299. + esac
  4300. + ;;
  4301. + esac
  4302. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4303. + shlibpath_overrides_runpath=no
  4304. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4305. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4306. + hardcode_into_libs=yes
  4307. ;;
  4308. -# This must be Linux ELF.
  4309. -linux*)
  4310. - lt_cv_deplibs_check_method=pass_all
  4311. +# No shared lib support for Linux oldld, aout, or coff.
  4312. +linux*oldld* | linux*aout* | linux*coff*)
  4313. + dynamic_linker=no
  4314. ;;
  4315. -netbsd*)
  4316. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4317. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4318. - else
  4319. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4320. +# This must be Linux ELF.
  4321. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4322. + version_type=linux
  4323. + need_lib_prefix=no
  4324. + need_version=no
  4325. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4326. + soname_spec='${libname}${release}${shared_ext}$major'
  4327. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4328. + shlibpath_var=LD_LIBRARY_PATH
  4329. + shlibpath_overrides_runpath=no
  4330. + # Some binutils ld are patched to set DT_RUNPATH
  4331. + save_LDFLAGS=$LDFLAGS
  4332. + save_libdir=$libdir
  4333. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4334. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4335. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4336. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4337. + [shlibpath_overrides_runpath=yes])])
  4338. + LDFLAGS=$save_LDFLAGS
  4339. + libdir=$save_libdir
  4340. +
  4341. + # This implies no fast_install, which is unacceptable.
  4342. + # Some rework will be needed to allow for fast_install
  4343. + # before this can be enabled.
  4344. + hardcode_into_libs=yes
  4345. +
  4346. + # Append ld.so.conf contents to the search path
  4347. + if test -f /etc/ld.so.conf; then
  4348. + 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' ' '`
  4349. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4350. fi
  4351. - ;;
  4352. -newos6*)
  4353. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4354. - lt_cv_file_magic_cmd=/usr/bin/file
  4355. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4356. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4357. + # powerpc, because MkLinux only supported shared libraries with the
  4358. + # GNU dynamic linker. Since this was broken with cross compilers,
  4359. + # most powerpc-linux boxes support dynamic linking these days and
  4360. + # people can always --disable-shared, the test was removed, and we
  4361. + # assume the GNU/Linux dynamic linker is in use.
  4362. + dynamic_linker='GNU/Linux ld.so'
  4363. ;;
  4364. -nto-qnx*)
  4365. - lt_cv_deplibs_check_method=unknown
  4366. +netbsdelf*-gnu)
  4367. + version_type=linux
  4368. + need_lib_prefix=no
  4369. + need_version=no
  4370. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4371. + soname_spec='${libname}${release}${shared_ext}$major'
  4372. + shlibpath_var=LD_LIBRARY_PATH
  4373. + shlibpath_overrides_runpath=no
  4374. + hardcode_into_libs=yes
  4375. + dynamic_linker='NetBSD ld.elf_so'
  4376. ;;
  4377. -openbsd*)
  4378. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4379. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4380. +netbsd*)
  4381. + version_type=sunos
  4382. + need_lib_prefix=no
  4383. + need_version=no
  4384. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4385. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4386. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4387. + dynamic_linker='NetBSD (a.out) ld.so'
  4388. else
  4389. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4390. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4391. + soname_spec='${libname}${release}${shared_ext}$major'
  4392. + dynamic_linker='NetBSD ld.elf_so'
  4393. fi
  4394. + shlibpath_var=LD_LIBRARY_PATH
  4395. + shlibpath_overrides_runpath=yes
  4396. + hardcode_into_libs=yes
  4397. ;;
  4398. -osf3* | osf4* | osf5*)
  4399. - lt_cv_deplibs_check_method=pass_all
  4400. +newsos6)
  4401. + version_type=linux
  4402. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4403. + shlibpath_var=LD_LIBRARY_PATH
  4404. + shlibpath_overrides_runpath=yes
  4405. ;;
  4406. -solaris*)
  4407. - lt_cv_deplibs_check_method=pass_all
  4408. +*nto* | *qnx*)
  4409. + version_type=qnx
  4410. + need_lib_prefix=no
  4411. + need_version=no
  4412. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4413. + soname_spec='${libname}${release}${shared_ext}$major'
  4414. + shlibpath_var=LD_LIBRARY_PATH
  4415. + shlibpath_overrides_runpath=no
  4416. + hardcode_into_libs=yes
  4417. + dynamic_linker='ldqnx.so'
  4418. ;;
  4419. -sysv4 | sysv4.3*)
  4420. - case $host_vendor in
  4421. - motorola)
  4422. - 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]]'
  4423. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4424. - ;;
  4425. - ncr)
  4426. - lt_cv_deplibs_check_method=pass_all
  4427. - ;;
  4428. - sequent)
  4429. - lt_cv_file_magic_cmd='/bin/file'
  4430. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4431. - ;;
  4432. - sni)
  4433. - lt_cv_file_magic_cmd='/bin/file'
  4434. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4435. - lt_cv_file_magic_test_file=/lib/libc.so
  4436. - ;;
  4437. - siemens)
  4438. - lt_cv_deplibs_check_method=pass_all
  4439. - ;;
  4440. - pc)
  4441. - lt_cv_deplibs_check_method=pass_all
  4442. - ;;
  4443. +openbsd*)
  4444. + version_type=sunos
  4445. + sys_lib_dlsearch_path_spec="/usr/lib"
  4446. + need_lib_prefix=no
  4447. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4448. + case $host_os in
  4449. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4450. + *) need_version=no ;;
  4451. esac
  4452. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4453. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4454. + shlibpath_var=LD_LIBRARY_PATH
  4455. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4456. + case $host_os in
  4457. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4458. + shlibpath_overrides_runpath=no
  4459. + ;;
  4460. + *)
  4461. + shlibpath_overrides_runpath=yes
  4462. + ;;
  4463. + esac
  4464. + else
  4465. + shlibpath_overrides_runpath=yes
  4466. + fi
  4467. ;;
  4468. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4469. - lt_cv_deplibs_check_method=pass_all
  4470. +os2*)
  4471. + libname_spec='$name'
  4472. + shrext_cmds=".dll"
  4473. + need_lib_prefix=no
  4474. + library_names_spec='$libname${shared_ext} $libname.a'
  4475. + dynamic_linker='OS/2 ld.exe'
  4476. + shlibpath_var=LIBPATH
  4477. ;;
  4478. -esac
  4479. -])
  4480. -file_magic_cmd=$lt_cv_file_magic_cmd
  4481. -deplibs_check_method=$lt_cv_deplibs_check_method
  4482. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4483. -])# AC_DEPLIBS_CHECK_METHOD
  4484. -
  4485. -
  4486. -# AC_PROG_NM
  4487. -# ----------
  4488. -# find the pathname to a BSD-compatible name lister
  4489. -AC_DEFUN([AC_PROG_NM],
  4490. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4491. -[if test -n "$NM"; then
  4492. - # Let the user override the test.
  4493. - lt_cv_path_NM="$NM"
  4494. -else
  4495. - lt_nm_to_check="${ac_tool_prefix}nm"
  4496. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4497. - lt_nm_to_check="$lt_nm_to_check nm"
  4498. - fi
  4499. - for lt_tmp_nm in $lt_nm_to_check; do
  4500. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4501. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4502. - IFS="$lt_save_ifs"
  4503. - test -z "$ac_dir" && ac_dir=.
  4504. - tmp_nm="$ac_dir/$lt_tmp_nm"
  4505. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4506. - # Check to see if the nm accepts a BSD-compat flag.
  4507. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4508. - # nm: unknown option "B" ignored
  4509. - # Tru64's nm complains that /dev/null is an invalid object file
  4510. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4511. - */dev/null* | *'Invalid file or object type'*)
  4512. - lt_cv_path_NM="$tmp_nm -B"
  4513. - break
  4514. - ;;
  4515. - *)
  4516. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4517. - */dev/null*)
  4518. - lt_cv_path_NM="$tmp_nm -p"
  4519. - break
  4520. - ;;
  4521. - *)
  4522. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4523. - continue # so that we can try to find one that supports BSD flags
  4524. - ;;
  4525. - esac
  4526. - ;;
  4527. - esac
  4528. - fi
  4529. - done
  4530. - IFS="$lt_save_ifs"
  4531. - done
  4532. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4533. -fi])
  4534. -NM="$lt_cv_path_NM"
  4535. -])# AC_PROG_NM
  4536. -
  4537. -# AC_CHECK_LIBM
  4538. -# -------------
  4539. -# check for math library
  4540. -AC_DEFUN([AC_CHECK_LIBM],
  4541. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4542. -LIBM=
  4543. -case $host in
  4544. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4545. - # These system don't have libm, or don't need it
  4546. +osf3* | osf4* | osf5*)
  4547. + version_type=osf
  4548. + need_lib_prefix=no
  4549. + need_version=no
  4550. + soname_spec='${libname}${release}${shared_ext}$major'
  4551. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4552. + shlibpath_var=LD_LIBRARY_PATH
  4553. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4554. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4555. ;;
  4556. -*-ncr-sysv4.3*)
  4557. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4558. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4559. +
  4560. +rdos*)
  4561. + dynamic_linker=no
  4562. ;;
  4563. -*)
  4564. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4565. +
  4566. +solaris*)
  4567. + version_type=linux
  4568. + need_lib_prefix=no
  4569. + need_version=no
  4570. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4571. + soname_spec='${libname}${release}${shared_ext}$major'
  4572. + shlibpath_var=LD_LIBRARY_PATH
  4573. + shlibpath_overrides_runpath=yes
  4574. + hardcode_into_libs=yes
  4575. + # ldd complains unless libraries are executable
  4576. + postinstall_cmds='chmod +x $lib'
  4577. ;;
  4578. -esac
  4579. -])# AC_CHECK_LIBM
  4580. +sunos4*)
  4581. + version_type=sunos
  4582. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4583. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4584. + shlibpath_var=LD_LIBRARY_PATH
  4585. + shlibpath_overrides_runpath=yes
  4586. + if test "$with_gnu_ld" = yes; then
  4587. + need_lib_prefix=no
  4588. + fi
  4589. + need_version=yes
  4590. + ;;
  4591. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4592. -# -----------------------------------
  4593. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4594. -# LTDLINCL to the include flags for the libltdl header and adds
  4595. -# --enable-ltdl-convenience to the configure arguments. Note that
  4596. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4597. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  4598. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4599. -# (note the single quotes!). If your package is not flat and you're not
  4600. -# using automake, define top_builddir and top_srcdir appropriately in
  4601. -# the Makefiles.
  4602. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4603. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4604. - case $enable_ltdl_convenience in
  4605. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4606. - "") enable_ltdl_convenience=yes
  4607. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4608. - esac
  4609. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4610. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4611. - # For backwards non-gettext consistent compatibility...
  4612. - INCLTDL="$LTDLINCL"
  4613. -])# AC_LIBLTDL_CONVENIENCE
  4614. +sysv4 | sysv4.3*)
  4615. + version_type=linux
  4616. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4617. + soname_spec='${libname}${release}${shared_ext}$major'
  4618. + shlibpath_var=LD_LIBRARY_PATH
  4619. + case $host_vendor in
  4620. + sni)
  4621. + shlibpath_overrides_runpath=no
  4622. + need_lib_prefix=no
  4623. + runpath_var=LD_RUN_PATH
  4624. + ;;
  4625. + siemens)
  4626. + need_lib_prefix=no
  4627. + ;;
  4628. + motorola)
  4629. + need_lib_prefix=no
  4630. + need_version=no
  4631. + shlibpath_overrides_runpath=no
  4632. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4633. + ;;
  4634. + esac
  4635. + ;;
  4636. +sysv4*MP*)
  4637. + if test -d /usr/nec ;then
  4638. + version_type=linux
  4639. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4640. + soname_spec='$libname${shared_ext}.$major'
  4641. + shlibpath_var=LD_LIBRARY_PATH
  4642. + fi
  4643. + ;;
  4644. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4645. -# -----------------------------------
  4646. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4647. -# LTDLINCL to the include flags for the libltdl header and adds
  4648. -# --enable-ltdl-install to the configure arguments. Note that
  4649. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4650. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4651. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4652. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4653. -# flat and you're not using automake, define top_builddir and top_srcdir
  4654. -# appropriately in the Makefiles.
  4655. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4656. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4657. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4658. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4659. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4660. - [if test x"$enable_ltdl_install" = xno; then
  4661. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4662. - else
  4663. - enable_ltdl_install=yes
  4664. - fi
  4665. - ])
  4666. - if test x"$enable_ltdl_install" = x"yes"; then
  4667. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4668. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4669. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4670. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4671. + version_type=freebsd-elf
  4672. + need_lib_prefix=no
  4673. + need_version=no
  4674. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4675. + soname_spec='${libname}${release}${shared_ext}$major'
  4676. + shlibpath_var=LD_LIBRARY_PATH
  4677. + shlibpath_overrides_runpath=yes
  4678. + hardcode_into_libs=yes
  4679. + if test "$with_gnu_ld" = yes; then
  4680. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4681. else
  4682. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4683. - LIBLTDL="-lltdl"
  4684. - LTDLINCL=
  4685. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4686. + case $host_os in
  4687. + sco3.2v5*)
  4688. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4689. + ;;
  4690. + esac
  4691. fi
  4692. - # For backwards non-gettext consistent compatibility...
  4693. - INCLTDL="$LTDLINCL"
  4694. -])# AC_LIBLTDL_INSTALLABLE
  4695. + sys_lib_dlsearch_path_spec='/usr/lib'
  4696. + ;;
  4697. +tpf*)
  4698. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4699. + version_type=linux
  4700. + need_lib_prefix=no
  4701. + need_version=no
  4702. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4703. + shlibpath_var=LD_LIBRARY_PATH
  4704. + shlibpath_overrides_runpath=no
  4705. + hardcode_into_libs=yes
  4706. + ;;
  4707. -# AC_LIBTOOL_CXX
  4708. -# --------------
  4709. -# enable support for C++ libraries
  4710. -AC_DEFUN([AC_LIBTOOL_CXX],
  4711. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4712. -])# AC_LIBTOOL_CXX
  4713. +uts4*)
  4714. + version_type=linux
  4715. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4716. + soname_spec='${libname}${release}${shared_ext}$major'
  4717. + shlibpath_var=LD_LIBRARY_PATH
  4718. + ;;
  4719. +*)
  4720. + dynamic_linker=no
  4721. + ;;
  4722. +esac
  4723. +AC_MSG_RESULT([$dynamic_linker])
  4724. +test "$dynamic_linker" = no && can_build_shared=no
  4725. -# _LT_AC_LANG_CXX
  4726. -# ---------------
  4727. -AC_DEFUN([_LT_AC_LANG_CXX],
  4728. -[AC_REQUIRE([AC_PROG_CXX])
  4729. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4730. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4731. -])# _LT_AC_LANG_CXX
  4732. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4733. +if test "$GCC" = yes; then
  4734. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4735. +fi
  4736. -# _LT_AC_PROG_CXXCPP
  4737. -# ------------------
  4738. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4739. -[
  4740. -AC_REQUIRE([AC_PROG_CXX])
  4741. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4742. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4743. - (test "X$CXX" != "Xg++"))) ; then
  4744. - AC_PROG_CXXCPP
  4745. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4746. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4747. +fi
  4748. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4749. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4750. fi
  4751. -])# _LT_AC_PROG_CXXCPP
  4752. -# AC_LIBTOOL_F77
  4753. -# --------------
  4754. -# enable support for Fortran 77 libraries
  4755. -AC_DEFUN([AC_LIBTOOL_F77],
  4756. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4757. -])# AC_LIBTOOL_F77
  4758. +_LT_DECL([], [variables_saved_for_relink], [1],
  4759. + [Variables whose values should be saved in libtool wrapper scripts and
  4760. + restored at link time])
  4761. +_LT_DECL([], [need_lib_prefix], [0],
  4762. + [Do we need the "lib" prefix for modules?])
  4763. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4764. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4765. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4766. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4767. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4768. + [Is shlibpath searched before the hard-coded library search path?])
  4769. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4770. +_LT_DECL([], [library_names_spec], [1],
  4771. + [[List of archive names. First name is the real one, the rest are links.
  4772. + The last name is the one that the linker finds with -lNAME]])
  4773. +_LT_DECL([], [soname_spec], [1],
  4774. + [[The coded name of the library, if different from the real name]])
  4775. +_LT_DECL([], [postinstall_cmds], [2],
  4776. + [Command to use after installation of a shared archive])
  4777. +_LT_DECL([], [postuninstall_cmds], [2],
  4778. + [Command to use after uninstallation of a shared archive])
  4779. +_LT_DECL([], [finish_cmds], [2],
  4780. + [Commands used to finish a libtool library installation in a directory])
  4781. +_LT_DECL([], [finish_eval], [1],
  4782. + [[As "finish_cmds", except a single script fragment to be evaled but
  4783. + not shown]])
  4784. +_LT_DECL([], [hardcode_into_libs], [0],
  4785. + [Whether we should hardcode library paths into libraries])
  4786. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4787. + [Compile-time system search path for libraries])
  4788. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4789. + [Run-time system search path for libraries])
  4790. +])# _LT_SYS_DYNAMIC_LINKER
  4791. -# _LT_AC_LANG_F77
  4792. -# ---------------
  4793. -AC_DEFUN([_LT_AC_LANG_F77],
  4794. -[AC_REQUIRE([AC_PROG_F77])
  4795. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4796. -])# _LT_AC_LANG_F77
  4797. -
  4798. -
  4799. -# AC_LIBTOOL_GCJ
  4800. -# --------------
  4801. -# enable support for GCJ libraries
  4802. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4803. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4804. -])# AC_LIBTOOL_GCJ
  4805. -
  4806. -
  4807. -# _LT_AC_LANG_GCJ
  4808. -# ---------------
  4809. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4810. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4811. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4812. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4813. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4814. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4815. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4816. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4817. -])# _LT_AC_LANG_GCJ
  4818. +# _LT_PATH_TOOL_PREFIX(TOOL)
  4819. +# --------------------------
  4820. +# find a file program which can recognize shared library
  4821. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4822. +[m4_require([_LT_DECL_EGREP])dnl
  4823. +AC_MSG_CHECKING([for $1])
  4824. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4825. +[case $MAGIC_CMD in
  4826. +[[\\/*] | ?:[\\/]*])
  4827. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4828. + ;;
  4829. +*)
  4830. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  4831. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4832. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4833. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4834. +dnl not every word. This closes a longstanding sh security hole.
  4835. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  4836. + for ac_dir in $ac_dummy; do
  4837. + IFS="$lt_save_ifs"
  4838. + test -z "$ac_dir" && ac_dir=.
  4839. + if test -f $ac_dir/$1; then
  4840. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4841. + if test -n "$file_magic_test_file"; then
  4842. + case $deplibs_check_method in
  4843. + "file_magic "*)
  4844. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4845. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4846. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4847. + $EGREP "$file_magic_regex" > /dev/null; then
  4848. + :
  4849. + else
  4850. + cat <<_LT_EOF 1>&2
  4851. +*** Warning: the command libtool uses to detect shared libraries,
  4852. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4853. +*** The result is that libtool may fail to recognize shared libraries
  4854. +*** as such. This will affect the creation of libtool libraries that
  4855. +*** depend on shared libraries, but programs linked with such libtool
  4856. +*** libraries will work regardless of this problem. Nevertheless, you
  4857. +*** may want to report the problem to your system manager and/or to
  4858. +*** bug-libtool@gnu.org
  4859. -# AC_LIBTOOL_RC
  4860. -# -------------
  4861. -# enable support for Windows resource files
  4862. -AC_DEFUN([AC_LIBTOOL_RC],
  4863. -[AC_REQUIRE([LT_AC_PROG_RC])
  4864. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4865. -])# AC_LIBTOOL_RC
  4866. +_LT_EOF
  4867. + fi ;;
  4868. + esac
  4869. + fi
  4870. + break
  4871. + fi
  4872. + done
  4873. + IFS="$lt_save_ifs"
  4874. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  4875. + ;;
  4876. +esac])
  4877. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4878. +if test -n "$MAGIC_CMD"; then
  4879. + AC_MSG_RESULT($MAGIC_CMD)
  4880. +else
  4881. + AC_MSG_RESULT(no)
  4882. +fi
  4883. +_LT_DECL([], [MAGIC_CMD], [0],
  4884. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  4885. +])# _LT_PATH_TOOL_PREFIX
  4886. +# Old name:
  4887. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  4888. +dnl aclocal-1.4 backwards compatibility:
  4889. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  4890. -# AC_LIBTOOL_LANG_C_CONFIG
  4891. -# ------------------------
  4892. -# Ensure that the configuration vars for the C compiler are
  4893. -# suitably defined. Those variables are subsequently used by
  4894. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4895. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4896. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4897. -[lt_save_CC="$CC"
  4898. -AC_LANG_PUSH(C)
  4899. -# Source file extension for C test sources.
  4900. -ac_ext=c
  4901. +# _LT_PATH_MAGIC
  4902. +# --------------
  4903. +# find a file program which can recognize a shared library
  4904. +m4_defun([_LT_PATH_MAGIC],
  4905. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  4906. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  4907. + if test -n "$ac_tool_prefix"; then
  4908. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  4909. + else
  4910. + MAGIC_CMD=:
  4911. + fi
  4912. +fi
  4913. +])# _LT_PATH_MAGIC
  4914. -# Object file extension for compiled C test sources.
  4915. -objext=o
  4916. -_LT_AC_TAGVAR(objext, $1)=$objext
  4917. -# Code to be used in simple compile tests
  4918. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4919. +# LT_PATH_LD
  4920. +# ----------
  4921. +# find the pathname to the GNU or non-GNU linker
  4922. +AC_DEFUN([LT_PATH_LD],
  4923. +[AC_REQUIRE([AC_PROG_CC])dnl
  4924. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4925. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  4926. +m4_require([_LT_DECL_SED])dnl
  4927. +m4_require([_LT_DECL_EGREP])dnl
  4928. -# Code to be used in simple link tests
  4929. -lt_simple_link_test_code='int main(){return(0);}\n'
  4930. +AC_ARG_WITH([gnu-ld],
  4931. + [AS_HELP_STRING([--with-gnu-ld],
  4932. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  4933. + [test "$withval" = no || with_gnu_ld=yes],
  4934. + [with_gnu_ld=no])dnl
  4935. -_LT_AC_SYS_COMPILER
  4936. +ac_prog=ld
  4937. +if test "$GCC" = yes; then
  4938. + # Check if gcc -print-prog-name=ld gives a path.
  4939. + AC_MSG_CHECKING([for ld used by $CC])
  4940. + case $host in
  4941. + *-*-mingw*)
  4942. + # gcc leaves a trailing carriage return which upsets mingw
  4943. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4944. + *)
  4945. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4946. + esac
  4947. + case $ac_prog in
  4948. + # Accept absolute paths.
  4949. + [[\\/]]* | ?:[[\\/]]*)
  4950. + re_direlt='/[[^/]][[^/]]*/\.\./'
  4951. + # Canonicalize the pathname of ld
  4952. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4953. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4954. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4955. + done
  4956. + test -z "$LD" && LD="$ac_prog"
  4957. + ;;
  4958. + "")
  4959. + # If it fails, then pretend we aren't using GCC.
  4960. + ac_prog=ld
  4961. + ;;
  4962. + *)
  4963. + # If it is relative, then search for the first ld in PATH.
  4964. + with_gnu_ld=unknown
  4965. + ;;
  4966. + esac
  4967. +elif test "$with_gnu_ld" = yes; then
  4968. + AC_MSG_CHECKING([for GNU ld])
  4969. +else
  4970. + AC_MSG_CHECKING([for non-GNU ld])
  4971. +fi
  4972. +AC_CACHE_VAL(lt_cv_path_LD,
  4973. +[if test -z "$LD"; then
  4974. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4975. + for ac_dir in $PATH; do
  4976. + IFS="$lt_save_ifs"
  4977. + test -z "$ac_dir" && ac_dir=.
  4978. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4979. + lt_cv_path_LD="$ac_dir/$ac_prog"
  4980. + # Check to see if the program is GNU ld. I'd rather use --version,
  4981. + # but apparently some variants of GNU ld only accept -v.
  4982. + # Break only if it was the GNU/non-GNU ld that we prefer.
  4983. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4984. + *GNU* | *'with BFD'*)
  4985. + test "$with_gnu_ld" != no && break
  4986. + ;;
  4987. + *)
  4988. + test "$with_gnu_ld" != yes && break
  4989. + ;;
  4990. + esac
  4991. + fi
  4992. + done
  4993. + IFS="$lt_save_ifs"
  4994. +else
  4995. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4996. +fi])
  4997. +LD="$lt_cv_path_LD"
  4998. +if test -n "$LD"; then
  4999. + AC_MSG_RESULT($LD)
  5000. +else
  5001. + AC_MSG_RESULT(no)
  5002. +fi
  5003. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5004. +_LT_PATH_LD_GNU
  5005. +AC_SUBST([LD])
  5006. -# save warnings/boilerplate of simple test code
  5007. -_LT_COMPILER_BOILERPLATE
  5008. -_LT_LINKER_BOILERPLATE
  5009. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5010. +])# LT_PATH_LD
  5011. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5012. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5013. -AC_LIBTOOL_PROG_CC_C_O($1)
  5014. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5015. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5016. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5017. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5018. -AC_LIBTOOL_SYS_LIB_STRIP
  5019. -AC_LIBTOOL_DLOPEN_SELF
  5020. -
  5021. -# Report which library types will actually be built
  5022. -AC_MSG_CHECKING([if libtool supports shared libraries])
  5023. -AC_MSG_RESULT([$can_build_shared])
  5024. +# Old names:
  5025. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5026. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5027. +dnl aclocal-1.4 backwards compatibility:
  5028. +dnl AC_DEFUN([AM_PROG_LD], [])
  5029. +dnl AC_DEFUN([AC_PROG_LD], [])
  5030. +
  5031. +
  5032. +# _LT_PATH_LD_GNU
  5033. +#- --------------
  5034. +m4_defun([_LT_PATH_LD_GNU],
  5035. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5036. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5037. +case `$LD -v 2>&1 </dev/null` in
  5038. +*GNU* | *'with BFD'*)
  5039. + lt_cv_prog_gnu_ld=yes
  5040. + ;;
  5041. +*)
  5042. + lt_cv_prog_gnu_ld=no
  5043. + ;;
  5044. +esac])
  5045. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5046. +])# _LT_PATH_LD_GNU
  5047. -AC_MSG_CHECKING([whether to build shared libraries])
  5048. -test "$can_build_shared" = "no" && enable_shared=no
  5049. -# On AIX, shared libraries and static libraries use the same namespace, and
  5050. -# are all built from PIC.
  5051. +# _LT_CMD_RELOAD
  5052. +# --------------
  5053. +# find reload flag for linker
  5054. +# -- PORTME Some linkers may need a different reload flag.
  5055. +m4_defun([_LT_CMD_RELOAD],
  5056. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5057. + lt_cv_ld_reload_flag,
  5058. + [lt_cv_ld_reload_flag='-r'])
  5059. +reload_flag=$lt_cv_ld_reload_flag
  5060. +case $reload_flag in
  5061. +"" | " "*) ;;
  5062. +*) reload_flag=" $reload_flag" ;;
  5063. +esac
  5064. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5065. case $host_os in
  5066. -aix3*)
  5067. - test "$enable_shared" = yes && enable_static=no
  5068. - if test -n "$RANLIB"; then
  5069. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5070. - postinstall_cmds='$RANLIB $lib'
  5071. - fi
  5072. - ;;
  5073. -
  5074. -aix4* | aix5*)
  5075. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5076. - test "$enable_shared" = yes && enable_static=no
  5077. - fi
  5078. + darwin*)
  5079. + if test "$GCC" = yes; then
  5080. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5081. + else
  5082. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5083. + fi
  5084. ;;
  5085. esac
  5086. -AC_MSG_RESULT([$enable_shared])
  5087. -
  5088. -AC_MSG_CHECKING([whether to build static libraries])
  5089. -# Make sure either enable_shared or enable_static is yes.
  5090. -test "$enable_shared" = yes || enable_static=yes
  5091. -AC_MSG_RESULT([$enable_static])
  5092. -
  5093. -AC_LIBTOOL_CONFIG($1)
  5094. -
  5095. -AC_LANG_POP
  5096. -CC="$lt_save_CC"
  5097. -])# AC_LIBTOOL_LANG_C_CONFIG
  5098. -
  5099. -
  5100. -# AC_LIBTOOL_LANG_CXX_CONFIG
  5101. -# --------------------------
  5102. -# Ensure that the configuration vars for the C compiler are
  5103. -# suitably defined. Those variables are subsequently used by
  5104. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5105. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  5106. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  5107. -[AC_LANG_PUSH(C++)
  5108. -AC_REQUIRE([AC_PROG_CXX])
  5109. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  5110. -
  5111. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5112. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5113. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5114. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5115. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5116. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5117. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5118. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5119. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5120. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5121. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5122. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5123. -_LT_AC_TAGVAR(module_cmds, $1)=
  5124. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5125. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5126. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5127. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5128. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5129. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5130. -
  5131. -# Dependencies to place before and after the object being linked:
  5132. -_LT_AC_TAGVAR(predep_objects, $1)=
  5133. -_LT_AC_TAGVAR(postdep_objects, $1)=
  5134. -_LT_AC_TAGVAR(predeps, $1)=
  5135. -_LT_AC_TAGVAR(postdeps, $1)=
  5136. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  5137. -
  5138. -# Source file extension for C++ test sources.
  5139. -ac_ext=cpp
  5140. -
  5141. -# Object file extension for compiled C++ test sources.
  5142. -objext=o
  5143. -_LT_AC_TAGVAR(objext, $1)=$objext
  5144. -
  5145. -# Code to be used in simple compile tests
  5146. -lt_simple_compile_test_code="int some_variable = 0;\n"
  5147. -
  5148. -# Code to be used in simple link tests
  5149. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  5150. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5151. +_LT_DECL([], [reload_cmds], [2])dnl
  5152. +])# _LT_CMD_RELOAD
  5153. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5154. -_LT_AC_SYS_COMPILER
  5155. -# save warnings/boilerplate of simple test code
  5156. -_LT_COMPILER_BOILERPLATE
  5157. -_LT_LINKER_BOILERPLATE
  5158. +# _LT_CHECK_MAGIC_METHOD
  5159. +# ----------------------
  5160. +# how to check for library dependencies
  5161. +# -- PORTME fill in with the dynamic library characteristics
  5162. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5163. +[m4_require([_LT_DECL_EGREP])
  5164. +m4_require([_LT_DECL_OBJDUMP])
  5165. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5166. +lt_cv_deplibs_check_method,
  5167. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5168. +lt_cv_file_magic_test_file=
  5169. +lt_cv_deplibs_check_method='unknown'
  5170. +# Need to set the preceding variable on all platforms that support
  5171. +# interlibrary dependencies.
  5172. +# 'none' -- dependencies not supported.
  5173. +# `unknown' -- same as none, but documents that we really don't know.
  5174. +# 'pass_all' -- all dependencies passed with no checks.
  5175. +# 'test_compile' -- check by making test program.
  5176. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5177. +# which responds to the $file_magic_cmd with a given extended regex.
  5178. +# If you have `file' or equivalent on your system and you're not sure
  5179. +# whether `pass_all' will *always* work, you probably want this one.
  5180. -# Allow CC to be a program name with arguments.
  5181. -lt_save_CC=$CC
  5182. -lt_save_LD=$LD
  5183. -lt_save_GCC=$GCC
  5184. -GCC=$GXX
  5185. -lt_save_with_gnu_ld=$with_gnu_ld
  5186. -lt_save_path_LD=$lt_cv_path_LD
  5187. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5188. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5189. -else
  5190. - $as_unset lt_cv_prog_gnu_ld
  5191. -fi
  5192. -if test -n "${lt_cv_path_LDCXX+set}"; then
  5193. - lt_cv_path_LD=$lt_cv_path_LDCXX
  5194. -else
  5195. - $as_unset lt_cv_path_LD
  5196. -fi
  5197. -test -z "${LDCXX+set}" || LD=$LDCXX
  5198. -CC=${CXX-"c++"}
  5199. -compiler=$CC
  5200. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5201. -_LT_CC_BASENAME([$compiler])
  5202. +case $host_os in
  5203. +aix[[4-9]]*)
  5204. + lt_cv_deplibs_check_method=pass_all
  5205. + ;;
  5206. -# We don't want -fno-exception wen compiling C++ code, so set the
  5207. -# no_builtin_flag separately
  5208. -if test "$GXX" = yes; then
  5209. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5210. -else
  5211. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5212. -fi
  5213. +beos*)
  5214. + lt_cv_deplibs_check_method=pass_all
  5215. + ;;
  5216. -if test "$GXX" = yes; then
  5217. - # Set up default GNU C++ configuration
  5218. +bsdi[[45]]*)
  5219. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5220. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5221. + lt_cv_file_magic_test_file=/shlib/libc.so
  5222. + ;;
  5223. - AC_PROG_LD
  5224. +cygwin*)
  5225. + # func_win32_libid is a shell function defined in ltmain.sh
  5226. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5227. + lt_cv_file_magic_cmd='func_win32_libid'
  5228. + ;;
  5229. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5230. - # archiving commands below assume that GNU ld is being used.
  5231. - if test "$with_gnu_ld" = yes; then
  5232. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5233. - _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'
  5234. +mingw* | pw32*)
  5235. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5236. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5237. + # unless we find 'file', for example because we are cross-compiling.
  5238. + if ( file / ) >/dev/null 2>&1; then
  5239. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5240. + lt_cv_file_magic_cmd='func_win32_libid'
  5241. + else
  5242. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5243. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5244. + fi
  5245. + ;;
  5246. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5247. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5248. +cegcc)
  5249. + # use the weaker test based on 'objdump'. See mingw*.
  5250. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5251. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5252. + ;;
  5253. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5254. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5255. - # investigate it a little bit more. (MM)
  5256. - wlarc='${wl}'
  5257. +darwin* | rhapsody*)
  5258. + lt_cv_deplibs_check_method=pass_all
  5259. + ;;
  5260. - # ancient GNU ld didn't support --whole-archive et. al.
  5261. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  5262. - grep 'no-whole-archive' > /dev/null; then
  5263. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5264. - else
  5265. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5266. - fi
  5267. +freebsd* | dragonfly*)
  5268. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5269. + case $host_cpu in
  5270. + i*86 )
  5271. + # Not sure whether the presence of OpenBSD here was a mistake.
  5272. + # Let's accept both of them until this is cleared up.
  5273. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5274. + lt_cv_file_magic_cmd=/usr/bin/file
  5275. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5276. + ;;
  5277. + esac
  5278. else
  5279. - with_gnu_ld=no
  5280. - wlarc=
  5281. -
  5282. - # A generic and very simple default shared library creation
  5283. - # command for GNU C++ for the case where it uses the native
  5284. - # linker, instead of GNU ld. If possible, this setting should
  5285. - # overridden to take advantage of the native linker features on
  5286. - # the platform it is being used on.
  5287. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5288. + lt_cv_deplibs_check_method=pass_all
  5289. fi
  5290. + ;;
  5291. - # Commands to make compiler produce verbose output that lists
  5292. - # what "hidden" libraries, object files and flags are used when
  5293. - # linking a shared library.
  5294. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5295. +gnu*)
  5296. + lt_cv_deplibs_check_method=pass_all
  5297. + ;;
  5298. -else
  5299. - GXX=no
  5300. - with_gnu_ld=no
  5301. - wlarc=
  5302. -fi
  5303. -
  5304. -# PORTME: fill in a description of your system's C++ link characteristics
  5305. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5306. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5307. -case $host_os in
  5308. - aix3*)
  5309. - # FIXME: insert proper C++ library support
  5310. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5311. +hpux10.20* | hpux11*)
  5312. + lt_cv_file_magic_cmd=/usr/bin/file
  5313. + case $host_cpu in
  5314. + ia64*)
  5315. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5316. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5317. ;;
  5318. - aix4* | aix5*)
  5319. - if test "$host_cpu" = ia64; then
  5320. - # On IA64, the linker does run time linking by default, so we don't
  5321. - # have to do anything special.
  5322. - aix_use_runtimelinking=no
  5323. - exp_sym_flag='-Bexport'
  5324. - no_entry_flag=""
  5325. - else
  5326. - aix_use_runtimelinking=no
  5327. + hppa*64*)
  5328. + [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]']
  5329. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5330. + ;;
  5331. + *)
  5332. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5333. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5334. + ;;
  5335. + esac
  5336. + ;;
  5337. - # Test if we are trying to use run time linking or normal
  5338. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5339. - # need to do runtime linking.
  5340. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5341. - for ld_flag in $LDFLAGS; do
  5342. - case $ld_flag in
  5343. - *-brtl*)
  5344. - aix_use_runtimelinking=yes
  5345. - break
  5346. - ;;
  5347. - esac
  5348. - done
  5349. - ;;
  5350. - esac
  5351. +interix[[3-9]]*)
  5352. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5353. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5354. + ;;
  5355. - exp_sym_flag='-bexport'
  5356. - no_entry_flag='-bnoentry'
  5357. - fi
  5358. +irix5* | irix6* | nonstopux*)
  5359. + case $LD in
  5360. + *-32|*"-32 ") libmagic=32-bit;;
  5361. + *-n32|*"-n32 ") libmagic=N32;;
  5362. + *-64|*"-64 ") libmagic=64-bit;;
  5363. + *) libmagic=never-match;;
  5364. + esac
  5365. + lt_cv_deplibs_check_method=pass_all
  5366. + ;;
  5367. - # When large executables or shared objects are built, AIX ld can
  5368. - # have problems creating the table of contents. If linking a library
  5369. - # or program results in "error TOC overflow" add -mminimal-toc to
  5370. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5371. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5372. -
  5373. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5374. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5375. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5376. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5377. +# This must be Linux ELF.
  5378. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5379. + lt_cv_deplibs_check_method=pass_all
  5380. + ;;
  5381. - if test "$GXX" = yes; then
  5382. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5383. - # We only want to do this on AIX 4.2 and lower, the check
  5384. - # below for broken collect2 doesn't work under 4.3+
  5385. - collect2name=`${CC} -print-prog-name=collect2`
  5386. - if test -f "$collect2name" && \
  5387. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5388. - then
  5389. - # We have reworked collect2
  5390. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5391. - else
  5392. - # We have old collect2
  5393. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5394. - # It fails to find uninstalled libraries when the uninstalled
  5395. - # path is not listed in the libpath. Setting hardcode_minus_L
  5396. - # to unsupported forces relinking
  5397. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5398. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5399. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5400. - fi
  5401. - ;;
  5402. - esac
  5403. - shared_flag='-shared'
  5404. - if test "$aix_use_runtimelinking" = yes; then
  5405. - shared_flag="$shared_flag "'${wl}-G'
  5406. - fi
  5407. - else
  5408. - # not using gcc
  5409. - if test "$host_cpu" = ia64; then
  5410. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5411. - # chokes on -Wl,-G. The following line is correct:
  5412. - shared_flag='-G'
  5413. - else
  5414. - if test "$aix_use_runtimelinking" = yes; then
  5415. - shared_flag='${wl}-G'
  5416. - else
  5417. - shared_flag='${wl}-bM:SRE'
  5418. - fi
  5419. - fi
  5420. - fi
  5421. +netbsd* | netbsdelf*-gnu)
  5422. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5423. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5424. + else
  5425. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5426. + fi
  5427. + ;;
  5428. - # It seems that -bexpall does not export symbols beginning with
  5429. - # underscore (_), so it is better to generate a list of symbols to export.
  5430. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5431. - if test "$aix_use_runtimelinking" = yes; then
  5432. - # Warning - without using the other runtime loading flags (-brtl),
  5433. - # -berok will link without error, but may produce a broken library.
  5434. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5435. - # Determine the default libpath from the value encoded in an empty executable.
  5436. - _LT_AC_SYS_LIBPATH_AIX
  5437. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5438. +newos6*)
  5439. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  5440. + lt_cv_file_magic_cmd=/usr/bin/file
  5441. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5442. + ;;
  5443. - _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"
  5444. - else
  5445. - if test "$host_cpu" = ia64; then
  5446. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5447. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5448. - _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"
  5449. - else
  5450. - # Determine the default libpath from the value encoded in an empty executable.
  5451. - _LT_AC_SYS_LIBPATH_AIX
  5452. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5453. - # Warning - without using the other run time loading flags,
  5454. - # -berok will link without error, but may produce a broken library.
  5455. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5456. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5457. - # Exported symbols can be pulled into shared objects from archives
  5458. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5459. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5460. - # This is similar to how AIX traditionally builds its shared libraries.
  5461. - _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'
  5462. - fi
  5463. - fi
  5464. - ;;
  5465. +*nto* | *qnx*)
  5466. + lt_cv_deplibs_check_method=pass_all
  5467. + ;;
  5468. - beos*)
  5469. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5470. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5471. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5472. - # support --undefined. This deserves some investigation. FIXME
  5473. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5474. - else
  5475. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5476. - fi
  5477. - ;;
  5478. +openbsd*)
  5479. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5480. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  5481. + else
  5482. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5483. + fi
  5484. + ;;
  5485. - chorus*)
  5486. - case $cc_basename in
  5487. - *)
  5488. - # FIXME: insert proper C++ library support
  5489. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5490. - ;;
  5491. - esac
  5492. - ;;
  5493. +osf3* | osf4* | osf5*)
  5494. + lt_cv_deplibs_check_method=pass_all
  5495. + ;;
  5496. - cygwin* | mingw* | pw32*)
  5497. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5498. - # as there is no search path for DLLs.
  5499. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5500. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5501. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5502. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5503. -
  5504. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5505. - _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'
  5506. - # If the export-symbols file already is a .def file (1st line
  5507. - # is EXPORTS), use it as is; otherwise, prepend...
  5508. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5509. - cp $export_symbols $output_objdir/$soname.def;
  5510. - else
  5511. - echo EXPORTS > $output_objdir/$soname.def;
  5512. - cat $export_symbols >> $output_objdir/$soname.def;
  5513. - fi~
  5514. - $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'
  5515. - else
  5516. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5517. - fi
  5518. +rdos*)
  5519. + lt_cv_deplibs_check_method=pass_all
  5520. ;;
  5521. - darwin* | rhapsody*)
  5522. - case $host_os in
  5523. - rhapsody* | darwin1.[[012]])
  5524. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5525. - ;;
  5526. - *) # Darwin 1.3 on
  5527. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5528. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5529. - else
  5530. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5531. - 10.[[012]])
  5532. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5533. - ;;
  5534. - 10.*)
  5535. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5536. - ;;
  5537. - esac
  5538. - fi
  5539. - ;;
  5540. - esac
  5541. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5542. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5543. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5544. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5545. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5546. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5547. -
  5548. - if test "$GXX" = yes ; then
  5549. - lt_int_apple_cc_single_mod=no
  5550. - output_verbose_link_cmd='echo'
  5551. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5552. - lt_int_apple_cc_single_mod=yes
  5553. - fi
  5554. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5555. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5556. - else
  5557. - _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'
  5558. - fi
  5559. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5560. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5561. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5562. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5563. - else
  5564. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5565. - fi
  5566. - _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}'
  5567. - else
  5568. - case $cc_basename in
  5569. - xlc*)
  5570. - output_verbose_link_cmd='echo'
  5571. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  5572. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5573. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5574. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5575. - _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}'
  5576. - ;;
  5577. - *)
  5578. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5579. - ;;
  5580. - esac
  5581. - fi
  5582. - ;;
  5583. - dgux*)
  5584. - case $cc_basename in
  5585. - ec++*)
  5586. - # FIXME: insert proper C++ library support
  5587. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5588. - ;;
  5589. - ghcx*)
  5590. - # Green Hills C++ Compiler
  5591. - # FIXME: insert proper C++ library support
  5592. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5593. - ;;
  5594. - *)
  5595. - # FIXME: insert proper C++ library support
  5596. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5597. - ;;
  5598. - esac
  5599. +solaris*)
  5600. + lt_cv_deplibs_check_method=pass_all
  5601. + ;;
  5602. +
  5603. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5604. + lt_cv_deplibs_check_method=pass_all
  5605. + ;;
  5606. +
  5607. +sysv4 | sysv4.3*)
  5608. + case $host_vendor in
  5609. + motorola)
  5610. + 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]]'
  5611. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5612. ;;
  5613. - freebsd[[12]]*)
  5614. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5615. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5616. - ;;
  5617. - freebsd-elf*)
  5618. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5619. - ;;
  5620. - freebsd* | kfreebsd*-gnu | dragonfly*)
  5621. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5622. - # conventions
  5623. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5624. + ncr)
  5625. + lt_cv_deplibs_check_method=pass_all
  5626. ;;
  5627. - gnu*)
  5628. + sequent)
  5629. + lt_cv_file_magic_cmd='/bin/file'
  5630. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  5631. ;;
  5632. - hpux9*)
  5633. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5634. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5635. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5636. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5637. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5638. - # but as the default
  5639. - # location of the library.
  5640. -
  5641. - case $cc_basename in
  5642. - CC*)
  5643. - # FIXME: insert proper C++ library support
  5644. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5645. - ;;
  5646. - aCC*)
  5647. - _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'
  5648. - # Commands to make compiler produce verbose output that lists
  5649. - # what "hidden" libraries, object files and flags are used when
  5650. - # linking a shared library.
  5651. - #
  5652. - # There doesn't appear to be a way to prevent this compiler from
  5653. - # explicitly linking system object files so we need to strip them
  5654. - # from the output so that they don't get included in the library
  5655. - # dependencies.
  5656. - 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'
  5657. - ;;
  5658. - *)
  5659. - if test "$GXX" = yes; then
  5660. - _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'
  5661. - else
  5662. - # FIXME: insert proper C++ library support
  5663. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5664. - fi
  5665. - ;;
  5666. - esac
  5667. + sni)
  5668. + lt_cv_file_magic_cmd='/bin/file'
  5669. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  5670. + lt_cv_file_magic_test_file=/lib/libc.so
  5671. + ;;
  5672. + siemens)
  5673. + lt_cv_deplibs_check_method=pass_all
  5674. + ;;
  5675. + pc)
  5676. + lt_cv_deplibs_check_method=pass_all
  5677. ;;
  5678. - hpux10*|hpux11*)
  5679. - if test $with_gnu_ld = no; then
  5680. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5681. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5682. + esac
  5683. + ;;
  5684. - case $host_cpu in
  5685. - hppa*64*|ia64*)
  5686. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5687. - ;;
  5688. - *)
  5689. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5690. - ;;
  5691. - esac
  5692. - fi
  5693. - case $host_cpu in
  5694. - hppa*64*|ia64*)
  5695. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5696. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5697. - ;;
  5698. - *)
  5699. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5700. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5701. - # but as the default
  5702. - # location of the library.
  5703. - ;;
  5704. - esac
  5705. +tpf*)
  5706. + lt_cv_deplibs_check_method=pass_all
  5707. + ;;
  5708. +esac
  5709. +])
  5710. +file_magic_cmd=$lt_cv_file_magic_cmd
  5711. +deplibs_check_method=$lt_cv_deplibs_check_method
  5712. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5713. - case $cc_basename in
  5714. - CC*)
  5715. - # FIXME: insert proper C++ library support
  5716. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5717. - ;;
  5718. - aCC*)
  5719. - case $host_cpu in
  5720. - hppa*64*)
  5721. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5722. - ;;
  5723. - ia64*)
  5724. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5725. +_LT_DECL([], [deplibs_check_method], [1],
  5726. + [Method to check whether dependent libraries are shared objects])
  5727. +_LT_DECL([], [file_magic_cmd], [1],
  5728. + [Command to use when deplibs_check_method == "file_magic"])
  5729. +])# _LT_CHECK_MAGIC_METHOD
  5730. +
  5731. +
  5732. +# LT_PATH_NM
  5733. +# ----------
  5734. +# find the pathname to a BSD- or MS-compatible name lister
  5735. +AC_DEFUN([LT_PATH_NM],
  5736. +[AC_REQUIRE([AC_PROG_CC])dnl
  5737. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  5738. +[if test -n "$NM"; then
  5739. + # Let the user override the test.
  5740. + lt_cv_path_NM="$NM"
  5741. +else
  5742. + lt_nm_to_check="${ac_tool_prefix}nm"
  5743. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5744. + lt_nm_to_check="$lt_nm_to_check nm"
  5745. + fi
  5746. + for lt_tmp_nm in $lt_nm_to_check; do
  5747. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5748. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5749. + IFS="$lt_save_ifs"
  5750. + test -z "$ac_dir" && ac_dir=.
  5751. + tmp_nm="$ac_dir/$lt_tmp_nm"
  5752. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5753. + # Check to see if the nm accepts a BSD-compat flag.
  5754. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5755. + # nm: unknown option "B" ignored
  5756. + # Tru64's nm complains that /dev/null is an invalid object file
  5757. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5758. + */dev/null* | *'Invalid file or object type'*)
  5759. + lt_cv_path_NM="$tmp_nm -B"
  5760. + break
  5761. ;;
  5762. *)
  5763. - _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'
  5764. - ;;
  5765. - esac
  5766. - # Commands to make compiler produce verbose output that lists
  5767. - # what "hidden" libraries, object files and flags are used when
  5768. - # linking a shared library.
  5769. - #
  5770. - # There doesn't appear to be a way to prevent this compiler from
  5771. - # explicitly linking system object files so we need to strip them
  5772. - # from the output so that they don't get included in the library
  5773. - # dependencies.
  5774. - 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'
  5775. - ;;
  5776. - *)
  5777. - if test "$GXX" = yes; then
  5778. - if test $with_gnu_ld = no; then
  5779. - case $host_cpu in
  5780. - hppa*64*)
  5781. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5782. - ;;
  5783. - ia64*)
  5784. - _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'
  5785. - ;;
  5786. - *)
  5787. - _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'
  5788. - ;;
  5789. - esac
  5790. - fi
  5791. - else
  5792. - # FIXME: insert proper C++ library support
  5793. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5794. - fi
  5795. - ;;
  5796. - esac
  5797. - ;;
  5798. - interix3*)
  5799. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5800. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5801. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5802. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5803. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5804. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5805. - # default) and relocated if they conflict, which is a slow very memory
  5806. - # consuming and fragmenting process. To avoid this, we pick a random,
  5807. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5808. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5809. - _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'
  5810. - _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'
  5811. - ;;
  5812. - irix5* | irix6*)
  5813. - case $cc_basename in
  5814. - CC*)
  5815. - # SGI C++
  5816. - _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'
  5817. -
  5818. - # Archives containing C++ object files must be created using
  5819. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5820. - # necessary to make sure instantiated templates are included
  5821. - # in the archive.
  5822. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5823. - ;;
  5824. - *)
  5825. - if test "$GXX" = yes; then
  5826. - if test "$with_gnu_ld" = no; then
  5827. - _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'
  5828. - else
  5829. - _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'
  5830. - fi
  5831. - fi
  5832. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5833. - ;;
  5834. - esac
  5835. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5836. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5837. - ;;
  5838. - linux*)
  5839. - case $cc_basename in
  5840. - KCC*)
  5841. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5842. -
  5843. - # KCC will only create a shared library if the output file
  5844. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5845. - # to its proper name (with version) after linking.
  5846. - _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'
  5847. - _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'
  5848. - # Commands to make compiler produce verbose output that lists
  5849. - # what "hidden" libraries, object files and flags are used when
  5850. - # linking a shared library.
  5851. - #
  5852. - # There doesn't appear to be a way to prevent this compiler from
  5853. - # explicitly linking system object files so we need to strip them
  5854. - # from the output so that they don't get included in the library
  5855. - # dependencies.
  5856. - 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'
  5857. -
  5858. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5859. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5860. -
  5861. - # Archives containing C++ object files must be created using
  5862. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5863. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5864. - ;;
  5865. - icpc*)
  5866. - # Intel C++
  5867. - with_gnu_ld=yes
  5868. - # version 8.0 and above of icpc choke on multiply defined symbols
  5869. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5870. - # earlier do not add the objects themselves.
  5871. - case `$CC -V 2>&1` in
  5872. - *"Version 7."*)
  5873. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5874. - _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'
  5875. - ;;
  5876. - *) # Version 8.0 or newer
  5877. - tmp_idyn=
  5878. - case $host_cpu in
  5879. - ia64*) tmp_idyn=' -i_dynamic';;
  5880. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5881. + */dev/null*)
  5882. + lt_cv_path_NM="$tmp_nm -p"
  5883. + break
  5884. + ;;
  5885. + *)
  5886. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5887. + continue # so that we can try to find one that supports BSD flags
  5888. + ;;
  5889. esac
  5890. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5891. - _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'
  5892. ;;
  5893. esac
  5894. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5895. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5896. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5897. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5898. - ;;
  5899. - pgCC*)
  5900. - # Portland Group C++ compiler
  5901. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5902. - _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'
  5903. -
  5904. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5905. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5906. - _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'
  5907. - ;;
  5908. - cxx*)
  5909. - # Compaq C++
  5910. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5911. - _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'
  5912. -
  5913. - runpath_var=LD_RUN_PATH
  5914. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5915. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5916. -
  5917. - # Commands to make compiler produce verbose output that lists
  5918. - # what "hidden" libraries, object files and flags are used when
  5919. - # linking a shared library.
  5920. - #
  5921. - # There doesn't appear to be a way to prevent this compiler from
  5922. - # explicitly linking system object files so we need to strip them
  5923. - # from the output so that they don't get included in the library
  5924. - # dependencies.
  5925. - 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'
  5926. - ;;
  5927. - esac
  5928. - ;;
  5929. - lynxos*)
  5930. - # FIXME: insert proper C++ library support
  5931. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5932. - ;;
  5933. - m88k*)
  5934. - # FIXME: insert proper C++ library support
  5935. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5936. - ;;
  5937. - mvs*)
  5938. - case $cc_basename in
  5939. - cxx*)
  5940. - # FIXME: insert proper C++ library support
  5941. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5942. - ;;
  5943. - *)
  5944. - # FIXME: insert proper C++ library support
  5945. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5946. - ;;
  5947. - esac
  5948. - ;;
  5949. - netbsd*)
  5950. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5951. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5952. - wlarc=
  5953. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5954. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5955. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5956. - fi
  5957. - # Workaround some broken pre-1.5 toolchains
  5958. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5959. - ;;
  5960. - openbsd2*)
  5961. - # C++ shared libraries are fairly broken
  5962. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5963. - ;;
  5964. - openbsd*)
  5965. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5966. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5967. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5968. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5969. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5970. - _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'
  5971. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5972. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5973. - fi
  5974. - output_verbose_link_cmd='echo'
  5975. - ;;
  5976. - osf3*)
  5977. - case $cc_basename in
  5978. - KCC*)
  5979. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5980. -
  5981. - # KCC will only create a shared library if the output file
  5982. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5983. - # to its proper name (with version) after linking.
  5984. - _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'
  5985. -
  5986. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5987. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5988. -
  5989. - # Archives containing C++ object files must be created using
  5990. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5991. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5992. -
  5993. - ;;
  5994. - RCC*)
  5995. - # Rational C++ 2.4.1
  5996. - # FIXME: insert proper C++ library support
  5997. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5998. - ;;
  5999. - cxx*)
  6000. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6001. - _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'
  6002. -
  6003. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6004. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6005. -
  6006. - # Commands to make compiler produce verbose output that lists
  6007. - # what "hidden" libraries, object files and flags are used when
  6008. - # linking a shared library.
  6009. - #
  6010. - # There doesn't appear to be a way to prevent this compiler from
  6011. - # explicitly linking system object files so we need to strip them
  6012. - # from the output so that they don't get included in the library
  6013. - # dependencies.
  6014. - 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'
  6015. - ;;
  6016. - *)
  6017. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6018. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6019. - _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'
  6020. -
  6021. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6022. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6023. -
  6024. - # Commands to make compiler produce verbose output that lists
  6025. - # what "hidden" libraries, object files and flags are used when
  6026. - # linking a shared library.
  6027. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  6028. + fi
  6029. + done
  6030. + IFS="$lt_save_ifs"
  6031. + done
  6032. + : ${lt_cv_path_NM=no}
  6033. +fi])
  6034. +if test "$lt_cv_path_NM" != "no"; then
  6035. + NM="$lt_cv_path_NM"
  6036. +else
  6037. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6038. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6039. + AC_SUBST([DUMPBIN])
  6040. + if test "$DUMPBIN" != ":"; then
  6041. + NM="$DUMPBIN"
  6042. + fi
  6043. +fi
  6044. +test -z "$NM" && NM=nm
  6045. +AC_SUBST([NM])
  6046. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6047. - else
  6048. - # FIXME: insert proper C++ library support
  6049. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6050. - fi
  6051. - ;;
  6052. - esac
  6053. - ;;
  6054. - osf4* | osf5*)
  6055. - case $cc_basename in
  6056. - KCC*)
  6057. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  6058. -
  6059. - # KCC will only create a shared library if the output file
  6060. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6061. - # to its proper name (with version) after linking.
  6062. - _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'
  6063. -
  6064. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6065. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6066. -
  6067. - # Archives containing C++ object files must be created using
  6068. - # the KAI C++ compiler.
  6069. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  6070. - ;;
  6071. - RCC*)
  6072. - # Rational C++ 2.4.1
  6073. - # FIXME: insert proper C++ library support
  6074. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6075. - ;;
  6076. - cxx*)
  6077. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6078. - _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'
  6079. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6080. - echo "-hidden">> $lib.exp~
  6081. - $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~
  6082. - $rm $lib.exp'
  6083. -
  6084. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6085. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6086. -
  6087. - # Commands to make compiler produce verbose output that lists
  6088. - # what "hidden" libraries, object files and flags are used when
  6089. - # linking a shared library.
  6090. - #
  6091. - # There doesn't appear to be a way to prevent this compiler from
  6092. - # explicitly linking system object files so we need to strip them
  6093. - # from the output so that they don't get included in the library
  6094. - # dependencies.
  6095. - 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'
  6096. - ;;
  6097. - *)
  6098. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6099. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6100. - _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'
  6101. -
  6102. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6103. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6104. -
  6105. - # Commands to make compiler produce verbose output that lists
  6106. - # what "hidden" libraries, object files and flags are used when
  6107. - # linking a shared library.
  6108. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  6109. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6110. + [lt_cv_nm_interface="BSD nm"
  6111. + echo "int some_variable = 0;" > conftest.$ac_ext
  6112. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6113. + (eval "$ac_compile" 2>conftest.err)
  6114. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6115. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6116. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6117. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6118. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6119. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6120. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6121. + lt_cv_nm_interface="MS dumpbin"
  6122. + fi
  6123. + rm -f conftest*])
  6124. +])# LT_PATH_NM
  6125. +
  6126. +# Old names:
  6127. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6128. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6129. +dnl aclocal-1.4 backwards compatibility:
  6130. +dnl AC_DEFUN([AM_PROG_NM], [])
  6131. +dnl AC_DEFUN([AC_PROG_NM], [])
  6132. - else
  6133. - # FIXME: insert proper C++ library support
  6134. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6135. - fi
  6136. - ;;
  6137. - esac
  6138. - ;;
  6139. - psos*)
  6140. - # FIXME: insert proper C++ library support
  6141. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6142. - ;;
  6143. - sunos4*)
  6144. - case $cc_basename in
  6145. - CC*)
  6146. - # Sun C++ 4.x
  6147. - # FIXME: insert proper C++ library support
  6148. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6149. - ;;
  6150. - lcc*)
  6151. - # Lucid
  6152. - # FIXME: insert proper C++ library support
  6153. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6154. - ;;
  6155. - *)
  6156. - # FIXME: insert proper C++ library support
  6157. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6158. - ;;
  6159. - esac
  6160. - ;;
  6161. - solaris*)
  6162. - case $cc_basename in
  6163. - CC*)
  6164. - # Sun C++ 4.2, 5.x and Centerline C++
  6165. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  6166. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6167. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6168. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6169. - $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'
  6170. -
  6171. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6172. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6173. - case $host_os in
  6174. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6175. - *)
  6176. - # The C++ compiler is used as linker so we must use $wl
  6177. - # flag to pass the commands to the underlying system
  6178. - # linker. We must also pass each convience library through
  6179. - # to the system linker between allextract/defaultextract.
  6180. - # The C++ compiler will combine linker options so we
  6181. - # cannot just pass the convience library names through
  6182. - # without $wl.
  6183. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6184. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  6185. - ;;
  6186. - esac
  6187. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6188. - output_verbose_link_cmd='echo'
  6189. +# LT_LIB_M
  6190. +# --------
  6191. +# check for math library
  6192. +AC_DEFUN([LT_LIB_M],
  6193. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6194. +LIBM=
  6195. +case $host in
  6196. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6197. + # These system don't have libm, or don't need it
  6198. + ;;
  6199. +*-ncr-sysv4.3*)
  6200. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6201. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6202. + ;;
  6203. +*)
  6204. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6205. + ;;
  6206. +esac
  6207. +AC_SUBST([LIBM])
  6208. +])# LT_LIB_M
  6209. - # Archives containing C++ object files must be created using
  6210. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6211. - # necessary to make sure instantiated templates are included
  6212. - # in the archive.
  6213. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6214. - ;;
  6215. - gcx*)
  6216. - # Green Hills C++ Compiler
  6217. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6218. +# Old name:
  6219. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6220. +dnl aclocal-1.4 backwards compatibility:
  6221. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6222. - # The C++ compiler must be used to create the archive.
  6223. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6224. - ;;
  6225. - *)
  6226. - # GNU C++ compiler with Solaris linker
  6227. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6228. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6229. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  6230. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6231. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6232. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6233. - # Commands to make compiler produce verbose output that lists
  6234. - # what "hidden" libraries, object files and flags are used when
  6235. - # linking a shared library.
  6236. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6237. - else
  6238. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6239. - # platform.
  6240. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6241. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6242. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6243. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6244. +# -------------------------------
  6245. +m4_defun([_LT_COMPILER_NO_RTTI],
  6246. +[m4_require([_LT_TAG_COMPILER])dnl
  6247. - # Commands to make compiler produce verbose output that lists
  6248. - # what "hidden" libraries, object files and flags are used when
  6249. - # linking a shared library.
  6250. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6251. - fi
  6252. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6253. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6254. - fi
  6255. - ;;
  6256. - esac
  6257. - ;;
  6258. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6259. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6260. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6261. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6262. - runpath_var='LD_RUN_PATH'
  6263. -
  6264. - case $cc_basename in
  6265. - CC*)
  6266. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6267. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6268. - ;;
  6269. - *)
  6270. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6271. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6272. - ;;
  6273. - esac
  6274. - ;;
  6275. - sysv5* | sco3.2v5* | sco5v6*)
  6276. - # Note: We can NOT use -z defs as we might desire, because we do not
  6277. - # link with -lc, and that would cause any symbols used from libc to
  6278. - # always be unresolved, which means just about no library would
  6279. - # ever link correctly. If we're not using GNU ld we use -z text
  6280. - # though, which does catch some bad symbols but isn't as heavy-handed
  6281. - # as -z defs.
  6282. - # For security reasons, it is highly recommended that you always
  6283. - # use absolute paths for naming shared libraries, and exclude the
  6284. - # DT_RUNPATH tag from executables and libraries. But doing so
  6285. - # requires that you compile everything twice, which is a pain.
  6286. - # So that behaviour is only enabled if SCOABSPATH is set to a
  6287. - # non-empty value in the environment. Most likely only useful for
  6288. - # creating official distributions of packages.
  6289. - # This is a hack until libtool officially supports absolute path
  6290. - # names for shared libraries.
  6291. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6292. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6293. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6294. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6295. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6296. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6297. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6298. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6299. - runpath_var='LD_RUN_PATH'
  6300. -
  6301. - case $cc_basename in
  6302. - CC*)
  6303. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6304. - _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'
  6305. - ;;
  6306. - *)
  6307. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6308. - _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'
  6309. - ;;
  6310. - esac
  6311. - ;;
  6312. - tandem*)
  6313. - case $cc_basename in
  6314. - NCC*)
  6315. - # NonStop-UX NCC 3.20
  6316. - # FIXME: insert proper C++ library support
  6317. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6318. - ;;
  6319. - *)
  6320. - # FIXME: insert proper C++ library support
  6321. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6322. - ;;
  6323. - esac
  6324. - ;;
  6325. - vxworks*)
  6326. - # FIXME: insert proper C++ library support
  6327. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6328. - ;;
  6329. - *)
  6330. - # FIXME: insert proper C++ library support
  6331. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6332. - ;;
  6333. -esac
  6334. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6335. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6336. +if test "$GCC" = yes; then
  6337. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6338. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6339. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6340. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6341. + lt_cv_prog_compiler_rtti_exceptions,
  6342. + [-fno-rtti -fno-exceptions], [],
  6343. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6344. +fi
  6345. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6346. + [Compiler flag to turn off builtin functions])
  6347. +])# _LT_COMPILER_NO_RTTI
  6348. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6349. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6350. -AC_LIBTOOL_PROG_CC_C_O($1)
  6351. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6352. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6353. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6354. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6355. -AC_LIBTOOL_CONFIG($1)
  6356. +# _LT_CMD_GLOBAL_SYMBOLS
  6357. +# ----------------------
  6358. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6359. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6360. +AC_REQUIRE([AC_PROG_CC])dnl
  6361. +AC_REQUIRE([LT_PATH_NM])dnl
  6362. +AC_REQUIRE([LT_PATH_LD])dnl
  6363. +m4_require([_LT_DECL_SED])dnl
  6364. +m4_require([_LT_DECL_EGREP])dnl
  6365. +m4_require([_LT_TAG_COMPILER])dnl
  6366. -AC_LANG_POP
  6367. -CC=$lt_save_CC
  6368. -LDCXX=$LD
  6369. -LD=$lt_save_LD
  6370. -GCC=$lt_save_GCC
  6371. -with_gnu_ldcxx=$with_gnu_ld
  6372. -with_gnu_ld=$lt_save_with_gnu_ld
  6373. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6374. -lt_cv_path_LD=$lt_save_path_LD
  6375. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6376. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6377. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6378. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6379. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6380. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6381. +[
  6382. +# These are sane defaults that work on at least a few old systems.
  6383. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6384. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6385. -# ------------------------------------
  6386. -# Figure out "hidden" library dependencies from verbose
  6387. -# compiler output when linking a shared library.
  6388. -# Parse the compiler output and extract the necessary
  6389. -# objects, libraries and library flags.
  6390. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6391. -dnl we can't use the lt_simple_compile_test_code here,
  6392. -dnl because it contains code intended for an executable,
  6393. -dnl not a library. It's possible we should let each
  6394. -dnl tag define a new lt_????_link_test_code variable,
  6395. -dnl but it's only used here...
  6396. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6397. -int a;
  6398. -void foo (void) { a = 0; }
  6399. -EOF
  6400. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6401. -class Foo
  6402. -{
  6403. -public:
  6404. - Foo (void) { a = 0; }
  6405. -private:
  6406. - int a;
  6407. -};
  6408. -EOF
  6409. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6410. - subroutine foo
  6411. - implicit none
  6412. - integer*4 a
  6413. - a=0
  6414. - return
  6415. - end
  6416. -EOF
  6417. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6418. -public class foo {
  6419. - private int a;
  6420. - public void bar (void) {
  6421. - a = 0;
  6422. - }
  6423. -};
  6424. -EOF
  6425. -])
  6426. -dnl Parse the compiler output and extract the necessary
  6427. -dnl objects, libraries and library flags.
  6428. -if AC_TRY_EVAL(ac_compile); then
  6429. - # Parse the compiler output and extract the necessary
  6430. - # objects, libraries and library flags.
  6431. +# Character class describing NM global symbol codes.
  6432. +symcode='[[BCDEGRST]]'
  6433. - # Sentinel used to keep track of whether or not we are before
  6434. - # the conftest object file.
  6435. - pre_test_object_deps_done=no
  6436. +# Regexp to match symbols that can be accessed directly from C.
  6437. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6438. - # The `*' in the case matches for architectures that use `case' in
  6439. - # $output_verbose_cmd can trigger glob expansion during the loop
  6440. - # eval without this substitution.
  6441. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  6442. +# Define system-specific variables.
  6443. +case $host_os in
  6444. +aix*)
  6445. + symcode='[[BCDT]]'
  6446. + ;;
  6447. +cygwin* | mingw* | pw32* | cegcc*)
  6448. + symcode='[[ABCDGISTW]]'
  6449. + ;;
  6450. +hpux*)
  6451. + if test "$host_cpu" = ia64; then
  6452. + symcode='[[ABCDEGRST]]'
  6453. + fi
  6454. + ;;
  6455. +irix* | nonstopux*)
  6456. + symcode='[[BCDEGRST]]'
  6457. + ;;
  6458. +osf*)
  6459. + symcode='[[BCDEGQRST]]'
  6460. + ;;
  6461. +solaris*)
  6462. + symcode='[[BDRT]]'
  6463. + ;;
  6464. +sco3.2v5*)
  6465. + symcode='[[DT]]'
  6466. + ;;
  6467. +sysv4.2uw2*)
  6468. + symcode='[[DT]]'
  6469. + ;;
  6470. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6471. + symcode='[[ABDT]]'
  6472. + ;;
  6473. +sysv4)
  6474. + symcode='[[DFNSTU]]'
  6475. + ;;
  6476. +esac
  6477. - for p in `eval $output_verbose_link_cmd`; do
  6478. - case $p in
  6479. +# If we're using GNU nm, then use its standard symbol codes.
  6480. +case `$NM -V 2>&1` in
  6481. +*GNU* | *'with BFD'*)
  6482. + symcode='[[ABCDGIRSTW]]' ;;
  6483. +esac
  6484. - -L* | -R* | -l*)
  6485. - # Some compilers place space between "-{L,R}" and the path.
  6486. - # Remove the space.
  6487. - if test $p = "-L" \
  6488. - || test $p = "-R"; then
  6489. - prev=$p
  6490. - continue
  6491. - else
  6492. - prev=
  6493. - fi
  6494. +# Transform an extracted symbol line into a proper C declaration.
  6495. +# Some systems (esp. on ia64) link data and code symbols differently,
  6496. +# so use this general approach.
  6497. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6498. - if test "$pre_test_object_deps_done" = no; then
  6499. - case $p in
  6500. - -L* | -R*)
  6501. - # Internal compiler library paths should come after those
  6502. - # provided the user. The postdeps already come after the
  6503. - # user supplied libs so there is no need to process them.
  6504. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6505. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6506. - else
  6507. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6508. - fi
  6509. - ;;
  6510. - # The "-l" case would never come before the object being
  6511. - # linked, so don't bother handling this case.
  6512. - esac
  6513. - else
  6514. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6515. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6516. - else
  6517. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6518. - fi
  6519. - fi
  6520. - ;;
  6521. +# Transform an extracted symbol line into symbol name and symbol address
  6522. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6523. +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'"
  6524. - *.$objext)
  6525. - # This assumes that the test object file only shows up
  6526. - # once in the compiler output.
  6527. - if test "$p" = "conftest.$objext"; then
  6528. - pre_test_object_deps_done=yes
  6529. - continue
  6530. - fi
  6531. +# Handle CRLF in mingw tool chain
  6532. +opt_cr=
  6533. +case $build_os in
  6534. +mingw*)
  6535. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6536. + ;;
  6537. +esac
  6538. - if test "$pre_test_object_deps_done" = no; then
  6539. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6540. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6541. - else
  6542. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6543. - fi
  6544. - else
  6545. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6546. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6547. - else
  6548. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6549. - fi
  6550. - fi
  6551. - ;;
  6552. +# Try without a prefix underscore, then with it.
  6553. +for ac_symprfx in "" "_"; do
  6554. - *) ;; # Ignore the rest.
  6555. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6556. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6557. - esac
  6558. - done
  6559. + # Write the raw and C identifiers.
  6560. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6561. + # Fake it for dumpbin and say T for any non-static function
  6562. + # and D for any global variable.
  6563. + # Also find C++ and __fastcall symbols from MSVC++,
  6564. + # which start with @ or ?.
  6565. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6566. +" {last_section=section; section=\$ 3};"\
  6567. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6568. +" \$ 0!~/External *\|/{next};"\
  6569. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6570. +" {if(hide[section]) next};"\
  6571. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6572. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6573. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6574. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6575. +" ' prfx=^$ac_symprfx]"
  6576. + else
  6577. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6578. + fi
  6579. - # Clean up.
  6580. - rm -f a.out a.exe
  6581. -else
  6582. - echo "libtool.m4: error: problem compiling $1 test program"
  6583. -fi
  6584. -
  6585. -$rm -f confest.$objext
  6586. -
  6587. -# PORTME: override above test on systems where it is broken
  6588. -ifelse([$1],[CXX],
  6589. -[case $host_os in
  6590. -interix3*)
  6591. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6592. - # hack all around it, let's just trust "g++" to DTRT.
  6593. - _LT_AC_TAGVAR(predep_objects,$1)=
  6594. - _LT_AC_TAGVAR(postdep_objects,$1)=
  6595. - _LT_AC_TAGVAR(postdeps,$1)=
  6596. - ;;
  6597. -
  6598. -solaris*)
  6599. - case $cc_basename in
  6600. - CC*)
  6601. - # Adding this requires a known-good setup of shared libraries for
  6602. - # Sun compiler versions before 5.6, else PIC objects from an old
  6603. - # archive will be linked into the output, leading to subtle bugs.
  6604. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  6605. - ;;
  6606. - esac
  6607. - ;;
  6608. -esac
  6609. -])
  6610. -
  6611. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6612. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6613. -esac
  6614. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6615. -
  6616. -# AC_LIBTOOL_LANG_F77_CONFIG
  6617. -# --------------------------
  6618. -# Ensure that the configuration vars for the C compiler are
  6619. -# suitably defined. Those variables are subsequently used by
  6620. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6621. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6622. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6623. -[AC_REQUIRE([AC_PROG_F77])
  6624. -AC_LANG_PUSH(Fortran 77)
  6625. -
  6626. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6627. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6628. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6629. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6630. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6631. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6632. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6633. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6634. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6635. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6636. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6637. -_LT_AC_TAGVAR(module_cmds, $1)=
  6638. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6639. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6640. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6641. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6642. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6643. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6644. -
  6645. -# Source file extension for f77 test sources.
  6646. -ac_ext=f
  6647. -
  6648. -# Object file extension for compiled f77 test sources.
  6649. -objext=o
  6650. -_LT_AC_TAGVAR(objext, $1)=$objext
  6651. + # Check to see that the pipe works correctly.
  6652. + pipe_works=no
  6653. -# Code to be used in simple compile tests
  6654. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6655. + rm -f conftest*
  6656. + cat > conftest.$ac_ext <<_LT_EOF
  6657. +#ifdef __cplusplus
  6658. +extern "C" {
  6659. +#endif
  6660. +char nm_test_var;
  6661. +void nm_test_func(void);
  6662. +void nm_test_func(void){}
  6663. +#ifdef __cplusplus
  6664. +}
  6665. +#endif
  6666. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6667. +_LT_EOF
  6668. -# Code to be used in simple link tests
  6669. -lt_simple_link_test_code=" program t\n end\n"
  6670. + if AC_TRY_EVAL(ac_compile); then
  6671. + # Now try to grab the symbols.
  6672. + nlist=conftest.nm
  6673. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6674. + # Try sorting and uniquifying the output.
  6675. + if sort "$nlist" | uniq > "$nlist"T; then
  6676. + mv -f "$nlist"T "$nlist"
  6677. + else
  6678. + rm -f "$nlist"T
  6679. + fi
  6680. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6681. -_LT_AC_SYS_COMPILER
  6682. + # Make sure that we snagged all the symbols we need.
  6683. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6684. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6685. + cat <<_LT_EOF > conftest.$ac_ext
  6686. +#ifdef __cplusplus
  6687. +extern "C" {
  6688. +#endif
  6689. -# save warnings/boilerplate of simple test code
  6690. -_LT_COMPILER_BOILERPLATE
  6691. -_LT_LINKER_BOILERPLATE
  6692. +_LT_EOF
  6693. + # Now generate the symbol file.
  6694. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6695. -# Allow CC to be a program name with arguments.
  6696. -lt_save_CC="$CC"
  6697. -CC=${F77-"f77"}
  6698. -compiler=$CC
  6699. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6700. -_LT_CC_BASENAME([$compiler])
  6701. + cat <<_LT_EOF >> conftest.$ac_ext
  6702. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6703. -AC_MSG_RESULT([$can_build_shared])
  6704. +/* The mapping between symbol names and symbols. */
  6705. +const struct {
  6706. + const char *name;
  6707. + void *address;
  6708. +}
  6709. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6710. +{
  6711. + { "@PROGRAM@", (void *) 0 },
  6712. +_LT_EOF
  6713. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6714. + cat <<\_LT_EOF >> conftest.$ac_ext
  6715. + {0, (void *) 0}
  6716. +};
  6717. -AC_MSG_CHECKING([whether to build shared libraries])
  6718. -test "$can_build_shared" = "no" && enable_shared=no
  6719. +/* This works around a problem in FreeBSD linker */
  6720. +#ifdef FREEBSD_WORKAROUND
  6721. +static const void *lt_preloaded_setup() {
  6722. + return lt__PROGRAM__LTX_preloaded_symbols;
  6723. +}
  6724. +#endif
  6725. -# On AIX, shared libraries and static libraries use the same namespace, and
  6726. -# are all built from PIC.
  6727. -case $host_os in
  6728. -aix3*)
  6729. - test "$enable_shared" = yes && enable_static=no
  6730. - if test -n "$RANLIB"; then
  6731. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6732. - postinstall_cmds='$RANLIB $lib'
  6733. - fi
  6734. - ;;
  6735. -aix4* | aix5*)
  6736. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6737. - test "$enable_shared" = yes && enable_static=no
  6738. +#ifdef __cplusplus
  6739. +}
  6740. +#endif
  6741. +_LT_EOF
  6742. + # Now try linking the two files.
  6743. + mv conftest.$ac_objext conftstm.$ac_objext
  6744. + lt_save_LIBS="$LIBS"
  6745. + lt_save_CFLAGS="$CFLAGS"
  6746. + LIBS="conftstm.$ac_objext"
  6747. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6748. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6749. + pipe_works=yes
  6750. + fi
  6751. + LIBS="$lt_save_LIBS"
  6752. + CFLAGS="$lt_save_CFLAGS"
  6753. + else
  6754. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6755. + fi
  6756. + else
  6757. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6758. + fi
  6759. + else
  6760. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6761. + fi
  6762. + else
  6763. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6764. + cat conftest.$ac_ext >&5
  6765. fi
  6766. - ;;
  6767. -esac
  6768. -AC_MSG_RESULT([$enable_shared])
  6769. -
  6770. -AC_MSG_CHECKING([whether to build static libraries])
  6771. -# Make sure either enable_shared or enable_static is yes.
  6772. -test "$enable_shared" = yes || enable_static=yes
  6773. -AC_MSG_RESULT([$enable_static])
  6774. -
  6775. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6776. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6777. -
  6778. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6779. -AC_LIBTOOL_PROG_CC_C_O($1)
  6780. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6781. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6782. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6783. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6784. -
  6785. -AC_LIBTOOL_CONFIG($1)
  6786. -
  6787. -AC_LANG_POP
  6788. -CC="$lt_save_CC"
  6789. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6790. -
  6791. -
  6792. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6793. -# --------------------------
  6794. -# Ensure that the configuration vars for the C compiler are
  6795. -# suitably defined. Those variables are subsequently used by
  6796. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6797. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6798. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6799. -[AC_LANG_SAVE
  6800. -
  6801. -# Source file extension for Java test sources.
  6802. -ac_ext=java
  6803. -
  6804. -# Object file extension for compiled Java test sources.
  6805. -objext=o
  6806. -_LT_AC_TAGVAR(objext, $1)=$objext
  6807. -
  6808. -# Code to be used in simple compile tests
  6809. -lt_simple_compile_test_code="class foo {}\n"
  6810. -
  6811. -# Code to be used in simple link tests
  6812. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  6813. + rm -rf conftest* conftst*
  6814. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6815. -_LT_AC_SYS_COMPILER
  6816. -
  6817. -# save warnings/boilerplate of simple test code
  6818. -_LT_COMPILER_BOILERPLATE
  6819. -_LT_LINKER_BOILERPLATE
  6820. -
  6821. -# Allow CC to be a program name with arguments.
  6822. -lt_save_CC="$CC"
  6823. -CC=${GCJ-"gcj"}
  6824. -compiler=$CC
  6825. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6826. -_LT_CC_BASENAME([$compiler])
  6827. -
  6828. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6829. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6830. -
  6831. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6832. -
  6833. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6834. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6835. -AC_LIBTOOL_PROG_CC_C_O($1)
  6836. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6837. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6838. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6839. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6840. -
  6841. -AC_LIBTOOL_CONFIG($1)
  6842. -
  6843. -AC_LANG_RESTORE
  6844. -CC="$lt_save_CC"
  6845. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6846. -
  6847. -
  6848. -# AC_LIBTOOL_LANG_RC_CONFIG
  6849. -# -------------------------
  6850. -# Ensure that the configuration vars for the Windows resource compiler are
  6851. -# suitably defined. Those variables are subsequently used by
  6852. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6853. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6854. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6855. -[AC_LANG_SAVE
  6856. -
  6857. -# Source file extension for RC test sources.
  6858. -ac_ext=rc
  6859. -
  6860. -# Object file extension for compiled RC test sources.
  6861. -objext=o
  6862. -_LT_AC_TAGVAR(objext, $1)=$objext
  6863. -
  6864. -# Code to be used in simple compile tests
  6865. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6866. -
  6867. -# Code to be used in simple link tests
  6868. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6869. + # Do not use the global_symbol_pipe unless it works.
  6870. + if test "$pipe_works" = yes; then
  6871. + break
  6872. + else
  6873. + lt_cv_sys_global_symbol_pipe=
  6874. + fi
  6875. +done
  6876. +])
  6877. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6878. + lt_cv_sys_global_symbol_to_cdecl=
  6879. +fi
  6880. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6881. + AC_MSG_RESULT(failed)
  6882. +else
  6883. + AC_MSG_RESULT(ok)
  6884. +fi
  6885. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6886. -_LT_AC_SYS_COMPILER
  6887. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6888. + [Take the output of nm and produce a listing of raw symbols and C names])
  6889. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6890. + [Transform the output of nm in a proper C declaration])
  6891. +_LT_DECL([global_symbol_to_c_name_address],
  6892. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6893. + [Transform the output of nm in a C name address pair])
  6894. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6895. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6896. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6897. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6898. -# save warnings/boilerplate of simple test code
  6899. -_LT_COMPILER_BOILERPLATE
  6900. -_LT_LINKER_BOILERPLATE
  6901. -# Allow CC to be a program name with arguments.
  6902. -lt_save_CC="$CC"
  6903. -CC=${RC-"windres"}
  6904. -compiler=$CC
  6905. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6906. -_LT_CC_BASENAME([$compiler])
  6907. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6908. +# _LT_COMPILER_PIC([TAGNAME])
  6909. +# ---------------------------
  6910. +m4_defun([_LT_COMPILER_PIC],
  6911. +[m4_require([_LT_TAG_COMPILER])dnl
  6912. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6913. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6914. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6915. -AC_LIBTOOL_CONFIG($1)
  6916. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6917. +m4_if([$1], [CXX], [
  6918. + # C++ specific cases for pic, static, wl, etc.
  6919. + if test "$GXX" = yes; then
  6920. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6921. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6922. -AC_LANG_RESTORE
  6923. -CC="$lt_save_CC"
  6924. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6925. + case $host_os in
  6926. + aix*)
  6927. + # All AIX code is PIC.
  6928. + if test "$host_cpu" = ia64; then
  6929. + # AIX 5 now supports IA64 processor
  6930. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6931. + fi
  6932. + ;;
  6933. + amigaos*)
  6934. + case $host_cpu in
  6935. + powerpc)
  6936. + # see comment about AmigaOS4 .so support
  6937. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6938. + ;;
  6939. + m68k)
  6940. + # FIXME: we need at least 68020 code to build shared libraries, but
  6941. + # adding the `-m68020' flag to GCC prevents building anything better,
  6942. + # like `-m68040'.
  6943. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6944. + ;;
  6945. + esac
  6946. + ;;
  6947. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6948. -# ----------------------------
  6949. -# If TAGNAME is not passed, then create an initial libtool script
  6950. -# with a default configuration from the untagged config vars. Otherwise
  6951. -# add code to config.status for appending the configuration named by
  6952. -# TAGNAME from the matching tagged config vars.
  6953. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6954. -[# The else clause should only fire when bootstrapping the
  6955. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6956. -# with your package, and you will get complaints that there are
  6957. -# no rules to generate ltmain.sh.
  6958. -if test -f "$ltmain"; then
  6959. - # See if we are running on zsh, and set the options which allow our commands through
  6960. - # without removal of \ escapes.
  6961. - if test -n "${ZSH_VERSION+set}" ; then
  6962. - setopt NO_GLOB_SUBST
  6963. - fi
  6964. - # Now quote all the things that may contain metacharacters while being
  6965. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6966. - # variables and quote the copies for generation of the libtool script.
  6967. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  6968. - SED SHELL STRIP \
  6969. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6970. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6971. - deplibs_check_method reload_flag reload_cmds need_locks \
  6972. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6973. - lt_cv_sys_global_symbol_to_c_name_address \
  6974. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6975. - old_postinstall_cmds old_postuninstall_cmds \
  6976. - _LT_AC_TAGVAR(compiler, $1) \
  6977. - _LT_AC_TAGVAR(CC, $1) \
  6978. - _LT_AC_TAGVAR(LD, $1) \
  6979. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6980. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6981. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6982. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6983. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6984. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6985. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6986. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6987. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6988. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6989. - _LT_AC_TAGVAR(predep_objects, $1) \
  6990. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6991. - _LT_AC_TAGVAR(predeps, $1) \
  6992. - _LT_AC_TAGVAR(postdeps, $1) \
  6993. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6994. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6995. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6996. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6997. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6998. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6999. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  7000. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  7001. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  7002. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  7003. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  7004. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  7005. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  7006. - _LT_AC_TAGVAR(module_cmds, $1) \
  7007. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  7008. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  7009. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  7010. - _LT_AC_TAGVAR(include_expsyms, $1); do
  7011. -
  7012. - case $var in
  7013. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  7014. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  7015. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  7016. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  7017. - _LT_AC_TAGVAR(module_cmds, $1) | \
  7018. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  7019. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  7020. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  7021. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7022. - postinstall_cmds | postuninstall_cmds | \
  7023. - old_postinstall_cmds | old_postuninstall_cmds | \
  7024. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7025. - # Double-quote double-evaled strings.
  7026. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7027. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7028. + # PIC is the default for these OSes.
  7029. + ;;
  7030. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  7031. + # This hack is so that the source file can tell whether it is being
  7032. + # built for inclusion in a dll (and should export symbols for example).
  7033. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7034. + # (--disable-auto-import) libraries
  7035. + m4_if([$1], [GCJ], [],
  7036. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7037. + ;;
  7038. + darwin* | rhapsody*)
  7039. + # PIC is the default on this platform
  7040. + # Common symbols not allowed in MH_DYLIB files
  7041. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7042. + ;;
  7043. + *djgpp*)
  7044. + # DJGPP does not support shared libraries at all
  7045. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7046. + ;;
  7047. + interix[[3-9]]*)
  7048. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7049. + # Instead, we relocate shared libraries at runtime.
  7050. + ;;
  7051. + sysv4*MP*)
  7052. + if test -d /usr/nec; then
  7053. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7054. + fi
  7055. + ;;
  7056. + hpux*)
  7057. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7058. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7059. + # sets the default TLS model and affects inlining.
  7060. + case $host_cpu in
  7061. + hppa*64*)
  7062. + ;;
  7063. + *)
  7064. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7065. + ;;
  7066. + esac
  7067. + ;;
  7068. + *qnx* | *nto*)
  7069. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7070. + # it will coredump.
  7071. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7072. ;;
  7073. *)
  7074. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7075. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7076. ;;
  7077. esac
  7078. - done
  7079. -
  7080. - case $lt_echo in
  7081. - *'\[$]0 --fallback-echo"')
  7082. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  7083. - ;;
  7084. - esac
  7085. -
  7086. -ifelse([$1], [],
  7087. - [cfgfile="${ofile}T"
  7088. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7089. - $rm -f "$cfgfile"
  7090. - AC_MSG_NOTICE([creating $ofile])],
  7091. - [cfgfile="$ofile"])
  7092. -
  7093. - cat <<__EOF__ >> "$cfgfile"
  7094. -ifelse([$1], [],
  7095. -[#! $SHELL
  7096. -
  7097. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7098. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7099. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7100. -#
  7101. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7102. -# Free Software Foundation, Inc.
  7103. -#
  7104. -# This file is part of GNU Libtool:
  7105. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7106. -#
  7107. -# This program is free software; you can redistribute it and/or modify
  7108. -# it under the terms of the GNU General Public License as published by
  7109. -# the Free Software Foundation; either version 2 of the License, or
  7110. -# (at your option) any later version.
  7111. -#
  7112. -# This program is distributed in the hope that it will be useful, but
  7113. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7114. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7115. -# General Public License for more details.
  7116. -#
  7117. -# You should have received a copy of the GNU General Public License
  7118. -# along with this program; if not, write to the Free Software
  7119. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7120. -#
  7121. -# As a special exception to the GNU General Public License, if you
  7122. -# distribute this file as part of a program that contains a
  7123. -# configuration script generated by Autoconf, you may include it under
  7124. -# the same distribution terms that you use for the rest of that program.
  7125. -
  7126. -# A sed program that does not truncate output.
  7127. -SED=$lt_SED
  7128. -
  7129. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7130. -Xsed="$SED -e 1s/^X//"
  7131. -
  7132. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7133. -# if CDPATH is set.
  7134. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7135. -
  7136. -# The names of the tagged configurations supported by this script.
  7137. -available_tags=
  7138. -
  7139. -# ### BEGIN LIBTOOL CONFIG],
  7140. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7141. -
  7142. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7143. + else
  7144. + case $host_os in
  7145. + aix[[4-9]]*)
  7146. + # All AIX code is PIC.
  7147. + if test "$host_cpu" = ia64; then
  7148. + # AIX 5 now supports IA64 processor
  7149. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7150. + else
  7151. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7152. + fi
  7153. + ;;
  7154. + chorus*)
  7155. + case $cc_basename in
  7156. + cxch68*)
  7157. + # Green Hills C++ Compiler
  7158. + # _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"
  7159. + ;;
  7160. + esac
  7161. + ;;
  7162. + dgux*)
  7163. + case $cc_basename in
  7164. + ec++*)
  7165. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7166. + ;;
  7167. + ghcx*)
  7168. + # Green Hills C++ Compiler
  7169. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7170. + ;;
  7171. + *)
  7172. + ;;
  7173. + esac
  7174. + ;;
  7175. + freebsd* | dragonfly*)
  7176. + # FreeBSD uses GNU C++
  7177. + ;;
  7178. + hpux9* | hpux10* | hpux11*)
  7179. + case $cc_basename in
  7180. + CC*)
  7181. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7182. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7183. + if test "$host_cpu" != ia64; then
  7184. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7185. + fi
  7186. + ;;
  7187. + aCC*)
  7188. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7189. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7190. + case $host_cpu in
  7191. + hppa*64*|ia64*)
  7192. + # +Z the default
  7193. + ;;
  7194. + *)
  7195. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7196. + ;;
  7197. + esac
  7198. + ;;
  7199. + *)
  7200. + ;;
  7201. + esac
  7202. + ;;
  7203. + interix*)
  7204. + # This is c89, which is MS Visual C++ (no shared libs)
  7205. + # Anyone wants to do a port?
  7206. + ;;
  7207. + irix5* | irix6* | nonstopux*)
  7208. + case $cc_basename in
  7209. + CC*)
  7210. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7211. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7212. + # CC pic flag -KPIC is the default.
  7213. + ;;
  7214. + *)
  7215. + ;;
  7216. + esac
  7217. + ;;
  7218. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7219. + case $cc_basename in
  7220. + KCC*)
  7221. + # KAI C++ Compiler
  7222. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7223. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7224. + ;;
  7225. + ecpc* )
  7226. + # old Intel C++ for x86_64 which still supported -KPIC.
  7227. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7228. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7229. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7230. + ;;
  7231. + icpc* )
  7232. + # Intel C++, used to be incompatible with GCC.
  7233. + # ICC 10 doesn't accept -KPIC any more.
  7234. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7235. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7236. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7237. + ;;
  7238. + pgCC* | pgcpp*)
  7239. + # Portland Group C++ compiler
  7240. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7241. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7242. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7243. + ;;
  7244. + cxx*)
  7245. + # Compaq C++
  7246. + # Make sure the PIC flag is empty. It appears that all Alpha
  7247. + # Linux and Compaq Tru64 Unix objects are PIC.
  7248. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7249. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7250. + ;;
  7251. + xlc* | xlC*)
  7252. + # IBM XL 8.0 on PPC
  7253. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7254. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7255. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7256. + ;;
  7257. + *)
  7258. + case `$CC -V 2>&1 | sed 5q` in
  7259. + *Sun\ C*)
  7260. + # Sun C++ 5.9
  7261. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7262. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7263. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7264. + ;;
  7265. + esac
  7266. + ;;
  7267. + esac
  7268. + ;;
  7269. + lynxos*)
  7270. + ;;
  7271. + m88k*)
  7272. + ;;
  7273. + mvs*)
  7274. + case $cc_basename in
  7275. + cxx*)
  7276. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7277. + ;;
  7278. + *)
  7279. + ;;
  7280. + esac
  7281. + ;;
  7282. + netbsd* | netbsdelf*-gnu)
  7283. + ;;
  7284. + *qnx* | *nto*)
  7285. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7286. + # it will coredump.
  7287. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7288. + ;;
  7289. + osf3* | osf4* | osf5*)
  7290. + case $cc_basename in
  7291. + KCC*)
  7292. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7293. + ;;
  7294. + RCC*)
  7295. + # Rational C++ 2.4.1
  7296. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7297. + ;;
  7298. + cxx*)
  7299. + # Digital/Compaq C++
  7300. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7301. + # Make sure the PIC flag is empty. It appears that all Alpha
  7302. + # Linux and Compaq Tru64 Unix objects are PIC.
  7303. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7304. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7305. + ;;
  7306. + *)
  7307. + ;;
  7308. + esac
  7309. + ;;
  7310. + psos*)
  7311. + ;;
  7312. + solaris*)
  7313. + case $cc_basename in
  7314. + CC*)
  7315. + # Sun C++ 4.2, 5.x and Centerline C++
  7316. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7317. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7318. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7319. + ;;
  7320. + gcx*)
  7321. + # Green Hills C++ Compiler
  7322. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7323. + ;;
  7324. + *)
  7325. + ;;
  7326. + esac
  7327. + ;;
  7328. + sunos4*)
  7329. + case $cc_basename in
  7330. + CC*)
  7331. + # Sun C++ 4.x
  7332. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7333. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7334. + ;;
  7335. + lcc*)
  7336. + # Lucid
  7337. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7338. + ;;
  7339. + *)
  7340. + ;;
  7341. + esac
  7342. + ;;
  7343. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7344. + case $cc_basename in
  7345. + CC*)
  7346. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7347. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7348. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7349. + ;;
  7350. + esac
  7351. + ;;
  7352. + tandem*)
  7353. + case $cc_basename in
  7354. + NCC*)
  7355. + # NonStop-UX NCC 3.20
  7356. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7357. + ;;
  7358. + *)
  7359. + ;;
  7360. + esac
  7361. + ;;
  7362. + vxworks*)
  7363. + ;;
  7364. + *)
  7365. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7366. + ;;
  7367. + esac
  7368. + fi
  7369. +],
  7370. +[
  7371. + if test "$GCC" = yes; then
  7372. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7373. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7374. -# Shell to use when invoking shell scripts.
  7375. -SHELL=$lt_SHELL
  7376. + case $host_os in
  7377. + aix*)
  7378. + # All AIX code is PIC.
  7379. + if test "$host_cpu" = ia64; then
  7380. + # AIX 5 now supports IA64 processor
  7381. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7382. + fi
  7383. + ;;
  7384. -# Whether or not to build shared libraries.
  7385. -build_libtool_libs=$enable_shared
  7386. + amigaos*)
  7387. + case $host_cpu in
  7388. + powerpc)
  7389. + # see comment about AmigaOS4 .so support
  7390. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7391. + ;;
  7392. + m68k)
  7393. + # FIXME: we need at least 68020 code to build shared libraries, but
  7394. + # adding the `-m68020' flag to GCC prevents building anything better,
  7395. + # like `-m68040'.
  7396. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7397. + ;;
  7398. + esac
  7399. + ;;
  7400. -# Whether or not to build static libraries.
  7401. -build_old_libs=$enable_static
  7402. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7403. + # PIC is the default for these OSes.
  7404. + ;;
  7405. -# Whether or not to add -lc for building shared libraries.
  7406. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7407. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7408. + # This hack is so that the source file can tell whether it is being
  7409. + # built for inclusion in a dll (and should export symbols for example).
  7410. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7411. + # (--disable-auto-import) libraries
  7412. + m4_if([$1], [GCJ], [],
  7413. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7414. + ;;
  7415. -# Whether or not to disallow shared libs when runtime libs are static
  7416. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7417. + darwin* | rhapsody*)
  7418. + # PIC is the default on this platform
  7419. + # Common symbols not allowed in MH_DYLIB files
  7420. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7421. + ;;
  7422. -# Whether or not to optimize for fast installation.
  7423. -fast_install=$enable_fast_install
  7424. + hpux*)
  7425. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7426. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7427. + # sets the default TLS model and affects inlining.
  7428. + case $host_cpu in
  7429. + hppa*64*)
  7430. + # +Z the default
  7431. + ;;
  7432. + *)
  7433. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7434. + ;;
  7435. + esac
  7436. + ;;
  7437. -# The host system.
  7438. -host_alias=$host_alias
  7439. -host=$host
  7440. -host_os=$host_os
  7441. + interix[[3-9]]*)
  7442. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7443. + # Instead, we relocate shared libraries at runtime.
  7444. + ;;
  7445. -# The build system.
  7446. -build_alias=$build_alias
  7447. -build=$build
  7448. -build_os=$build_os
  7449. + msdosdjgpp*)
  7450. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7451. + # on systems that don't support them.
  7452. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7453. + enable_shared=no
  7454. + ;;
  7455. -# An echo program that does not interpret backslashes.
  7456. -echo=$lt_echo
  7457. + *nto* | *qnx*)
  7458. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7459. + # it will coredump.
  7460. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7461. + ;;
  7462. -# The archiver.
  7463. -AR=$lt_AR
  7464. -AR_FLAGS=$lt_AR_FLAGS
  7465. + sysv4*MP*)
  7466. + if test -d /usr/nec; then
  7467. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7468. + fi
  7469. + ;;
  7470. -# A C compiler.
  7471. -LTCC=$lt_LTCC
  7472. + *)
  7473. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7474. + ;;
  7475. + esac
  7476. + else
  7477. + # PORTME Check for flag to pass linker flags through the system compiler.
  7478. + case $host_os in
  7479. + aix*)
  7480. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7481. + if test "$host_cpu" = ia64; then
  7482. + # AIX 5 now supports IA64 processor
  7483. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7484. + else
  7485. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7486. + fi
  7487. + ;;
  7488. -# LTCC compiler flags.
  7489. -LTCFLAGS=$lt_LTCFLAGS
  7490. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7491. + # This hack is so that the source file can tell whether it is being
  7492. + # built for inclusion in a dll (and should export symbols for example).
  7493. + m4_if([$1], [GCJ], [],
  7494. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7495. + ;;
  7496. -# A language-specific compiler.
  7497. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7498. + hpux9* | hpux10* | hpux11*)
  7499. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7500. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7501. + # not for PA HP-UX.
  7502. + case $host_cpu in
  7503. + hppa*64*|ia64*)
  7504. + # +Z the default
  7505. + ;;
  7506. + *)
  7507. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7508. + ;;
  7509. + esac
  7510. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7511. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7512. + ;;
  7513. -# Is the compiler the GNU C compiler?
  7514. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7515. + irix5* | irix6* | nonstopux*)
  7516. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7517. + # PIC (with -KPIC) is the default.
  7518. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7519. + ;;
  7520. -# An ERE matcher.
  7521. -EGREP=$lt_EGREP
  7522. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7523. + case $cc_basename in
  7524. + # old Intel for x86_64 which still supported -KPIC.
  7525. + ecc*)
  7526. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7527. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7528. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7529. + ;;
  7530. + # icc used to be incompatible with GCC.
  7531. + # ICC 10 doesn't accept -KPIC any more.
  7532. + icc* | ifort*)
  7533. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7534. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7535. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7536. + ;;
  7537. + # Lahey Fortran 8.1.
  7538. + lf95*)
  7539. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7540. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7541. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7542. + ;;
  7543. + pgcc* | pgf77* | pgf90* | pgf95*)
  7544. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7545. + # which looks to be a dead project)
  7546. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7547. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7548. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7549. + ;;
  7550. + ccc*)
  7551. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7552. + # All Alpha code is PIC.
  7553. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7554. + ;;
  7555. + xl*)
  7556. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7557. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7558. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7559. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7560. + ;;
  7561. + *)
  7562. + case `$CC -V 2>&1 | sed 5q` in
  7563. + *Sun\ C*)
  7564. + # Sun C 5.9
  7565. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7566. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7567. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7568. + ;;
  7569. + *Sun\ F*)
  7570. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7571. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7572. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7573. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7574. + ;;
  7575. + esac
  7576. + ;;
  7577. + esac
  7578. + ;;
  7579. -# The linker used to build libraries.
  7580. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7581. + newsos6)
  7582. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7583. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7584. + ;;
  7585. -# Whether we need hard or soft links.
  7586. -LN_S=$lt_LN_S
  7587. + *nto* | *qnx*)
  7588. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7589. + # it will coredump.
  7590. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7591. + ;;
  7592. -# A BSD-compatible nm program.
  7593. -NM=$lt_NM
  7594. -
  7595. -# A symbol stripping program
  7596. -STRIP=$lt_STRIP
  7597. + osf3* | osf4* | osf5*)
  7598. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7599. + # All OSF/1 code is PIC.
  7600. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7601. + ;;
  7602. -# Used to examine libraries when file_magic_cmd begins "file"
  7603. -MAGIC_CMD=$MAGIC_CMD
  7604. + rdos*)
  7605. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7606. + ;;
  7607. -# Used on cygwin: DLL creation program.
  7608. -DLLTOOL="$DLLTOOL"
  7609. + solaris*)
  7610. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7611. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7612. + case $cc_basename in
  7613. + f77* | f90* | f95*)
  7614. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7615. + *)
  7616. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7617. + esac
  7618. + ;;
  7619. -# Used on cygwin: object dumper.
  7620. -OBJDUMP="$OBJDUMP"
  7621. + sunos4*)
  7622. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7623. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7624. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7625. + ;;
  7626. -# Used on cygwin: assembler.
  7627. -AS="$AS"
  7628. + sysv4 | sysv4.2uw2* | sysv4.3*)
  7629. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7630. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7631. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7632. + ;;
  7633. -# The name of the directory that contains temporary libtool files.
  7634. -objdir=$objdir
  7635. + sysv4*MP*)
  7636. + if test -d /usr/nec ;then
  7637. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7638. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7639. + fi
  7640. + ;;
  7641. -# How to create reloadable object files.
  7642. -reload_flag=$lt_reload_flag
  7643. -reload_cmds=$lt_reload_cmds
  7644. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7645. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7646. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7647. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7648. + ;;
  7649. -# How to pass a linker flag through the compiler.
  7650. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7651. + unicos*)
  7652. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7653. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7654. + ;;
  7655. -# Object file suffix (normally "o").
  7656. -objext="$ac_objext"
  7657. + uts4*)
  7658. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7659. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7660. + ;;
  7661. -# Old archive suffix (normally "a").
  7662. -libext="$libext"
  7663. + *)
  7664. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7665. + ;;
  7666. + esac
  7667. + fi
  7668. +])
  7669. +case $host_os in
  7670. + # For platforms which do not support PIC, -DPIC is meaningless:
  7671. + *djgpp*)
  7672. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7673. + ;;
  7674. + *)
  7675. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7676. + ;;
  7677. +esac
  7678. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7679. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7680. + [How to pass a linker flag through the compiler])
  7681. -# Shared library suffix (normally ".so").
  7682. -shrext_cmds='$shrext_cmds'
  7683. +#
  7684. +# Check to make sure the PIC flag actually works.
  7685. +#
  7686. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7687. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7688. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7689. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7690. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7691. + "" | " "*) ;;
  7692. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7693. + esac],
  7694. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7695. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7696. +fi
  7697. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7698. + [Additional compiler flags for building library objects])
  7699. -# Executable file suffix (normally "").
  7700. -exeext="$exeext"
  7701. +#
  7702. +# Check to make sure the static flag actually works.
  7703. +#
  7704. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7705. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7706. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7707. + $lt_tmp_static_flag,
  7708. + [],
  7709. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7710. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7711. + [Compiler flag to prevent dynamic linking])
  7712. +])# _LT_COMPILER_PIC
  7713. -# Additional compiler flags for building library objects.
  7714. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7715. -pic_mode=$pic_mode
  7716. -# What is the maximum length of a command?
  7717. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7718. +# _LT_LINKER_SHLIBS([TAGNAME])
  7719. +# ----------------------------
  7720. +# See if the linker supports building shared libraries.
  7721. +m4_defun([_LT_LINKER_SHLIBS],
  7722. +[AC_REQUIRE([LT_PATH_LD])dnl
  7723. +AC_REQUIRE([LT_PATH_NM])dnl
  7724. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7725. +m4_require([_LT_DECL_EGREP])dnl
  7726. +m4_require([_LT_DECL_SED])dnl
  7727. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  7728. +m4_require([_LT_TAG_COMPILER])dnl
  7729. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7730. +m4_if([$1], [CXX], [
  7731. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7732. + case $host_os in
  7733. + aix[[4-9]]*)
  7734. + # If we're using GNU nm, then we don't want the "-C" option.
  7735. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7736. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7737. + _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'
  7738. + else
  7739. + _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'
  7740. + fi
  7741. + ;;
  7742. + pw32*)
  7743. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7744. + ;;
  7745. + cygwin* | mingw* | cegcc*)
  7746. + _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'
  7747. + ;;
  7748. + linux* | k*bsd*-gnu)
  7749. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7750. + ;;
  7751. + *)
  7752. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7753. + ;;
  7754. + esac
  7755. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7756. +], [
  7757. + runpath_var=
  7758. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7759. + _LT_TAGVAR(always_export_symbols, $1)=no
  7760. + _LT_TAGVAR(archive_cmds, $1)=
  7761. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  7762. + _LT_TAGVAR(compiler_needs_object, $1)=no
  7763. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7764. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7765. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7766. + _LT_TAGVAR(hardcode_automatic, $1)=no
  7767. + _LT_TAGVAR(hardcode_direct, $1)=no
  7768. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7769. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7770. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7771. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7772. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  7773. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7774. + _LT_TAGVAR(inherit_rpath, $1)=no
  7775. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7776. + _LT_TAGVAR(module_cmds, $1)=
  7777. + _LT_TAGVAR(module_expsym_cmds, $1)=
  7778. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  7779. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7780. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  7781. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7782. + # include_expsyms should be a list of space-separated symbols to be *always*
  7783. + # included in the symbol list
  7784. + _LT_TAGVAR(include_expsyms, $1)=
  7785. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7786. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7787. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7788. + # as well as any symbol that contains `d'.
  7789. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7790. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7791. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7792. + # the symbol is explicitly referenced. Since portable code cannot
  7793. + # rely on this symbol name, it's probably fine to never include it in
  7794. + # preloaded symbol tables.
  7795. + # Exclude shared library initialization/finalization symbols.
  7796. +dnl Note also adjust exclude_expsyms for C++ above.
  7797. + extract_expsyms_cmds=
  7798. -# Does compiler simultaneously support -c and -o options?
  7799. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  7800. + case $host_os in
  7801. + cygwin* | mingw* | pw32* | cegcc*)
  7802. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7803. + # When not using gcc, we currently assume that we are using
  7804. + # Microsoft Visual C++.
  7805. + if test "$GCC" != yes; then
  7806. + with_gnu_ld=no
  7807. + fi
  7808. + ;;
  7809. + interix*)
  7810. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7811. + with_gnu_ld=yes
  7812. + ;;
  7813. + openbsd*)
  7814. + with_gnu_ld=no
  7815. + ;;
  7816. + linux* | k*bsd*-gnu)
  7817. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7818. + ;;
  7819. + esac
  7820. -# Must we lock files when doing compilation?
  7821. -need_locks=$lt_need_locks
  7822. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7823. + if test "$with_gnu_ld" = yes; then
  7824. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7825. + wlarc='${wl}'
  7826. -# Do we need the lib prefix for modules?
  7827. -need_lib_prefix=$need_lib_prefix
  7828. + # Set some defaults for GNU ld with shared library support. These
  7829. + # are reset later if shared libraries are not supported. Putting them
  7830. + # here allows them to be overridden if necessary.
  7831. + runpath_var=LD_RUN_PATH
  7832. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7833. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7834. + # ancient GNU ld didn't support --whole-archive et. al.
  7835. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7836. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7837. + else
  7838. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7839. + fi
  7840. + supports_anon_versioning=no
  7841. + case `$LD -v 2>&1` in
  7842. + *GNU\ gold*) supports_anon_versioning=yes ;;
  7843. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7844. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7845. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7846. + *\ 2.11.*) ;; # other 2.11 versions
  7847. + *) supports_anon_versioning=yes ;;
  7848. + esac
  7849. -# Do we need a version for libraries?
  7850. -need_version=$need_version
  7851. + # See if GNU ld supports shared libraries.
  7852. + case $host_os in
  7853. + aix[[3-9]]*)
  7854. + # On AIX/PPC, the GNU linker is very broken
  7855. + if test "$host_cpu" != ia64; then
  7856. + _LT_TAGVAR(ld_shlibs, $1)=no
  7857. + cat <<_LT_EOF 1>&2
  7858. -# Whether dlopen is supported.
  7859. -dlopen_support=$enable_dlopen
  7860. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7861. +*** to be unable to reliably create shared libraries on AIX.
  7862. +*** Therefore, libtool is disabling shared libraries support. If you
  7863. +*** really care for shared libraries, you may want to modify your PATH
  7864. +*** so that a non-GNU linker is found, and then restart.
  7865. -# Whether dlopen of programs is supported.
  7866. -dlopen_self=$enable_dlopen_self
  7867. +_LT_EOF
  7868. + fi
  7869. + ;;
  7870. -# Whether dlopen of statically linked programs is supported.
  7871. -dlopen_self_static=$enable_dlopen_self_static
  7872. + amigaos*)
  7873. + case $host_cpu in
  7874. + powerpc)
  7875. + # see comment about AmigaOS4 .so support
  7876. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7877. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7878. + ;;
  7879. + m68k)
  7880. + _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)'
  7881. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7882. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7883. + ;;
  7884. + esac
  7885. + ;;
  7886. -# Compiler flag to prevent dynamic linking.
  7887. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  7888. + beos*)
  7889. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7890. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7891. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7892. + # support --undefined. This deserves some investigation. FIXME
  7893. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7894. + else
  7895. + _LT_TAGVAR(ld_shlibs, $1)=no
  7896. + fi
  7897. + ;;
  7898. -# Compiler flag to turn off builtin functions.
  7899. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  7900. + cygwin* | mingw* | pw32* | cegcc*)
  7901. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7902. + # as there is no search path for DLLs.
  7903. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7904. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7905. + _LT_TAGVAR(always_export_symbols, $1)=no
  7906. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7907. + _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'
  7908. -# Compiler flag to allow reflexive dlopens.
  7909. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7910. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7911. + _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'
  7912. + # If the export-symbols file already is a .def file (1st line
  7913. + # is EXPORTS), use it as is; otherwise, prepend...
  7914. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7915. + cp $export_symbols $output_objdir/$soname.def;
  7916. + else
  7917. + echo EXPORTS > $output_objdir/$soname.def;
  7918. + cat $export_symbols >> $output_objdir/$soname.def;
  7919. + fi~
  7920. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7921. + else
  7922. + _LT_TAGVAR(ld_shlibs, $1)=no
  7923. + fi
  7924. + ;;
  7925. -# Compiler flag to generate shared objects directly from archives.
  7926. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7927. + interix[[3-9]]*)
  7928. + _LT_TAGVAR(hardcode_direct, $1)=no
  7929. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7930. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7931. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7932. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7933. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7934. + # default) and relocated if they conflict, which is a slow very memory
  7935. + # consuming and fragmenting process. To avoid this, we pick a random,
  7936. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7937. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7938. + _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'
  7939. + _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'
  7940. + ;;
  7941. -# Compiler flag to generate thread-safe objects.
  7942. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7943. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7944. + tmp_diet=no
  7945. + if test "$host_os" = linux-dietlibc; then
  7946. + case $cc_basename in
  7947. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7948. + esac
  7949. + fi
  7950. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7951. + && test "$tmp_diet" = no
  7952. + then
  7953. + tmp_addflag=
  7954. + tmp_sharedflag='-shared'
  7955. + case $cc_basename,$host_cpu in
  7956. + pgcc*) # Portland Group C compiler
  7957. + _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'
  7958. + tmp_addflag=' $pic_flag'
  7959. + ;;
  7960. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7961. + _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'
  7962. + tmp_addflag=' $pic_flag -Mnomain' ;;
  7963. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7964. + tmp_addflag=' -i_dynamic' ;;
  7965. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7966. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  7967. + ifc* | ifort*) # Intel Fortran compiler
  7968. + tmp_addflag=' -nofor_main' ;;
  7969. + lf95*) # Lahey Fortran 8.1
  7970. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7971. + tmp_sharedflag='--shared' ;;
  7972. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7973. + tmp_sharedflag='-qmkshrobj'
  7974. + tmp_addflag= ;;
  7975. + esac
  7976. + case `$CC -V 2>&1 | sed 5q` in
  7977. + *Sun\ C*) # Sun C 5.9
  7978. + _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'
  7979. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7980. + tmp_sharedflag='-G' ;;
  7981. + *Sun\ F*) # Sun Fortran 8.3
  7982. + tmp_sharedflag='-G' ;;
  7983. + esac
  7984. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7985. -# Library versioning type.
  7986. -version_type=$version_type
  7987. + if test "x$supports_anon_versioning" = xyes; then
  7988. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7989. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7990. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7991. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7992. + fi
  7993. -# Format of library name prefix.
  7994. -libname_spec=$lt_libname_spec
  7995. + case $cc_basename in
  7996. + xlf*)
  7997. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7998. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  7999. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8000. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8001. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8002. + if test "x$supports_anon_versioning" = xyes; then
  8003. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8004. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8005. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8006. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8007. + fi
  8008. + ;;
  8009. + esac
  8010. + else
  8011. + _LT_TAGVAR(ld_shlibs, $1)=no
  8012. + fi
  8013. + ;;
  8014. -# List of archive names. First name is the real one, the rest are links.
  8015. -# The last name is the one that the linker finds with -lNAME.
  8016. -library_names_spec=$lt_library_names_spec
  8017. + netbsd* | netbsdelf*-gnu)
  8018. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8019. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8020. + wlarc=
  8021. + else
  8022. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8023. + _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'
  8024. + fi
  8025. + ;;
  8026. -# The coded name of the library, if different from the real name.
  8027. -soname_spec=$lt_soname_spec
  8028. + solaris*)
  8029. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8030. + _LT_TAGVAR(ld_shlibs, $1)=no
  8031. + cat <<_LT_EOF 1>&2
  8032. -# Commands used to build and install an old-style archive.
  8033. -RANLIB=$lt_RANLIB
  8034. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  8035. -old_postinstall_cmds=$lt_old_postinstall_cmds
  8036. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8037. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8038. +*** create shared libraries on Solaris systems. Therefore, libtool
  8039. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8040. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8041. +*** your PATH or compiler configuration so that the native linker is
  8042. +*** used, and then restart.
  8043. -# Create an old-style archive from a shared archive.
  8044. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  8045. +_LT_EOF
  8046. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8047. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8048. + _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'
  8049. + else
  8050. + _LT_TAGVAR(ld_shlibs, $1)=no
  8051. + fi
  8052. + ;;
  8053. -# Create a temporary old-style archive to link instead of a shared archive.
  8054. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  8055. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8056. + case `$LD -v 2>&1` in
  8057. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8058. + _LT_TAGVAR(ld_shlibs, $1)=no
  8059. + cat <<_LT_EOF 1>&2
  8060. -# Commands used to build and install a shared archive.
  8061. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  8062. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  8063. -postinstall_cmds=$lt_postinstall_cmds
  8064. -postuninstall_cmds=$lt_postuninstall_cmds
  8065. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8066. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  8067. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8068. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8069. +*** your PATH or compiler configuration so that the native linker is
  8070. +*** used, and then restart.
  8071. -# Commands used to build a loadable module (assumed same as above if empty)
  8072. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  8073. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  8074. +_LT_EOF
  8075. + ;;
  8076. + *)
  8077. + # For security reasons, it is highly recommended that you always
  8078. + # use absolute paths for naming shared libraries, and exclude the
  8079. + # DT_RUNPATH tag from executables and libraries. But doing so
  8080. + # requires that you compile everything twice, which is a pain.
  8081. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8082. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8083. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8084. + _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'
  8085. + else
  8086. + _LT_TAGVAR(ld_shlibs, $1)=no
  8087. + fi
  8088. + ;;
  8089. + esac
  8090. + ;;
  8091. -# Commands to strip libraries.
  8092. -old_striplib=$lt_old_striplib
  8093. -striplib=$lt_striplib
  8094. + sunos4*)
  8095. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8096. + wlarc=
  8097. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8098. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8099. + ;;
  8100. -# Dependencies to place before the objects being linked to create a
  8101. -# shared library.
  8102. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  8103. + *)
  8104. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8105. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8106. + _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'
  8107. + else
  8108. + _LT_TAGVAR(ld_shlibs, $1)=no
  8109. + fi
  8110. + ;;
  8111. + esac
  8112. -# Dependencies to place after the objects being linked to create a
  8113. -# shared library.
  8114. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  8115. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8116. + runpath_var=
  8117. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8118. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8119. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8120. + fi
  8121. + else
  8122. + # PORTME fill in a description of your system's linker (not GNU ld)
  8123. + case $host_os in
  8124. + aix3*)
  8125. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8126. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8127. + _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'
  8128. + # Note: this linker hardcodes the directories in LIBPATH if there
  8129. + # are no directories specified by -L.
  8130. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8131. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8132. + # Neither direct hardcoding nor static linking is supported with a
  8133. + # broken collect2.
  8134. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8135. + fi
  8136. + ;;
  8137. -# Dependencies to place before the objects being linked to create a
  8138. -# shared library.
  8139. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  8140. + aix[[4-9]]*)
  8141. + if test "$host_cpu" = ia64; then
  8142. + # On IA64, the linker does run time linking by default, so we don't
  8143. + # have to do anything special.
  8144. + aix_use_runtimelinking=no
  8145. + exp_sym_flag='-Bexport'
  8146. + no_entry_flag=""
  8147. + else
  8148. + # If we're using GNU nm, then we don't want the "-C" option.
  8149. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8150. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8151. + _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'
  8152. + else
  8153. + _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'
  8154. + fi
  8155. + aix_use_runtimelinking=no
  8156. -# Dependencies to place after the objects being linked to create a
  8157. -# shared library.
  8158. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  8159. + # Test if we are trying to use run time linking or normal
  8160. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8161. + # need to do runtime linking.
  8162. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8163. + for ld_flag in $LDFLAGS; do
  8164. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8165. + aix_use_runtimelinking=yes
  8166. + break
  8167. + fi
  8168. + done
  8169. + ;;
  8170. + esac
  8171. -# The library search path used internally by the compiler when linking
  8172. -# a shared library.
  8173. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  8174. -
  8175. -# Method to check whether dependent libraries are shared objects.
  8176. -deplibs_check_method=$lt_deplibs_check_method
  8177. + exp_sym_flag='-bexport'
  8178. + no_entry_flag='-bnoentry'
  8179. + fi
  8180. -# Command to use when deplibs_check_method == file_magic.
  8181. -file_magic_cmd=$lt_file_magic_cmd
  8182. + # When large executables or shared objects are built, AIX ld can
  8183. + # have problems creating the table of contents. If linking a library
  8184. + # or program results in "error TOC overflow" add -mminimal-toc to
  8185. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8186. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8187. -# Flag that allows shared libraries with undefined symbols to be built.
  8188. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8189. + _LT_TAGVAR(archive_cmds, $1)=''
  8190. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8191. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8192. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8193. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8194. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8195. -# Flag that forces no undefined symbols.
  8196. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  8197. + if test "$GCC" = yes; then
  8198. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8199. + # We only want to do this on AIX 4.2 and lower, the check
  8200. + # below for broken collect2 doesn't work under 4.3+
  8201. + collect2name=`${CC} -print-prog-name=collect2`
  8202. + if test -f "$collect2name" &&
  8203. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8204. + then
  8205. + # We have reworked collect2
  8206. + :
  8207. + else
  8208. + # We have old collect2
  8209. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8210. + # It fails to find uninstalled libraries when the uninstalled
  8211. + # path is not listed in the libpath. Setting hardcode_minus_L
  8212. + # to unsupported forces relinking
  8213. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8214. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8215. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8216. + fi
  8217. + ;;
  8218. + esac
  8219. + shared_flag='-shared'
  8220. + if test "$aix_use_runtimelinking" = yes; then
  8221. + shared_flag="$shared_flag "'${wl}-G'
  8222. + fi
  8223. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8224. + else
  8225. + # not using gcc
  8226. + if test "$host_cpu" = ia64; then
  8227. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8228. + # chokes on -Wl,-G. The following line is correct:
  8229. + shared_flag='-G'
  8230. + else
  8231. + if test "$aix_use_runtimelinking" = yes; then
  8232. + shared_flag='${wl}-G'
  8233. + else
  8234. + shared_flag='${wl}-bM:SRE'
  8235. + fi
  8236. + fi
  8237. + fi
  8238. -# Commands used to finish a libtool library installation in a directory.
  8239. -finish_cmds=$lt_finish_cmds
  8240. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8241. + # It seems that -bexpall does not export symbols beginning with
  8242. + # underscore (_), so it is better to generate a list of symbols to export.
  8243. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8244. + if test "$aix_use_runtimelinking" = yes; then
  8245. + # Warning - without using the other runtime loading flags (-brtl),
  8246. + # -berok will link without error, but may produce a broken library.
  8247. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8248. + # Determine the default libpath from the value encoded in an
  8249. + # empty executable.
  8250. + _LT_SYS_MODULE_PATH_AIX
  8251. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8252. + _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"
  8253. + else
  8254. + if test "$host_cpu" = ia64; then
  8255. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8256. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8257. + _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"
  8258. + else
  8259. + # Determine the default libpath from the value encoded in an
  8260. + # empty executable.
  8261. + _LT_SYS_MODULE_PATH_AIX
  8262. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8263. + # Warning - without using the other run time loading flags,
  8264. + # -berok will link without error, but may produce a broken library.
  8265. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8266. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8267. + # Exported symbols can be pulled into shared objects from archives
  8268. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8269. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8270. + # This is similar to how AIX traditionally builds its shared libraries.
  8271. + _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'
  8272. + fi
  8273. + fi
  8274. + ;;
  8275. -# Same as above, but a single script fragment to be evaled but not shown.
  8276. -finish_eval=$lt_finish_eval
  8277. + amigaos*)
  8278. + case $host_cpu in
  8279. + powerpc)
  8280. + # see comment about AmigaOS4 .so support
  8281. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8282. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8283. + ;;
  8284. + m68k)
  8285. + _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)'
  8286. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8287. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8288. + ;;
  8289. + esac
  8290. + ;;
  8291. -# Take the output of nm and produce a listing of raw symbols and C names.
  8292. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8293. + bsdi[[45]]*)
  8294. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8295. + ;;
  8296. -# Transform the output of nm in a proper C declaration
  8297. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8298. + cygwin* | mingw* | pw32* | cegcc*)
  8299. + # When not using gcc, we currently assume that we are using
  8300. + # Microsoft Visual C++.
  8301. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8302. + # no search path for DLLs.
  8303. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8304. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8305. + # Tell ltmain to make .lib files, not .a files.
  8306. + libext=lib
  8307. + # Tell ltmain to make .dll files, not .so files.
  8308. + shrext_cmds=".dll"
  8309. + # FIXME: Setting linknames here is a bad hack.
  8310. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8311. + # The linker will automatically build a .lib file if we build a DLL.
  8312. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8313. + # FIXME: Should let the user specify the lib program.
  8314. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8315. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8316. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8317. + ;;
  8318. -# Transform the output of nm in a C name address pair
  8319. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8320. + darwin* | rhapsody*)
  8321. + _LT_DARWIN_LINKER_FEATURES($1)
  8322. + ;;
  8323. -# This is the shared library runtime path variable.
  8324. -runpath_var=$runpath_var
  8325. + dgux*)
  8326. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8327. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8328. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8329. + ;;
  8330. -# This is the shared library path variable.
  8331. -shlibpath_var=$shlibpath_var
  8332. + freebsd1*)
  8333. + _LT_TAGVAR(ld_shlibs, $1)=no
  8334. + ;;
  8335. -# Is shlibpath searched before the hard-coded library search path?
  8336. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8337. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8338. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8339. + # does not break anything, and helps significantly (at the cost of a little
  8340. + # extra space).
  8341. + freebsd2.2*)
  8342. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8343. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8344. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8345. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8346. + ;;
  8347. -# How to hardcode a shared library path into an executable.
  8348. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  8349. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8350. + freebsd2*)
  8351. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8352. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8353. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8354. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8355. + ;;
  8356. -# Whether we should hardcode library paths into libraries.
  8357. -hardcode_into_libs=$hardcode_into_libs
  8358. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8359. + freebsd* | dragonfly*)
  8360. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8361. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8362. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8363. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8364. + ;;
  8365. -# Flag to hardcode \$libdir into a binary during linking.
  8366. -# This must work even if \$libdir does not exist.
  8367. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  8368. + hpux9*)
  8369. + if test "$GCC" = yes; then
  8370. + _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'
  8371. + else
  8372. + _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'
  8373. + fi
  8374. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8375. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8376. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8377. -# If ld is used when linking, flag to hardcode \$libdir into
  8378. -# a binary during linking. This must work even if \$libdir does
  8379. -# not exist.
  8380. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  8381. + # hardcode_minus_L: Not really in the search PATH,
  8382. + # but as the default location of the library.
  8383. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8384. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8385. + ;;
  8386. -# Whether we need a single -rpath flag with a separated argument.
  8387. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  8388. + hpux10*)
  8389. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8390. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8391. + else
  8392. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8393. + fi
  8394. + if test "$with_gnu_ld" = no; then
  8395. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8396. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8397. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8398. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8399. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8400. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8401. + # hardcode_minus_L: Not really in the search PATH,
  8402. + # but as the default location of the library.
  8403. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8404. + fi
  8405. + ;;
  8406. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8407. -# resulting binary.
  8408. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  8409. + hpux11*)
  8410. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8411. + case $host_cpu in
  8412. + hppa*64*)
  8413. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8414. + ;;
  8415. + ia64*)
  8416. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8417. + ;;
  8418. + *)
  8419. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8420. + ;;
  8421. + esac
  8422. + else
  8423. + case $host_cpu in
  8424. + hppa*64*)
  8425. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8426. + ;;
  8427. + ia64*)
  8428. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8429. + ;;
  8430. + *)
  8431. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8432. + ;;
  8433. + esac
  8434. + fi
  8435. + if test "$with_gnu_ld" = no; then
  8436. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8437. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8438. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8439. -# resulting binary.
  8440. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  8441. + case $host_cpu in
  8442. + hppa*64*|ia64*)
  8443. + _LT_TAGVAR(hardcode_direct, $1)=no
  8444. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8445. + ;;
  8446. + *)
  8447. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8448. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8449. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8450. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8451. -# the resulting binary.
  8452. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8453. + # hardcode_minus_L: Not really in the search PATH,
  8454. + # but as the default location of the library.
  8455. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8456. + ;;
  8457. + esac
  8458. + fi
  8459. + ;;
  8460. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  8461. -# and all subsequent libraries and executables linked against it.
  8462. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8463. + irix5* | irix6* | nonstopux*)
  8464. + if test "$GCC" = yes; then
  8465. + _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'
  8466. + # Try to use the -exported_symbol ld option, if it does not
  8467. + # work, assume that -exports_file does not work either and
  8468. + # implicitly export all symbols.
  8469. + save_LDFLAGS="$LDFLAGS"
  8470. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8471. + AC_LINK_IFELSE(int foo(void) {},
  8472. + _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'
  8473. + )
  8474. + LDFLAGS="$save_LDFLAGS"
  8475. + else
  8476. + _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'
  8477. + _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'
  8478. + fi
  8479. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8480. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8481. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8482. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8483. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8484. + ;;
  8485. -# Variables whose values should be saved in libtool wrapper scripts and
  8486. -# restored at relink time.
  8487. -variables_saved_for_relink="$variables_saved_for_relink"
  8488. + netbsd* | netbsdelf*-gnu)
  8489. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8490. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8491. + else
  8492. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8493. + fi
  8494. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8495. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8496. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8497. + ;;
  8498. -# Whether libtool must link a program against all its dependency libraries.
  8499. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8500. + newsos6)
  8501. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8502. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8503. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8504. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8505. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8506. + ;;
  8507. -# Compile-time system search path for libraries
  8508. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8509. + *nto* | *qnx*)
  8510. + ;;
  8511. -# Run-time system search path for libraries
  8512. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8513. + openbsd*)
  8514. + if test -f /usr/libexec/ld.so; then
  8515. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8516. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8517. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8518. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8519. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8520. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8521. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8522. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8523. + else
  8524. + case $host_os in
  8525. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8526. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8527. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8528. + ;;
  8529. + *)
  8530. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8531. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8532. + ;;
  8533. + esac
  8534. + fi
  8535. + else
  8536. + _LT_TAGVAR(ld_shlibs, $1)=no
  8537. + fi
  8538. + ;;
  8539. -# Fix the shell variable \$srcfile for the compiler.
  8540. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8541. + os2*)
  8542. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8543. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8544. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8545. + _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'
  8546. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8547. + ;;
  8548. -# Set to yes if exported symbols are required.
  8549. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8550. + osf3*)
  8551. + if test "$GCC" = yes; then
  8552. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8553. + _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'
  8554. + else
  8555. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8556. + _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'
  8557. + fi
  8558. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8559. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8560. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8561. + ;;
  8562. -# The commands to list exported symbols.
  8563. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8564. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8565. + if test "$GCC" = yes; then
  8566. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8567. + _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'
  8568. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8569. + else
  8570. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8571. + _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'
  8572. + _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~
  8573. + $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'
  8574. -# The commands to extract the exported symbol list from a shared archive.
  8575. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8576. + # Both c and cxx compiler support -rpath directly
  8577. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8578. + fi
  8579. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8580. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8581. + ;;
  8582. -# Symbols that should not be listed in the preloaded symbols.
  8583. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8584. + solaris*)
  8585. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8586. + if test "$GCC" = yes; then
  8587. + wlarc='${wl}'
  8588. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8589. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8590. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8591. + else
  8592. + case `$CC -V 2>&1` in
  8593. + *"Compilers 5.0"*)
  8594. + wlarc=''
  8595. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8596. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8597. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8598. + ;;
  8599. + *)
  8600. + wlarc='${wl}'
  8601. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8602. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8603. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8604. + ;;
  8605. + esac
  8606. + fi
  8607. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8608. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8609. + case $host_os in
  8610. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8611. + *)
  8612. + # The compiler driver will combine and reorder linker options,
  8613. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  8614. + # but is careful enough not to reorder.
  8615. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8616. + if test "$GCC" = yes; then
  8617. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8618. + else
  8619. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8620. + fi
  8621. + ;;
  8622. + esac
  8623. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8624. + ;;
  8625. -# Symbols that must always be exported.
  8626. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8627. + sunos4*)
  8628. + if test "x$host_vendor" = xsequent; then
  8629. + # Use $CC to link under sequent, because it throws in some extra .o
  8630. + # files that make .init and .fini sections work.
  8631. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8632. + else
  8633. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8634. + fi
  8635. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8636. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8637. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8638. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8639. + ;;
  8640. -ifelse([$1],[],
  8641. -[# ### END LIBTOOL CONFIG],
  8642. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  8643. + sysv4)
  8644. + case $host_vendor in
  8645. + sni)
  8646. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8647. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8648. + ;;
  8649. + siemens)
  8650. + ## LD is ld it makes a PLAMLIB
  8651. + ## CC just makes a GrossModule.
  8652. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8653. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8654. + _LT_TAGVAR(hardcode_direct, $1)=no
  8655. + ;;
  8656. + motorola)
  8657. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8658. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8659. + ;;
  8660. + esac
  8661. + runpath_var='LD_RUN_PATH'
  8662. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8663. + ;;
  8664. -__EOF__
  8665. + sysv4.3*)
  8666. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8667. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8668. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8669. + ;;
  8670. -ifelse([$1],[], [
  8671. - case $host_os in
  8672. - aix3*)
  8673. - cat <<\EOF >> "$cfgfile"
  8674. + sysv4*MP*)
  8675. + if test -d /usr/nec; then
  8676. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8677. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8678. + runpath_var=LD_RUN_PATH
  8679. + hardcode_runpath_var=yes
  8680. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8681. + fi
  8682. + ;;
  8683. -# AIX sometimes has problems with the GCC collect2 program. For some
  8684. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  8685. -# vanish in a puff of smoke.
  8686. -if test "X${COLLECT_NAMES+set}" != Xset; then
  8687. - COLLECT_NAMES=
  8688. - export COLLECT_NAMES
  8689. -fi
  8690. -EOF
  8691. - ;;
  8692. - esac
  8693. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8694. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8695. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8696. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8697. + runpath_var='LD_RUN_PATH'
  8698. - # We use sed instead of cat because bash on DJGPP gets confused if
  8699. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8700. - # text mode, it properly converts lines to CR/LF. This bash problem
  8701. - # is reportedly fixed, but why not run on old versions too?
  8702. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8703. + if test "$GCC" = yes; then
  8704. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8705. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8706. + else
  8707. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8708. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8709. + fi
  8710. + ;;
  8711. - mv -f "$cfgfile" "$ofile" || \
  8712. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8713. - chmod +x "$ofile"
  8714. -])
  8715. -else
  8716. - # If there is no Makefile yet, we rely on a make rule to execute
  8717. - # `config.status --recheck' to rerun these tests and create the
  8718. - # libtool script then.
  8719. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8720. - if test -f "$ltmain_in"; then
  8721. - test -f Makefile && make "$ltmain"
  8722. - fi
  8723. -fi
  8724. -])# AC_LIBTOOL_CONFIG
  8725. + sysv5* | sco3.2v5* | sco5v6*)
  8726. + # Note: We can NOT use -z defs as we might desire, because we do not
  8727. + # link with -lc, and that would cause any symbols used from libc to
  8728. + # always be unresolved, which means just about no library would
  8729. + # ever link correctly. If we're not using GNU ld we use -z text
  8730. + # though, which does catch some bad symbols but isn't as heavy-handed
  8731. + # as -z defs.
  8732. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8733. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8734. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8735. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8736. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8737. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8738. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8739. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8740. + runpath_var='LD_RUN_PATH'
  8741. + if test "$GCC" = yes; then
  8742. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8743. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8744. + else
  8745. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8746. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8747. + fi
  8748. + ;;
  8749. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  8750. -# -------------------------------------------
  8751. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  8752. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  8753. -
  8754. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8755. -
  8756. -if test "$GCC" = yes; then
  8757. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8758. -
  8759. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  8760. - lt_cv_prog_compiler_rtti_exceptions,
  8761. - [-fno-rtti -fno-exceptions], [],
  8762. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  8763. -fi
  8764. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  8765. + uts4*)
  8766. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8767. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8768. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8769. + ;;
  8770. + *)
  8771. + _LT_TAGVAR(ld_shlibs, $1)=no
  8772. + ;;
  8773. + esac
  8774. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8775. -# ---------------------------------
  8776. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  8777. -[AC_REQUIRE([AC_CANONICAL_HOST])
  8778. -AC_REQUIRE([AC_PROG_NM])
  8779. -AC_REQUIRE([AC_OBJEXT])
  8780. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  8781. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  8782. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  8783. -[
  8784. -# These are sane defaults that work on at least a few old systems.
  8785. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8786. + if test x$host_vendor = xsni; then
  8787. + case $host in
  8788. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8789. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  8790. + ;;
  8791. + esac
  8792. + fi
  8793. + fi
  8794. +])
  8795. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8796. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8797. -# Character class describing NM global symbol codes.
  8798. -symcode='[[BCDEGRST]]'
  8799. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  8800. -# Regexp to match symbols that can be accessed directly from C.
  8801. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  8802. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  8803. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  8804. +_LT_DECL([], [extract_expsyms_cmds], [2],
  8805. + [The commands to extract the exported symbol list from a shared archive])
  8806. -# Transform an extracted symbol line into a proper C declaration
  8807. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8808. +#
  8809. +# Do we need to explicitly link libc?
  8810. +#
  8811. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  8812. +x|xyes)
  8813. + # Assume -lc should be added
  8814. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8815. -# Transform an extracted symbol line into symbol name and symbol address
  8816. -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'"
  8817. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8818. + case $_LT_TAGVAR(archive_cmds, $1) in
  8819. + *'~'*)
  8820. + # FIXME: we may have to deal with multi-command sequences.
  8821. + ;;
  8822. + '$CC '*)
  8823. + # Test whether the compiler implicitly links with -lc since on some
  8824. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8825. + # to ld, don't add -lc before -lgcc.
  8826. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8827. + $RM conftest*
  8828. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8829. -# Define system-specific variables.
  8830. -case $host_os in
  8831. -aix*)
  8832. - symcode='[[BCDT]]'
  8833. - ;;
  8834. -cygwin* | mingw* | pw32*)
  8835. - symcode='[[ABCDGISTW]]'
  8836. - ;;
  8837. -hpux*) # Its linker distinguishes data from code symbols
  8838. - if test "$host_cpu" = ia64; then
  8839. - symcode='[[ABCDEGRST]]'
  8840. - fi
  8841. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8842. - 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'"
  8843. - ;;
  8844. -linux*)
  8845. - if test "$host_cpu" = ia64; then
  8846. - symcode='[[ABCDGIRSTW]]'
  8847. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8848. - 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'"
  8849. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8850. + soname=conftest
  8851. + lib=conftest
  8852. + libobjs=conftest.$ac_objext
  8853. + deplibs=
  8854. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  8855. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  8856. + compiler_flags=-v
  8857. + linker_flags=-v
  8858. + verstring=
  8859. + output_objdir=.
  8860. + libname=conftest
  8861. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  8862. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8863. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  8864. + then
  8865. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8866. + else
  8867. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8868. + fi
  8869. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8870. + else
  8871. + cat conftest.err 1>&5
  8872. + fi
  8873. + $RM conftest*
  8874. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  8875. + ;;
  8876. + esac
  8877. fi
  8878. ;;
  8879. -irix* | nonstopux*)
  8880. - symcode='[[BCDEGRST]]'
  8881. - ;;
  8882. -osf*)
  8883. - symcode='[[BCDEGQRST]]'
  8884. - ;;
  8885. -solaris*)
  8886. - symcode='[[BDRT]]'
  8887. - ;;
  8888. -sco3.2v5*)
  8889. - symcode='[[DT]]'
  8890. - ;;
  8891. -sysv4.2uw2*)
  8892. - symcode='[[DT]]'
  8893. - ;;
  8894. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8895. - symcode='[[ABDT]]'
  8896. - ;;
  8897. -sysv4)
  8898. - symcode='[[DFNSTU]]'
  8899. - ;;
  8900. esac
  8901. -# Handle CRLF in mingw tool chain
  8902. -opt_cr=
  8903. -case $build_os in
  8904. -mingw*)
  8905. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8906. - ;;
  8907. -esac
  8908. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  8909. + [Whether or not to add -lc for building shared libraries])
  8910. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  8911. + [enable_shared_with_static_runtimes], [0],
  8912. + [Whether or not to disallow shared libs when runtime libs are static])
  8913. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  8914. + [Compiler flag to allow reflexive dlopens])
  8915. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  8916. + [Compiler flag to generate shared objects directly from archives])
  8917. +_LT_TAGDECL([], [compiler_needs_object], [1],
  8918. + [Whether the compiler copes with passing no objects directly])
  8919. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  8920. + [Create an old-style archive from a shared archive])
  8921. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  8922. + [Create a temporary old-style archive to link instead of a shared archive])
  8923. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  8924. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  8925. +_LT_TAGDECL([], [module_cmds], [2],
  8926. + [Commands used to build a loadable module if different from building
  8927. + a shared archive.])
  8928. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  8929. +_LT_TAGDECL([], [with_gnu_ld], [1],
  8930. + [Whether we are building with GNU ld or not])
  8931. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  8932. + [Flag that allows shared libraries with undefined symbols to be built])
  8933. +_LT_TAGDECL([], [no_undefined_flag], [1],
  8934. + [Flag that enforces no undefined symbols])
  8935. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  8936. + [Flag to hardcode $libdir into a binary during linking.
  8937. + This must work even if $libdir does not exist])
  8938. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  8939. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  8940. + during linking. This must work even if $libdir does not exist]])
  8941. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  8942. + [Whether we need a single "-rpath" flag with a separated argument])
  8943. +_LT_TAGDECL([], [hardcode_direct], [0],
  8944. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8945. + DIR into the resulting binary])
  8946. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  8947. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8948. + DIR into the resulting binary and the resulting library dependency is
  8949. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  8950. + library is relocated])
  8951. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  8952. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  8953. + into the resulting binary])
  8954. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  8955. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  8956. + into the resulting binary])
  8957. +_LT_TAGDECL([], [hardcode_automatic], [0],
  8958. + [Set to "yes" if building a shared library automatically hardcodes DIR
  8959. + into the library and all subsequent libraries and executables linked
  8960. + against it])
  8961. +_LT_TAGDECL([], [inherit_rpath], [0],
  8962. + [Set to yes if linker adds runtime paths of dependent libraries
  8963. + to runtime path list])
  8964. +_LT_TAGDECL([], [link_all_deplibs], [0],
  8965. + [Whether libtool must link a program against all its dependency libraries])
  8966. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  8967. + [Fix the shell variable $srcfile for the compiler])
  8968. +_LT_TAGDECL([], [always_export_symbols], [0],
  8969. + [Set to "yes" if exported symbols are required])
  8970. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  8971. + [The commands to list exported symbols])
  8972. +_LT_TAGDECL([], [exclude_expsyms], [1],
  8973. + [Symbols that should not be listed in the preloaded symbols])
  8974. +_LT_TAGDECL([], [include_expsyms], [1],
  8975. + [Symbols that must always be exported])
  8976. +_LT_TAGDECL([], [prelink_cmds], [2],
  8977. + [Commands necessary for linking programs (against libraries) with templates])
  8978. +_LT_TAGDECL([], [file_list_spec], [1],
  8979. + [Specify filename containing input files])
  8980. +dnl FIXME: Not yet implemented
  8981. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  8982. +dnl [Compiler flag to generate thread safe objects])
  8983. +])# _LT_LINKER_SHLIBS
  8984. -# If we're using GNU nm, then use its standard symbol codes.
  8985. -case `$NM -V 2>&1` in
  8986. -*GNU* | *'with BFD'*)
  8987. - symcode='[[ABCDGIRSTW]]' ;;
  8988. -esac
  8989. -# Try without a prefix undercore, then with it.
  8990. -for ac_symprfx in "" "_"; do
  8991. +# _LT_LANG_C_CONFIG([TAG])
  8992. +# ------------------------
  8993. +# Ensure that the configuration variables for a C compiler are suitably
  8994. +# defined. These variables are subsequently used by _LT_CONFIG to write
  8995. +# the compiler configuration to `libtool'.
  8996. +m4_defun([_LT_LANG_C_CONFIG],
  8997. +[m4_require([_LT_DECL_EGREP])dnl
  8998. +lt_save_CC="$CC"
  8999. +AC_LANG_PUSH(C)
  9000. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9001. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  9002. +# Source file extension for C test sources.
  9003. +ac_ext=c
  9004. - # Write the raw and C identifiers.
  9005. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9006. +# Object file extension for compiled C test sources.
  9007. +objext=o
  9008. +_LT_TAGVAR(objext, $1)=$objext
  9009. - # Check to see that the pipe works correctly.
  9010. - pipe_works=no
  9011. +# Code to be used in simple compile tests
  9012. +lt_simple_compile_test_code="int some_variable = 0;"
  9013. - rm -f conftest*
  9014. - cat > conftest.$ac_ext <<EOF
  9015. -#ifdef __cplusplus
  9016. -extern "C" {
  9017. -#endif
  9018. -char nm_test_var;
  9019. -void nm_test_func(){}
  9020. -#ifdef __cplusplus
  9021. -}
  9022. -#endif
  9023. -int main(){nm_test_var='a';nm_test_func();return(0);}
  9024. -EOF
  9025. +# Code to be used in simple link tests
  9026. +lt_simple_link_test_code='int main(){return(0);}'
  9027. - if AC_TRY_EVAL(ac_compile); then
  9028. - # Now try to grab the symbols.
  9029. - nlist=conftest.nm
  9030. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  9031. - # Try sorting and uniquifying the output.
  9032. - if sort "$nlist" | uniq > "$nlist"T; then
  9033. - mv -f "$nlist"T "$nlist"
  9034. - else
  9035. - rm -f "$nlist"T
  9036. - fi
  9037. +_LT_TAG_COMPILER
  9038. +# Save the default compiler, since it gets overwritten when the other
  9039. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9040. +compiler_DEFAULT=$CC
  9041. - # Make sure that we snagged all the symbols we need.
  9042. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  9043. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  9044. - cat <<EOF > conftest.$ac_ext
  9045. -#ifdef __cplusplus
  9046. -extern "C" {
  9047. -#endif
  9048. +# save warnings/boilerplate of simple test code
  9049. +_LT_COMPILER_BOILERPLATE
  9050. +_LT_LINKER_BOILERPLATE
  9051. -EOF
  9052. - # Now generate the symbol file.
  9053. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  9054. +if test -n "$compiler"; then
  9055. + _LT_COMPILER_NO_RTTI($1)
  9056. + _LT_COMPILER_PIC($1)
  9057. + _LT_COMPILER_C_O($1)
  9058. + _LT_COMPILER_FILE_LOCKS($1)
  9059. + _LT_LINKER_SHLIBS($1)
  9060. + _LT_SYS_DYNAMIC_LINKER($1)
  9061. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9062. + LT_SYS_DLOPEN_SELF
  9063. + _LT_CMD_STRIPLIB
  9064. +
  9065. + # Report which library types will actually be built
  9066. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9067. + AC_MSG_RESULT([$can_build_shared])
  9068. - cat <<EOF >> conftest.$ac_ext
  9069. -#if defined (__STDC__) && __STDC__
  9070. -# define lt_ptr_t void *
  9071. -#else
  9072. -# define lt_ptr_t char *
  9073. -# define const
  9074. -#endif
  9075. + AC_MSG_CHECKING([whether to build shared libraries])
  9076. + test "$can_build_shared" = "no" && enable_shared=no
  9077. -/* The mapping between symbol names and symbols. */
  9078. -const struct {
  9079. - const char *name;
  9080. - lt_ptr_t address;
  9081. -}
  9082. -lt_preloaded_symbols[[]] =
  9083. -{
  9084. -EOF
  9085. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  9086. - cat <<\EOF >> conftest.$ac_ext
  9087. - {0, (lt_ptr_t) 0}
  9088. -};
  9089. + # On AIX, shared libraries and static libraries use the same namespace, and
  9090. + # are all built from PIC.
  9091. + case $host_os in
  9092. + aix3*)
  9093. + test "$enable_shared" = yes && enable_static=no
  9094. + if test -n "$RANLIB"; then
  9095. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9096. + postinstall_cmds='$RANLIB $lib'
  9097. + fi
  9098. + ;;
  9099. -#ifdef __cplusplus
  9100. -}
  9101. -#endif
  9102. -EOF
  9103. - # Now try linking the two files.
  9104. - mv conftest.$ac_objext conftstm.$ac_objext
  9105. - lt_save_LIBS="$LIBS"
  9106. - lt_save_CFLAGS="$CFLAGS"
  9107. - LIBS="conftstm.$ac_objext"
  9108. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  9109. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  9110. - pipe_works=yes
  9111. - fi
  9112. - LIBS="$lt_save_LIBS"
  9113. - CFLAGS="$lt_save_CFLAGS"
  9114. - else
  9115. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  9116. - fi
  9117. - else
  9118. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  9119. - fi
  9120. - else
  9121. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  9122. + aix[[4-9]]*)
  9123. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9124. + test "$enable_shared" = yes && enable_static=no
  9125. fi
  9126. - else
  9127. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  9128. - cat conftest.$ac_ext >&5
  9129. - fi
  9130. - rm -f conftest* conftst*
  9131. + ;;
  9132. + esac
  9133. + AC_MSG_RESULT([$enable_shared])
  9134. - # Do not use the global_symbol_pipe unless it works.
  9135. - if test "$pipe_works" = yes; then
  9136. - break
  9137. - else
  9138. - lt_cv_sys_global_symbol_pipe=
  9139. - fi
  9140. -done
  9141. -])
  9142. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9143. - lt_cv_sys_global_symbol_to_cdecl=
  9144. + AC_MSG_CHECKING([whether to build static libraries])
  9145. + # Make sure either enable_shared or enable_static is yes.
  9146. + test "$enable_shared" = yes || enable_static=yes
  9147. + AC_MSG_RESULT([$enable_static])
  9148. +
  9149. + _LT_CONFIG($1)
  9150. fi
  9151. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9152. - AC_MSG_RESULT(failed)
  9153. +AC_LANG_POP
  9154. +CC="$lt_save_CC"
  9155. +])# _LT_LANG_C_CONFIG
  9156. +
  9157. +
  9158. +# _LT_PROG_CXX
  9159. +# ------------
  9160. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9161. +# compiler, we have our own version here.
  9162. +m4_defun([_LT_PROG_CXX],
  9163. +[
  9164. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9165. +AC_PROG_CXX
  9166. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9167. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9168. + (test "X$CXX" != "Xg++"))) ; then
  9169. + AC_PROG_CXXCPP
  9170. else
  9171. - AC_MSG_RESULT(ok)
  9172. + _lt_caught_CXX_error=yes
  9173. fi
  9174. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  9175. +popdef([AC_MSG_ERROR])
  9176. +])# _LT_PROG_CXX
  9177. +dnl aclocal-1.4 backwards compatibility:
  9178. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9179. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  9180. -# ---------------------------------------
  9181. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  9182. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  9183. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9184. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  9185. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  9186. - ifelse([$1],[CXX],[
  9187. - # C++ specific cases for pic, static, wl, etc.
  9188. - if test "$GXX" = yes; then
  9189. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9190. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9191. +# _LT_LANG_CXX_CONFIG([TAG])
  9192. +# --------------------------
  9193. +# Ensure that the configuration variables for a C++ compiler are suitably
  9194. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9195. +# the compiler configuration to `libtool'.
  9196. +m4_defun([_LT_LANG_CXX_CONFIG],
  9197. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9198. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9199. +m4_require([_LT_DECL_EGREP])dnl
  9200. +
  9201. +AC_LANG_PUSH(C++)
  9202. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9203. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9204. +_LT_TAGVAR(always_export_symbols, $1)=no
  9205. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9206. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9207. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9208. +_LT_TAGVAR(hardcode_direct, $1)=no
  9209. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9210. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9211. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9212. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9213. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9214. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9215. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9216. +_LT_TAGVAR(inherit_rpath, $1)=no
  9217. +_LT_TAGVAR(module_cmds, $1)=
  9218. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9219. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9220. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9221. +_LT_TAGVAR(no_undefined_flag, $1)=
  9222. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9223. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9224. - case $host_os in
  9225. - aix*)
  9226. - # All AIX code is PIC.
  9227. - if test "$host_cpu" = ia64; then
  9228. - # AIX 5 now supports IA64 processor
  9229. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9230. +# Source file extension for C++ test sources.
  9231. +ac_ext=cpp
  9232. +
  9233. +# Object file extension for compiled C++ test sources.
  9234. +objext=o
  9235. +_LT_TAGVAR(objext, $1)=$objext
  9236. +
  9237. +# No sense in running all these tests if we already determined that
  9238. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9239. +# are currently assumed to apply to all compilers on this platform,
  9240. +# and will be corrupted by setting them based on a non-working compiler.
  9241. +if test "$_lt_caught_CXX_error" != yes; then
  9242. + # Code to be used in simple compile tests
  9243. + lt_simple_compile_test_code="int some_variable = 0;"
  9244. +
  9245. + # Code to be used in simple link tests
  9246. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9247. +
  9248. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9249. + _LT_TAG_COMPILER
  9250. +
  9251. + # save warnings/boilerplate of simple test code
  9252. + _LT_COMPILER_BOILERPLATE
  9253. + _LT_LINKER_BOILERPLATE
  9254. +
  9255. + # Allow CC to be a program name with arguments.
  9256. + lt_save_CC=$CC
  9257. + lt_save_LD=$LD
  9258. + lt_save_GCC=$GCC
  9259. + GCC=$GXX
  9260. + lt_save_with_gnu_ld=$with_gnu_ld
  9261. + lt_save_path_LD=$lt_cv_path_LD
  9262. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9263. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9264. + else
  9265. + $as_unset lt_cv_prog_gnu_ld
  9266. + fi
  9267. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9268. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9269. + else
  9270. + $as_unset lt_cv_path_LD
  9271. + fi
  9272. + test -z "${LDCXX+set}" || LD=$LDCXX
  9273. + CC=${CXX-"c++"}
  9274. + compiler=$CC
  9275. + _LT_TAGVAR(compiler, $1)=$CC
  9276. + _LT_CC_BASENAME([$compiler])
  9277. +
  9278. + if test -n "$compiler"; then
  9279. + # We don't want -fno-exception when compiling C++ code, so set the
  9280. + # no_builtin_flag separately
  9281. + if test "$GXX" = yes; then
  9282. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9283. + else
  9284. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9285. + fi
  9286. +
  9287. + if test "$GXX" = yes; then
  9288. + # Set up default GNU C++ configuration
  9289. +
  9290. + LT_PATH_LD
  9291. +
  9292. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9293. + # archiving commands below assume that GNU ld is being used.
  9294. + if test "$with_gnu_ld" = yes; then
  9295. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9296. + _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'
  9297. +
  9298. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9299. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9300. +
  9301. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9302. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9303. + # investigate it a little bit more. (MM)
  9304. + wlarc='${wl}'
  9305. +
  9306. + # ancient GNU ld didn't support --whole-archive et. al.
  9307. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9308. + $GREP 'no-whole-archive' > /dev/null; then
  9309. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9310. + else
  9311. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9312. + fi
  9313. + else
  9314. + with_gnu_ld=no
  9315. + wlarc=
  9316. +
  9317. + # A generic and very simple default shared library creation
  9318. + # command for GNU C++ for the case where it uses the native
  9319. + # linker, instead of GNU ld. If possible, this setting should
  9320. + # overridden to take advantage of the native linker features on
  9321. + # the platform it is being used on.
  9322. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9323. fi
  9324. - ;;
  9325. - amigaos*)
  9326. - # FIXME: we need at least 68020 code to build shared libraries, but
  9327. - # adding the `-m68020' flag to GCC prevents building anything better,
  9328. - # like `-m68040'.
  9329. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9330. - ;;
  9331. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9332. - # PIC is the default for these OSes.
  9333. - ;;
  9334. - mingw* | os2* | pw32*)
  9335. - # This hack is so that the source file can tell whether it is being
  9336. - # built for inclusion in a dll (and should export symbols for example).
  9337. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9338. - ;;
  9339. - darwin* | rhapsody*)
  9340. - # PIC is the default on this platform
  9341. - # Common symbols not allowed in MH_DYLIB files
  9342. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9343. - ;;
  9344. - *djgpp*)
  9345. - # DJGPP does not support shared libraries at all
  9346. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9347. - ;;
  9348. - interix3*)
  9349. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9350. - # Instead, we relocate shared libraries at runtime.
  9351. - ;;
  9352. - sysv4*MP*)
  9353. - if test -d /usr/nec; then
  9354. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9355. - fi
  9356. - ;;
  9357. - hpux*)
  9358. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9359. - # not for PA HP-UX.
  9360. - case $host_cpu in
  9361. - hppa*64*|ia64*)
  9362. - ;;
  9363. - *)
  9364. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9365. - ;;
  9366. - esac
  9367. - ;;
  9368. - *)
  9369. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9370. - ;;
  9371. - esac
  9372. - else
  9373. +
  9374. + # Commands to make compiler produce verbose output that lists
  9375. + # what "hidden" libraries, object files and flags are used when
  9376. + # linking a shared library.
  9377. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9378. +
  9379. + else
  9380. + GXX=no
  9381. + with_gnu_ld=no
  9382. + wlarc=
  9383. + fi
  9384. +
  9385. + # PORTME: fill in a description of your system's C++ link characteristics
  9386. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9387. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9388. case $host_os in
  9389. - aix4* | aix5*)
  9390. - # All AIX code is PIC.
  9391. - if test "$host_cpu" = ia64; then
  9392. - # AIX 5 now supports IA64 processor
  9393. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9394. + aix3*)
  9395. + # FIXME: insert proper C++ library support
  9396. + _LT_TAGVAR(ld_shlibs, $1)=no
  9397. + ;;
  9398. + aix[[4-9]]*)
  9399. + if test "$host_cpu" = ia64; then
  9400. + # On IA64, the linker does run time linking by default, so we don't
  9401. + # have to do anything special.
  9402. + aix_use_runtimelinking=no
  9403. + exp_sym_flag='-Bexport'
  9404. + no_entry_flag=""
  9405. + else
  9406. + aix_use_runtimelinking=no
  9407. +
  9408. + # Test if we are trying to use run time linking or normal
  9409. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9410. + # need to do runtime linking.
  9411. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9412. + for ld_flag in $LDFLAGS; do
  9413. + case $ld_flag in
  9414. + *-brtl*)
  9415. + aix_use_runtimelinking=yes
  9416. + break
  9417. + ;;
  9418. + esac
  9419. + done
  9420. + ;;
  9421. + esac
  9422. +
  9423. + exp_sym_flag='-bexport'
  9424. + no_entry_flag='-bnoentry'
  9425. + fi
  9426. +
  9427. + # When large executables or shared objects are built, AIX ld can
  9428. + # have problems creating the table of contents. If linking a library
  9429. + # or program results in "error TOC overflow" add -mminimal-toc to
  9430. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9431. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9432. +
  9433. + _LT_TAGVAR(archive_cmds, $1)=''
  9434. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9435. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9436. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9437. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9438. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9439. +
  9440. + if test "$GXX" = yes; then
  9441. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9442. + # We only want to do this on AIX 4.2 and lower, the check
  9443. + # below for broken collect2 doesn't work under 4.3+
  9444. + collect2name=`${CC} -print-prog-name=collect2`
  9445. + if test -f "$collect2name" &&
  9446. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9447. + then
  9448. + # We have reworked collect2
  9449. + :
  9450. + else
  9451. + # We have old collect2
  9452. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9453. + # It fails to find uninstalled libraries when the uninstalled
  9454. + # path is not listed in the libpath. Setting hardcode_minus_L
  9455. + # to unsupported forces relinking
  9456. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9457. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9458. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9459. + fi
  9460. + esac
  9461. + shared_flag='-shared'
  9462. + if test "$aix_use_runtimelinking" = yes; then
  9463. + shared_flag="$shared_flag "'${wl}-G'
  9464. + fi
  9465. + else
  9466. + # not using gcc
  9467. + if test "$host_cpu" = ia64; then
  9468. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9469. + # chokes on -Wl,-G. The following line is correct:
  9470. + shared_flag='-G'
  9471. + else
  9472. + if test "$aix_use_runtimelinking" = yes; then
  9473. + shared_flag='${wl}-G'
  9474. + else
  9475. + shared_flag='${wl}-bM:SRE'
  9476. + fi
  9477. + fi
  9478. + fi
  9479. +
  9480. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9481. + # It seems that -bexpall does not export symbols beginning with
  9482. + # underscore (_), so it is better to generate a list of symbols to
  9483. + # export.
  9484. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9485. + if test "$aix_use_runtimelinking" = yes; then
  9486. + # Warning - without using the other runtime loading flags (-brtl),
  9487. + # -berok will link without error, but may produce a broken library.
  9488. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9489. + # Determine the default libpath from the value encoded in an empty
  9490. + # executable.
  9491. + _LT_SYS_MODULE_PATH_AIX
  9492. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9493. +
  9494. + _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"
  9495. + else
  9496. + if test "$host_cpu" = ia64; then
  9497. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9498. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9499. + _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"
  9500. + else
  9501. + # Determine the default libpath from the value encoded in an
  9502. + # empty executable.
  9503. + _LT_SYS_MODULE_PATH_AIX
  9504. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9505. + # Warning - without using the other run time loading flags,
  9506. + # -berok will link without error, but may produce a broken library.
  9507. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9508. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9509. + # Exported symbols can be pulled into shared objects from archives
  9510. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9511. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9512. + # This is similar to how AIX traditionally builds its shared
  9513. + # libraries.
  9514. + _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'
  9515. + fi
  9516. + fi
  9517. + ;;
  9518. +
  9519. + beos*)
  9520. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9521. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9522. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9523. + # support --undefined. This deserves some investigation. FIXME
  9524. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9525. else
  9526. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9527. + _LT_TAGVAR(ld_shlibs, $1)=no
  9528. fi
  9529. ;;
  9530. +
  9531. chorus*)
  9532. - case $cc_basename in
  9533. - cxch68*)
  9534. - # Green Hills C++ Compiler
  9535. - # _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"
  9536. + case $cc_basename in
  9537. + *)
  9538. + # FIXME: insert proper C++ library support
  9539. + _LT_TAGVAR(ld_shlibs, $1)=no
  9540. ;;
  9541. - esac
  9542. + esac
  9543. + ;;
  9544. +
  9545. + cygwin* | mingw* | pw32* | cegcc*)
  9546. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9547. + # as there is no search path for DLLs.
  9548. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9549. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9550. + _LT_TAGVAR(always_export_symbols, $1)=no
  9551. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9552. +
  9553. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9554. + _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'
  9555. + # If the export-symbols file already is a .def file (1st line
  9556. + # is EXPORTS), use it as is; otherwise, prepend...
  9557. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9558. + cp $export_symbols $output_objdir/$soname.def;
  9559. + else
  9560. + echo EXPORTS > $output_objdir/$soname.def;
  9561. + cat $export_symbols >> $output_objdir/$soname.def;
  9562. + fi~
  9563. + $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'
  9564. + else
  9565. + _LT_TAGVAR(ld_shlibs, $1)=no
  9566. + fi
  9567. + ;;
  9568. + darwin* | rhapsody*)
  9569. + _LT_DARWIN_LINKER_FEATURES($1)
  9570. ;;
  9571. - darwin*)
  9572. - # PIC is the default on this platform
  9573. - # Common symbols not allowed in MH_DYLIB files
  9574. - case $cc_basename in
  9575. - xlc*)
  9576. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9577. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9578. - ;;
  9579. - esac
  9580. - ;;
  9581. +
  9582. dgux*)
  9583. - case $cc_basename in
  9584. - ec++*)
  9585. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9586. + case $cc_basename in
  9587. + ec++*)
  9588. + # FIXME: insert proper C++ library support
  9589. + _LT_TAGVAR(ld_shlibs, $1)=no
  9590. ;;
  9591. - ghcx*)
  9592. + ghcx*)
  9593. # Green Hills C++ Compiler
  9594. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9595. + # FIXME: insert proper C++ library support
  9596. + _LT_TAGVAR(ld_shlibs, $1)=no
  9597. ;;
  9598. - *)
  9599. + *)
  9600. + # FIXME: insert proper C++ library support
  9601. + _LT_TAGVAR(ld_shlibs, $1)=no
  9602. ;;
  9603. - esac
  9604. - ;;
  9605. - freebsd* | kfreebsd*-gnu | dragonfly*)
  9606. - # FreeBSD uses GNU C++
  9607. - ;;
  9608. - hpux9* | hpux10* | hpux11*)
  9609. - case $cc_basename in
  9610. - CC*)
  9611. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9612. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9613. - if test "$host_cpu" != ia64; then
  9614. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9615. - fi
  9616. + esac
  9617. + ;;
  9618. +
  9619. + freebsd[[12]]*)
  9620. + # C++ shared libraries reported to be fairly broken before
  9621. + # switch to ELF
  9622. + _LT_TAGVAR(ld_shlibs, $1)=no
  9623. + ;;
  9624. +
  9625. + freebsd-elf*)
  9626. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9627. + ;;
  9628. +
  9629. + freebsd* | dragonfly*)
  9630. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9631. + # conventions
  9632. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9633. + ;;
  9634. +
  9635. + gnu*)
  9636. + ;;
  9637. +
  9638. + hpux9*)
  9639. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9640. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9641. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9642. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9643. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9644. + # but as the default
  9645. + # location of the library.
  9646. +
  9647. + case $cc_basename in
  9648. + CC*)
  9649. + # FIXME: insert proper C++ library support
  9650. + _LT_TAGVAR(ld_shlibs, $1)=no
  9651. + ;;
  9652. + aCC*)
  9653. + _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'
  9654. + # Commands to make compiler produce verbose output that lists
  9655. + # what "hidden" libraries, object files and flags are used when
  9656. + # linking a shared library.
  9657. + #
  9658. + # There doesn't appear to be a way to prevent this compiler from
  9659. + # explicitly linking system object files so we need to strip them
  9660. + # from the output so that they don't get included in the library
  9661. + # dependencies.
  9662. + 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'
  9663. + ;;
  9664. + *)
  9665. + if test "$GXX" = yes; then
  9666. + _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'
  9667. + else
  9668. + # FIXME: insert proper C++ library support
  9669. + _LT_TAGVAR(ld_shlibs, $1)=no
  9670. + fi
  9671. + ;;
  9672. + esac
  9673. + ;;
  9674. +
  9675. + hpux10*|hpux11*)
  9676. + if test $with_gnu_ld = no; then
  9677. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9678. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9679. +
  9680. + case $host_cpu in
  9681. + hppa*64*|ia64*)
  9682. + ;;
  9683. + *)
  9684. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9685. + ;;
  9686. + esac
  9687. + fi
  9688. + case $host_cpu in
  9689. + hppa*64*|ia64*)
  9690. + _LT_TAGVAR(hardcode_direct, $1)=no
  9691. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9692. + ;;
  9693. + *)
  9694. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9695. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9696. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9697. + # but as the default
  9698. + # location of the library.
  9699. + ;;
  9700. + esac
  9701. +
  9702. + case $cc_basename in
  9703. + CC*)
  9704. + # FIXME: insert proper C++ library support
  9705. + _LT_TAGVAR(ld_shlibs, $1)=no
  9706. ;;
  9707. - aCC*)
  9708. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9709. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9710. + aCC*)
  9711. case $host_cpu in
  9712. - hppa*64*|ia64*)
  9713. - # +Z the default
  9714. - ;;
  9715. - *)
  9716. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9717. - ;;
  9718. + hppa*64*)
  9719. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9720. + ;;
  9721. + ia64*)
  9722. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9723. + ;;
  9724. + *)
  9725. + _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'
  9726. + ;;
  9727. esac
  9728. + # Commands to make compiler produce verbose output that lists
  9729. + # what "hidden" libraries, object files and flags are used when
  9730. + # linking a shared library.
  9731. + #
  9732. + # There doesn't appear to be a way to prevent this compiler from
  9733. + # explicitly linking system object files so we need to strip them
  9734. + # from the output so that they don't get included in the library
  9735. + # dependencies.
  9736. + 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'
  9737. ;;
  9738. - *)
  9739. + *)
  9740. + if test "$GXX" = yes; then
  9741. + if test $with_gnu_ld = no; then
  9742. + case $host_cpu in
  9743. + hppa*64*)
  9744. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9745. + ;;
  9746. + ia64*)
  9747. + _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'
  9748. + ;;
  9749. + *)
  9750. + _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'
  9751. + ;;
  9752. + esac
  9753. + fi
  9754. + else
  9755. + # FIXME: insert proper C++ library support
  9756. + _LT_TAGVAR(ld_shlibs, $1)=no
  9757. + fi
  9758. ;;
  9759. - esac
  9760. - ;;
  9761. - interix*)
  9762. - # This is c89, which is MS Visual C++ (no shared libs)
  9763. - # Anyone wants to do a port?
  9764. - ;;
  9765. - irix5* | irix6* | nonstopux*)
  9766. - case $cc_basename in
  9767. - CC*)
  9768. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9769. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9770. - # CC pic flag -KPIC is the default.
  9771. + esac
  9772. + ;;
  9773. +
  9774. + interix[[3-9]]*)
  9775. + _LT_TAGVAR(hardcode_direct, $1)=no
  9776. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9777. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9778. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9779. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9780. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9781. + # default) and relocated if they conflict, which is a slow very memory
  9782. + # consuming and fragmenting process. To avoid this, we pick a random,
  9783. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9784. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9785. + _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'
  9786. + _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'
  9787. + ;;
  9788. + irix5* | irix6*)
  9789. + case $cc_basename in
  9790. + CC*)
  9791. + # SGI C++
  9792. + _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'
  9793. +
  9794. + # Archives containing C++ object files must be created using
  9795. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9796. + # necessary to make sure instantiated templates are included
  9797. + # in the archive.
  9798. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9799. ;;
  9800. - *)
  9801. + *)
  9802. + if test "$GXX" = yes; then
  9803. + if test "$with_gnu_ld" = no; then
  9804. + _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'
  9805. + else
  9806. + _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'
  9807. + fi
  9808. + fi
  9809. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9810. ;;
  9811. - esac
  9812. - ;;
  9813. - linux*)
  9814. - case $cc_basename in
  9815. - KCC*)
  9816. - # KAI C++ Compiler
  9817. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9818. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9819. + esac
  9820. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9821. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9822. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9823. + ;;
  9824. +
  9825. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9826. + case $cc_basename in
  9827. + KCC*)
  9828. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9829. +
  9830. + # KCC will only create a shared library if the output file
  9831. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9832. + # to its proper name (with version) after linking.
  9833. + _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'
  9834. + _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'
  9835. + # Commands to make compiler produce verbose output that lists
  9836. + # what "hidden" libraries, object files and flags are used when
  9837. + # linking a shared library.
  9838. + #
  9839. + # There doesn't appear to be a way to prevent this compiler from
  9840. + # explicitly linking system object files so we need to strip them
  9841. + # from the output so that they don't get included in the library
  9842. + # dependencies.
  9843. + 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'
  9844. +
  9845. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9846. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9847. +
  9848. + # Archives containing C++ object files must be created using
  9849. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9850. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9851. ;;
  9852. - icpc* | ecpc*)
  9853. + icpc* | ecpc* )
  9854. # Intel C++
  9855. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9856. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9857. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9858. - ;;
  9859. - pgCC*)
  9860. - # Portland Group C++ compiler.
  9861. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9862. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9863. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9864. + with_gnu_ld=yes
  9865. + # version 8.0 and above of icpc choke on multiply defined symbols
  9866. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9867. + # earlier do not add the objects themselves.
  9868. + case `$CC -V 2>&1` in
  9869. + *"Version 7."*)
  9870. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9871. + _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'
  9872. + ;;
  9873. + *) # Version 8.0 or newer
  9874. + tmp_idyn=
  9875. + case $host_cpu in
  9876. + ia64*) tmp_idyn=' -i_dynamic';;
  9877. + esac
  9878. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9879. + _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'
  9880. + ;;
  9881. + esac
  9882. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9883. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9884. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9885. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9886. ;;
  9887. + pgCC* | pgcpp*)
  9888. + # Portland Group C++ compiler
  9889. + case `$CC -V` in
  9890. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9891. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9892. + rm -rf $tpldir~
  9893. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9894. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9895. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9896. + rm -rf $tpldir~
  9897. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9898. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9899. + $RANLIB $oldlib'
  9900. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9901. + rm -rf $tpldir~
  9902. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9903. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9904. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9905. + rm -rf $tpldir~
  9906. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9907. + $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'
  9908. + ;;
  9909. + *) # Version 6 will use weak symbols
  9910. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9911. + _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'
  9912. + ;;
  9913. + esac
  9914. +
  9915. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9916. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9917. + _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'
  9918. + ;;
  9919. cxx*)
  9920. # Compaq C++
  9921. - # Make sure the PIC flag is empty. It appears that all Alpha
  9922. - # Linux and Compaq Tru64 Unix objects are PIC.
  9923. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9924. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9925. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9926. + _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'
  9927. +
  9928. + runpath_var=LD_RUN_PATH
  9929. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9930. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9931. +
  9932. + # Commands to make compiler produce verbose output that lists
  9933. + # what "hidden" libraries, object files and flags are used when
  9934. + # linking a shared library.
  9935. + #
  9936. + # There doesn't appear to be a way to prevent this compiler from
  9937. + # explicitly linking system object files so we need to strip them
  9938. + # from the output so that they don't get included in the library
  9939. + # dependencies.
  9940. + 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'
  9941. + ;;
  9942. + xl*)
  9943. + # IBM XL 8.0 on PPC, with GNU ld
  9944. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9945. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9946. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9947. + if test "x$supports_anon_versioning" = xyes; then
  9948. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  9949. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9950. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9951. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9952. + fi
  9953. ;;
  9954. *)
  9955. + case `$CC -V 2>&1 | sed 5q` in
  9956. + *Sun\ C*)
  9957. + # Sun C++ 5.9
  9958. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  9959. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9960. + _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'
  9961. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9962. + _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'
  9963. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  9964. +
  9965. + # Not sure whether something based on
  9966. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  9967. + # would be better.
  9968. + output_verbose_link_cmd='echo'
  9969. +
  9970. + # Archives containing C++ object files must be created using
  9971. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9972. + # necessary to make sure instantiated templates are included
  9973. + # in the archive.
  9974. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  9975. + ;;
  9976. + esac
  9977. ;;
  9978. esac
  9979. ;;
  9980. +
  9981. lynxos*)
  9982. + # FIXME: insert proper C++ library support
  9983. + _LT_TAGVAR(ld_shlibs, $1)=no
  9984. ;;
  9985. +
  9986. m88k*)
  9987. + # FIXME: insert proper C++ library support
  9988. + _LT_TAGVAR(ld_shlibs, $1)=no
  9989. ;;
  9990. +
  9991. mvs*)
  9992. - case $cc_basename in
  9993. - cxx*)
  9994. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  9995. + case $cc_basename in
  9996. + cxx*)
  9997. + # FIXME: insert proper C++ library support
  9998. + _LT_TAGVAR(ld_shlibs, $1)=no
  9999. ;;
  10000. *)
  10001. + # FIXME: insert proper C++ library support
  10002. + _LT_TAGVAR(ld_shlibs, $1)=no
  10003. ;;
  10004. esac
  10005. ;;
  10006. +
  10007. netbsd*)
  10008. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10009. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10010. + wlarc=
  10011. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10012. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10013. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10014. + fi
  10015. + # Workaround some broken pre-1.5 toolchains
  10016. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10017. + ;;
  10018. +
  10019. + *nto* | *qnx*)
  10020. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10021. ;;
  10022. +
  10023. + openbsd2*)
  10024. + # C++ shared libraries are fairly broken
  10025. + _LT_TAGVAR(ld_shlibs, $1)=no
  10026. + ;;
  10027. +
  10028. + openbsd*)
  10029. + if test -f /usr/libexec/ld.so; then
  10030. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10031. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10032. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10033. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10034. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10035. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10036. + _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'
  10037. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10038. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10039. + fi
  10040. + output_verbose_link_cmd=echo
  10041. + else
  10042. + _LT_TAGVAR(ld_shlibs, $1)=no
  10043. + fi
  10044. + ;;
  10045. +
  10046. osf3* | osf4* | osf5*)
  10047. - case $cc_basename in
  10048. - KCC*)
  10049. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  10050. + case $cc_basename in
  10051. + KCC*)
  10052. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10053. +
  10054. + # KCC will only create a shared library if the output file
  10055. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10056. + # to its proper name (with version) after linking.
  10057. + _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'
  10058. +
  10059. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10060. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10061. +
  10062. + # Archives containing C++ object files must be created using
  10063. + # the KAI C++ compiler.
  10064. + case $host in
  10065. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10066. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10067. + esac
  10068. ;;
  10069. - RCC*)
  10070. + RCC*)
  10071. # Rational C++ 2.4.1
  10072. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10073. + # FIXME: insert proper C++ library support
  10074. + _LT_TAGVAR(ld_shlibs, $1)=no
  10075. ;;
  10076. - cxx*)
  10077. - # Digital/Compaq C++
  10078. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10079. - # Make sure the PIC flag is empty. It appears that all Alpha
  10080. - # Linux and Compaq Tru64 Unix objects are PIC.
  10081. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10082. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10083. + cxx*)
  10084. + case $host in
  10085. + osf3*)
  10086. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10087. + _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'
  10088. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10089. + ;;
  10090. + *)
  10091. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10092. + _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'
  10093. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10094. + echo "-hidden">> $lib.exp~
  10095. + $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~
  10096. + $RM $lib.exp'
  10097. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10098. + ;;
  10099. + esac
  10100. +
  10101. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10102. +
  10103. + # Commands to make compiler produce verbose output that lists
  10104. + # what "hidden" libraries, object files and flags are used when
  10105. + # linking a shared library.
  10106. + #
  10107. + # There doesn't appear to be a way to prevent this compiler from
  10108. + # explicitly linking system object files so we need to strip them
  10109. + # from the output so that they don't get included in the library
  10110. + # dependencies.
  10111. + 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'
  10112. ;;
  10113. *)
  10114. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10115. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10116. + case $host in
  10117. + osf3*)
  10118. + _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'
  10119. + ;;
  10120. + *)
  10121. + _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'
  10122. + ;;
  10123. + esac
  10124. +
  10125. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10126. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10127. +
  10128. + # Commands to make compiler produce verbose output that lists
  10129. + # what "hidden" libraries, object files and flags are used when
  10130. + # linking a shared library.
  10131. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10132. +
  10133. + else
  10134. + # FIXME: insert proper C++ library support
  10135. + _LT_TAGVAR(ld_shlibs, $1)=no
  10136. + fi
  10137. ;;
  10138. - esac
  10139. - ;;
  10140. + esac
  10141. + ;;
  10142. +
  10143. psos*)
  10144. - ;;
  10145. + # FIXME: insert proper C++ library support
  10146. + _LT_TAGVAR(ld_shlibs, $1)=no
  10147. + ;;
  10148. +
  10149. + sunos4*)
  10150. + case $cc_basename in
  10151. + CC*)
  10152. + # Sun C++ 4.x
  10153. + # FIXME: insert proper C++ library support
  10154. + _LT_TAGVAR(ld_shlibs, $1)=no
  10155. + ;;
  10156. + lcc*)
  10157. + # Lucid
  10158. + # FIXME: insert proper C++ library support
  10159. + _LT_TAGVAR(ld_shlibs, $1)=no
  10160. + ;;
  10161. + *)
  10162. + # FIXME: insert proper C++ library support
  10163. + _LT_TAGVAR(ld_shlibs, $1)=no
  10164. + ;;
  10165. + esac
  10166. + ;;
  10167. +
  10168. solaris*)
  10169. - case $cc_basename in
  10170. - CC*)
  10171. + case $cc_basename in
  10172. + CC*)
  10173. # Sun C++ 4.2, 5.x and Centerline C++
  10174. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10175. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10176. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10177. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10178. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10179. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10180. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10181. + $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'
  10182. +
  10183. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10184. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10185. + case $host_os in
  10186. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10187. + *)
  10188. + # The compiler driver will combine and reorder linker options,
  10189. + # but understands `-z linker_flag'.
  10190. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10191. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10192. + ;;
  10193. + esac
  10194. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10195. +
  10196. + output_verbose_link_cmd='echo'
  10197. +
  10198. + # Archives containing C++ object files must be created using
  10199. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10200. + # necessary to make sure instantiated templates are included
  10201. + # in the archive.
  10202. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10203. ;;
  10204. - gcx*)
  10205. + gcx*)
  10206. # Green Hills C++ Compiler
  10207. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10208. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10209. +
  10210. + # The C++ compiler must be used to create the archive.
  10211. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10212. ;;
  10213. - *)
  10214. + *)
  10215. + # GNU C++ compiler with Solaris linker
  10216. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10217. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10218. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10219. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10220. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10221. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10222. +
  10223. + # Commands to make compiler produce verbose output that lists
  10224. + # what "hidden" libraries, object files and flags are used when
  10225. + # linking a shared library.
  10226. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10227. + else
  10228. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10229. + # platform.
  10230. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10231. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10232. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10233. +
  10234. + # Commands to make compiler produce verbose output that lists
  10235. + # what "hidden" libraries, object files and flags are used when
  10236. + # linking a shared library.
  10237. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10238. + fi
  10239. +
  10240. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10241. + case $host_os in
  10242. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10243. + *)
  10244. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10245. + ;;
  10246. + esac
  10247. + fi
  10248. ;;
  10249. - esac
  10250. - ;;
  10251. - sunos4*)
  10252. + esac
  10253. + ;;
  10254. +
  10255. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10256. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10257. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10258. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10259. + runpath_var='LD_RUN_PATH'
  10260. +
  10261. + case $cc_basename in
  10262. + CC*)
  10263. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10264. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10265. + ;;
  10266. + *)
  10267. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10268. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10269. + ;;
  10270. + esac
  10271. + ;;
  10272. +
  10273. + sysv5* | sco3.2v5* | sco5v6*)
  10274. + # Note: We can NOT use -z defs as we might desire, because we do not
  10275. + # link with -lc, and that would cause any symbols used from libc to
  10276. + # always be unresolved, which means just about no library would
  10277. + # ever link correctly. If we're not using GNU ld we use -z text
  10278. + # though, which does catch some bad symbols but isn't as heavy-handed
  10279. + # as -z defs.
  10280. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10281. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10282. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10283. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10284. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10285. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10286. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10287. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10288. + runpath_var='LD_RUN_PATH'
  10289. +
  10290. case $cc_basename in
  10291. - CC*)
  10292. - # Sun C++ 4.x
  10293. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10294. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10295. - ;;
  10296. - lcc*)
  10297. - # Lucid
  10298. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10299. + CC*)
  10300. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10301. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10302. ;;
  10303. *)
  10304. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10305. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10306. ;;
  10307. esac
  10308. - ;;
  10309. + ;;
  10310. +
  10311. tandem*)
  10312. - case $cc_basename in
  10313. - NCC*)
  10314. + case $cc_basename in
  10315. + NCC*)
  10316. # NonStop-UX NCC 3.20
  10317. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10318. - ;;
  10319. - *)
  10320. + # FIXME: insert proper C++ library support
  10321. + _LT_TAGVAR(ld_shlibs, $1)=no
  10322. ;;
  10323. - esac
  10324. - ;;
  10325. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10326. - case $cc_basename in
  10327. - CC*)
  10328. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10329. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10330. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10331. + *)
  10332. + # FIXME: insert proper C++ library support
  10333. + _LT_TAGVAR(ld_shlibs, $1)=no
  10334. ;;
  10335. - esac
  10336. - ;;
  10337. + esac
  10338. + ;;
  10339. +
  10340. vxworks*)
  10341. - ;;
  10342. + # FIXME: insert proper C++ library support
  10343. + _LT_TAGVAR(ld_shlibs, $1)=no
  10344. + ;;
  10345. +
  10346. *)
  10347. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10348. - ;;
  10349. + # FIXME: insert proper C++ library support
  10350. + _LT_TAGVAR(ld_shlibs, $1)=no
  10351. + ;;
  10352. esac
  10353. - fi
  10354. -],
  10355. +
  10356. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10357. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10358. +
  10359. + _LT_TAGVAR(GCC, $1)="$GXX"
  10360. + _LT_TAGVAR(LD, $1)="$LD"
  10361. +
  10362. + ## CAVEAT EMPTOR:
  10363. + ## There is no encapsulation within the following macros, do not change
  10364. + ## the running order or otherwise move them around unless you know exactly
  10365. + ## what you are doing...
  10366. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10367. + _LT_COMPILER_PIC($1)
  10368. + _LT_COMPILER_C_O($1)
  10369. + _LT_COMPILER_FILE_LOCKS($1)
  10370. + _LT_LINKER_SHLIBS($1)
  10371. + _LT_SYS_DYNAMIC_LINKER($1)
  10372. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10373. +
  10374. + _LT_CONFIG($1)
  10375. + fi # test -n "$compiler"
  10376. +
  10377. + CC=$lt_save_CC
  10378. + LDCXX=$LD
  10379. + LD=$lt_save_LD
  10380. + GCC=$lt_save_GCC
  10381. + with_gnu_ld=$lt_save_with_gnu_ld
  10382. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10383. + lt_cv_path_LD=$lt_save_path_LD
  10384. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10385. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10386. +fi # test "$_lt_caught_CXX_error" != yes
  10387. +
  10388. +AC_LANG_POP
  10389. +])# _LT_LANG_CXX_CONFIG
  10390. +
  10391. +
  10392. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10393. +# ---------------------------------
  10394. +# Figure out "hidden" library dependencies from verbose
  10395. +# compiler output when linking a shared library.
  10396. +# Parse the compiler output and extract the necessary
  10397. +# objects, libraries and library flags.
  10398. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10399. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10400. +# Dependencies to place before and after the object being linked:
  10401. +_LT_TAGVAR(predep_objects, $1)=
  10402. +_LT_TAGVAR(postdep_objects, $1)=
  10403. +_LT_TAGVAR(predeps, $1)=
  10404. +_LT_TAGVAR(postdeps, $1)=
  10405. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10406. +
  10407. +dnl we can't use the lt_simple_compile_test_code here,
  10408. +dnl because it contains code intended for an executable,
  10409. +dnl not a library. It's possible we should let each
  10410. +dnl tag define a new lt_????_link_test_code variable,
  10411. +dnl but it's only used here...
  10412. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10413. +int a;
  10414. +void foo (void) { a = 0; }
  10415. +_LT_EOF
  10416. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10417. +class Foo
  10418. +{
  10419. +public:
  10420. + Foo (void) { a = 0; }
  10421. +private:
  10422. + int a;
  10423. +};
  10424. +_LT_EOF
  10425. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10426. + subroutine foo
  10427. + implicit none
  10428. + integer*4 a
  10429. + a=0
  10430. + return
  10431. + end
  10432. +_LT_EOF
  10433. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10434. + subroutine foo
  10435. + implicit none
  10436. + integer a
  10437. + a=0
  10438. + return
  10439. + end
  10440. +_LT_EOF
  10441. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10442. +public class foo {
  10443. + private int a;
  10444. + public void bar (void) {
  10445. + a = 0;
  10446. + }
  10447. +};
  10448. +_LT_EOF
  10449. +])
  10450. +dnl Parse the compiler output and extract the necessary
  10451. +dnl objects, libraries and library flags.
  10452. +if AC_TRY_EVAL(ac_compile); then
  10453. + # Parse the compiler output and extract the necessary
  10454. + # objects, libraries and library flags.
  10455. +
  10456. + # Sentinel used to keep track of whether or not we are before
  10457. + # the conftest object file.
  10458. + pre_test_object_deps_done=no
  10459. +
  10460. + for p in `eval "$output_verbose_link_cmd"`; do
  10461. + case $p in
  10462. +
  10463. + -L* | -R* | -l*)
  10464. + # Some compilers place space between "-{L,R}" and the path.
  10465. + # Remove the space.
  10466. + if test $p = "-L" ||
  10467. + test $p = "-R"; then
  10468. + prev=$p
  10469. + continue
  10470. + else
  10471. + prev=
  10472. + fi
  10473. +
  10474. + if test "$pre_test_object_deps_done" = no; then
  10475. + case $p in
  10476. + -L* | -R*)
  10477. + # Internal compiler library paths should come after those
  10478. + # provided the user. The postdeps already come after the
  10479. + # user supplied libs so there is no need to process them.
  10480. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10481. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10482. + else
  10483. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10484. + fi
  10485. + ;;
  10486. + # The "-l" case would never come before the object being
  10487. + # linked, so don't bother handling this case.
  10488. + esac
  10489. + else
  10490. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10491. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10492. + else
  10493. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10494. + fi
  10495. + fi
  10496. + ;;
  10497. +
  10498. + *.$objext)
  10499. + # This assumes that the test object file only shows up
  10500. + # once in the compiler output.
  10501. + if test "$p" = "conftest.$objext"; then
  10502. + pre_test_object_deps_done=yes
  10503. + continue
  10504. + fi
  10505. +
  10506. + if test "$pre_test_object_deps_done" = no; then
  10507. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10508. + _LT_TAGVAR(predep_objects, $1)="$p"
  10509. + else
  10510. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10511. + fi
  10512. + else
  10513. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10514. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10515. + else
  10516. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10517. + fi
  10518. + fi
  10519. + ;;
  10520. +
  10521. + *) ;; # Ignore the rest.
  10522. +
  10523. + esac
  10524. + done
  10525. +
  10526. + # Clean up.
  10527. + rm -f a.out a.exe
  10528. +else
  10529. + echo "libtool.m4: error: problem compiling $1 test program"
  10530. +fi
  10531. +
  10532. +$RM -f confest.$objext
  10533. +
  10534. +# PORTME: override above test on systems where it is broken
  10535. +m4_if([$1], [CXX],
  10536. +[case $host_os in
  10537. +interix[[3-9]]*)
  10538. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10539. + # hack all around it, let's just trust "g++" to DTRT.
  10540. + _LT_TAGVAR(predep_objects,$1)=
  10541. + _LT_TAGVAR(postdep_objects,$1)=
  10542. + _LT_TAGVAR(postdeps,$1)=
  10543. + ;;
  10544. +
  10545. +linux*)
  10546. + case `$CC -V 2>&1 | sed 5q` in
  10547. + *Sun\ C*)
  10548. + # Sun C++ 5.9
  10549. +
  10550. + # The more standards-conforming stlport4 library is
  10551. + # incompatible with the Cstd library. Avoid specifying
  10552. + # it if it's in CXXFLAGS. Ignore libCrun as
  10553. + # -library=stlport4 depends on it.
  10554. + case " $CXX $CXXFLAGS " in
  10555. + *" -library=stlport4 "*)
  10556. + solaris_use_stlport4=yes
  10557. + ;;
  10558. + esac
  10559. +
  10560. + if test "$solaris_use_stlport4" != yes; then
  10561. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10562. + fi
  10563. + ;;
  10564. + esac
  10565. + ;;
  10566. +
  10567. +solaris*)
  10568. + case $cc_basename in
  10569. + CC*)
  10570. + # The more standards-conforming stlport4 library is
  10571. + # incompatible with the Cstd library. Avoid specifying
  10572. + # it if it's in CXXFLAGS. Ignore libCrun as
  10573. + # -library=stlport4 depends on it.
  10574. + case " $CXX $CXXFLAGS " in
  10575. + *" -library=stlport4 "*)
  10576. + solaris_use_stlport4=yes
  10577. + ;;
  10578. + esac
  10579. +
  10580. + # Adding this requires a known-good setup of shared libraries for
  10581. + # Sun compiler versions before 5.6, else PIC objects from an old
  10582. + # archive will be linked into the output, leading to subtle bugs.
  10583. + if test "$solaris_use_stlport4" != yes; then
  10584. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10585. + fi
  10586. + ;;
  10587. + esac
  10588. + ;;
  10589. +esac
  10590. +])
  10591. +
  10592. +case " $_LT_TAGVAR(postdeps, $1) " in
  10593. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10594. +esac
  10595. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10596. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10597. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10598. +fi
  10599. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10600. + [The directories searched by this compiler when creating a shared library])
  10601. +_LT_TAGDECL([], [predep_objects], [1],
  10602. + [Dependencies to place before and after the objects being linked to
  10603. + create a shared library])
  10604. +_LT_TAGDECL([], [postdep_objects], [1])
  10605. +_LT_TAGDECL([], [predeps], [1])
  10606. +_LT_TAGDECL([], [postdeps], [1])
  10607. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10608. + [The library search path used internally by the compiler when linking
  10609. + a shared library])
  10610. +])# _LT_SYS_HIDDEN_LIBDEPS
  10611. +
  10612. +
  10613. +# _LT_PROG_F77
  10614. +# ------------
  10615. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10616. +# if there is no fortran compiler, we have our own version here.
  10617. +m4_defun([_LT_PROG_F77],
  10618. [
  10619. - if test "$GCC" = yes; then
  10620. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10621. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10622. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10623. +AC_PROG_F77
  10624. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10625. + _lt_disable_F77=yes
  10626. +fi
  10627. +popdef([AC_MSG_ERROR])
  10628. +])# _LT_PROG_F77
  10629. +
  10630. +dnl aclocal-1.4 backwards compatibility:
  10631. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10632. +
  10633. +
  10634. +# _LT_LANG_F77_CONFIG([TAG])
  10635. +# --------------------------
  10636. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10637. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10638. +# to write the compiler configuration to `libtool'.
  10639. +m4_defun([_LT_LANG_F77_CONFIG],
  10640. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10641. +AC_LANG_PUSH(Fortran 77)
  10642. +
  10643. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10644. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10645. +_LT_TAGVAR(always_export_symbols, $1)=no
  10646. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10647. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10648. +_LT_TAGVAR(hardcode_direct, $1)=no
  10649. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10650. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10651. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10652. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10653. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10654. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10655. +_LT_TAGVAR(inherit_rpath, $1)=no
  10656. +_LT_TAGVAR(module_cmds, $1)=
  10657. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10658. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10659. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10660. +_LT_TAGVAR(no_undefined_flag, $1)=
  10661. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10662. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10663. +
  10664. +# Source file extension for f77 test sources.
  10665. +ac_ext=f
  10666. +
  10667. +# Object file extension for compiled f77 test sources.
  10668. +objext=o
  10669. +_LT_TAGVAR(objext, $1)=$objext
  10670. +
  10671. +# No sense in running all these tests if we already determined that
  10672. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10673. +# are currently assumed to apply to all compilers on this platform,
  10674. +# and will be corrupted by setting them based on a non-working compiler.
  10675. +if test "$_lt_disable_F77" != yes; then
  10676. + # Code to be used in simple compile tests
  10677. + lt_simple_compile_test_code="\
  10678. + subroutine t
  10679. + return
  10680. + end
  10681. +"
  10682. +
  10683. + # Code to be used in simple link tests
  10684. + lt_simple_link_test_code="\
  10685. + program t
  10686. + end
  10687. +"
  10688. +
  10689. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10690. + _LT_TAG_COMPILER
  10691. +
  10692. + # save warnings/boilerplate of simple test code
  10693. + _LT_COMPILER_BOILERPLATE
  10694. + _LT_LINKER_BOILERPLATE
  10695. +
  10696. + # Allow CC to be a program name with arguments.
  10697. + lt_save_CC="$CC"
  10698. + lt_save_GCC=$GCC
  10699. + CC=${F77-"f77"}
  10700. + compiler=$CC
  10701. + _LT_TAGVAR(compiler, $1)=$CC
  10702. + _LT_CC_BASENAME([$compiler])
  10703. + GCC=$G77
  10704. + if test -n "$compiler"; then
  10705. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10706. + AC_MSG_RESULT([$can_build_shared])
  10707. +
  10708. + AC_MSG_CHECKING([whether to build shared libraries])
  10709. + test "$can_build_shared" = "no" && enable_shared=no
  10710. +
  10711. + # On AIX, shared libraries and static libraries use the same namespace, and
  10712. + # are all built from PIC.
  10713. + case $host_os in
  10714. + aix3*)
  10715. + test "$enable_shared" = yes && enable_static=no
  10716. + if test -n "$RANLIB"; then
  10717. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10718. + postinstall_cmds='$RANLIB $lib'
  10719. + fi
  10720. + ;;
  10721. + aix[[4-9]]*)
  10722. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10723. + test "$enable_shared" = yes && enable_static=no
  10724. + fi
  10725. + ;;
  10726. + esac
  10727. + AC_MSG_RESULT([$enable_shared])
  10728. +
  10729. + AC_MSG_CHECKING([whether to build static libraries])
  10730. + # Make sure either enable_shared or enable_static is yes.
  10731. + test "$enable_shared" = yes || enable_static=yes
  10732. + AC_MSG_RESULT([$enable_static])
  10733. +
  10734. + _LT_TAGVAR(GCC, $1)="$G77"
  10735. + _LT_TAGVAR(LD, $1)="$LD"
  10736. +
  10737. + ## CAVEAT EMPTOR:
  10738. + ## There is no encapsulation within the following macros, do not change
  10739. + ## the running order or otherwise move them around unless you know exactly
  10740. + ## what you are doing...
  10741. + _LT_COMPILER_PIC($1)
  10742. + _LT_COMPILER_C_O($1)
  10743. + _LT_COMPILER_FILE_LOCKS($1)
  10744. + _LT_LINKER_SHLIBS($1)
  10745. + _LT_SYS_DYNAMIC_LINKER($1)
  10746. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10747. +
  10748. + _LT_CONFIG($1)
  10749. + fi # test -n "$compiler"
  10750. +
  10751. + GCC=$lt_save_GCC
  10752. + CC="$lt_save_CC"
  10753. +fi # test "$_lt_disable_F77" != yes
  10754. +
  10755. +AC_LANG_POP
  10756. +])# _LT_LANG_F77_CONFIG
  10757. +
  10758. +
  10759. +# _LT_PROG_FC
  10760. +# -----------
  10761. +# Since AC_PROG_FC is broken, in that it returns the empty string
  10762. +# if there is no fortran compiler, we have our own version here.
  10763. +m4_defun([_LT_PROG_FC],
  10764. +[
  10765. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  10766. +AC_PROG_FC
  10767. +if test -z "$FC" || test "X$FC" = "Xno"; then
  10768. + _lt_disable_FC=yes
  10769. +fi
  10770. +popdef([AC_MSG_ERROR])
  10771. +])# _LT_PROG_FC
  10772. +
  10773. +dnl aclocal-1.4 backwards compatibility:
  10774. +dnl AC_DEFUN([_LT_PROG_FC], [])
  10775. +
  10776. +
  10777. +# _LT_LANG_FC_CONFIG([TAG])
  10778. +# -------------------------
  10779. +# Ensure that the configuration variables for a Fortran compiler are
  10780. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10781. +# to write the compiler configuration to `libtool'.
  10782. +m4_defun([_LT_LANG_FC_CONFIG],
  10783. +[AC_REQUIRE([_LT_PROG_FC])dnl
  10784. +AC_LANG_PUSH(Fortran)
  10785. +
  10786. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10787. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10788. +_LT_TAGVAR(always_export_symbols, $1)=no
  10789. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10790. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10791. +_LT_TAGVAR(hardcode_direct, $1)=no
  10792. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10793. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10794. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10795. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10796. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10797. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10798. +_LT_TAGVAR(inherit_rpath, $1)=no
  10799. +_LT_TAGVAR(module_cmds, $1)=
  10800. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10801. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10802. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10803. +_LT_TAGVAR(no_undefined_flag, $1)=
  10804. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10805. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10806. +
  10807. +# Source file extension for fc test sources.
  10808. +ac_ext=${ac_fc_srcext-f}
  10809. +
  10810. +# Object file extension for compiled fc test sources.
  10811. +objext=o
  10812. +_LT_TAGVAR(objext, $1)=$objext
  10813. +
  10814. +# No sense in running all these tests if we already determined that
  10815. +# the FC compiler isn't working. Some variables (like enable_shared)
  10816. +# are currently assumed to apply to all compilers on this platform,
  10817. +# and will be corrupted by setting them based on a non-working compiler.
  10818. +if test "$_lt_disable_FC" != yes; then
  10819. + # Code to be used in simple compile tests
  10820. + lt_simple_compile_test_code="\
  10821. + subroutine t
  10822. + return
  10823. + end
  10824. +"
  10825. +
  10826. + # Code to be used in simple link tests
  10827. + lt_simple_link_test_code="\
  10828. + program t
  10829. + end
  10830. +"
  10831. +
  10832. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10833. + _LT_TAG_COMPILER
  10834. +
  10835. + # save warnings/boilerplate of simple test code
  10836. + _LT_COMPILER_BOILERPLATE
  10837. + _LT_LINKER_BOILERPLATE
  10838. +
  10839. + # Allow CC to be a program name with arguments.
  10840. + lt_save_CC="$CC"
  10841. + lt_save_GCC=$GCC
  10842. + CC=${FC-"f95"}
  10843. + compiler=$CC
  10844. + GCC=$ac_cv_fc_compiler_gnu
  10845. +
  10846. + _LT_TAGVAR(compiler, $1)=$CC
  10847. + _LT_CC_BASENAME([$compiler])
  10848. +
  10849. + if test -n "$compiler"; then
  10850. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10851. + AC_MSG_RESULT([$can_build_shared])
  10852. +
  10853. + AC_MSG_CHECKING([whether to build shared libraries])
  10854. + test "$can_build_shared" = "no" && enable_shared=no
  10855. +
  10856. + # On AIX, shared libraries and static libraries use the same namespace, and
  10857. + # are all built from PIC.
  10858. + case $host_os in
  10859. + aix3*)
  10860. + test "$enable_shared" = yes && enable_static=no
  10861. + if test -n "$RANLIB"; then
  10862. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10863. + postinstall_cmds='$RANLIB $lib'
  10864. + fi
  10865. + ;;
  10866. + aix[[4-9]]*)
  10867. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10868. + test "$enable_shared" = yes && enable_static=no
  10869. + fi
  10870. + ;;
  10871. + esac
  10872. + AC_MSG_RESULT([$enable_shared])
  10873. +
  10874. + AC_MSG_CHECKING([whether to build static libraries])
  10875. + # Make sure either enable_shared or enable_static is yes.
  10876. + test "$enable_shared" = yes || enable_static=yes
  10877. + AC_MSG_RESULT([$enable_static])
  10878. +
  10879. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  10880. + _LT_TAGVAR(LD, $1)="$LD"
  10881. +
  10882. + ## CAVEAT EMPTOR:
  10883. + ## There is no encapsulation within the following macros, do not change
  10884. + ## the running order or otherwise move them around unless you know exactly
  10885. + ## what you are doing...
  10886. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10887. + _LT_COMPILER_PIC($1)
  10888. + _LT_COMPILER_C_O($1)
  10889. + _LT_COMPILER_FILE_LOCKS($1)
  10890. + _LT_LINKER_SHLIBS($1)
  10891. + _LT_SYS_DYNAMIC_LINKER($1)
  10892. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10893. +
  10894. + _LT_CONFIG($1)
  10895. + fi # test -n "$compiler"
  10896. +
  10897. + GCC=$lt_save_GCC
  10898. + CC="$lt_save_CC"
  10899. +fi # test "$_lt_disable_FC" != yes
  10900. +
  10901. +AC_LANG_POP
  10902. +])# _LT_LANG_FC_CONFIG
  10903. +
  10904. +
  10905. +# _LT_LANG_GCJ_CONFIG([TAG])
  10906. +# --------------------------
  10907. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  10908. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10909. +# to write the compiler configuration to `libtool'.
  10910. +m4_defun([_LT_LANG_GCJ_CONFIG],
  10911. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  10912. +AC_LANG_SAVE
  10913. +
  10914. +# Source file extension for Java test sources.
  10915. +ac_ext=java
  10916. - case $host_os in
  10917. - aix*)
  10918. - # All AIX code is PIC.
  10919. - if test "$host_cpu" = ia64; then
  10920. - # AIX 5 now supports IA64 processor
  10921. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10922. - fi
  10923. - ;;
  10924. +# Object file extension for compiled Java test sources.
  10925. +objext=o
  10926. +_LT_TAGVAR(objext, $1)=$objext
  10927. - amigaos*)
  10928. - # FIXME: we need at least 68020 code to build shared libraries, but
  10929. - # adding the `-m68020' flag to GCC prevents building anything better,
  10930. - # like `-m68040'.
  10931. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10932. - ;;
  10933. +# Code to be used in simple compile tests
  10934. +lt_simple_compile_test_code="class foo {}"
  10935. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10936. - # PIC is the default for these OSes.
  10937. - ;;
  10938. +# Code to be used in simple link tests
  10939. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  10940. - mingw* | pw32* | os2*)
  10941. - # This hack is so that the source file can tell whether it is being
  10942. - # built for inclusion in a dll (and should export symbols for example).
  10943. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10944. - ;;
  10945. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10946. +_LT_TAG_COMPILER
  10947. - darwin* | rhapsody*)
  10948. - # PIC is the default on this platform
  10949. - # Common symbols not allowed in MH_DYLIB files
  10950. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10951. - ;;
  10952. +# save warnings/boilerplate of simple test code
  10953. +_LT_COMPILER_BOILERPLATE
  10954. +_LT_LINKER_BOILERPLATE
  10955. - interix3*)
  10956. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10957. - # Instead, we relocate shared libraries at runtime.
  10958. - ;;
  10959. +# Allow CC to be a program name with arguments.
  10960. +lt_save_CC="$CC"
  10961. +lt_save_GCC=$GCC
  10962. +GCC=yes
  10963. +CC=${GCJ-"gcj"}
  10964. +compiler=$CC
  10965. +_LT_TAGVAR(compiler, $1)=$CC
  10966. +_LT_TAGVAR(LD, $1)="$LD"
  10967. +_LT_CC_BASENAME([$compiler])
  10968. - msdosdjgpp*)
  10969. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  10970. - # on systems that don't support them.
  10971. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10972. - enable_shared=no
  10973. - ;;
  10974. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  10975. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10976. - sysv4*MP*)
  10977. - if test -d /usr/nec; then
  10978. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  10979. - fi
  10980. - ;;
  10981. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10982. - hpux*)
  10983. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10984. - # not for PA HP-UX.
  10985. - case $host_cpu in
  10986. - hppa*64*|ia64*)
  10987. - # +Z the default
  10988. - ;;
  10989. - *)
  10990. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10991. - ;;
  10992. - esac
  10993. - ;;
  10994. +if test -n "$compiler"; then
  10995. + _LT_COMPILER_NO_RTTI($1)
  10996. + _LT_COMPILER_PIC($1)
  10997. + _LT_COMPILER_C_O($1)
  10998. + _LT_COMPILER_FILE_LOCKS($1)
  10999. + _LT_LINKER_SHLIBS($1)
  11000. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11001. - *)
  11002. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11003. - ;;
  11004. - esac
  11005. - else
  11006. - # PORTME Check for flag to pass linker flags through the system compiler.
  11007. - case $host_os in
  11008. - aix*)
  11009. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11010. - if test "$host_cpu" = ia64; then
  11011. - # AIX 5 now supports IA64 processor
  11012. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11013. - else
  11014. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  11015. + _LT_CONFIG($1)
  11016. +fi
  11017. +
  11018. +AC_LANG_RESTORE
  11019. +
  11020. +GCC=$lt_save_GCC
  11021. +CC="$lt_save_CC"
  11022. +])# _LT_LANG_GCJ_CONFIG
  11023. +
  11024. +
  11025. +# _LT_LANG_RC_CONFIG([TAG])
  11026. +# -------------------------
  11027. +# Ensure that the configuration variables for the Windows resource compiler
  11028. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11029. +# to write the compiler configuration to `libtool'.
  11030. +m4_defun([_LT_LANG_RC_CONFIG],
  11031. +[AC_REQUIRE([LT_PROG_RC])dnl
  11032. +AC_LANG_SAVE
  11033. +
  11034. +# Source file extension for RC test sources.
  11035. +ac_ext=rc
  11036. +
  11037. +# Object file extension for compiled RC test sources.
  11038. +objext=o
  11039. +_LT_TAGVAR(objext, $1)=$objext
  11040. +
  11041. +# Code to be used in simple compile tests
  11042. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11043. +
  11044. +# Code to be used in simple link tests
  11045. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  11046. +
  11047. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11048. +_LT_TAG_COMPILER
  11049. +
  11050. +# save warnings/boilerplate of simple test code
  11051. +_LT_COMPILER_BOILERPLATE
  11052. +_LT_LINKER_BOILERPLATE
  11053. +
  11054. +# Allow CC to be a program name with arguments.
  11055. +lt_save_CC="$CC"
  11056. +lt_save_GCC=$GCC
  11057. +GCC=
  11058. +CC=${RC-"windres"}
  11059. +compiler=$CC
  11060. +_LT_TAGVAR(compiler, $1)=$CC
  11061. +_LT_CC_BASENAME([$compiler])
  11062. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  11063. +
  11064. +if test -n "$compiler"; then
  11065. + :
  11066. + _LT_CONFIG($1)
  11067. +fi
  11068. +
  11069. +GCC=$lt_save_GCC
  11070. +AC_LANG_RESTORE
  11071. +CC="$lt_save_CC"
  11072. +])# _LT_LANG_RC_CONFIG
  11073. +
  11074. +
  11075. +# LT_PROG_GCJ
  11076. +# -----------
  11077. +AC_DEFUN([LT_PROG_GCJ],
  11078. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  11079. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  11080. + [AC_CHECK_TOOL(GCJ, gcj,)
  11081. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  11082. + AC_SUBST(GCJFLAGS)])])[]dnl
  11083. +])
  11084. +
  11085. +# Old name:
  11086. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  11087. +dnl aclocal-1.4 backwards compatibility:
  11088. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  11089. +
  11090. +
  11091. +# LT_PROG_RC
  11092. +# ----------
  11093. +AC_DEFUN([LT_PROG_RC],
  11094. +[AC_CHECK_TOOL(RC, windres,)
  11095. +])
  11096. +
  11097. +# Old name:
  11098. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  11099. +dnl aclocal-1.4 backwards compatibility:
  11100. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  11101. +
  11102. +
  11103. +# _LT_DECL_EGREP
  11104. +# --------------
  11105. +# If we don't have a new enough Autoconf to choose the best grep
  11106. +# available, choose the one first in the user's PATH.
  11107. +m4_defun([_LT_DECL_EGREP],
  11108. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  11109. +AC_REQUIRE([AC_PROG_FGREP])dnl
  11110. +test -z "$GREP" && GREP=grep
  11111. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  11112. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  11113. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  11114. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  11115. +AC_SUBST([GREP])
  11116. +])
  11117. +
  11118. +
  11119. +# _LT_DECL_OBJDUMP
  11120. +# --------------
  11121. +# If we don't have a new enough Autoconf to choose the best objdump
  11122. +# available, choose the one first in the user's PATH.
  11123. +m4_defun([_LT_DECL_OBJDUMP],
  11124. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11125. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11126. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11127. +AC_SUBST([OBJDUMP])
  11128. +])
  11129. +
  11130. +
  11131. +# _LT_DECL_SED
  11132. +# ------------
  11133. +# Check for a fully-functional sed program, that truncates
  11134. +# as few characters as possible. Prefer GNU sed if found.
  11135. +m4_defun([_LT_DECL_SED],
  11136. +[AC_PROG_SED
  11137. +test -z "$SED" && SED=sed
  11138. +Xsed="$SED -e 1s/^X//"
  11139. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11140. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11141. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11142. +])# _LT_DECL_SED
  11143. +
  11144. +m4_ifndef([AC_PROG_SED], [
  11145. +# NOTE: This macro has been submitted for inclusion into #
  11146. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  11147. +# a released version of Autoconf we should remove this #
  11148. +# macro and use it instead. #
  11149. +
  11150. +m4_defun([AC_PROG_SED],
  11151. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  11152. +AC_CACHE_VAL(lt_cv_path_SED,
  11153. +[# Loop through the user's path and test for sed and gsed.
  11154. +# Then use that list of sed's as ones to test for truncation.
  11155. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11156. +for as_dir in $PATH
  11157. +do
  11158. + IFS=$as_save_IFS
  11159. + test -z "$as_dir" && as_dir=.
  11160. + for lt_ac_prog in sed gsed; do
  11161. + for ac_exec_ext in '' $ac_executable_extensions; do
  11162. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11163. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11164. fi
  11165. - ;;
  11166. - darwin*)
  11167. - # PIC is the default on this platform
  11168. - # Common symbols not allowed in MH_DYLIB files
  11169. - case $cc_basename in
  11170. - xlc*)
  11171. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  11172. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11173. - ;;
  11174. - esac
  11175. - ;;
  11176. + done
  11177. + done
  11178. +done
  11179. +IFS=$as_save_IFS
  11180. +lt_ac_max=0
  11181. +lt_ac_count=0
  11182. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11183. +# along with /bin/sed that truncates output.
  11184. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11185. + test ! -f $lt_ac_sed && continue
  11186. + cat /dev/null > conftest.in
  11187. + lt_ac_count=0
  11188. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11189. + # Check for GNU sed and select it if it is found.
  11190. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11191. + lt_cv_path_SED=$lt_ac_sed
  11192. + break
  11193. + fi
  11194. + while true; do
  11195. + cat conftest.in conftest.in >conftest.tmp
  11196. + mv conftest.tmp conftest.in
  11197. + cp conftest.in conftest.nl
  11198. + echo >>conftest.nl
  11199. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11200. + cmp -s conftest.out conftest.nl || break
  11201. + # 10000 chars as input seems more than enough
  11202. + test $lt_ac_count -gt 10 && break
  11203. + lt_ac_count=`expr $lt_ac_count + 1`
  11204. + if test $lt_ac_count -gt $lt_ac_max; then
  11205. + lt_ac_max=$lt_ac_count
  11206. + lt_cv_path_SED=$lt_ac_sed
  11207. + fi
  11208. + done
  11209. +done
  11210. +])
  11211. +SED=$lt_cv_path_SED
  11212. +AC_SUBST([SED])
  11213. +AC_MSG_RESULT([$SED])
  11214. +])#AC_PROG_SED
  11215. +])#m4_ifndef
  11216. - mingw* | pw32* | os2*)
  11217. - # This hack is so that the source file can tell whether it is being
  11218. - # built for inclusion in a dll (and should export symbols for example).
  11219. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  11220. - ;;
  11221. +# Old name:
  11222. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11223. +dnl aclocal-1.4 backwards compatibility:
  11224. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11225. - hpux9* | hpux10* | hpux11*)
  11226. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11227. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11228. - # not for PA HP-UX.
  11229. - case $host_cpu in
  11230. - hppa*64*|ia64*)
  11231. - # +Z the default
  11232. - ;;
  11233. - *)
  11234. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  11235. - ;;
  11236. - esac
  11237. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11238. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  11239. - ;;
  11240. - irix5* | irix6* | nonstopux*)
  11241. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11242. - # PIC (with -KPIC) is the default.
  11243. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11244. - ;;
  11245. +# _LT_CHECK_SHELL_FEATURES
  11246. +# ------------------------
  11247. +# Find out whether the shell is Bourne or XSI compatible,
  11248. +# or has some other useful features.
  11249. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  11250. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11251. +# Try some XSI features
  11252. +xsi_shell=no
  11253. +( _lt_dummy="a/b/c"
  11254. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11255. + = c,a/b,, \
  11256. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11257. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11258. + && xsi_shell=yes
  11259. +AC_MSG_RESULT([$xsi_shell])
  11260. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11261. +
  11262. +AC_MSG_CHECKING([whether the shell understands "+="])
  11263. +lt_shell_append=no
  11264. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11265. + >/dev/null 2>&1 \
  11266. + && lt_shell_append=yes
  11267. +AC_MSG_RESULT([$lt_shell_append])
  11268. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11269. - newsos6)
  11270. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11271. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11272. - ;;
  11273. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11274. + lt_unset=unset
  11275. +else
  11276. + lt_unset=false
  11277. +fi
  11278. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11279. - linux*)
  11280. - case $cc_basename in
  11281. - icc* | ecc*)
  11282. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11283. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11284. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11285. - ;;
  11286. - pgcc* | pgf77* | pgf90* | pgf95*)
  11287. - # Portland Group compilers (*not* the Pentium gcc compiler,
  11288. - # which looks to be a dead project)
  11289. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11290. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  11291. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11292. - ;;
  11293. - ccc*)
  11294. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11295. - # All Alpha code is PIC.
  11296. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11297. - ;;
  11298. - esac
  11299. - ;;
  11300. +# test EBCDIC or ASCII
  11301. +case `echo X|tr X '\101'` in
  11302. + A) # ASCII based system
  11303. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11304. + lt_SP2NL='tr \040 \012'
  11305. + lt_NL2SP='tr \015\012 \040\040'
  11306. + ;;
  11307. + *) # EBCDIC based system
  11308. + lt_SP2NL='tr \100 \n'
  11309. + lt_NL2SP='tr \r\n \100\100'
  11310. + ;;
  11311. +esac
  11312. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11313. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11314. +])# _LT_CHECK_SHELL_FEATURES
  11315. - osf3* | osf4* | osf5*)
  11316. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11317. - # All OSF/1 code is PIC.
  11318. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11319. - ;;
  11320. - solaris*)
  11321. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11322. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11323. - case $cc_basename in
  11324. - f77* | f90* | f95*)
  11325. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  11326. - *)
  11327. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  11328. - esac
  11329. - ;;
  11330. +# _LT_PROG_XSI_SHELLFNS
  11331. +# ---------------------
  11332. +# Bourne and XSI compatible variants of some useful shell functions.
  11333. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11334. +[case $xsi_shell in
  11335. + yes)
  11336. + cat << \_LT_EOF >> "$cfgfile"
  11337. +
  11338. +# func_dirname file append nondir_replacement
  11339. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11340. +# otherwise set result to NONDIR_REPLACEMENT.
  11341. +func_dirname ()
  11342. +{
  11343. + case ${1} in
  11344. + */*) func_dirname_result="${1%/*}${2}" ;;
  11345. + * ) func_dirname_result="${3}" ;;
  11346. + esac
  11347. +}
  11348. +
  11349. +# func_basename file
  11350. +func_basename ()
  11351. +{
  11352. + func_basename_result="${1##*/}"
  11353. +}
  11354. +
  11355. +# func_dirname_and_basename file append nondir_replacement
  11356. +# perform func_basename and func_dirname in a single function
  11357. +# call:
  11358. +# dirname: Compute the dirname of FILE. If nonempty,
  11359. +# add APPEND to the result, otherwise set result
  11360. +# to NONDIR_REPLACEMENT.
  11361. +# value returned in "$func_dirname_result"
  11362. +# basename: Compute filename of FILE.
  11363. +# value retuned in "$func_basename_result"
  11364. +# Implementation must be kept synchronized with func_dirname
  11365. +# and func_basename. For efficiency, we do not delegate to
  11366. +# those functions but instead duplicate the functionality here.
  11367. +func_dirname_and_basename ()
  11368. +{
  11369. + case ${1} in
  11370. + */*) func_dirname_result="${1%/*}${2}" ;;
  11371. + * ) func_dirname_result="${3}" ;;
  11372. + esac
  11373. + func_basename_result="${1##*/}"
  11374. +}
  11375. +
  11376. +# func_stripname prefix suffix name
  11377. +# strip PREFIX and SUFFIX off of NAME.
  11378. +# PREFIX and SUFFIX must not contain globbing or regex special
  11379. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11380. +# dot (in which case that matches only a dot).
  11381. +func_stripname ()
  11382. +{
  11383. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11384. + # positional parameters, so assign one to ordinary parameter first.
  11385. + func_stripname_result=${3}
  11386. + func_stripname_result=${func_stripname_result#"${1}"}
  11387. + func_stripname_result=${func_stripname_result%"${2}"}
  11388. +}
  11389. +
  11390. +# func_opt_split
  11391. +func_opt_split ()
  11392. +{
  11393. + func_opt_split_opt=${1%%=*}
  11394. + func_opt_split_arg=${1#*=}
  11395. +}
  11396. +
  11397. +# func_lo2o object
  11398. +func_lo2o ()
  11399. +{
  11400. + case ${1} in
  11401. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11402. + *) func_lo2o_result=${1} ;;
  11403. + esac
  11404. +}
  11405. - sunos4*)
  11406. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11407. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11408. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11409. - ;;
  11410. +# func_xform libobj-or-source
  11411. +func_xform ()
  11412. +{
  11413. + func_xform_result=${1%.*}.lo
  11414. +}
  11415. - sysv4 | sysv4.2uw2* | sysv4.3*)
  11416. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11417. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11418. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11419. - ;;
  11420. +# func_arith arithmetic-term...
  11421. +func_arith ()
  11422. +{
  11423. + func_arith_result=$(( $[*] ))
  11424. +}
  11425. - sysv4*MP*)
  11426. - if test -d /usr/nec ;then
  11427. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11428. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11429. - fi
  11430. - ;;
  11431. +# func_len string
  11432. +# STRING may not start with a hyphen.
  11433. +func_len ()
  11434. +{
  11435. + func_len_result=${#1}
  11436. +}
  11437. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11438. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11439. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11440. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11441. - ;;
  11442. +_LT_EOF
  11443. + ;;
  11444. + *) # Bourne compatible functions.
  11445. + cat << \_LT_EOF >> "$cfgfile"
  11446. - unicos*)
  11447. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11448. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11449. - ;;
  11450. +# func_dirname file append nondir_replacement
  11451. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11452. +# otherwise set result to NONDIR_REPLACEMENT.
  11453. +func_dirname ()
  11454. +{
  11455. + # Extract subdirectory from the argument.
  11456. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11457. + if test "X$func_dirname_result" = "X${1}"; then
  11458. + func_dirname_result="${3}"
  11459. + else
  11460. + func_dirname_result="$func_dirname_result${2}"
  11461. + fi
  11462. +}
  11463. - uts4*)
  11464. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11465. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11466. - ;;
  11467. +# func_basename file
  11468. +func_basename ()
  11469. +{
  11470. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11471. +}
  11472. - *)
  11473. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11474. - ;;
  11475. - esac
  11476. - fi
  11477. -])
  11478. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11479. +dnl func_dirname_and_basename
  11480. +dnl A portable version of this function is already defined in general.m4sh
  11481. +dnl so there is no need for it here.
  11482. +
  11483. +# func_stripname prefix suffix name
  11484. +# strip PREFIX and SUFFIX off of NAME.
  11485. +# PREFIX and SUFFIX must not contain globbing or regex special
  11486. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11487. +# dot (in which case that matches only a dot).
  11488. +# func_strip_suffix prefix name
  11489. +func_stripname ()
  11490. +{
  11491. + case ${2} in
  11492. + .*) func_stripname_result=`$ECHO "X${3}" \
  11493. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11494. + *) func_stripname_result=`$ECHO "X${3}" \
  11495. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11496. + esac
  11497. +}
  11498. -#
  11499. -# Check to make sure the PIC flag actually works.
  11500. -#
  11501. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11502. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11503. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11504. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11505. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11506. - "" | " "*) ;;
  11507. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11508. - esac],
  11509. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11510. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11511. -fi
  11512. -case $host_os in
  11513. - # For platforms which do not support PIC, -DPIC is meaningless:
  11514. - *djgpp*)
  11515. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11516. - ;;
  11517. - *)
  11518. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11519. - ;;
  11520. -esac
  11521. +# sed scripts:
  11522. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11523. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11524. -#
  11525. -# Check to make sure the static flag actually works.
  11526. -#
  11527. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  11528. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  11529. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  11530. - $lt_tmp_static_flag,
  11531. - [],
  11532. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  11533. -])
  11534. +# func_opt_split
  11535. +func_opt_split ()
  11536. +{
  11537. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11538. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11539. +}
  11540. +# func_lo2o object
  11541. +func_lo2o ()
  11542. +{
  11543. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11544. +}
  11545. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11546. -# ------------------------------------
  11547. -# See if the linker supports building shared libraries.
  11548. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11549. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11550. -ifelse([$1],[CXX],[
  11551. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11552. - case $host_os in
  11553. - aix4* | aix5*)
  11554. - # If we're using GNU nm, then we don't want the "-C" option.
  11555. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11556. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11557. - _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'
  11558. - else
  11559. - _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'
  11560. - fi
  11561. - ;;
  11562. - pw32*)
  11563. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11564. - ;;
  11565. - cygwin* | mingw*)
  11566. - _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'
  11567. - ;;
  11568. - *)
  11569. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11570. - ;;
  11571. - esac
  11572. -],[
  11573. - runpath_var=
  11574. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11575. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11576. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11577. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11578. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11579. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11580. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11581. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11582. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11583. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11584. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11585. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11586. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11587. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11588. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11589. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11590. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11591. - _LT_AC_TAGVAR(module_cmds, $1)=
  11592. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11593. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11594. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11595. - # include_expsyms should be a list of space-separated symbols to be *always*
  11596. - # included in the symbol list
  11597. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11598. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11599. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11600. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11601. - # as well as any symbol that contains `d'.
  11602. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11603. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11604. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11605. - # the symbol is explicitly referenced. Since portable code cannot
  11606. - # rely on this symbol name, it's probably fine to never include it in
  11607. - # preloaded symbol tables.
  11608. - extract_expsyms_cmds=
  11609. - # Just being paranoid about ensuring that cc_basename is set.
  11610. - _LT_CC_BASENAME([$compiler])
  11611. - case $host_os in
  11612. - cygwin* | mingw* | pw32*)
  11613. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11614. - # When not using gcc, we currently assume that we are using
  11615. - # Microsoft Visual C++.
  11616. - if test "$GCC" != yes; then
  11617. - with_gnu_ld=no
  11618. - fi
  11619. - ;;
  11620. - interix*)
  11621. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  11622. - with_gnu_ld=yes
  11623. - ;;
  11624. - openbsd*)
  11625. - with_gnu_ld=no
  11626. - ;;
  11627. - esac
  11628. +# func_xform libobj-or-source
  11629. +func_xform ()
  11630. +{
  11631. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11632. +}
  11633. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11634. - if test "$with_gnu_ld" = yes; then
  11635. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11636. - wlarc='${wl}'
  11637. +# func_arith arithmetic-term...
  11638. +func_arith ()
  11639. +{
  11640. + func_arith_result=`expr "$[@]"`
  11641. +}
  11642. - # Set some defaults for GNU ld with shared library support. These
  11643. - # are reset later if shared libraries are not supported. Putting them
  11644. - # here allows them to be overridden if necessary.
  11645. - runpath_var=LD_RUN_PATH
  11646. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11647. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11648. - # ancient GNU ld didn't support --whole-archive et. al.
  11649. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11650. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11651. - else
  11652. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11653. - fi
  11654. - supports_anon_versioning=no
  11655. - case `$LD -v 2>/dev/null` in
  11656. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11657. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11658. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11659. - *\ 2.11.*) ;; # other 2.11 versions
  11660. - *) supports_anon_versioning=yes ;;
  11661. - esac
  11662. +# func_len string
  11663. +# STRING may not start with a hyphen.
  11664. +func_len ()
  11665. +{
  11666. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11667. +}
  11668. - # See if GNU ld supports shared libraries.
  11669. - case $host_os in
  11670. - aix3* | aix4* | aix5*)
  11671. - # On AIX/PPC, the GNU linker is very broken
  11672. - if test "$host_cpu" != ia64; then
  11673. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11674. - cat <<EOF 1>&2
  11675. +_LT_EOF
  11676. +esac
  11677. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11678. -*** to be unable to reliably create shared libraries on AIX.
  11679. -*** Therefore, libtool is disabling shared libraries support. If you
  11680. -*** really care for shared libraries, you may want to modify your PATH
  11681. -*** so that a non-GNU linker is found, and then restart.
  11682. +case $lt_shell_append in
  11683. + yes)
  11684. + cat << \_LT_EOF >> "$cfgfile"
  11685. +
  11686. +# func_append var value
  11687. +# Append VALUE to the end of shell variable VAR.
  11688. +func_append ()
  11689. +{
  11690. + eval "$[1]+=\$[2]"
  11691. +}
  11692. +_LT_EOF
  11693. + ;;
  11694. + *)
  11695. + cat << \_LT_EOF >> "$cfgfile"
  11696. -EOF
  11697. - fi
  11698. - ;;
  11699. +# func_append var value
  11700. +# Append VALUE to the end of shell variable VAR.
  11701. +func_append ()
  11702. +{
  11703. + eval "$[1]=\$$[1]\$[2]"
  11704. +}
  11705. - amigaos*)
  11706. - _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)'
  11707. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11708. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11709. -
  11710. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11711. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11712. - # to version 4, is to share data among multiple programs linked
  11713. - # with the same dynamic library. Since this doesn't match the
  11714. - # behavior of shared libraries on other platforms, we can't use
  11715. - # them.
  11716. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11717. - ;;
  11718. +_LT_EOF
  11719. + ;;
  11720. + esac
  11721. +])
  11722. - beos*)
  11723. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11724. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11725. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11726. - # support --undefined. This deserves some investigation. FIXME
  11727. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11728. - else
  11729. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11730. - fi
  11731. - ;;
  11732. +# Helper functions for option handling. -*- Autoconf -*-
  11733. +#
  11734. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  11735. +# Written by Gary V. Vaughan, 2004
  11736. +#
  11737. +# This file is free software; the Free Software Foundation gives
  11738. +# unlimited permission to copy and/or distribute it, with or without
  11739. +# modifications, as long as this notice is preserved.
  11740. - cygwin* | mingw* | pw32*)
  11741. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11742. - # as there is no search path for DLLs.
  11743. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11744. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11745. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11746. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11747. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11748. +# serial 6 ltoptions.m4
  11749. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11750. - _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'
  11751. - # If the export-symbols file already is a .def file (1st line
  11752. - # is EXPORTS), use it as is; otherwise, prepend...
  11753. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11754. - cp $export_symbols $output_objdir/$soname.def;
  11755. - else
  11756. - echo EXPORTS > $output_objdir/$soname.def;
  11757. - cat $export_symbols >> $output_objdir/$soname.def;
  11758. - fi~
  11759. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11760. - else
  11761. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11762. - fi
  11763. - ;;
  11764. +# This is to help aclocal find these macros, as it can't see m4_define.
  11765. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  11766. - interix3*)
  11767. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11768. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11769. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11770. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11771. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11772. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  11773. - # default) and relocated if they conflict, which is a slow very memory
  11774. - # consuming and fragmenting process. To avoid this, we pick a random,
  11775. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11776. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11777. - _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'
  11778. - _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'
  11779. - ;;
  11780. - linux*)
  11781. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11782. - tmp_addflag=
  11783. - case $cc_basename,$host_cpu in
  11784. - pgcc*) # Portland Group C compiler
  11785. - _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'
  11786. - tmp_addflag=' $pic_flag'
  11787. - ;;
  11788. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11789. - _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'
  11790. - tmp_addflag=' $pic_flag -Mnomain' ;;
  11791. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11792. - tmp_addflag=' -i_dynamic' ;;
  11793. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11794. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  11795. - ifc* | ifort*) # Intel Fortran compiler
  11796. - tmp_addflag=' -nofor_main' ;;
  11797. - esac
  11798. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11799. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  11800. +# ------------------------------------------
  11801. +m4_define([_LT_MANGLE_OPTION],
  11802. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  11803. - if test $supports_anon_versioning = yes; then
  11804. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11805. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11806. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  11807. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11808. - fi
  11809. - else
  11810. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11811. - fi
  11812. - ;;
  11813. - netbsd*)
  11814. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11815. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11816. - wlarc=
  11817. - else
  11818. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11819. - _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'
  11820. - fi
  11821. - ;;
  11822. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  11823. +# ---------------------------------------
  11824. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  11825. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  11826. +# saved as a flag.
  11827. +m4_define([_LT_SET_OPTION],
  11828. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  11829. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  11830. + _LT_MANGLE_DEFUN([$1], [$2]),
  11831. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  11832. +])
  11833. - solaris*)
  11834. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11835. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11836. - cat <<EOF 1>&2
  11837. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11838. -*** create shared libraries on Solaris systems. Therefore, libtool
  11839. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11840. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11841. -*** your PATH or compiler configuration so that the native linker is
  11842. -*** used, and then restart.
  11843. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  11844. +# ------------------------------------------------------------
  11845. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  11846. +m4_define([_LT_IF_OPTION],
  11847. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  11848. -EOF
  11849. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11850. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11851. - _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'
  11852. - else
  11853. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11854. - fi
  11855. - ;;
  11856. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11857. - case `$LD -v 2>&1` in
  11858. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  11859. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11860. - cat <<_LT_EOF 1>&2
  11861. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  11862. +# -------------------------------------------------------
  11863. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  11864. +# are set.
  11865. +m4_define([_LT_UNLESS_OPTIONS],
  11866. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11867. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  11868. + [m4_define([$0_found])])])[]dnl
  11869. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  11870. +])[]dnl
  11871. +])
  11872. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11873. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  11874. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11875. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11876. -*** your PATH or compiler configuration so that the native linker is
  11877. -*** used, and then restart.
  11878. -_LT_EOF
  11879. - ;;
  11880. - *)
  11881. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11882. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11883. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11884. - _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'
  11885. - else
  11886. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11887. - fi
  11888. - ;;
  11889. - esac
  11890. - ;;
  11891. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  11892. +# ----------------------------------------
  11893. +# OPTION-LIST is a space-separated list of Libtool options associated
  11894. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  11895. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  11896. +# the unknown option and exit.
  11897. +m4_defun([_LT_SET_OPTIONS],
  11898. +[# Set options
  11899. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11900. + [_LT_SET_OPTION([$1], _LT_Option)])
  11901. +
  11902. +m4_if([$1],[LT_INIT],[
  11903. + dnl
  11904. + dnl Simply set some default values (i.e off) if boolean options were not
  11905. + dnl specified:
  11906. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  11907. + ])
  11908. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  11909. + ])
  11910. + dnl
  11911. + dnl If no reference was made to various pairs of opposing options, then
  11912. + dnl we run the default mode handler for the pair. For example, if neither
  11913. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  11914. + dnl archives by default:
  11915. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  11916. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  11917. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  11918. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  11919. + [_LT_ENABLE_FAST_INSTALL])
  11920. + ])
  11921. +])# _LT_SET_OPTIONS
  11922. - sunos4*)
  11923. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11924. - wlarc=
  11925. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11926. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11927. - ;;
  11928. - *)
  11929. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11930. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11931. - _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'
  11932. - else
  11933. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11934. - fi
  11935. - ;;
  11936. - esac
  11937. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  11938. - runpath_var=
  11939. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11940. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11941. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11942. - fi
  11943. - else
  11944. - # PORTME fill in a description of your system's linker (not GNU ld)
  11945. - case $host_os in
  11946. - aix3*)
  11947. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11948. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11949. - _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'
  11950. - # Note: this linker hardcodes the directories in LIBPATH if there
  11951. - # are no directories specified by -L.
  11952. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11953. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11954. - # Neither direct hardcoding nor static linking is supported with a
  11955. - # broken collect2.
  11956. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11957. - fi
  11958. - ;;
  11959. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  11960. +# -----------------------------------------
  11961. +m4_define([_LT_MANGLE_DEFUN],
  11962. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  11963. - aix4* | aix5*)
  11964. - if test "$host_cpu" = ia64; then
  11965. - # On IA64, the linker does run time linking by default, so we don't
  11966. - # have to do anything special.
  11967. - aix_use_runtimelinking=no
  11968. - exp_sym_flag='-Bexport'
  11969. - no_entry_flag=""
  11970. - else
  11971. - # If we're using GNU nm, then we don't want the "-C" option.
  11972. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11973. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11974. - _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'
  11975. - else
  11976. - _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'
  11977. - fi
  11978. - aix_use_runtimelinking=no
  11979. - # Test if we are trying to use run time linking or normal
  11980. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11981. - # need to do runtime linking.
  11982. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11983. - for ld_flag in $LDFLAGS; do
  11984. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11985. - aix_use_runtimelinking=yes
  11986. - break
  11987. - fi
  11988. - done
  11989. - ;;
  11990. - esac
  11991. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  11992. +# -----------------------------------------------
  11993. +m4_define([LT_OPTION_DEFINE],
  11994. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  11995. +])# LT_OPTION_DEFINE
  11996. - exp_sym_flag='-bexport'
  11997. - no_entry_flag='-bnoentry'
  11998. - fi
  11999. - # When large executables or shared objects are built, AIX ld can
  12000. - # have problems creating the table of contents. If linking a library
  12001. - # or program results in "error TOC overflow" add -mminimal-toc to
  12002. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12003. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12004. +# dlopen
  12005. +# ------
  12006. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  12007. +])
  12008. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  12009. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12010. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12011. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12012. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  12013. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  12014. +AC_DIAGNOSE([obsolete],
  12015. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12016. +put the `dlopen' option into LT_INIT's first parameter.])
  12017. +])
  12018. - if test "$GCC" = yes; then
  12019. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  12020. - # We only want to do this on AIX 4.2 and lower, the check
  12021. - # below for broken collect2 doesn't work under 4.3+
  12022. - collect2name=`${CC} -print-prog-name=collect2`
  12023. - if test -f "$collect2name" && \
  12024. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  12025. - then
  12026. - # We have reworked collect2
  12027. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12028. - else
  12029. - # We have old collect2
  12030. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  12031. - # It fails to find uninstalled libraries when the uninstalled
  12032. - # path is not listed in the libpath. Setting hardcode_minus_L
  12033. - # to unsupported forces relinking
  12034. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12035. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12036. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  12037. - fi
  12038. - ;;
  12039. - esac
  12040. - shared_flag='-shared'
  12041. - if test "$aix_use_runtimelinking" = yes; then
  12042. - shared_flag="$shared_flag "'${wl}-G'
  12043. - fi
  12044. - else
  12045. - # not using gcc
  12046. - if test "$host_cpu" = ia64; then
  12047. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12048. - # chokes on -Wl,-G. The following line is correct:
  12049. - shared_flag='-G'
  12050. - else
  12051. - if test "$aix_use_runtimelinking" = yes; then
  12052. - shared_flag='${wl}-G'
  12053. - else
  12054. - shared_flag='${wl}-bM:SRE'
  12055. - fi
  12056. - fi
  12057. - fi
  12058. +dnl aclocal-1.4 backwards compatibility:
  12059. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  12060. - # It seems that -bexpall does not export symbols beginning with
  12061. - # underscore (_), so it is better to generate a list of symbols to export.
  12062. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  12063. - if test "$aix_use_runtimelinking" = yes; then
  12064. - # Warning - without using the other runtime loading flags (-brtl),
  12065. - # -berok will link without error, but may produce a broken library.
  12066. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  12067. - # Determine the default libpath from the value encoded in an empty executable.
  12068. - _LT_AC_SYS_LIBPATH_AIX
  12069. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  12070. - _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"
  12071. - else
  12072. - if test "$host_cpu" = ia64; then
  12073. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  12074. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  12075. - _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"
  12076. - else
  12077. - # Determine the default libpath from the value encoded in an empty executable.
  12078. - _LT_AC_SYS_LIBPATH_AIX
  12079. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  12080. - # Warning - without using the other run time loading flags,
  12081. - # -berok will link without error, but may produce a broken library.
  12082. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  12083. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  12084. - # Exported symbols can be pulled into shared objects from archives
  12085. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  12086. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12087. - # This is similar to how AIX traditionally builds its shared libraries.
  12088. - _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'
  12089. - fi
  12090. - fi
  12091. - ;;
  12092. - amigaos*)
  12093. - _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)'
  12094. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12095. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12096. - # see comment about different semantics on the GNU ld section
  12097. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12098. - ;;
  12099. +# win32-dll
  12100. +# ---------
  12101. +# Declare package support for building win32 dll's.
  12102. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  12103. +[enable_win32_dll=yes
  12104. - bsdi[[45]]*)
  12105. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  12106. - ;;
  12107. +case $host in
  12108. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  12109. + AC_CHECK_TOOL(AS, as, false)
  12110. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  12111. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  12112. + ;;
  12113. +esac
  12114. - cygwin* | mingw* | pw32*)
  12115. - # When not using gcc, we currently assume that we are using
  12116. - # Microsoft Visual C++.
  12117. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  12118. - # no search path for DLLs.
  12119. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  12120. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12121. - # Tell ltmain to make .lib files, not .a files.
  12122. - libext=lib
  12123. - # Tell ltmain to make .dll files, not .so files.
  12124. - shrext_cmds=".dll"
  12125. - # FIXME: Setting linknames here is a bad hack.
  12126. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12127. - # The linker will automatically build a .lib file if we build a DLL.
  12128. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  12129. - # FIXME: Should let the user specify the lib program.
  12130. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12131. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  12132. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  12133. - ;;
  12134. +test -z "$AS" && AS=as
  12135. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  12136. - darwin* | rhapsody*)
  12137. - case $host_os in
  12138. - rhapsody* | darwin1.[[012]])
  12139. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  12140. - ;;
  12141. - *) # Darwin 1.3 on
  12142. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12143. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12144. - else
  12145. - case ${MACOSX_DEPLOYMENT_TARGET} in
  12146. - 10.[[012]])
  12147. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12148. - ;;
  12149. - 10.*)
  12150. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  12151. - ;;
  12152. - esac
  12153. - fi
  12154. - ;;
  12155. - esac
  12156. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12157. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12158. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  12159. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  12160. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  12161. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12162. - if test "$GCC" = yes ; then
  12163. - output_verbose_link_cmd='echo'
  12164. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12165. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12166. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12167. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12168. - _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}'
  12169. - else
  12170. - case $cc_basename in
  12171. - xlc*)
  12172. - output_verbose_link_cmd='echo'
  12173. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12174. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12175. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12176. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12177. - _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}'
  12178. - ;;
  12179. - *)
  12180. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12181. - ;;
  12182. - esac
  12183. - fi
  12184. - ;;
  12185. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  12186. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  12187. - dgux*)
  12188. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12189. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12190. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12191. - ;;
  12192. +test -z "$OBJDUMP" && OBJDUMP=objdump
  12193. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12194. +])# win32-dll
  12195. - freebsd1*)
  12196. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12197. - ;;
  12198. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12199. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12200. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  12201. +AC_DIAGNOSE([obsolete],
  12202. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12203. +put the `win32-dll' option into LT_INIT's first parameter.])
  12204. +])
  12205. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12206. - # support. Future versions do this automatically, but an explicit c++rt0.o
  12207. - # does not break anything, and helps significantly (at the cost of a little
  12208. - # extra space).
  12209. - freebsd2.2*)
  12210. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12211. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12212. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12213. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12214. - ;;
  12215. +dnl aclocal-1.4 backwards compatibility:
  12216. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12217. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12218. - freebsd2*)
  12219. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12220. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12221. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12222. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12223. - ;;
  12224. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12225. - freebsd* | kfreebsd*-gnu | dragonfly*)
  12226. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12227. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12228. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12229. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12230. +# _LT_ENABLE_SHARED([DEFAULT])
  12231. +# ----------------------------
  12232. +# implement the --enable-shared flag, and supports the `shared' and
  12233. +# `disable-shared' LT_INIT options.
  12234. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12235. +m4_define([_LT_ENABLE_SHARED],
  12236. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12237. +AC_ARG_ENABLE([shared],
  12238. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12239. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12240. + [p=${PACKAGE-default}
  12241. + case $enableval in
  12242. + yes) enable_shared=yes ;;
  12243. + no) enable_shared=no ;;
  12244. + *)
  12245. + enable_shared=no
  12246. + # Look at the argument we got. We use all the common list separators.
  12247. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12248. + for pkg in $enableval; do
  12249. + IFS="$lt_save_ifs"
  12250. + if test "X$pkg" = "X$p"; then
  12251. + enable_shared=yes
  12252. + fi
  12253. + done
  12254. + IFS="$lt_save_ifs"
  12255. ;;
  12256. + esac],
  12257. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12258. - hpux9*)
  12259. - if test "$GCC" = yes; then
  12260. - _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'
  12261. - else
  12262. - _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'
  12263. - fi
  12264. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12265. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12266. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12267. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12268. + [Whether or not to build shared libraries])
  12269. +])# _LT_ENABLE_SHARED
  12270. - # hardcode_minus_L: Not really in the search PATH,
  12271. - # but as the default location of the library.
  12272. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12273. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12274. - ;;
  12275. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12276. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12277. - hpux10*)
  12278. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12279. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12280. - else
  12281. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12282. - fi
  12283. - if test "$with_gnu_ld" = no; then
  12284. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12285. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12286. +# Old names:
  12287. +AC_DEFUN([AC_ENABLE_SHARED],
  12288. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12289. +])
  12290. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12291. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12292. +AC_DEFUN([AC_DISABLE_SHARED],
  12293. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12294. +])
  12295. - # hardcode_minus_L: Not really in the search PATH,
  12296. - # but as the default location of the library.
  12297. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12298. - fi
  12299. - ;;
  12300. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12301. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12302. - hpux11*)
  12303. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12304. - case $host_cpu in
  12305. - hppa*64*)
  12306. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12307. - ;;
  12308. - ia64*)
  12309. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12310. - ;;
  12311. - *)
  12312. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12313. - ;;
  12314. - esac
  12315. - else
  12316. - case $host_cpu in
  12317. - hppa*64*)
  12318. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12319. - ;;
  12320. - ia64*)
  12321. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12322. - ;;
  12323. - *)
  12324. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12325. - ;;
  12326. - esac
  12327. - fi
  12328. - if test "$with_gnu_ld" = no; then
  12329. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12330. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12331. +dnl aclocal-1.4 backwards compatibility:
  12332. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12333. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12334. - case $host_cpu in
  12335. - hppa*64*|ia64*)
  12336. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  12337. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12338. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12339. - ;;
  12340. - *)
  12341. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12342. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12343. - # hardcode_minus_L: Not really in the search PATH,
  12344. - # but as the default location of the library.
  12345. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12346. - ;;
  12347. - esac
  12348. - fi
  12349. - ;;
  12350. - irix5* | irix6* | nonstopux*)
  12351. - if test "$GCC" = yes; then
  12352. - _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'
  12353. - else
  12354. - _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'
  12355. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  12356. - fi
  12357. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12358. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12359. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12360. +# _LT_ENABLE_STATIC([DEFAULT])
  12361. +# ----------------------------
  12362. +# implement the --enable-static flag, and support the `static' and
  12363. +# `disable-static' LT_INIT options.
  12364. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12365. +m4_define([_LT_ENABLE_STATIC],
  12366. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12367. +AC_ARG_ENABLE([static],
  12368. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12369. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12370. + [p=${PACKAGE-default}
  12371. + case $enableval in
  12372. + yes) enable_static=yes ;;
  12373. + no) enable_static=no ;;
  12374. + *)
  12375. + enable_static=no
  12376. + # Look at the argument we got. We use all the common list separators.
  12377. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12378. + for pkg in $enableval; do
  12379. + IFS="$lt_save_ifs"
  12380. + if test "X$pkg" = "X$p"; then
  12381. + enable_static=yes
  12382. + fi
  12383. + done
  12384. + IFS="$lt_save_ifs"
  12385. ;;
  12386. + esac],
  12387. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12388. - netbsd*)
  12389. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12390. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12391. - else
  12392. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12393. - fi
  12394. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12395. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12396. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12397. - ;;
  12398. + _LT_DECL([build_old_libs], [enable_static], [0],
  12399. + [Whether or not to build static libraries])
  12400. +])# _LT_ENABLE_STATIC
  12401. - newsos6)
  12402. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12403. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12404. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12405. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12406. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12407. - ;;
  12408. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12409. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12410. - openbsd*)
  12411. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12412. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12413. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12414. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12415. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12416. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12417. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12418. - else
  12419. - case $host_os in
  12420. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12421. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12422. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12423. - ;;
  12424. - *)
  12425. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12426. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12427. - ;;
  12428. - esac
  12429. - fi
  12430. - ;;
  12431. +# Old names:
  12432. +AC_DEFUN([AC_ENABLE_STATIC],
  12433. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12434. +])
  12435. - os2*)
  12436. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12437. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12438. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12439. - _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'
  12440. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12441. - ;;
  12442. +AC_DEFUN([AC_DISABLE_STATIC],
  12443. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12444. +])
  12445. - osf3*)
  12446. - if test "$GCC" = yes; then
  12447. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12448. - _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'
  12449. - else
  12450. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12451. - _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'
  12452. - fi
  12453. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12454. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12455. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12456. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12457. +
  12458. +dnl aclocal-1.4 backwards compatibility:
  12459. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12460. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12461. +
  12462. +
  12463. +
  12464. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12465. +# ----------------------------------
  12466. +# implement the --enable-fast-install flag, and support the `fast-install'
  12467. +# and `disable-fast-install' LT_INIT options.
  12468. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12469. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12470. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12471. +AC_ARG_ENABLE([fast-install],
  12472. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12473. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12474. + [p=${PACKAGE-default}
  12475. + case $enableval in
  12476. + yes) enable_fast_install=yes ;;
  12477. + no) enable_fast_install=no ;;
  12478. + *)
  12479. + enable_fast_install=no
  12480. + # Look at the argument we got. We use all the common list separators.
  12481. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12482. + for pkg in $enableval; do
  12483. + IFS="$lt_save_ifs"
  12484. + if test "X$pkg" = "X$p"; then
  12485. + enable_fast_install=yes
  12486. + fi
  12487. + done
  12488. + IFS="$lt_save_ifs"
  12489. ;;
  12490. + esac],
  12491. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12492. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12493. - if test "$GCC" = yes; then
  12494. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12495. - _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'
  12496. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12497. - else
  12498. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12499. - _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'
  12500. - _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~
  12501. - $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'
  12502. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12503. + [Whether or not to optimize for fast installation])dnl
  12504. +])# _LT_ENABLE_FAST_INSTALL
  12505. +
  12506. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12507. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12508. +
  12509. +# Old names:
  12510. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12511. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12512. +AC_DIAGNOSE([obsolete],
  12513. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12514. +the `fast-install' option into LT_INIT's first parameter.])
  12515. +])
  12516. - # Both c and cxx compiler support -rpath directly
  12517. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12518. - fi
  12519. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12520. - ;;
  12521. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12522. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12523. +AC_DIAGNOSE([obsolete],
  12524. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12525. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12526. +])
  12527. - solaris*)
  12528. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12529. - if test "$GCC" = yes; then
  12530. - wlarc='${wl}'
  12531. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12532. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12533. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12534. - else
  12535. - wlarc=''
  12536. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12537. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12538. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12539. - fi
  12540. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12541. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12542. - case $host_os in
  12543. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12544. - *)
  12545. - # The compiler driver will combine linker options so we
  12546. - # cannot just pass the convience library names through
  12547. - # without $wl, iff we do not link with $LD.
  12548. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  12549. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  12550. - case $wlarc in
  12551. - '')
  12552. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12553. - *)
  12554. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12555. - esac ;;
  12556. - esac
  12557. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12558. - ;;
  12559. +dnl aclocal-1.4 backwards compatibility:
  12560. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12561. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12562. - sunos4*)
  12563. - if test "x$host_vendor" = xsequent; then
  12564. - # Use $CC to link under sequent, because it throws in some extra .o
  12565. - # files that make .init and .fini sections work.
  12566. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12567. - else
  12568. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12569. - fi
  12570. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12571. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12572. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12573. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12574. - ;;
  12575. - sysv4)
  12576. - case $host_vendor in
  12577. - sni)
  12578. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12579. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12580. - ;;
  12581. - siemens)
  12582. - ## LD is ld it makes a PLAMLIB
  12583. - ## CC just makes a GrossModule.
  12584. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12585. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12586. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12587. - ;;
  12588. - motorola)
  12589. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12590. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12591. - ;;
  12592. - esac
  12593. - runpath_var='LD_RUN_PATH'
  12594. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12595. - ;;
  12596. +# _LT_WITH_PIC([MODE])
  12597. +# --------------------
  12598. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12599. +# LT_INIT options.
  12600. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12601. +m4_define([_LT_WITH_PIC],
  12602. +[AC_ARG_WITH([pic],
  12603. + [AS_HELP_STRING([--with-pic],
  12604. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12605. + [pic_mode="$withval"],
  12606. + [pic_mode=default])
  12607. - sysv4.3*)
  12608. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12609. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12610. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12611. - ;;
  12612. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12613. - sysv4*MP*)
  12614. - if test -d /usr/nec; then
  12615. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12616. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12617. - runpath_var=LD_RUN_PATH
  12618. - hardcode_runpath_var=yes
  12619. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12620. - fi
  12621. - ;;
  12622. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12623. +])# _LT_WITH_PIC
  12624. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  12625. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12626. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12627. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12628. - runpath_var='LD_RUN_PATH'
  12629. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12630. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12631. - if test "$GCC" = yes; then
  12632. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12633. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12634. - else
  12635. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12636. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12637. - fi
  12638. - ;;
  12639. +# Old name:
  12640. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12641. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12642. +AC_DIAGNOSE([obsolete],
  12643. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12644. +put the `pic-only' option into LT_INIT's first parameter.])
  12645. +])
  12646. - sysv5* | sco3.2v5* | sco5v6*)
  12647. - # Note: We can NOT use -z defs as we might desire, because we do not
  12648. - # link with -lc, and that would cause any symbols used from libc to
  12649. - # always be unresolved, which means just about no library would
  12650. - # ever link correctly. If we're not using GNU ld we use -z text
  12651. - # though, which does catch some bad symbols but isn't as heavy-handed
  12652. - # as -z defs.
  12653. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12654. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  12655. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12656. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12657. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12658. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12659. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12660. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12661. - runpath_var='LD_RUN_PATH'
  12662. +dnl aclocal-1.4 backwards compatibility:
  12663. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12664. - if test "$GCC" = yes; then
  12665. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12666. - _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'
  12667. - else
  12668. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12669. - _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'
  12670. - fi
  12671. - ;;
  12672. - uts4*)
  12673. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12674. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12675. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12676. - ;;
  12677. +m4_define([_LTDL_MODE], [])
  12678. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12679. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12680. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12681. + [m4_define([_LTDL_MODE], [recursive])])
  12682. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12683. + [m4_define([_LTDL_MODE], [subproject])])
  12684. - *)
  12685. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12686. - ;;
  12687. - esac
  12688. - fi
  12689. -])
  12690. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12691. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12692. +m4_define([_LTDL_TYPE], [])
  12693. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12694. + [m4_define([_LTDL_TYPE], [installable])])
  12695. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12696. + [m4_define([_LTDL_TYPE], [convenience])])
  12697. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12698. #
  12699. -# Do we need to explicitly link libc?
  12700. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12701. +# Written by Gary V. Vaughan, 2004
  12702. #
  12703. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12704. -x|xyes)
  12705. - # Assume -lc should be added
  12706. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12707. +# This file is free software; the Free Software Foundation gives
  12708. +# unlimited permission to copy and/or distribute it, with or without
  12709. +# modifications, as long as this notice is preserved.
  12710. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12711. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12712. - *'~'*)
  12713. - # FIXME: we may have to deal with multi-command sequences.
  12714. - ;;
  12715. - '$CC '*)
  12716. - # Test whether the compiler implicitly links with -lc since on some
  12717. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12718. - # to ld, don't add -lc before -lgcc.
  12719. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12720. - $rm conftest*
  12721. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12722. +# serial 6 ltsugar.m4
  12723. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12724. - soname=conftest
  12725. - lib=conftest
  12726. - libobjs=conftest.$ac_objext
  12727. - deplibs=
  12728. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12729. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  12730. - compiler_flags=-v
  12731. - linker_flags=-v
  12732. - verstring=
  12733. - output_objdir=.
  12734. - libname=conftest
  12735. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12736. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12737. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12738. - then
  12739. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12740. - else
  12741. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12742. - fi
  12743. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12744. - else
  12745. - cat conftest.err 1>&5
  12746. - fi
  12747. - $rm conftest*
  12748. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12749. - ;;
  12750. - esac
  12751. - fi
  12752. - ;;
  12753. -esac
  12754. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12755. +# This is to help aclocal find these macros, as it can't see m4_define.
  12756. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12757. -# _LT_AC_FILE_LTDLL_C
  12758. -# -------------------
  12759. -# Be careful that the start marker always follows a newline.
  12760. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12761. -# /* ltdll.c starts here */
  12762. -# #define WIN32_LEAN_AND_MEAN
  12763. -# #include <windows.h>
  12764. -# #undef WIN32_LEAN_AND_MEAN
  12765. -# #include <stdio.h>
  12766. -#
  12767. -# #ifndef __CYGWIN__
  12768. -# # ifdef __CYGWIN32__
  12769. -# # define __CYGWIN__ __CYGWIN32__
  12770. -# # endif
  12771. -# #endif
  12772. -#
  12773. -# #ifdef __cplusplus
  12774. -# extern "C" {
  12775. -# #endif
  12776. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12777. -# #ifdef __cplusplus
  12778. -# }
  12779. -# #endif
  12780. -#
  12781. -# #ifdef __CYGWIN__
  12782. -# #include <cygwin/cygwin_dll.h>
  12783. -# DECLARE_CYGWIN_DLL( DllMain );
  12784. -# #endif
  12785. -# HINSTANCE __hDllInstance_base;
  12786. -#
  12787. -# BOOL APIENTRY
  12788. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12789. -# {
  12790. -# __hDllInstance_base = hInst;
  12791. -# return TRUE;
  12792. -# }
  12793. -# /* ltdll.c ends here */
  12794. -])# _LT_AC_FILE_LTDLL_C
  12795. +# lt_join(SEP, ARG1, [ARG2...])
  12796. +# -----------------------------
  12797. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12798. +# associated separator.
  12799. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12800. +# versions in m4sugar had bugs.
  12801. +m4_define([lt_join],
  12802. +[m4_if([$#], [1], [],
  12803. + [$#], [2], [[$2]],
  12804. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12805. +m4_define([_lt_join],
  12806. +[m4_if([$#$2], [2], [],
  12807. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12808. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12809. -# ---------------------------------
  12810. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12811. +# lt_car(LIST)
  12812. +# lt_cdr(LIST)
  12813. +# ------------
  12814. +# Manipulate m4 lists.
  12815. +# These macros are necessary as long as will still need to support
  12816. +# Autoconf-2.59 which quotes differently.
  12817. +m4_define([lt_car], [[$1]])
  12818. +m4_define([lt_cdr],
  12819. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12820. + [$#], 1, [],
  12821. + [m4_dquote(m4_shift($@))])])
  12822. +m4_define([lt_unquote], $1)
  12823. +
  12824. +
  12825. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12826. +# ------------------------------------------
  12827. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12828. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12829. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12830. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12831. +# than defined and empty).
  12832. +#
  12833. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12834. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12835. +m4_define([lt_append],
  12836. +[m4_define([$1],
  12837. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12838. -# old names
  12839. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12840. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12841. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12842. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12843. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12844. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12845. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12846. -# This is just to silence aclocal about the macro not being used
  12847. -ifelse([AC_DISABLE_FAST_INSTALL])
  12848. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12849. +# ----------------------------------------------------------
  12850. +# Produce a SEP delimited list of all paired combinations of elements of
  12851. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12852. +# has the form PREFIXmINFIXSUFFIXn.
  12853. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12854. +m4_define([lt_combine],
  12855. +[m4_if(m4_eval([$# > 3]), [1],
  12856. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12857. +[[m4_foreach([_Lt_prefix], [$2],
  12858. + [m4_foreach([_Lt_suffix],
  12859. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12860. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12861. +
  12862. +
  12863. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12864. +# -----------------------------------------------------------------------
  12865. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12866. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12867. +m4_define([lt_if_append_uniq],
  12868. +[m4_ifdef([$1],
  12869. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12870. + [lt_append([$1], [$2], [$3])$4],
  12871. + [$5])],
  12872. + [lt_append([$1], [$2], [$3])$4])])
  12873. -AC_DEFUN([LT_AC_PROG_GCJ],
  12874. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12875. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12876. - AC_SUBST(GCJFLAGS)
  12877. -])
  12878. -AC_DEFUN([LT_AC_PROG_RC],
  12879. -[AC_CHECK_TOOL(RC, windres, no)
  12880. -])
  12881. +# lt_dict_add(DICT, KEY, VALUE)
  12882. +# -----------------------------
  12883. +m4_define([lt_dict_add],
  12884. +[m4_define([$1($2)], [$3])])
  12885. -# NOTE: This macro has been submitted for inclusion into #
  12886. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12887. -# a released version of Autoconf we should remove this #
  12888. -# macro and use it instead. #
  12889. -# LT_AC_PROG_SED
  12890. -# --------------
  12891. -# Check for a fully-functional sed program, that truncates
  12892. -# as few characters as possible. Prefer GNU sed if found.
  12893. -AC_DEFUN([LT_AC_PROG_SED],
  12894. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12895. -AC_CACHE_VAL(lt_cv_path_SED,
  12896. -[# Loop through the user's path and test for sed and gsed.
  12897. -# Then use that list of sed's as ones to test for truncation.
  12898. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12899. -for as_dir in $PATH
  12900. -do
  12901. - IFS=$as_save_IFS
  12902. - test -z "$as_dir" && as_dir=.
  12903. - for lt_ac_prog in sed gsed; do
  12904. - for ac_exec_ext in '' $ac_executable_extensions; do
  12905. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12906. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12907. - fi
  12908. - done
  12909. - done
  12910. -done
  12911. -lt_ac_max=0
  12912. -lt_ac_count=0
  12913. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12914. -# along with /bin/sed that truncates output.
  12915. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12916. - test ! -f $lt_ac_sed && continue
  12917. - cat /dev/null > conftest.in
  12918. - lt_ac_count=0
  12919. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12920. - # Check for GNU sed and select it if it is found.
  12921. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12922. - lt_cv_path_SED=$lt_ac_sed
  12923. - break
  12924. - fi
  12925. - while true; do
  12926. - cat conftest.in conftest.in >conftest.tmp
  12927. - mv conftest.tmp conftest.in
  12928. - cp conftest.in conftest.nl
  12929. - echo >>conftest.nl
  12930. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12931. - cmp -s conftest.out conftest.nl || break
  12932. - # 10000 chars as input seems more than enough
  12933. - test $lt_ac_count -gt 10 && break
  12934. - lt_ac_count=`expr $lt_ac_count + 1`
  12935. - if test $lt_ac_count -gt $lt_ac_max; then
  12936. - lt_ac_max=$lt_ac_count
  12937. - lt_cv_path_SED=$lt_ac_sed
  12938. - fi
  12939. - done
  12940. -done
  12941. +
  12942. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12943. +# --------------------------------------------
  12944. +m4_define([lt_dict_add_subkey],
  12945. +[m4_define([$1($2:$3)], [$4])])
  12946. +
  12947. +
  12948. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12949. +# ----------------------------------
  12950. +m4_define([lt_dict_fetch],
  12951. +[m4_ifval([$3],
  12952. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12953. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12954. +
  12955. +
  12956. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12957. +# -----------------------------------------------------------------
  12958. +m4_define([lt_if_dict_fetch],
  12959. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12960. + [$5],
  12961. + [$6])])
  12962. +
  12963. +
  12964. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12965. +# --------------------------------------------------------------
  12966. +m4_define([lt_dict_filter],
  12967. +[m4_if([$5], [], [],
  12968. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12969. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12970. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12971. ])
  12972. -SED=$lt_cv_path_SED
  12973. -AC_MSG_RESULT([$SED])
  12974. +
  12975. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  12976. +#
  12977. +# Copyright (C) 2004 Free Software Foundation, Inc.
  12978. +# Written by Scott James Remnant, 2004
  12979. +#
  12980. +# This file is free software; the Free Software Foundation gives
  12981. +# unlimited permission to copy and/or distribute it, with or without
  12982. +# modifications, as long as this notice is preserved.
  12983. +
  12984. +# Generated from ltversion.in.
  12985. +
  12986. +# serial 3017 ltversion.m4
  12987. +# This file is part of GNU Libtool
  12988. +
  12989. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  12990. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  12991. +
  12992. +AC_DEFUN([LTVERSION_VERSION],
  12993. +[macro_version='2.2.6b'
  12994. +macro_revision='1.3017'
  12995. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  12996. +_LT_DECL(, macro_revision, 0)
  12997. ])
  12998. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  12999. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  13000. +#
  13001. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  13002. +# Written by Scott James Remnant, 2004.
  13003. +#
  13004. +# This file is free software; the Free Software Foundation gives
  13005. +# unlimited permission to copy and/or distribute it, with or without
  13006. +# modifications, as long as this notice is preserved.
  13007. +
  13008. +# serial 4 lt~obsolete.m4
  13009. +
  13010. +# These exist entirely to fool aclocal when bootstrapping libtool.
  13011. +#
  13012. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  13013. +# which have later been changed to m4_define as they aren't part of the
  13014. +# exported API, or moved to Autoconf or Automake where they belong.
  13015. +#
  13016. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  13017. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  13018. +# using a macro with the same name in our local m4/libtool.m4 it'll
  13019. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  13020. +# and doesn't know about Autoconf macros at all.)
  13021. +#
  13022. +# So we provide this file, which has a silly filename so it's always
  13023. +# included after everything else. This provides aclocal with the
  13024. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  13025. +# because those macros already exist, or will be overwritten later.
  13026. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  13027. +#
  13028. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  13029. +# Yes, that means every name once taken will need to remain here until
  13030. +# we give up compatibility with versions before 1.7, at which point
  13031. +# we need to keep only those names which we still refer to.
  13032. +
  13033. +# This is to help aclocal find these macros, as it can't see m4_define.
  13034. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  13035. +
  13036. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  13037. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  13038. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  13039. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  13040. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  13041. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  13042. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  13043. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  13044. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  13045. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  13046. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  13047. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  13048. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  13049. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  13050. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  13051. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  13052. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  13053. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  13054. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  13055. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  13056. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  13057. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  13058. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  13059. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  13060. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  13061. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  13062. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  13063. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  13064. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  13065. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  13066. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  13067. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  13068. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  13069. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  13070. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  13071. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  13072. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  13073. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  13074. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  13075. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  13076. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  13077. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  13078. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  13079. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  13080. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  13081. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  13082. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  13083. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  13084. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  13085. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  13086. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  13087. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  13088. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  13089. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  13090. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  13091. +
  13092. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13093. #
  13094. # This file is free software; the Free Software Foundation
  13095. # gives unlimited permission to copy and/or distribute it,
  13096. @@ -6398,14 +7995,31 @@
  13097. # ----------------------------
  13098. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  13099. # generated from the m4 files accompanying Automake X.Y.
  13100. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  13101. +# (This private macro should not be called outside this file.)
  13102. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  13103. +[am__api_version='1.11'
  13104. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  13105. +dnl require some minimum version. Point them to the right macro.
  13106. +m4_if([$1], [1.11.1], [],
  13107. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  13108. +])
  13109. +
  13110. +# _AM_AUTOCONF_VERSION(VERSION)
  13111. +# -----------------------------
  13112. +# aclocal traces this macro to find the Autoconf version.
  13113. +# This is a private macro too. Using m4_define simplifies
  13114. +# the logic in aclocal, which can simply ignore this definition.
  13115. +m4_define([_AM_AUTOCONF_VERSION], [])
  13116. # AM_SET_CURRENT_AUTOMAKE_VERSION
  13117. # -------------------------------
  13118. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  13119. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  13120. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  13121. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  13122. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  13123. - [AM_AUTOMAKE_VERSION([1.9.6])])
  13124. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  13125. +m4_ifndef([AC_AUTOCONF_VERSION],
  13126. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13127. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  13128. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  13129. @@ -6462,14 +8076,14 @@
  13130. # AM_CONDITIONAL -*- Autoconf -*-
  13131. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  13132. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  13133. # Free Software Foundation, Inc.
  13134. #
  13135. # This file is free software; the Free Software Foundation
  13136. # gives unlimited permission to copy and/or distribute it,
  13137. # with or without modifications, as long as this notice is preserved.
  13138. -# serial 7
  13139. +# serial 9
  13140. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  13141. # -------------------------------------
  13142. @@ -6478,8 +8092,11 @@
  13143. [AC_PREREQ(2.52)dnl
  13144. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  13145. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  13146. -AC_SUBST([$1_TRUE])
  13147. -AC_SUBST([$1_FALSE])
  13148. +AC_SUBST([$1_TRUE])dnl
  13149. +AC_SUBST([$1_FALSE])dnl
  13150. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  13151. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  13152. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  13153. if $2; then
  13154. $1_TRUE=
  13155. $1_FALSE='#'
  13156. @@ -6493,15 +8110,14 @@
  13157. Usually this means the macro was only invoked conditionally.]])
  13158. fi])])
  13159. -
  13160. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13161. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  13162. # Free Software Foundation, Inc.
  13163. #
  13164. # This file is free software; the Free Software Foundation
  13165. # gives unlimited permission to copy and/or distribute it,
  13166. # with or without modifications, as long as this notice is preserved.
  13167. -# serial 8
  13168. +# serial 10
  13169. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  13170. # written in clear, in which case automake, when reading aclocal.m4,
  13171. @@ -6529,6 +8145,7 @@
  13172. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  13173. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  13174. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  13175. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  13176. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  13177. [depcc="$$1" am_compiler_list=])
  13178. @@ -6557,6 +8174,16 @@
  13179. if test "$am_compiler_list" = ""; then
  13180. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  13181. fi
  13182. + am__universal=false
  13183. + m4_case([$1], [CC],
  13184. + [case " $depcc " in #(
  13185. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13186. + esac],
  13187. + [CXX],
  13188. + [case " $depcc " in #(
  13189. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13190. + esac])
  13191. +
  13192. for depmode in $am_compiler_list; do
  13193. # Setup a source with many dependencies, because some compilers
  13194. # like to wrap large dependency lists on column 80 (with \), and
  13195. @@ -6574,7 +8201,17 @@
  13196. done
  13197. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13198. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13199. + # mode. It turns out that the SunPro C++ compiler does not properly
  13200. + # handle `-M -o', and we need to detect this. Also, some Intel
  13201. + # versions had trouble with output in subdirs
  13202. + am__obj=sub/conftest.${OBJEXT-o}
  13203. + am__minus_obj="-o $am__obj"
  13204. case $depmode in
  13205. + gcc)
  13206. + # This depmode causes a compiler race in universal mode.
  13207. + test "$am__universal" = false || continue
  13208. + ;;
  13209. nosideeffect)
  13210. # after this tag, mechanisms are not by side-effect, so they'll
  13211. # only be used when explicitly requested
  13212. @@ -6584,18 +8221,23 @@
  13213. break
  13214. fi
  13215. ;;
  13216. + msvisualcpp | msvcmsys)
  13217. + # This compiler won't grok `-c -o', but also, the minuso test has
  13218. + # not run yet. These depmodes are late enough in the game, and
  13219. + # so weak that their functioning should not be impacted.
  13220. + am__obj=conftest.${OBJEXT-o}
  13221. + am__minus_obj=
  13222. + ;;
  13223. none) break ;;
  13224. esac
  13225. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13226. - # mode. It turns out that the SunPro C++ compiler does not properly
  13227. - # handle `-M -o', and we need to detect this.
  13228. if depmode=$depmode \
  13229. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13230. + source=sub/conftest.c object=$am__obj \
  13231. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13232. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13233. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13234. >/dev/null 2>conftest.err &&
  13235. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13236. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13237. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13238. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13239. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13240. # icc doesn't choke on unknown options, it will just issue warnings
  13241. # or remarks (even with -Werror). So we grep stderr for any message
  13242. @@ -6646,61 +8288,74 @@
  13243. AMDEPBACKSLASH='\'
  13244. fi
  13245. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  13246. -AC_SUBST([AMDEPBACKSLASH])
  13247. +AC_SUBST([AMDEPBACKSLASH])dnl
  13248. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  13249. ])
  13250. # Generate code to set up dependency tracking. -*- Autoconf -*-
  13251. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13252. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13253. # Free Software Foundation, Inc.
  13254. #
  13255. # This file is free software; the Free Software Foundation
  13256. # gives unlimited permission to copy and/or distribute it,
  13257. # with or without modifications, as long as this notice is preserved.
  13258. -#serial 3
  13259. +#serial 5
  13260. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  13261. # ------------------------------
  13262. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  13263. -[for mf in $CONFIG_FILES; do
  13264. - # Strip MF so we end up with the name of the file.
  13265. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  13266. - # Check whether this is an Automake generated Makefile or not.
  13267. - # We used to match only the files named `Makefile.in', but
  13268. - # some people rename them; so instead we look at the file content.
  13269. - # Grep'ing the first line is not enough: some people post-process
  13270. - # each Makefile.in and add a new line on top of each file to say so.
  13271. - # So let's grep whole file.
  13272. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13273. - dirpart=`AS_DIRNAME("$mf")`
  13274. - else
  13275. - continue
  13276. - fi
  13277. - # Extract the definition of DEPDIR, am__include, and am__quote
  13278. - # from the Makefile without running `make'.
  13279. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13280. - test -z "$DEPDIR" && continue
  13281. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13282. - test -z "am__include" && continue
  13283. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13284. - # When using ansi2knr, U may be empty or an underscore; expand it
  13285. - U=`sed -n 's/^U = //p' < "$mf"`
  13286. - # Find all dependency output files, they are included files with
  13287. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  13288. - # simplest approach to changing $(DEPDIR) to its actual value in the
  13289. - # expansion.
  13290. - for file in `sed -n "
  13291. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13292. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13293. - # Make sure the directory exists.
  13294. - test -f "$dirpart/$file" && continue
  13295. - fdir=`AS_DIRNAME(["$file"])`
  13296. - AS_MKDIR_P([$dirpart/$fdir])
  13297. - # echo "creating $dirpart/$file"
  13298. - echo '# dummy' > "$dirpart/$file"
  13299. +[{
  13300. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13301. + # are listed without --file. Let's play safe and only enable the eval
  13302. + # if we detect the quoting.
  13303. + case $CONFIG_FILES in
  13304. + *\'*) eval set x "$CONFIG_FILES" ;;
  13305. + *) set x $CONFIG_FILES ;;
  13306. + esac
  13307. + shift
  13308. + for mf
  13309. + do
  13310. + # Strip MF so we end up with the name of the file.
  13311. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13312. + # Check whether this is an Automake generated Makefile or not.
  13313. + # We used to match only the files named `Makefile.in', but
  13314. + # some people rename them; so instead we look at the file content.
  13315. + # Grep'ing the first line is not enough: some people post-process
  13316. + # each Makefile.in and add a new line on top of each file to say so.
  13317. + # Grep'ing the whole file is not good either: AIX grep has a line
  13318. + # limit of 2048, but all sed's we know have understand at least 4000.
  13319. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13320. + dirpart=`AS_DIRNAME("$mf")`
  13321. + else
  13322. + continue
  13323. + fi
  13324. + # Extract the definition of DEPDIR, am__include, and am__quote
  13325. + # from the Makefile without running `make'.
  13326. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13327. + test -z "$DEPDIR" && continue
  13328. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13329. + test -z "am__include" && continue
  13330. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13331. + # When using ansi2knr, U may be empty or an underscore; expand it
  13332. + U=`sed -n 's/^U = //p' < "$mf"`
  13333. + # Find all dependency output files, they are included files with
  13334. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13335. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13336. + # expansion.
  13337. + for file in `sed -n "
  13338. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13339. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13340. + # Make sure the directory exists.
  13341. + test -f "$dirpart/$file" && continue
  13342. + fdir=`AS_DIRNAME(["$file"])`
  13343. + AS_MKDIR_P([$dirpart/$fdir])
  13344. + # echo "creating $dirpart/$file"
  13345. + echo '# dummy' > "$dirpart/$file"
  13346. + done
  13347. done
  13348. -done
  13349. +}
  13350. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13351. @@ -6731,14 +8386,14 @@
  13352. # Do all the work for Automake. -*- Autoconf -*-
  13353. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13354. -# Free Software Foundation, Inc.
  13355. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13356. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13357. #
  13358. # This file is free software; the Free Software Foundation
  13359. # gives unlimited permission to copy and/or distribute it,
  13360. # with or without modifications, as long as this notice is preserved.
  13361. -# serial 12
  13362. +# serial 16
  13363. # This macro actually does too much. Some checks are only needed if
  13364. # your package does certain things. But this isn't really a big deal.
  13365. @@ -6755,16 +8410,20 @@
  13366. # arguments mandatory, and then we can depend on a new Autoconf
  13367. # release and drop the old call support.
  13368. AC_DEFUN([AM_INIT_AUTOMAKE],
  13369. -[AC_PREREQ([2.58])dnl
  13370. +[AC_PREREQ([2.62])dnl
  13371. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13372. dnl the ones we care about.
  13373. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13374. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  13375. AC_REQUIRE([AC_PROG_INSTALL])dnl
  13376. -# test to see if srcdir already configured
  13377. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13378. - test -f $srcdir/config.status; then
  13379. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13380. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13381. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13382. + # is not polluted with repeated "-I."
  13383. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  13384. + # test to see if srcdir already configured
  13385. + if test -f $srcdir/config.status; then
  13386. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13387. + fi
  13388. fi
  13389. # test whether we have cygpath
  13390. @@ -6784,6 +8443,9 @@
  13391. AC_SUBST([PACKAGE], [$1])dnl
  13392. AC_SUBST([VERSION], [$2])],
  13393. [_AM_SET_OPTIONS([$1])dnl
  13394. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  13395. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  13396. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  13397. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  13398. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  13399. @@ -6799,8 +8461,8 @@
  13400. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13401. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13402. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13403. -AM_PROG_INSTALL_SH
  13404. -AM_PROG_INSTALL_STRIP
  13405. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13406. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13407. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13408. # We need awk for the "check" target. The system "awk" is bad on
  13409. # some platforms.
  13410. @@ -6808,20 +8470,37 @@
  13411. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13412. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13413. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13414. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13415. - [_AM_PROG_TAR([v7])])])
  13416. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13417. + [_AM_PROG_TAR([v7])])])
  13418. _AM_IF_OPTION([no-dependencies],,
  13419. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13420. - [_AM_DEPENDENCIES(CC)],
  13421. - [define([AC_PROG_CC],
  13422. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13423. + [_AM_DEPENDENCIES(CC)],
  13424. + [define([AC_PROG_CC],
  13425. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13426. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13427. - [_AM_DEPENDENCIES(CXX)],
  13428. - [define([AC_PROG_CXX],
  13429. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13430. + [_AM_DEPENDENCIES(CXX)],
  13431. + [define([AC_PROG_CXX],
  13432. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13433. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13434. + [_AM_DEPENDENCIES(OBJC)],
  13435. + [define([AC_PROG_OBJC],
  13436. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13437. ])
  13438. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13439. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13440. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13441. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13442. +AC_CONFIG_COMMANDS_PRE(dnl
  13443. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13444. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13445. ])
  13446. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13447. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13448. +dnl mangled by Autoconf and run in a shell conditional statement.
  13449. +m4_define([_AC_COMPILER_EXEEXT],
  13450. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13451. +
  13452. # When config.status generates a header, we must update the stamp-h file.
  13453. # This file resides in the same directory as the config header
  13454. @@ -6832,18 +8511,19 @@
  13455. # our stamp files there.
  13456. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13457. [# Compute $1's index in $config_headers.
  13458. +_am_arg=$1
  13459. _am_stamp_count=1
  13460. for _am_header in $config_headers :; do
  13461. case $_am_header in
  13462. - $1 | $1:* )
  13463. + $_am_arg | $_am_arg:* )
  13464. break ;;
  13465. * )
  13466. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13467. esac
  13468. done
  13469. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13470. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13471. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13472. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13473. #
  13474. # This file is free software; the Free Software Foundation
  13475. # gives unlimited permission to copy and/or distribute it,
  13476. @@ -6854,7 +8534,14 @@
  13477. # Define $install_sh.
  13478. AC_DEFUN([AM_PROG_INSTALL_SH],
  13479. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13480. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13481. +if test x"${install_sh}" != xset; then
  13482. + case $am_aux_dir in
  13483. + *\ * | *\ *)
  13484. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13485. + *)
  13486. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13487. + esac
  13488. +fi
  13489. AC_SUBST(install_sh)])
  13490. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13491. @@ -6881,27 +8568,38 @@
  13492. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  13493. # From Jim Meyering
  13494. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  13495. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13496. # Free Software Foundation, Inc.
  13497. #
  13498. # This file is free software; the Free Software Foundation
  13499. # gives unlimited permission to copy and/or distribute it,
  13500. # with or without modifications, as long as this notice is preserved.
  13501. -# serial 4
  13502. +# serial 5
  13503. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  13504. +# ----------------------------------
  13505. +# Control maintainer-specific portions of Makefiles.
  13506. +# Default is to disable them, unless `enable' is passed literally.
  13507. +# For symmetry, `disable' may be passed as well. Anyway, the user
  13508. +# can override the default with the --enable/--disable switch.
  13509. AC_DEFUN([AM_MAINTAINER_MODE],
  13510. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  13511. - dnl maintainer-mode is disabled by default
  13512. - AC_ARG_ENABLE(maintainer-mode,
  13513. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  13514. +[m4_case(m4_default([$1], [disable]),
  13515. + [enable], [m4_define([am_maintainer_other], [disable])],
  13516. + [disable], [m4_define([am_maintainer_other], [enable])],
  13517. + [m4_define([am_maintainer_other], [enable])
  13518. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  13519. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  13520. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  13521. + AC_ARG_ENABLE([maintainer-mode],
  13522. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  13523. (and sometimes confusing) to the casual installer],
  13524. - USE_MAINTAINER_MODE=$enableval,
  13525. - USE_MAINTAINER_MODE=no)
  13526. + [USE_MAINTAINER_MODE=$enableval],
  13527. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  13528. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  13529. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  13530. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  13531. MAINT=$MAINTAINER_MODE_TRUE
  13532. - AC_SUBST(MAINT)dnl
  13533. + AC_SUBST([MAINT])dnl
  13534. ]
  13535. )
  13536. @@ -6909,13 +8607,13 @@
  13537. # Check to see how 'make' treats includes. -*- Autoconf -*-
  13538. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13539. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13540. #
  13541. # This file is free software; the Free Software Foundation
  13542. # gives unlimited permission to copy and/or distribute it,
  13543. # with or without modifications, as long as this notice is preserved.
  13544. -# serial 3
  13545. +# serial 4
  13546. # AM_MAKE_INCLUDE()
  13547. # -----------------
  13548. @@ -6924,7 +8622,7 @@
  13549. [am_make=${MAKE-make}
  13550. cat > confinc << 'END'
  13551. am__doit:
  13552. - @echo done
  13553. + @echo this is the am__doit target
  13554. .PHONY: am__doit
  13555. END
  13556. # If we don't find an include directive, just comment out the code.
  13557. @@ -6934,24 +8632,24 @@
  13558. _am_result=none
  13559. # First try GNU make style include.
  13560. echo "include confinc" > confmf
  13561. -# We grep out `Entering directory' and `Leaving directory'
  13562. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13563. -# In particular we don't look at `^make:' because GNU make might
  13564. -# be invoked under some other name (usually "gmake"), in which
  13565. -# case it prints its new name instead of `make'.
  13566. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13567. - am__include=include
  13568. - am__quote=
  13569. - _am_result=GNU
  13570. -fi
  13571. +# Ignore all kinds of additional output from `make'.
  13572. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13573. +*the\ am__doit\ target*)
  13574. + am__include=include
  13575. + am__quote=
  13576. + _am_result=GNU
  13577. + ;;
  13578. +esac
  13579. # Now try BSD make style include.
  13580. if test "$am__include" = "#"; then
  13581. echo '.include "confinc"' > confmf
  13582. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13583. - am__include=.include
  13584. - am__quote="\""
  13585. - _am_result=BSD
  13586. - fi
  13587. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13588. + *the\ am__doit\ target*)
  13589. + am__include=.include
  13590. + am__quote="\""
  13591. + _am_result=BSD
  13592. + ;;
  13593. + esac
  13594. fi
  13595. AC_SUBST([am__include])
  13596. AC_SUBST([am__quote])
  13597. @@ -6961,14 +8659,14 @@
  13598. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13599. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  13600. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13601. # Free Software Foundation, Inc.
  13602. #
  13603. # This file is free software; the Free Software Foundation
  13604. # gives unlimited permission to copy and/or distribute it,
  13605. # with or without modifications, as long as this notice is preserved.
  13606. -# serial 4
  13607. +# serial 6
  13608. # AM_MISSING_PROG(NAME, PROGRAM)
  13609. # ------------------------------
  13610. @@ -6984,7 +8682,15 @@
  13611. # If it does, set am_missing_run to use it, otherwise, to nothing.
  13612. AC_DEFUN([AM_MISSING_HAS_RUN],
  13613. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13614. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13615. +AC_REQUIRE_AUX_FILE([missing])dnl
  13616. +if test x"${MISSING+set}" != xset; then
  13617. + case $am_aux_dir in
  13618. + *\ * | *\ *)
  13619. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13620. + *)
  13621. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13622. + esac
  13623. +fi
  13624. # Use eval to expand $SHELL
  13625. if eval "$MISSING --run true"; then
  13626. am_missing_run="$MISSING --run "
  13627. @@ -6994,7 +8700,7 @@
  13628. fi
  13629. ])
  13630. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  13631. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13632. #
  13633. # This file is free software; the Free Software Foundation
  13634. # gives unlimited permission to copy and/or distribute it,
  13635. @@ -7002,70 +8708,33 @@
  13636. # AM_PROG_MKDIR_P
  13637. # ---------------
  13638. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  13639. -#
  13640. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  13641. -# created by `make install' are always world readable, even if the
  13642. -# installer happens to have an overly restrictive umask (e.g. 077).
  13643. -# This was a mistake. There are at least two reasons why we must not
  13644. -# use `-m 0755':
  13645. -# - it causes special bits like SGID to be ignored,
  13646. -# - it may be too restrictive (some setups expect 775 directories).
  13647. -#
  13648. -# Do not use -m 0755 and let people choose whatever they expect by
  13649. -# setting umask.
  13650. -#
  13651. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  13652. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  13653. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  13654. -# concurrently, both version can detect that a/ is missing, but only
  13655. -# one can create it and the other will error out. Consequently we
  13656. -# restrict ourselves to GNU make (using the --version option ensures
  13657. -# this.)
  13658. +# Check for `mkdir -p'.
  13659. AC_DEFUN([AM_PROG_MKDIR_P],
  13660. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  13661. - # We used to keeping the `.' as first argument, in order to
  13662. - # allow $(mkdir_p) to be used without argument. As in
  13663. - # $(mkdir_p) $(somedir)
  13664. - # where $(somedir) is conditionally defined. However this is wrong
  13665. - # for two reasons:
  13666. - # 1. if the package is installed by a user who cannot write `.'
  13667. - # make install will fail,
  13668. - # 2. the above comment should most certainly read
  13669. - # $(mkdir_p) $(DESTDIR)$(somedir)
  13670. - # so it does not work when $(somedir) is undefined and
  13671. - # $(DESTDIR) is not.
  13672. - # To support the latter case, we have to write
  13673. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  13674. - # so the `.' trick is pointless.
  13675. - mkdir_p='mkdir -p --'
  13676. -else
  13677. - # On NextStep and OpenStep, the `mkdir' command does not
  13678. - # recognize any option. It will interpret all options as
  13679. - # directories to create, and then abort because `.' already
  13680. - # exists.
  13681. - for d in ./-p ./--version;
  13682. - do
  13683. - test -d $d && rmdir $d
  13684. - done
  13685. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13686. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13687. - mkdir_p='$(mkinstalldirs)'
  13688. - else
  13689. - mkdir_p='$(install_sh) -d'
  13690. - fi
  13691. -fi
  13692. -AC_SUBST([mkdir_p])])
  13693. +[AC_PREREQ([2.60])dnl
  13694. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13695. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13696. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13697. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13698. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13699. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13700. +dnl adjustment using top_builddir (which is defined more often than
  13701. +dnl MKDIR_P).
  13702. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13703. +case $mkdir_p in
  13704. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13705. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13706. +esac
  13707. +])
  13708. # Helper functions for option handling. -*- Autoconf -*-
  13709. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13710. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13711. #
  13712. # This file is free software; the Free Software Foundation
  13713. # gives unlimited permission to copy and/or distribute it,
  13714. # with or without modifications, as long as this notice is preserved.
  13715. -# serial 3
  13716. +# serial 4
  13717. # _AM_MANGLE_OPTION(NAME)
  13718. # -----------------------
  13719. @@ -7082,7 +8751,7 @@
  13720. # ----------------------------------
  13721. # OPTIONS is a space-separated list of Automake options.
  13722. AC_DEFUN([_AM_SET_OPTIONS],
  13723. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13724. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13725. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13726. # -------------------------------------------
  13727. @@ -7092,14 +8761,14 @@
  13728. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  13729. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  13730. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13731. # Free Software Foundation, Inc.
  13732. #
  13733. # This file is free software; the Free Software Foundation
  13734. # gives unlimited permission to copy and/or distribute it,
  13735. # with or without modifications, as long as this notice is preserved.
  13736. -# serial 4
  13737. +# serial 5
  13738. # AM_SANITY_CHECK
  13739. # ---------------
  13740. @@ -7108,16 +8777,29 @@
  13741. # Just in case
  13742. sleep 1
  13743. echo timestamp > conftest.file
  13744. +# Reject unsafe characters in $srcdir or the absolute working directory
  13745. +# name. Accept space and tab only in the latter.
  13746. +am_lf='
  13747. +'
  13748. +case `pwd` in
  13749. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13750. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13751. +esac
  13752. +case $srcdir in
  13753. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13754. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13755. +esac
  13756. +
  13757. # Do `set' in a subshell so we don't clobber the current shell's
  13758. # arguments. Must try -L first in case configure is actually a
  13759. # symlink; some systems play weird games with the mod time of symlinks
  13760. # (eg FreeBSD returns the mod time of the symlink's containing
  13761. # directory).
  13762. if (
  13763. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13764. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13765. if test "$[*]" = "X"; then
  13766. # -L didn't work.
  13767. - set X `ls -t $srcdir/configure conftest.file`
  13768. + set X `ls -t "$srcdir/configure" conftest.file`
  13769. fi
  13770. rm -f conftest.file
  13771. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13772. @@ -7167,9 +8849,28 @@
  13773. if test "$cross_compiling" != no; then
  13774. AC_CHECK_TOOL([STRIP], [strip], :)
  13775. fi
  13776. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13777. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13778. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13779. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13780. +#
  13781. +# This file is free software; the Free Software Foundation
  13782. +# gives unlimited permission to copy and/or distribute it,
  13783. +# with or without modifications, as long as this notice is preserved.
  13784. +
  13785. +# serial 2
  13786. +
  13787. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13788. +# ---------------------------
  13789. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13790. +# This macro is traced by Automake.
  13791. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13792. +
  13793. +# AM_SUBST_NOTMAKE(VARIABLE)
  13794. +# ---------------------------
  13795. +# Public sister of _AM_SUBST_NOTMAKE.
  13796. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13797. +
  13798. # Check how to create a tarball. -*- Autoconf -*-
  13799. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13800. diff -Nur libevent-1.3.orig/config.guess libevent-1.3/config.guess
  13801. --- libevent-1.3.orig/config.guess 2006-12-09 05:42:31.000000000 +0100
  13802. +++ libevent-1.3/config.guess 2011-02-17 17:08:17.333564398 +0100
  13803. @@ -1,9 +1,10 @@
  13804. #! /bin/sh
  13805. # Attempt to guess a canonical system name.
  13806. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13807. -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
  13808. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13809. +# Free Software Foundation, Inc.
  13810. -timestamp='2005-12-13'
  13811. +timestamp='2009-06-10'
  13812. # This file is free software; you can redistribute it and/or modify it
  13813. # under the terms of the GNU General Public License as published by
  13814. @@ -55,8 +56,8 @@
  13815. GNU config.guess ($timestamp)
  13816. Originally written by Per Bothner.
  13817. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13818. -Free Software Foundation, Inc.
  13819. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13820. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13821. This is free software; see the source for copying conditions. There is NO
  13822. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13823. @@ -106,7 +107,7 @@
  13824. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  13825. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  13826. : ${TMPDIR=/tmp} ;
  13827. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13828. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13829. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  13830. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  13831. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  13832. @@ -160,6 +161,7 @@
  13833. arm*) machine=arm-unknown ;;
  13834. sh3el) machine=shl-unknown ;;
  13835. sh3eb) machine=sh-unknown ;;
  13836. + sh5el) machine=sh5le-unknown ;;
  13837. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  13838. esac
  13839. # The Operating System including object format, if it has switched
  13840. @@ -168,7 +170,7 @@
  13841. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  13842. eval $set_cc_for_build
  13843. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13844. - | grep __ELF__ >/dev/null
  13845. + | grep -q __ELF__
  13846. then
  13847. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  13848. # Return netbsd for either. FIX?
  13849. @@ -206,8 +208,11 @@
  13850. *:ekkoBSD:*:*)
  13851. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  13852. exit ;;
  13853. + *:SolidBSD:*:*)
  13854. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  13855. + exit ;;
  13856. macppc:MirBSD:*:*)
  13857. - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  13858. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  13859. exit ;;
  13860. *:MirBSD:*:*)
  13861. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  13862. @@ -319,14 +324,30 @@
  13863. case `/usr/bin/uname -p` in
  13864. sparc) echo sparc-icl-nx7; exit ;;
  13865. esac ;;
  13866. + s390x:SunOS:*:*)
  13867. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13868. + exit ;;
  13869. sun4H:SunOS:5.*:*)
  13870. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13871. exit ;;
  13872. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  13873. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13874. exit ;;
  13875. - i86pc:SunOS:5.*:*)
  13876. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13877. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  13878. + eval $set_cc_for_build
  13879. + SUN_ARCH="i386"
  13880. + # If there is a compiler, see if it is configured for 64-bit objects.
  13881. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  13882. + # This test works for both compilers.
  13883. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  13884. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  13885. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  13886. + grep IS_64BIT_ARCH >/dev/null
  13887. + then
  13888. + SUN_ARCH="x86_64"
  13889. + fi
  13890. + fi
  13891. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13892. exit ;;
  13893. sun4*:SunOS:6*:*)
  13894. # According to config.sub, this is the proper way to canonicalize
  13895. @@ -527,7 +548,7 @@
  13896. echo rs6000-ibm-aix3.2
  13897. fi
  13898. exit ;;
  13899. - *:AIX:*:[45])
  13900. + *:AIX:*:[456])
  13901. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  13902. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  13903. IBM_ARCH=rs6000
  13904. @@ -635,7 +656,7 @@
  13905. # => hppa64-hp-hpux11.23
  13906. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  13907. - grep __LP64__ >/dev/null
  13908. + grep -q __LP64__
  13909. then
  13910. HP_ARCH="hppa2.0w"
  13911. else
  13912. @@ -764,12 +785,19 @@
  13913. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  13914. exit ;;
  13915. *:FreeBSD:*:*)
  13916. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  13917. + case ${UNAME_MACHINE} in
  13918. + pc98)
  13919. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  13920. + amd64)
  13921. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  13922. + *)
  13923. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  13924. + esac
  13925. exit ;;
  13926. i*:CYGWIN*:*)
  13927. echo ${UNAME_MACHINE}-pc-cygwin
  13928. exit ;;
  13929. - i*:MINGW*:*)
  13930. + *:MINGW*:*)
  13931. echo ${UNAME_MACHINE}-pc-mingw32
  13932. exit ;;
  13933. i*:windows32*:*)
  13934. @@ -779,12 +807,24 @@
  13935. i*:PW*:*)
  13936. echo ${UNAME_MACHINE}-pc-pw32
  13937. exit ;;
  13938. - x86:Interix*:[345]*)
  13939. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  13940. - exit ;;
  13941. + *:Interix*:[3456]*)
  13942. + case ${UNAME_MACHINE} in
  13943. + x86)
  13944. + echo i586-pc-interix${UNAME_RELEASE}
  13945. + exit ;;
  13946. + EM64T | authenticamd | genuineintel)
  13947. + echo x86_64-unknown-interix${UNAME_RELEASE}
  13948. + exit ;;
  13949. + IA64)
  13950. + echo ia64-unknown-interix${UNAME_RELEASE}
  13951. + exit ;;
  13952. + esac ;;
  13953. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  13954. echo i${UNAME_MACHINE}-pc-mks
  13955. exit ;;
  13956. + 8664:Windows_NT:*)
  13957. + echo x86_64-pc-mks
  13958. + exit ;;
  13959. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  13960. # How do we know it's Interix rather than the generic POSIX subsystem?
  13961. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  13962. @@ -815,6 +855,16 @@
  13963. echo ${UNAME_MACHINE}-pc-minix
  13964. exit ;;
  13965. arm*:Linux:*:*)
  13966. + eval $set_cc_for_build
  13967. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13968. + | grep -q __ARM_EABI__
  13969. + then
  13970. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13971. + else
  13972. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  13973. + fi
  13974. + exit ;;
  13975. + avr32*:Linux:*:*)
  13976. echo ${UNAME_MACHINE}-unknown-linux-gnu
  13977. exit ;;
  13978. cris:Linux:*:*)
  13979. @@ -835,42 +885,27 @@
  13980. m68*:Linux:*:*)
  13981. echo ${UNAME_MACHINE}-unknown-linux-gnu
  13982. exit ;;
  13983. - mips:Linux:*:*)
  13984. - eval $set_cc_for_build
  13985. - sed 's/^ //' << EOF >$dummy.c
  13986. - #undef CPU
  13987. - #undef mips
  13988. - #undef mipsel
  13989. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  13990. - CPU=mipsel
  13991. - #else
  13992. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  13993. - CPU=mips
  13994. - #else
  13995. - CPU=
  13996. - #endif
  13997. - #endif
  13998. -EOF
  13999. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
  14000. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14001. - ;;
  14002. - mips64:Linux:*:*)
  14003. + mips:Linux:*:* | mips64:Linux:*:*)
  14004. eval $set_cc_for_build
  14005. sed 's/^ //' << EOF >$dummy.c
  14006. #undef CPU
  14007. - #undef mips64
  14008. - #undef mips64el
  14009. + #undef ${UNAME_MACHINE}
  14010. + #undef ${UNAME_MACHINE}el
  14011. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14012. - CPU=mips64el
  14013. + CPU=${UNAME_MACHINE}el
  14014. #else
  14015. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14016. - CPU=mips64
  14017. + CPU=${UNAME_MACHINE}
  14018. #else
  14019. CPU=
  14020. #endif
  14021. #endif
  14022. EOF
  14023. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
  14024. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14025. + /^CPU/{
  14026. + s: ::g
  14027. + p
  14028. + }'`"
  14029. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14030. ;;
  14031. or32:Linux:*:*)
  14032. @@ -892,10 +927,13 @@
  14033. EV67) UNAME_MACHINE=alphaev67 ;;
  14034. EV68*) UNAME_MACHINE=alphaev68 ;;
  14035. esac
  14036. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14037. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14038. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14039. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14040. exit ;;
  14041. + padre:Linux:*:*)
  14042. + echo sparc-unknown-linux-gnu
  14043. + exit ;;
  14044. parisc:Linux:*:* | hppa:Linux:*:*)
  14045. # Look for CPU level
  14046. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  14047. @@ -925,6 +963,9 @@
  14048. x86_64:Linux:*:*)
  14049. echo x86_64-unknown-linux-gnu
  14050. exit ;;
  14051. + xtensa*:Linux:*:*)
  14052. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14053. + exit ;;
  14054. i*86:Linux:*:*)
  14055. # The BFD linker knows what the default object file format is, so
  14056. # first see if it will tell us. cd to the root directory to prevent
  14057. @@ -940,17 +981,6 @@
  14058. elf32-i386)
  14059. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14060. ;;
  14061. - a.out-i386-linux)
  14062. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14063. - exit ;;
  14064. - coff-i386)
  14065. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  14066. - exit ;;
  14067. - "")
  14068. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14069. - # one that does not give us useful --help.
  14070. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14071. - exit ;;
  14072. esac
  14073. # Determine whether the default compiler is a.out or elf
  14074. eval $set_cc_for_build
  14075. @@ -967,7 +997,7 @@
  14076. LIBC=gnulibc1
  14077. # endif
  14078. #else
  14079. - #if defined(__INTEL_COMPILER) || defined(__PGI)
  14080. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  14081. LIBC=gnu
  14082. #else
  14083. LIBC=gnuaout
  14084. @@ -977,7 +1007,11 @@
  14085. LIBC=dietlibc
  14086. #endif
  14087. EOF
  14088. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
  14089. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14090. + /^LIBC/{
  14091. + s: ::g
  14092. + p
  14093. + }'`"
  14094. test x"${LIBC}" != x && {
  14095. echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  14096. exit
  14097. @@ -1012,7 +1046,7 @@
  14098. i*86:syllable:*:*)
  14099. echo ${UNAME_MACHINE}-pc-syllable
  14100. exit ;;
  14101. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14102. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14103. echo i386-unknown-lynxos${UNAME_RELEASE}
  14104. exit ;;
  14105. i*86:*DOS:*:*)
  14106. @@ -1056,8 +1090,11 @@
  14107. pc:*:*:*)
  14108. # Left here for compatibility:
  14109. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  14110. - # the processor, so we play safe by assuming i386.
  14111. - echo i386-pc-msdosdjgpp
  14112. + # the processor, so we play safe by assuming i586.
  14113. + # Note: whatever this is, it MUST be the same as what config.sub
  14114. + # prints for the "djgpp" host, or else GDB configury will decide that
  14115. + # this is a cross-build.
  14116. + echo i586-pc-msdosdjgpp
  14117. exit ;;
  14118. Intel:Mach:3*:*)
  14119. echo i386-pc-mach3
  14120. @@ -1095,6 +1132,16 @@
  14121. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  14122. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14123. && { echo i486-ncr-sysv4; exit; } ;;
  14124. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  14125. + OS_REL='.3'
  14126. + test -r /etc/.relid \
  14127. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14128. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14129. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14130. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14131. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  14132. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  14133. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14134. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  14135. echo m68k-unknown-lynxos${UNAME_RELEASE}
  14136. exit ;;
  14137. @@ -1107,7 +1154,7 @@
  14138. rs6000:LynxOS:2.*:*)
  14139. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14140. exit ;;
  14141. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14142. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14143. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14144. exit ;;
  14145. SM[BE]S:UNIX_SV:*:*)
  14146. @@ -1170,6 +1217,9 @@
  14147. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  14148. echo i586-pc-beos
  14149. exit ;;
  14150. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  14151. + echo i586-pc-haiku
  14152. + exit ;;
  14153. SX-4:SUPER-UX:*:*)
  14154. echo sx4-nec-superux${UNAME_RELEASE}
  14155. exit ;;
  14156. @@ -1179,6 +1229,15 @@
  14157. SX-6:SUPER-UX:*:*)
  14158. echo sx6-nec-superux${UNAME_RELEASE}
  14159. exit ;;
  14160. + SX-7:SUPER-UX:*:*)
  14161. + echo sx7-nec-superux${UNAME_RELEASE}
  14162. + exit ;;
  14163. + SX-8:SUPER-UX:*:*)
  14164. + echo sx8-nec-superux${UNAME_RELEASE}
  14165. + exit ;;
  14166. + SX-8R:SUPER-UX:*:*)
  14167. + echo sx8r-nec-superux${UNAME_RELEASE}
  14168. + exit ;;
  14169. Power*:Rhapsody:*:*)
  14170. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  14171. exit ;;
  14172. @@ -1269,6 +1328,9 @@
  14173. i*86:rdos:*:*)
  14174. echo ${UNAME_MACHINE}-pc-rdos
  14175. exit ;;
  14176. + i*86:AROS:*:*)
  14177. + echo ${UNAME_MACHINE}-pc-aros
  14178. + exit ;;
  14179. esac
  14180. #echo '(No uname command or uname output not recognized.)' 1>&2
  14181. @@ -1429,9 +1491,9 @@
  14182. the operating system you are using. It is advised that you
  14183. download the most up to date version of the config scripts from
  14184. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  14185. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  14186. and
  14187. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  14188. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  14189. If the version you run ($0) is already up to date, please
  14190. send the following data and any information you think might be
  14191. diff -Nur libevent-1.3.orig/config.h.in libevent-1.3/config.h.in
  14192. --- libevent-1.3.orig/config.h.in 2007-02-16 01:48:32.000000000 +0100
  14193. +++ libevent-1.3/config.h.in 2011-02-17 17:08:16.000000000 +0100
  14194. @@ -241,6 +241,10 @@
  14195. /* Define if realtime signals work on pipes */
  14196. #undef HAVE_WORKING_RTSIG
  14197. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  14198. + */
  14199. +#undef LT_OBJDIR
  14200. +
  14201. /* Name of package */
  14202. #undef PACKAGE
  14203. @@ -256,6 +260,9 @@
  14204. /* Define to the one symbol short name of this package. */
  14205. #undef PACKAGE_TARNAME
  14206. +/* Define to the home page for this package. */
  14207. +#undef PACKAGE_URL
  14208. +
  14209. /* Define to the version of this package. */
  14210. #undef PACKAGE_VERSION
  14211. diff -Nur libevent-1.3.orig/config.sub libevent-1.3/config.sub
  14212. --- libevent-1.3.orig/config.sub 2006-12-09 05:42:31.000000000 +0100
  14213. +++ libevent-1.3/config.sub 2011-02-17 17:08:17.333564398 +0100
  14214. @@ -1,9 +1,10 @@
  14215. #! /bin/sh
  14216. # Configuration validation subroutine script.
  14217. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14218. -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
  14219. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14220. +# Free Software Foundation, Inc.
  14221. -timestamp='2005-12-11'
  14222. +timestamp='2009-06-11'
  14223. # This file is (in principle) common to ALL GNU software.
  14224. # The presence of a machine in this file suggests that SOME GNU software
  14225. @@ -71,8 +72,8 @@
  14226. version="\
  14227. GNU config.sub ($timestamp)
  14228. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  14229. -Free Software Foundation, Inc.
  14230. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  14231. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14232. This is free software; see the source for copying conditions. There is NO
  14233. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  14234. @@ -121,6 +122,7 @@
  14235. case $maybe_os in
  14236. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  14237. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  14238. + kopensolaris*-gnu* | \
  14239. storm-chaos* | os2-emx* | rtmk-nova*)
  14240. os=-$maybe_os
  14241. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  14242. @@ -151,6 +153,9 @@
  14243. os=
  14244. basic_machine=$1
  14245. ;;
  14246. + -bluegene*)
  14247. + os=-cnk
  14248. + ;;
  14249. -sim | -cisco | -oki | -wec | -winbond)
  14250. os=
  14251. basic_machine=$1
  14252. @@ -240,20 +245,24 @@
  14253. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  14254. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  14255. | am33_2.0 \
  14256. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  14257. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  14258. | bfin \
  14259. | c4x | clipper \
  14260. | d10v | d30v | dlx | dsp16xx \
  14261. - | fr30 | frv \
  14262. + | fido | fr30 | frv \
  14263. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  14264. | i370 | i860 | i960 | ia64 \
  14265. | ip2k | iq2000 \
  14266. - | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
  14267. + | lm32 \
  14268. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  14269. + | maxq | mb | microblaze | mcore | mep | metag \
  14270. | mips | mipsbe | mipseb | mipsel | mipsle \
  14271. | mips16 \
  14272. | mips64 | mips64el \
  14273. - | mips64vr | mips64vrel \
  14274. + | mips64octeon | mips64octeonel \
  14275. | mips64orion | mips64orionel \
  14276. + | mips64r5900 | mips64r5900el \
  14277. + | mips64vr | mips64vrel \
  14278. | mips64vr4100 | mips64vr4100el \
  14279. | mips64vr4300 | mips64vr4300el \
  14280. | mips64vr5000 | mips64vr5000el \
  14281. @@ -266,26 +275,26 @@
  14282. | mipsisa64sr71k | mipsisa64sr71kel \
  14283. | mipstx39 | mipstx39el \
  14284. | mn10200 | mn10300 \
  14285. + | moxie \
  14286. | mt \
  14287. | msp430 \
  14288. + | nios | nios2 \
  14289. | ns16k | ns32k \
  14290. | or32 \
  14291. | pdp10 | pdp11 | pj | pjl \
  14292. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  14293. | pyramid \
  14294. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  14295. + | score \
  14296. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  14297. | sh64 | sh64le \
  14298. - | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
  14299. - | sparcv8 | sparcv9 | sparcv9b \
  14300. - | strongarm \
  14301. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  14302. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  14303. + | spu | strongarm \
  14304. | tahoe | thumb | tic4x | tic80 | tron \
  14305. | v850 | v850e \
  14306. | we32k \
  14307. - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
  14308. - | z8k)
  14309. - basic_machine=$basic_machine-unknown
  14310. - ;;
  14311. - m32c)
  14312. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  14313. + | z8k | z80)
  14314. basic_machine=$basic_machine-unknown
  14315. ;;
  14316. m6811 | m68hc11 | m6812 | m68hc12)
  14317. @@ -317,25 +326,28 @@
  14318. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  14319. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  14320. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  14321. - | avr-* \
  14322. + | avr-* | avr32-* \
  14323. | bfin-* | bs2000-* \
  14324. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  14325. | clipper-* | craynv-* | cydra-* \
  14326. | d10v-* | d30v-* | dlx-* \
  14327. | elxsi-* \
  14328. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  14329. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  14330. | h8300-* | h8500-* \
  14331. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  14332. | i*86-* | i860-* | i960-* | ia64-* \
  14333. | ip2k-* | iq2000-* \
  14334. - | m32r-* | m32rle-* \
  14335. + | lm32-* \
  14336. + | m32c-* | m32r-* | m32rle-* \
  14337. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  14338. - | m88110-* | m88k-* | maxq-* | mcore-* \
  14339. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  14340. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  14341. | mips16-* \
  14342. | mips64-* | mips64el-* \
  14343. - | mips64vr-* | mips64vrel-* \
  14344. + | mips64octeon-* | mips64octeonel-* \
  14345. | mips64orion-* | mips64orionel-* \
  14346. + | mips64r5900-* | mips64r5900el-* \
  14347. + | mips64vr-* | mips64vrel-* \
  14348. | mips64vr4100-* | mips64vr4100el-* \
  14349. | mips64vr4300-* | mips64vr4300el-* \
  14350. | mips64vr5000-* | mips64vr5000el-* \
  14351. @@ -350,28 +362,31 @@
  14352. | mmix-* \
  14353. | mt-* \
  14354. | msp430-* \
  14355. + | nios-* | nios2-* \
  14356. | none-* | np1-* | ns16k-* | ns32k-* \
  14357. | orion-* \
  14358. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  14359. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  14360. | pyramid-* \
  14361. | romp-* | rs6000-* \
  14362. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  14363. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  14364. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  14365. - | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
  14366. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  14367. | sparclite-* \
  14368. - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  14369. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  14370. | tahoe-* | thumb-* \
  14371. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  14372. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  14373. | tron-* \
  14374. | v850-* | v850e-* | vax-* \
  14375. | we32k-* \
  14376. - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
  14377. - | xstormy16-* | xtensa-* \
  14378. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  14379. + | xstormy16-* | xtensa*-* \
  14380. | ymp-* \
  14381. - | z8k-*)
  14382. + | z8k-* | z80-*)
  14383. ;;
  14384. - m32c-*)
  14385. + # Recognize the basic CPU types without company name, with glob match.
  14386. + xtensa*)
  14387. + basic_machine=$basic_machine-unknown
  14388. ;;
  14389. # Recognize the various machine names and aliases which stand
  14390. # for a CPU type and a company and sometimes even an OS.
  14391. @@ -435,6 +450,10 @@
  14392. basic_machine=m68k-apollo
  14393. os=-bsd
  14394. ;;
  14395. + aros)
  14396. + basic_machine=i386-pc
  14397. + os=-aros
  14398. + ;;
  14399. aux)
  14400. basic_machine=m68k-apple
  14401. os=-aux
  14402. @@ -443,10 +462,26 @@
  14403. basic_machine=ns32k-sequent
  14404. os=-dynix
  14405. ;;
  14406. + blackfin)
  14407. + basic_machine=bfin-unknown
  14408. + os=-linux
  14409. + ;;
  14410. + blackfin-*)
  14411. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  14412. + os=-linux
  14413. + ;;
  14414. + bluegene*)
  14415. + basic_machine=powerpc-ibm
  14416. + os=-cnk
  14417. + ;;
  14418. c90)
  14419. basic_machine=c90-cray
  14420. os=-unicos
  14421. ;;
  14422. + cegcc)
  14423. + basic_machine=arm-unknown
  14424. + os=-cegcc
  14425. + ;;
  14426. convex-c1)
  14427. basic_machine=c1-convex
  14428. os=-bsd
  14429. @@ -475,8 +510,8 @@
  14430. basic_machine=craynv-cray
  14431. os=-unicosmp
  14432. ;;
  14433. - cr16c)
  14434. - basic_machine=cr16c-unknown
  14435. + cr16)
  14436. + basic_machine=cr16-unknown
  14437. os=-elf
  14438. ;;
  14439. crds | unos)
  14440. @@ -514,6 +549,10 @@
  14441. basic_machine=m88k-motorola
  14442. os=-sysv3
  14443. ;;
  14444. + dicos)
  14445. + basic_machine=i686-pc
  14446. + os=-dicos
  14447. + ;;
  14448. djgpp)
  14449. basic_machine=i586-pc
  14450. os=-msdosdjgpp
  14451. @@ -668,6 +707,14 @@
  14452. basic_machine=m68k-isi
  14453. os=-sysv
  14454. ;;
  14455. + m68knommu)
  14456. + basic_machine=m68k-unknown
  14457. + os=-linux
  14458. + ;;
  14459. + m68knommu-*)
  14460. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  14461. + os=-linux
  14462. + ;;
  14463. m88k-omron*)
  14464. basic_machine=m88k-omron
  14465. ;;
  14466. @@ -683,6 +730,10 @@
  14467. basic_machine=i386-pc
  14468. os=-mingw32
  14469. ;;
  14470. + mingw32ce)
  14471. + basic_machine=arm-unknown
  14472. + os=-mingw32ce
  14473. + ;;
  14474. miniframe)
  14475. basic_machine=m68000-convergent
  14476. ;;
  14477. @@ -809,6 +860,14 @@
  14478. basic_machine=i860-intel
  14479. os=-osf
  14480. ;;
  14481. + parisc)
  14482. + basic_machine=hppa-unknown
  14483. + os=-linux
  14484. + ;;
  14485. + parisc-*)
  14486. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  14487. + os=-linux
  14488. + ;;
  14489. pbd)
  14490. basic_machine=sparc-tti
  14491. ;;
  14492. @@ -818,6 +877,12 @@
  14493. pc532 | pc532-*)
  14494. basic_machine=ns32k-pc532
  14495. ;;
  14496. + pc98)
  14497. + basic_machine=i386-pc
  14498. + ;;
  14499. + pc98-*)
  14500. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  14501. + ;;
  14502. pentium | p5 | k5 | k6 | nexgen | viac3)
  14503. basic_machine=i586-pc
  14504. ;;
  14505. @@ -904,6 +969,10 @@
  14506. sb1el)
  14507. basic_machine=mipsisa64sb1el-unknown
  14508. ;;
  14509. + sde)
  14510. + basic_machine=mipsisa32-sde
  14511. + os=-elf
  14512. + ;;
  14513. sei)
  14514. basic_machine=mips-sei
  14515. os=-seiux
  14516. @@ -915,6 +984,9 @@
  14517. basic_machine=sh-hitachi
  14518. os=-hms
  14519. ;;
  14520. + sh5el)
  14521. + basic_machine=sh5le-unknown
  14522. + ;;
  14523. sh64)
  14524. basic_machine=sh64-unknown
  14525. ;;
  14526. @@ -1004,6 +1076,10 @@
  14527. basic_machine=tic6x-unknown
  14528. os=-coff
  14529. ;;
  14530. + tile*)
  14531. + basic_machine=tile-unknown
  14532. + os=-linux-gnu
  14533. + ;;
  14534. tx39)
  14535. basic_machine=mipstx39-unknown
  14536. ;;
  14537. @@ -1079,6 +1155,10 @@
  14538. basic_machine=z8k-unknown
  14539. os=-sim
  14540. ;;
  14541. + z80-*-coff)
  14542. + basic_machine=z80-unknown
  14543. + os=-sim
  14544. + ;;
  14545. none)
  14546. basic_machine=none-none
  14547. os=-none
  14548. @@ -1117,10 +1197,10 @@
  14549. we32k)
  14550. basic_machine=we32k-att
  14551. ;;
  14552. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  14553. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  14554. basic_machine=sh-unknown
  14555. ;;
  14556. - sparc | sparcv8 | sparcv9 | sparcv9b)
  14557. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  14558. basic_machine=sparc-sun
  14559. ;;
  14560. cydra)
  14561. @@ -1187,18 +1267,20 @@
  14562. # Each alternative MUST END IN A *, to match a version number.
  14563. # -sysv* is not here because it comes later, after sysvr4.
  14564. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  14565. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  14566. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  14567. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  14568. + | -kopensolaris* \
  14569. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  14570. - | -aos* \
  14571. + | -aos* | -aros* \
  14572. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  14573. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  14574. - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  14575. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  14576. + | -openbsd* | -solidbsd* \
  14577. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  14578. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  14579. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  14580. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  14581. - | -chorusos* | -chorusrdb* \
  14582. + | -chorusos* | -chorusrdb* | -cegcc* \
  14583. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  14584. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  14585. | -uxpv* | -beos* | -mpeix* | -udk* \
  14586. @@ -1208,7 +1290,7 @@
  14587. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  14588. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  14589. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  14590. - | -skyos* | -haiku* | -rdos*)
  14591. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  14592. # Remember, each alternative MUST END IN *, to match a version number.
  14593. ;;
  14594. -qnx*)
  14595. @@ -1338,6 +1420,9 @@
  14596. -zvmoe)
  14597. os=-zvmoe
  14598. ;;
  14599. + -dicos*)
  14600. + os=-dicos
  14601. + ;;
  14602. -none)
  14603. ;;
  14604. *)
  14605. @@ -1360,6 +1445,12 @@
  14606. # system, and we'll never get to this point.
  14607. case $basic_machine in
  14608. + score-*)
  14609. + os=-elf
  14610. + ;;
  14611. + spu-*)
  14612. + os=-elf
  14613. + ;;
  14614. *-acorn)
  14615. os=-riscix1.2
  14616. ;;
  14617. @@ -1369,9 +1460,9 @@
  14618. arm*-semi)
  14619. os=-aout
  14620. ;;
  14621. - c4x-* | tic4x-*)
  14622. - os=-coff
  14623. - ;;
  14624. + c4x-* | tic4x-*)
  14625. + os=-coff
  14626. + ;;
  14627. # This must come before the *-dec entry.
  14628. pdp10-*)
  14629. os=-tops20
  14630. @@ -1397,6 +1488,9 @@
  14631. m68*-cisco)
  14632. os=-aout
  14633. ;;
  14634. + mep-*)
  14635. + os=-elf
  14636. + ;;
  14637. mips*-cisco)
  14638. os=-elf
  14639. ;;
  14640. @@ -1526,7 +1620,7 @@
  14641. -sunos*)
  14642. vendor=sun
  14643. ;;
  14644. - -aix*)
  14645. + -cnk*|-aix*)
  14646. vendor=ibm
  14647. ;;
  14648. -beos*)
  14649. diff -Nur libevent-1.3.orig/configure libevent-1.3/configure
  14650. --- libevent-1.3.orig/configure 2007-02-16 01:52:05.000000000 +0100
  14651. +++ libevent-1.3/configure 2011-02-17 17:08:16.343670339 +0100
  14652. @@ -1,56 +1,83 @@
  14653. #! /bin/sh
  14654. # Guess values for system-dependent variables and create Makefiles.
  14655. -# Generated by GNU Autoconf 2.60.
  14656. +# Generated by GNU Autoconf 2.65.
  14657. +#
  14658. #
  14659. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  14660. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  14661. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  14662. +# Inc.
  14663. +#
  14664. +#
  14665. # This configure script is free software; the Free Software Foundation
  14666. # gives unlimited permission to copy, distribute and modify it.
  14667. -## --------------------- ##
  14668. -## M4sh Initialization. ##
  14669. -## --------------------- ##
  14670. +## -------------------- ##
  14671. +## M4sh Initialization. ##
  14672. +## -------------------- ##
  14673. -# Be Bourne compatible
  14674. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14675. +# Be more Bourne compatible
  14676. +DUALCASE=1; export DUALCASE # for MKS sh
  14677. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14678. emulate sh
  14679. NULLCMD=:
  14680. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  14681. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14682. # is contrary to our usage. Disable this feature.
  14683. alias -g '${1+"$@"}'='"$@"'
  14684. setopt NO_GLOB_SUBST
  14685. else
  14686. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  14687. + case `(set -o) 2>/dev/null` in #(
  14688. + *posix*) :
  14689. + set -o posix ;; #(
  14690. + *) :
  14691. + ;;
  14692. +esac
  14693. fi
  14694. -BIN_SH=xpg4; export BIN_SH # for Tru64
  14695. -DUALCASE=1; export DUALCASE # for MKS sh
  14696. -
  14697. -# PATH needs CR
  14698. -# Avoid depending upon Character Ranges.
  14699. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14700. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14701. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14702. -as_cr_digits='0123456789'
  14703. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  14704. -# The user is always right.
  14705. -if test "${PATH_SEPARATOR+set}" != set; then
  14706. - echo "#! /bin/sh" >conf$$.sh
  14707. - echo "exit 0" >>conf$$.sh
  14708. - chmod +x conf$$.sh
  14709. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  14710. - PATH_SEPARATOR=';'
  14711. - else
  14712. - PATH_SEPARATOR=:
  14713. +as_nl='
  14714. +'
  14715. +export as_nl
  14716. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  14717. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14718. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14719. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14720. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  14721. +# but without wasting forks for bash or zsh.
  14722. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  14723. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14724. + as_echo='print -r --'
  14725. + as_echo_n='print -rn --'
  14726. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14727. + as_echo='printf %s\n'
  14728. + as_echo_n='printf %s'
  14729. +else
  14730. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14731. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14732. + as_echo_n='/usr/ucb/echo -n'
  14733. + else
  14734. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14735. + as_echo_n_body='eval
  14736. + arg=$1;
  14737. + case $arg in #(
  14738. + *"$as_nl"*)
  14739. + expr "X$arg" : "X\\(.*\\)$as_nl";
  14740. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14741. + esac;
  14742. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14743. + '
  14744. + export as_echo_n_body
  14745. + as_echo_n='sh -c $as_echo_n_body as_echo'
  14746. fi
  14747. - rm -f conf$$.sh
  14748. + export as_echo_body
  14749. + as_echo='sh -c $as_echo_body as_echo'
  14750. fi
  14751. -# Support unset when possible.
  14752. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14753. - as_unset=unset
  14754. -else
  14755. - as_unset=false
  14756. +# The user is always right.
  14757. +if test "${PATH_SEPARATOR+set}" != set; then
  14758. + PATH_SEPARATOR=:
  14759. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14760. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14761. + PATH_SEPARATOR=';'
  14762. + }
  14763. fi
  14764. @@ -59,20 +86,18 @@
  14765. # there to prevent editors from complaining about space-tab.
  14766. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14767. # splitting by setting IFS to empty value.)
  14768. -as_nl='
  14769. -'
  14770. IFS=" "" $as_nl"
  14771. # Find who we are. Look in the path if we contain no directory separator.
  14772. -case $0 in
  14773. +case $0 in #((
  14774. *[\\/]* ) as_myself=$0 ;;
  14775. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14776. for as_dir in $PATH
  14777. do
  14778. IFS=$as_save_IFS
  14779. test -z "$as_dir" && as_dir=.
  14780. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14781. -done
  14782. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14783. + done
  14784. IFS=$as_save_IFS
  14785. ;;
  14786. @@ -83,352 +108,321 @@
  14787. as_myself=$0
  14788. fi
  14789. if test ! -f "$as_myself"; then
  14790. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14791. - { (exit 1); exit 1; }
  14792. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14793. + exit 1
  14794. fi
  14795. -# Work around bugs in pre-3.0 UWIN ksh.
  14796. -for as_var in ENV MAIL MAILPATH
  14797. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14798. +# Unset variables that we do not need and which cause bugs (e.g. in
  14799. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14800. +# suppresses any "Segmentation fault" message there. '((' could
  14801. +# trigger a bug in pdksh 5.2.14.
  14802. +for as_var in BASH_ENV ENV MAIL MAILPATH
  14803. +do eval test x\${$as_var+set} = xset \
  14804. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14805. done
  14806. PS1='$ '
  14807. PS2='> '
  14808. PS4='+ '
  14809. # NLS nuisances.
  14810. -for as_var in \
  14811. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  14812. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  14813. - LC_TELEPHONE LC_TIME
  14814. -do
  14815. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  14816. - eval $as_var=C; export $as_var
  14817. - else
  14818. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14819. - fi
  14820. -done
  14821. -
  14822. -# Required to use basename.
  14823. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  14824. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14825. - as_expr=expr
  14826. -else
  14827. - as_expr=false
  14828. -fi
  14829. -
  14830. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14831. - as_basename=basename
  14832. -else
  14833. - as_basename=false
  14834. -fi
  14835. -
  14836. -
  14837. -# Name of the executable.
  14838. -as_me=`$as_basename -- "$0" ||
  14839. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14840. - X"$0" : 'X\(//\)$' \| \
  14841. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14842. -echo X/"$0" |
  14843. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  14844. - s//\1/
  14845. - q
  14846. - }
  14847. - /^X\/\(\/\/\)$/{
  14848. - s//\1/
  14849. - q
  14850. - }
  14851. - /^X\/\(\/\).*/{
  14852. - s//\1/
  14853. - q
  14854. - }
  14855. - s/.*/./; q'`
  14856. +LC_ALL=C
  14857. +export LC_ALL
  14858. +LANGUAGE=C
  14859. +export LANGUAGE
  14860. # CDPATH.
  14861. -$as_unset CDPATH
  14862. -
  14863. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14864. if test "x$CONFIG_SHELL" = x; then
  14865. - if (eval ":") 2>/dev/null; then
  14866. - as_have_required=yes
  14867. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  14868. + emulate sh
  14869. + NULLCMD=:
  14870. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  14871. + # is contrary to our usage. Disable this feature.
  14872. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  14873. + setopt NO_GLOB_SUBST
  14874. else
  14875. - as_have_required=no
  14876. + case \`(set -o) 2>/dev/null\` in #(
  14877. + *posix*) :
  14878. + set -o posix ;; #(
  14879. + *) :
  14880. + ;;
  14881. +esac
  14882. fi
  14883. -
  14884. - if test $as_have_required = yes && (eval ":
  14885. -(as_func_return () {
  14886. - (exit \$1)
  14887. -}
  14888. -as_func_success () {
  14889. - as_func_return 0
  14890. -}
  14891. -as_func_failure () {
  14892. - as_func_return 1
  14893. -}
  14894. -as_func_ret_success () {
  14895. - return 0
  14896. -}
  14897. -as_func_ret_failure () {
  14898. - return 1
  14899. -}
  14900. +"
  14901. + as_required="as_fn_return () { (exit \$1); }
  14902. +as_fn_success () { as_fn_return 0; }
  14903. +as_fn_failure () { as_fn_return 1; }
  14904. +as_fn_ret_success () { return 0; }
  14905. +as_fn_ret_failure () { return 1; }
  14906. exitcode=0
  14907. -if as_func_success; then
  14908. - :
  14909. -else
  14910. - exitcode=1
  14911. - echo as_func_success failed.
  14912. -fi
  14913. -
  14914. -if as_func_failure; then
  14915. - exitcode=1
  14916. - echo as_func_failure succeeded.
  14917. -fi
  14918. -
  14919. -if as_func_ret_success; then
  14920. - :
  14921. -else
  14922. - exitcode=1
  14923. - echo as_func_ret_success failed.
  14924. -fi
  14925. -
  14926. -if as_func_ret_failure; then
  14927. - exitcode=1
  14928. - echo as_func_ret_failure succeeded.
  14929. -fi
  14930. -
  14931. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  14932. - :
  14933. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  14934. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  14935. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  14936. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  14937. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  14938. +
  14939. +else
  14940. + exitcode=1; echo positional parameters were not saved.
  14941. +fi
  14942. +test x\$exitcode = x0 || exit 1"
  14943. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  14944. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  14945. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  14946. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  14947. +test \$(( 1 + 1 )) = 2 || exit 1"
  14948. + if (eval "$as_required") 2>/dev/null; then :
  14949. + as_have_required=yes
  14950. else
  14951. - exitcode=1
  14952. - echo positional parameters were not saved.
  14953. + as_have_required=no
  14954. fi
  14955. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  14956. -test \$exitcode = 0) || { (exit 1); exit 1; }
  14957. -
  14958. -(
  14959. - as_lineno_1=\$LINENO
  14960. - as_lineno_2=\$LINENO
  14961. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  14962. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  14963. -") 2> /dev/null; then
  14964. - :
  14965. else
  14966. - as_candidate_shells=
  14967. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14968. -for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14969. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14970. +as_found=false
  14971. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14972. do
  14973. IFS=$as_save_IFS
  14974. test -z "$as_dir" && as_dir=.
  14975. - case $as_dir in
  14976. + as_found=:
  14977. + case $as_dir in #(
  14978. /*)
  14979. for as_base in sh bash ksh sh5; do
  14980. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  14981. + # Try only shells that exist, to save several forks.
  14982. + as_shell=$as_dir/$as_base
  14983. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  14984. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14985. + CONFIG_SHELL=$as_shell as_have_required=yes
  14986. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14987. + break 2
  14988. +fi
  14989. +fi
  14990. done;;
  14991. esac
  14992. + as_found=false
  14993. done
  14994. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  14995. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  14996. + CONFIG_SHELL=$SHELL as_have_required=yes
  14997. +fi; }
  14998. IFS=$as_save_IFS
  14999. - for as_shell in $as_candidate_shells $SHELL; do
  15000. - # Try only shells that exist, to save several forks.
  15001. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  15002. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  15003. -# Be Bourne compatible
  15004. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15005. - emulate sh
  15006. - NULLCMD=:
  15007. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15008. - # is contrary to our usage. Disable this feature.
  15009. - alias -g '${1+"$@"}'='"$@"'
  15010. - setopt NO_GLOB_SUBST
  15011. -else
  15012. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  15013. -fi
  15014. -BIN_SH=xpg4; export BIN_SH # for Tru64
  15015. -DUALCASE=1; export DUALCASE # for MKS sh
  15016. -
  15017. -:
  15018. -_ASEOF
  15019. -}; then
  15020. - CONFIG_SHELL=$as_shell
  15021. - as_have_required=yes
  15022. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  15023. -# Be Bourne compatible
  15024. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15025. - emulate sh
  15026. - NULLCMD=:
  15027. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15028. - # is contrary to our usage. Disable this feature.
  15029. - alias -g '${1+"$@"}'='"$@"'
  15030. - setopt NO_GLOB_SUBST
  15031. -else
  15032. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  15033. -fi
  15034. -BIN_SH=xpg4; export BIN_SH # for Tru64
  15035. -DUALCASE=1; export DUALCASE # for MKS sh
  15036. -
  15037. -:
  15038. -(as_func_return () {
  15039. - (exit $1)
  15040. -}
  15041. -as_func_success () {
  15042. - as_func_return 0
  15043. -}
  15044. -as_func_failure () {
  15045. - as_func_return 1
  15046. -}
  15047. -as_func_ret_success () {
  15048. - return 0
  15049. -}
  15050. -as_func_ret_failure () {
  15051. - return 1
  15052. -}
  15053. -
  15054. -exitcode=0
  15055. -if as_func_success; then
  15056. - :
  15057. -else
  15058. - exitcode=1
  15059. - echo as_func_success failed.
  15060. -fi
  15061. -
  15062. -if as_func_failure; then
  15063. - exitcode=1
  15064. - echo as_func_failure succeeded.
  15065. -fi
  15066. -
  15067. -if as_func_ret_success; then
  15068. - :
  15069. -else
  15070. - exitcode=1
  15071. - echo as_func_ret_success failed.
  15072. -fi
  15073. -
  15074. -if as_func_ret_failure; then
  15075. - exitcode=1
  15076. - echo as_func_ret_failure succeeded.
  15077. -fi
  15078. -
  15079. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  15080. - :
  15081. -else
  15082. - exitcode=1
  15083. - echo positional parameters were not saved.
  15084. + if test "x$CONFIG_SHELL" != x; then :
  15085. + # We cannot yet assume a decent shell, so we have to provide a
  15086. + # neutralization value for shells without unset; and this also
  15087. + # works around shells that cannot unset nonexistent variables.
  15088. + BASH_ENV=/dev/null
  15089. + ENV=/dev/null
  15090. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  15091. + export CONFIG_SHELL
  15092. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  15093. fi
  15094. -test $exitcode = 0) || { (exit 1); exit 1; }
  15095. -
  15096. -(
  15097. - as_lineno_1=$LINENO
  15098. - as_lineno_2=$LINENO
  15099. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15100. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  15101. -
  15102. -_ASEOF
  15103. -}; then
  15104. - break
  15105. + if test x$as_have_required = xno; then :
  15106. + $as_echo "$0: This script requires a shell more modern than all"
  15107. + $as_echo "$0: the shells that I found on your system."
  15108. + if test x${ZSH_VERSION+set} = xset ; then
  15109. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  15110. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  15111. + else
  15112. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  15113. +$0: including any error possibly output before this
  15114. +$0: message. Then install a modern shell, or manually run
  15115. +$0: the script under such a shell if you do have one."
  15116. + fi
  15117. + exit 1
  15118. fi
  15119. -
  15120. fi
  15121. -
  15122. - done
  15123. -
  15124. - if test "x$CONFIG_SHELL" != x; then
  15125. - for as_var in BASH_ENV ENV
  15126. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15127. - done
  15128. - export CONFIG_SHELL
  15129. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  15130. fi
  15131. +SHELL=${CONFIG_SHELL-/bin/sh}
  15132. +export SHELL
  15133. +# Unset more variables known to interfere with behavior of common tools.
  15134. +CLICOLOR_FORCE= GREP_OPTIONS=
  15135. +unset CLICOLOR_FORCE GREP_OPTIONS
  15136. +## --------------------- ##
  15137. +## M4sh Shell Functions. ##
  15138. +## --------------------- ##
  15139. +# as_fn_unset VAR
  15140. +# ---------------
  15141. +# Portably unset VAR.
  15142. +as_fn_unset ()
  15143. +{
  15144. + { eval $1=; unset $1;}
  15145. +}
  15146. +as_unset=as_fn_unset
  15147. +
  15148. +# as_fn_set_status STATUS
  15149. +# -----------------------
  15150. +# Set $? to STATUS, without forking.
  15151. +as_fn_set_status ()
  15152. +{
  15153. + return $1
  15154. +} # as_fn_set_status
  15155. +
  15156. +# as_fn_exit STATUS
  15157. +# -----------------
  15158. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15159. +as_fn_exit ()
  15160. +{
  15161. + set +e
  15162. + as_fn_set_status $1
  15163. + exit $1
  15164. +} # as_fn_exit
  15165. +
  15166. +# as_fn_mkdir_p
  15167. +# -------------
  15168. +# Create "$as_dir" as a directory, including parents if necessary.
  15169. +as_fn_mkdir_p ()
  15170. +{
  15171. - if test $as_have_required = no; then
  15172. - echo This script requires a shell more modern than all the
  15173. - echo shells that I found on your system. Please install a
  15174. - echo modern shell, or manually run the script under such a
  15175. - echo shell if you do have one.
  15176. - { (exit 1); exit 1; }
  15177. -fi
  15178. -
  15179. + case $as_dir in #(
  15180. + -*) as_dir=./$as_dir;;
  15181. + esac
  15182. + test -d "$as_dir" || eval $as_mkdir_p || {
  15183. + as_dirs=
  15184. + while :; do
  15185. + case $as_dir in #(
  15186. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15187. + *) as_qdir=$as_dir;;
  15188. + esac
  15189. + as_dirs="'$as_qdir' $as_dirs"
  15190. + as_dir=`$as_dirname -- "$as_dir" ||
  15191. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15192. + X"$as_dir" : 'X\(//\)[^/]' \| \
  15193. + X"$as_dir" : 'X\(//\)$' \| \
  15194. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15195. +$as_echo X"$as_dir" |
  15196. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15197. + s//\1/
  15198. + q
  15199. + }
  15200. + /^X\(\/\/\)[^/].*/{
  15201. + s//\1/
  15202. + q
  15203. + }
  15204. + /^X\(\/\/\)$/{
  15205. + s//\1/
  15206. + q
  15207. + }
  15208. + /^X\(\/\).*/{
  15209. + s//\1/
  15210. + q
  15211. + }
  15212. + s/.*/./; q'`
  15213. + test -d "$as_dir" && break
  15214. + done
  15215. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  15216. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  15217. -fi
  15218. -fi
  15219. +} # as_fn_mkdir_p
  15220. +# as_fn_append VAR VALUE
  15221. +# ----------------------
  15222. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  15223. +# advantage of any shell optimizations that allow amortized linear growth over
  15224. +# repeated appends, instead of the typical quadratic growth present in naive
  15225. +# implementations.
  15226. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15227. + eval 'as_fn_append ()
  15228. + {
  15229. + eval $1+=\$2
  15230. + }'
  15231. +else
  15232. + as_fn_append ()
  15233. + {
  15234. + eval $1=\$$1\$2
  15235. + }
  15236. +fi # as_fn_append
  15237. +# as_fn_arith ARG...
  15238. +# ------------------
  15239. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  15240. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  15241. +# must be portable across $(()) and expr.
  15242. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15243. + eval 'as_fn_arith ()
  15244. + {
  15245. + as_val=$(( $* ))
  15246. + }'
  15247. +else
  15248. + as_fn_arith ()
  15249. + {
  15250. + as_val=`expr "$@" || test $? -eq 1`
  15251. + }
  15252. +fi # as_fn_arith
  15253. -(eval "as_func_return () {
  15254. - (exit \$1)
  15255. -}
  15256. -as_func_success () {
  15257. - as_func_return 0
  15258. -}
  15259. -as_func_failure () {
  15260. - as_func_return 1
  15261. -}
  15262. -as_func_ret_success () {
  15263. - return 0
  15264. -}
  15265. -as_func_ret_failure () {
  15266. - return 1
  15267. -}
  15268. +# as_fn_error ERROR [LINENO LOG_FD]
  15269. +# ---------------------------------
  15270. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15271. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15272. +# script with status $?, using 1 if that was 0.
  15273. +as_fn_error ()
  15274. +{
  15275. + as_status=$?; test $as_status -eq 0 && as_status=1
  15276. + if test "$3"; then
  15277. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15278. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  15279. + fi
  15280. + $as_echo "$as_me: error: $1" >&2
  15281. + as_fn_exit $as_status
  15282. +} # as_fn_error
  15283. -exitcode=0
  15284. -if as_func_success; then
  15285. - :
  15286. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  15287. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15288. + as_expr=expr
  15289. else
  15290. - exitcode=1
  15291. - echo as_func_success failed.
  15292. -fi
  15293. -
  15294. -if as_func_failure; then
  15295. - exitcode=1
  15296. - echo as_func_failure succeeded.
  15297. + as_expr=false
  15298. fi
  15299. -if as_func_ret_success; then
  15300. - :
  15301. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15302. + as_basename=basename
  15303. else
  15304. - exitcode=1
  15305. - echo as_func_ret_success failed.
  15306. -fi
  15307. -
  15308. -if as_func_ret_failure; then
  15309. - exitcode=1
  15310. - echo as_func_ret_failure succeeded.
  15311. + as_basename=false
  15312. fi
  15313. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  15314. - :
  15315. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15316. + as_dirname=dirname
  15317. else
  15318. - exitcode=1
  15319. - echo positional parameters were not saved.
  15320. + as_dirname=false
  15321. fi
  15322. -test \$exitcode = 0") || {
  15323. - echo No shell found that supports shell functions.
  15324. - echo Please tell autoconf@gnu.org about your system,
  15325. - echo including any error possibly output before this
  15326. - echo message
  15327. -}
  15328. +as_me=`$as_basename -- "$0" ||
  15329. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15330. + X"$0" : 'X\(//\)$' \| \
  15331. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15332. +$as_echo X/"$0" |
  15333. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  15334. + s//\1/
  15335. + q
  15336. + }
  15337. + /^X\/\(\/\/\)$/{
  15338. + s//\1/
  15339. + q
  15340. + }
  15341. + /^X\/\(\/\).*/{
  15342. + s//\1/
  15343. + q
  15344. + }
  15345. + s/.*/./; q'`
  15346. +# Avoid depending upon Character Ranges.
  15347. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15348. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15349. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15350. +as_cr_digits='0123456789'
  15351. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  15352. - as_lineno_1=$LINENO
  15353. - as_lineno_2=$LINENO
  15354. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15355. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15356. -
  15357. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15358. - # uniformly replaced by the line number. The first 'sed' inserts a
  15359. - # line-number line after each line using $LINENO; the second 'sed'
  15360. - # does the real work. The second script uses 'N' to pair each
  15361. - # line-number line with the line containing $LINENO, and appends
  15362. - # trailing '-' during substitution so that $LINENO is not a special
  15363. - # case at line end.
  15364. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15365. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  15366. - # E. McMahon (1931-1989) for sed's syntax. :-)
  15367. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  15368. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  15369. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  15370. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  15371. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  15372. sed -n '
  15373. p
  15374. /[$]LINENO/=
  15375. @@ -445,8 +439,7 @@
  15376. s/-\n.*//
  15377. ' >$as_me.lineno &&
  15378. chmod +x "$as_me.lineno" ||
  15379. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  15380. - { (exit 1); exit 1; }; }
  15381. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  15382. # Don't try to exec as it changes $[0], causing all sort of problems
  15383. # (the dirname of $[0] is not the place where we might find the
  15384. @@ -456,49 +449,40 @@
  15385. exit
  15386. }
  15387. -
  15388. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15389. - as_dirname=dirname
  15390. -else
  15391. - as_dirname=false
  15392. -fi
  15393. -
  15394. ECHO_C= ECHO_N= ECHO_T=
  15395. -case `echo -n x` in
  15396. +case `echo -n x` in #(((((
  15397. -n*)
  15398. - case `echo 'x\c'` in
  15399. + case `echo 'xy\c'` in
  15400. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15401. - *) ECHO_C='\c';;
  15402. + xy) ECHO_C='\c';;
  15403. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15404. + ECHO_T=' ';;
  15405. esac;;
  15406. *)
  15407. ECHO_N='-n';;
  15408. esac
  15409. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  15410. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15411. - as_expr=expr
  15412. -else
  15413. - as_expr=false
  15414. -fi
  15415. -
  15416. rm -f conf$$ conf$$.exe conf$$.file
  15417. if test -d conf$$.dir; then
  15418. rm -f conf$$.dir/conf$$.file
  15419. else
  15420. rm -f conf$$.dir
  15421. - mkdir conf$$.dir
  15422. + mkdir conf$$.dir 2>/dev/null
  15423. fi
  15424. -echo >conf$$.file
  15425. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  15426. - as_ln_s='ln -s'
  15427. - # ... but there are two gotchas:
  15428. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15429. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15430. - # In both cases, we have to default to `cp -p'.
  15431. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15432. +if (echo >conf$$.file) 2>/dev/null; then
  15433. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  15434. + as_ln_s='ln -s'
  15435. + # ... but there are two gotchas:
  15436. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15437. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15438. + # In both cases, we have to default to `cp -p'.
  15439. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15440. + as_ln_s='cp -p'
  15441. + elif ln conf$$.file conf$$ 2>/dev/null; then
  15442. + as_ln_s=ln
  15443. + else
  15444. as_ln_s='cp -p'
  15445. -elif ln conf$$.file conf$$ 2>/dev/null; then
  15446. - as_ln_s=ln
  15447. + fi
  15448. else
  15449. as_ln_s='cp -p'
  15450. fi
  15451. @@ -506,25 +490,34 @@
  15452. rmdir conf$$.dir 2>/dev/null
  15453. if mkdir -p . 2>/dev/null; then
  15454. - as_mkdir_p=:
  15455. + as_mkdir_p='mkdir -p "$as_dir"'
  15456. else
  15457. test -d ./-p && rmdir ./-p
  15458. as_mkdir_p=false
  15459. fi
  15460. -# Find out whether ``test -x'' works. Don't use a zero-byte file, as
  15461. -# systems may use methods other than mode bits to determine executability.
  15462. -cat >conf$$.file <<_ASEOF
  15463. -#! /bin/sh
  15464. -exit 0
  15465. -_ASEOF
  15466. -chmod +x conf$$.file
  15467. -if test -x conf$$.file >/dev/null 2>&1; then
  15468. - as_executable_p="test -x"
  15469. +if test -x / >/dev/null 2>&1; then
  15470. + as_test_x='test -x'
  15471. else
  15472. - as_executable_p=:
  15473. + if ls -dL / >/dev/null 2>&1; then
  15474. + as_ls_L_option=L
  15475. + else
  15476. + as_ls_L_option=
  15477. + fi
  15478. + as_test_x='
  15479. + eval sh -c '\''
  15480. + if test -d "$1"; then
  15481. + test -d "$1/.";
  15482. + else
  15483. + case $1 in #(
  15484. + -*)set "./$1";;
  15485. + esac;
  15486. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15487. + ???[sx]*):;;*)false;;esac;fi
  15488. + '\'' sh
  15489. + '
  15490. fi
  15491. -rm -f conf$$.file
  15492. +as_executable_p=$as_test_x
  15493. # Sed expression to map a string onto a valid CPP name.
  15494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15495. @@ -534,26 +527,25 @@
  15496. -
  15497. # Check that we are running under the correct shell.
  15498. SHELL=${CONFIG_SHELL-/bin/sh}
  15499. -case X$ECHO in
  15500. +case X$lt_ECHO in
  15501. X*--fallback-echo)
  15502. # Remove one level of quotation (which was required for Make).
  15503. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  15504. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  15505. ;;
  15506. esac
  15507. -echo=${ECHO-echo}
  15508. +ECHO=${lt_ECHO-echo}
  15509. if test "X$1" = X--no-reexec; then
  15510. # Discard the --no-reexec flag, and continue.
  15511. shift
  15512. elif test "X$1" = X--fallback-echo; then
  15513. # Avoid inline document here, it may be left over
  15514. :
  15515. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  15516. - # Yippee, $echo works!
  15517. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  15518. + # Yippee, $ECHO works!
  15519. :
  15520. else
  15521. # Restart under the correct shell.
  15522. @@ -563,9 +555,9 @@
  15523. if test "X$1" = X--fallback-echo; then
  15524. # used as fallback echo
  15525. shift
  15526. - cat <<EOF
  15527. + cat <<_LT_EOF
  15528. $*
  15529. -EOF
  15530. +_LT_EOF
  15531. exit 0
  15532. fi
  15533. @@ -573,122 +565,118 @@
  15534. # if CDPATH is set.
  15535. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15536. -if test -z "$ECHO"; then
  15537. -if test "X${echo_test_string+set}" != Xset; then
  15538. -# find a string as large as possible, as long as the shell can cope with it
  15539. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  15540. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  15541. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  15542. - echo_test_string=`eval $cmd` &&
  15543. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  15544. - then
  15545. - break
  15546. - fi
  15547. - done
  15548. -fi
  15549. +if test -z "$lt_ECHO"; then
  15550. + if test "X${echo_test_string+set}" != Xset; then
  15551. + # find a string as large as possible, as long as the shell can cope with it
  15552. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  15553. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  15554. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  15555. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  15556. + then
  15557. + break
  15558. + fi
  15559. + done
  15560. + fi
  15561. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  15562. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  15563. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15564. - :
  15565. -else
  15566. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  15567. - # backslashes. This makes it impossible to quote backslashes using
  15568. - # echo "$something" | sed 's/\\/\\\\/g'
  15569. - #
  15570. - # So, first we look for a working echo in the user's PATH.
  15571. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  15572. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  15573. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15574. + :
  15575. + else
  15576. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  15577. + # backslashes. This makes it impossible to quote backslashes using
  15578. + # echo "$something" | sed 's/\\/\\\\/g'
  15579. + #
  15580. + # So, first we look for a working echo in the user's PATH.
  15581. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15582. - for dir in $PATH /usr/ucb; do
  15583. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15584. + for dir in $PATH /usr/ucb; do
  15585. + IFS="$lt_save_ifs"
  15586. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  15587. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  15588. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  15589. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15590. + ECHO="$dir/echo"
  15591. + break
  15592. + fi
  15593. + done
  15594. IFS="$lt_save_ifs"
  15595. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  15596. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  15597. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  15598. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15599. - echo="$dir/echo"
  15600. - break
  15601. - fi
  15602. - done
  15603. - IFS="$lt_save_ifs"
  15604. - if test "X$echo" = Xecho; then
  15605. - # We didn't find a better echo, so look for alternatives.
  15606. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  15607. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  15608. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15609. - # This shell has a builtin print -r that does the trick.
  15610. - echo='print -r'
  15611. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  15612. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  15613. - # If we have ksh, try running configure again with it.
  15614. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15615. - export ORIGINAL_CONFIG_SHELL
  15616. - CONFIG_SHELL=/bin/ksh
  15617. - export CONFIG_SHELL
  15618. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  15619. - else
  15620. - # Try using printf.
  15621. - echo='printf %s\n'
  15622. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  15623. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  15624. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15625. - # Cool, printf works
  15626. - :
  15627. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15628. - test "X$echo_testing_string" = 'X\t' &&
  15629. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15630. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15631. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  15632. - export CONFIG_SHELL
  15633. - SHELL="$CONFIG_SHELL"
  15634. - export SHELL
  15635. - echo="$CONFIG_SHELL $0 --fallback-echo"
  15636. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15637. - test "X$echo_testing_string" = 'X\t' &&
  15638. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15639. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15640. - echo="$CONFIG_SHELL $0 --fallback-echo"
  15641. + if test "X$ECHO" = Xecho; then
  15642. + # We didn't find a better echo, so look for alternatives.
  15643. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  15644. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  15645. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15646. + # This shell has a builtin print -r that does the trick.
  15647. + ECHO='print -r'
  15648. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  15649. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  15650. + # If we have ksh, try running configure again with it.
  15651. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15652. + export ORIGINAL_CONFIG_SHELL
  15653. + CONFIG_SHELL=/bin/ksh
  15654. + export CONFIG_SHELL
  15655. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  15656. else
  15657. - # maybe with a smaller string...
  15658. - prev=:
  15659. + # Try using printf.
  15660. + ECHO='printf %s\n'
  15661. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  15662. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  15663. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15664. + # Cool, printf works
  15665. + :
  15666. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15667. + test "X$echo_testing_string" = 'X\t' &&
  15668. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15669. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15670. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  15671. + export CONFIG_SHELL
  15672. + SHELL="$CONFIG_SHELL"
  15673. + export SHELL
  15674. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  15675. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15676. + test "X$echo_testing_string" = 'X\t' &&
  15677. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15678. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15679. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  15680. + else
  15681. + # maybe with a smaller string...
  15682. + prev=:
  15683. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  15684. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  15685. - then
  15686. - break
  15687. - fi
  15688. - prev="$cmd"
  15689. - done
  15690. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  15691. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  15692. + then
  15693. + break
  15694. + fi
  15695. + prev="$cmd"
  15696. + done
  15697. - if test "$prev" != 'sed 50q "$0"'; then
  15698. - echo_test_string=`eval $prev`
  15699. - export echo_test_string
  15700. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  15701. - else
  15702. - # Oops. We lost completely, so just stick with echo.
  15703. - echo=echo
  15704. - fi
  15705. + if test "$prev" != 'sed 50q "$0"'; then
  15706. + echo_test_string=`eval $prev`
  15707. + export echo_test_string
  15708. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  15709. + else
  15710. + # Oops. We lost completely, so just stick with echo.
  15711. + ECHO=echo
  15712. + fi
  15713. + fi
  15714. fi
  15715. fi
  15716. fi
  15717. fi
  15718. -fi
  15719. # Copy echo and quote the copy suitably for passing to libtool from
  15720. # the Makefile, instead of quoting the original, which is used later.
  15721. -ECHO=$echo
  15722. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  15723. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  15724. +lt_ECHO=$ECHO
  15725. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  15726. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  15727. fi
  15728. -tagnames=${tagnames+${tagnames},}CXX
  15729. -
  15730. -tagnames=${tagnames+${tagnames},}F77
  15731. -
  15732. -exec 7<&0 </dev/null 6>&1
  15733. +test -n "$DJDIR" || exec 7<&0 </dev/null
  15734. +exec 6>&1
  15735. # Name of the host.
  15736. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  15737. @@ -706,7 +694,6 @@
  15738. subdirs=
  15739. MFLAGS=
  15740. MAKEFLAGS=
  15741. -SHELL=${CONFIG_SHELL-/bin/sh}
  15742. # Identity of this package.
  15743. PACKAGE_NAME=
  15744. @@ -714,172 +701,189 @@
  15745. PACKAGE_VERSION=
  15746. PACKAGE_STRING=
  15747. PACKAGE_BUGREPORT=
  15748. +PACKAGE_URL=
  15749. ac_unique_file="event.c"
  15750. # Factoring default headers for most tests.
  15751. ac_includes_default="\
  15752. #include <stdio.h>
  15753. -#if HAVE_SYS_TYPES_H
  15754. +#ifdef HAVE_SYS_TYPES_H
  15755. # include <sys/types.h>
  15756. #endif
  15757. -#if HAVE_SYS_STAT_H
  15758. +#ifdef HAVE_SYS_STAT_H
  15759. # include <sys/stat.h>
  15760. #endif
  15761. -#if STDC_HEADERS
  15762. +#ifdef STDC_HEADERS
  15763. # include <stdlib.h>
  15764. # include <stddef.h>
  15765. #else
  15766. -# if HAVE_STDLIB_H
  15767. +# ifdef HAVE_STDLIB_H
  15768. # include <stdlib.h>
  15769. # endif
  15770. #endif
  15771. -#if HAVE_STRING_H
  15772. -# if !STDC_HEADERS && HAVE_MEMORY_H
  15773. +#ifdef HAVE_STRING_H
  15774. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  15775. # include <memory.h>
  15776. # endif
  15777. # include <string.h>
  15778. #endif
  15779. -#if HAVE_STRINGS_H
  15780. +#ifdef HAVE_STRINGS_H
  15781. # include <strings.h>
  15782. #endif
  15783. -#if HAVE_INTTYPES_H
  15784. +#ifdef HAVE_INTTYPES_H
  15785. # include <inttypes.h>
  15786. #endif
  15787. -#if HAVE_STDINT_H
  15788. +#ifdef HAVE_STDINT_H
  15789. # include <stdint.h>
  15790. #endif
  15791. -#if HAVE_UNISTD_H
  15792. +#ifdef HAVE_UNISTD_H
  15793. # include <unistd.h>
  15794. #endif"
  15795. -ac_subst_vars='SHELL
  15796. -PATH_SEPARATOR
  15797. -PACKAGE_NAME
  15798. -PACKAGE_TARNAME
  15799. -PACKAGE_VERSION
  15800. -PACKAGE_STRING
  15801. -PACKAGE_BUGREPORT
  15802. -exec_prefix
  15803. -prefix
  15804. -program_transform_name
  15805. -bindir
  15806. -sbindir
  15807. -libexecdir
  15808. -datarootdir
  15809. -datadir
  15810. -sysconfdir
  15811. -sharedstatedir
  15812. -localstatedir
  15813. -includedir
  15814. -oldincludedir
  15815. -docdir
  15816. -infodir
  15817. -htmldir
  15818. -dvidir
  15819. -pdfdir
  15820. -psdir
  15821. -libdir
  15822. -localedir
  15823. -mandir
  15824. -DEFS
  15825. -ECHO_C
  15826. -ECHO_N
  15827. -ECHO_T
  15828. -LIBS
  15829. -build_alias
  15830. -host_alias
  15831. -target_alias
  15832. -INSTALL_PROGRAM
  15833. -INSTALL_SCRIPT
  15834. -INSTALL_DATA
  15835. -CYGPATH_W
  15836. -PACKAGE
  15837. -VERSION
  15838. -ACLOCAL
  15839. -AUTOCONF
  15840. -AUTOMAKE
  15841. -AUTOHEADER
  15842. -MAKEINFO
  15843. -install_sh
  15844. -STRIP
  15845. -INSTALL_STRIP_PROGRAM
  15846. -mkdir_p
  15847. -AWK
  15848. -SET_MAKE
  15849. -am__leading_dot
  15850. -AMTAR
  15851. -am__tar
  15852. -am__untar
  15853. -MAINTAINER_MODE_TRUE
  15854. -MAINTAINER_MODE_FALSE
  15855. -MAINT
  15856. -CC
  15857. -CFLAGS
  15858. -LDFLAGS
  15859. -CPPFLAGS
  15860. -ac_ct_CC
  15861. -EXEEXT
  15862. -OBJEXT
  15863. -DEPDIR
  15864. -am__include
  15865. -am__quote
  15866. -AMDEP_TRUE
  15867. -AMDEP_FALSE
  15868. -AMDEPBACKSLASH
  15869. -CCDEPMODE
  15870. -am__fastdepCC_TRUE
  15871. -am__fastdepCC_FALSE
  15872. -LN_S
  15873. -CPP
  15874. -GREP
  15875. -EGREP
  15876. -build
  15877. -build_cpu
  15878. -build_vendor
  15879. -build_os
  15880. -host
  15881. -host_cpu
  15882. -host_vendor
  15883. -host_os
  15884. -ECHO
  15885. -AR
  15886. +ac_subst_vars='am__EXEEXT_FALSE
  15887. +am__EXEEXT_TRUE
  15888. +LTLIBOBJS
  15889. +LIBOBJS
  15890. +BUILD_WIN32_FALSE
  15891. +BUILD_WIN32_TRUE
  15892. +LIBTOOL_DEPS
  15893. +OTOOL64
  15894. +OTOOL
  15895. +LIPO
  15896. +NMEDIT
  15897. +DSYMUTIL
  15898. +lt_ECHO
  15899. RANLIB
  15900. -CXX
  15901. -CXXFLAGS
  15902. -ac_ct_CXX
  15903. -CXXDEPMODE
  15904. -am__fastdepCXX_TRUE
  15905. -am__fastdepCXX_FALSE
  15906. -CXXCPP
  15907. -F77
  15908. -FFLAGS
  15909. -ac_ct_F77
  15910. +AR
  15911. +OBJDUMP
  15912. +NM
  15913. +ac_ct_DUMPBIN
  15914. +DUMPBIN
  15915. +LD
  15916. +FGREP
  15917. +SED
  15918. +host_os
  15919. +host_vendor
  15920. +host_cpu
  15921. +host
  15922. +build_os
  15923. +build_vendor
  15924. +build_cpu
  15925. +build
  15926. LIBTOOL
  15927. -LIBTOOL_DEPS
  15928. -BUILD_WIN32_TRUE
  15929. -BUILD_WIN32_FALSE
  15930. -LIBOBJS
  15931. -LTLIBOBJS'
  15932. +EGREP
  15933. +GREP
  15934. +CPP
  15935. +LN_S
  15936. +am__fastdepCC_FALSE
  15937. +am__fastdepCC_TRUE
  15938. +CCDEPMODE
  15939. +AMDEPBACKSLASH
  15940. +AMDEP_FALSE
  15941. +AMDEP_TRUE
  15942. +am__quote
  15943. +am__include
  15944. +DEPDIR
  15945. +OBJEXT
  15946. +EXEEXT
  15947. +ac_ct_CC
  15948. +CPPFLAGS
  15949. +LDFLAGS
  15950. +CFLAGS
  15951. +CC
  15952. +MAINT
  15953. +MAINTAINER_MODE_FALSE
  15954. +MAINTAINER_MODE_TRUE
  15955. +am__untar
  15956. +am__tar
  15957. +AMTAR
  15958. +am__leading_dot
  15959. +SET_MAKE
  15960. +AWK
  15961. +mkdir_p
  15962. +MKDIR_P
  15963. +INSTALL_STRIP_PROGRAM
  15964. +STRIP
  15965. +install_sh
  15966. +MAKEINFO
  15967. +AUTOHEADER
  15968. +AUTOMAKE
  15969. +AUTOCONF
  15970. +ACLOCAL
  15971. +VERSION
  15972. +PACKAGE
  15973. +CYGPATH_W
  15974. +am__isrc
  15975. +INSTALL_DATA
  15976. +INSTALL_SCRIPT
  15977. +INSTALL_PROGRAM
  15978. +target_alias
  15979. +host_alias
  15980. +build_alias
  15981. +LIBS
  15982. +ECHO_T
  15983. +ECHO_N
  15984. +ECHO_C
  15985. +DEFS
  15986. +mandir
  15987. +localedir
  15988. +libdir
  15989. +psdir
  15990. +pdfdir
  15991. +dvidir
  15992. +htmldir
  15993. +infodir
  15994. +docdir
  15995. +oldincludedir
  15996. +includedir
  15997. +localstatedir
  15998. +sharedstatedir
  15999. +sysconfdir
  16000. +datadir
  16001. +datarootdir
  16002. +libexecdir
  16003. +sbindir
  16004. +bindir
  16005. +program_transform_name
  16006. +prefix
  16007. +exec_prefix
  16008. +PACKAGE_URL
  16009. +PACKAGE_BUGREPORT
  16010. +PACKAGE_STRING
  16011. +PACKAGE_VERSION
  16012. +PACKAGE_TARNAME
  16013. +PACKAGE_NAME
  16014. +PATH_SEPARATOR
  16015. +SHELL'
  16016. ac_subst_files=''
  16017. +ac_user_opts='
  16018. +enable_option_checking
  16019. +enable_maintainer_mode
  16020. +enable_dependency_tracking
  16021. +enable_shared
  16022. +enable_static
  16023. +with_pic
  16024. +enable_fast_install
  16025. +with_gnu_ld
  16026. +enable_libtool_lock
  16027. +with_rtsig
  16028. +'
  16029. ac_precious_vars='build_alias
  16030. host_alias
  16031. target_alias
  16032. CC
  16033. CFLAGS
  16034. LDFLAGS
  16035. +LIBS
  16036. CPPFLAGS
  16037. -CPP
  16038. -CXX
  16039. -CXXFLAGS
  16040. -CCC
  16041. -CXXCPP
  16042. -F77
  16043. -FFLAGS'
  16044. +CPP'
  16045. # Initialize some variables set by options.
  16046. ac_init_help=
  16047. ac_init_version=false
  16048. +ac_unrecognized_opts=
  16049. +ac_unrecognized_sep=
  16050. # The variables have the same names as the options, with
  16051. # dashes changed to underlines.
  16052. cache_file=/dev/null
  16053. @@ -978,13 +982,20 @@
  16054. datarootdir=$ac_optarg ;;
  16055. -disable-* | --disable-*)
  16056. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  16057. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  16058. # Reject names that are not valid shell variable names.
  16059. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16060. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  16061. - { (exit 1); exit 1; }; }
  16062. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  16063. - eval enable_$ac_feature=no ;;
  16064. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16065. + as_fn_error "invalid feature name: $ac_useropt"
  16066. + ac_useropt_orig=$ac_useropt
  16067. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16068. + case $ac_user_opts in
  16069. + *"
  16070. +"enable_$ac_useropt"
  16071. +"*) ;;
  16072. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  16073. + ac_unrecognized_sep=', ';;
  16074. + esac
  16075. + eval enable_$ac_useropt=no ;;
  16076. -docdir | --docdir | --docdi | --doc | --do)
  16077. ac_prev=docdir ;;
  16078. @@ -997,13 +1008,20 @@
  16079. dvidir=$ac_optarg ;;
  16080. -enable-* | --enable-*)
  16081. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  16082. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  16083. # Reject names that are not valid shell variable names.
  16084. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16085. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  16086. - { (exit 1); exit 1; }; }
  16087. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  16088. - eval enable_$ac_feature=\$ac_optarg ;;
  16089. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16090. + as_fn_error "invalid feature name: $ac_useropt"
  16091. + ac_useropt_orig=$ac_useropt
  16092. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16093. + case $ac_user_opts in
  16094. + *"
  16095. +"enable_$ac_useropt"
  16096. +"*) ;;
  16097. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  16098. + ac_unrecognized_sep=', ';;
  16099. + esac
  16100. + eval enable_$ac_useropt=\$ac_optarg ;;
  16101. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  16102. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  16103. @@ -1194,22 +1212,36 @@
  16104. ac_init_version=: ;;
  16105. -with-* | --with-*)
  16106. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  16107. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  16108. # Reject names that are not valid shell variable names.
  16109. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16110. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  16111. - { (exit 1); exit 1; }; }
  16112. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  16113. - eval with_$ac_package=\$ac_optarg ;;
  16114. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16115. + as_fn_error "invalid package name: $ac_useropt"
  16116. + ac_useropt_orig=$ac_useropt
  16117. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16118. + case $ac_user_opts in
  16119. + *"
  16120. +"with_$ac_useropt"
  16121. +"*) ;;
  16122. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  16123. + ac_unrecognized_sep=', ';;
  16124. + esac
  16125. + eval with_$ac_useropt=\$ac_optarg ;;
  16126. -without-* | --without-*)
  16127. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  16128. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  16129. # Reject names that are not valid shell variable names.
  16130. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  16131. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  16132. - { (exit 1); exit 1; }; }
  16133. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  16134. - eval with_$ac_package=no ;;
  16135. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  16136. + as_fn_error "invalid package name: $ac_useropt"
  16137. + ac_useropt_orig=$ac_useropt
  16138. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  16139. + case $ac_user_opts in
  16140. + *"
  16141. +"with_$ac_useropt"
  16142. +"*) ;;
  16143. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  16144. + ac_unrecognized_sep=', ';;
  16145. + esac
  16146. + eval with_$ac_useropt=no ;;
  16147. --x)
  16148. # Obsolete; use --with-x.
  16149. @@ -1229,25 +1261,25 @@
  16150. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  16151. x_libraries=$ac_optarg ;;
  16152. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  16153. -Try \`$0 --help' for more information." >&2
  16154. - { (exit 1); exit 1; }; }
  16155. + -*) as_fn_error "unrecognized option: \`$ac_option'
  16156. +Try \`$0 --help' for more information."
  16157. ;;
  16158. *=*)
  16159. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  16160. # Reject names that are not valid shell variable names.
  16161. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  16162. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  16163. - { (exit 1); exit 1; }; }
  16164. + case $ac_envvar in #(
  16165. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  16166. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  16167. + esac
  16168. eval $ac_envvar=\$ac_optarg
  16169. export $ac_envvar ;;
  16170. *)
  16171. # FIXME: should be removed in autoconf 3.0.
  16172. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  16173. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  16174. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  16175. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  16176. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  16177. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  16178. ;;
  16179. @@ -1256,23 +1288,36 @@
  16180. if test -n "$ac_prev"; then
  16181. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  16182. - { echo "$as_me: error: missing argument to $ac_option" >&2
  16183. - { (exit 1); exit 1; }; }
  16184. + as_fn_error "missing argument to $ac_option"
  16185. +fi
  16186. +
  16187. +if test -n "$ac_unrecognized_opts"; then
  16188. + case $enable_option_checking in
  16189. + no) ;;
  16190. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  16191. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  16192. + esac
  16193. fi
  16194. -# Be sure to have absolute directory names.
  16195. +# Check all directory arguments for consistency.
  16196. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  16197. datadir sysconfdir sharedstatedir localstatedir includedir \
  16198. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  16199. libdir localedir mandir
  16200. do
  16201. eval ac_val=\$$ac_var
  16202. + # Remove trailing slashes.
  16203. + case $ac_val in
  16204. + */ )
  16205. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  16206. + eval $ac_var=\$ac_val;;
  16207. + esac
  16208. + # Be sure to have absolute directory names.
  16209. case $ac_val in
  16210. [\\/$]* | ?:[\\/]* ) continue;;
  16211. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  16212. esac
  16213. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  16214. - { (exit 1); exit 1; }; }
  16215. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  16216. done
  16217. # There might be people who depend on the old broken behavior: `$host'
  16218. @@ -1286,7 +1331,7 @@
  16219. if test "x$host_alias" != x; then
  16220. if test "x$build_alias" = x; then
  16221. cross_compiling=maybe
  16222. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16223. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16224. If a cross compiler is detected then cross compile mode will be used." >&2
  16225. elif test "x$build_alias" != "x$host_alias"; then
  16226. cross_compiling=yes
  16227. @@ -1302,23 +1347,21 @@
  16228. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  16229. ac_ls_di=`ls -di .` &&
  16230. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  16231. - { echo "$as_me: error: Working directory cannot be determined" >&2
  16232. - { (exit 1); exit 1; }; }
  16233. + as_fn_error "working directory cannot be determined"
  16234. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  16235. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  16236. - { (exit 1); exit 1; }; }
  16237. + as_fn_error "pwd does not report name of working directory"
  16238. # Find the source files, if location was not specified.
  16239. if test -z "$srcdir"; then
  16240. ac_srcdir_defaulted=yes
  16241. # Try the directory containing this script, then the parent directory.
  16242. - ac_confdir=`$as_dirname -- "$0" ||
  16243. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16244. - X"$0" : 'X\(//\)[^/]' \| \
  16245. - X"$0" : 'X\(//\)$' \| \
  16246. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16247. -echo X"$0" |
  16248. + ac_confdir=`$as_dirname -- "$as_myself" ||
  16249. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16250. + X"$as_myself" : 'X\(//\)[^/]' \| \
  16251. + X"$as_myself" : 'X\(//\)$' \| \
  16252. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  16253. +$as_echo X"$as_myself" |
  16254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16255. s//\1/
  16256. q
  16257. @@ -1345,13 +1388,11 @@
  16258. fi
  16259. if test ! -r "$srcdir/$ac_unique_file"; then
  16260. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  16261. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  16262. - { (exit 1); exit 1; }; }
  16263. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  16264. fi
  16265. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  16266. ac_abs_confdir=`(
  16267. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  16268. - { (exit 1); exit 1; }; }
  16269. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  16270. pwd)`
  16271. # When building in place, set srcdir=.
  16272. if test "$ac_abs_confdir" = "$ac_pwd"; then
  16273. @@ -1399,9 +1440,9 @@
  16274. Installation directories:
  16275. --prefix=PREFIX install architecture-independent files in PREFIX
  16276. - [$ac_default_prefix]
  16277. + [$ac_default_prefix]
  16278. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  16279. - [PREFIX]
  16280. + [PREFIX]
  16281. By default, \`make install' will install all the files in
  16282. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  16283. @@ -1411,25 +1452,25 @@
  16284. For better control, use the options below.
  16285. Fine tuning of the installation directories:
  16286. - --bindir=DIR user executables [EPREFIX/bin]
  16287. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  16288. - --libexecdir=DIR program executables [EPREFIX/libexec]
  16289. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  16290. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  16291. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  16292. - --libdir=DIR object code libraries [EPREFIX/lib]
  16293. - --includedir=DIR C header files [PREFIX/include]
  16294. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  16295. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  16296. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  16297. - --infodir=DIR info documentation [DATAROOTDIR/info]
  16298. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  16299. - --mandir=DIR man documentation [DATAROOTDIR/man]
  16300. - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  16301. - --htmldir=DIR html documentation [DOCDIR]
  16302. - --dvidir=DIR dvi documentation [DOCDIR]
  16303. - --pdfdir=DIR pdf documentation [DOCDIR]
  16304. - --psdir=DIR ps documentation [DOCDIR]
  16305. + --bindir=DIR user executables [EPREFIX/bin]
  16306. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  16307. + --libexecdir=DIR program executables [EPREFIX/libexec]
  16308. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  16309. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  16310. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  16311. + --libdir=DIR object code libraries [EPREFIX/lib]
  16312. + --includedir=DIR C header files [PREFIX/include]
  16313. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  16314. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  16315. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  16316. + --infodir=DIR info documentation [DATAROOTDIR/info]
  16317. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  16318. + --mandir=DIR man documentation [DATAROOTDIR/man]
  16319. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  16320. + --htmldir=DIR html documentation [DOCDIR]
  16321. + --dvidir=DIR dvi documentation [DOCDIR]
  16322. + --pdfdir=DIR pdf documentation [DOCDIR]
  16323. + --psdir=DIR ps documentation [DOCDIR]
  16324. _ACEOF
  16325. cat <<\_ACEOF
  16326. @@ -1450,6 +1491,7 @@
  16327. cat <<\_ACEOF
  16328. Optional Features:
  16329. + --disable-option-checking ignore unrecognized --enable/--with options
  16330. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  16331. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  16332. --enable-maintainer-mode enable make rules and dependencies not useful
  16333. @@ -1465,10 +1507,9 @@
  16334. Optional Packages:
  16335. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  16336. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  16337. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  16338. --with-pic try to use only PIC/non-PIC objects [default=use
  16339. both]
  16340. - --with-tags[=TAGS] include additional configurations [automatic]
  16341. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  16342. --with-rtsig compile with support for real time signals (experimental)
  16343. Some influential environment variables:
  16344. @@ -1476,18 +1517,15 @@
  16345. CFLAGS C compiler flags
  16346. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  16347. nonstandard directory <lib dir>
  16348. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  16349. + LIBS libraries to pass to the linker, e.g. -l<library>
  16350. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  16351. you have headers in a nonstandard directory <include dir>
  16352. CPP C preprocessor
  16353. - CXX C++ compiler command
  16354. - CXXFLAGS C++ compiler flags
  16355. - CXXCPP C++ preprocessor
  16356. - F77 Fortran 77 compiler command
  16357. - FFLAGS Fortran 77 compiler flags
  16358. Use these variables to override the choices made by `configure' or to help
  16359. it to find libraries and programs with nonstandard names/locations.
  16360. +Report bugs to the package provider.
  16361. _ACEOF
  16362. ac_status=$?
  16363. fi
  16364. @@ -1495,15 +1533,17 @@
  16365. if test "$ac_init_help" = "recursive"; then
  16366. # If there are subdirs, report their specific --help.
  16367. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  16368. - test -d "$ac_dir" || continue
  16369. + test -d "$ac_dir" ||
  16370. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  16371. + continue
  16372. ac_builddir=.
  16373. case "$ac_dir" in
  16374. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16375. *)
  16376. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  16377. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16378. # A ".." for each directory in $ac_dir_suffix.
  16379. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  16380. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16381. case $ac_top_builddir_sub in
  16382. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16383. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16384. @@ -1539,7 +1579,7 @@
  16385. echo &&
  16386. $SHELL "$ac_srcdir/configure" --help=recursive
  16387. else
  16388. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16389. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16390. fi || ac_status=$?
  16391. cd "$ac_pwd" || { ac_status=$?; break; }
  16392. done
  16393. @@ -1549,21 +1589,426 @@
  16394. if $ac_init_version; then
  16395. cat <<\_ACEOF
  16396. configure
  16397. -generated by GNU Autoconf 2.60
  16398. +generated by GNU Autoconf 2.65
  16399. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  16400. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  16401. +Copyright (C) 2009 Free Software Foundation, Inc.
  16402. This configure script is free software; the Free Software Foundation
  16403. gives unlimited permission to copy, distribute and modify it.
  16404. _ACEOF
  16405. exit
  16406. fi
  16407. +
  16408. +## ------------------------ ##
  16409. +## Autoconf initialization. ##
  16410. +## ------------------------ ##
  16411. +
  16412. +# ac_fn_c_try_compile LINENO
  16413. +# --------------------------
  16414. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  16415. +ac_fn_c_try_compile ()
  16416. +{
  16417. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16418. + rm -f conftest.$ac_objext
  16419. + if { { ac_try="$ac_compile"
  16420. +case "(($ac_try" in
  16421. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16422. + *) ac_try_echo=$ac_try;;
  16423. +esac
  16424. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16425. +$as_echo "$ac_try_echo"; } >&5
  16426. + (eval "$ac_compile") 2>conftest.err
  16427. + ac_status=$?
  16428. + if test -s conftest.err; then
  16429. + grep -v '^ *+' conftest.err >conftest.er1
  16430. + cat conftest.er1 >&5
  16431. + mv -f conftest.er1 conftest.err
  16432. + fi
  16433. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16434. + test $ac_status = 0; } && {
  16435. + test -z "$ac_c_werror_flag" ||
  16436. + test ! -s conftest.err
  16437. + } && test -s conftest.$ac_objext; then :
  16438. + ac_retval=0
  16439. +else
  16440. + $as_echo "$as_me: failed program was:" >&5
  16441. +sed 's/^/| /' conftest.$ac_ext >&5
  16442. +
  16443. + ac_retval=1
  16444. +fi
  16445. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16446. + as_fn_set_status $ac_retval
  16447. +
  16448. +} # ac_fn_c_try_compile
  16449. +
  16450. +# ac_fn_c_try_cpp LINENO
  16451. +# ----------------------
  16452. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  16453. +ac_fn_c_try_cpp ()
  16454. +{
  16455. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16456. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  16457. +case "(($ac_try" in
  16458. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16459. + *) ac_try_echo=$ac_try;;
  16460. +esac
  16461. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16462. +$as_echo "$ac_try_echo"; } >&5
  16463. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  16464. + ac_status=$?
  16465. + if test -s conftest.err; then
  16466. + grep -v '^ *+' conftest.err >conftest.er1
  16467. + cat conftest.er1 >&5
  16468. + mv -f conftest.er1 conftest.err
  16469. + fi
  16470. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16471. + test $ac_status = 0; } >/dev/null && {
  16472. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16473. + test ! -s conftest.err
  16474. + }; then :
  16475. + ac_retval=0
  16476. +else
  16477. + $as_echo "$as_me: failed program was:" >&5
  16478. +sed 's/^/| /' conftest.$ac_ext >&5
  16479. +
  16480. + ac_retval=1
  16481. +fi
  16482. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16483. + as_fn_set_status $ac_retval
  16484. +
  16485. +} # ac_fn_c_try_cpp
  16486. +
  16487. +# ac_fn_c_try_link LINENO
  16488. +# -----------------------
  16489. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  16490. +ac_fn_c_try_link ()
  16491. +{
  16492. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16493. + rm -f conftest.$ac_objext conftest$ac_exeext
  16494. + if { { ac_try="$ac_link"
  16495. +case "(($ac_try" in
  16496. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16497. + *) ac_try_echo=$ac_try;;
  16498. +esac
  16499. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16500. +$as_echo "$ac_try_echo"; } >&5
  16501. + (eval "$ac_link") 2>conftest.err
  16502. + ac_status=$?
  16503. + if test -s conftest.err; then
  16504. + grep -v '^ *+' conftest.err >conftest.er1
  16505. + cat conftest.er1 >&5
  16506. + mv -f conftest.er1 conftest.err
  16507. + fi
  16508. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16509. + test $ac_status = 0; } && {
  16510. + test -z "$ac_c_werror_flag" ||
  16511. + test ! -s conftest.err
  16512. + } && test -s conftest$ac_exeext && {
  16513. + test "$cross_compiling" = yes ||
  16514. + $as_test_x conftest$ac_exeext
  16515. + }; then :
  16516. + ac_retval=0
  16517. +else
  16518. + $as_echo "$as_me: failed program was:" >&5
  16519. +sed 's/^/| /' conftest.$ac_ext >&5
  16520. +
  16521. + ac_retval=1
  16522. +fi
  16523. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  16524. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  16525. + # interfere with the next link command; also delete a directory that is
  16526. + # left behind by Apple's compiler. We do this before executing the actions.
  16527. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  16528. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16529. + as_fn_set_status $ac_retval
  16530. +
  16531. +} # ac_fn_c_try_link
  16532. +
  16533. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  16534. +# -------------------------------------------------------
  16535. +# Tests whether HEADER exists and can be compiled using the include files in
  16536. +# INCLUDES, setting the cache variable VAR accordingly.
  16537. +ac_fn_c_check_header_compile ()
  16538. +{
  16539. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16540. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16541. +$as_echo_n "checking for $2... " >&6; }
  16542. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16543. + $as_echo_n "(cached) " >&6
  16544. +else
  16545. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16546. +/* end confdefs.h. */
  16547. +$4
  16548. +#include <$2>
  16549. +_ACEOF
  16550. +if ac_fn_c_try_compile "$LINENO"; then :
  16551. + eval "$3=yes"
  16552. +else
  16553. + eval "$3=no"
  16554. +fi
  16555. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16556. +fi
  16557. +eval ac_res=\$$3
  16558. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16559. +$as_echo "$ac_res" >&6; }
  16560. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16561. +
  16562. +} # ac_fn_c_check_header_compile
  16563. +
  16564. +# ac_fn_c_try_run LINENO
  16565. +# ----------------------
  16566. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  16567. +# that executables *can* be run.
  16568. +ac_fn_c_try_run ()
  16569. +{
  16570. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16571. + if { { ac_try="$ac_link"
  16572. +case "(($ac_try" in
  16573. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16574. + *) ac_try_echo=$ac_try;;
  16575. +esac
  16576. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16577. +$as_echo "$ac_try_echo"; } >&5
  16578. + (eval "$ac_link") 2>&5
  16579. + ac_status=$?
  16580. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16581. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  16582. + { { case "(($ac_try" in
  16583. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16584. + *) ac_try_echo=$ac_try;;
  16585. +esac
  16586. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16587. +$as_echo "$ac_try_echo"; } >&5
  16588. + (eval "$ac_try") 2>&5
  16589. + ac_status=$?
  16590. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16591. + test $ac_status = 0; }; }; then :
  16592. + ac_retval=0
  16593. +else
  16594. + $as_echo "$as_me: program exited with status $ac_status" >&5
  16595. + $as_echo "$as_me: failed program was:" >&5
  16596. +sed 's/^/| /' conftest.$ac_ext >&5
  16597. +
  16598. + ac_retval=$ac_status
  16599. +fi
  16600. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  16601. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16602. + as_fn_set_status $ac_retval
  16603. +
  16604. +} # ac_fn_c_try_run
  16605. +
  16606. +# ac_fn_c_check_func LINENO FUNC VAR
  16607. +# ----------------------------------
  16608. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  16609. +ac_fn_c_check_func ()
  16610. +{
  16611. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16612. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16613. +$as_echo_n "checking for $2... " >&6; }
  16614. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16615. + $as_echo_n "(cached) " >&6
  16616. +else
  16617. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16618. +/* end confdefs.h. */
  16619. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  16620. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16621. +#define $2 innocuous_$2
  16622. +
  16623. +/* System header to define __stub macros and hopefully few prototypes,
  16624. + which can conflict with char $2 (); below.
  16625. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16626. + <limits.h> exists even on freestanding compilers. */
  16627. +
  16628. +#ifdef __STDC__
  16629. +# include <limits.h>
  16630. +#else
  16631. +# include <assert.h>
  16632. +#endif
  16633. +
  16634. +#undef $2
  16635. +
  16636. +/* Override any GCC internal prototype to avoid an error.
  16637. + Use char because int might match the return type of a GCC
  16638. + builtin and then its argument prototype would still apply. */
  16639. +#ifdef __cplusplus
  16640. +extern "C"
  16641. +#endif
  16642. +char $2 ();
  16643. +/* The GNU C library defines this for functions which it implements
  16644. + to always fail with ENOSYS. Some functions are actually named
  16645. + something starting with __ and the normal name is an alias. */
  16646. +#if defined __stub_$2 || defined __stub___$2
  16647. +choke me
  16648. +#endif
  16649. +
  16650. +int
  16651. +main ()
  16652. +{
  16653. +return $2 ();
  16654. + ;
  16655. + return 0;
  16656. +}
  16657. +_ACEOF
  16658. +if ac_fn_c_try_link "$LINENO"; then :
  16659. + eval "$3=yes"
  16660. +else
  16661. + eval "$3=no"
  16662. +fi
  16663. +rm -f core conftest.err conftest.$ac_objext \
  16664. + conftest$ac_exeext conftest.$ac_ext
  16665. +fi
  16666. +eval ac_res=\$$3
  16667. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16668. +$as_echo "$ac_res" >&6; }
  16669. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16670. +
  16671. +} # ac_fn_c_check_func
  16672. +
  16673. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  16674. +# -------------------------------------------------------
  16675. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  16676. +# the include files in INCLUDES and setting the cache variable VAR
  16677. +# accordingly.
  16678. +ac_fn_c_check_header_mongrel ()
  16679. +{
  16680. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16681. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16682. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16683. +$as_echo_n "checking for $2... " >&6; }
  16684. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16685. + $as_echo_n "(cached) " >&6
  16686. +fi
  16687. +eval ac_res=\$$3
  16688. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16689. +$as_echo "$ac_res" >&6; }
  16690. +else
  16691. + # Is the header compilable?
  16692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  16693. +$as_echo_n "checking $2 usability... " >&6; }
  16694. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16695. +/* end confdefs.h. */
  16696. +$4
  16697. +#include <$2>
  16698. +_ACEOF
  16699. +if ac_fn_c_try_compile "$LINENO"; then :
  16700. + ac_header_compiler=yes
  16701. +else
  16702. + ac_header_compiler=no
  16703. +fi
  16704. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16705. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  16706. +$as_echo "$ac_header_compiler" >&6; }
  16707. +
  16708. +# Is the header present?
  16709. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  16710. +$as_echo_n "checking $2 presence... " >&6; }
  16711. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16712. +/* end confdefs.h. */
  16713. +#include <$2>
  16714. +_ACEOF
  16715. +if ac_fn_c_try_cpp "$LINENO"; then :
  16716. + ac_header_preproc=yes
  16717. +else
  16718. + ac_header_preproc=no
  16719. +fi
  16720. +rm -f conftest.err conftest.$ac_ext
  16721. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  16722. +$as_echo "$ac_header_preproc" >&6; }
  16723. +
  16724. +# So? What about this header?
  16725. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  16726. + yes:no: )
  16727. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  16728. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16729. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  16730. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  16731. + ;;
  16732. + no:yes:* )
  16733. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  16734. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  16735. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  16736. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  16737. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  16738. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  16739. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  16740. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  16741. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  16742. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  16743. + ;;
  16744. +esac
  16745. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16746. +$as_echo_n "checking for $2... " >&6; }
  16747. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16748. + $as_echo_n "(cached) " >&6
  16749. +else
  16750. + eval "$3=\$ac_header_compiler"
  16751. +fi
  16752. +eval ac_res=\$$3
  16753. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16754. +$as_echo "$ac_res" >&6; }
  16755. +fi
  16756. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16757. +
  16758. +} # ac_fn_c_check_header_mongrel
  16759. +
  16760. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  16761. +# -------------------------------------------
  16762. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  16763. +# variable VAR accordingly.
  16764. +ac_fn_c_check_type ()
  16765. +{
  16766. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16767. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16768. +$as_echo_n "checking for $2... " >&6; }
  16769. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16770. + $as_echo_n "(cached) " >&6
  16771. +else
  16772. + eval "$3=no"
  16773. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16774. +/* end confdefs.h. */
  16775. +$4
  16776. +int
  16777. +main ()
  16778. +{
  16779. +if (sizeof ($2))
  16780. + return 0;
  16781. + ;
  16782. + return 0;
  16783. +}
  16784. +_ACEOF
  16785. +if ac_fn_c_try_compile "$LINENO"; then :
  16786. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16787. +/* end confdefs.h. */
  16788. +$4
  16789. +int
  16790. +main ()
  16791. +{
  16792. +if (sizeof (($2)))
  16793. + return 0;
  16794. + ;
  16795. + return 0;
  16796. +}
  16797. +_ACEOF
  16798. +if ac_fn_c_try_compile "$LINENO"; then :
  16799. +
  16800. +else
  16801. + eval "$3=yes"
  16802. +fi
  16803. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16804. +fi
  16805. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16806. +fi
  16807. +eval ac_res=\$$3
  16808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16809. +$as_echo "$ac_res" >&6; }
  16810. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16811. +
  16812. +} # ac_fn_c_check_type
  16813. cat >config.log <<_ACEOF
  16814. This file contains any messages produced by compilers while
  16815. running configure, to aid debugging if configure makes a mistake.
  16816. It was created by $as_me, which was
  16817. -generated by GNU Autoconf 2.60. Invocation command line was
  16818. +generated by GNU Autoconf 2.65. Invocation command line was
  16819. $ $0 $@
  16820. @@ -1599,8 +2044,8 @@
  16821. do
  16822. IFS=$as_save_IFS
  16823. test -z "$as_dir" && as_dir=.
  16824. - echo "PATH: $as_dir"
  16825. -done
  16826. + $as_echo "PATH: $as_dir"
  16827. + done
  16828. IFS=$as_save_IFS
  16829. } >&5
  16830. @@ -1634,12 +2079,12 @@
  16831. | -silent | --silent | --silen | --sile | --sil)
  16832. continue ;;
  16833. *\'*)
  16834. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16835. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16836. esac
  16837. case $ac_pass in
  16838. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  16839. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  16840. 2)
  16841. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  16842. + as_fn_append ac_configure_args1 " '$ac_arg'"
  16843. if test $ac_must_keep_next = true; then
  16844. ac_must_keep_next=false # Got value, back to normal.
  16845. else
  16846. @@ -1655,13 +2100,13 @@
  16847. -* ) ac_must_keep_next=true ;;
  16848. esac
  16849. fi
  16850. - ac_configure_args="$ac_configure_args '$ac_arg'"
  16851. + as_fn_append ac_configure_args " '$ac_arg'"
  16852. ;;
  16853. esac
  16854. done
  16855. done
  16856. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  16857. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  16858. +{ ac_configure_args0=; unset ac_configure_args0;}
  16859. +{ ac_configure_args1=; unset ac_configure_args1;}
  16860. # When interrupted or exit'd, cleanup temporary files, and complete
  16861. # config.log. We remove comments because anyway the quotes in there
  16862. @@ -1686,12 +2131,13 @@
  16863. case $ac_val in #(
  16864. *${as_nl}*)
  16865. case $ac_var in #(
  16866. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  16867. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  16868. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16869. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16870. esac
  16871. case $ac_var in #(
  16872. _ | IFS | as_nl) ;; #(
  16873. - *) $as_unset $ac_var ;;
  16874. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16875. + *) { eval $ac_var=; unset $ac_var;} ;;
  16876. esac ;;
  16877. esac
  16878. done
  16879. @@ -1720,9 +2166,9 @@
  16880. do
  16881. eval ac_val=\$$ac_var
  16882. case $ac_val in
  16883. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16884. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16885. esac
  16886. - echo "$ac_var='\''$ac_val'\''"
  16887. + $as_echo "$ac_var='\''$ac_val'\''"
  16888. done | sort
  16889. echo
  16890. @@ -1737,9 +2183,9 @@
  16891. do
  16892. eval ac_val=\$$ac_var
  16893. case $ac_val in
  16894. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16895. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16896. esac
  16897. - echo "$ac_var='\''$ac_val'\''"
  16898. + $as_echo "$ac_var='\''$ac_val'\''"
  16899. done | sort
  16900. echo
  16901. fi
  16902. @@ -1755,83 +2201,88 @@
  16903. echo
  16904. fi
  16905. test "$ac_signal" != 0 &&
  16906. - echo "$as_me: caught signal $ac_signal"
  16907. - echo "$as_me: exit $exit_status"
  16908. + $as_echo "$as_me: caught signal $ac_signal"
  16909. + $as_echo "$as_me: exit $exit_status"
  16910. } >&5
  16911. rm -f core *.core core.conftest.* &&
  16912. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  16913. exit $exit_status
  16914. ' 0
  16915. for ac_signal in 1 2 13 15; do
  16916. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  16917. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  16918. done
  16919. ac_signal=0
  16920. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  16921. rm -f -r conftest* confdefs.h
  16922. +$as_echo "/* confdefs.h */" > confdefs.h
  16923. +
  16924. # Predefined preprocessor variables.
  16925. cat >>confdefs.h <<_ACEOF
  16926. #define PACKAGE_NAME "$PACKAGE_NAME"
  16927. _ACEOF
  16928. -
  16929. cat >>confdefs.h <<_ACEOF
  16930. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  16931. _ACEOF
  16932. -
  16933. cat >>confdefs.h <<_ACEOF
  16934. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  16935. _ACEOF
  16936. -
  16937. cat >>confdefs.h <<_ACEOF
  16938. #define PACKAGE_STRING "$PACKAGE_STRING"
  16939. _ACEOF
  16940. -
  16941. cat >>confdefs.h <<_ACEOF
  16942. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  16943. _ACEOF
  16944. +cat >>confdefs.h <<_ACEOF
  16945. +#define PACKAGE_URL "$PACKAGE_URL"
  16946. +_ACEOF
  16947. +
  16948. # Let the site file select an alternate cache file if it wants to.
  16949. -# Prefer explicitly selected file to automatically selected ones.
  16950. +# Prefer an explicitly selected file to automatically selected ones.
  16951. +ac_site_file1=NONE
  16952. +ac_site_file2=NONE
  16953. if test -n "$CONFIG_SITE"; then
  16954. - set x "$CONFIG_SITE"
  16955. + ac_site_file1=$CONFIG_SITE
  16956. elif test "x$prefix" != xNONE; then
  16957. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  16958. + ac_site_file1=$prefix/share/config.site
  16959. + ac_site_file2=$prefix/etc/config.site
  16960. else
  16961. - set x "$ac_default_prefix/share/config.site" \
  16962. - "$ac_default_prefix/etc/config.site"
  16963. + ac_site_file1=$ac_default_prefix/share/config.site
  16964. + ac_site_file2=$ac_default_prefix/etc/config.site
  16965. fi
  16966. -shift
  16967. -for ac_site_file
  16968. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  16969. do
  16970. - if test -r "$ac_site_file"; then
  16971. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  16972. -echo "$as_me: loading site script $ac_site_file" >&6;}
  16973. + test "x$ac_site_file" = xNONE && continue
  16974. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  16975. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  16976. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  16977. sed 's/^/| /' "$ac_site_file" >&5
  16978. . "$ac_site_file"
  16979. fi
  16980. done
  16981. if test -r "$cache_file"; then
  16982. - # Some versions of bash will fail to source /dev/null (special
  16983. - # files actually), so we avoid doing that.
  16984. - if test -f "$cache_file"; then
  16985. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  16986. -echo "$as_me: loading cache $cache_file" >&6;}
  16987. + # Some versions of bash will fail to source /dev/null (special files
  16988. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  16989. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  16990. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  16991. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  16992. case $cache_file in
  16993. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  16994. *) . "./$cache_file";;
  16995. esac
  16996. fi
  16997. else
  16998. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  16999. -echo "$as_me: creating cache $cache_file" >&6;}
  17000. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  17001. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  17002. >$cache_file
  17003. fi
  17004. @@ -1845,60 +2296,56 @@
  17005. eval ac_new_val=\$ac_env_${ac_var}_value
  17006. case $ac_old_set,$ac_new_set in
  17007. set,)
  17008. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  17009. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  17010. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  17011. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  17012. ac_cache_corrupted=: ;;
  17013. ,set)
  17014. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  17015. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  17016. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  17017. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  17018. ac_cache_corrupted=: ;;
  17019. ,);;
  17020. *)
  17021. if test "x$ac_old_val" != "x$ac_new_val"; then
  17022. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  17023. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  17024. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  17025. -echo "$as_me: former value: $ac_old_val" >&2;}
  17026. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  17027. -echo "$as_me: current value: $ac_new_val" >&2;}
  17028. - ac_cache_corrupted=:
  17029. + # differences in whitespace do not lead to failure.
  17030. + ac_old_val_w=`echo x $ac_old_val`
  17031. + ac_new_val_w=`echo x $ac_new_val`
  17032. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  17033. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  17034. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  17035. + ac_cache_corrupted=:
  17036. + else
  17037. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  17038. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  17039. + eval $ac_var=\$ac_old_val
  17040. + fi
  17041. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  17042. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  17043. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  17044. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  17045. fi;;
  17046. esac
  17047. # Pass precious variables to config.status.
  17048. if test "$ac_new_set" = set; then
  17049. case $ac_new_val in
  17050. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  17051. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  17052. *) ac_arg=$ac_var=$ac_new_val ;;
  17053. esac
  17054. case " $ac_configure_args " in
  17055. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  17056. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  17057. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  17058. esac
  17059. fi
  17060. done
  17061. if $ac_cache_corrupted; then
  17062. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  17063. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  17064. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  17065. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  17066. - { (exit 1); exit 1; }; }
  17067. -fi
  17068. -
  17069. -
  17070. -
  17071. -
  17072. -
  17073. -
  17074. -
  17075. -
  17076. -
  17077. -
  17078. -
  17079. -
  17080. -
  17081. -
  17082. -
  17083. -
  17084. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17085. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17086. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  17087. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  17088. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  17089. +fi
  17090. +## -------------------- ##
  17091. +## Main body of script. ##
  17092. +## -------------------- ##
  17093. ac_ext=c
  17094. ac_cpp='$CPP $CPPFLAGS'
  17095. @@ -1908,27 +2355,20 @@
  17096. -am__api_version="1.9"
  17097. +am__api_version='1.11'
  17098. +
  17099. ac_aux_dir=
  17100. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  17101. - if test -f "$ac_dir/install-sh"; then
  17102. - ac_aux_dir=$ac_dir
  17103. - ac_install_sh="$ac_aux_dir/install-sh -c"
  17104. - break
  17105. - elif test -f "$ac_dir/install.sh"; then
  17106. - ac_aux_dir=$ac_dir
  17107. - ac_install_sh="$ac_aux_dir/install.sh -c"
  17108. - break
  17109. - elif test -f "$ac_dir/shtool"; then
  17110. - ac_aux_dir=$ac_dir
  17111. - ac_install_sh="$ac_aux_dir/shtool install -c"
  17112. - break
  17113. - fi
  17114. + for ac_t in install-sh install.sh shtool; do
  17115. + if test -f "$ac_dir/$ac_t"; then
  17116. + ac_aux_dir=$ac_dir
  17117. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  17118. + break 2
  17119. + fi
  17120. + done
  17121. done
  17122. if test -z "$ac_aux_dir"; then
  17123. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  17124. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  17125. - { (exit 1); exit 1; }; }
  17126. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  17127. fi
  17128. # These three variables are undocumented and unsupported,
  17129. @@ -1953,22 +2393,23 @@
  17130. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17131. # OS/2's system install, which has a completely different semantic
  17132. # ./install, which can be erroneously created by make from ./install.sh.
  17133. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17134. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  17135. +# Reject install programs that cannot install multiple files.
  17136. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  17137. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  17138. if test -z "$INSTALL"; then
  17139. -if test "${ac_cv_path_install+set}" = set; then
  17140. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17141. +if test "${ac_cv_path_install+set}" = set; then :
  17142. + $as_echo_n "(cached) " >&6
  17143. else
  17144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17145. for as_dir in $PATH
  17146. do
  17147. IFS=$as_save_IFS
  17148. test -z "$as_dir" && as_dir=.
  17149. - # Account for people who put trailing slashes in PATH elements.
  17150. -case $as_dir/ in
  17151. - ./ | .// | /cC/* | \
  17152. + # Account for people who put trailing slashes in PATH elements.
  17153. +case $as_dir/ in #((
  17154. + ./ | .// | /[cC]/* | \
  17155. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17156. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17157. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  17158. /usr/ucb/* ) ;;
  17159. *)
  17160. # OSF1 and SCO ODT 3.0 have their own names for install.
  17161. @@ -1976,7 +2417,7 @@
  17162. # by default.
  17163. for ac_prog in ginstall scoinst install; do
  17164. for ac_exec_ext in '' $ac_executable_extensions; do
  17165. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  17166. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  17167. if test $ac_prog = install &&
  17168. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17169. # AIX install. It has an incompatible calling convention.
  17170. @@ -1986,17 +2427,29 @@
  17171. # program-specific install script used by HP pwplus--don't use.
  17172. :
  17173. else
  17174. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17175. - break 3
  17176. + rm -rf conftest.one conftest.two conftest.dir
  17177. + echo one > conftest.one
  17178. + echo two > conftest.two
  17179. + mkdir conftest.dir
  17180. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  17181. + test -s conftest.one && test -s conftest.two &&
  17182. + test -s conftest.dir/conftest.one &&
  17183. + test -s conftest.dir/conftest.two
  17184. + then
  17185. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17186. + break 3
  17187. + fi
  17188. fi
  17189. fi
  17190. done
  17191. done
  17192. ;;
  17193. esac
  17194. -done
  17195. +
  17196. + done
  17197. IFS=$as_save_IFS
  17198. +rm -rf conftest.one conftest.two conftest.dir
  17199. fi
  17200. if test "${ac_cv_path_install+set}" = set; then
  17201. @@ -2009,8 +2462,8 @@
  17202. INSTALL=$ac_install_sh
  17203. fi
  17204. fi
  17205. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  17206. -echo "${ECHO_T}$INSTALL" >&6; }
  17207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  17208. +$as_echo "$INSTALL" >&6; }
  17209. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17210. # It thinks the first close brace ends the variable substitution.
  17211. @@ -2020,21 +2473,34 @@
  17212. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17213. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  17214. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  17215. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  17216. +$as_echo_n "checking whether build environment is sane... " >&6; }
  17217. # Just in case
  17218. sleep 1
  17219. echo timestamp > conftest.file
  17220. +# Reject unsafe characters in $srcdir or the absolute working directory
  17221. +# name. Accept space and tab only in the latter.
  17222. +am_lf='
  17223. +'
  17224. +case `pwd` in
  17225. + *[\\\"\#\$\&\'\`$am_lf]*)
  17226. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  17227. +esac
  17228. +case $srcdir in
  17229. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  17230. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  17231. +esac
  17232. +
  17233. # Do `set' in a subshell so we don't clobber the current shell's
  17234. # arguments. Must try -L first in case configure is actually a
  17235. # symlink; some systems play weird games with the mod time of symlinks
  17236. # (eg FreeBSD returns the mod time of the symlink's containing
  17237. # directory).
  17238. if (
  17239. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  17240. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  17241. if test "$*" = "X"; then
  17242. # -L didn't work.
  17243. - set X `ls -t $srcdir/configure conftest.file`
  17244. + set X `ls -t "$srcdir/configure" conftest.file`
  17245. fi
  17246. rm -f conftest.file
  17247. if test "$*" != "X $srcdir/configure conftest.file" \
  17248. @@ -2044,11 +2510,8 @@
  17249. # if, for instance, CONFIG_SHELL is bash and it inherits a
  17250. # broken ls alias from the environment. This has actually
  17251. # happened. Such a system could not be considered "sane".
  17252. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  17253. -alias in your environment" >&5
  17254. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  17255. -alias in your environment" >&2;}
  17256. - { (exit 1); exit 1; }; }
  17257. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  17258. +alias in your environment" "$LINENO" 5
  17259. fi
  17260. test "$2" = conftest.file
  17261. @@ -2057,121 +2520,247 @@
  17262. # Ok.
  17263. :
  17264. else
  17265. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  17266. -Check your system clock" >&5
  17267. -echo "$as_me: error: newly created file is older than distributed files!
  17268. -Check your system clock" >&2;}
  17269. - { (exit 1); exit 1; }; }
  17270. + as_fn_error "newly created file is older than distributed files!
  17271. +Check your system clock" "$LINENO" 5
  17272. fi
  17273. -{ echo "$as_me:$LINENO: result: yes" >&5
  17274. -echo "${ECHO_T}yes" >&6; }
  17275. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17276. +$as_echo "yes" >&6; }
  17277. test "$program_prefix" != NONE &&
  17278. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  17279. # Use a double $ so make ignores it.
  17280. test "$program_suffix" != NONE &&
  17281. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  17282. -# Double any \ or $. echo might interpret backslashes.
  17283. +# Double any \ or $.
  17284. # By default was `s,x,x', remove it if useless.
  17285. -cat <<\_ACEOF >conftest.sed
  17286. -s/[\\$]/&&/g;s/;s,x,x,$//
  17287. -_ACEOF
  17288. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  17289. -rm -f conftest.sed
  17290. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  17291. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  17292. # expand $ac_aux_dir to an absolute path
  17293. am_aux_dir=`cd $ac_aux_dir && pwd`
  17294. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  17295. +if test x"${MISSING+set}" != xset; then
  17296. + case $am_aux_dir in
  17297. + *\ * | *\ *)
  17298. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  17299. + *)
  17300. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  17301. + esac
  17302. +fi
  17303. # Use eval to expand $SHELL
  17304. if eval "$MISSING --run true"; then
  17305. am_missing_run="$MISSING --run "
  17306. else
  17307. am_missing_run=
  17308. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  17309. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17310. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  17311. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17312. fi
  17313. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  17314. - # We used to keeping the `.' as first argument, in order to
  17315. - # allow $(mkdir_p) to be used without argument. As in
  17316. - # $(mkdir_p) $(somedir)
  17317. - # where $(somedir) is conditionally defined. However this is wrong
  17318. - # for two reasons:
  17319. - # 1. if the package is installed by a user who cannot write `.'
  17320. - # make install will fail,
  17321. - # 2. the above comment should most certainly read
  17322. - # $(mkdir_p) $(DESTDIR)$(somedir)
  17323. - # so it does not work when $(somedir) is undefined and
  17324. - # $(DESTDIR) is not.
  17325. - # To support the latter case, we have to write
  17326. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  17327. - # so the `.' trick is pointless.
  17328. - mkdir_p='mkdir -p --'
  17329. -else
  17330. - # On NextStep and OpenStep, the `mkdir' command does not
  17331. - # recognize any option. It will interpret all options as
  17332. - # directories to create, and then abort because `.' already
  17333. - # exists.
  17334. - for d in ./-p ./--version;
  17335. - do
  17336. - test -d $d && rmdir $d
  17337. - done
  17338. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  17339. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  17340. - mkdir_p='$(mkinstalldirs)'
  17341. - else
  17342. - mkdir_p='$(install_sh) -d'
  17343. - fi
  17344. +if test x"${install_sh}" != xset; then
  17345. + case $am_aux_dir in
  17346. + *\ * | *\ *)
  17347. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  17348. + *)
  17349. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  17350. + esac
  17351. fi
  17352. -for ac_prog in gawk mawk nawk awk
  17353. -do
  17354. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  17355. -set dummy $ac_prog; ac_word=$2
  17356. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17357. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17358. -if test "${ac_cv_prog_AWK+set}" = set; then
  17359. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17360. +# Installed binaries are usually stripped using `strip' when the user
  17361. +# run `make install-strip'. However `strip' might not be the right
  17362. +# tool to use in cross-compilation environments, therefore Automake
  17363. +# will honor the `STRIP' environment variable to overrule this program.
  17364. +if test "$cross_compiling" != no; then
  17365. + if test -n "$ac_tool_prefix"; then
  17366. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17367. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  17368. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17369. +$as_echo_n "checking for $ac_word... " >&6; }
  17370. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  17371. + $as_echo_n "(cached) " >&6
  17372. else
  17373. - if test -n "$AWK"; then
  17374. - ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17375. + if test -n "$STRIP"; then
  17376. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17377. else
  17378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17379. for as_dir in $PATH
  17380. do
  17381. IFS=$as_save_IFS
  17382. test -z "$as_dir" && as_dir=.
  17383. - for ac_exec_ext in '' $ac_executable_extensions; do
  17384. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  17385. - ac_cv_prog_AWK="$ac_prog"
  17386. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17387. + for ac_exec_ext in '' $ac_executable_extensions; do
  17388. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17389. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17390. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17391. break 2
  17392. fi
  17393. done
  17394. -done
  17395. + done
  17396. IFS=$as_save_IFS
  17397. fi
  17398. fi
  17399. -AWK=$ac_cv_prog_AWK
  17400. -if test -n "$AWK"; then
  17401. - { echo "$as_me:$LINENO: result: $AWK" >&5
  17402. -echo "${ECHO_T}$AWK" >&6; }
  17403. +STRIP=$ac_cv_prog_STRIP
  17404. +if test -n "$STRIP"; then
  17405. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  17406. +$as_echo "$STRIP" >&6; }
  17407. else
  17408. - { echo "$as_me:$LINENO: result: no" >&5
  17409. -echo "${ECHO_T}no" >&6; }
  17410. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17411. +$as_echo "no" >&6; }
  17412. fi
  17413. - test -n "$AWK" && break
  17414. -done
  17415. -
  17416. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17417. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  17418. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17419. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  17420. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17421. -else
  17422. +fi
  17423. +if test -z "$ac_cv_prog_STRIP"; then
  17424. + ac_ct_STRIP=$STRIP
  17425. + # Extract the first word of "strip", so it can be a program name with args.
  17426. +set dummy strip; ac_word=$2
  17427. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17428. +$as_echo_n "checking for $ac_word... " >&6; }
  17429. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  17430. + $as_echo_n "(cached) " >&6
  17431. +else
  17432. + if test -n "$ac_ct_STRIP"; then
  17433. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17434. +else
  17435. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17436. +for as_dir in $PATH
  17437. +do
  17438. + IFS=$as_save_IFS
  17439. + test -z "$as_dir" && as_dir=.
  17440. + for ac_exec_ext in '' $ac_executable_extensions; do
  17441. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17442. + ac_cv_prog_ac_ct_STRIP="strip"
  17443. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17444. + break 2
  17445. + fi
  17446. +done
  17447. + done
  17448. +IFS=$as_save_IFS
  17449. +
  17450. +fi
  17451. +fi
  17452. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17453. +if test -n "$ac_ct_STRIP"; then
  17454. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  17455. +$as_echo "$ac_ct_STRIP" >&6; }
  17456. +else
  17457. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17458. +$as_echo "no" >&6; }
  17459. +fi
  17460. +
  17461. + if test "x$ac_ct_STRIP" = x; then
  17462. + STRIP=":"
  17463. + else
  17464. + case $cross_compiling:$ac_tool_warned in
  17465. +yes:)
  17466. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17467. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17468. +ac_tool_warned=yes ;;
  17469. +esac
  17470. + STRIP=$ac_ct_STRIP
  17471. + fi
  17472. +else
  17473. + STRIP="$ac_cv_prog_STRIP"
  17474. +fi
  17475. +
  17476. +fi
  17477. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  17478. +
  17479. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  17480. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  17481. +if test -z "$MKDIR_P"; then
  17482. + if test "${ac_cv_path_mkdir+set}" = set; then :
  17483. + $as_echo_n "(cached) " >&6
  17484. +else
  17485. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17486. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  17487. +do
  17488. + IFS=$as_save_IFS
  17489. + test -z "$as_dir" && as_dir=.
  17490. + for ac_prog in mkdir gmkdir; do
  17491. + for ac_exec_ext in '' $ac_executable_extensions; do
  17492. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  17493. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  17494. + 'mkdir (GNU coreutils) '* | \
  17495. + 'mkdir (coreutils) '* | \
  17496. + 'mkdir (fileutils) '4.1*)
  17497. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  17498. + break 3;;
  17499. + esac
  17500. + done
  17501. + done
  17502. + done
  17503. +IFS=$as_save_IFS
  17504. +
  17505. +fi
  17506. +
  17507. + test -d ./--version && rmdir ./--version
  17508. + if test "${ac_cv_path_mkdir+set}" = set; then
  17509. + MKDIR_P="$ac_cv_path_mkdir -p"
  17510. + else
  17511. + # As a last resort, use the slow shell script. Don't cache a
  17512. + # value for MKDIR_P within a source directory, because that will
  17513. + # break other packages using the cache if that directory is
  17514. + # removed, or if the value is a relative name.
  17515. + MKDIR_P="$ac_install_sh -d"
  17516. + fi
  17517. +fi
  17518. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  17519. +$as_echo "$MKDIR_P" >&6; }
  17520. +
  17521. +mkdir_p="$MKDIR_P"
  17522. +case $mkdir_p in
  17523. + [\\/$]* | ?:[\\/]*) ;;
  17524. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  17525. +esac
  17526. +
  17527. +for ac_prog in gawk mawk nawk awk
  17528. +do
  17529. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  17530. +set dummy $ac_prog; ac_word=$2
  17531. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17532. +$as_echo_n "checking for $ac_word... " >&6; }
  17533. +if test "${ac_cv_prog_AWK+set}" = set; then :
  17534. + $as_echo_n "(cached) " >&6
  17535. +else
  17536. + if test -n "$AWK"; then
  17537. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17538. +else
  17539. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17540. +for as_dir in $PATH
  17541. +do
  17542. + IFS=$as_save_IFS
  17543. + test -z "$as_dir" && as_dir=.
  17544. + for ac_exec_ext in '' $ac_executable_extensions; do
  17545. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17546. + ac_cv_prog_AWK="$ac_prog"
  17547. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17548. + break 2
  17549. + fi
  17550. +done
  17551. + done
  17552. +IFS=$as_save_IFS
  17553. +
  17554. +fi
  17555. +fi
  17556. +AWK=$ac_cv_prog_AWK
  17557. +if test -n "$AWK"; then
  17558. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  17559. +$as_echo "$AWK" >&6; }
  17560. +else
  17561. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17562. +$as_echo "no" >&6; }
  17563. +fi
  17564. +
  17565. +
  17566. + test -n "$AWK" && break
  17567. +done
  17568. +
  17569. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17570. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  17571. +set x ${MAKE-make}
  17572. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17573. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  17574. + $as_echo_n "(cached) " >&6
  17575. +else
  17576. cat >conftest.make <<\_ACEOF
  17577. SHELL = /bin/sh
  17578. all:
  17579. @@ -2187,12 +2776,12 @@
  17580. rm -f conftest.make
  17581. fi
  17582. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  17583. - { echo "$as_me:$LINENO: result: yes" >&5
  17584. -echo "${ECHO_T}yes" >&6; }
  17585. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17586. +$as_echo "yes" >&6; }
  17587. SET_MAKE=
  17588. else
  17589. - { echo "$as_me:$LINENO: result: no" >&5
  17590. -echo "${ECHO_T}no" >&6; }
  17591. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17592. +$as_echo "no" >&6; }
  17593. SET_MAKE="MAKE=${MAKE-make}"
  17594. fi
  17595. @@ -2205,12 +2794,14 @@
  17596. fi
  17597. rmdir .tst 2>/dev/null
  17598. -# test to see if srcdir already configured
  17599. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  17600. - test -f $srcdir/config.status; then
  17601. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  17602. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  17603. - { (exit 1); exit 1; }; }
  17604. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  17605. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  17606. + # is not polluted with repeated "-I."
  17607. + am__isrc=' -I$(srcdir)'
  17608. + # test to see if srcdir already configured
  17609. + if test -f $srcdir/config.status; then
  17610. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  17611. + fi
  17612. fi
  17613. # test whether we have cygpath
  17614. @@ -2253,112 +2844,6 @@
  17615. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  17616. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  17617. -
  17618. -# Installed binaries are usually stripped using `strip' when the user
  17619. -# run `make install-strip'. However `strip' might not be the right
  17620. -# tool to use in cross-compilation environments, therefore Automake
  17621. -# will honor the `STRIP' environment variable to overrule this program.
  17622. -if test "$cross_compiling" != no; then
  17623. - if test -n "$ac_tool_prefix"; then
  17624. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17625. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  17626. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17627. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17628. -if test "${ac_cv_prog_STRIP+set}" = set; then
  17629. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17630. -else
  17631. - if test -n "$STRIP"; then
  17632. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17633. -else
  17634. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17635. -for as_dir in $PATH
  17636. -do
  17637. - IFS=$as_save_IFS
  17638. - test -z "$as_dir" && as_dir=.
  17639. - for ac_exec_ext in '' $ac_executable_extensions; do
  17640. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  17641. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17642. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17643. - break 2
  17644. - fi
  17645. -done
  17646. -done
  17647. -IFS=$as_save_IFS
  17648. -
  17649. -fi
  17650. -fi
  17651. -STRIP=$ac_cv_prog_STRIP
  17652. -if test -n "$STRIP"; then
  17653. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  17654. -echo "${ECHO_T}$STRIP" >&6; }
  17655. -else
  17656. - { echo "$as_me:$LINENO: result: no" >&5
  17657. -echo "${ECHO_T}no" >&6; }
  17658. -fi
  17659. -
  17660. -
  17661. -fi
  17662. -if test -z "$ac_cv_prog_STRIP"; then
  17663. - ac_ct_STRIP=$STRIP
  17664. - # Extract the first word of "strip", so it can be a program name with args.
  17665. -set dummy strip; ac_word=$2
  17666. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17667. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17668. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17669. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17670. -else
  17671. - if test -n "$ac_ct_STRIP"; then
  17672. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17673. -else
  17674. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17675. -for as_dir in $PATH
  17676. -do
  17677. - IFS=$as_save_IFS
  17678. - test -z "$as_dir" && as_dir=.
  17679. - for ac_exec_ext in '' $ac_executable_extensions; do
  17680. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  17681. - ac_cv_prog_ac_ct_STRIP="strip"
  17682. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17683. - break 2
  17684. - fi
  17685. -done
  17686. -done
  17687. -IFS=$as_save_IFS
  17688. -
  17689. -fi
  17690. -fi
  17691. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17692. -if test -n "$ac_ct_STRIP"; then
  17693. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17694. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  17695. -else
  17696. - { echo "$as_me:$LINENO: result: no" >&5
  17697. -echo "${ECHO_T}no" >&6; }
  17698. -fi
  17699. -
  17700. - if test "x$ac_ct_STRIP" = x; then
  17701. - STRIP=":"
  17702. - else
  17703. - case $cross_compiling:$ac_tool_warned in
  17704. -yes:)
  17705. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17706. -whose name does not start with the host triplet. If you think this
  17707. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17708. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17709. -whose name does not start with the host triplet. If you think this
  17710. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17711. -ac_tool_warned=yes ;;
  17712. -esac
  17713. - STRIP=$ac_ct_STRIP
  17714. - fi
  17715. -else
  17716. - STRIP="$ac_cv_prog_STRIP"
  17717. -fi
  17718. -
  17719. -fi
  17720. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  17721. -
  17722. # We need awk for the "check" target. The system "awk" is bad on
  17723. # some platforms.
  17724. # Always define AMTAR for backward compatibility.
  17725. @@ -2373,20 +2858,19 @@
  17726. ac_config_headers="$ac_config_headers config.h"
  17727. -{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17728. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  17729. +
  17730. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17731. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  17732. # Check whether --enable-maintainer-mode was given.
  17733. -if test "${enable_maintainer_mode+set}" = set; then
  17734. +if test "${enable_maintainer_mode+set}" = set; then :
  17735. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  17736. else
  17737. USE_MAINTAINER_MODE=no
  17738. fi
  17739. - { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  17740. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  17741. -
  17742. -
  17743. -if test $USE_MAINTAINER_MODE = yes; then
  17744. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  17745. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  17746. + if test $USE_MAINTAINER_MODE = yes; then
  17747. MAINTAINER_MODE_TRUE=
  17748. MAINTAINER_MODE_FALSE='#'
  17749. else
  17750. @@ -2410,10 +2894,10 @@
  17751. if test -n "$ac_tool_prefix"; then
  17752. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17753. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17754. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17755. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17756. -if test "${ac_cv_prog_CC+set}" = set; then
  17757. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17758. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17759. +$as_echo_n "checking for $ac_word... " >&6; }
  17760. +if test "${ac_cv_prog_CC+set}" = set; then :
  17761. + $as_echo_n "(cached) " >&6
  17762. else
  17763. if test -n "$CC"; then
  17764. ac_cv_prog_CC="$CC" # Let the user override the test.
  17765. @@ -2423,25 +2907,25 @@
  17766. do
  17767. IFS=$as_save_IFS
  17768. test -z "$as_dir" && as_dir=.
  17769. - for ac_exec_ext in '' $ac_executable_extensions; do
  17770. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  17771. + for ac_exec_ext in '' $ac_executable_extensions; do
  17772. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17773. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17774. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17775. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17776. break 2
  17777. fi
  17778. done
  17779. -done
  17780. + done
  17781. IFS=$as_save_IFS
  17782. fi
  17783. fi
  17784. CC=$ac_cv_prog_CC
  17785. if test -n "$CC"; then
  17786. - { echo "$as_me:$LINENO: result: $CC" >&5
  17787. -echo "${ECHO_T}$CC" >&6; }
  17788. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17789. +$as_echo "$CC" >&6; }
  17790. else
  17791. - { echo "$as_me:$LINENO: result: no" >&5
  17792. -echo "${ECHO_T}no" >&6; }
  17793. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17794. +$as_echo "no" >&6; }
  17795. fi
  17796. @@ -2450,10 +2934,10 @@
  17797. ac_ct_CC=$CC
  17798. # Extract the first word of "gcc", so it can be a program name with args.
  17799. set dummy gcc; ac_word=$2
  17800. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17801. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17802. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17803. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17804. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17805. +$as_echo_n "checking for $ac_word... " >&6; }
  17806. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  17807. + $as_echo_n "(cached) " >&6
  17808. else
  17809. if test -n "$ac_ct_CC"; then
  17810. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17811. @@ -2463,25 +2947,25 @@
  17812. do
  17813. IFS=$as_save_IFS
  17814. test -z "$as_dir" && as_dir=.
  17815. - for ac_exec_ext in '' $ac_executable_extensions; do
  17816. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  17817. + for ac_exec_ext in '' $ac_executable_extensions; do
  17818. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17819. ac_cv_prog_ac_ct_CC="gcc"
  17820. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17821. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17822. break 2
  17823. fi
  17824. done
  17825. -done
  17826. + done
  17827. IFS=$as_save_IFS
  17828. fi
  17829. fi
  17830. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17831. if test -n "$ac_ct_CC"; then
  17832. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17833. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  17834. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  17835. +$as_echo "$ac_ct_CC" >&6; }
  17836. else
  17837. - { echo "$as_me:$LINENO: result: no" >&5
  17838. -echo "${ECHO_T}no" >&6; }
  17839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17840. +$as_echo "no" >&6; }
  17841. fi
  17842. if test "x$ac_ct_CC" = x; then
  17843. @@ -2489,12 +2973,8 @@
  17844. else
  17845. case $cross_compiling:$ac_tool_warned in
  17846. yes:)
  17847. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17848. -whose name does not start with the host triplet. If you think this
  17849. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17850. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17851. -whose name does not start with the host triplet. If you think this
  17852. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17853. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17854. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17855. ac_tool_warned=yes ;;
  17856. esac
  17857. CC=$ac_ct_CC
  17858. @@ -2507,10 +2987,10 @@
  17859. if test -n "$ac_tool_prefix"; then
  17860. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17861. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17862. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17863. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17864. -if test "${ac_cv_prog_CC+set}" = set; then
  17865. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17866. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17867. +$as_echo_n "checking for $ac_word... " >&6; }
  17868. +if test "${ac_cv_prog_CC+set}" = set; then :
  17869. + $as_echo_n "(cached) " >&6
  17870. else
  17871. if test -n "$CC"; then
  17872. ac_cv_prog_CC="$CC" # Let the user override the test.
  17873. @@ -2520,25 +3000,25 @@
  17874. do
  17875. IFS=$as_save_IFS
  17876. test -z "$as_dir" && as_dir=.
  17877. - for ac_exec_ext in '' $ac_executable_extensions; do
  17878. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  17879. + for ac_exec_ext in '' $ac_executable_extensions; do
  17880. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17881. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17882. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17883. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17884. break 2
  17885. fi
  17886. done
  17887. -done
  17888. + done
  17889. IFS=$as_save_IFS
  17890. fi
  17891. fi
  17892. CC=$ac_cv_prog_CC
  17893. if test -n "$CC"; then
  17894. - { echo "$as_me:$LINENO: result: $CC" >&5
  17895. -echo "${ECHO_T}$CC" >&6; }
  17896. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17897. +$as_echo "$CC" >&6; }
  17898. else
  17899. - { echo "$as_me:$LINENO: result: no" >&5
  17900. -echo "${ECHO_T}no" >&6; }
  17901. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17902. +$as_echo "no" >&6; }
  17903. fi
  17904. @@ -2547,10 +3027,10 @@
  17905. if test -z "$CC"; then
  17906. # Extract the first word of "cc", so it can be a program name with args.
  17907. set dummy cc; ac_word=$2
  17908. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17909. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17910. -if test "${ac_cv_prog_CC+set}" = set; then
  17911. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17912. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17913. +$as_echo_n "checking for $ac_word... " >&6; }
  17914. +if test "${ac_cv_prog_CC+set}" = set; then :
  17915. + $as_echo_n "(cached) " >&6
  17916. else
  17917. if test -n "$CC"; then
  17918. ac_cv_prog_CC="$CC" # Let the user override the test.
  17919. @@ -2561,18 +3041,18 @@
  17920. do
  17921. IFS=$as_save_IFS
  17922. test -z "$as_dir" && as_dir=.
  17923. - for ac_exec_ext in '' $ac_executable_extensions; do
  17924. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  17925. + for ac_exec_ext in '' $ac_executable_extensions; do
  17926. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17927. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17928. ac_prog_rejected=yes
  17929. continue
  17930. fi
  17931. ac_cv_prog_CC="cc"
  17932. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17933. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17934. break 2
  17935. fi
  17936. done
  17937. -done
  17938. + done
  17939. IFS=$as_save_IFS
  17940. if test $ac_prog_rejected = yes; then
  17941. @@ -2591,11 +3071,11 @@
  17942. fi
  17943. CC=$ac_cv_prog_CC
  17944. if test -n "$CC"; then
  17945. - { echo "$as_me:$LINENO: result: $CC" >&5
  17946. -echo "${ECHO_T}$CC" >&6; }
  17947. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17948. +$as_echo "$CC" >&6; }
  17949. else
  17950. - { echo "$as_me:$LINENO: result: no" >&5
  17951. -echo "${ECHO_T}no" >&6; }
  17952. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17953. +$as_echo "no" >&6; }
  17954. fi
  17955. @@ -2606,10 +3086,10 @@
  17956. do
  17957. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17958. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17959. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17960. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17961. -if test "${ac_cv_prog_CC+set}" = set; then
  17962. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17963. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17964. +$as_echo_n "checking for $ac_word... " >&6; }
  17965. +if test "${ac_cv_prog_CC+set}" = set; then :
  17966. + $as_echo_n "(cached) " >&6
  17967. else
  17968. if test -n "$CC"; then
  17969. ac_cv_prog_CC="$CC" # Let the user override the test.
  17970. @@ -2619,25 +3099,25 @@
  17971. do
  17972. IFS=$as_save_IFS
  17973. test -z "$as_dir" && as_dir=.
  17974. - for ac_exec_ext in '' $ac_executable_extensions; do
  17975. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  17976. + for ac_exec_ext in '' $ac_executable_extensions; do
  17977. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17978. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17979. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17980. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17981. break 2
  17982. fi
  17983. done
  17984. -done
  17985. + done
  17986. IFS=$as_save_IFS
  17987. fi
  17988. fi
  17989. CC=$ac_cv_prog_CC
  17990. if test -n "$CC"; then
  17991. - { echo "$as_me:$LINENO: result: $CC" >&5
  17992. -echo "${ECHO_T}$CC" >&6; }
  17993. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17994. +$as_echo "$CC" >&6; }
  17995. else
  17996. - { echo "$as_me:$LINENO: result: no" >&5
  17997. -echo "${ECHO_T}no" >&6; }
  17998. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17999. +$as_echo "no" >&6; }
  18000. fi
  18001. @@ -2650,10 +3130,10 @@
  18002. do
  18003. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18004. set dummy $ac_prog; ac_word=$2
  18005. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18006. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18007. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  18008. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18009. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18010. +$as_echo_n "checking for $ac_word... " >&6; }
  18011. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  18012. + $as_echo_n "(cached) " >&6
  18013. else
  18014. if test -n "$ac_ct_CC"; then
  18015. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  18016. @@ -2663,25 +3143,25 @@
  18017. do
  18018. IFS=$as_save_IFS
  18019. test -z "$as_dir" && as_dir=.
  18020. - for ac_exec_ext in '' $ac_executable_extensions; do
  18021. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  18022. + for ac_exec_ext in '' $ac_executable_extensions; do
  18023. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18024. ac_cv_prog_ac_ct_CC="$ac_prog"
  18025. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18026. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18027. break 2
  18028. fi
  18029. done
  18030. -done
  18031. + done
  18032. IFS=$as_save_IFS
  18033. fi
  18034. fi
  18035. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  18036. if test -n "$ac_ct_CC"; then
  18037. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  18038. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  18039. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  18040. +$as_echo "$ac_ct_CC" >&6; }
  18041. else
  18042. - { echo "$as_me:$LINENO: result: no" >&5
  18043. -echo "${ECHO_T}no" >&6; }
  18044. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18045. +$as_echo "no" >&6; }
  18046. fi
  18047. @@ -2693,12 +3173,8 @@
  18048. else
  18049. case $cross_compiling:$ac_tool_warned in
  18050. yes:)
  18051. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18052. -whose name does not start with the host triplet. If you think this
  18053. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  18054. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18055. -whose name does not start with the host triplet. If you think this
  18056. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18057. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18058. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18059. ac_tool_warned=yes ;;
  18060. esac
  18061. CC=$ac_ct_CC
  18062. @@ -2708,51 +3184,37 @@
  18063. fi
  18064. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  18065. -See \`config.log' for more details." >&5
  18066. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  18067. -See \`config.log' for more details." >&2;}
  18068. - { (exit 1); exit 1; }; }
  18069. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18070. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18071. +as_fn_error "no acceptable C compiler found in \$PATH
  18072. +See \`config.log' for more details." "$LINENO" 5; }
  18073. # Provide some information about the compiler.
  18074. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  18075. -ac_compiler=`set X $ac_compile; echo $2`
  18076. -{ (ac_try="$ac_compiler --version >&5"
  18077. -case "(($ac_try" in
  18078. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18079. - *) ac_try_echo=$ac_try;;
  18080. -esac
  18081. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18082. - (eval "$ac_compiler --version >&5") 2>&5
  18083. - ac_status=$?
  18084. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18085. - (exit $ac_status); }
  18086. -{ (ac_try="$ac_compiler -v >&5"
  18087. -case "(($ac_try" in
  18088. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18089. - *) ac_try_echo=$ac_try;;
  18090. -esac
  18091. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18092. - (eval "$ac_compiler -v >&5") 2>&5
  18093. - ac_status=$?
  18094. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18095. - (exit $ac_status); }
  18096. -{ (ac_try="$ac_compiler -V >&5"
  18097. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  18098. +set X $ac_compile
  18099. +ac_compiler=$2
  18100. +for ac_option in --version -v -V -qversion; do
  18101. + { { ac_try="$ac_compiler $ac_option >&5"
  18102. case "(($ac_try" in
  18103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18104. *) ac_try_echo=$ac_try;;
  18105. esac
  18106. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18107. - (eval "$ac_compiler -V >&5") 2>&5
  18108. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18109. +$as_echo "$ac_try_echo"; } >&5
  18110. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  18111. ac_status=$?
  18112. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18113. - (exit $ac_status); }
  18114. + if test -s conftest.err; then
  18115. + sed '10a\
  18116. +... rest of stderr output deleted ...
  18117. + 10q' conftest.err >conftest.er1
  18118. + cat conftest.er1 >&5
  18119. + fi
  18120. + rm -f conftest.er1 conftest.err
  18121. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18122. + test $ac_status = 0; }
  18123. +done
  18124. -cat >conftest.$ac_ext <<_ACEOF
  18125. -/* confdefs.h. */
  18126. -_ACEOF
  18127. -cat confdefs.h >>conftest.$ac_ext
  18128. -cat >>conftest.$ac_ext <<_ACEOF
  18129. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18130. /* end confdefs.h. */
  18131. int
  18132. @@ -2764,59 +3226,55 @@
  18133. }
  18134. _ACEOF
  18135. ac_clean_files_save=$ac_clean_files
  18136. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  18137. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  18138. # Try to create an executable without -o first, disregard a.out.
  18139. # It will help us diagnose broken compilers, and finding out an intuition
  18140. # of exeext.
  18141. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  18142. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  18143. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  18144. -#
  18145. -# List of possible output files, starting from the most likely.
  18146. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  18147. -# only as a last resort. b.out is created by i960 compilers.
  18148. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  18149. -#
  18150. -# The IRIX 6 linker writes into existing files which may not be
  18151. -# executable, retaining their permissions. Remove them first so a
  18152. -# subsequent execution test works.
  18153. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  18154. +$as_echo_n "checking whether the C compiler works... " >&6; }
  18155. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  18156. +
  18157. +# The possible output files:
  18158. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  18159. +
  18160. ac_rmfiles=
  18161. for ac_file in $ac_files
  18162. do
  18163. case $ac_file in
  18164. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  18165. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  18166. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  18167. esac
  18168. done
  18169. rm -f $ac_rmfiles
  18170. -if { (ac_try="$ac_link_default"
  18171. +if { { ac_try="$ac_link_default"
  18172. case "(($ac_try" in
  18173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18174. *) ac_try_echo=$ac_try;;
  18175. esac
  18176. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18177. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18178. +$as_echo "$ac_try_echo"; } >&5
  18179. (eval "$ac_link_default") 2>&5
  18180. ac_status=$?
  18181. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18182. - (exit $ac_status); }; then
  18183. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18184. + test $ac_status = 0; }; then :
  18185. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  18186. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  18187. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  18188. # so that the user can short-circuit this test for compilers unknown to
  18189. # Autoconf.
  18190. -for ac_file in $ac_files
  18191. +for ac_file in $ac_files ''
  18192. do
  18193. test -f "$ac_file" || continue
  18194. case $ac_file in
  18195. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  18196. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  18197. ;;
  18198. [ab].out )
  18199. # We found the default executable, but exeext='' is most
  18200. # certainly right.
  18201. break;;
  18202. *.* )
  18203. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  18204. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  18205. then :; else
  18206. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18207. fi
  18208. @@ -2833,76 +3291,44 @@
  18209. test "$ac_cv_exeext" = no && ac_cv_exeext=
  18210. else
  18211. - echo "$as_me: failed program was:" >&5
  18212. -sed 's/^/| /' conftest.$ac_ext >&5
  18213. -
  18214. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  18215. -See \`config.log' for more details." >&5
  18216. -echo "$as_me: error: C compiler cannot create executables
  18217. -See \`config.log' for more details." >&2;}
  18218. - { (exit 77); exit 77; }; }
  18219. + ac_file=''
  18220. fi
  18221. -
  18222. +if test -z "$ac_file"; then :
  18223. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18224. +$as_echo "no" >&6; }
  18225. +$as_echo "$as_me: failed program was:" >&5
  18226. +sed 's/^/| /' conftest.$ac_ext >&5
  18227. +
  18228. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18229. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18230. +{ as_fn_set_status 77
  18231. +as_fn_error "C compiler cannot create executables
  18232. +See \`config.log' for more details." "$LINENO" 5; }; }
  18233. +else
  18234. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18235. +$as_echo "yes" >&6; }
  18236. +fi
  18237. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  18238. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  18239. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  18240. +$as_echo "$ac_file" >&6; }
  18241. ac_exeext=$ac_cv_exeext
  18242. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  18243. -echo "${ECHO_T}$ac_file" >&6; }
  18244. -
  18245. -# Check that the compiler produces executables we can run. If not, either
  18246. -# the compiler is broken, or we cross compile.
  18247. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  18248. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  18249. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  18250. -# If not cross compiling, check that we can run a simple program.
  18251. -if test "$cross_compiling" != yes; then
  18252. - if { ac_try='./$ac_file'
  18253. - { (case "(($ac_try" in
  18254. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18255. - *) ac_try_echo=$ac_try;;
  18256. -esac
  18257. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18258. - (eval "$ac_try") 2>&5
  18259. - ac_status=$?
  18260. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18261. - (exit $ac_status); }; }; then
  18262. - cross_compiling=no
  18263. - else
  18264. - if test "$cross_compiling" = maybe; then
  18265. - cross_compiling=yes
  18266. - else
  18267. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  18268. -If you meant to cross compile, use \`--host'.
  18269. -See \`config.log' for more details." >&5
  18270. -echo "$as_me: error: cannot run C compiled programs.
  18271. -If you meant to cross compile, use \`--host'.
  18272. -See \`config.log' for more details." >&2;}
  18273. - { (exit 1); exit 1; }; }
  18274. - fi
  18275. - fi
  18276. -fi
  18277. -{ echo "$as_me:$LINENO: result: yes" >&5
  18278. -echo "${ECHO_T}yes" >&6; }
  18279. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  18280. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  18281. ac_clean_files=$ac_clean_files_save
  18282. -# Check that the compiler produces executables we can run. If not, either
  18283. -# the compiler is broken, or we cross compile.
  18284. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  18285. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  18286. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  18287. -echo "${ECHO_T}$cross_compiling" >&6; }
  18288. -
  18289. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  18290. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  18291. -if { (ac_try="$ac_link"
  18292. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  18293. +$as_echo_n "checking for suffix of executables... " >&6; }
  18294. +if { { ac_try="$ac_link"
  18295. case "(($ac_try" in
  18296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18297. *) ac_try_echo=$ac_try;;
  18298. esac
  18299. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18300. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18301. +$as_echo "$ac_try_echo"; } >&5
  18302. (eval "$ac_link") 2>&5
  18303. ac_status=$?
  18304. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18305. - (exit $ac_status); }; then
  18306. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18307. + test $ac_status = 0; }; then :
  18308. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  18309. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  18310. # work properly (i.e., refer to `conftest.exe'), while it won't with
  18311. @@ -2910,93 +3336,141 @@
  18312. for ac_file in conftest.exe conftest conftest.*; do
  18313. test -f "$ac_file" || continue
  18314. case $ac_file in
  18315. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  18316. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  18317. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18318. break;;
  18319. * ) break;;
  18320. esac
  18321. done
  18322. else
  18323. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  18324. -See \`config.log' for more details." >&5
  18325. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  18326. -See \`config.log' for more details." >&2;}
  18327. - { (exit 1); exit 1; }; }
  18328. -fi
  18329. -
  18330. -rm -f conftest$ac_cv_exeext
  18331. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  18332. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  18333. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18334. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18335. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  18336. +See \`config.log' for more details." "$LINENO" 5; }
  18337. +fi
  18338. +rm -f conftest conftest$ac_cv_exeext
  18339. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  18340. +$as_echo "$ac_cv_exeext" >&6; }
  18341. rm -f conftest.$ac_ext
  18342. EXEEXT=$ac_cv_exeext
  18343. ac_exeext=$EXEEXT
  18344. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  18345. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  18346. -if test "${ac_cv_objext+set}" = set; then
  18347. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18348. -else
  18349. - cat >conftest.$ac_ext <<_ACEOF
  18350. -/* confdefs.h. */
  18351. -_ACEOF
  18352. -cat confdefs.h >>conftest.$ac_ext
  18353. -cat >>conftest.$ac_ext <<_ACEOF
  18354. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18355. /* end confdefs.h. */
  18356. -
  18357. +#include <stdio.h>
  18358. int
  18359. main ()
  18360. {
  18361. +FILE *f = fopen ("conftest.out", "w");
  18362. + return ferror (f) || fclose (f) != 0;
  18363. ;
  18364. return 0;
  18365. }
  18366. _ACEOF
  18367. -rm -f conftest.o conftest.obj
  18368. -if { (ac_try="$ac_compile"
  18369. +ac_clean_files="$ac_clean_files conftest.out"
  18370. +# Check that the compiler produces executables we can run. If not, either
  18371. +# the compiler is broken, or we cross compile.
  18372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  18373. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  18374. +if test "$cross_compiling" != yes; then
  18375. + { { ac_try="$ac_link"
  18376. case "(($ac_try" in
  18377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18378. *) ac_try_echo=$ac_try;;
  18379. esac
  18380. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18381. - (eval "$ac_compile") 2>&5
  18382. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18383. +$as_echo "$ac_try_echo"; } >&5
  18384. + (eval "$ac_link") 2>&5
  18385. ac_status=$?
  18386. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18387. - (exit $ac_status); }; then
  18388. - for ac_file in conftest.o conftest.obj conftest.*; do
  18389. - test -f "$ac_file" || continue;
  18390. - case $ac_file in
  18391. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  18392. - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  18393. - break;;
  18394. - esac
  18395. -done
  18396. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18397. + test $ac_status = 0; }
  18398. + if { ac_try='./conftest$ac_cv_exeext'
  18399. + { { case "(($ac_try" in
  18400. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18401. + *) ac_try_echo=$ac_try;;
  18402. +esac
  18403. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18404. +$as_echo "$ac_try_echo"; } >&5
  18405. + (eval "$ac_try") 2>&5
  18406. + ac_status=$?
  18407. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18408. + test $ac_status = 0; }; }; then
  18409. + cross_compiling=no
  18410. + else
  18411. + if test "$cross_compiling" = maybe; then
  18412. + cross_compiling=yes
  18413. + else
  18414. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18415. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18416. +as_fn_error "cannot run C compiled programs.
  18417. +If you meant to cross compile, use \`--host'.
  18418. +See \`config.log' for more details." "$LINENO" 5; }
  18419. + fi
  18420. + fi
  18421. +fi
  18422. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  18423. +$as_echo "$cross_compiling" >&6; }
  18424. +
  18425. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  18426. +ac_clean_files=$ac_clean_files_save
  18427. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  18428. +$as_echo_n "checking for suffix of object files... " >&6; }
  18429. +if test "${ac_cv_objext+set}" = set; then :
  18430. + $as_echo_n "(cached) " >&6
  18431. +else
  18432. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18433. +/* end confdefs.h. */
  18434. +
  18435. +int
  18436. +main ()
  18437. +{
  18438. +
  18439. + ;
  18440. + return 0;
  18441. +}
  18442. +_ACEOF
  18443. +rm -f conftest.o conftest.obj
  18444. +if { { ac_try="$ac_compile"
  18445. +case "(($ac_try" in
  18446. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18447. + *) ac_try_echo=$ac_try;;
  18448. +esac
  18449. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18450. +$as_echo "$ac_try_echo"; } >&5
  18451. + (eval "$ac_compile") 2>&5
  18452. + ac_status=$?
  18453. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18454. + test $ac_status = 0; }; then :
  18455. + for ac_file in conftest.o conftest.obj conftest.*; do
  18456. + test -f "$ac_file" || continue;
  18457. + case $ac_file in
  18458. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  18459. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  18460. + break;;
  18461. + esac
  18462. +done
  18463. else
  18464. - echo "$as_me: failed program was:" >&5
  18465. + $as_echo "$as_me: failed program was:" >&5
  18466. sed 's/^/| /' conftest.$ac_ext >&5
  18467. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  18468. -See \`config.log' for more details." >&5
  18469. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  18470. -See \`config.log' for more details." >&2;}
  18471. - { (exit 1); exit 1; }; }
  18472. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18473. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18474. +as_fn_error "cannot compute suffix of object files: cannot compile
  18475. +See \`config.log' for more details." "$LINENO" 5; }
  18476. fi
  18477. -
  18478. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  18479. fi
  18480. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  18481. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  18482. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  18483. +$as_echo "$ac_cv_objext" >&6; }
  18484. OBJEXT=$ac_cv_objext
  18485. ac_objext=$OBJEXT
  18486. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  18487. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  18488. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  18489. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18490. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  18491. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  18492. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  18493. + $as_echo_n "(cached) " >&6
  18494. else
  18495. - cat >conftest.$ac_ext <<_ACEOF
  18496. -/* confdefs.h. */
  18497. -_ACEOF
  18498. -cat confdefs.h >>conftest.$ac_ext
  18499. -cat >>conftest.$ac_ext <<_ACEOF
  18500. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18501. /* end confdefs.h. */
  18502. int
  18503. @@ -3010,71 +3484,34 @@
  18504. return 0;
  18505. }
  18506. _ACEOF
  18507. -rm -f conftest.$ac_objext
  18508. -if { (ac_try="$ac_compile"
  18509. -case "(($ac_try" in
  18510. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18511. - *) ac_try_echo=$ac_try;;
  18512. -esac
  18513. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18514. - (eval "$ac_compile") 2>conftest.er1
  18515. - ac_status=$?
  18516. - grep -v '^ *+' conftest.er1 >conftest.err
  18517. - rm -f conftest.er1
  18518. - cat conftest.err >&5
  18519. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18520. - (exit $ac_status); } &&
  18521. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18522. - { (case "(($ac_try" in
  18523. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18524. - *) ac_try_echo=$ac_try;;
  18525. -esac
  18526. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18527. - (eval "$ac_try") 2>&5
  18528. - ac_status=$?
  18529. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18530. - (exit $ac_status); }; } &&
  18531. - { ac_try='test -s conftest.$ac_objext'
  18532. - { (case "(($ac_try" in
  18533. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18534. - *) ac_try_echo=$ac_try;;
  18535. -esac
  18536. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18537. - (eval "$ac_try") 2>&5
  18538. - ac_status=$?
  18539. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18540. - (exit $ac_status); }; }; then
  18541. +if ac_fn_c_try_compile "$LINENO"; then :
  18542. ac_compiler_gnu=yes
  18543. else
  18544. - echo "$as_me: failed program was:" >&5
  18545. -sed 's/^/| /' conftest.$ac_ext >&5
  18546. -
  18547. - ac_compiler_gnu=no
  18548. + ac_compiler_gnu=no
  18549. fi
  18550. -
  18551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18552. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  18553. fi
  18554. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  18555. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  18556. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  18557. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  18558. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  18559. +if test $ac_compiler_gnu = yes; then
  18560. + GCC=yes
  18561. +else
  18562. + GCC=
  18563. +fi
  18564. ac_test_CFLAGS=${CFLAGS+set}
  18565. ac_save_CFLAGS=$CFLAGS
  18566. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  18567. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  18568. -if test "${ac_cv_prog_cc_g+set}" = set; then
  18569. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18570. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  18571. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  18572. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  18573. + $as_echo_n "(cached) " >&6
  18574. else
  18575. ac_save_c_werror_flag=$ac_c_werror_flag
  18576. ac_c_werror_flag=yes
  18577. ac_cv_prog_cc_g=no
  18578. CFLAGS="-g"
  18579. - cat >conftest.$ac_ext <<_ACEOF
  18580. -/* confdefs.h. */
  18581. -_ACEOF
  18582. -cat confdefs.h >>conftest.$ac_ext
  18583. -cat >>conftest.$ac_ext <<_ACEOF
  18584. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18585. /* end confdefs.h. */
  18586. int
  18587. @@ -3085,51 +3522,11 @@
  18588. return 0;
  18589. }
  18590. _ACEOF
  18591. -rm -f conftest.$ac_objext
  18592. -if { (ac_try="$ac_compile"
  18593. -case "(($ac_try" in
  18594. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18595. - *) ac_try_echo=$ac_try;;
  18596. -esac
  18597. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18598. - (eval "$ac_compile") 2>conftest.er1
  18599. - ac_status=$?
  18600. - grep -v '^ *+' conftest.er1 >conftest.err
  18601. - rm -f conftest.er1
  18602. - cat conftest.err >&5
  18603. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18604. - (exit $ac_status); } &&
  18605. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18606. - { (case "(($ac_try" in
  18607. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18608. - *) ac_try_echo=$ac_try;;
  18609. -esac
  18610. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18611. - (eval "$ac_try") 2>&5
  18612. - ac_status=$?
  18613. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18614. - (exit $ac_status); }; } &&
  18615. - { ac_try='test -s conftest.$ac_objext'
  18616. - { (case "(($ac_try" in
  18617. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18618. - *) ac_try_echo=$ac_try;;
  18619. -esac
  18620. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18621. - (eval "$ac_try") 2>&5
  18622. - ac_status=$?
  18623. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18624. - (exit $ac_status); }; }; then
  18625. +if ac_fn_c_try_compile "$LINENO"; then :
  18626. ac_cv_prog_cc_g=yes
  18627. else
  18628. - echo "$as_me: failed program was:" >&5
  18629. -sed 's/^/| /' conftest.$ac_ext >&5
  18630. -
  18631. - CFLAGS=""
  18632. - cat >conftest.$ac_ext <<_ACEOF
  18633. -/* confdefs.h. */
  18634. -_ACEOF
  18635. -cat confdefs.h >>conftest.$ac_ext
  18636. -cat >>conftest.$ac_ext <<_ACEOF
  18637. + CFLAGS=""
  18638. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18639. /* end confdefs.h. */
  18640. int
  18641. @@ -3140,52 +3537,12 @@
  18642. return 0;
  18643. }
  18644. _ACEOF
  18645. -rm -f conftest.$ac_objext
  18646. -if { (ac_try="$ac_compile"
  18647. -case "(($ac_try" in
  18648. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18649. - *) ac_try_echo=$ac_try;;
  18650. -esac
  18651. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18652. - (eval "$ac_compile") 2>conftest.er1
  18653. - ac_status=$?
  18654. - grep -v '^ *+' conftest.er1 >conftest.err
  18655. - rm -f conftest.er1
  18656. - cat conftest.err >&5
  18657. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18658. - (exit $ac_status); } &&
  18659. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18660. - { (case "(($ac_try" in
  18661. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18662. - *) ac_try_echo=$ac_try;;
  18663. -esac
  18664. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18665. - (eval "$ac_try") 2>&5
  18666. - ac_status=$?
  18667. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18668. - (exit $ac_status); }; } &&
  18669. - { ac_try='test -s conftest.$ac_objext'
  18670. - { (case "(($ac_try" in
  18671. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18672. - *) ac_try_echo=$ac_try;;
  18673. -esac
  18674. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18675. - (eval "$ac_try") 2>&5
  18676. - ac_status=$?
  18677. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18678. - (exit $ac_status); }; }; then
  18679. - :
  18680. -else
  18681. - echo "$as_me: failed program was:" >&5
  18682. -sed 's/^/| /' conftest.$ac_ext >&5
  18683. +if ac_fn_c_try_compile "$LINENO"; then :
  18684. - ac_c_werror_flag=$ac_save_c_werror_flag
  18685. +else
  18686. + ac_c_werror_flag=$ac_save_c_werror_flag
  18687. CFLAGS="-g"
  18688. - cat >conftest.$ac_ext <<_ACEOF
  18689. -/* confdefs.h. */
  18690. -_ACEOF
  18691. -cat confdefs.h >>conftest.$ac_ext
  18692. -cat >>conftest.$ac_ext <<_ACEOF
  18693. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18694. /* end confdefs.h. */
  18695. int
  18696. @@ -3196,59 +3553,18 @@
  18697. return 0;
  18698. }
  18699. _ACEOF
  18700. -rm -f conftest.$ac_objext
  18701. -if { (ac_try="$ac_compile"
  18702. -case "(($ac_try" in
  18703. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18704. - *) ac_try_echo=$ac_try;;
  18705. -esac
  18706. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18707. - (eval "$ac_compile") 2>conftest.er1
  18708. - ac_status=$?
  18709. - grep -v '^ *+' conftest.er1 >conftest.err
  18710. - rm -f conftest.er1
  18711. - cat conftest.err >&5
  18712. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18713. - (exit $ac_status); } &&
  18714. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18715. - { (case "(($ac_try" in
  18716. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18717. - *) ac_try_echo=$ac_try;;
  18718. -esac
  18719. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18720. - (eval "$ac_try") 2>&5
  18721. - ac_status=$?
  18722. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18723. - (exit $ac_status); }; } &&
  18724. - { ac_try='test -s conftest.$ac_objext'
  18725. - { (case "(($ac_try" in
  18726. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18727. - *) ac_try_echo=$ac_try;;
  18728. -esac
  18729. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18730. - (eval "$ac_try") 2>&5
  18731. - ac_status=$?
  18732. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18733. - (exit $ac_status); }; }; then
  18734. +if ac_fn_c_try_compile "$LINENO"; then :
  18735. ac_cv_prog_cc_g=yes
  18736. -else
  18737. - echo "$as_me: failed program was:" >&5
  18738. -sed 's/^/| /' conftest.$ac_ext >&5
  18739. -
  18740. -
  18741. fi
  18742. -
  18743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18744. fi
  18745. -
  18746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18747. fi
  18748. -
  18749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18750. ac_c_werror_flag=$ac_save_c_werror_flag
  18751. fi
  18752. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  18753. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  18754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  18755. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  18756. if test "$ac_test_CFLAGS" = set; then
  18757. CFLAGS=$ac_save_CFLAGS
  18758. elif test $ac_cv_prog_cc_g = yes; then
  18759. @@ -3264,18 +3580,14 @@
  18760. CFLAGS=
  18761. fi
  18762. fi
  18763. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18764. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18765. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  18766. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18767. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  18768. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  18769. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  18770. + $as_echo_n "(cached) " >&6
  18771. else
  18772. ac_cv_prog_cc_c89=no
  18773. ac_save_CC=$CC
  18774. -cat >conftest.$ac_ext <<_ACEOF
  18775. -/* confdefs.h. */
  18776. -_ACEOF
  18777. -cat confdefs.h >>conftest.$ac_ext
  18778. -cat >>conftest.$ac_ext <<_ACEOF
  18779. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18780. /* end confdefs.h. */
  18781. #include <stdarg.h>
  18782. #include <stdio.h>
  18783. @@ -3332,48 +3644,9 @@
  18784. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18785. do
  18786. CC="$ac_save_CC $ac_arg"
  18787. - rm -f conftest.$ac_objext
  18788. -if { (ac_try="$ac_compile"
  18789. -case "(($ac_try" in
  18790. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18791. - *) ac_try_echo=$ac_try;;
  18792. -esac
  18793. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18794. - (eval "$ac_compile") 2>conftest.er1
  18795. - ac_status=$?
  18796. - grep -v '^ *+' conftest.er1 >conftest.err
  18797. - rm -f conftest.er1
  18798. - cat conftest.err >&5
  18799. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18800. - (exit $ac_status); } &&
  18801. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18802. - { (case "(($ac_try" in
  18803. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18804. - *) ac_try_echo=$ac_try;;
  18805. -esac
  18806. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18807. - (eval "$ac_try") 2>&5
  18808. - ac_status=$?
  18809. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18810. - (exit $ac_status); }; } &&
  18811. - { ac_try='test -s conftest.$ac_objext'
  18812. - { (case "(($ac_try" in
  18813. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18814. - *) ac_try_echo=$ac_try;;
  18815. -esac
  18816. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18817. - (eval "$ac_try") 2>&5
  18818. - ac_status=$?
  18819. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18820. - (exit $ac_status); }; }; then
  18821. + if ac_fn_c_try_compile "$LINENO"; then :
  18822. ac_cv_prog_cc_c89=$ac_arg
  18823. -else
  18824. - echo "$as_me: failed program was:" >&5
  18825. -sed 's/^/| /' conftest.$ac_ext >&5
  18826. -
  18827. -
  18828. fi
  18829. -
  18830. rm -f core conftest.err conftest.$ac_objext
  18831. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18832. done
  18833. @@ -3384,17 +3657,19 @@
  18834. # AC_CACHE_VAL
  18835. case "x$ac_cv_prog_cc_c89" in
  18836. x)
  18837. - { echo "$as_me:$LINENO: result: none needed" >&5
  18838. -echo "${ECHO_T}none needed" >&6; } ;;
  18839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  18840. +$as_echo "none needed" >&6; } ;;
  18841. xno)
  18842. - { echo "$as_me:$LINENO: result: unsupported" >&5
  18843. -echo "${ECHO_T}unsupported" >&6; } ;;
  18844. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  18845. +$as_echo "unsupported" >&6; } ;;
  18846. *)
  18847. CC="$CC $ac_cv_prog_cc_c89"
  18848. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18849. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18850. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  18851. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  18852. esac
  18853. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  18854. +fi
  18855. ac_ext=c
  18856. ac_cpp='$CPP $CPPFLAGS'
  18857. @@ -3409,44 +3684,44 @@
  18858. am_make=${MAKE-make}
  18859. cat > confinc << 'END'
  18860. am__doit:
  18861. - @echo done
  18862. + @echo this is the am__doit target
  18863. .PHONY: am__doit
  18864. END
  18865. # If we don't find an include directive, just comment out the code.
  18866. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  18867. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  18868. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  18869. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  18870. am__include="#"
  18871. am__quote=
  18872. _am_result=none
  18873. # First try GNU make style include.
  18874. echo "include confinc" > confmf
  18875. -# We grep out `Entering directory' and `Leaving directory'
  18876. -# messages which can occur if `w' ends up in MAKEFLAGS.
  18877. -# In particular we don't look at `^make:' because GNU make might
  18878. -# be invoked under some other name (usually "gmake"), in which
  18879. -# case it prints its new name instead of `make'.
  18880. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  18881. - am__include=include
  18882. - am__quote=
  18883. - _am_result=GNU
  18884. -fi
  18885. +# Ignore all kinds of additional output from `make'.
  18886. +case `$am_make -s -f confmf 2> /dev/null` in #(
  18887. +*the\ am__doit\ target*)
  18888. + am__include=include
  18889. + am__quote=
  18890. + _am_result=GNU
  18891. + ;;
  18892. +esac
  18893. # Now try BSD make style include.
  18894. if test "$am__include" = "#"; then
  18895. echo '.include "confinc"' > confmf
  18896. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  18897. - am__include=.include
  18898. - am__quote="\""
  18899. - _am_result=BSD
  18900. - fi
  18901. + case `$am_make -s -f confmf 2> /dev/null` in #(
  18902. + *the\ am__doit\ target*)
  18903. + am__include=.include
  18904. + am__quote="\""
  18905. + _am_result=BSD
  18906. + ;;
  18907. + esac
  18908. fi
  18909. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  18910. -echo "${ECHO_T}$_am_result" >&6; }
  18911. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  18912. +$as_echo "$_am_result" >&6; }
  18913. rm -f confinc confmf
  18914. # Check whether --enable-dependency-tracking was given.
  18915. -if test "${enable_dependency_tracking+set}" = set; then
  18916. +if test "${enable_dependency_tracking+set}" = set; then :
  18917. enableval=$enable_dependency_tracking;
  18918. fi
  18919. @@ -3454,9 +3729,7 @@
  18920. am_depcomp="$ac_aux_dir/depcomp"
  18921. AMDEPBACKSLASH='\'
  18922. fi
  18923. -
  18924. -
  18925. -if test "x$enable_dependency_tracking" != xno; then
  18926. + if test "x$enable_dependency_tracking" != xno; then
  18927. AMDEP_TRUE=
  18928. AMDEP_FALSE='#'
  18929. else
  18930. @@ -3466,13 +3739,12 @@
  18931. -
  18932. depcc="$CC" am_compiler_list=
  18933. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18934. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18935. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  18936. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18937. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  18938. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  18939. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  18940. + $as_echo_n "(cached) " >&6
  18941. else
  18942. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18943. # We make a subdir and do the tests there. Otherwise we can end up
  18944. @@ -3497,6 +3769,11 @@
  18945. if test "$am_compiler_list" = ""; then
  18946. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18947. fi
  18948. + am__universal=false
  18949. + case " $depcc " in #(
  18950. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  18951. + esac
  18952. +
  18953. for depmode in $am_compiler_list; do
  18954. # Setup a source with many dependencies, because some compilers
  18955. # like to wrap large dependency lists on column 80 (with \), and
  18956. @@ -3514,7 +3791,17 @@
  18957. done
  18958. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18959. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18960. + # mode. It turns out that the SunPro C++ compiler does not properly
  18961. + # handle `-M -o', and we need to detect this. Also, some Intel
  18962. + # versions had trouble with output in subdirs
  18963. + am__obj=sub/conftest.${OBJEXT-o}
  18964. + am__minus_obj="-o $am__obj"
  18965. case $depmode in
  18966. + gcc)
  18967. + # This depmode causes a compiler race in universal mode.
  18968. + test "$am__universal" = false || continue
  18969. + ;;
  18970. nosideeffect)
  18971. # after this tag, mechanisms are not by side-effect, so they'll
  18972. # only be used when explicitly requested
  18973. @@ -3524,18 +3811,23 @@
  18974. break
  18975. fi
  18976. ;;
  18977. + msvisualcpp | msvcmsys)
  18978. + # This compiler won't grok `-c -o', but also, the minuso test has
  18979. + # not run yet. These depmodes are late enough in the game, and
  18980. + # so weak that their functioning should not be impacted.
  18981. + am__obj=conftest.${OBJEXT-o}
  18982. + am__minus_obj=
  18983. + ;;
  18984. none) break ;;
  18985. esac
  18986. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18987. - # mode. It turns out that the SunPro C++ compiler does not properly
  18988. - # handle `-M -o', and we need to detect this.
  18989. if depmode=$depmode \
  18990. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18991. + source=sub/conftest.c object=$am__obj \
  18992. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18993. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18994. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  18995. >/dev/null 2>conftest.err &&
  18996. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18997. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18998. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18999. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  19000. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  19001. # icc doesn't choke on unknown options, it will just issue warnings
  19002. # or remarks (even with -Werror). So we grep stderr for any message
  19003. @@ -3559,13 +3851,11 @@
  19004. fi
  19005. fi
  19006. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  19007. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  19008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  19009. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  19010. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  19011. -
  19012. -
  19013. -if
  19014. + if
  19015. test "x$enable_dependency_tracking" != xno \
  19016. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  19017. am__fastdepCC_TRUE=
  19018. @@ -3576,95 +3866,16 @@
  19019. fi
  19020. -# Find a good install program. We prefer a C program (faster),
  19021. -# so one script is as good as another. But avoid the broken or
  19022. -# incompatible versions:
  19023. -# SysV /etc/install, /usr/sbin/install
  19024. -# SunOS /usr/etc/install
  19025. -# IRIX /sbin/install
  19026. -# AIX /bin/install
  19027. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  19028. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  19029. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  19030. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  19031. -# OS/2's system install, which has a completely different semantic
  19032. -# ./install, which can be erroneously created by make from ./install.sh.
  19033. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  19034. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  19035. -if test -z "$INSTALL"; then
  19036. -if test "${ac_cv_path_install+set}" = set; then
  19037. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19038. -else
  19039. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19040. -for as_dir in $PATH
  19041. -do
  19042. - IFS=$as_save_IFS
  19043. - test -z "$as_dir" && as_dir=.
  19044. - # Account for people who put trailing slashes in PATH elements.
  19045. -case $as_dir/ in
  19046. - ./ | .// | /cC/* | \
  19047. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  19048. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  19049. - /usr/ucb/* ) ;;
  19050. - *)
  19051. - # OSF1 and SCO ODT 3.0 have their own names for install.
  19052. - # Don't use installbsd from OSF since it installs stuff as root
  19053. - # by default.
  19054. - for ac_prog in ginstall scoinst install; do
  19055. - for ac_exec_ext in '' $ac_executable_extensions; do
  19056. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  19057. - if test $ac_prog = install &&
  19058. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19059. - # AIX install. It has an incompatible calling convention.
  19060. - :
  19061. - elif test $ac_prog = install &&
  19062. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19063. - # program-specific install script used by HP pwplus--don't use.
  19064. - :
  19065. - else
  19066. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  19067. - break 3
  19068. - fi
  19069. - fi
  19070. - done
  19071. - done
  19072. - ;;
  19073. -esac
  19074. -done
  19075. -IFS=$as_save_IFS
  19076. -
  19077. -
  19078. -fi
  19079. - if test "${ac_cv_path_install+set}" = set; then
  19080. - INSTALL=$ac_cv_path_install
  19081. - else
  19082. - # As a last resort, use the slow shell script. Don't cache a
  19083. - # value for INSTALL within a source directory, because that will
  19084. - # break other packages using the cache if that directory is
  19085. - # removed, or if the value is a relative name.
  19086. - INSTALL=$ac_install_sh
  19087. - fi
  19088. -fi
  19089. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  19090. -echo "${ECHO_T}$INSTALL" >&6; }
  19091. -
  19092. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  19093. -# It thinks the first close brace ends the variable substitution.
  19094. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  19095. -
  19096. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  19097. -
  19098. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  19099. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19100. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  19101. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  19102. +$as_echo_n "checking whether ln -s works... " >&6; }
  19103. LN_S=$as_ln_s
  19104. if test "$LN_S" = "ln -s"; then
  19105. - { echo "$as_me:$LINENO: result: yes" >&5
  19106. -echo "${ECHO_T}yes" >&6; }
  19107. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19108. +$as_echo "yes" >&6; }
  19109. else
  19110. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19111. -echo "${ECHO_T}no, using $LN_S" >&6; }
  19112. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  19113. +$as_echo "no, using $LN_S" >&6; }
  19114. fi
  19115. @@ -3674,15 +3885,15 @@
  19116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19119. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  19120. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  19121. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  19122. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  19123. # On Suns, sometimes $CPP names a directory.
  19124. if test -n "$CPP" && test -d "$CPP"; then
  19125. CPP=
  19126. fi
  19127. if test -z "$CPP"; then
  19128. - if test "${ac_cv_prog_CPP+set}" = set; then
  19129. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19130. + if test "${ac_cv_prog_CPP+set}" = set; then :
  19131. + $as_echo_n "(cached) " >&6
  19132. else
  19133. # Double quotes because CPP needs to be expanded
  19134. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  19135. @@ -3696,11 +3907,7 @@
  19136. # <limits.h> exists even on freestanding compilers.
  19137. # On the NeXT, cc -E runs the code through the compiler's parser,
  19138. # not just through cpp. "Syntax error" is here to catch this case.
  19139. - cat >conftest.$ac_ext <<_ACEOF
  19140. -/* confdefs.h. */
  19141. -_ACEOF
  19142. -cat confdefs.h >>conftest.$ac_ext
  19143. -cat >>conftest.$ac_ext <<_ACEOF
  19144. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19145. /* end confdefs.h. */
  19146. #ifdef __STDC__
  19147. # include <limits.h>
  19148. @@ -3709,90 +3916,34 @@
  19149. #endif
  19150. Syntax error
  19151. _ACEOF
  19152. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19153. -case "(($ac_try" in
  19154. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19155. - *) ac_try_echo=$ac_try;;
  19156. -esac
  19157. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19158. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19159. - ac_status=$?
  19160. - grep -v '^ *+' conftest.er1 >conftest.err
  19161. - rm -f conftest.er1
  19162. - cat conftest.err >&5
  19163. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19164. - (exit $ac_status); } >/dev/null; then
  19165. - if test -s conftest.err; then
  19166. - ac_cpp_err=$ac_c_preproc_warn_flag
  19167. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19168. - else
  19169. - ac_cpp_err=
  19170. - fi
  19171. -else
  19172. - ac_cpp_err=yes
  19173. -fi
  19174. -if test -z "$ac_cpp_err"; then
  19175. - :
  19176. -else
  19177. - echo "$as_me: failed program was:" >&5
  19178. -sed 's/^/| /' conftest.$ac_ext >&5
  19179. +if ac_fn_c_try_cpp "$LINENO"; then :
  19180. +else
  19181. # Broken: fails on valid input.
  19182. continue
  19183. fi
  19184. -
  19185. rm -f conftest.err conftest.$ac_ext
  19186. # OK, works on sane cases. Now check whether nonexistent headers
  19187. # can be detected and how.
  19188. - cat >conftest.$ac_ext <<_ACEOF
  19189. -/* confdefs.h. */
  19190. -_ACEOF
  19191. -cat confdefs.h >>conftest.$ac_ext
  19192. -cat >>conftest.$ac_ext <<_ACEOF
  19193. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19194. /* end confdefs.h. */
  19195. #include <ac_nonexistent.h>
  19196. _ACEOF
  19197. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19198. -case "(($ac_try" in
  19199. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19200. - *) ac_try_echo=$ac_try;;
  19201. -esac
  19202. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19203. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19204. - ac_status=$?
  19205. - grep -v '^ *+' conftest.er1 >conftest.err
  19206. - rm -f conftest.er1
  19207. - cat conftest.err >&5
  19208. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19209. - (exit $ac_status); } >/dev/null; then
  19210. - if test -s conftest.err; then
  19211. - ac_cpp_err=$ac_c_preproc_warn_flag
  19212. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19213. - else
  19214. - ac_cpp_err=
  19215. - fi
  19216. -else
  19217. - ac_cpp_err=yes
  19218. -fi
  19219. -if test -z "$ac_cpp_err"; then
  19220. +if ac_fn_c_try_cpp "$LINENO"; then :
  19221. # Broken: success on invalid input.
  19222. continue
  19223. else
  19224. - echo "$as_me: failed program was:" >&5
  19225. -sed 's/^/| /' conftest.$ac_ext >&5
  19226. -
  19227. # Passes both tests.
  19228. ac_preproc_ok=:
  19229. break
  19230. fi
  19231. -
  19232. rm -f conftest.err conftest.$ac_ext
  19233. done
  19234. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19235. rm -f conftest.err conftest.$ac_ext
  19236. -if $ac_preproc_ok; then
  19237. +if $ac_preproc_ok; then :
  19238. break
  19239. fi
  19240. @@ -3804,8 +3955,8 @@
  19241. else
  19242. ac_cv_prog_CPP=$CPP
  19243. fi
  19244. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  19245. -echo "${ECHO_T}$CPP" >&6; }
  19246. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  19247. +$as_echo "$CPP" >&6; }
  19248. ac_preproc_ok=false
  19249. for ac_c_preproc_warn_flag in '' yes
  19250. do
  19251. @@ -3815,11 +3966,7 @@
  19252. # <limits.h> exists even on freestanding compilers.
  19253. # On the NeXT, cc -E runs the code through the compiler's parser,
  19254. # not just through cpp. "Syntax error" is here to catch this case.
  19255. - cat >conftest.$ac_ext <<_ACEOF
  19256. -/* confdefs.h. */
  19257. -_ACEOF
  19258. -cat confdefs.h >>conftest.$ac_ext
  19259. -cat >>conftest.$ac_ext <<_ACEOF
  19260. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19261. /* end confdefs.h. */
  19262. #ifdef __STDC__
  19263. # include <limits.h>
  19264. @@ -3828,97 +3975,40 @@
  19265. #endif
  19266. Syntax error
  19267. _ACEOF
  19268. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19269. -case "(($ac_try" in
  19270. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19271. - *) ac_try_echo=$ac_try;;
  19272. -esac
  19273. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19274. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19275. - ac_status=$?
  19276. - grep -v '^ *+' conftest.er1 >conftest.err
  19277. - rm -f conftest.er1
  19278. - cat conftest.err >&5
  19279. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19280. - (exit $ac_status); } >/dev/null; then
  19281. - if test -s conftest.err; then
  19282. - ac_cpp_err=$ac_c_preproc_warn_flag
  19283. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19284. - else
  19285. - ac_cpp_err=
  19286. - fi
  19287. -else
  19288. - ac_cpp_err=yes
  19289. -fi
  19290. -if test -z "$ac_cpp_err"; then
  19291. - :
  19292. -else
  19293. - echo "$as_me: failed program was:" >&5
  19294. -sed 's/^/| /' conftest.$ac_ext >&5
  19295. +if ac_fn_c_try_cpp "$LINENO"; then :
  19296. +else
  19297. # Broken: fails on valid input.
  19298. continue
  19299. fi
  19300. -
  19301. rm -f conftest.err conftest.$ac_ext
  19302. # OK, works on sane cases. Now check whether nonexistent headers
  19303. # can be detected and how.
  19304. - cat >conftest.$ac_ext <<_ACEOF
  19305. -/* confdefs.h. */
  19306. -_ACEOF
  19307. -cat confdefs.h >>conftest.$ac_ext
  19308. -cat >>conftest.$ac_ext <<_ACEOF
  19309. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19310. /* end confdefs.h. */
  19311. #include <ac_nonexistent.h>
  19312. _ACEOF
  19313. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19314. -case "(($ac_try" in
  19315. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19316. - *) ac_try_echo=$ac_try;;
  19317. -esac
  19318. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19319. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19320. - ac_status=$?
  19321. - grep -v '^ *+' conftest.er1 >conftest.err
  19322. - rm -f conftest.er1
  19323. - cat conftest.err >&5
  19324. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19325. - (exit $ac_status); } >/dev/null; then
  19326. - if test -s conftest.err; then
  19327. - ac_cpp_err=$ac_c_preproc_warn_flag
  19328. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19329. - else
  19330. - ac_cpp_err=
  19331. - fi
  19332. -else
  19333. - ac_cpp_err=yes
  19334. -fi
  19335. -if test -z "$ac_cpp_err"; then
  19336. +if ac_fn_c_try_cpp "$LINENO"; then :
  19337. # Broken: success on invalid input.
  19338. continue
  19339. else
  19340. - echo "$as_me: failed program was:" >&5
  19341. -sed 's/^/| /' conftest.$ac_ext >&5
  19342. -
  19343. # Passes both tests.
  19344. ac_preproc_ok=:
  19345. break
  19346. fi
  19347. -
  19348. rm -f conftest.err conftest.$ac_ext
  19349. done
  19350. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19351. rm -f conftest.err conftest.$ac_ext
  19352. -if $ac_preproc_ok; then
  19353. - :
  19354. +if $ac_preproc_ok; then :
  19355. +
  19356. else
  19357. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  19358. -See \`config.log' for more details." >&5
  19359. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  19360. -See \`config.log' for more details." >&2;}
  19361. - { (exit 1); exit 1; }; }
  19362. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19363. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19364. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  19365. +See \`config.log' for more details." "$LINENO" 5; }
  19366. fi
  19367. ac_ext=c
  19368. @@ -3928,45 +4018,40 @@
  19369. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19370. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  19371. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  19372. -if test "${ac_cv_path_GREP+set}" = set; then
  19373. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19374. -else
  19375. - # Extract the first word of "grep ggrep" to use in msg output
  19376. -if test -z "$GREP"; then
  19377. -set dummy grep ggrep; ac_prog_name=$2
  19378. -if test "${ac_cv_path_GREP+set}" = set; then
  19379. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19380. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  19381. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  19382. +if test "${ac_cv_path_GREP+set}" = set; then :
  19383. + $as_echo_n "(cached) " >&6
  19384. else
  19385. + if test -z "$GREP"; then
  19386. ac_path_GREP_found=false
  19387. -# Loop through the user's path and test for each of PROGNAME-LIST
  19388. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19389. + # Loop through the user's path and test for each of PROGNAME-LIST
  19390. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19391. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19392. do
  19393. IFS=$as_save_IFS
  19394. test -z "$as_dir" && as_dir=.
  19395. - for ac_prog in grep ggrep; do
  19396. - for ac_exec_ext in '' $ac_executable_extensions; do
  19397. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  19398. - { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  19399. - # Check for GNU ac_path_GREP and select it if it is found.
  19400. + for ac_prog in grep ggrep; do
  19401. + for ac_exec_ext in '' $ac_executable_extensions; do
  19402. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  19403. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  19404. +# Check for GNU ac_path_GREP and select it if it is found.
  19405. # Check for GNU $ac_path_GREP
  19406. case `"$ac_path_GREP" --version 2>&1` in
  19407. *GNU*)
  19408. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  19409. *)
  19410. ac_count=0
  19411. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19412. + $as_echo_n 0123456789 >"conftest.in"
  19413. while :
  19414. do
  19415. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19416. mv "conftest.tmp" "conftest.in"
  19417. cp "conftest.in" "conftest.nl"
  19418. - echo 'GREP' >> "conftest.nl"
  19419. + $as_echo 'GREP' >> "conftest.nl"
  19420. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19421. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19422. - ac_count=`expr $ac_count + 1`
  19423. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19424. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  19425. # Best one so far, save it but keep looking for a better one
  19426. ac_cv_path_GREP="$ac_path_GREP"
  19427. @@ -3978,77 +4063,61 @@
  19428. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19429. esac
  19430. -
  19431. - $ac_path_GREP_found && break 3
  19432. + $ac_path_GREP_found && break 3
  19433. + done
  19434. + done
  19435. done
  19436. -done
  19437. -
  19438. -done
  19439. IFS=$as_save_IFS
  19440. -
  19441. -
  19442. -fi
  19443. -
  19444. -GREP="$ac_cv_path_GREP"
  19445. -if test -z "$GREP"; then
  19446. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  19447. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  19448. - { (exit 1); exit 1; }; }
  19449. -fi
  19450. -
  19451. + if test -z "$ac_cv_path_GREP"; then
  19452. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19453. + fi
  19454. else
  19455. ac_cv_path_GREP=$GREP
  19456. fi
  19457. -
  19458. fi
  19459. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  19460. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  19461. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  19462. +$as_echo "$ac_cv_path_GREP" >&6; }
  19463. GREP="$ac_cv_path_GREP"
  19464. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  19465. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  19466. -if test "${ac_cv_path_EGREP+set}" = set; then
  19467. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19468. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  19469. +$as_echo_n "checking for egrep... " >&6; }
  19470. +if test "${ac_cv_path_EGREP+set}" = set; then :
  19471. + $as_echo_n "(cached) " >&6
  19472. else
  19473. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  19474. then ac_cv_path_EGREP="$GREP -E"
  19475. else
  19476. - # Extract the first word of "egrep" to use in msg output
  19477. -if test -z "$EGREP"; then
  19478. -set dummy egrep; ac_prog_name=$2
  19479. -if test "${ac_cv_path_EGREP+set}" = set; then
  19480. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19481. -else
  19482. + if test -z "$EGREP"; then
  19483. ac_path_EGREP_found=false
  19484. -# Loop through the user's path and test for each of PROGNAME-LIST
  19485. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19486. + # Loop through the user's path and test for each of PROGNAME-LIST
  19487. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19488. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19489. do
  19490. IFS=$as_save_IFS
  19491. test -z "$as_dir" && as_dir=.
  19492. - for ac_prog in egrep; do
  19493. - for ac_exec_ext in '' $ac_executable_extensions; do
  19494. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  19495. - { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  19496. - # Check for GNU ac_path_EGREP and select it if it is found.
  19497. + for ac_prog in egrep; do
  19498. + for ac_exec_ext in '' $ac_executable_extensions; do
  19499. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  19500. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  19501. +# Check for GNU ac_path_EGREP and select it if it is found.
  19502. # Check for GNU $ac_path_EGREP
  19503. case `"$ac_path_EGREP" --version 2>&1` in
  19504. *GNU*)
  19505. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  19506. *)
  19507. ac_count=0
  19508. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19509. + $as_echo_n 0123456789 >"conftest.in"
  19510. while :
  19511. do
  19512. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19513. mv "conftest.tmp" "conftest.in"
  19514. cp "conftest.in" "conftest.nl"
  19515. - echo 'EGREP' >> "conftest.nl"
  19516. + $as_echo 'EGREP' >> "conftest.nl"
  19517. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19518. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19519. - ac_count=`expr $ac_count + 1`
  19520. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19521. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  19522. # Best one so far, save it but keep looking for a better one
  19523. ac_cv_path_EGREP="$ac_path_EGREP"
  19524. @@ -4060,54 +4129,39 @@
  19525. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19526. esac
  19527. -
  19528. - $ac_path_EGREP_found && break 3
  19529. + $ac_path_EGREP_found && break 3
  19530. + done
  19531. + done
  19532. done
  19533. -done
  19534. -
  19535. -done
  19536. IFS=$as_save_IFS
  19537. -
  19538. -
  19539. -fi
  19540. -
  19541. -EGREP="$ac_cv_path_EGREP"
  19542. -if test -z "$EGREP"; then
  19543. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  19544. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  19545. - { (exit 1); exit 1; }; }
  19546. -fi
  19547. -
  19548. + if test -z "$ac_cv_path_EGREP"; then
  19549. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19550. + fi
  19551. else
  19552. ac_cv_path_EGREP=$EGREP
  19553. fi
  19554. -
  19555. fi
  19556. fi
  19557. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  19558. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  19559. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  19560. +$as_echo "$ac_cv_path_EGREP" >&6; }
  19561. EGREP="$ac_cv_path_EGREP"
  19562. if test $ac_cv_c_compiler_gnu = yes; then
  19563. - { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  19564. -echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  19565. -if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  19566. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19567. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  19568. +$as_echo_n "checking whether $CC needs -traditional... " >&6; }
  19569. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  19570. + $as_echo_n "(cached) " >&6
  19571. else
  19572. ac_pattern="Autoconf.*'x'"
  19573. - cat >conftest.$ac_ext <<_ACEOF
  19574. -/* confdefs.h. */
  19575. -_ACEOF
  19576. -cat confdefs.h >>conftest.$ac_ext
  19577. -cat >>conftest.$ac_ext <<_ACEOF
  19578. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19579. /* end confdefs.h. */
  19580. #include <sgtty.h>
  19581. Autoconf TIOCGETP
  19582. _ACEOF
  19583. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19584. - $EGREP "$ac_pattern" >/dev/null 2>&1; then
  19585. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  19586. ac_cv_prog_gcc_traditional=yes
  19587. else
  19588. ac_cv_prog_gcc_traditional=no
  19589. @@ -4116,25 +4170,21 @@
  19590. if test $ac_cv_prog_gcc_traditional = no; then
  19591. - cat >conftest.$ac_ext <<_ACEOF
  19592. -/* confdefs.h. */
  19593. -_ACEOF
  19594. -cat confdefs.h >>conftest.$ac_ext
  19595. -cat >>conftest.$ac_ext <<_ACEOF
  19596. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19597. /* end confdefs.h. */
  19598. #include <termio.h>
  19599. Autoconf TCGETA
  19600. _ACEOF
  19601. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19602. - $EGREP "$ac_pattern" >/dev/null 2>&1; then
  19603. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  19604. ac_cv_prog_gcc_traditional=yes
  19605. fi
  19606. rm -f conftest*
  19607. fi
  19608. fi
  19609. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  19610. -echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  19611. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  19612. +$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  19613. if test $ac_cv_prog_gcc_traditional = yes; then
  19614. CC="$CC -traditional"
  19615. fi
  19616. @@ -4144,109 +4194,54 @@
  19617. CFLAGS="$CFLAGS -Wall"
  19618. fi
  19619. -# Check whether --enable-shared was given.
  19620. -if test "${enable_shared+set}" = set; then
  19621. - enableval=$enable_shared; p=${PACKAGE-default}
  19622. - case $enableval in
  19623. - yes) enable_shared=yes ;;
  19624. - no) enable_shared=no ;;
  19625. - *)
  19626. - enable_shared=no
  19627. - # Look at the argument we got. We use all the common list separators.
  19628. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19629. - for pkg in $enableval; do
  19630. - IFS="$lt_save_ifs"
  19631. - if test "X$pkg" = "X$p"; then
  19632. - enable_shared=yes
  19633. - fi
  19634. - done
  19635. - IFS="$lt_save_ifs"
  19636. - ;;
  19637. - esac
  19638. -else
  19639. - enable_shared=yes
  19640. -fi
  19641. +case `pwd` in
  19642. + *\ * | *\ *)
  19643. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  19644. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  19645. +esac
  19646. +
  19647. +
  19648. +
  19649. +macro_version='2.2.6b'
  19650. +macro_revision='1.3017'
  19651. +
  19652. +
  19653. +
  19654. +
  19655. -# Check whether --enable-static was given.
  19656. -if test "${enable_static+set}" = set; then
  19657. - enableval=$enable_static; p=${PACKAGE-default}
  19658. - case $enableval in
  19659. - yes) enable_static=yes ;;
  19660. - no) enable_static=no ;;
  19661. - *)
  19662. - enable_static=no
  19663. - # Look at the argument we got. We use all the common list separators.
  19664. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19665. - for pkg in $enableval; do
  19666. - IFS="$lt_save_ifs"
  19667. - if test "X$pkg" = "X$p"; then
  19668. - enable_static=yes
  19669. - fi
  19670. - done
  19671. - IFS="$lt_save_ifs"
  19672. - ;;
  19673. - esac
  19674. -else
  19675. - enable_static=yes
  19676. -fi
  19677. -# Check whether --enable-fast-install was given.
  19678. -if test "${enable_fast_install+set}" = set; then
  19679. - enableval=$enable_fast_install; p=${PACKAGE-default}
  19680. - case $enableval in
  19681. - yes) enable_fast_install=yes ;;
  19682. - no) enable_fast_install=no ;;
  19683. - *)
  19684. - enable_fast_install=no
  19685. - # Look at the argument we got. We use all the common list separators.
  19686. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19687. - for pkg in $enableval; do
  19688. - IFS="$lt_save_ifs"
  19689. - if test "X$pkg" = "X$p"; then
  19690. - enable_fast_install=yes
  19691. - fi
  19692. - done
  19693. - IFS="$lt_save_ifs"
  19694. - ;;
  19695. - esac
  19696. -else
  19697. - enable_fast_install=yes
  19698. -fi
  19699. +
  19700. +
  19701. +
  19702. +ltmain="$ac_aux_dir/ltmain.sh"
  19703. +
  19704. # Make sure we can run config.sub.
  19705. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  19706. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  19707. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  19708. - { (exit 1); exit 1; }; }
  19709. -
  19710. -{ echo "$as_me:$LINENO: checking build system type" >&5
  19711. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  19712. -if test "${ac_cv_build+set}" = set; then
  19713. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19714. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  19715. +
  19716. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  19717. +$as_echo_n "checking build system type... " >&6; }
  19718. +if test "${ac_cv_build+set}" = set; then :
  19719. + $as_echo_n "(cached) " >&6
  19720. else
  19721. ac_build_alias=$build_alias
  19722. test "x$ac_build_alias" = x &&
  19723. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  19724. test "x$ac_build_alias" = x &&
  19725. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  19726. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  19727. - { (exit 1); exit 1; }; }
  19728. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  19729. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  19730. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  19731. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  19732. - { (exit 1); exit 1; }; }
  19733. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  19734. fi
  19735. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  19736. -echo "${ECHO_T}$ac_cv_build" >&6; }
  19737. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  19738. +$as_echo "$ac_cv_build" >&6; }
  19739. case $ac_cv_build in
  19740. *-*-*) ;;
  19741. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  19742. -echo "$as_me: error: invalid value of canonical build" >&2;}
  19743. - { (exit 1); exit 1; }; };;
  19744. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  19745. esac
  19746. build=$ac_cv_build
  19747. ac_save_IFS=$IFS; IFS='-'
  19748. @@ -4262,28 +4257,24 @@
  19749. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  19750. -{ echo "$as_me:$LINENO: checking host system type" >&5
  19751. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  19752. -if test "${ac_cv_host+set}" = set; then
  19753. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  19755. +$as_echo_n "checking host system type... " >&6; }
  19756. +if test "${ac_cv_host+set}" = set; then :
  19757. + $as_echo_n "(cached) " >&6
  19758. else
  19759. if test "x$host_alias" = x; then
  19760. ac_cv_host=$ac_cv_build
  19761. else
  19762. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  19763. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  19764. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  19765. - { (exit 1); exit 1; }; }
  19766. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  19767. fi
  19768. fi
  19769. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  19770. -echo "${ECHO_T}$ac_cv_host" >&6; }
  19771. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  19772. +$as_echo "$ac_cv_host" >&6; }
  19773. case $ac_cv_host in
  19774. *-*-*) ;;
  19775. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  19776. -echo "$as_me: error: invalid value of canonical host" >&2;}
  19777. - { (exit 1); exit 1; }; };;
  19778. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  19779. esac
  19780. host=$ac_cv_host
  19781. ac_save_IFS=$IFS; IFS='-'
  19782. @@ -4299,66 +4290,177 @@
  19783. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  19784. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19785. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  19786. -if test "${lt_cv_path_SED+set}" = set; then
  19787. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19788. -else
  19789. - # Loop through the user's path and test for sed and gsed.
  19790. -# Then use that list of sed's as ones to test for truncation.
  19791. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19792. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  19793. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  19794. +if test "${ac_cv_path_SED+set}" = set; then :
  19795. + $as_echo_n "(cached) " >&6
  19796. +else
  19797. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19798. + for ac_i in 1 2 3 4 5 6 7; do
  19799. + ac_script="$ac_script$as_nl$ac_script"
  19800. + done
  19801. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  19802. + { ac_script=; unset ac_script;}
  19803. + if test -z "$SED"; then
  19804. + ac_path_SED_found=false
  19805. + # Loop through the user's path and test for each of PROGNAME-LIST
  19806. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19807. for as_dir in $PATH
  19808. do
  19809. IFS=$as_save_IFS
  19810. test -z "$as_dir" && as_dir=.
  19811. - for lt_ac_prog in sed gsed; do
  19812. + for ac_prog in sed gsed; do
  19813. for ac_exec_ext in '' $ac_executable_extensions; do
  19814. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  19815. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  19816. - fi
  19817. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19818. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19819. +# Check for GNU ac_path_SED and select it if it is found.
  19820. + # Check for GNU $ac_path_SED
  19821. +case `"$ac_path_SED" --version 2>&1` in
  19822. +*GNU*)
  19823. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19824. +*)
  19825. + ac_count=0
  19826. + $as_echo_n 0123456789 >"conftest.in"
  19827. + while :
  19828. + do
  19829. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  19830. + mv "conftest.tmp" "conftest.in"
  19831. + cp "conftest.in" "conftest.nl"
  19832. + $as_echo '' >> "conftest.nl"
  19833. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19834. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19835. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19836. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  19837. + # Best one so far, save it but keep looking for a better one
  19838. + ac_cv_path_SED="$ac_path_SED"
  19839. + ac_path_SED_max=$ac_count
  19840. + fi
  19841. + # 10*(2^10) chars as input seems more than enough
  19842. + test $ac_count -gt 10 && break
  19843. + done
  19844. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19845. +esac
  19846. +
  19847. + $ac_path_SED_found && break 3
  19848. done
  19849. done
  19850. -done
  19851. -lt_ac_max=0
  19852. -lt_ac_count=0
  19853. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  19854. -# along with /bin/sed that truncates output.
  19855. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  19856. - test ! -f $lt_ac_sed && continue
  19857. - cat /dev/null > conftest.in
  19858. - lt_ac_count=0
  19859. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  19860. - # Check for GNU sed and select it if it is found.
  19861. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  19862. - lt_cv_path_SED=$lt_ac_sed
  19863. - break
  19864. + done
  19865. +IFS=$as_save_IFS
  19866. + if test -z "$ac_cv_path_SED"; then
  19867. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  19868. fi
  19869. - while true; do
  19870. - cat conftest.in conftest.in >conftest.tmp
  19871. - mv conftest.tmp conftest.in
  19872. - cp conftest.in conftest.nl
  19873. - echo >>conftest.nl
  19874. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  19875. - cmp -s conftest.out conftest.nl || break
  19876. - # 10000 chars as input seems more than enough
  19877. - test $lt_ac_count -gt 10 && break
  19878. - lt_ac_count=`expr $lt_ac_count + 1`
  19879. - if test $lt_ac_count -gt $lt_ac_max; then
  19880. - lt_ac_max=$lt_ac_count
  19881. - lt_cv_path_SED=$lt_ac_sed
  19882. +else
  19883. + ac_cv_path_SED=$SED
  19884. +fi
  19885. +
  19886. +fi
  19887. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  19888. +$as_echo "$ac_cv_path_SED" >&6; }
  19889. + SED="$ac_cv_path_SED"
  19890. + rm -f conftest.sed
  19891. +
  19892. +test -z "$SED" && SED=sed
  19893. +Xsed="$SED -e 1s/^X//"
  19894. +
  19895. +
  19896. +
  19897. +
  19898. +
  19899. +
  19900. +
  19901. +
  19902. +
  19903. +
  19904. +
  19905. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  19906. +$as_echo_n "checking for fgrep... " >&6; }
  19907. +if test "${ac_cv_path_FGREP+set}" = set; then :
  19908. + $as_echo_n "(cached) " >&6
  19909. +else
  19910. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  19911. + then ac_cv_path_FGREP="$GREP -F"
  19912. + else
  19913. + if test -z "$FGREP"; then
  19914. + ac_path_FGREP_found=false
  19915. + # Loop through the user's path and test for each of PROGNAME-LIST
  19916. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19917. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19918. +do
  19919. + IFS=$as_save_IFS
  19920. + test -z "$as_dir" && as_dir=.
  19921. + for ac_prog in fgrep; do
  19922. + for ac_exec_ext in '' $ac_executable_extensions; do
  19923. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  19924. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  19925. +# Check for GNU ac_path_FGREP and select it if it is found.
  19926. + # Check for GNU $ac_path_FGREP
  19927. +case `"$ac_path_FGREP" --version 2>&1` in
  19928. +*GNU*)
  19929. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  19930. +*)
  19931. + ac_count=0
  19932. + $as_echo_n 0123456789 >"conftest.in"
  19933. + while :
  19934. + do
  19935. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  19936. + mv "conftest.tmp" "conftest.in"
  19937. + cp "conftest.in" "conftest.nl"
  19938. + $as_echo 'FGREP' >> "conftest.nl"
  19939. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19940. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19941. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19942. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  19943. + # Best one so far, save it but keep looking for a better one
  19944. + ac_cv_path_FGREP="$ac_path_FGREP"
  19945. + ac_path_FGREP_max=$ac_count
  19946. fi
  19947. + # 10*(2^10) chars as input seems more than enough
  19948. + test $ac_count -gt 10 && break
  19949. done
  19950. -done
  19951. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19952. +esac
  19953. + $ac_path_FGREP_found && break 3
  19954. + done
  19955. + done
  19956. + done
  19957. +IFS=$as_save_IFS
  19958. + if test -z "$ac_cv_path_FGREP"; then
  19959. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19960. + fi
  19961. +else
  19962. + ac_cv_path_FGREP=$FGREP
  19963. +fi
  19964. +
  19965. + fi
  19966. fi
  19967. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  19968. +$as_echo "$ac_cv_path_FGREP" >&6; }
  19969. + FGREP="$ac_cv_path_FGREP"
  19970. +
  19971. +
  19972. +test -z "$GREP" && GREP=grep
  19973. +
  19974. +
  19975. +
  19976. +
  19977. +
  19978. +
  19979. +
  19980. +
  19981. +
  19982. +
  19983. +
  19984. +
  19985. +
  19986. +
  19987. +
  19988. +
  19989. -SED=$lt_cv_path_SED
  19990. -{ echo "$as_me:$LINENO: result: $SED" >&5
  19991. -echo "${ECHO_T}$SED" >&6; }
  19992. # Check whether --with-gnu-ld was given.
  19993. -if test "${with_gnu_ld+set}" = set; then
  19994. +if test "${with_gnu_ld+set}" = set; then :
  19995. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  19996. else
  19997. with_gnu_ld=no
  19998. @@ -4367,8 +4469,8 @@
  19999. ac_prog=ld
  20000. if test "$GCC" = yes; then
  20001. # Check if gcc -print-prog-name=ld gives a path.
  20002. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  20003. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  20004. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  20005. +$as_echo_n "checking for ld used by $CC... " >&6; }
  20006. case $host in
  20007. *-*-mingw*)
  20008. # gcc leaves a trailing carriage return which upsets mingw
  20009. @@ -4381,9 +4483,9 @@
  20010. [\\/]* | ?:[\\/]*)
  20011. re_direlt='/[^/][^/]*/\.\./'
  20012. # Canonicalize the pathname of ld
  20013. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  20014. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  20015. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  20016. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  20017. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  20018. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  20019. done
  20020. test -z "$LD" && LD="$ac_prog"
  20021. ;;
  20022. @@ -4397,14 +4499,14 @@
  20023. ;;
  20024. esac
  20025. elif test "$with_gnu_ld" = yes; then
  20026. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  20027. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  20028. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  20029. +$as_echo_n "checking for GNU ld... " >&6; }
  20030. else
  20031. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  20032. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  20033. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  20034. +$as_echo_n "checking for non-GNU ld... " >&6; }
  20035. fi
  20036. -if test "${lt_cv_path_LD+set}" = set; then
  20037. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20038. +if test "${lt_cv_path_LD+set}" = set; then :
  20039. + $as_echo_n "(cached) " >&6
  20040. else
  20041. if test -z "$LD"; then
  20042. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20043. @@ -4434,19 +4536,17 @@
  20044. LD="$lt_cv_path_LD"
  20045. if test -n "$LD"; then
  20046. - { echo "$as_me:$LINENO: result: $LD" >&5
  20047. -echo "${ECHO_T}$LD" >&6; }
  20048. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  20049. +$as_echo "$LD" >&6; }
  20050. else
  20051. - { echo "$as_me:$LINENO: result: no" >&5
  20052. -echo "${ECHO_T}no" >&6; }
  20053. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20054. +$as_echo "no" >&6; }
  20055. fi
  20056. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  20057. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  20058. - { (exit 1); exit 1; }; }
  20059. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  20060. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  20061. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  20062. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20063. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  20064. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  20065. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  20066. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  20067. + $as_echo_n "(cached) " >&6
  20068. else
  20069. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  20070. case `$LD -v 2>&1 </dev/null` in
  20071. @@ -4458,40 +4558,22 @@
  20072. ;;
  20073. esac
  20074. fi
  20075. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  20076. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  20077. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  20078. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  20079. with_gnu_ld=$lt_cv_prog_gnu_ld
  20080. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  20081. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  20082. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  20083. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20084. -else
  20085. - lt_cv_ld_reload_flag='-r'
  20086. -fi
  20087. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  20088. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  20089. -reload_flag=$lt_cv_ld_reload_flag
  20090. -case $reload_flag in
  20091. -"" | " "*) ;;
  20092. -*) reload_flag=" $reload_flag" ;;
  20093. -esac
  20094. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20095. -case $host_os in
  20096. - darwin*)
  20097. - if test "$GCC" = yes; then
  20098. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  20099. - else
  20100. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20101. - fi
  20102. - ;;
  20103. -esac
  20104. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  20105. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  20106. -if test "${lt_cv_path_NM+set}" = set; then
  20107. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20108. +
  20109. +
  20110. +
  20111. +
  20112. +
  20113. +
  20114. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  20115. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  20116. +if test "${lt_cv_path_NM+set}" = set; then :
  20117. + $as_echo_n "(cached) " >&6
  20118. else
  20119. if test -n "$NM"; then
  20120. # Let the user override the test.
  20121. @@ -4534,2138 +4616,1082 @@
  20122. done
  20123. IFS="$lt_save_ifs"
  20124. done
  20125. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  20126. + : ${lt_cv_path_NM=no}
  20127. fi
  20128. fi
  20129. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  20130. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  20131. -NM="$lt_cv_path_NM"
  20132. -
  20133. -{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  20134. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  20135. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  20136. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20137. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  20138. +$as_echo "$lt_cv_path_NM" >&6; }
  20139. +if test "$lt_cv_path_NM" != "no"; then
  20140. + NM="$lt_cv_path_NM"
  20141. else
  20142. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  20143. -lt_cv_file_magic_test_file=
  20144. -lt_cv_deplibs_check_method='unknown'
  20145. -# Need to set the preceding variable on all platforms that support
  20146. -# interlibrary dependencies.
  20147. -# 'none' -- dependencies not supported.
  20148. -# `unknown' -- same as none, but documents that we really don't know.
  20149. -# 'pass_all' -- all dependencies passed with no checks.
  20150. -# 'test_compile' -- check by making test program.
  20151. -# 'file_magic [[regex]]' -- check by looking for files in library path
  20152. -# which responds to the $file_magic_cmd with a given extended regex.
  20153. -# If you have `file' or equivalent on your system and you're not sure
  20154. -# whether `pass_all' will *always* work, you probably want this one.
  20155. + # Didn't find any BSD compatible name lister, look for dumpbin.
  20156. + if test -n "$ac_tool_prefix"; then
  20157. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20158. + do
  20159. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20160. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20161. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20162. +$as_echo_n "checking for $ac_word... " >&6; }
  20163. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  20164. + $as_echo_n "(cached) " >&6
  20165. +else
  20166. + if test -n "$DUMPBIN"; then
  20167. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  20168. +else
  20169. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20170. +for as_dir in $PATH
  20171. +do
  20172. + IFS=$as_save_IFS
  20173. + test -z "$as_dir" && as_dir=.
  20174. + for ac_exec_ext in '' $ac_executable_extensions; do
  20175. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20176. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  20177. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20178. + break 2
  20179. + fi
  20180. +done
  20181. + done
  20182. +IFS=$as_save_IFS
  20183. -case $host_os in
  20184. -aix4* | aix5*)
  20185. - lt_cv_deplibs_check_method=pass_all
  20186. - ;;
  20187. +fi
  20188. +fi
  20189. +DUMPBIN=$ac_cv_prog_DUMPBIN
  20190. +if test -n "$DUMPBIN"; then
  20191. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  20192. +$as_echo "$DUMPBIN" >&6; }
  20193. +else
  20194. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20195. +$as_echo "no" >&6; }
  20196. +fi
  20197. -beos*)
  20198. - lt_cv_deplibs_check_method=pass_all
  20199. - ;;
  20200. -bsdi[45]*)
  20201. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  20202. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  20203. - lt_cv_file_magic_test_file=/shlib/libc.so
  20204. - ;;
  20205. + test -n "$DUMPBIN" && break
  20206. + done
  20207. +fi
  20208. +if test -z "$DUMPBIN"; then
  20209. + ac_ct_DUMPBIN=$DUMPBIN
  20210. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20211. +do
  20212. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  20213. +set dummy $ac_prog; ac_word=$2
  20214. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20215. +$as_echo_n "checking for $ac_word... " >&6; }
  20216. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  20217. + $as_echo_n "(cached) " >&6
  20218. +else
  20219. + if test -n "$ac_ct_DUMPBIN"; then
  20220. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  20221. +else
  20222. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20223. +for as_dir in $PATH
  20224. +do
  20225. + IFS=$as_save_IFS
  20226. + test -z "$as_dir" && as_dir=.
  20227. + for ac_exec_ext in '' $ac_executable_extensions; do
  20228. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20229. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  20230. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20231. + break 2
  20232. + fi
  20233. +done
  20234. + done
  20235. +IFS=$as_save_IFS
  20236. -cygwin*)
  20237. - # func_win32_libid is a shell function defined in ltmain.sh
  20238. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20239. - lt_cv_file_magic_cmd='func_win32_libid'
  20240. - ;;
  20241. +fi
  20242. +fi
  20243. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  20244. +if test -n "$ac_ct_DUMPBIN"; then
  20245. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  20246. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  20247. +else
  20248. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20249. +$as_echo "no" >&6; }
  20250. +fi
  20251. -mingw* | pw32*)
  20252. - # Base MSYS/MinGW do not provide the 'file' command needed by
  20253. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  20254. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  20255. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  20256. - ;;
  20257. -darwin* | rhapsody*)
  20258. - lt_cv_deplibs_check_method=pass_all
  20259. - ;;
  20260. + test -n "$ac_ct_DUMPBIN" && break
  20261. +done
  20262. -freebsd* | kfreebsd*-gnu | dragonfly*)
  20263. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  20264. - case $host_cpu in
  20265. - i*86 )
  20266. - # Not sure whether the presence of OpenBSD here was a mistake.
  20267. - # Let's accept both of them until this is cleared up.
  20268. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  20269. - lt_cv_file_magic_cmd=/usr/bin/file
  20270. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  20271. - ;;
  20272. - esac
  20273. + if test "x$ac_ct_DUMPBIN" = x; then
  20274. + DUMPBIN=":"
  20275. else
  20276. - lt_cv_deplibs_check_method=pass_all
  20277. + case $cross_compiling:$ac_tool_warned in
  20278. +yes:)
  20279. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20280. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20281. +ac_tool_warned=yes ;;
  20282. +esac
  20283. + DUMPBIN=$ac_ct_DUMPBIN
  20284. fi
  20285. - ;;
  20286. -
  20287. -gnu*)
  20288. - lt_cv_deplibs_check_method=pass_all
  20289. - ;;
  20290. +fi
  20291. -hpux10.20* | hpux11*)
  20292. - lt_cv_file_magic_cmd=/usr/bin/file
  20293. - case $host_cpu in
  20294. - ia64*)
  20295. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  20296. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  20297. - ;;
  20298. - hppa*64*)
  20299. - 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]'
  20300. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  20301. - ;;
  20302. - *)
  20303. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  20304. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  20305. - ;;
  20306. - esac
  20307. - ;;
  20308. -interix3*)
  20309. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  20310. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  20311. - ;;
  20312. + if test "$DUMPBIN" != ":"; then
  20313. + NM="$DUMPBIN"
  20314. + fi
  20315. +fi
  20316. +test -z "$NM" && NM=nm
  20317. -irix5* | irix6* | nonstopux*)
  20318. - case $LD in
  20319. - *-32|*"-32 ") libmagic=32-bit;;
  20320. - *-n32|*"-n32 ") libmagic=N32;;
  20321. - *-64|*"-64 ") libmagic=64-bit;;
  20322. - *) libmagic=never-match;;
  20323. - esac
  20324. - lt_cv_deplibs_check_method=pass_all
  20325. - ;;
  20326. -# This must be Linux ELF.
  20327. -linux*)
  20328. - lt_cv_deplibs_check_method=pass_all
  20329. - ;;
  20330. -netbsd*)
  20331. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  20332. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20333. - else
  20334. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  20335. - fi
  20336. - ;;
  20337. -newos6*)
  20338. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  20339. - lt_cv_file_magic_cmd=/usr/bin/file
  20340. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  20341. - ;;
  20342. -nto-qnx*)
  20343. - lt_cv_deplibs_check_method=unknown
  20344. - ;;
  20345. -openbsd*)
  20346. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20347. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  20348. - else
  20349. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20350. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  20351. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  20352. +if test "${lt_cv_nm_interface+set}" = set; then :
  20353. + $as_echo_n "(cached) " >&6
  20354. +else
  20355. + lt_cv_nm_interface="BSD nm"
  20356. + echo "int some_variable = 0;" > conftest.$ac_ext
  20357. + (eval echo "\"\$as_me:4747: $ac_compile\"" >&5)
  20358. + (eval "$ac_compile" 2>conftest.err)
  20359. + cat conftest.err >&5
  20360. + (eval echo "\"\$as_me:4750: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  20361. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  20362. + cat conftest.err >&5
  20363. + (eval echo "\"\$as_me:4753: output\"" >&5)
  20364. + cat conftest.out >&5
  20365. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  20366. + lt_cv_nm_interface="MS dumpbin"
  20367. fi
  20368. - ;;
  20369. -
  20370. -osf3* | osf4* | osf5*)
  20371. - lt_cv_deplibs_check_method=pass_all
  20372. - ;;
  20373. + rm -f conftest*
  20374. +fi
  20375. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  20376. +$as_echo "$lt_cv_nm_interface" >&6; }
  20377. -solaris*)
  20378. - lt_cv_deplibs_check_method=pass_all
  20379. - ;;
  20380. +# find the maximum length of command line arguments
  20381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  20382. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  20383. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  20384. + $as_echo_n "(cached) " >&6
  20385. +else
  20386. + i=0
  20387. + teststring="ABCD"
  20388. -sysv4 | sysv4.3*)
  20389. - case $host_vendor in
  20390. - motorola)
  20391. - 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]'
  20392. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  20393. - ;;
  20394. - ncr)
  20395. - lt_cv_deplibs_check_method=pass_all
  20396. + case $build_os in
  20397. + msdosdjgpp*)
  20398. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  20399. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  20400. + # during glob expansion). Even if it were fixed, the result of this
  20401. + # check would be larger than it should be.
  20402. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  20403. ;;
  20404. - sequent)
  20405. - lt_cv_file_magic_cmd='/bin/file'
  20406. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  20407. +
  20408. + gnu*)
  20409. + # Under GNU Hurd, this test is not required because there is
  20410. + # no limit to the length of command line arguments.
  20411. + # Libtool will interpret -1 as no limit whatsoever
  20412. + lt_cv_sys_max_cmd_len=-1;
  20413. ;;
  20414. - sni)
  20415. - lt_cv_file_magic_cmd='/bin/file'
  20416. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  20417. - lt_cv_file_magic_test_file=/lib/libc.so
  20418. +
  20419. + cygwin* | mingw* | cegcc*)
  20420. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  20421. + # about 5 minutes as the teststring grows exponentially.
  20422. + # Worse, since 9x/ME are not pre-emptively multitasking,
  20423. + # you end up with a "frozen" computer, even though with patience
  20424. + # the test eventually succeeds (with a max line length of 256k).
  20425. + # Instead, let's just punt: use the minimum linelength reported by
  20426. + # all of the supported platforms: 8192 (on NT/2K/XP).
  20427. + lt_cv_sys_max_cmd_len=8192;
  20428. ;;
  20429. - siemens)
  20430. - lt_cv_deplibs_check_method=pass_all
  20431. +
  20432. + amigaos*)
  20433. + # On AmigaOS with pdksh, this test takes hours, literally.
  20434. + # So we just punt and use a minimum line length of 8192.
  20435. + lt_cv_sys_max_cmd_len=8192;
  20436. ;;
  20437. - pc)
  20438. - lt_cv_deplibs_check_method=pass_all
  20439. +
  20440. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  20441. + # This has been around since 386BSD, at least. Likely further.
  20442. + if test -x /sbin/sysctl; then
  20443. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  20444. + elif test -x /usr/sbin/sysctl; then
  20445. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  20446. + else
  20447. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  20448. + fi
  20449. + # And add a safety zone
  20450. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20451. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20452. ;;
  20453. - esac
  20454. - ;;
  20455. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  20456. - lt_cv_deplibs_check_method=pass_all
  20457. - ;;
  20458. -esac
  20459. -
  20460. -fi
  20461. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  20462. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  20463. -file_magic_cmd=$lt_cv_file_magic_cmd
  20464. -deplibs_check_method=$lt_cv_deplibs_check_method
  20465. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  20466. + interix*)
  20467. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  20468. + lt_cv_sys_max_cmd_len=196608
  20469. + ;;
  20470. + osf*)
  20471. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  20472. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  20473. + # nice to cause kernel panics so lets avoid the loop below.
  20474. + # First set a reasonable default.
  20475. + lt_cv_sys_max_cmd_len=16384
  20476. + #
  20477. + if test -x /sbin/sysconfig; then
  20478. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  20479. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  20480. + esac
  20481. + fi
  20482. + ;;
  20483. + sco3.2v5*)
  20484. + lt_cv_sys_max_cmd_len=102400
  20485. + ;;
  20486. + sysv5* | sco5v6* | sysv4.2uw2*)
  20487. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  20488. + if test -n "$kargmax"; then
  20489. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  20490. + else
  20491. + lt_cv_sys_max_cmd_len=32768
  20492. + fi
  20493. + ;;
  20494. + *)
  20495. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  20496. + if test -n "$lt_cv_sys_max_cmd_len"; then
  20497. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20498. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20499. + else
  20500. + # Make teststring a little bigger before we do anything with it.
  20501. + # a 1K string should be a reasonable start.
  20502. + for i in 1 2 3 4 5 6 7 8 ; do
  20503. + teststring=$teststring$teststring
  20504. + done
  20505. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  20506. + # If test is not a shell built-in, we'll probably end up computing a
  20507. + # maximum length that is only half of the actual maximum length, but
  20508. + # we can't tell.
  20509. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  20510. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  20511. + test $i != 17 # 1/2 MB should be enough
  20512. + do
  20513. + i=`expr $i + 1`
  20514. + teststring=$teststring$teststring
  20515. + done
  20516. + # Only check the string length outside the loop.
  20517. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  20518. + teststring=
  20519. + # Add a significant safety factor because C++ compilers can tack on
  20520. + # massive amounts of additional arguments before passing them to the
  20521. + # linker. It appears as though 1/2 is a usable value.
  20522. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  20523. + fi
  20524. + ;;
  20525. + esac
  20526. +fi
  20527. +if test -n $lt_cv_sys_max_cmd_len ; then
  20528. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  20529. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  20530. +else
  20531. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  20532. +$as_echo "none" >&6; }
  20533. +fi
  20534. +max_cmd_len=$lt_cv_sys_max_cmd_len
  20535. -# If no C compiler was specified, use CC.
  20536. -LTCC=${LTCC-"$CC"}
  20537. -# If no C compiler flags were specified, use CFLAGS.
  20538. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  20539. -# Allow CC to be a program name with arguments.
  20540. -compiler=$CC
  20541. -# Check whether --enable-libtool-lock was given.
  20542. -if test "${enable_libtool_lock+set}" = set; then
  20543. - enableval=$enable_libtool_lock;
  20544. -fi
  20545. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  20546. -# Some flags need to be propagated to the compiler or linker for good
  20547. -# libtool support.
  20548. -case $host in
  20549. -ia64-*-hpux*)
  20550. - # Find out which ABI we are using.
  20551. - echo 'int i;' > conftest.$ac_ext
  20552. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20553. - (eval $ac_compile) 2>&5
  20554. - ac_status=$?
  20555. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20556. - (exit $ac_status); }; then
  20557. - case `/usr/bin/file conftest.$ac_objext` in
  20558. - *ELF-32*)
  20559. - HPUX_IA64_MODE="32"
  20560. - ;;
  20561. - *ELF-64*)
  20562. - HPUX_IA64_MODE="64"
  20563. - ;;
  20564. - esac
  20565. - fi
  20566. - rm -rf conftest*
  20567. - ;;
  20568. -*-*-irix6*)
  20569. - # Find out which ABI we are using.
  20570. - echo '#line 4769 "configure"' > conftest.$ac_ext
  20571. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20572. - (eval $ac_compile) 2>&5
  20573. - ac_status=$?
  20574. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20575. - (exit $ac_status); }; then
  20576. - if test "$lt_cv_prog_gnu_ld" = yes; then
  20577. - case `/usr/bin/file conftest.$ac_objext` in
  20578. - *32-bit*)
  20579. - LD="${LD-ld} -melf32bsmip"
  20580. - ;;
  20581. - *N32*)
  20582. - LD="${LD-ld} -melf32bmipn32"
  20583. - ;;
  20584. - *64-bit*)
  20585. - LD="${LD-ld} -melf64bmip"
  20586. - ;;
  20587. - esac
  20588. - else
  20589. - case `/usr/bin/file conftest.$ac_objext` in
  20590. - *32-bit*)
  20591. - LD="${LD-ld} -32"
  20592. - ;;
  20593. - *N32*)
  20594. - LD="${LD-ld} -n32"
  20595. - ;;
  20596. - *64-bit*)
  20597. - LD="${LD-ld} -64"
  20598. - ;;
  20599. - esac
  20600. - fi
  20601. - fi
  20602. - rm -rf conftest*
  20603. - ;;
  20604. +: ${CP="cp -f"}
  20605. +: ${MV="mv -f"}
  20606. +: ${RM="rm -f"}
  20607. +
  20608. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  20609. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  20610. +# Try some XSI features
  20611. +xsi_shell=no
  20612. +( _lt_dummy="a/b/c"
  20613. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  20614. + = c,a/b,, \
  20615. + && eval 'test $(( 1 + 1 )) -eq 2 \
  20616. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  20617. + && xsi_shell=yes
  20618. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  20619. +$as_echo "$xsi_shell" >&6; }
  20620. +
  20621. +
  20622. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  20623. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  20624. +lt_shell_append=no
  20625. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  20626. + >/dev/null 2>&1 \
  20627. + && lt_shell_append=yes
  20628. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  20629. +$as_echo "$lt_shell_append" >&6; }
  20630. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  20631. - # Find out which ABI we are using.
  20632. - echo 'int i;' > conftest.$ac_ext
  20633. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20634. - (eval $ac_compile) 2>&5
  20635. - ac_status=$?
  20636. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20637. - (exit $ac_status); }; then
  20638. - case `/usr/bin/file conftest.o` in
  20639. - *32-bit*)
  20640. - case $host in
  20641. - x86_64-*linux*)
  20642. - LD="${LD-ld} -m elf_i386"
  20643. - ;;
  20644. - ppc64-*linux*|powerpc64-*linux*)
  20645. - LD="${LD-ld} -m elf32ppclinux"
  20646. - ;;
  20647. - s390x-*linux*)
  20648. - LD="${LD-ld} -m elf_s390"
  20649. - ;;
  20650. - sparc64-*linux*)
  20651. - LD="${LD-ld} -m elf32_sparc"
  20652. - ;;
  20653. - esac
  20654. - ;;
  20655. - *64-bit*)
  20656. - case $host in
  20657. - x86_64-*linux*)
  20658. - LD="${LD-ld} -m elf_x86_64"
  20659. - ;;
  20660. - ppc*-*linux*|powerpc*-*linux*)
  20661. - LD="${LD-ld} -m elf64ppc"
  20662. - ;;
  20663. - s390*-*linux*)
  20664. - LD="${LD-ld} -m elf64_s390"
  20665. - ;;
  20666. - sparc*-*linux*)
  20667. - LD="${LD-ld} -m elf64_sparc"
  20668. - ;;
  20669. - esac
  20670. - ;;
  20671. - esac
  20672. - fi
  20673. - rm -rf conftest*
  20674. - ;;
  20675. -*-*-sco3.2v5*)
  20676. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  20677. - SAVE_CFLAGS="$CFLAGS"
  20678. - CFLAGS="$CFLAGS -belf"
  20679. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  20680. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  20681. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  20682. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20683. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20684. + lt_unset=unset
  20685. else
  20686. - ac_ext=c
  20687. -ac_cpp='$CPP $CPPFLAGS'
  20688. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20689. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20690. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20691. -
  20692. - cat >conftest.$ac_ext <<_ACEOF
  20693. -/* confdefs.h. */
  20694. -_ACEOF
  20695. -cat confdefs.h >>conftest.$ac_ext
  20696. -cat >>conftest.$ac_ext <<_ACEOF
  20697. -/* end confdefs.h. */
  20698. + lt_unset=false
  20699. +fi
  20700. -int
  20701. -main ()
  20702. -{
  20703. - ;
  20704. - return 0;
  20705. -}
  20706. -_ACEOF
  20707. -rm -f conftest.$ac_objext conftest$ac_exeext
  20708. -if { (ac_try="$ac_link"
  20709. -case "(($ac_try" in
  20710. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20711. - *) ac_try_echo=$ac_try;;
  20712. -esac
  20713. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20714. - (eval "$ac_link") 2>conftest.er1
  20715. - ac_status=$?
  20716. - grep -v '^ *+' conftest.er1 >conftest.err
  20717. - rm -f conftest.er1
  20718. - cat conftest.err >&5
  20719. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20720. - (exit $ac_status); } &&
  20721. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20722. - { (case "(($ac_try" in
  20723. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20724. - *) ac_try_echo=$ac_try;;
  20725. -esac
  20726. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20727. - (eval "$ac_try") 2>&5
  20728. - ac_status=$?
  20729. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20730. - (exit $ac_status); }; } &&
  20731. - { ac_try='test -s conftest$ac_exeext'
  20732. - { (case "(($ac_try" in
  20733. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20734. - *) ac_try_echo=$ac_try;;
  20735. -esac
  20736. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20737. - (eval "$ac_try") 2>&5
  20738. - ac_status=$?
  20739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20740. - (exit $ac_status); }; }; then
  20741. - lt_cv_cc_needs_belf=yes
  20742. -else
  20743. - echo "$as_me: failed program was:" >&5
  20744. -sed 's/^/| /' conftest.$ac_ext >&5
  20745. - lt_cv_cc_needs_belf=no
  20746. -fi
  20747. -rm -f core conftest.err conftest.$ac_objext \
  20748. - conftest$ac_exeext conftest.$ac_ext
  20749. - ac_ext=c
  20750. -ac_cpp='$CPP $CPPFLAGS'
  20751. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20752. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20753. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20754. -fi
  20755. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  20756. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  20757. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  20758. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  20759. - CFLAGS="$SAVE_CFLAGS"
  20760. - fi
  20761. +# test EBCDIC or ASCII
  20762. +case `echo X|tr X '\101'` in
  20763. + A) # ASCII based system
  20764. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  20765. + lt_SP2NL='tr \040 \012'
  20766. + lt_NL2SP='tr \015\012 \040\040'
  20767. ;;
  20768. -sparc*-*solaris*)
  20769. - # Find out which ABI we are using.
  20770. - echo 'int i;' > conftest.$ac_ext
  20771. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20772. - (eval $ac_compile) 2>&5
  20773. - ac_status=$?
  20774. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20775. - (exit $ac_status); }; then
  20776. - case `/usr/bin/file conftest.o` in
  20777. - *64-bit*)
  20778. - case $lt_cv_prog_gnu_ld in
  20779. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  20780. - *) LD="${LD-ld} -64" ;;
  20781. - esac
  20782. - ;;
  20783. - esac
  20784. - fi
  20785. - rm -rf conftest*
  20786. + *) # EBCDIC based system
  20787. + lt_SP2NL='tr \100 \n'
  20788. + lt_NL2SP='tr \r\n \100\100'
  20789. ;;
  20790. +esac
  20791. -esac
  20792. -need_locks="$enable_libtool_lock"
  20793. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  20794. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  20795. -if test "${ac_cv_header_stdc+set}" = set; then
  20796. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20797. -else
  20798. - cat >conftest.$ac_ext <<_ACEOF
  20799. -/* confdefs.h. */
  20800. -_ACEOF
  20801. -cat confdefs.h >>conftest.$ac_ext
  20802. -cat >>conftest.$ac_ext <<_ACEOF
  20803. -/* end confdefs.h. */
  20804. -#include <stdlib.h>
  20805. -#include <stdarg.h>
  20806. -#include <string.h>
  20807. -#include <float.h>
  20808. -int
  20809. -main ()
  20810. -{
  20811. - ;
  20812. - return 0;
  20813. -}
  20814. -_ACEOF
  20815. -rm -f conftest.$ac_objext
  20816. -if { (ac_try="$ac_compile"
  20817. -case "(($ac_try" in
  20818. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20819. - *) ac_try_echo=$ac_try;;
  20820. -esac
  20821. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20822. - (eval "$ac_compile") 2>conftest.er1
  20823. - ac_status=$?
  20824. - grep -v '^ *+' conftest.er1 >conftest.err
  20825. - rm -f conftest.er1
  20826. - cat conftest.err >&5
  20827. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20828. - (exit $ac_status); } &&
  20829. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20830. - { (case "(($ac_try" in
  20831. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20832. - *) ac_try_echo=$ac_try;;
  20833. +
  20834. +
  20835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  20836. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  20837. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  20838. + $as_echo_n "(cached) " >&6
  20839. +else
  20840. + lt_cv_ld_reload_flag='-r'
  20841. +fi
  20842. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  20843. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  20844. +reload_flag=$lt_cv_ld_reload_flag
  20845. +case $reload_flag in
  20846. +"" | " "*) ;;
  20847. +*) reload_flag=" $reload_flag" ;;
  20848. esac
  20849. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20850. - (eval "$ac_try") 2>&5
  20851. - ac_status=$?
  20852. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20853. - (exit $ac_status); }; } &&
  20854. - { ac_try='test -s conftest.$ac_objext'
  20855. - { (case "(($ac_try" in
  20856. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20857. - *) ac_try_echo=$ac_try;;
  20858. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20859. +case $host_os in
  20860. + darwin*)
  20861. + if test "$GCC" = yes; then
  20862. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  20863. + else
  20864. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20865. + fi
  20866. + ;;
  20867. esac
  20868. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20869. - (eval "$ac_try") 2>&5
  20870. - ac_status=$?
  20871. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20872. - (exit $ac_status); }; }; then
  20873. - ac_cv_header_stdc=yes
  20874. -else
  20875. - echo "$as_me: failed program was:" >&5
  20876. -sed 's/^/| /' conftest.$ac_ext >&5
  20877. - ac_cv_header_stdc=no
  20878. -fi
  20879. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20880. -if test $ac_cv_header_stdc = yes; then
  20881. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20882. - cat >conftest.$ac_ext <<_ACEOF
  20883. -/* confdefs.h. */
  20884. -_ACEOF
  20885. -cat confdefs.h >>conftest.$ac_ext
  20886. -cat >>conftest.$ac_ext <<_ACEOF
  20887. -/* end confdefs.h. */
  20888. -#include <string.h>
  20889. -_ACEOF
  20890. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20891. - $EGREP "memchr" >/dev/null 2>&1; then
  20892. - :
  20893. -else
  20894. - ac_cv_header_stdc=no
  20895. -fi
  20896. -rm -f conftest*
  20897. -fi
  20898. -if test $ac_cv_header_stdc = yes; then
  20899. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20900. - cat >conftest.$ac_ext <<_ACEOF
  20901. -/* confdefs.h. */
  20902. -_ACEOF
  20903. -cat confdefs.h >>conftest.$ac_ext
  20904. -cat >>conftest.$ac_ext <<_ACEOF
  20905. -/* end confdefs.h. */
  20906. -#include <stdlib.h>
  20907. -_ACEOF
  20908. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20909. - $EGREP "free" >/dev/null 2>&1; then
  20910. - :
  20911. -else
  20912. - ac_cv_header_stdc=no
  20913. -fi
  20914. -rm -f conftest*
  20915. -fi
  20916. -if test $ac_cv_header_stdc = yes; then
  20917. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20918. - if test "$cross_compiling" = yes; then
  20919. - :
  20920. +if test -n "$ac_tool_prefix"; then
  20921. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  20922. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  20923. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20924. +$as_echo_n "checking for $ac_word... " >&6; }
  20925. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  20926. + $as_echo_n "(cached) " >&6
  20927. else
  20928. - cat >conftest.$ac_ext <<_ACEOF
  20929. -/* confdefs.h. */
  20930. -_ACEOF
  20931. -cat confdefs.h >>conftest.$ac_ext
  20932. -cat >>conftest.$ac_ext <<_ACEOF
  20933. -/* end confdefs.h. */
  20934. -#include <ctype.h>
  20935. -#include <stdlib.h>
  20936. -#if ((' ' & 0x0FF) == 0x020)
  20937. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  20938. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20939. -#else
  20940. -# define ISLOWER(c) \
  20941. - (('a' <= (c) && (c) <= 'i') \
  20942. - || ('j' <= (c) && (c) <= 'r') \
  20943. - || ('s' <= (c) && (c) <= 'z'))
  20944. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20945. -#endif
  20946. -
  20947. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  20948. -int
  20949. -main ()
  20950. -{
  20951. - int i;
  20952. - for (i = 0; i < 256; i++)
  20953. - if (XOR (islower (i), ISLOWER (i))
  20954. - || toupper (i) != TOUPPER (i))
  20955. - return 2;
  20956. - return 0;
  20957. -}
  20958. -_ACEOF
  20959. -rm -f conftest$ac_exeext
  20960. -if { (ac_try="$ac_link"
  20961. -case "(($ac_try" in
  20962. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20963. - *) ac_try_echo=$ac_try;;
  20964. -esac
  20965. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20966. - (eval "$ac_link") 2>&5
  20967. - ac_status=$?
  20968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20969. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20970. - { (case "(($ac_try" in
  20971. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20972. - *) ac_try_echo=$ac_try;;
  20973. -esac
  20974. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20975. - (eval "$ac_try") 2>&5
  20976. - ac_status=$?
  20977. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20978. - (exit $ac_status); }; }; then
  20979. - :
  20980. -else
  20981. - echo "$as_me: program exited with status $ac_status" >&5
  20982. -echo "$as_me: failed program was:" >&5
  20983. -sed 's/^/| /' conftest.$ac_ext >&5
  20984. -
  20985. -( exit $ac_status )
  20986. -ac_cv_header_stdc=no
  20987. -fi
  20988. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20989. -fi
  20990. -
  20991. -
  20992. -fi
  20993. -fi
  20994. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  20995. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  20996. -if test $ac_cv_header_stdc = yes; then
  20997. -
  20998. -cat >>confdefs.h <<\_ACEOF
  20999. -#define STDC_HEADERS 1
  21000. -_ACEOF
  21001. -
  21002. -fi
  21003. -
  21004. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  21005. -
  21006. -
  21007. -
  21008. -
  21009. -
  21010. -
  21011. -
  21012. -
  21013. -
  21014. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  21015. - inttypes.h stdint.h unistd.h
  21016. -do
  21017. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21018. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  21019. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21020. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21021. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21022. -else
  21023. - cat >conftest.$ac_ext <<_ACEOF
  21024. -/* confdefs.h. */
  21025. -_ACEOF
  21026. -cat confdefs.h >>conftest.$ac_ext
  21027. -cat >>conftest.$ac_ext <<_ACEOF
  21028. -/* end confdefs.h. */
  21029. -$ac_includes_default
  21030. -
  21031. -#include <$ac_header>
  21032. -_ACEOF
  21033. -rm -f conftest.$ac_objext
  21034. -if { (ac_try="$ac_compile"
  21035. -case "(($ac_try" in
  21036. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21037. - *) ac_try_echo=$ac_try;;
  21038. -esac
  21039. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21040. - (eval "$ac_compile") 2>conftest.er1
  21041. - ac_status=$?
  21042. - grep -v '^ *+' conftest.er1 >conftest.err
  21043. - rm -f conftest.er1
  21044. - cat conftest.err >&5
  21045. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21046. - (exit $ac_status); } &&
  21047. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21048. - { (case "(($ac_try" in
  21049. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21050. - *) ac_try_echo=$ac_try;;
  21051. -esac
  21052. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21053. - (eval "$ac_try") 2>&5
  21054. - ac_status=$?
  21055. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21056. - (exit $ac_status); }; } &&
  21057. - { ac_try='test -s conftest.$ac_objext'
  21058. - { (case "(($ac_try" in
  21059. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21060. - *) ac_try_echo=$ac_try;;
  21061. -esac
  21062. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21063. - (eval "$ac_try") 2>&5
  21064. - ac_status=$?
  21065. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21066. - (exit $ac_status); }; }; then
  21067. - eval "$as_ac_Header=yes"
  21068. -else
  21069. - echo "$as_me: failed program was:" >&5
  21070. -sed 's/^/| /' conftest.$ac_ext >&5
  21071. -
  21072. - eval "$as_ac_Header=no"
  21073. -fi
  21074. -
  21075. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21076. -fi
  21077. -ac_res=`eval echo '${'$as_ac_Header'}'`
  21078. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  21079. -echo "${ECHO_T}$ac_res" >&6; }
  21080. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21081. - cat >>confdefs.h <<_ACEOF
  21082. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21083. -_ACEOF
  21084. -
  21085. -fi
  21086. -
  21087. -done
  21088. -
  21089. -
  21090. -
  21091. -for ac_header in dlfcn.h
  21092. -do
  21093. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21094. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21095. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21096. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21097. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21098. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21099. -fi
  21100. -ac_res=`eval echo '${'$as_ac_Header'}'`
  21101. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  21102. -echo "${ECHO_T}$ac_res" >&6; }
  21103. -else
  21104. - # Is the header compilable?
  21105. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21106. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  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. -/* end confdefs.h. */
  21113. -$ac_includes_default
  21114. -#include <$ac_header>
  21115. -_ACEOF
  21116. -rm -f conftest.$ac_objext
  21117. -if { (ac_try="$ac_compile"
  21118. -case "(($ac_try" in
  21119. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21120. - *) ac_try_echo=$ac_try;;
  21121. -esac
  21122. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21123. - (eval "$ac_compile") 2>conftest.er1
  21124. - ac_status=$?
  21125. - grep -v '^ *+' conftest.er1 >conftest.err
  21126. - rm -f conftest.er1
  21127. - cat conftest.err >&5
  21128. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21129. - (exit $ac_status); } &&
  21130. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21131. - { (case "(($ac_try" in
  21132. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21133. - *) ac_try_echo=$ac_try;;
  21134. -esac
  21135. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21136. - (eval "$ac_try") 2>&5
  21137. - ac_status=$?
  21138. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21139. - (exit $ac_status); }; } &&
  21140. - { ac_try='test -s conftest.$ac_objext'
  21141. - { (case "(($ac_try" in
  21142. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21143. - *) ac_try_echo=$ac_try;;
  21144. -esac
  21145. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21146. - (eval "$ac_try") 2>&5
  21147. - ac_status=$?
  21148. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21149. - (exit $ac_status); }; }; then
  21150. - ac_header_compiler=yes
  21151. -else
  21152. - echo "$as_me: failed program was:" >&5
  21153. -sed 's/^/| /' conftest.$ac_ext >&5
  21154. -
  21155. - ac_header_compiler=no
  21156. -fi
  21157. -
  21158. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21159. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21160. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  21161. -
  21162. -# Is the header present?
  21163. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21164. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21165. -cat >conftest.$ac_ext <<_ACEOF
  21166. -/* confdefs.h. */
  21167. -_ACEOF
  21168. -cat confdefs.h >>conftest.$ac_ext
  21169. -cat >>conftest.$ac_ext <<_ACEOF
  21170. -/* end confdefs.h. */
  21171. -#include <$ac_header>
  21172. -_ACEOF
  21173. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21174. -case "(($ac_try" in
  21175. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21176. - *) ac_try_echo=$ac_try;;
  21177. -esac
  21178. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21179. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21180. - ac_status=$?
  21181. - grep -v '^ *+' conftest.er1 >conftest.err
  21182. - rm -f conftest.er1
  21183. - cat conftest.err >&5
  21184. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21185. - (exit $ac_status); } >/dev/null; then
  21186. - if test -s conftest.err; then
  21187. - ac_cpp_err=$ac_c_preproc_warn_flag
  21188. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21189. - else
  21190. - ac_cpp_err=
  21191. - fi
  21192. -else
  21193. - ac_cpp_err=yes
  21194. -fi
  21195. -if test -z "$ac_cpp_err"; then
  21196. - ac_header_preproc=yes
  21197. -else
  21198. - echo "$as_me: failed program was:" >&5
  21199. -sed 's/^/| /' conftest.$ac_ext >&5
  21200. -
  21201. - ac_header_preproc=no
  21202. -fi
  21203. -
  21204. -rm -f conftest.err conftest.$ac_ext
  21205. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21206. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  21207. -
  21208. -# So? What about this header?
  21209. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21210. - yes:no: )
  21211. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21212. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21213. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21214. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21215. - ac_header_preproc=yes
  21216. - ;;
  21217. - no:yes:* )
  21218. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21219. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21220. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21221. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21222. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21223. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21224. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21225. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21226. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21227. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21228. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21229. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21230. -
  21231. - ;;
  21232. -esac
  21233. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  21234. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21235. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21236. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21237. -else
  21238. - eval "$as_ac_Header=\$ac_header_preproc"
  21239. -fi
  21240. -ac_res=`eval echo '${'$as_ac_Header'}'`
  21241. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  21242. -echo "${ECHO_T}$ac_res" >&6; }
  21243. -
  21244. -fi
  21245. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21246. - cat >>confdefs.h <<_ACEOF
  21247. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21248. -_ACEOF
  21249. -
  21250. -fi
  21251. -
  21252. -done
  21253. -
  21254. -ac_ext=cpp
  21255. -ac_cpp='$CXXCPP $CPPFLAGS'
  21256. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21257. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21258. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21259. -if test -z "$CXX"; then
  21260. - if test -n "$CCC"; then
  21261. - CXX=$CCC
  21262. - else
  21263. - if test -n "$ac_tool_prefix"; then
  21264. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  21265. - do
  21266. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21267. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21268. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21269. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21270. -if test "${ac_cv_prog_CXX+set}" = set; then
  21271. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21272. -else
  21273. - if test -n "$CXX"; then
  21274. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  21275. + if test -n "$OBJDUMP"; then
  21276. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  21277. else
  21278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21279. for as_dir in $PATH
  21280. do
  21281. IFS=$as_save_IFS
  21282. test -z "$as_dir" && as_dir=.
  21283. - for ac_exec_ext in '' $ac_executable_extensions; do
  21284. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  21285. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  21286. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21287. + for ac_exec_ext in '' $ac_executable_extensions; do
  21288. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21289. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  21290. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21291. break 2
  21292. fi
  21293. done
  21294. -done
  21295. + done
  21296. IFS=$as_save_IFS
  21297. fi
  21298. fi
  21299. -CXX=$ac_cv_prog_CXX
  21300. -if test -n "$CXX"; then
  21301. - { echo "$as_me:$LINENO: result: $CXX" >&5
  21302. -echo "${ECHO_T}$CXX" >&6; }
  21303. +OBJDUMP=$ac_cv_prog_OBJDUMP
  21304. +if test -n "$OBJDUMP"; then
  21305. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  21306. +$as_echo "$OBJDUMP" >&6; }
  21307. else
  21308. - { echo "$as_me:$LINENO: result: no" >&5
  21309. -echo "${ECHO_T}no" >&6; }
  21310. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21311. +$as_echo "no" >&6; }
  21312. fi
  21313. - test -n "$CXX" && break
  21314. - done
  21315. fi
  21316. -if test -z "$CXX"; then
  21317. - ac_ct_CXX=$CXX
  21318. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  21319. -do
  21320. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  21321. -set dummy $ac_prog; ac_word=$2
  21322. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21323. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21324. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  21325. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21326. +if test -z "$ac_cv_prog_OBJDUMP"; then
  21327. + ac_ct_OBJDUMP=$OBJDUMP
  21328. + # Extract the first word of "objdump", so it can be a program name with args.
  21329. +set dummy objdump; ac_word=$2
  21330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21331. +$as_echo_n "checking for $ac_word... " >&6; }
  21332. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  21333. + $as_echo_n "(cached) " >&6
  21334. else
  21335. - if test -n "$ac_ct_CXX"; then
  21336. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  21337. + if test -n "$ac_ct_OBJDUMP"; then
  21338. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  21339. else
  21340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21341. for as_dir in $PATH
  21342. do
  21343. IFS=$as_save_IFS
  21344. test -z "$as_dir" && as_dir=.
  21345. - for ac_exec_ext in '' $ac_executable_extensions; do
  21346. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  21347. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  21348. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21349. + for ac_exec_ext in '' $ac_executable_extensions; do
  21350. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21351. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  21352. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21353. break 2
  21354. fi
  21355. done
  21356. -done
  21357. + done
  21358. IFS=$as_save_IFS
  21359. fi
  21360. fi
  21361. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  21362. -if test -n "$ac_ct_CXX"; then
  21363. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  21364. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  21365. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  21366. +if test -n "$ac_ct_OBJDUMP"; then
  21367. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  21368. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  21369. else
  21370. - { echo "$as_me:$LINENO: result: no" >&5
  21371. -echo "${ECHO_T}no" >&6; }
  21372. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21373. +$as_echo "no" >&6; }
  21374. fi
  21375. -
  21376. - test -n "$ac_ct_CXX" && break
  21377. -done
  21378. -
  21379. - if test "x$ac_ct_CXX" = x; then
  21380. - CXX="g++"
  21381. + if test "x$ac_ct_OBJDUMP" = x; then
  21382. + OBJDUMP="false"
  21383. else
  21384. case $cross_compiling:$ac_tool_warned in
  21385. yes:)
  21386. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21387. -whose name does not start with the host triplet. If you think this
  21388. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21389. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21390. -whose name does not start with the host triplet. If you think this
  21391. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21392. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21393. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21394. ac_tool_warned=yes ;;
  21395. esac
  21396. - CXX=$ac_ct_CXX
  21397. + OBJDUMP=$ac_ct_OBJDUMP
  21398. fi
  21399. +else
  21400. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  21401. fi
  21402. - fi
  21403. -fi
  21404. -# Provide some information about the compiler.
  21405. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  21406. -ac_compiler=`set X $ac_compile; echo $2`
  21407. -{ (ac_try="$ac_compiler --version >&5"
  21408. -case "(($ac_try" in
  21409. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21410. - *) ac_try_echo=$ac_try;;
  21411. -esac
  21412. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21413. - (eval "$ac_compiler --version >&5") 2>&5
  21414. - ac_status=$?
  21415. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21416. - (exit $ac_status); }
  21417. -{ (ac_try="$ac_compiler -v >&5"
  21418. -case "(($ac_try" in
  21419. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21420. - *) ac_try_echo=$ac_try;;
  21421. -esac
  21422. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21423. - (eval "$ac_compiler -v >&5") 2>&5
  21424. - ac_status=$?
  21425. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21426. - (exit $ac_status); }
  21427. -{ (ac_try="$ac_compiler -V >&5"
  21428. -case "(($ac_try" in
  21429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21430. - *) ac_try_echo=$ac_try;;
  21431. -esac
  21432. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21433. - (eval "$ac_compiler -V >&5") 2>&5
  21434. - ac_status=$?
  21435. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21436. - (exit $ac_status); }
  21437. +test -z "$OBJDUMP" && OBJDUMP=objdump
  21438. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  21439. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  21440. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  21441. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21442. -else
  21443. - cat >conftest.$ac_ext <<_ACEOF
  21444. -/* confdefs.h. */
  21445. -_ACEOF
  21446. -cat confdefs.h >>conftest.$ac_ext
  21447. -cat >>conftest.$ac_ext <<_ACEOF
  21448. -/* end confdefs.h. */
  21449. -int
  21450. -main ()
  21451. -{
  21452. -#ifndef __GNUC__
  21453. - choke me
  21454. -#endif
  21455. - ;
  21456. - return 0;
  21457. -}
  21458. -_ACEOF
  21459. -rm -f conftest.$ac_objext
  21460. -if { (ac_try="$ac_compile"
  21461. -case "(($ac_try" in
  21462. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21463. - *) ac_try_echo=$ac_try;;
  21464. -esac
  21465. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21466. - (eval "$ac_compile") 2>conftest.er1
  21467. - ac_status=$?
  21468. - grep -v '^ *+' conftest.er1 >conftest.err
  21469. - rm -f conftest.er1
  21470. - cat conftest.err >&5
  21471. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21472. - (exit $ac_status); } &&
  21473. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  21474. - { (case "(($ac_try" in
  21475. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21476. - *) ac_try_echo=$ac_try;;
  21477. -esac
  21478. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21479. - (eval "$ac_try") 2>&5
  21480. - ac_status=$?
  21481. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21482. - (exit $ac_status); }; } &&
  21483. - { ac_try='test -s conftest.$ac_objext'
  21484. - { (case "(($ac_try" in
  21485. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21486. - *) ac_try_echo=$ac_try;;
  21487. -esac
  21488. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21489. - (eval "$ac_try") 2>&5
  21490. - ac_status=$?
  21491. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21492. - (exit $ac_status); }; }; then
  21493. - ac_compiler_gnu=yes
  21494. -else
  21495. - echo "$as_me: failed program was:" >&5
  21496. -sed 's/^/| /' conftest.$ac_ext >&5
  21497. - ac_compiler_gnu=no
  21498. -fi
  21499. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21500. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  21501. -fi
  21502. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  21503. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  21504. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  21505. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  21506. -ac_save_CXXFLAGS=$CXXFLAGS
  21507. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  21508. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  21509. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  21510. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21511. -else
  21512. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  21513. - ac_cxx_werror_flag=yes
  21514. - ac_cv_prog_cxx_g=no
  21515. - CXXFLAGS="-g"
  21516. - cat >conftest.$ac_ext <<_ACEOF
  21517. -/* confdefs.h. */
  21518. -_ACEOF
  21519. -cat confdefs.h >>conftest.$ac_ext
  21520. -cat >>conftest.$ac_ext <<_ACEOF
  21521. -/* end confdefs.h. */
  21522. -int
  21523. -main ()
  21524. -{
  21525. - ;
  21526. - return 0;
  21527. -}
  21528. -_ACEOF
  21529. -rm -f conftest.$ac_objext
  21530. -if { (ac_try="$ac_compile"
  21531. -case "(($ac_try" in
  21532. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21533. - *) ac_try_echo=$ac_try;;
  21534. -esac
  21535. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21536. - (eval "$ac_compile") 2>conftest.er1
  21537. - ac_status=$?
  21538. - grep -v '^ *+' conftest.er1 >conftest.err
  21539. - rm -f conftest.er1
  21540. - cat conftest.err >&5
  21541. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21542. - (exit $ac_status); } &&
  21543. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  21544. - { (case "(($ac_try" in
  21545. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21546. - *) ac_try_echo=$ac_try;;
  21547. -esac
  21548. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21549. - (eval "$ac_try") 2>&5
  21550. - ac_status=$?
  21551. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21552. - (exit $ac_status); }; } &&
  21553. - { ac_try='test -s conftest.$ac_objext'
  21554. - { (case "(($ac_try" in
  21555. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21556. - *) ac_try_echo=$ac_try;;
  21557. -esac
  21558. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21559. - (eval "$ac_try") 2>&5
  21560. - ac_status=$?
  21561. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21562. - (exit $ac_status); }; }; then
  21563. - ac_cv_prog_cxx_g=yes
  21564. -else
  21565. - echo "$as_me: failed program was:" >&5
  21566. -sed 's/^/| /' conftest.$ac_ext >&5
  21567. -
  21568. - CXXFLAGS=""
  21569. - cat >conftest.$ac_ext <<_ACEOF
  21570. -/* confdefs.h. */
  21571. -_ACEOF
  21572. -cat confdefs.h >>conftest.$ac_ext
  21573. -cat >>conftest.$ac_ext <<_ACEOF
  21574. -/* end confdefs.h. */
  21575. -
  21576. -int
  21577. -main ()
  21578. -{
  21579. -
  21580. - ;
  21581. - return 0;
  21582. -}
  21583. -_ACEOF
  21584. -rm -f conftest.$ac_objext
  21585. -if { (ac_try="$ac_compile"
  21586. -case "(($ac_try" in
  21587. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21588. - *) ac_try_echo=$ac_try;;
  21589. -esac
  21590. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21591. - (eval "$ac_compile") 2>conftest.er1
  21592. - ac_status=$?
  21593. - grep -v '^ *+' conftest.er1 >conftest.err
  21594. - rm -f conftest.er1
  21595. - cat conftest.err >&5
  21596. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21597. - (exit $ac_status); } &&
  21598. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  21599. - { (case "(($ac_try" in
  21600. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21601. - *) ac_try_echo=$ac_try;;
  21602. -esac
  21603. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21604. - (eval "$ac_try") 2>&5
  21605. - ac_status=$?
  21606. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21607. - (exit $ac_status); }; } &&
  21608. - { ac_try='test -s conftest.$ac_objext'
  21609. - { (case "(($ac_try" in
  21610. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21611. - *) ac_try_echo=$ac_try;;
  21612. -esac
  21613. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21614. - (eval "$ac_try") 2>&5
  21615. - ac_status=$?
  21616. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21617. - (exit $ac_status); }; }; then
  21618. - :
  21619. -else
  21620. - echo "$as_me: failed program was:" >&5
  21621. -sed 's/^/| /' conftest.$ac_ext >&5
  21622. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21623. - CXXFLAGS="-g"
  21624. - cat >conftest.$ac_ext <<_ACEOF
  21625. -/* confdefs.h. */
  21626. -_ACEOF
  21627. -cat confdefs.h >>conftest.$ac_ext
  21628. -cat >>conftest.$ac_ext <<_ACEOF
  21629. -/* end confdefs.h. */
  21630. -
  21631. -int
  21632. -main ()
  21633. -{
  21634. -
  21635. - ;
  21636. - return 0;
  21637. -}
  21638. -_ACEOF
  21639. -rm -f conftest.$ac_objext
  21640. -if { (ac_try="$ac_compile"
  21641. -case "(($ac_try" in
  21642. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21643. - *) ac_try_echo=$ac_try;;
  21644. -esac
  21645. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21646. - (eval "$ac_compile") 2>conftest.er1
  21647. - ac_status=$?
  21648. - grep -v '^ *+' conftest.er1 >conftest.err
  21649. - rm -f conftest.er1
  21650. - cat conftest.err >&5
  21651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21652. - (exit $ac_status); } &&
  21653. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  21654. - { (case "(($ac_try" in
  21655. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21656. - *) ac_try_echo=$ac_try;;
  21657. -esac
  21658. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21659. - (eval "$ac_try") 2>&5
  21660. - ac_status=$?
  21661. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21662. - (exit $ac_status); }; } &&
  21663. - { ac_try='test -s conftest.$ac_objext'
  21664. - { (case "(($ac_try" in
  21665. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21666. - *) ac_try_echo=$ac_try;;
  21667. -esac
  21668. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21669. - (eval "$ac_try") 2>&5
  21670. - ac_status=$?
  21671. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21672. - (exit $ac_status); }; }; then
  21673. - ac_cv_prog_cxx_g=yes
  21674. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  21675. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  21676. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  21677. + $as_echo_n "(cached) " >&6
  21678. else
  21679. - echo "$as_me: failed program was:" >&5
  21680. -sed 's/^/| /' conftest.$ac_ext >&5
  21681. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  21682. +lt_cv_file_magic_test_file=
  21683. +lt_cv_deplibs_check_method='unknown'
  21684. +# Need to set the preceding variable on all platforms that support
  21685. +# interlibrary dependencies.
  21686. +# 'none' -- dependencies not supported.
  21687. +# `unknown' -- same as none, but documents that we really don't know.
  21688. +# 'pass_all' -- all dependencies passed with no checks.
  21689. +# 'test_compile' -- check by making test program.
  21690. +# 'file_magic [[regex]]' -- check by looking for files in library path
  21691. +# which responds to the $file_magic_cmd with a given extended regex.
  21692. +# If you have `file' or equivalent on your system and you're not sure
  21693. +# whether `pass_all' will *always* work, you probably want this one.
  21694. +case $host_os in
  21695. +aix[4-9]*)
  21696. + lt_cv_deplibs_check_method=pass_all
  21697. + ;;
  21698. -fi
  21699. +beos*)
  21700. + lt_cv_deplibs_check_method=pass_all
  21701. + ;;
  21702. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21703. -fi
  21704. +bsdi[45]*)
  21705. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  21706. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  21707. + lt_cv_file_magic_test_file=/shlib/libc.so
  21708. + ;;
  21709. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21710. -fi
  21711. +cygwin*)
  21712. + # func_win32_libid is a shell function defined in ltmain.sh
  21713. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21714. + lt_cv_file_magic_cmd='func_win32_libid'
  21715. + ;;
  21716. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21717. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21718. -fi
  21719. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  21720. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  21721. -if test "$ac_test_CXXFLAGS" = set; then
  21722. - CXXFLAGS=$ac_save_CXXFLAGS
  21723. -elif test $ac_cv_prog_cxx_g = yes; then
  21724. - if test "$GXX" = yes; then
  21725. - CXXFLAGS="-g -O2"
  21726. - else
  21727. - CXXFLAGS="-g"
  21728. - fi
  21729. -else
  21730. - if test "$GXX" = yes; then
  21731. - CXXFLAGS="-O2"
  21732. +mingw* | pw32*)
  21733. + # Base MSYS/MinGW do not provide the 'file' command needed by
  21734. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  21735. + # unless we find 'file', for example because we are cross-compiling.
  21736. + if ( file / ) >/dev/null 2>&1; then
  21737. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21738. + lt_cv_file_magic_cmd='func_win32_libid'
  21739. else
  21740. - CXXFLAGS=
  21741. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  21742. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  21743. fi
  21744. -fi
  21745. -ac_ext=cpp
  21746. -ac_cpp='$CXXCPP $CPPFLAGS'
  21747. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21748. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21749. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21750. -
  21751. -depcc="$CXX" am_compiler_list=
  21752. + ;;
  21753. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  21754. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  21755. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  21756. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21757. -else
  21758. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21759. - # We make a subdir and do the tests there. Otherwise we can end up
  21760. - # making bogus files that we don't know about and never remove. For
  21761. - # instance it was reported that on HP-UX the gcc test will end up
  21762. - # making a dummy file named `D' -- because `-MD' means `put the output
  21763. - # in D'.
  21764. - mkdir conftest.dir
  21765. - # Copy depcomp to subdir because otherwise we won't find it if we're
  21766. - # using a relative directory.
  21767. - cp "$am_depcomp" conftest.dir
  21768. - cd conftest.dir
  21769. - # We will build objects and dependencies in a subdirectory because
  21770. - # it helps to detect inapplicable dependency modes. For instance
  21771. - # both Tru64's cc and ICC support -MD to output dependencies as a
  21772. - # side effect of compilation, but ICC will put the dependencies in
  21773. - # the current directory while Tru64 will put them in the object
  21774. - # directory.
  21775. - mkdir sub
  21776. +cegcc)
  21777. + # use the weaker test based on 'objdump'. See mingw*.
  21778. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  21779. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  21780. + ;;
  21781. - am_cv_CXX_dependencies_compiler_type=none
  21782. - if test "$am_compiler_list" = ""; then
  21783. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21784. - fi
  21785. - for depmode in $am_compiler_list; do
  21786. - # Setup a source with many dependencies, because some compilers
  21787. - # like to wrap large dependency lists on column 80 (with \), and
  21788. - # we should not choose a depcomp mode which is confused by this.
  21789. - #
  21790. - # We need to recreate these files for each test, as the compiler may
  21791. - # overwrite some of them when testing with obscure command lines.
  21792. - # This happens at least with the AIX C compiler.
  21793. - : > sub/conftest.c
  21794. - for i in 1 2 3 4 5 6; do
  21795. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21796. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21797. - # Solaris 8's {/usr,}/bin/sh.
  21798. - touch sub/conftst$i.h
  21799. - done
  21800. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21801. +darwin* | rhapsody*)
  21802. + lt_cv_deplibs_check_method=pass_all
  21803. + ;;
  21804. - case $depmode in
  21805. - nosideeffect)
  21806. - # after this tag, mechanisms are not by side-effect, so they'll
  21807. - # only be used when explicitly requested
  21808. - if test "x$enable_dependency_tracking" = xyes; then
  21809. - continue
  21810. - else
  21811. - break
  21812. - fi
  21813. +freebsd* | dragonfly*)
  21814. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  21815. + case $host_cpu in
  21816. + i*86 )
  21817. + # Not sure whether the presence of OpenBSD here was a mistake.
  21818. + # Let's accept both of them until this is cleared up.
  21819. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  21820. + lt_cv_file_magic_cmd=/usr/bin/file
  21821. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  21822. ;;
  21823. - none) break ;;
  21824. esac
  21825. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21826. - # mode. It turns out that the SunPro C++ compiler does not properly
  21827. - # handle `-M -o', and we need to detect this.
  21828. - if depmode=$depmode \
  21829. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  21830. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21831. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  21832. - >/dev/null 2>conftest.err &&
  21833. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21834. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  21835. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21836. - # icc doesn't choke on unknown options, it will just issue warnings
  21837. - # or remarks (even with -Werror). So we grep stderr for any message
  21838. - # that says an option was ignored or not supported.
  21839. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  21840. - # icc: Command line warning: ignoring option '-M'; no argument required
  21841. - # The diagnosis changed in icc 8.0:
  21842. - # icc: Command line remark: option '-MP' not supported
  21843. - if (grep 'ignoring option' conftest.err ||
  21844. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21845. - am_cv_CXX_dependencies_compiler_type=$depmode
  21846. - break
  21847. - fi
  21848. - fi
  21849. - done
  21850. -
  21851. - cd ..
  21852. - rm -rf conftest.dir
  21853. -else
  21854. - am_cv_CXX_dependencies_compiler_type=none
  21855. -fi
  21856. -
  21857. -fi
  21858. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  21859. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  21860. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  21861. + else
  21862. + lt_cv_deplibs_check_method=pass_all
  21863. + fi
  21864. + ;;
  21865. +gnu*)
  21866. + lt_cv_deplibs_check_method=pass_all
  21867. + ;;
  21868. +hpux10.20* | hpux11*)
  21869. + lt_cv_file_magic_cmd=/usr/bin/file
  21870. + case $host_cpu in
  21871. + ia64*)
  21872. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  21873. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  21874. + ;;
  21875. + hppa*64*)
  21876. + 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]'
  21877. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  21878. + ;;
  21879. + *)
  21880. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  21881. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  21882. + ;;
  21883. + esac
  21884. + ;;
  21885. -if
  21886. - test "x$enable_dependency_tracking" != xno \
  21887. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  21888. - am__fastdepCXX_TRUE=
  21889. - am__fastdepCXX_FALSE='#'
  21890. -else
  21891. - am__fastdepCXX_TRUE='#'
  21892. - am__fastdepCXX_FALSE=
  21893. -fi
  21894. +interix[3-9]*)
  21895. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  21896. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  21897. + ;;
  21898. +irix5* | irix6* | nonstopux*)
  21899. + case $LD in
  21900. + *-32|*"-32 ") libmagic=32-bit;;
  21901. + *-n32|*"-n32 ") libmagic=N32;;
  21902. + *-64|*"-64 ") libmagic=64-bit;;
  21903. + *) libmagic=never-match;;
  21904. + esac
  21905. + lt_cv_deplibs_check_method=pass_all
  21906. + ;;
  21907. +# This must be Linux ELF.
  21908. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  21909. + lt_cv_deplibs_check_method=pass_all
  21910. + ;;
  21911. +netbsd* | netbsdelf*-gnu)
  21912. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  21913. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21914. + else
  21915. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  21916. + fi
  21917. + ;;
  21918. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  21919. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  21920. - (test "X$CXX" != "Xg++"))) ; then
  21921. - ac_ext=cpp
  21922. -ac_cpp='$CXXCPP $CPPFLAGS'
  21923. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21924. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21925. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21926. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  21927. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  21928. -if test -z "$CXXCPP"; then
  21929. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  21930. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21931. -else
  21932. - # Double quotes because CXXCPP needs to be expanded
  21933. - for CXXCPP in "$CXX -E" "/lib/cpp"
  21934. - do
  21935. - ac_preproc_ok=false
  21936. -for ac_cxx_preproc_warn_flag in '' yes
  21937. -do
  21938. - # Use a header file that comes with gcc, so configuring glibc
  21939. - # with a fresh cross-compiler works.
  21940. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21941. - # <limits.h> exists even on freestanding compilers.
  21942. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21943. - # not just through cpp. "Syntax error" is here to catch this case.
  21944. - cat >conftest.$ac_ext <<_ACEOF
  21945. -/* confdefs.h. */
  21946. -_ACEOF
  21947. -cat confdefs.h >>conftest.$ac_ext
  21948. -cat >>conftest.$ac_ext <<_ACEOF
  21949. -/* end confdefs.h. */
  21950. -#ifdef __STDC__
  21951. -# include <limits.h>
  21952. -#else
  21953. -# include <assert.h>
  21954. -#endif
  21955. - Syntax error
  21956. -_ACEOF
  21957. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21958. -case "(($ac_try" in
  21959. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21960. - *) ac_try_echo=$ac_try;;
  21961. -esac
  21962. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21963. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21964. - ac_status=$?
  21965. - grep -v '^ *+' conftest.er1 >conftest.err
  21966. - rm -f conftest.er1
  21967. - cat conftest.err >&5
  21968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21969. - (exit $ac_status); } >/dev/null; then
  21970. - if test -s conftest.err; then
  21971. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  21972. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  21973. - else
  21974. - ac_cpp_err=
  21975. - fi
  21976. -else
  21977. - ac_cpp_err=yes
  21978. -fi
  21979. -if test -z "$ac_cpp_err"; then
  21980. - :
  21981. -else
  21982. - echo "$as_me: failed program was:" >&5
  21983. -sed 's/^/| /' conftest.$ac_ext >&5
  21984. -
  21985. - # Broken: fails on valid input.
  21986. -continue
  21987. -fi
  21988. +newos6*)
  21989. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  21990. + lt_cv_file_magic_cmd=/usr/bin/file
  21991. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  21992. + ;;
  21993. -rm -f conftest.err conftest.$ac_ext
  21994. +*nto* | *qnx*)
  21995. + lt_cv_deplibs_check_method=pass_all
  21996. + ;;
  21997. - # OK, works on sane cases. Now check whether nonexistent headers
  21998. - # can be detected and how.
  21999. - cat >conftest.$ac_ext <<_ACEOF
  22000. -/* confdefs.h. */
  22001. -_ACEOF
  22002. -cat confdefs.h >>conftest.$ac_ext
  22003. -cat >>conftest.$ac_ext <<_ACEOF
  22004. -/* end confdefs.h. */
  22005. -#include <ac_nonexistent.h>
  22006. -_ACEOF
  22007. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22008. -case "(($ac_try" in
  22009. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22010. - *) ac_try_echo=$ac_try;;
  22011. -esac
  22012. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22013. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22014. - ac_status=$?
  22015. - grep -v '^ *+' conftest.er1 >conftest.err
  22016. - rm -f conftest.er1
  22017. - cat conftest.err >&5
  22018. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22019. - (exit $ac_status); } >/dev/null; then
  22020. - if test -s conftest.err; then
  22021. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  22022. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22023. +openbsd*)
  22024. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22025. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  22026. else
  22027. - ac_cpp_err=
  22028. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22029. fi
  22030. -else
  22031. - ac_cpp_err=yes
  22032. -fi
  22033. -if test -z "$ac_cpp_err"; then
  22034. - # Broken: success on invalid input.
  22035. -continue
  22036. -else
  22037. - echo "$as_me: failed program was:" >&5
  22038. -sed 's/^/| /' conftest.$ac_ext >&5
  22039. + ;;
  22040. - # Passes both tests.
  22041. -ac_preproc_ok=:
  22042. -break
  22043. -fi
  22044. +osf3* | osf4* | osf5*)
  22045. + lt_cv_deplibs_check_method=pass_all
  22046. + ;;
  22047. -rm -f conftest.err conftest.$ac_ext
  22048. +rdos*)
  22049. + lt_cv_deplibs_check_method=pass_all
  22050. + ;;
  22051. -done
  22052. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22053. -rm -f conftest.err conftest.$ac_ext
  22054. -if $ac_preproc_ok; then
  22055. - break
  22056. -fi
  22057. +solaris*)
  22058. + lt_cv_deplibs_check_method=pass_all
  22059. + ;;
  22060. - done
  22061. - ac_cv_prog_CXXCPP=$CXXCPP
  22062. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  22063. + lt_cv_deplibs_check_method=pass_all
  22064. + ;;
  22065. -fi
  22066. - CXXCPP=$ac_cv_prog_CXXCPP
  22067. -else
  22068. - ac_cv_prog_CXXCPP=$CXXCPP
  22069. -fi
  22070. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  22071. -echo "${ECHO_T}$CXXCPP" >&6; }
  22072. -ac_preproc_ok=false
  22073. -for ac_cxx_preproc_warn_flag in '' yes
  22074. -do
  22075. - # Use a header file that comes with gcc, so configuring glibc
  22076. - # with a fresh cross-compiler works.
  22077. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22078. - # <limits.h> exists even on freestanding compilers.
  22079. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22080. - # not just through cpp. "Syntax error" is here to catch this case.
  22081. - cat >conftest.$ac_ext <<_ACEOF
  22082. -/* confdefs.h. */
  22083. -_ACEOF
  22084. -cat confdefs.h >>conftest.$ac_ext
  22085. -cat >>conftest.$ac_ext <<_ACEOF
  22086. -/* end confdefs.h. */
  22087. -#ifdef __STDC__
  22088. -# include <limits.h>
  22089. -#else
  22090. -# include <assert.h>
  22091. -#endif
  22092. - Syntax error
  22093. -_ACEOF
  22094. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22095. -case "(($ac_try" in
  22096. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22097. - *) ac_try_echo=$ac_try;;
  22098. +sysv4 | sysv4.3*)
  22099. + case $host_vendor in
  22100. + motorola)
  22101. + 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]'
  22102. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  22103. + ;;
  22104. + ncr)
  22105. + lt_cv_deplibs_check_method=pass_all
  22106. + ;;
  22107. + sequent)
  22108. + lt_cv_file_magic_cmd='/bin/file'
  22109. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  22110. + ;;
  22111. + sni)
  22112. + lt_cv_file_magic_cmd='/bin/file'
  22113. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  22114. + lt_cv_file_magic_test_file=/lib/libc.so
  22115. + ;;
  22116. + siemens)
  22117. + lt_cv_deplibs_check_method=pass_all
  22118. + ;;
  22119. + pc)
  22120. + lt_cv_deplibs_check_method=pass_all
  22121. + ;;
  22122. + esac
  22123. + ;;
  22124. +
  22125. +tpf*)
  22126. + lt_cv_deplibs_check_method=pass_all
  22127. + ;;
  22128. esac
  22129. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22130. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22131. - ac_status=$?
  22132. - grep -v '^ *+' conftest.er1 >conftest.err
  22133. - rm -f conftest.er1
  22134. - cat conftest.err >&5
  22135. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22136. - (exit $ac_status); } >/dev/null; then
  22137. - if test -s conftest.err; then
  22138. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  22139. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22140. - else
  22141. - ac_cpp_err=
  22142. - fi
  22143. -else
  22144. - ac_cpp_err=yes
  22145. -fi
  22146. -if test -z "$ac_cpp_err"; then
  22147. - :
  22148. -else
  22149. - echo "$as_me: failed program was:" >&5
  22150. -sed 's/^/| /' conftest.$ac_ext >&5
  22151. - # Broken: fails on valid input.
  22152. -continue
  22153. fi
  22154. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  22155. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  22156. +file_magic_cmd=$lt_cv_file_magic_cmd
  22157. +deplibs_check_method=$lt_cv_deplibs_check_method
  22158. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  22159. +
  22160. +
  22161. +
  22162. -rm -f conftest.err conftest.$ac_ext
  22163. - # OK, works on sane cases. Now check whether nonexistent headers
  22164. - # can be detected and how.
  22165. - cat >conftest.$ac_ext <<_ACEOF
  22166. -/* confdefs.h. */
  22167. -_ACEOF
  22168. -cat confdefs.h >>conftest.$ac_ext
  22169. -cat >>conftest.$ac_ext <<_ACEOF
  22170. -/* end confdefs.h. */
  22171. -#include <ac_nonexistent.h>
  22172. -_ACEOF
  22173. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22174. -case "(($ac_try" in
  22175. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22176. - *) ac_try_echo=$ac_try;;
  22177. -esac
  22178. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22179. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22180. - ac_status=$?
  22181. - grep -v '^ *+' conftest.er1 >conftest.err
  22182. - rm -f conftest.er1
  22183. - cat conftest.err >&5
  22184. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22185. - (exit $ac_status); } >/dev/null; then
  22186. - if test -s conftest.err; then
  22187. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  22188. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22189. - else
  22190. - ac_cpp_err=
  22191. - fi
  22192. -else
  22193. - ac_cpp_err=yes
  22194. -fi
  22195. -if test -z "$ac_cpp_err"; then
  22196. - # Broken: success on invalid input.
  22197. -continue
  22198. -else
  22199. - echo "$as_me: failed program was:" >&5
  22200. -sed 's/^/| /' conftest.$ac_ext >&5
  22201. - # Passes both tests.
  22202. -ac_preproc_ok=:
  22203. -break
  22204. -fi
  22205. -rm -f conftest.err conftest.$ac_ext
  22206. -done
  22207. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22208. -rm -f conftest.err conftest.$ac_ext
  22209. -if $ac_preproc_ok; then
  22210. - :
  22211. -else
  22212. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  22213. -See \`config.log' for more details." >&5
  22214. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  22215. -See \`config.log' for more details." >&2;}
  22216. - { (exit 1); exit 1; }; }
  22217. -fi
  22218. -ac_ext=cpp
  22219. -ac_cpp='$CXXCPP $CPPFLAGS'
  22220. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22221. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22222. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22223. -fi
  22224. -ac_ext=f
  22225. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  22226. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22227. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  22228. if test -n "$ac_tool_prefix"; then
  22229. - for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  22230. - do
  22231. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22232. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22233. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22234. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22235. -if test "${ac_cv_prog_F77+set}" = set; then
  22236. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22237. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22238. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  22239. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22240. +$as_echo_n "checking for $ac_word... " >&6; }
  22241. +if test "${ac_cv_prog_AR+set}" = set; then :
  22242. + $as_echo_n "(cached) " >&6
  22243. else
  22244. - if test -n "$F77"; then
  22245. - ac_cv_prog_F77="$F77" # Let the user override the test.
  22246. + if test -n "$AR"; then
  22247. + ac_cv_prog_AR="$AR" # Let the user override the test.
  22248. else
  22249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22250. for as_dir in $PATH
  22251. do
  22252. IFS=$as_save_IFS
  22253. test -z "$as_dir" && as_dir=.
  22254. - for ac_exec_ext in '' $ac_executable_extensions; do
  22255. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  22256. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  22257. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22258. + for ac_exec_ext in '' $ac_executable_extensions; do
  22259. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22260. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  22261. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22262. break 2
  22263. fi
  22264. done
  22265. -done
  22266. + done
  22267. IFS=$as_save_IFS
  22268. fi
  22269. fi
  22270. -F77=$ac_cv_prog_F77
  22271. -if test -n "$F77"; then
  22272. - { echo "$as_me:$LINENO: result: $F77" >&5
  22273. -echo "${ECHO_T}$F77" >&6; }
  22274. +AR=$ac_cv_prog_AR
  22275. +if test -n "$AR"; then
  22276. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  22277. +$as_echo "$AR" >&6; }
  22278. else
  22279. - { echo "$as_me:$LINENO: result: no" >&5
  22280. -echo "${ECHO_T}no" >&6; }
  22281. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22282. +$as_echo "no" >&6; }
  22283. fi
  22284. - test -n "$F77" && break
  22285. - done
  22286. fi
  22287. -if test -z "$F77"; then
  22288. - ac_ct_F77=$F77
  22289. - for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  22290. -do
  22291. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  22292. -set dummy $ac_prog; ac_word=$2
  22293. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22294. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22295. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  22296. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22297. +if test -z "$ac_cv_prog_AR"; then
  22298. + ac_ct_AR=$AR
  22299. + # Extract the first word of "ar", so it can be a program name with args.
  22300. +set dummy ar; ac_word=$2
  22301. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22302. +$as_echo_n "checking for $ac_word... " >&6; }
  22303. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22304. + $as_echo_n "(cached) " >&6
  22305. else
  22306. - if test -n "$ac_ct_F77"; then
  22307. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  22308. + if test -n "$ac_ct_AR"; then
  22309. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22310. else
  22311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22312. for as_dir in $PATH
  22313. do
  22314. IFS=$as_save_IFS
  22315. test -z "$as_dir" && as_dir=.
  22316. - for ac_exec_ext in '' $ac_executable_extensions; do
  22317. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  22318. - ac_cv_prog_ac_ct_F77="$ac_prog"
  22319. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22320. + for ac_exec_ext in '' $ac_executable_extensions; do
  22321. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22322. + ac_cv_prog_ac_ct_AR="ar"
  22323. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22324. break 2
  22325. fi
  22326. done
  22327. -done
  22328. + done
  22329. IFS=$as_save_IFS
  22330. fi
  22331. fi
  22332. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  22333. -if test -n "$ac_ct_F77"; then
  22334. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  22335. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  22336. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22337. +if test -n "$ac_ct_AR"; then
  22338. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22339. +$as_echo "$ac_ct_AR" >&6; }
  22340. else
  22341. - { echo "$as_me:$LINENO: result: no" >&5
  22342. -echo "${ECHO_T}no" >&6; }
  22343. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22344. +$as_echo "no" >&6; }
  22345. fi
  22346. -
  22347. - test -n "$ac_ct_F77" && break
  22348. -done
  22349. -
  22350. - if test "x$ac_ct_F77" = x; then
  22351. - F77=""
  22352. + if test "x$ac_ct_AR" = x; then
  22353. + AR="false"
  22354. else
  22355. case $cross_compiling:$ac_tool_warned in
  22356. yes:)
  22357. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22358. -whose name does not start with the host triplet. If you think this
  22359. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22360. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22361. -whose name does not start with the host triplet. If you think this
  22362. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22363. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22364. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22365. ac_tool_warned=yes ;;
  22366. esac
  22367. - F77=$ac_ct_F77
  22368. + AR=$ac_ct_AR
  22369. fi
  22370. +else
  22371. + AR="$ac_cv_prog_AR"
  22372. fi
  22373. +test -z "$AR" && AR=ar
  22374. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22375. -# Provide some information about the compiler.
  22376. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  22377. -ac_compiler=`set X $ac_compile; echo $2`
  22378. -{ (ac_try="$ac_compiler --version >&5"
  22379. -case "(($ac_try" in
  22380. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22381. - *) ac_try_echo=$ac_try;;
  22382. -esac
  22383. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22384. - (eval "$ac_compiler --version >&5") 2>&5
  22385. - ac_status=$?
  22386. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22387. - (exit $ac_status); }
  22388. -{ (ac_try="$ac_compiler -v >&5"
  22389. -case "(($ac_try" in
  22390. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22391. - *) ac_try_echo=$ac_try;;
  22392. -esac
  22393. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22394. - (eval "$ac_compiler -v >&5") 2>&5
  22395. - ac_status=$?
  22396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22397. - (exit $ac_status); }
  22398. -{ (ac_try="$ac_compiler -V >&5"
  22399. -case "(($ac_try" in
  22400. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22401. - *) ac_try_echo=$ac_try;;
  22402. -esac
  22403. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22404. - (eval "$ac_compiler -V >&5") 2>&5
  22405. - ac_status=$?
  22406. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22407. - (exit $ac_status); }
  22408. -rm -f a.out
  22409. -
  22410. -# If we don't use `.F' as extension, the preprocessor is not run on the
  22411. -# input file. (Note that this only needs to work for GNU compilers.)
  22412. -ac_save_ext=$ac_ext
  22413. -ac_ext=F
  22414. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  22415. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  22416. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  22417. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22418. -else
  22419. - cat >conftest.$ac_ext <<_ACEOF
  22420. - program main
  22421. -#ifndef __GNUC__
  22422. - choke me
  22423. -#endif
  22424. - end
  22425. -_ACEOF
  22426. -rm -f conftest.$ac_objext
  22427. -if { (ac_try="$ac_compile"
  22428. -case "(($ac_try" in
  22429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22430. - *) ac_try_echo=$ac_try;;
  22431. -esac
  22432. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22433. - (eval "$ac_compile") 2>conftest.er1
  22434. - ac_status=$?
  22435. - grep -v '^ *+' conftest.er1 >conftest.err
  22436. - rm -f conftest.er1
  22437. - cat conftest.err >&5
  22438. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22439. - (exit $ac_status); } &&
  22440. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  22441. - { (case "(($ac_try" in
  22442. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22443. - *) ac_try_echo=$ac_try;;
  22444. -esac
  22445. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22446. - (eval "$ac_try") 2>&5
  22447. - ac_status=$?
  22448. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22449. - (exit $ac_status); }; } &&
  22450. - { ac_try='test -s conftest.$ac_objext'
  22451. - { (case "(($ac_try" in
  22452. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22453. - *) ac_try_echo=$ac_try;;
  22454. -esac
  22455. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22456. - (eval "$ac_try") 2>&5
  22457. - ac_status=$?
  22458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22459. - (exit $ac_status); }; }; then
  22460. - ac_compiler_gnu=yes
  22461. -else
  22462. - echo "$as_me: failed program was:" >&5
  22463. -sed 's/^/| /' conftest.$ac_ext >&5
  22464. - ac_compiler_gnu=no
  22465. -fi
  22466. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22467. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  22468. -fi
  22469. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  22470. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  22471. -ac_ext=$ac_save_ext
  22472. -ac_test_FFLAGS=${FFLAGS+set}
  22473. -ac_save_FFLAGS=$FFLAGS
  22474. -FFLAGS=
  22475. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  22476. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  22477. -if test "${ac_cv_prog_f77_g+set}" = set; then
  22478. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22479. -else
  22480. - FFLAGS=-g
  22481. -cat >conftest.$ac_ext <<_ACEOF
  22482. - program main
  22483. - end
  22484. -_ACEOF
  22485. -rm -f conftest.$ac_objext
  22486. -if { (ac_try="$ac_compile"
  22487. -case "(($ac_try" in
  22488. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22489. - *) ac_try_echo=$ac_try;;
  22490. -esac
  22491. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22492. - (eval "$ac_compile") 2>conftest.er1
  22493. - ac_status=$?
  22494. - grep -v '^ *+' conftest.er1 >conftest.err
  22495. - rm -f conftest.er1
  22496. - cat conftest.err >&5
  22497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22498. - (exit $ac_status); } &&
  22499. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  22500. - { (case "(($ac_try" in
  22501. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22502. - *) ac_try_echo=$ac_try;;
  22503. -esac
  22504. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22505. - (eval "$ac_try") 2>&5
  22506. - ac_status=$?
  22507. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22508. - (exit $ac_status); }; } &&
  22509. - { ac_try='test -s conftest.$ac_objext'
  22510. - { (case "(($ac_try" in
  22511. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22512. - *) ac_try_echo=$ac_try;;
  22513. -esac
  22514. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22515. - (eval "$ac_try") 2>&5
  22516. - ac_status=$?
  22517. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22518. - (exit $ac_status); }; }; then
  22519. - ac_cv_prog_f77_g=yes
  22520. +
  22521. +
  22522. +
  22523. +
  22524. +
  22525. +if test -n "$ac_tool_prefix"; then
  22526. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22527. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  22528. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22529. +$as_echo_n "checking for $ac_word... " >&6; }
  22530. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  22531. + $as_echo_n "(cached) " >&6
  22532. else
  22533. - echo "$as_me: failed program was:" >&5
  22534. -sed 's/^/| /' conftest.$ac_ext >&5
  22535. + if test -n "$STRIP"; then
  22536. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22537. +else
  22538. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22539. +for as_dir in $PATH
  22540. +do
  22541. + IFS=$as_save_IFS
  22542. + test -z "$as_dir" && as_dir=.
  22543. + for ac_exec_ext in '' $ac_executable_extensions; do
  22544. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22545. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22546. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22547. + break 2
  22548. + fi
  22549. +done
  22550. + done
  22551. +IFS=$as_save_IFS
  22552. - ac_cv_prog_f77_g=no
  22553. +fi
  22554. +fi
  22555. +STRIP=$ac_cv_prog_STRIP
  22556. +if test -n "$STRIP"; then
  22557. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  22558. +$as_echo "$STRIP" >&6; }
  22559. +else
  22560. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22561. +$as_echo "no" >&6; }
  22562. fi
  22563. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22564. fi
  22565. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  22566. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  22567. -if test "$ac_test_FFLAGS" = set; then
  22568. - FFLAGS=$ac_save_FFLAGS
  22569. -elif test $ac_cv_prog_f77_g = yes; then
  22570. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  22571. - FFLAGS="-g -O2"
  22572. - else
  22573. - FFLAGS="-g"
  22574. +if test -z "$ac_cv_prog_STRIP"; then
  22575. + ac_ct_STRIP=$STRIP
  22576. + # Extract the first word of "strip", so it can be a program name with args.
  22577. +set dummy strip; ac_word=$2
  22578. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22579. +$as_echo_n "checking for $ac_word... " >&6; }
  22580. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  22581. + $as_echo_n "(cached) " >&6
  22582. +else
  22583. + if test -n "$ac_ct_STRIP"; then
  22584. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  22585. +else
  22586. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22587. +for as_dir in $PATH
  22588. +do
  22589. + IFS=$as_save_IFS
  22590. + test -z "$as_dir" && as_dir=.
  22591. + for ac_exec_ext in '' $ac_executable_extensions; do
  22592. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22593. + ac_cv_prog_ac_ct_STRIP="strip"
  22594. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22595. + break 2
  22596. fi
  22597. +done
  22598. + done
  22599. +IFS=$as_save_IFS
  22600. +
  22601. +fi
  22602. +fi
  22603. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  22604. +if test -n "$ac_ct_STRIP"; then
  22605. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  22606. +$as_echo "$ac_ct_STRIP" >&6; }
  22607. else
  22608. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  22609. - FFLAGS="-O2"
  22610. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22611. +$as_echo "no" >&6; }
  22612. +fi
  22613. +
  22614. + if test "x$ac_ct_STRIP" = x; then
  22615. + STRIP=":"
  22616. else
  22617. - FFLAGS=
  22618. + case $cross_compiling:$ac_tool_warned in
  22619. +yes:)
  22620. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22621. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22622. +ac_tool_warned=yes ;;
  22623. +esac
  22624. + STRIP=$ac_ct_STRIP
  22625. fi
  22626. +else
  22627. + STRIP="$ac_cv_prog_STRIP"
  22628. fi
  22629. -G77=`test $ac_compiler_gnu = yes && echo yes`
  22630. -ac_ext=c
  22631. -ac_cpp='$CPP $CPPFLAGS'
  22632. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22633. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22634. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22635. -
  22636. -
  22637. +test -z "$STRIP" && STRIP=:
  22638. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  22639. -# find the maximum length of command line arguments
  22640. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  22641. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  22642. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  22643. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22644. -else
  22645. - i=0
  22646. - teststring="ABCD"
  22647. - case $build_os in
  22648. - msdosdjgpp*)
  22649. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  22650. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  22651. - # during glob expansion). Even if it were fixed, the result of this
  22652. - # check would be larger than it should be.
  22653. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  22654. - ;;
  22655. - gnu*)
  22656. - # Under GNU Hurd, this test is not required because there is
  22657. - # no limit to the length of command line arguments.
  22658. - # Libtool will interpret -1 as no limit whatsoever
  22659. - lt_cv_sys_max_cmd_len=-1;
  22660. - ;;
  22661. - cygwin* | mingw*)
  22662. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  22663. - # about 5 minutes as the teststring grows exponentially.
  22664. - # Worse, since 9x/ME are not pre-emptively multitasking,
  22665. - # you end up with a "frozen" computer, even though with patience
  22666. - # the test eventually succeeds (with a max line length of 256k).
  22667. - # Instead, let's just punt: use the minimum linelength reported by
  22668. - # all of the supported platforms: 8192 (on NT/2K/XP).
  22669. - lt_cv_sys_max_cmd_len=8192;
  22670. - ;;
  22671. - amigaos*)
  22672. - # On AmigaOS with pdksh, this test takes hours, literally.
  22673. - # So we just punt and use a minimum line length of 8192.
  22674. - lt_cv_sys_max_cmd_len=8192;
  22675. - ;;
  22676. +if test -n "$ac_tool_prefix"; then
  22677. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  22678. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  22679. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22680. +$as_echo_n "checking for $ac_word... " >&6; }
  22681. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  22682. + $as_echo_n "(cached) " >&6
  22683. +else
  22684. + if test -n "$RANLIB"; then
  22685. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  22686. +else
  22687. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22688. +for as_dir in $PATH
  22689. +do
  22690. + IFS=$as_save_IFS
  22691. + test -z "$as_dir" && as_dir=.
  22692. + for ac_exec_ext in '' $ac_executable_extensions; do
  22693. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22694. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  22695. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22696. + break 2
  22697. + fi
  22698. +done
  22699. + done
  22700. +IFS=$as_save_IFS
  22701. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  22702. - # This has been around since 386BSD, at least. Likely further.
  22703. - if test -x /sbin/sysctl; then
  22704. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  22705. - elif test -x /usr/sbin/sysctl; then
  22706. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  22707. - else
  22708. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  22709. - fi
  22710. - # And add a safety zone
  22711. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  22712. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  22713. - ;;
  22714. +fi
  22715. +fi
  22716. +RANLIB=$ac_cv_prog_RANLIB
  22717. +if test -n "$RANLIB"; then
  22718. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  22719. +$as_echo "$RANLIB" >&6; }
  22720. +else
  22721. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22722. +$as_echo "no" >&6; }
  22723. +fi
  22724. - interix*)
  22725. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  22726. - lt_cv_sys_max_cmd_len=196608
  22727. - ;;
  22728. - osf*)
  22729. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  22730. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  22731. - # nice to cause kernel panics so lets avoid the loop below.
  22732. - # First set a reasonable default.
  22733. - lt_cv_sys_max_cmd_len=16384
  22734. - #
  22735. - if test -x /sbin/sysconfig; then
  22736. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  22737. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  22738. - esac
  22739. - fi
  22740. - ;;
  22741. - sco3.2v5*)
  22742. - lt_cv_sys_max_cmd_len=102400
  22743. - ;;
  22744. - sysv5* | sco5v6* | sysv4.2uw2*)
  22745. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  22746. - if test -n "$kargmax"; then
  22747. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  22748. - else
  22749. - lt_cv_sys_max_cmd_len=32768
  22750. - fi
  22751. - ;;
  22752. - *)
  22753. - # If test is not a shell built-in, we'll probably end up computing a
  22754. - # maximum length that is only half of the actual maximum length, but
  22755. - # we can't tell.
  22756. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  22757. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  22758. - = "XX$teststring") >/dev/null 2>&1 &&
  22759. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  22760. - lt_cv_sys_max_cmd_len=$new_result &&
  22761. - test $i != 17 # 1/2 MB should be enough
  22762. - do
  22763. - i=`expr $i + 1`
  22764. - teststring=$teststring$teststring
  22765. - done
  22766. - teststring=
  22767. - # Add a significant safety factor because C++ compilers can tack on massive
  22768. - # amounts of additional arguments before passing them to the linker.
  22769. - # It appears as though 1/2 is a usable value.
  22770. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  22771. - ;;
  22772. - esac
  22773. +fi
  22774. +if test -z "$ac_cv_prog_RANLIB"; then
  22775. + ac_ct_RANLIB=$RANLIB
  22776. + # Extract the first word of "ranlib", so it can be a program name with args.
  22777. +set dummy ranlib; ac_word=$2
  22778. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22779. +$as_echo_n "checking for $ac_word... " >&6; }
  22780. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  22781. + $as_echo_n "(cached) " >&6
  22782. +else
  22783. + if test -n "$ac_ct_RANLIB"; then
  22784. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  22785. +else
  22786. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22787. +for as_dir in $PATH
  22788. +do
  22789. + IFS=$as_save_IFS
  22790. + test -z "$as_dir" && as_dir=.
  22791. + for ac_exec_ext in '' $ac_executable_extensions; do
  22792. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22793. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  22794. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22795. + break 2
  22796. + fi
  22797. +done
  22798. + done
  22799. +IFS=$as_save_IFS
  22800. fi
  22801. +fi
  22802. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  22803. +if test -n "$ac_ct_RANLIB"; then
  22804. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  22805. +$as_echo "$ac_ct_RANLIB" >&6; }
  22806. +else
  22807. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22808. +$as_echo "no" >&6; }
  22809. +fi
  22810. -if test -n $lt_cv_sys_max_cmd_len ; then
  22811. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  22812. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  22813. + if test "x$ac_ct_RANLIB" = x; then
  22814. + RANLIB=":"
  22815. + else
  22816. + case $cross_compiling:$ac_tool_warned in
  22817. +yes:)
  22818. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22819. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22820. +ac_tool_warned=yes ;;
  22821. +esac
  22822. + RANLIB=$ac_ct_RANLIB
  22823. + fi
  22824. else
  22825. - { echo "$as_me:$LINENO: result: none" >&5
  22826. -echo "${ECHO_T}none" >&6; }
  22827. + RANLIB="$ac_cv_prog_RANLIB"
  22828. fi
  22829. +test -z "$RANLIB" && RANLIB=:
  22830. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  22831. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  22832. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  22833. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  22834. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22835. -else
  22836. -# These are sane defaults that work on at least a few old systems.
  22837. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  22838. -# Character class describing NM global symbol codes.
  22839. -symcode='[BCDEGRST]'
  22840. -# Regexp to match symbols that can be accessed directly from C.
  22841. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  22842. +# Determine commands to create old-style static archives.
  22843. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  22844. +old_postinstall_cmds='chmod 644 $oldlib'
  22845. +old_postuninstall_cmds=
  22846. +
  22847. +if test -n "$RANLIB"; then
  22848. + case $host_os in
  22849. + openbsd*)
  22850. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  22851. + ;;
  22852. + *)
  22853. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  22854. + ;;
  22855. + esac
  22856. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  22857. +fi
  22858. -# Transform an extracted symbol line into a proper C declaration
  22859. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  22860. -# Transform an extracted symbol line into symbol name and symbol address
  22861. -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'"
  22862. +
  22863. +
  22864. +
  22865. +
  22866. +
  22867. +
  22868. +
  22869. +
  22870. +
  22871. +
  22872. +
  22873. +
  22874. +
  22875. +
  22876. +
  22877. +
  22878. +
  22879. +
  22880. +
  22881. +
  22882. +
  22883. +
  22884. +
  22885. +
  22886. +
  22887. +
  22888. +
  22889. +
  22890. +
  22891. +
  22892. +
  22893. +
  22894. +# If no C compiler was specified, use CC.
  22895. +LTCC=${LTCC-"$CC"}
  22896. +
  22897. +# If no C compiler flags were specified, use CFLAGS.
  22898. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  22899. +
  22900. +# Allow CC to be a program name with arguments.
  22901. +compiler=$CC
  22902. +
  22903. +
  22904. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  22905. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  22906. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  22907. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  22908. + $as_echo_n "(cached) " >&6
  22909. +else
  22910. +
  22911. +# These are sane defaults that work on at least a few old systems.
  22912. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  22913. +
  22914. +# Character class describing NM global symbol codes.
  22915. +symcode='[BCDEGRST]'
  22916. +
  22917. +# Regexp to match symbols that can be accessed directly from C.
  22918. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  22919. # Define system-specific variables.
  22920. case $host_os in
  22921. aix*)
  22922. symcode='[BCDT]'
  22923. ;;
  22924. -cygwin* | mingw* | pw32*)
  22925. +cygwin* | mingw* | pw32* | cegcc*)
  22926. symcode='[ABCDGISTW]'
  22927. ;;
  22928. -hpux*) # Its linker distinguishes data from code symbols
  22929. +hpux*)
  22930. if test "$host_cpu" = ia64; then
  22931. symcode='[ABCDEGRST]'
  22932. fi
  22933. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22934. - 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'"
  22935. - ;;
  22936. -linux*)
  22937. - if test "$host_cpu" = ia64; then
  22938. - symcode='[ABCDGIRSTW]'
  22939. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22940. - 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'"
  22941. - fi
  22942. ;;
  22943. irix* | nonstopux*)
  22944. symcode='[BCDEGRST]'
  22945. @@ -6690,57 +5716,85 @@
  22946. ;;
  22947. esac
  22948. +# If we're using GNU nm, then use its standard symbol codes.
  22949. +case `$NM -V 2>&1` in
  22950. +*GNU* | *'with BFD'*)
  22951. + symcode='[ABCDGIRSTW]' ;;
  22952. +esac
  22953. +
  22954. +# Transform an extracted symbol line into a proper C declaration.
  22955. +# Some systems (esp. on ia64) link data and code symbols differently,
  22956. +# so use this general approach.
  22957. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22958. +
  22959. +# Transform an extracted symbol line into symbol name and symbol address
  22960. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  22961. +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'"
  22962. +
  22963. # Handle CRLF in mingw tool chain
  22964. opt_cr=
  22965. case $build_os in
  22966. mingw*)
  22967. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22968. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22969. ;;
  22970. esac
  22971. -# If we're using GNU nm, then use its standard symbol codes.
  22972. -case `$NM -V 2>&1` in
  22973. -*GNU* | *'with BFD'*)
  22974. - symcode='[ABCDGIRSTW]' ;;
  22975. -esac
  22976. -
  22977. -# Try without a prefix undercore, then with it.
  22978. +# Try without a prefix underscore, then with it.
  22979. for ac_symprfx in "" "_"; do
  22980. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  22981. symxfrm="\\1 $ac_symprfx\\2 \\2"
  22982. # Write the raw and C identifiers.
  22983. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  22984. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  22985. + # Fake it for dumpbin and say T for any non-static function
  22986. + # and D for any global variable.
  22987. + # Also find C++ and __fastcall symbols from MSVC++,
  22988. + # which start with @ or ?.
  22989. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  22990. +" {last_section=section; section=\$ 3};"\
  22991. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  22992. +" \$ 0!~/External *\|/{next};"\
  22993. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  22994. +" {if(hide[section]) next};"\
  22995. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  22996. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  22997. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  22998. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  22999. +" ' prfx=^$ac_symprfx"
  23000. + else
  23001. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23002. + fi
  23003. # Check to see that the pipe works correctly.
  23004. pipe_works=no
  23005. rm -f conftest*
  23006. - cat > conftest.$ac_ext <<EOF
  23007. + cat > conftest.$ac_ext <<_LT_EOF
  23008. #ifdef __cplusplus
  23009. extern "C" {
  23010. #endif
  23011. char nm_test_var;
  23012. -void nm_test_func(){}
  23013. +void nm_test_func(void);
  23014. +void nm_test_func(void){}
  23015. #ifdef __cplusplus
  23016. }
  23017. #endif
  23018. int main(){nm_test_var='a';nm_test_func();return(0);}
  23019. -EOF
  23020. +_LT_EOF
  23021. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23022. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23023. (eval $ac_compile) 2>&5
  23024. ac_status=$?
  23025. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23026. - (exit $ac_status); }; then
  23027. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23028. + test $ac_status = 0; }; then
  23029. # Now try to grab the symbols.
  23030. nlist=conftest.nm
  23031. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  23032. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  23033. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  23034. ac_status=$?
  23035. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23036. - (exit $ac_status); } && test -s "$nlist"; then
  23037. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23038. + test $ac_status = 0; } && test -s "$nlist"; then
  23039. # Try sorting and uniquifying the output.
  23040. if sort "$nlist" | uniq > "$nlist"T; then
  23041. mv -f "$nlist"T "$nlist"
  23042. @@ -6749,53 +5803,55 @@
  23043. fi
  23044. # Make sure that we snagged all the symbols we need.
  23045. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  23046. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  23047. - cat <<EOF > conftest.$ac_ext
  23048. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  23049. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  23050. + cat <<_LT_EOF > conftest.$ac_ext
  23051. #ifdef __cplusplus
  23052. extern "C" {
  23053. #endif
  23054. -EOF
  23055. +_LT_EOF
  23056. # Now generate the symbol file.
  23057. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  23058. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  23059. - cat <<EOF >> conftest.$ac_ext
  23060. -#if defined (__STDC__) && __STDC__
  23061. -# define lt_ptr_t void *
  23062. -#else
  23063. -# define lt_ptr_t char *
  23064. -# define const
  23065. -#endif
  23066. + cat <<_LT_EOF >> conftest.$ac_ext
  23067. -/* The mapping between symbol names and symbols. */
  23068. +/* The mapping between symbol names and symbols. */
  23069. const struct {
  23070. const char *name;
  23071. - lt_ptr_t address;
  23072. + void *address;
  23073. }
  23074. -lt_preloaded_symbols[] =
  23075. +lt__PROGRAM__LTX_preloaded_symbols[] =
  23076. {
  23077. -EOF
  23078. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  23079. - cat <<\EOF >> conftest.$ac_ext
  23080. - {0, (lt_ptr_t) 0}
  23081. + { "@PROGRAM@", (void *) 0 },
  23082. +_LT_EOF
  23083. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  23084. + cat <<\_LT_EOF >> conftest.$ac_ext
  23085. + {0, (void *) 0}
  23086. };
  23087. +/* This works around a problem in FreeBSD linker */
  23088. +#ifdef FREEBSD_WORKAROUND
  23089. +static const void *lt_preloaded_setup() {
  23090. + return lt__PROGRAM__LTX_preloaded_symbols;
  23091. +}
  23092. +#endif
  23093. +
  23094. #ifdef __cplusplus
  23095. }
  23096. #endif
  23097. -EOF
  23098. +_LT_EOF
  23099. # Now try linking the two files.
  23100. mv conftest.$ac_objext conftstm.$ac_objext
  23101. lt_save_LIBS="$LIBS"
  23102. lt_save_CFLAGS="$CFLAGS"
  23103. LIBS="conftstm.$ac_objext"
  23104. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  23105. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23106. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  23107. (eval $ac_link) 2>&5
  23108. ac_status=$?
  23109. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23110. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  23111. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23112. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  23113. pipe_works=yes
  23114. fi
  23115. LIBS="$lt_save_LIBS"
  23116. @@ -6813,7 +5869,7 @@
  23117. echo "$progname: failed program was:" >&5
  23118. cat conftest.$ac_ext >&5
  23119. fi
  23120. - rm -f conftest* conftst*
  23121. + rm -rf conftest* conftst*
  23122. # Do not use the global_symbol_pipe unless it works.
  23123. if test "$pipe_works" = yes; then
  23124. @@ -6829,11422 +5885,3295 @@
  23125. lt_cv_sys_global_symbol_to_cdecl=
  23126. fi
  23127. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  23128. - { echo "$as_me:$LINENO: result: failed" >&5
  23129. -echo "${ECHO_T}failed" >&6; }
  23130. -else
  23131. - { echo "$as_me:$LINENO: result: ok" >&5
  23132. -echo "${ECHO_T}ok" >&6; }
  23133. -fi
  23134. -
  23135. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  23136. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  23137. -if test "${lt_cv_objdir+set}" = set; then
  23138. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23139. -else
  23140. - rm -f .libs 2>/dev/null
  23141. -mkdir .libs 2>/dev/null
  23142. -if test -d .libs; then
  23143. - lt_cv_objdir=.libs
  23144. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  23145. +$as_echo "failed" >&6; }
  23146. else
  23147. - # MS-DOS does not allow filenames that begin with a dot.
  23148. - lt_cv_objdir=_libs
  23149. -fi
  23150. -rmdir .libs 2>/dev/null
  23151. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  23152. +$as_echo "ok" >&6; }
  23153. fi
  23154. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  23155. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  23156. -objdir=$lt_cv_objdir
  23157. -case $host_os in
  23158. -aix3*)
  23159. - # AIX sometimes has problems with the GCC collect2 program. For some
  23160. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  23161. - # vanish in a puff of smoke.
  23162. - if test "X${COLLECT_NAMES+set}" != Xset; then
  23163. - COLLECT_NAMES=
  23164. - export COLLECT_NAMES
  23165. - fi
  23166. - ;;
  23167. -esac
  23168. -# Sed substitution that helps us do robust quoting. It backslashifies
  23169. -# metacharacters that are still active within double-quoted strings.
  23170. -Xsed='sed -e 1s/^X//'
  23171. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  23172. -# Same as above, but do not quote variable references.
  23173. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  23174. -# Sed substitution to delay expansion of an escaped shell variable in a
  23175. -# double_quote_subst'ed string.
  23176. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  23177. -# Sed substitution to avoid accidental globbing in evaled expressions
  23178. -no_glob_subst='s/\*/\\\*/g'
  23179. -# Constants:
  23180. -rm="rm -f"
  23181. -# Global variables:
  23182. -default_ofile=libtool
  23183. -can_build_shared=yes
  23184. -# All known linkers require a `.a' archive for static linking (except MSVC,
  23185. -# which needs '.lib').
  23186. -libext=a
  23187. -ltmain="$ac_aux_dir/ltmain.sh"
  23188. -ofile="$default_ofile"
  23189. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  23190. -if test -n "$ac_tool_prefix"; then
  23191. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  23192. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  23193. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23194. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23195. -if test "${ac_cv_prog_AR+set}" = set; then
  23196. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23197. -else
  23198. - if test -n "$AR"; then
  23199. - ac_cv_prog_AR="$AR" # Let the user override the test.
  23200. -else
  23201. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23202. -for as_dir in $PATH
  23203. -do
  23204. - IFS=$as_save_IFS
  23205. - test -z "$as_dir" && as_dir=.
  23206. - for ac_exec_ext in '' $ac_executable_extensions; do
  23207. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23208. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  23209. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23210. - break 2
  23211. - fi
  23212. -done
  23213. -done
  23214. -IFS=$as_save_IFS
  23215. -fi
  23216. -fi
  23217. -AR=$ac_cv_prog_AR
  23218. -if test -n "$AR"; then
  23219. - { echo "$as_me:$LINENO: result: $AR" >&5
  23220. -echo "${ECHO_T}$AR" >&6; }
  23221. -else
  23222. - { echo "$as_me:$LINENO: result: no" >&5
  23223. -echo "${ECHO_T}no" >&6; }
  23224. -fi
  23225. -fi
  23226. -if test -z "$ac_cv_prog_AR"; then
  23227. - ac_ct_AR=$AR
  23228. - # Extract the first word of "ar", so it can be a program name with args.
  23229. -set dummy ar; ac_word=$2
  23230. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23231. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23232. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  23233. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23234. -else
  23235. - if test -n "$ac_ct_AR"; then
  23236. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  23237. -else
  23238. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23239. -for as_dir in $PATH
  23240. -do
  23241. - IFS=$as_save_IFS
  23242. - test -z "$as_dir" && as_dir=.
  23243. - for ac_exec_ext in '' $ac_executable_extensions; do
  23244. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23245. - ac_cv_prog_ac_ct_AR="ar"
  23246. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23247. - break 2
  23248. - fi
  23249. -done
  23250. -done
  23251. -IFS=$as_save_IFS
  23252. -fi
  23253. -fi
  23254. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  23255. -if test -n "$ac_ct_AR"; then
  23256. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  23257. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  23258. -else
  23259. - { echo "$as_me:$LINENO: result: no" >&5
  23260. -echo "${ECHO_T}no" >&6; }
  23261. -fi
  23262. - if test "x$ac_ct_AR" = x; then
  23263. - AR="false"
  23264. - else
  23265. - case $cross_compiling:$ac_tool_warned in
  23266. -yes:)
  23267. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23268. -whose name does not start with the host triplet. If you think this
  23269. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23270. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23271. -whose name does not start with the host triplet. If you think this
  23272. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23273. -ac_tool_warned=yes ;;
  23274. -esac
  23275. - AR=$ac_ct_AR
  23276. - fi
  23277. -else
  23278. - AR="$ac_cv_prog_AR"
  23279. -fi
  23280. -if test -n "$ac_tool_prefix"; then
  23281. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  23282. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  23283. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23284. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23285. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  23286. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23287. -else
  23288. - if test -n "$RANLIB"; then
  23289. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  23290. -else
  23291. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23292. -for as_dir in $PATH
  23293. -do
  23294. - IFS=$as_save_IFS
  23295. - test -z "$as_dir" && as_dir=.
  23296. - for ac_exec_ext in '' $ac_executable_extensions; do
  23297. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23298. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  23299. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23300. - break 2
  23301. - fi
  23302. -done
  23303. -done
  23304. -IFS=$as_save_IFS
  23305. -fi
  23306. -fi
  23307. -RANLIB=$ac_cv_prog_RANLIB
  23308. -if test -n "$RANLIB"; then
  23309. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  23310. -echo "${ECHO_T}$RANLIB" >&6; }
  23311. -else
  23312. - { echo "$as_me:$LINENO: result: no" >&5
  23313. -echo "${ECHO_T}no" >&6; }
  23314. -fi
  23315. +# Check whether --enable-libtool-lock was given.
  23316. +if test "${enable_libtool_lock+set}" = set; then :
  23317. + enableval=$enable_libtool_lock;
  23318. fi
  23319. -if test -z "$ac_cv_prog_RANLIB"; then
  23320. - ac_ct_RANLIB=$RANLIB
  23321. - # Extract the first word of "ranlib", so it can be a program name with args.
  23322. -set dummy ranlib; ac_word=$2
  23323. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23324. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23325. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  23326. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23327. -else
  23328. - if test -n "$ac_ct_RANLIB"; then
  23329. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  23330. -else
  23331. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23332. -for as_dir in $PATH
  23333. -do
  23334. - IFS=$as_save_IFS
  23335. - test -z "$as_dir" && as_dir=.
  23336. - for ac_exec_ext in '' $ac_executable_extensions; do
  23337. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23338. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  23339. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23340. - break 2
  23341. - fi
  23342. -done
  23343. -done
  23344. -IFS=$as_save_IFS
  23345. -fi
  23346. -fi
  23347. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  23348. -if test -n "$ac_ct_RANLIB"; then
  23349. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  23350. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  23351. -else
  23352. - { echo "$as_me:$LINENO: result: no" >&5
  23353. -echo "${ECHO_T}no" >&6; }
  23354. -fi
  23355. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  23356. - if test "x$ac_ct_RANLIB" = x; then
  23357. - RANLIB=":"
  23358. - else
  23359. - case $cross_compiling:$ac_tool_warned in
  23360. -yes:)
  23361. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23362. -whose name does not start with the host triplet. If you think this
  23363. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23364. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23365. -whose name does not start with the host triplet. If you think this
  23366. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23367. -ac_tool_warned=yes ;;
  23368. -esac
  23369. - RANLIB=$ac_ct_RANLIB
  23370. +# Some flags need to be propagated to the compiler or linker for good
  23371. +# libtool support.
  23372. +case $host in
  23373. +ia64-*-hpux*)
  23374. + # Find out which ABI we are using.
  23375. + echo 'int i;' > conftest.$ac_ext
  23376. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23377. + (eval $ac_compile) 2>&5
  23378. + ac_status=$?
  23379. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23380. + test $ac_status = 0; }; then
  23381. + case `/usr/bin/file conftest.$ac_objext` in
  23382. + *ELF-32*)
  23383. + HPUX_IA64_MODE="32"
  23384. + ;;
  23385. + *ELF-64*)
  23386. + HPUX_IA64_MODE="64"
  23387. + ;;
  23388. + esac
  23389. + fi
  23390. + rm -rf conftest*
  23391. + ;;
  23392. +*-*-irix6*)
  23393. + # Find out which ABI we are using.
  23394. + echo '#line 5947 "configure"' > conftest.$ac_ext
  23395. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23396. + (eval $ac_compile) 2>&5
  23397. + ac_status=$?
  23398. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23399. + test $ac_status = 0; }; then
  23400. + if test "$lt_cv_prog_gnu_ld" = yes; then
  23401. + case `/usr/bin/file conftest.$ac_objext` in
  23402. + *32-bit*)
  23403. + LD="${LD-ld} -melf32bsmip"
  23404. + ;;
  23405. + *N32*)
  23406. + LD="${LD-ld} -melf32bmipn32"
  23407. + ;;
  23408. + *64-bit*)
  23409. + LD="${LD-ld} -melf64bmip"
  23410. + ;;
  23411. + esac
  23412. + else
  23413. + case `/usr/bin/file conftest.$ac_objext` in
  23414. + *32-bit*)
  23415. + LD="${LD-ld} -32"
  23416. + ;;
  23417. + *N32*)
  23418. + LD="${LD-ld} -n32"
  23419. + ;;
  23420. + *64-bit*)
  23421. + LD="${LD-ld} -64"
  23422. + ;;
  23423. + esac
  23424. + fi
  23425. + fi
  23426. + rm -rf conftest*
  23427. + ;;
  23428. +
  23429. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  23430. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  23431. + # Find out which ABI we are using.
  23432. + echo 'int i;' > conftest.$ac_ext
  23433. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23434. + (eval $ac_compile) 2>&5
  23435. + ac_status=$?
  23436. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23437. + test $ac_status = 0; }; then
  23438. + case `/usr/bin/file conftest.o` in
  23439. + *32-bit*)
  23440. + case $host in
  23441. + x86_64-*kfreebsd*-gnu)
  23442. + LD="${LD-ld} -m elf_i386_fbsd"
  23443. + ;;
  23444. + x86_64-*linux*)
  23445. + LD="${LD-ld} -m elf_i386"
  23446. + ;;
  23447. + ppc64-*linux*|powerpc64-*linux*)
  23448. + LD="${LD-ld} -m elf32ppclinux"
  23449. + ;;
  23450. + s390x-*linux*)
  23451. + LD="${LD-ld} -m elf_s390"
  23452. + ;;
  23453. + sparc64-*linux*)
  23454. + LD="${LD-ld} -m elf32_sparc"
  23455. + ;;
  23456. + esac
  23457. + ;;
  23458. + *64-bit*)
  23459. + case $host in
  23460. + x86_64-*kfreebsd*-gnu)
  23461. + LD="${LD-ld} -m elf_x86_64_fbsd"
  23462. + ;;
  23463. + x86_64-*linux*)
  23464. + LD="${LD-ld} -m elf_x86_64"
  23465. + ;;
  23466. + ppc*-*linux*|powerpc*-*linux*)
  23467. + LD="${LD-ld} -m elf64ppc"
  23468. + ;;
  23469. + s390*-*linux*|s390*-*tpf*)
  23470. + LD="${LD-ld} -m elf64_s390"
  23471. + ;;
  23472. + sparc*-*linux*)
  23473. + LD="${LD-ld} -m elf64_sparc"
  23474. + ;;
  23475. + esac
  23476. + ;;
  23477. + esac
  23478. fi
  23479. + rm -rf conftest*
  23480. + ;;
  23481. +
  23482. +*-*-sco3.2v5*)
  23483. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  23484. + SAVE_CFLAGS="$CFLAGS"
  23485. + CFLAGS="$CFLAGS -belf"
  23486. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  23487. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  23488. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  23489. + $as_echo_n "(cached) " >&6
  23490. else
  23491. - RANLIB="$ac_cv_prog_RANLIB"
  23492. + ac_ext=c
  23493. +ac_cpp='$CPP $CPPFLAGS'
  23494. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23495. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23496. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23497. +
  23498. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23499. +/* end confdefs.h. */
  23500. +
  23501. +int
  23502. +main ()
  23503. +{
  23504. +
  23505. + ;
  23506. + return 0;
  23507. +}
  23508. +_ACEOF
  23509. +if ac_fn_c_try_link "$LINENO"; then :
  23510. + lt_cv_cc_needs_belf=yes
  23511. +else
  23512. + lt_cv_cc_needs_belf=no
  23513. fi
  23514. +rm -f core conftest.err conftest.$ac_objext \
  23515. + conftest$ac_exeext conftest.$ac_ext
  23516. + ac_ext=c
  23517. +ac_cpp='$CPP $CPPFLAGS'
  23518. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23519. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23520. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23521. -if test -n "$ac_tool_prefix"; then
  23522. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23523. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  23524. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23525. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23526. -if test "${ac_cv_prog_STRIP+set}" = set; then
  23527. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23528. +fi
  23529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  23530. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  23531. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  23532. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  23533. + CFLAGS="$SAVE_CFLAGS"
  23534. + fi
  23535. + ;;
  23536. +sparc*-*solaris*)
  23537. + # Find out which ABI we are using.
  23538. + echo 'int i;' > conftest.$ac_ext
  23539. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23540. + (eval $ac_compile) 2>&5
  23541. + ac_status=$?
  23542. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23543. + test $ac_status = 0; }; then
  23544. + case `/usr/bin/file conftest.o` in
  23545. + *64-bit*)
  23546. + case $lt_cv_prog_gnu_ld in
  23547. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  23548. + *)
  23549. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  23550. + LD="${LD-ld} -64"
  23551. + fi
  23552. + ;;
  23553. + esac
  23554. + ;;
  23555. + esac
  23556. + fi
  23557. + rm -rf conftest*
  23558. + ;;
  23559. +esac
  23560. +
  23561. +need_locks="$enable_libtool_lock"
  23562. +
  23563. +
  23564. + case $host_os in
  23565. + rhapsody* | darwin*)
  23566. + if test -n "$ac_tool_prefix"; then
  23567. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  23568. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  23569. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23570. +$as_echo_n "checking for $ac_word... " >&6; }
  23571. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  23572. + $as_echo_n "(cached) " >&6
  23573. else
  23574. - if test -n "$STRIP"; then
  23575. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23576. + if test -n "$DSYMUTIL"; then
  23577. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  23578. else
  23579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23580. for as_dir in $PATH
  23581. do
  23582. IFS=$as_save_IFS
  23583. test -z "$as_dir" && as_dir=.
  23584. - for ac_exec_ext in '' $ac_executable_extensions; do
  23585. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23586. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23587. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23588. + for ac_exec_ext in '' $ac_executable_extensions; do
  23589. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23590. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  23591. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23592. break 2
  23593. fi
  23594. done
  23595. -done
  23596. + done
  23597. IFS=$as_save_IFS
  23598. fi
  23599. fi
  23600. -STRIP=$ac_cv_prog_STRIP
  23601. -if test -n "$STRIP"; then
  23602. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  23603. -echo "${ECHO_T}$STRIP" >&6; }
  23604. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  23605. +if test -n "$DSYMUTIL"; then
  23606. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  23607. +$as_echo "$DSYMUTIL" >&6; }
  23608. else
  23609. - { echo "$as_me:$LINENO: result: no" >&5
  23610. -echo "${ECHO_T}no" >&6; }
  23611. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23612. +$as_echo "no" >&6; }
  23613. fi
  23614. fi
  23615. -if test -z "$ac_cv_prog_STRIP"; then
  23616. - ac_ct_STRIP=$STRIP
  23617. - # Extract the first word of "strip", so it can be a program name with args.
  23618. -set dummy strip; ac_word=$2
  23619. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23620. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23621. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  23622. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23623. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  23624. + ac_ct_DSYMUTIL=$DSYMUTIL
  23625. + # Extract the first word of "dsymutil", so it can be a program name with args.
  23626. +set dummy dsymutil; ac_word=$2
  23627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23628. +$as_echo_n "checking for $ac_word... " >&6; }
  23629. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  23630. + $as_echo_n "(cached) " >&6
  23631. else
  23632. - if test -n "$ac_ct_STRIP"; then
  23633. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23634. + if test -n "$ac_ct_DSYMUTIL"; then
  23635. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  23636. else
  23637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23638. for as_dir in $PATH
  23639. do
  23640. IFS=$as_save_IFS
  23641. test -z "$as_dir" && as_dir=.
  23642. - for ac_exec_ext in '' $ac_executable_extensions; do
  23643. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  23644. - ac_cv_prog_ac_ct_STRIP="strip"
  23645. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23646. + for ac_exec_ext in '' $ac_executable_extensions; do
  23647. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23648. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  23649. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23650. break 2
  23651. fi
  23652. done
  23653. -done
  23654. + done
  23655. IFS=$as_save_IFS
  23656. fi
  23657. fi
  23658. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23659. -if test -n "$ac_ct_STRIP"; then
  23660. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  23661. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  23662. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  23663. +if test -n "$ac_ct_DSYMUTIL"; then
  23664. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  23665. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  23666. else
  23667. - { echo "$as_me:$LINENO: result: no" >&5
  23668. -echo "${ECHO_T}no" >&6; }
  23669. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23670. +$as_echo "no" >&6; }
  23671. fi
  23672. - if test "x$ac_ct_STRIP" = x; then
  23673. - STRIP=":"
  23674. + if test "x$ac_ct_DSYMUTIL" = x; then
  23675. + DSYMUTIL=":"
  23676. else
  23677. case $cross_compiling:$ac_tool_warned in
  23678. yes:)
  23679. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23680. -whose name does not start with the host triplet. If you think this
  23681. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23682. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23683. -whose name does not start with the host triplet. If you think this
  23684. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23685. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23686. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23687. ac_tool_warned=yes ;;
  23688. esac
  23689. - STRIP=$ac_ct_STRIP
  23690. + DSYMUTIL=$ac_ct_DSYMUTIL
  23691. fi
  23692. else
  23693. - STRIP="$ac_cv_prog_STRIP"
  23694. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  23695. fi
  23696. + if test -n "$ac_tool_prefix"; then
  23697. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  23698. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  23699. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23700. +$as_echo_n "checking for $ac_word... " >&6; }
  23701. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  23702. + $as_echo_n "(cached) " >&6
  23703. +else
  23704. + if test -n "$NMEDIT"; then
  23705. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  23706. +else
  23707. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23708. +for as_dir in $PATH
  23709. +do
  23710. + IFS=$as_save_IFS
  23711. + test -z "$as_dir" && as_dir=.
  23712. + for ac_exec_ext in '' $ac_executable_extensions; do
  23713. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23714. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  23715. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23716. + break 2
  23717. + fi
  23718. +done
  23719. + done
  23720. +IFS=$as_save_IFS
  23721. -old_CC="$CC"
  23722. -old_CFLAGS="$CFLAGS"
  23723. +fi
  23724. +fi
  23725. +NMEDIT=$ac_cv_prog_NMEDIT
  23726. +if test -n "$NMEDIT"; then
  23727. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  23728. +$as_echo "$NMEDIT" >&6; }
  23729. +else
  23730. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23731. +$as_echo "no" >&6; }
  23732. +fi
  23733. -# Set sane defaults for various variables
  23734. -test -z "$AR" && AR=ar
  23735. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  23736. -test -z "$AS" && AS=as
  23737. -test -z "$CC" && CC=cc
  23738. -test -z "$LTCC" && LTCC=$CC
  23739. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  23740. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  23741. -test -z "$LD" && LD=ld
  23742. -test -z "$LN_S" && LN_S="ln -s"
  23743. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  23744. -test -z "$NM" && NM=nm
  23745. -test -z "$SED" && SED=sed
  23746. -test -z "$OBJDUMP" && OBJDUMP=objdump
  23747. -test -z "$RANLIB" && RANLIB=:
  23748. -test -z "$STRIP" && STRIP=:
  23749. -test -z "$ac_objext" && ac_objext=o
  23750. -# Determine commands to create old-style static archives.
  23751. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  23752. -old_postinstall_cmds='chmod 644 $oldlib'
  23753. -old_postuninstall_cmds=
  23754. +fi
  23755. +if test -z "$ac_cv_prog_NMEDIT"; then
  23756. + ac_ct_NMEDIT=$NMEDIT
  23757. + # Extract the first word of "nmedit", so it can be a program name with args.
  23758. +set dummy nmedit; ac_word=$2
  23759. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23760. +$as_echo_n "checking for $ac_word... " >&6; }
  23761. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  23762. + $as_echo_n "(cached) " >&6
  23763. +else
  23764. + if test -n "$ac_ct_NMEDIT"; then
  23765. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  23766. +else
  23767. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23768. +for as_dir in $PATH
  23769. +do
  23770. + IFS=$as_save_IFS
  23771. + test -z "$as_dir" && as_dir=.
  23772. + for ac_exec_ext in '' $ac_executable_extensions; do
  23773. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23774. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  23775. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23776. + break 2
  23777. + fi
  23778. +done
  23779. + done
  23780. +IFS=$as_save_IFS
  23781. -if test -n "$RANLIB"; then
  23782. - case $host_os in
  23783. - openbsd*)
  23784. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  23785. - ;;
  23786. - *)
  23787. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  23788. - ;;
  23789. - esac
  23790. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23791. +fi
  23792. +fi
  23793. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  23794. +if test -n "$ac_ct_NMEDIT"; then
  23795. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  23796. +$as_echo "$ac_ct_NMEDIT" >&6; }
  23797. +else
  23798. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23799. +$as_echo "no" >&6; }
  23800. fi
  23801. -for cc_temp in $compiler""; do
  23802. - case $cc_temp in
  23803. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23804. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23805. - \-*) ;;
  23806. - *) break;;
  23807. - esac
  23808. + if test "x$ac_ct_NMEDIT" = x; then
  23809. + NMEDIT=":"
  23810. + else
  23811. + case $cross_compiling:$ac_tool_warned in
  23812. +yes:)
  23813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23814. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23815. +ac_tool_warned=yes ;;
  23816. +esac
  23817. + NMEDIT=$ac_ct_NMEDIT
  23818. + fi
  23819. +else
  23820. + NMEDIT="$ac_cv_prog_NMEDIT"
  23821. +fi
  23822. +
  23823. + if test -n "$ac_tool_prefix"; then
  23824. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  23825. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  23826. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23827. +$as_echo_n "checking for $ac_word... " >&6; }
  23828. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  23829. + $as_echo_n "(cached) " >&6
  23830. +else
  23831. + if test -n "$LIPO"; then
  23832. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  23833. +else
  23834. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23835. +for as_dir in $PATH
  23836. +do
  23837. + IFS=$as_save_IFS
  23838. + test -z "$as_dir" && as_dir=.
  23839. + for ac_exec_ext in '' $ac_executable_extensions; do
  23840. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23841. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  23842. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23843. + break 2
  23844. + fi
  23845. done
  23846. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  23847. + done
  23848. +IFS=$as_save_IFS
  23849. +fi
  23850. +fi
  23851. +LIPO=$ac_cv_prog_LIPO
  23852. +if test -n "$LIPO"; then
  23853. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  23854. +$as_echo "$LIPO" >&6; }
  23855. +else
  23856. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23857. +$as_echo "no" >&6; }
  23858. +fi
  23859. -# Only perform the check for file, if the check method requires it
  23860. -case $deplibs_check_method in
  23861. -file_magic*)
  23862. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  23863. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  23864. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  23865. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23866. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23867. +
  23868. +fi
  23869. +if test -z "$ac_cv_prog_LIPO"; then
  23870. + ac_ct_LIPO=$LIPO
  23871. + # Extract the first word of "lipo", so it can be a program name with args.
  23872. +set dummy lipo; ac_word=$2
  23873. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23874. +$as_echo_n "checking for $ac_word... " >&6; }
  23875. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  23876. + $as_echo_n "(cached) " >&6
  23877. else
  23878. - case $MAGIC_CMD in
  23879. -[\\/*] | ?:[\\/]*)
  23880. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23881. - ;;
  23882. -*)
  23883. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  23884. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23885. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23886. - for ac_dir in $ac_dummy; do
  23887. - IFS="$lt_save_ifs"
  23888. - test -z "$ac_dir" && ac_dir=.
  23889. - if test -f $ac_dir/${ac_tool_prefix}file; then
  23890. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  23891. - if test -n "$file_magic_test_file"; then
  23892. - case $deplibs_check_method in
  23893. - "file_magic "*)
  23894. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23895. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23896. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23897. - $EGREP "$file_magic_regex" > /dev/null; then
  23898. - :
  23899. - else
  23900. - cat <<EOF 1>&2
  23901. + if test -n "$ac_ct_LIPO"; then
  23902. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  23903. +else
  23904. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23905. +for as_dir in $PATH
  23906. +do
  23907. + IFS=$as_save_IFS
  23908. + test -z "$as_dir" && as_dir=.
  23909. + for ac_exec_ext in '' $ac_executable_extensions; do
  23910. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23911. + ac_cv_prog_ac_ct_LIPO="lipo"
  23912. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23913. + break 2
  23914. + fi
  23915. +done
  23916. + done
  23917. +IFS=$as_save_IFS
  23918. -*** Warning: the command libtool uses to detect shared libraries,
  23919. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23920. -*** The result is that libtool may fail to recognize shared libraries
  23921. -*** as such. This will affect the creation of libtool libraries that
  23922. -*** depend on shared libraries, but programs linked with such libtool
  23923. -*** libraries will work regardless of this problem. Nevertheless, you
  23924. -*** may want to report the problem to your system manager and/or to
  23925. -*** bug-libtool@gnu.org
  23926. +fi
  23927. +fi
  23928. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  23929. +if test -n "$ac_ct_LIPO"; then
  23930. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  23931. +$as_echo "$ac_ct_LIPO" >&6; }
  23932. +else
  23933. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23934. +$as_echo "no" >&6; }
  23935. +fi
  23936. -EOF
  23937. - fi ;;
  23938. - esac
  23939. - fi
  23940. - break
  23941. - fi
  23942. - done
  23943. - IFS="$lt_save_ifs"
  23944. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23945. - ;;
  23946. + if test "x$ac_ct_LIPO" = x; then
  23947. + LIPO=":"
  23948. + else
  23949. + case $cross_compiling:$ac_tool_warned in
  23950. +yes:)
  23951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23952. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23953. +ac_tool_warned=yes ;;
  23954. esac
  23955. + LIPO=$ac_ct_LIPO
  23956. + fi
  23957. +else
  23958. + LIPO="$ac_cv_prog_LIPO"
  23959. fi
  23960. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23961. -if test -n "$MAGIC_CMD"; then
  23962. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  23963. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  23964. + if test -n "$ac_tool_prefix"; then
  23965. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  23966. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  23967. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23968. +$as_echo_n "checking for $ac_word... " >&6; }
  23969. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  23970. + $as_echo_n "(cached) " >&6
  23971. else
  23972. - { echo "$as_me:$LINENO: result: no" >&5
  23973. -echo "${ECHO_T}no" >&6; }
  23974. -fi
  23975. + if test -n "$OTOOL"; then
  23976. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  23977. +else
  23978. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23979. +for as_dir in $PATH
  23980. +do
  23981. + IFS=$as_save_IFS
  23982. + test -z "$as_dir" && as_dir=.
  23983. + for ac_exec_ext in '' $ac_executable_extensions; do
  23984. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23985. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  23986. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23987. + break 2
  23988. + fi
  23989. +done
  23990. + done
  23991. +IFS=$as_save_IFS
  23992. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  23993. - if test -n "$ac_tool_prefix"; then
  23994. - { echo "$as_me:$LINENO: checking for file" >&5
  23995. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  23996. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23997. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23998. +fi
  23999. +fi
  24000. +OTOOL=$ac_cv_prog_OTOOL
  24001. +if test -n "$OTOOL"; then
  24002. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  24003. +$as_echo "$OTOOL" >&6; }
  24004. else
  24005. - case $MAGIC_CMD in
  24006. -[\\/*] | ?:[\\/]*)
  24007. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  24008. - ;;
  24009. -*)
  24010. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  24011. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24012. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  24013. - for ac_dir in $ac_dummy; do
  24014. - IFS="$lt_save_ifs"
  24015. - test -z "$ac_dir" && ac_dir=.
  24016. - if test -f $ac_dir/file; then
  24017. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  24018. - if test -n "$file_magic_test_file"; then
  24019. - case $deplibs_check_method in
  24020. - "file_magic "*)
  24021. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  24022. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24023. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  24024. - $EGREP "$file_magic_regex" > /dev/null; then
  24025. - :
  24026. - else
  24027. - cat <<EOF 1>&2
  24028. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24029. +$as_echo "no" >&6; }
  24030. +fi
  24031. -*** Warning: the command libtool uses to detect shared libraries,
  24032. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  24033. -*** The result is that libtool may fail to recognize shared libraries
  24034. -*** as such. This will affect the creation of libtool libraries that
  24035. -*** depend on shared libraries, but programs linked with such libtool
  24036. -*** libraries will work regardless of this problem. Nevertheless, you
  24037. -*** may want to report the problem to your system manager and/or to
  24038. -*** bug-libtool@gnu.org
  24039. -EOF
  24040. - fi ;;
  24041. - esac
  24042. - fi
  24043. - break
  24044. - fi
  24045. - done
  24046. - IFS="$lt_save_ifs"
  24047. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  24048. - ;;
  24049. -esac
  24050. fi
  24051. +if test -z "$ac_cv_prog_OTOOL"; then
  24052. + ac_ct_OTOOL=$OTOOL
  24053. + # Extract the first word of "otool", so it can be a program name with args.
  24054. +set dummy otool; ac_word=$2
  24055. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24056. +$as_echo_n "checking for $ac_word... " >&6; }
  24057. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  24058. + $as_echo_n "(cached) " >&6
  24059. +else
  24060. + if test -n "$ac_ct_OTOOL"; then
  24061. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  24062. +else
  24063. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24064. +for as_dir in $PATH
  24065. +do
  24066. + IFS=$as_save_IFS
  24067. + test -z "$as_dir" && as_dir=.
  24068. + for ac_exec_ext in '' $ac_executable_extensions; do
  24069. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24070. + ac_cv_prog_ac_ct_OTOOL="otool"
  24071. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24072. + break 2
  24073. + fi
  24074. +done
  24075. + done
  24076. +IFS=$as_save_IFS
  24077. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24078. -if test -n "$MAGIC_CMD"; then
  24079. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  24080. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  24081. +fi
  24082. +fi
  24083. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  24084. +if test -n "$ac_ct_OTOOL"; then
  24085. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  24086. +$as_echo "$ac_ct_OTOOL" >&6; }
  24087. else
  24088. - { echo "$as_me:$LINENO: result: no" >&5
  24089. -echo "${ECHO_T}no" >&6; }
  24090. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24091. +$as_echo "no" >&6; }
  24092. fi
  24093. + if test "x$ac_ct_OTOOL" = x; then
  24094. + OTOOL=":"
  24095. else
  24096. - MAGIC_CMD=:
  24097. + case $cross_compiling:$ac_tool_warned in
  24098. +yes:)
  24099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24100. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24101. +ac_tool_warned=yes ;;
  24102. +esac
  24103. + OTOOL=$ac_ct_OTOOL
  24104. fi
  24105. +else
  24106. + OTOOL="$ac_cv_prog_OTOOL"
  24107. fi
  24108. + if test -n "$ac_tool_prefix"; then
  24109. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  24110. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  24111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24112. +$as_echo_n "checking for $ac_word... " >&6; }
  24113. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  24114. + $as_echo_n "(cached) " >&6
  24115. +else
  24116. + if test -n "$OTOOL64"; then
  24117. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  24118. +else
  24119. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24120. +for as_dir in $PATH
  24121. +do
  24122. + IFS=$as_save_IFS
  24123. + test -z "$as_dir" && as_dir=.
  24124. + for ac_exec_ext in '' $ac_executable_extensions; do
  24125. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24126. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  24127. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24128. + break 2
  24129. fi
  24130. - ;;
  24131. -esac
  24132. -
  24133. -enable_dlopen=no
  24134. -enable_win32_dll=no
  24135. +done
  24136. + done
  24137. +IFS=$as_save_IFS
  24138. -# Check whether --enable-libtool-lock was given.
  24139. -if test "${enable_libtool_lock+set}" = set; then
  24140. - enableval=$enable_libtool_lock;
  24141. +fi
  24142. +fi
  24143. +OTOOL64=$ac_cv_prog_OTOOL64
  24144. +if test -n "$OTOOL64"; then
  24145. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  24146. +$as_echo "$OTOOL64" >&6; }
  24147. +else
  24148. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24149. +$as_echo "no" >&6; }
  24150. fi
  24151. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24152. +fi
  24153. +if test -z "$ac_cv_prog_OTOOL64"; then
  24154. + ac_ct_OTOOL64=$OTOOL64
  24155. + # Extract the first word of "otool64", so it can be a program name with args.
  24156. +set dummy otool64; ac_word=$2
  24157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24158. +$as_echo_n "checking for $ac_word... " >&6; }
  24159. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  24160. + $as_echo_n "(cached) " >&6
  24161. +else
  24162. + if test -n "$ac_ct_OTOOL64"; then
  24163. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  24164. +else
  24165. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24166. +for as_dir in $PATH
  24167. +do
  24168. + IFS=$as_save_IFS
  24169. + test -z "$as_dir" && as_dir=.
  24170. + for ac_exec_ext in '' $ac_executable_extensions; do
  24171. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24172. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  24173. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24174. + break 2
  24175. + fi
  24176. +done
  24177. + done
  24178. +IFS=$as_save_IFS
  24179. -# Check whether --with-pic was given.
  24180. -if test "${with_pic+set}" = set; then
  24181. - withval=$with_pic; pic_mode="$withval"
  24182. +fi
  24183. +fi
  24184. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  24185. +if test -n "$ac_ct_OTOOL64"; then
  24186. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  24187. +$as_echo "$ac_ct_OTOOL64" >&6; }
  24188. else
  24189. - pic_mode=default
  24190. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24191. +$as_echo "no" >&6; }
  24192. fi
  24193. -test -z "$pic_mode" && pic_mode=default
  24194. + if test "x$ac_ct_OTOOL64" = x; then
  24195. + OTOOL64=":"
  24196. + else
  24197. + case $cross_compiling:$ac_tool_warned in
  24198. +yes:)
  24199. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24200. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24201. +ac_tool_warned=yes ;;
  24202. +esac
  24203. + OTOOL64=$ac_ct_OTOOL64
  24204. + fi
  24205. +else
  24206. + OTOOL64="$ac_cv_prog_OTOOL64"
  24207. +fi
  24208. -# Use C for the default configuration in the libtool script
  24209. -tagname=
  24210. -lt_save_CC="$CC"
  24211. -ac_ext=c
  24212. -ac_cpp='$CPP $CPPFLAGS'
  24213. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24214. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24215. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24216. -# Source file extension for C test sources.
  24217. -ac_ext=c
  24218. -# Object file extension for compiled C test sources.
  24219. -objext=o
  24220. -objext=$objext
  24221. -# Code to be used in simple compile tests
  24222. -lt_simple_compile_test_code="int some_variable = 0;\n"
  24223. -# Code to be used in simple link tests
  24224. -lt_simple_link_test_code='int main(){return(0);}\n'
  24225. -# If no C compiler was specified, use CC.
  24226. -LTCC=${LTCC-"$CC"}
  24227. -# If no C compiler flags were specified, use CFLAGS.
  24228. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  24229. -# Allow CC to be a program name with arguments.
  24230. -compiler=$CC
  24231. -# save warnings/boilerplate of simple test code
  24232. -ac_outfile=conftest.$ac_objext
  24233. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  24234. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24235. -_lt_compiler_boilerplate=`cat conftest.err`
  24236. -$rm conftest*
  24237. -ac_outfile=conftest.$ac_objext
  24238. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  24239. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24240. -_lt_linker_boilerplate=`cat conftest.err`
  24241. -$rm conftest*
  24242. -lt_prog_compiler_no_builtin_flag=
  24243. -if test "$GCC" = yes; then
  24244. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  24245. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  24246. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  24247. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  24248. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24249. -else
  24250. - lt_cv_prog_compiler_rtti_exceptions=no
  24251. - ac_outfile=conftest.$ac_objext
  24252. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24253. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  24254. - # Insert the option either (1) after the last *FLAGS variable, or
  24255. - # (2) before a word containing "conftest.", or (3) at the end.
  24256. - # Note that $ac_compile itself does not contain backslashes and begins
  24257. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24258. - # The option is referenced via a variable to avoid confusing sed.
  24259. - lt_compile=`echo "$ac_compile" | $SED \
  24260. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24261. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24262. - -e 's:$: $lt_compiler_flag:'`
  24263. - (eval echo "\"\$as_me:7469: $lt_compile\"" >&5)
  24264. - (eval "$lt_compile" 2>conftest.err)
  24265. - ac_status=$?
  24266. - cat conftest.err >&5
  24267. - echo "$as_me:7473: \$? = $ac_status" >&5
  24268. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24269. - # The compiler can only warn and ignore the option if not recognized
  24270. - # So say no if there are warnings other than the usual output.
  24271. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24272. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24273. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24274. - lt_cv_prog_compiler_rtti_exceptions=yes
  24275. - fi
  24276. - fi
  24277. - $rm conftest*
  24278. -fi
  24279. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  24280. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  24281. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  24282. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  24283. -else
  24284. - :
  24285. -fi
  24286. -fi
  24287. -lt_prog_compiler_wl=
  24288. -lt_prog_compiler_pic=
  24289. -lt_prog_compiler_static=
  24290. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  24291. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  24292. - if test "$GCC" = yes; then
  24293. - lt_prog_compiler_wl='-Wl,'
  24294. - lt_prog_compiler_static='-static'
  24295. - case $host_os in
  24296. - aix*)
  24297. - # All AIX code is PIC.
  24298. - if test "$host_cpu" = ia64; then
  24299. - # AIX 5 now supports IA64 processor
  24300. - lt_prog_compiler_static='-Bstatic'
  24301. +
  24302. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  24303. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  24304. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  24305. + $as_echo_n "(cached) " >&6
  24306. +else
  24307. + lt_cv_apple_cc_single_mod=no
  24308. + if test -z "${LT_MULTI_MODULE}"; then
  24309. + # By default we will add the -single_module flag. You can override
  24310. + # by either setting the environment variable LT_MULTI_MODULE
  24311. + # non-empty at configure time, or by adding -multi_module to the
  24312. + # link flags.
  24313. + rm -rf libconftest.dylib*
  24314. + echo "int foo(void){return 1;}" > conftest.c
  24315. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24316. +-dynamiclib -Wl,-single_module conftest.c" >&5
  24317. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24318. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  24319. + _lt_result=$?
  24320. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  24321. + lt_cv_apple_cc_single_mod=yes
  24322. + else
  24323. + cat conftest.err >&5
  24324. + fi
  24325. + rm -rf libconftest.dylib*
  24326. + rm -f conftest.*
  24327. fi
  24328. - ;;
  24329. +fi
  24330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  24331. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  24332. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  24333. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  24334. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  24335. + $as_echo_n "(cached) " >&6
  24336. +else
  24337. + lt_cv_ld_exported_symbols_list=no
  24338. + save_LDFLAGS=$LDFLAGS
  24339. + echo "_main" > conftest.sym
  24340. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  24341. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24342. +/* end confdefs.h. */
  24343. - amigaos*)
  24344. - # FIXME: we need at least 68020 code to build shared libraries, but
  24345. - # adding the `-m68020' flag to GCC prevents building anything better,
  24346. - # like `-m68040'.
  24347. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  24348. - ;;
  24349. +int
  24350. +main ()
  24351. +{
  24352. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  24353. - # PIC is the default for these OSes.
  24354. - ;;
  24355. + ;
  24356. + return 0;
  24357. +}
  24358. +_ACEOF
  24359. +if ac_fn_c_try_link "$LINENO"; then :
  24360. + lt_cv_ld_exported_symbols_list=yes
  24361. +else
  24362. + lt_cv_ld_exported_symbols_list=no
  24363. +fi
  24364. +rm -f core conftest.err conftest.$ac_objext \
  24365. + conftest$ac_exeext conftest.$ac_ext
  24366. + LDFLAGS="$save_LDFLAGS"
  24367. - mingw* | pw32* | os2*)
  24368. - # This hack is so that the source file can tell whether it is being
  24369. - # built for inclusion in a dll (and should export symbols for example).
  24370. - lt_prog_compiler_pic='-DDLL_EXPORT'
  24371. - ;;
  24372. +fi
  24373. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  24374. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  24375. + case $host_os in
  24376. + rhapsody* | darwin1.[012])
  24377. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  24378. + darwin1.*)
  24379. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24380. + darwin*) # darwin 5.x on
  24381. + # if running on 10.5 or later, the deployment target defaults
  24382. + # to the OS version, if on x86, and 10.4, the deployment
  24383. + # target defaults to 10.4. Don't you love it?
  24384. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  24385. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  24386. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24387. + 10.[012]*)
  24388. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24389. + 10.*)
  24390. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24391. + esac
  24392. + ;;
  24393. + esac
  24394. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  24395. + _lt_dar_single_mod='$single_module'
  24396. + fi
  24397. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  24398. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  24399. + else
  24400. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24401. + fi
  24402. + if test "$DSYMUTIL" != ":"; then
  24403. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  24404. + else
  24405. + _lt_dsymutil=
  24406. + fi
  24407. + ;;
  24408. + esac
  24409. - darwin* | rhapsody*)
  24410. - # PIC is the default on this platform
  24411. - # Common symbols not allowed in MH_DYLIB files
  24412. - lt_prog_compiler_pic='-fno-common'
  24413. - ;;
  24414. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  24415. +$as_echo_n "checking for ANSI C header files... " >&6; }
  24416. +if test "${ac_cv_header_stdc+set}" = set; then :
  24417. + $as_echo_n "(cached) " >&6
  24418. +else
  24419. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24420. +/* end confdefs.h. */
  24421. +#include <stdlib.h>
  24422. +#include <stdarg.h>
  24423. +#include <string.h>
  24424. +#include <float.h>
  24425. - interix3*)
  24426. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  24427. - # Instead, we relocate shared libraries at runtime.
  24428. - ;;
  24429. +int
  24430. +main ()
  24431. +{
  24432. - msdosdjgpp*)
  24433. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  24434. - # on systems that don't support them.
  24435. - lt_prog_compiler_can_build_shared=no
  24436. - enable_shared=no
  24437. - ;;
  24438. + ;
  24439. + return 0;
  24440. +}
  24441. +_ACEOF
  24442. +if ac_fn_c_try_compile "$LINENO"; then :
  24443. + ac_cv_header_stdc=yes
  24444. +else
  24445. + ac_cv_header_stdc=no
  24446. +fi
  24447. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24448. - sysv4*MP*)
  24449. - if test -d /usr/nec; then
  24450. - lt_prog_compiler_pic=-Kconform_pic
  24451. - fi
  24452. - ;;
  24453. +if test $ac_cv_header_stdc = yes; then
  24454. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24455. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24456. +/* end confdefs.h. */
  24457. +#include <string.h>
  24458. - hpux*)
  24459. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24460. - # not for PA HP-UX.
  24461. - case $host_cpu in
  24462. - hppa*64*|ia64*)
  24463. - # +Z the default
  24464. - ;;
  24465. - *)
  24466. - lt_prog_compiler_pic='-fPIC'
  24467. - ;;
  24468. - esac
  24469. - ;;
  24470. +_ACEOF
  24471. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24472. + $EGREP "memchr" >/dev/null 2>&1; then :
  24473. - *)
  24474. - lt_prog_compiler_pic='-fPIC'
  24475. - ;;
  24476. - esac
  24477. - else
  24478. - # PORTME Check for flag to pass linker flags through the system compiler.
  24479. - case $host_os in
  24480. - aix*)
  24481. - lt_prog_compiler_wl='-Wl,'
  24482. - if test "$host_cpu" = ia64; then
  24483. - # AIX 5 now supports IA64 processor
  24484. - lt_prog_compiler_static='-Bstatic'
  24485. - else
  24486. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  24487. - fi
  24488. - ;;
  24489. - darwin*)
  24490. - # PIC is the default on this platform
  24491. - # Common symbols not allowed in MH_DYLIB files
  24492. - case $cc_basename in
  24493. - xlc*)
  24494. - lt_prog_compiler_pic='-qnocommon'
  24495. - lt_prog_compiler_wl='-Wl,'
  24496. - ;;
  24497. - esac
  24498. - ;;
  24499. +else
  24500. + ac_cv_header_stdc=no
  24501. +fi
  24502. +rm -f conftest*
  24503. - mingw* | pw32* | os2*)
  24504. - # This hack is so that the source file can tell whether it is being
  24505. - # built for inclusion in a dll (and should export symbols for example).
  24506. - lt_prog_compiler_pic='-DDLL_EXPORT'
  24507. - ;;
  24508. +fi
  24509. - hpux9* | hpux10* | hpux11*)
  24510. - lt_prog_compiler_wl='-Wl,'
  24511. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  24512. - # not for PA HP-UX.
  24513. - case $host_cpu in
  24514. - hppa*64*|ia64*)
  24515. - # +Z the default
  24516. - ;;
  24517. - *)
  24518. - lt_prog_compiler_pic='+Z'
  24519. - ;;
  24520. - esac
  24521. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  24522. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  24523. - ;;
  24524. +if test $ac_cv_header_stdc = yes; then
  24525. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24526. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24527. +/* end confdefs.h. */
  24528. +#include <stdlib.h>
  24529. - irix5* | irix6* | nonstopux*)
  24530. - lt_prog_compiler_wl='-Wl,'
  24531. - # PIC (with -KPIC) is the default.
  24532. - lt_prog_compiler_static='-non_shared'
  24533. - ;;
  24534. +_ACEOF
  24535. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24536. + $EGREP "free" >/dev/null 2>&1; then :
  24537. - newsos6)
  24538. - lt_prog_compiler_pic='-KPIC'
  24539. - lt_prog_compiler_static='-Bstatic'
  24540. - ;;
  24541. +else
  24542. + ac_cv_header_stdc=no
  24543. +fi
  24544. +rm -f conftest*
  24545. - linux*)
  24546. - case $cc_basename in
  24547. - icc* | ecc*)
  24548. - lt_prog_compiler_wl='-Wl,'
  24549. - lt_prog_compiler_pic='-KPIC'
  24550. - lt_prog_compiler_static='-static'
  24551. - ;;
  24552. - pgcc* | pgf77* | pgf90* | pgf95*)
  24553. - # Portland Group compilers (*not* the Pentium gcc compiler,
  24554. - # which looks to be a dead project)
  24555. - lt_prog_compiler_wl='-Wl,'
  24556. - lt_prog_compiler_pic='-fpic'
  24557. - lt_prog_compiler_static='-Bstatic'
  24558. - ;;
  24559. - ccc*)
  24560. - lt_prog_compiler_wl='-Wl,'
  24561. - # All Alpha code is PIC.
  24562. - lt_prog_compiler_static='-non_shared'
  24563. - ;;
  24564. - esac
  24565. - ;;
  24566. +fi
  24567. - osf3* | osf4* | osf5*)
  24568. - lt_prog_compiler_wl='-Wl,'
  24569. - # All OSF/1 code is PIC.
  24570. - lt_prog_compiler_static='-non_shared'
  24571. - ;;
  24572. +if test $ac_cv_header_stdc = yes; then
  24573. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24574. + if test "$cross_compiling" = yes; then :
  24575. + :
  24576. +else
  24577. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24578. +/* end confdefs.h. */
  24579. +#include <ctype.h>
  24580. +#include <stdlib.h>
  24581. +#if ((' ' & 0x0FF) == 0x020)
  24582. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24583. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24584. +#else
  24585. +# define ISLOWER(c) \
  24586. + (('a' <= (c) && (c) <= 'i') \
  24587. + || ('j' <= (c) && (c) <= 'r') \
  24588. + || ('s' <= (c) && (c) <= 'z'))
  24589. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24590. +#endif
  24591. - solaris*)
  24592. - lt_prog_compiler_pic='-KPIC'
  24593. - lt_prog_compiler_static='-Bstatic'
  24594. - case $cc_basename in
  24595. - f77* | f90* | f95*)
  24596. - lt_prog_compiler_wl='-Qoption ld ';;
  24597. - *)
  24598. - lt_prog_compiler_wl='-Wl,';;
  24599. - esac
  24600. - ;;
  24601. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24602. +int
  24603. +main ()
  24604. +{
  24605. + int i;
  24606. + for (i = 0; i < 256; i++)
  24607. + if (XOR (islower (i), ISLOWER (i))
  24608. + || toupper (i) != TOUPPER (i))
  24609. + return 2;
  24610. + return 0;
  24611. +}
  24612. +_ACEOF
  24613. +if ac_fn_c_try_run "$LINENO"; then :
  24614. - sunos4*)
  24615. - lt_prog_compiler_wl='-Qoption ld '
  24616. - lt_prog_compiler_pic='-PIC'
  24617. - lt_prog_compiler_static='-Bstatic'
  24618. - ;;
  24619. +else
  24620. + ac_cv_header_stdc=no
  24621. +fi
  24622. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24623. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  24624. +fi
  24625. - sysv4 | sysv4.2uw2* | sysv4.3*)
  24626. - lt_prog_compiler_wl='-Wl,'
  24627. - lt_prog_compiler_pic='-KPIC'
  24628. - lt_prog_compiler_static='-Bstatic'
  24629. - ;;
  24630. +fi
  24631. +fi
  24632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  24633. +$as_echo "$ac_cv_header_stdc" >&6; }
  24634. +if test $ac_cv_header_stdc = yes; then
  24635. - sysv4*MP*)
  24636. - if test -d /usr/nec ;then
  24637. - lt_prog_compiler_pic='-Kconform_pic'
  24638. - lt_prog_compiler_static='-Bstatic'
  24639. - fi
  24640. - ;;
  24641. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  24642. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  24643. - lt_prog_compiler_wl='-Wl,'
  24644. - lt_prog_compiler_pic='-KPIC'
  24645. - lt_prog_compiler_static='-Bstatic'
  24646. - ;;
  24647. +fi
  24648. - unicos*)
  24649. - lt_prog_compiler_wl='-Wl,'
  24650. - lt_prog_compiler_can_build_shared=no
  24651. - ;;
  24652. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  24653. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  24654. + inttypes.h stdint.h unistd.h
  24655. +do :
  24656. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24657. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  24658. +"
  24659. +eval as_val=\$$as_ac_Header
  24660. + if test "x$as_val" = x""yes; then :
  24661. + cat >>confdefs.h <<_ACEOF
  24662. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24663. +_ACEOF
  24664. +
  24665. +fi
  24666. +
  24667. +done
  24668. +
  24669. +
  24670. +for ac_header in dlfcn.h
  24671. +do :
  24672. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  24673. +"
  24674. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  24675. + cat >>confdefs.h <<_ACEOF
  24676. +#define HAVE_DLFCN_H 1
  24677. +_ACEOF
  24678. +
  24679. +fi
  24680. +
  24681. +done
  24682. +
  24683. +
  24684. +
  24685. +# Set options
  24686. +
  24687. +
  24688. +
  24689. + enable_dlopen=no
  24690. +
  24691. +
  24692. + enable_win32_dll=no
  24693. - uts4*)
  24694. - lt_prog_compiler_pic='-pic'
  24695. - lt_prog_compiler_static='-Bstatic'
  24696. - ;;
  24697. + # Check whether --enable-shared was given.
  24698. +if test "${enable_shared+set}" = set; then :
  24699. + enableval=$enable_shared; p=${PACKAGE-default}
  24700. + case $enableval in
  24701. + yes) enable_shared=yes ;;
  24702. + no) enable_shared=no ;;
  24703. *)
  24704. - lt_prog_compiler_can_build_shared=no
  24705. + enable_shared=no
  24706. + # Look at the argument we got. We use all the common list separators.
  24707. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24708. + for pkg in $enableval; do
  24709. + IFS="$lt_save_ifs"
  24710. + if test "X$pkg" = "X$p"; then
  24711. + enable_shared=yes
  24712. + fi
  24713. + done
  24714. + IFS="$lt_save_ifs"
  24715. ;;
  24716. esac
  24717. - fi
  24718. +else
  24719. + enable_shared=yes
  24720. +fi
  24721. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  24722. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  24723. -#
  24724. -# Check to make sure the PIC flag actually works.
  24725. -#
  24726. -if test -n "$lt_prog_compiler_pic"; then
  24727. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  24728. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  24729. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  24730. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24731. -else
  24732. - lt_prog_compiler_pic_works=no
  24733. - ac_outfile=conftest.$ac_objext
  24734. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24735. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  24736. - # Insert the option either (1) after the last *FLAGS variable, or
  24737. - # (2) before a word containing "conftest.", or (3) at the end.
  24738. - # Note that $ac_compile itself does not contain backslashes and begins
  24739. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24740. - # The option is referenced via a variable to avoid confusing sed.
  24741. - lt_compile=`echo "$ac_compile" | $SED \
  24742. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24743. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24744. - -e 's:$: $lt_compiler_flag:'`
  24745. - (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
  24746. - (eval "$lt_compile" 2>conftest.err)
  24747. - ac_status=$?
  24748. - cat conftest.err >&5
  24749. - echo "$as_me:7741: \$? = $ac_status" >&5
  24750. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24751. - # The compiler can only warn and ignore the option if not recognized
  24752. - # So say no if there are warnings other than the usual output.
  24753. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24754. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24755. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24756. - lt_prog_compiler_pic_works=yes
  24757. - fi
  24758. - fi
  24759. - $rm conftest*
  24760. -fi
  24761. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  24762. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  24763. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  24764. - case $lt_prog_compiler_pic in
  24765. - "" | " "*) ;;
  24766. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  24767. - esac
  24768. -else
  24769. - lt_prog_compiler_pic=
  24770. - lt_prog_compiler_can_build_shared=no
  24771. -fi
  24772. -fi
  24773. -case $host_os in
  24774. - # For platforms which do not support PIC, -DPIC is meaningless:
  24775. - *djgpp*)
  24776. - lt_prog_compiler_pic=
  24777. - ;;
  24778. - *)
  24779. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  24780. - ;;
  24781. -esac
  24782. -#
  24783. -# Check to make sure the static flag actually works.
  24784. -#
  24785. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  24786. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24787. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  24788. -if test "${lt_prog_compiler_static_works+set}" = set; then
  24789. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24790. -else
  24791. - lt_prog_compiler_static_works=no
  24792. - save_LDFLAGS="$LDFLAGS"
  24793. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24794. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  24795. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24796. - # The linker can only warn and ignore the option if not recognized
  24797. - # So say no if there are warnings
  24798. - if test -s conftest.err; then
  24799. - # Append any errors to the config.log.
  24800. - cat conftest.err 1>&5
  24801. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24802. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24803. - if diff conftest.exp conftest.er2 >/dev/null; then
  24804. - lt_prog_compiler_static_works=yes
  24805. - fi
  24806. - else
  24807. - lt_prog_compiler_static_works=yes
  24808. - fi
  24809. - fi
  24810. - $rm conftest*
  24811. - LDFLAGS="$save_LDFLAGS"
  24812. -fi
  24813. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  24814. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  24815. -if test x"$lt_prog_compiler_static_works" = xyes; then
  24816. - :
  24817. + # Check whether --enable-static was given.
  24818. +if test "${enable_static+set}" = set; then :
  24819. + enableval=$enable_static; p=${PACKAGE-default}
  24820. + case $enableval in
  24821. + yes) enable_static=yes ;;
  24822. + no) enable_static=no ;;
  24823. + *)
  24824. + enable_static=no
  24825. + # Look at the argument we got. We use all the common list separators.
  24826. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24827. + for pkg in $enableval; do
  24828. + IFS="$lt_save_ifs"
  24829. + if test "X$pkg" = "X$p"; then
  24830. + enable_static=yes
  24831. + fi
  24832. + done
  24833. + IFS="$lt_save_ifs"
  24834. + ;;
  24835. + esac
  24836. else
  24837. - lt_prog_compiler_static=
  24838. + enable_static=yes
  24839. fi
  24840. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  24841. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  24842. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  24843. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24844. -else
  24845. - lt_cv_prog_compiler_c_o=no
  24846. - $rm -r conftest 2>/dev/null
  24847. - mkdir conftest
  24848. - cd conftest
  24849. - mkdir out
  24850. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24851. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  24852. - # Insert the option either (1) after the last *FLAGS variable, or
  24853. - # (2) before a word containing "conftest.", or (3) at the end.
  24854. - # Note that $ac_compile itself does not contain backslashes and begins
  24855. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24856. - lt_compile=`echo "$ac_compile" | $SED \
  24857. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24858. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24859. - -e 's:$: $lt_compiler_flag:'`
  24860. - (eval echo "\"\$as_me:7841: $lt_compile\"" >&5)
  24861. - (eval "$lt_compile" 2>out/conftest.err)
  24862. - ac_status=$?
  24863. - cat out/conftest.err >&5
  24864. - echo "$as_me:7845: \$? = $ac_status" >&5
  24865. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24866. - then
  24867. - # The compiler can only warn and ignore the option if not recognized
  24868. - # So say no if there are warnings
  24869. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24870. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24871. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24872. - lt_cv_prog_compiler_c_o=yes
  24873. - fi
  24874. - fi
  24875. - chmod u+w . 2>&5
  24876. - $rm conftest*
  24877. - # SGI C++ compiler will create directory out/ii_files/ for
  24878. - # template instantiation
  24879. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  24880. - $rm out/* && rmdir out
  24881. - cd ..
  24882. - rmdir conftest
  24883. - $rm conftest*
  24884. -fi
  24885. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  24886. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  24887. -hard_links="nottested"
  24888. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  24889. - # do not overwrite the value of need_locks provided by the user
  24890. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  24891. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  24892. - hard_links=yes
  24893. - $rm conftest*
  24894. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24895. - touch conftest.a
  24896. - ln conftest.a conftest.b 2>&5 || hard_links=no
  24897. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24898. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  24899. -echo "${ECHO_T}$hard_links" >&6; }
  24900. - if test "$hard_links" = no; then
  24901. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24902. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24903. - need_locks=warn
  24904. - fi
  24905. +
  24906. +
  24907. +
  24908. +
  24909. +# Check whether --with-pic was given.
  24910. +if test "${with_pic+set}" = set; then :
  24911. + withval=$with_pic; pic_mode="$withval"
  24912. else
  24913. - need_locks=no
  24914. + pic_mode=default
  24915. fi
  24916. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24917. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  24918. - runpath_var=
  24919. - allow_undefined_flag=
  24920. - enable_shared_with_static_runtimes=no
  24921. - archive_cmds=
  24922. - archive_expsym_cmds=
  24923. - old_archive_From_new_cmds=
  24924. - old_archive_from_expsyms_cmds=
  24925. - export_dynamic_flag_spec=
  24926. - whole_archive_flag_spec=
  24927. - thread_safe_flag_spec=
  24928. - hardcode_libdir_flag_spec=
  24929. - hardcode_libdir_flag_spec_ld=
  24930. - hardcode_libdir_separator=
  24931. - hardcode_direct=no
  24932. - hardcode_minus_L=no
  24933. - hardcode_shlibpath_var=unsupported
  24934. - link_all_deplibs=unknown
  24935. - hardcode_automatic=no
  24936. - module_cmds=
  24937. - module_expsym_cmds=
  24938. - always_export_symbols=no
  24939. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24940. - # include_expsyms should be a list of space-separated symbols to be *always*
  24941. - # included in the symbol list
  24942. - include_expsyms=
  24943. - # exclude_expsyms can be an extended regexp of symbols to exclude
  24944. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  24945. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  24946. - # as well as any symbol that contains `d'.
  24947. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  24948. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  24949. - # platforms (ab)use it in PIC code, but their linkers get confused if
  24950. - # the symbol is explicitly referenced. Since portable code cannot
  24951. - # rely on this symbol name, it's probably fine to never include it in
  24952. - # preloaded symbol tables.
  24953. - extract_expsyms_cmds=
  24954. - # Just being paranoid about ensuring that cc_basename is set.
  24955. - for cc_temp in $compiler""; do
  24956. - case $cc_temp in
  24957. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24958. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24959. - \-*) ;;
  24960. - *) break;;
  24961. - esac
  24962. -done
  24963. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24964. +test -z "$pic_mode" && pic_mode=default
  24965. - case $host_os in
  24966. - cygwin* | mingw* | pw32*)
  24967. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  24968. - # When not using gcc, we currently assume that we are using
  24969. - # Microsoft Visual C++.
  24970. - if test "$GCC" != yes; then
  24971. - with_gnu_ld=no
  24972. - fi
  24973. - ;;
  24974. - interix*)
  24975. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  24976. - with_gnu_ld=yes
  24977. - ;;
  24978. - openbsd*)
  24979. - with_gnu_ld=no
  24980. - ;;
  24981. - esac
  24982. - ld_shlibs=yes
  24983. - if test "$with_gnu_ld" = yes; then
  24984. - # If archive_cmds runs LD, not CC, wlarc should be empty
  24985. - wlarc='${wl}'
  24986. - # Set some defaults for GNU ld with shared library support. These
  24987. - # are reset later if shared libraries are not supported. Putting them
  24988. - # here allows them to be overridden if necessary.
  24989. - runpath_var=LD_RUN_PATH
  24990. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  24991. - export_dynamic_flag_spec='${wl}--export-dynamic'
  24992. - # ancient GNU ld didn't support --whole-archive et. al.
  24993. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  24994. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24995. - else
  24996. - whole_archive_flag_spec=
  24997. - fi
  24998. - supports_anon_versioning=no
  24999. - case `$LD -v 2>/dev/null` in
  25000. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  25001. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  25002. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  25003. - *\ 2.11.*) ;; # other 2.11 versions
  25004. - *) supports_anon_versioning=yes ;;
  25005. - esac
  25006. - # See if GNU ld supports shared libraries.
  25007. - case $host_os in
  25008. - aix3* | aix4* | aix5*)
  25009. - # On AIX/PPC, the GNU linker is very broken
  25010. - if test "$host_cpu" != ia64; then
  25011. - ld_shlibs=no
  25012. - cat <<EOF 1>&2
  25013. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  25014. -*** to be unable to reliably create shared libraries on AIX.
  25015. -*** Therefore, libtool is disabling shared libraries support. If you
  25016. -*** really care for shared libraries, you may want to modify your PATH
  25017. -*** so that a non-GNU linker is found, and then restart.
  25018. -EOF
  25019. - fi
  25020. +
  25021. + # Check whether --enable-fast-install was given.
  25022. +if test "${enable_fast_install+set}" = set; then :
  25023. + enableval=$enable_fast_install; p=${PACKAGE-default}
  25024. + case $enableval in
  25025. + yes) enable_fast_install=yes ;;
  25026. + no) enable_fast_install=no ;;
  25027. + *)
  25028. + enable_fast_install=no
  25029. + # Look at the argument we got. We use all the common list separators.
  25030. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25031. + for pkg in $enableval; do
  25032. + IFS="$lt_save_ifs"
  25033. + if test "X$pkg" = "X$p"; then
  25034. + enable_fast_install=yes
  25035. + fi
  25036. + done
  25037. + IFS="$lt_save_ifs"
  25038. ;;
  25039. + esac
  25040. +else
  25041. + enable_fast_install=yes
  25042. +fi
  25043. - amigaos*)
  25044. - 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)'
  25045. - hardcode_libdir_flag_spec='-L$libdir'
  25046. - hardcode_minus_L=yes
  25047. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  25048. - # that the semantics of dynamic libraries on AmigaOS, at least up
  25049. - # to version 4, is to share data among multiple programs linked
  25050. - # with the same dynamic library. Since this doesn't match the
  25051. - # behavior of shared libraries on other platforms, we can't use
  25052. - # them.
  25053. - ld_shlibs=no
  25054. - ;;
  25055. - beos*)
  25056. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25057. - allow_undefined_flag=unsupported
  25058. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25059. - # support --undefined. This deserves some investigation. FIXME
  25060. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25061. - else
  25062. - ld_shlibs=no
  25063. - fi
  25064. - ;;
  25065. - cygwin* | mingw* | pw32*)
  25066. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  25067. - # as there is no search path for DLLs.
  25068. - hardcode_libdir_flag_spec='-L$libdir'
  25069. - allow_undefined_flag=unsupported
  25070. - always_export_symbols=no
  25071. - enable_shared_with_static_runtimes=yes
  25072. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  25073. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  25074. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25075. - # If the export-symbols file already is a .def file (1st line
  25076. - # is EXPORTS), use it as is; otherwise, prepend...
  25077. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25078. - cp $export_symbols $output_objdir/$soname.def;
  25079. - else
  25080. - echo EXPORTS > $output_objdir/$soname.def;
  25081. - cat $export_symbols >> $output_objdir/$soname.def;
  25082. - fi~
  25083. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25084. - else
  25085. - ld_shlibs=no
  25086. - fi
  25087. - ;;
  25088. - interix3*)
  25089. - hardcode_direct=no
  25090. - hardcode_shlibpath_var=no
  25091. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25092. - export_dynamic_flag_spec='${wl}-E'
  25093. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25094. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  25095. - # default) and relocated if they conflict, which is a slow very memory
  25096. - # consuming and fragmenting process. To avoid this, we pick a random,
  25097. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25098. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25099. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  25100. - 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'
  25101. - ;;
  25102. - linux*)
  25103. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25104. - tmp_addflag=
  25105. - case $cc_basename,$host_cpu in
  25106. - pgcc*) # Portland Group C compiler
  25107. - 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'
  25108. - tmp_addflag=' $pic_flag'
  25109. - ;;
  25110. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  25111. - 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'
  25112. - tmp_addflag=' $pic_flag -Mnomain' ;;
  25113. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  25114. - tmp_addflag=' -i_dynamic' ;;
  25115. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  25116. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  25117. - ifc* | ifort*) # Intel Fortran compiler
  25118. - tmp_addflag=' -nofor_main' ;;
  25119. - esac
  25120. - archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25121. - if test $supports_anon_versioning = yes; then
  25122. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  25123. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  25124. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  25125. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  25126. - fi
  25127. - else
  25128. - ld_shlibs=no
  25129. - fi
  25130. - ;;
  25131. - netbsd*)
  25132. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25133. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  25134. - wlarc=
  25135. - else
  25136. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25137. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25138. - fi
  25139. - ;;
  25140. - solaris*)
  25141. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  25142. - ld_shlibs=no
  25143. - cat <<EOF 1>&2
  25144. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  25145. -*** create shared libraries on Solaris systems. Therefore, libtool
  25146. -*** is disabling shared libraries support. We urge you to upgrade GNU
  25147. -*** binutils to release 2.9.1 or newer. Another option is to modify
  25148. -*** your PATH or compiler configuration so that the native linker is
  25149. -*** used, and then restart.
  25150. +# This can be used to rebuild libtool when needed
  25151. +LIBTOOL_DEPS="$ltmain"
  25152. -EOF
  25153. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25154. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25155. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25156. - else
  25157. - ld_shlibs=no
  25158. - fi
  25159. - ;;
  25160. +# Always use our own libtool.
  25161. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  25162. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  25163. - case `$LD -v 2>&1` in
  25164. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  25165. - ld_shlibs=no
  25166. - cat <<_LT_EOF 1>&2
  25167. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  25168. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  25169. -*** is disabling shared libraries support. We urge you to upgrade GNU
  25170. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  25171. -*** your PATH or compiler configuration so that the native linker is
  25172. -*** used, and then restart.
  25173. -_LT_EOF
  25174. - ;;
  25175. - *)
  25176. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25177. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  25178. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  25179. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  25180. - else
  25181. - ld_shlibs=no
  25182. - fi
  25183. - ;;
  25184. - esac
  25185. - ;;
  25186. - sunos4*)
  25187. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25188. - wlarc=
  25189. - hardcode_direct=yes
  25190. - hardcode_shlibpath_var=no
  25191. - ;;
  25192. - *)
  25193. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25194. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25195. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25196. - else
  25197. - ld_shlibs=no
  25198. - fi
  25199. - ;;
  25200. - esac
  25201. - if test "$ld_shlibs" = no; then
  25202. - runpath_var=
  25203. - hardcode_libdir_flag_spec=
  25204. - export_dynamic_flag_spec=
  25205. - whole_archive_flag_spec=
  25206. - fi
  25207. - else
  25208. - # PORTME fill in a description of your system's linker (not GNU ld)
  25209. - case $host_os in
  25210. - aix3*)
  25211. - allow_undefined_flag=unsupported
  25212. - always_export_symbols=yes
  25213. - 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'
  25214. - # Note: this linker hardcodes the directories in LIBPATH if there
  25215. - # are no directories specified by -L.
  25216. - hardcode_minus_L=yes
  25217. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  25218. - # Neither direct hardcoding nor static linking is supported with a
  25219. - # broken collect2.
  25220. - hardcode_direct=unsupported
  25221. - fi
  25222. - ;;
  25223. - aix4* | aix5*)
  25224. - if test "$host_cpu" = ia64; then
  25225. - # On IA64, the linker does run time linking by default, so we don't
  25226. - # have to do anything special.
  25227. - aix_use_runtimelinking=no
  25228. - exp_sym_flag='-Bexport'
  25229. - no_entry_flag=""
  25230. - else
  25231. - # If we're using GNU nm, then we don't want the "-C" option.
  25232. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  25233. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  25234. - 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'
  25235. - else
  25236. - 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'
  25237. - fi
  25238. - aix_use_runtimelinking=no
  25239. - # Test if we are trying to use run time linking or normal
  25240. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  25241. - # need to do runtime linking.
  25242. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  25243. - for ld_flag in $LDFLAGS; do
  25244. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  25245. - aix_use_runtimelinking=yes
  25246. - break
  25247. - fi
  25248. - done
  25249. - ;;
  25250. - esac
  25251. - exp_sym_flag='-bexport'
  25252. - no_entry_flag='-bnoentry'
  25253. - fi
  25254. - # When large executables or shared objects are built, AIX ld can
  25255. - # have problems creating the table of contents. If linking a library
  25256. - # or program results in "error TOC overflow" add -mminimal-toc to
  25257. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  25258. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  25259. - archive_cmds=''
  25260. - hardcode_direct=yes
  25261. - hardcode_libdir_separator=':'
  25262. - link_all_deplibs=yes
  25263. - if test "$GCC" = yes; then
  25264. - case $host_os in aix4.[012]|aix4.[012].*)
  25265. - # We only want to do this on AIX 4.2 and lower, the check
  25266. - # below for broken collect2 doesn't work under 4.3+
  25267. - collect2name=`${CC} -print-prog-name=collect2`
  25268. - if test -f "$collect2name" && \
  25269. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  25270. - then
  25271. - # We have reworked collect2
  25272. - hardcode_direct=yes
  25273. - else
  25274. - # We have old collect2
  25275. - hardcode_direct=unsupported
  25276. - # It fails to find uninstalled libraries when the uninstalled
  25277. - # path is not listed in the libpath. Setting hardcode_minus_L
  25278. - # to unsupported forces relinking
  25279. - hardcode_minus_L=yes
  25280. - hardcode_libdir_flag_spec='-L$libdir'
  25281. - hardcode_libdir_separator=
  25282. - fi
  25283. - ;;
  25284. - esac
  25285. - shared_flag='-shared'
  25286. - if test "$aix_use_runtimelinking" = yes; then
  25287. - shared_flag="$shared_flag "'${wl}-G'
  25288. - fi
  25289. - else
  25290. - # not using gcc
  25291. - if test "$host_cpu" = ia64; then
  25292. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  25293. - # chokes on -Wl,-G. The following line is correct:
  25294. - shared_flag='-G'
  25295. - else
  25296. - if test "$aix_use_runtimelinking" = yes; then
  25297. - shared_flag='${wl}-G'
  25298. - else
  25299. - shared_flag='${wl}-bM:SRE'
  25300. - fi
  25301. - fi
  25302. - fi
  25303. - # It seems that -bexpall does not export symbols beginning with
  25304. - # underscore (_), so it is better to generate a list of symbols to export.
  25305. - always_export_symbols=yes
  25306. - if test "$aix_use_runtimelinking" = yes; then
  25307. - # Warning - without using the other runtime loading flags (-brtl),
  25308. - # -berok will link without error, but may produce a broken library.
  25309. - allow_undefined_flag='-berok'
  25310. - # Determine the default libpath from the value encoded in an empty executable.
  25311. - cat >conftest.$ac_ext <<_ACEOF
  25312. -/* confdefs.h. */
  25313. -_ACEOF
  25314. -cat confdefs.h >>conftest.$ac_ext
  25315. -cat >>conftest.$ac_ext <<_ACEOF
  25316. -/* end confdefs.h. */
  25317. -int
  25318. -main ()
  25319. -{
  25320. - ;
  25321. - return 0;
  25322. -}
  25323. -_ACEOF
  25324. -rm -f conftest.$ac_objext conftest$ac_exeext
  25325. -if { (ac_try="$ac_link"
  25326. -case "(($ac_try" in
  25327. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25328. - *) ac_try_echo=$ac_try;;
  25329. -esac
  25330. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25331. - (eval "$ac_link") 2>conftest.er1
  25332. - ac_status=$?
  25333. - grep -v '^ *+' conftest.er1 >conftest.err
  25334. - rm -f conftest.er1
  25335. - cat conftest.err >&5
  25336. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25337. - (exit $ac_status); } &&
  25338. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25339. - { (case "(($ac_try" in
  25340. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25341. - *) ac_try_echo=$ac_try;;
  25342. -esac
  25343. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25344. - (eval "$ac_try") 2>&5
  25345. - ac_status=$?
  25346. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25347. - (exit $ac_status); }; } &&
  25348. - { ac_try='test -s conftest$ac_exeext'
  25349. - { (case "(($ac_try" in
  25350. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25351. - *) ac_try_echo=$ac_try;;
  25352. -esac
  25353. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25354. - (eval "$ac_try") 2>&5
  25355. - ac_status=$?
  25356. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25357. - (exit $ac_status); }; }; then
  25358. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25359. -}'`
  25360. -# Check for a 64-bit object if we didn't find anything.
  25361. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25362. -}'`; fi
  25363. -else
  25364. - echo "$as_me: failed program was:" >&5
  25365. -sed 's/^/| /' conftest.$ac_ext >&5
  25366. -fi
  25367. -rm -f core conftest.err conftest.$ac_objext \
  25368. - conftest$ac_exeext conftest.$ac_ext
  25369. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25370. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25371. - 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"
  25372. - else
  25373. - if test "$host_cpu" = ia64; then
  25374. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  25375. - allow_undefined_flag="-z nodefs"
  25376. - 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"
  25377. - else
  25378. - # Determine the default libpath from the value encoded in an empty executable.
  25379. - cat >conftest.$ac_ext <<_ACEOF
  25380. -/* confdefs.h. */
  25381. -_ACEOF
  25382. -cat confdefs.h >>conftest.$ac_ext
  25383. -cat >>conftest.$ac_ext <<_ACEOF
  25384. -/* end confdefs.h. */
  25385. -int
  25386. -main ()
  25387. -{
  25388. - ;
  25389. - return 0;
  25390. -}
  25391. -_ACEOF
  25392. -rm -f conftest.$ac_objext conftest$ac_exeext
  25393. -if { (ac_try="$ac_link"
  25394. -case "(($ac_try" in
  25395. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25396. - *) ac_try_echo=$ac_try;;
  25397. -esac
  25398. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25399. - (eval "$ac_link") 2>conftest.er1
  25400. - ac_status=$?
  25401. - grep -v '^ *+' conftest.er1 >conftest.err
  25402. - rm -f conftest.er1
  25403. - cat conftest.err >&5
  25404. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25405. - (exit $ac_status); } &&
  25406. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25407. - { (case "(($ac_try" in
  25408. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25409. - *) ac_try_echo=$ac_try;;
  25410. -esac
  25411. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25412. - (eval "$ac_try") 2>&5
  25413. - ac_status=$?
  25414. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25415. - (exit $ac_status); }; } &&
  25416. - { ac_try='test -s conftest$ac_exeext'
  25417. - { (case "(($ac_try" in
  25418. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25419. - *) ac_try_echo=$ac_try;;
  25420. -esac
  25421. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25422. - (eval "$ac_try") 2>&5
  25423. - ac_status=$?
  25424. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25425. - (exit $ac_status); }; }; then
  25426. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25427. -}'`
  25428. -# Check for a 64-bit object if we didn't find anything.
  25429. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  25430. -}'`; fi
  25431. -else
  25432. - echo "$as_me: failed program was:" >&5
  25433. -sed 's/^/| /' conftest.$ac_ext >&5
  25434. -fi
  25435. +test -z "$LN_S" && LN_S="ln -s"
  25436. -rm -f core conftest.err conftest.$ac_objext \
  25437. - conftest$ac_exeext conftest.$ac_ext
  25438. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25439. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25440. - # Warning - without using the other run time loading flags,
  25441. - # -berok will link without error, but may produce a broken library.
  25442. - no_undefined_flag=' ${wl}-bernotok'
  25443. - allow_undefined_flag=' ${wl}-berok'
  25444. - # Exported symbols can be pulled into shared objects from archives
  25445. - whole_archive_flag_spec='$convenience'
  25446. - archive_cmds_need_lc=yes
  25447. - # This is similar to how AIX traditionally builds its shared libraries.
  25448. - 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'
  25449. - fi
  25450. - fi
  25451. - ;;
  25452. - amigaos*)
  25453. - 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)'
  25454. - hardcode_libdir_flag_spec='-L$libdir'
  25455. - hardcode_minus_L=yes
  25456. - # see comment about different semantics on the GNU ld section
  25457. - ld_shlibs=no
  25458. - ;;
  25459. - bsdi[45]*)
  25460. - export_dynamic_flag_spec=-rdynamic
  25461. - ;;
  25462. - cygwin* | mingw* | pw32*)
  25463. - # When not using gcc, we currently assume that we are using
  25464. - # Microsoft Visual C++.
  25465. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  25466. - # no search path for DLLs.
  25467. - hardcode_libdir_flag_spec=' '
  25468. - allow_undefined_flag=unsupported
  25469. - # Tell ltmain to make .lib files, not .a files.
  25470. - libext=lib
  25471. - # Tell ltmain to make .dll files, not .so files.
  25472. - shrext_cmds=".dll"
  25473. - # FIXME: Setting linknames here is a bad hack.
  25474. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  25475. - # The linker will automatically build a .lib file if we build a DLL.
  25476. - old_archive_From_new_cmds='true'
  25477. - # FIXME: Should let the user specify the lib program.
  25478. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  25479. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  25480. - enable_shared_with_static_runtimes=yes
  25481. - ;;
  25482. - darwin* | rhapsody*)
  25483. - case $host_os in
  25484. - rhapsody* | darwin1.[012])
  25485. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  25486. - ;;
  25487. - *) # Darwin 1.3 on
  25488. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  25489. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  25490. - else
  25491. - case ${MACOSX_DEPLOYMENT_TARGET} in
  25492. - 10.[012])
  25493. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  25494. - ;;
  25495. - 10.*)
  25496. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  25497. - ;;
  25498. - esac
  25499. - fi
  25500. - ;;
  25501. - esac
  25502. - archive_cmds_need_lc=no
  25503. - hardcode_direct=no
  25504. - hardcode_automatic=yes
  25505. - hardcode_shlibpath_var=unsupported
  25506. - whole_archive_flag_spec=''
  25507. - link_all_deplibs=yes
  25508. - if test "$GCC" = yes ; then
  25509. - output_verbose_link_cmd='echo'
  25510. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  25511. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25512. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25513. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25514. - 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}'
  25515. - else
  25516. - case $cc_basename in
  25517. - xlc*)
  25518. - output_verbose_link_cmd='echo'
  25519. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  25520. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  25521. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  25522. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25523. - 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}'
  25524. - ;;
  25525. - *)
  25526. - ld_shlibs=no
  25527. - ;;
  25528. - esac
  25529. - fi
  25530. - ;;
  25531. - dgux*)
  25532. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25533. - hardcode_libdir_flag_spec='-L$libdir'
  25534. - hardcode_shlibpath_var=no
  25535. - ;;
  25536. - freebsd1*)
  25537. - ld_shlibs=no
  25538. - ;;
  25539. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  25540. - # support. Future versions do this automatically, but an explicit c++rt0.o
  25541. - # does not break anything, and helps significantly (at the cost of a little
  25542. - # extra space).
  25543. - freebsd2.2*)
  25544. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  25545. - hardcode_libdir_flag_spec='-R$libdir'
  25546. - hardcode_direct=yes
  25547. - hardcode_shlibpath_var=no
  25548. - ;;
  25549. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  25550. - freebsd2*)
  25551. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25552. - hardcode_direct=yes
  25553. - hardcode_minus_L=yes
  25554. - hardcode_shlibpath_var=no
  25555. - ;;
  25556. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  25557. - freebsd* | kfreebsd*-gnu | dragonfly*)
  25558. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  25559. - hardcode_libdir_flag_spec='-R$libdir'
  25560. - hardcode_direct=yes
  25561. - hardcode_shlibpath_var=no
  25562. - ;;
  25563. - hpux9*)
  25564. - if test "$GCC" = yes; then
  25565. - 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'
  25566. - else
  25567. - 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'
  25568. - fi
  25569. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25570. - hardcode_libdir_separator=:
  25571. - hardcode_direct=yes
  25572. - # hardcode_minus_L: Not really in the search PATH,
  25573. - # but as the default location of the library.
  25574. - hardcode_minus_L=yes
  25575. - export_dynamic_flag_spec='${wl}-E'
  25576. - ;;
  25577. - hpux10*)
  25578. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25579. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25580. - else
  25581. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  25582. - fi
  25583. - if test "$with_gnu_ld" = no; then
  25584. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25585. - hardcode_libdir_separator=:
  25586. +if test -n "${ZSH_VERSION+set}" ; then
  25587. + setopt NO_GLOB_SUBST
  25588. +fi
  25589. - hardcode_direct=yes
  25590. - export_dynamic_flag_spec='${wl}-E'
  25591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  25592. +$as_echo_n "checking for objdir... " >&6; }
  25593. +if test "${lt_cv_objdir+set}" = set; then :
  25594. + $as_echo_n "(cached) " >&6
  25595. +else
  25596. + rm -f .libs 2>/dev/null
  25597. +mkdir .libs 2>/dev/null
  25598. +if test -d .libs; then
  25599. + lt_cv_objdir=.libs
  25600. +else
  25601. + # MS-DOS does not allow filenames that begin with a dot.
  25602. + lt_cv_objdir=_libs
  25603. +fi
  25604. +rmdir .libs 2>/dev/null
  25605. +fi
  25606. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  25607. +$as_echo "$lt_cv_objdir" >&6; }
  25608. +objdir=$lt_cv_objdir
  25609. - # hardcode_minus_L: Not really in the search PATH,
  25610. - # but as the default location of the library.
  25611. - hardcode_minus_L=yes
  25612. - fi
  25613. - ;;
  25614. - hpux11*)
  25615. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25616. - case $host_cpu in
  25617. - hppa*64*)
  25618. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25619. - ;;
  25620. - ia64*)
  25621. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25622. - ;;
  25623. - *)
  25624. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25625. - ;;
  25626. - esac
  25627. - else
  25628. - case $host_cpu in
  25629. - hppa*64*)
  25630. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25631. - ;;
  25632. - ia64*)
  25633. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25634. - ;;
  25635. - *)
  25636. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25637. - ;;
  25638. - esac
  25639. - fi
  25640. - if test "$with_gnu_ld" = no; then
  25641. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25642. - hardcode_libdir_separator=:
  25643. - case $host_cpu in
  25644. - hppa*64*|ia64*)
  25645. - hardcode_libdir_flag_spec_ld='+b $libdir'
  25646. - hardcode_direct=no
  25647. - hardcode_shlibpath_var=no
  25648. - ;;
  25649. - *)
  25650. - hardcode_direct=yes
  25651. - export_dynamic_flag_spec='${wl}-E'
  25652. - # hardcode_minus_L: Not really in the search PATH,
  25653. - # but as the default location of the library.
  25654. - hardcode_minus_L=yes
  25655. - ;;
  25656. - esac
  25657. - fi
  25658. - ;;
  25659. - irix5* | irix6* | nonstopux*)
  25660. - if test "$GCC" = yes; then
  25661. - 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'
  25662. - else
  25663. - 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'
  25664. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  25665. - fi
  25666. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25667. - hardcode_libdir_separator=:
  25668. - link_all_deplibs=yes
  25669. - ;;
  25670. +cat >>confdefs.h <<_ACEOF
  25671. +#define LT_OBJDIR "$lt_cv_objdir/"
  25672. +_ACEOF
  25673. - netbsd*)
  25674. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25675. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  25676. - else
  25677. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  25678. - fi
  25679. - hardcode_libdir_flag_spec='-R$libdir'
  25680. - hardcode_direct=yes
  25681. - hardcode_shlibpath_var=no
  25682. - ;;
  25683. - newsos6)
  25684. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25685. - hardcode_direct=yes
  25686. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25687. - hardcode_libdir_separator=:
  25688. - hardcode_shlibpath_var=no
  25689. - ;;
  25690. - openbsd*)
  25691. - hardcode_direct=yes
  25692. - hardcode_shlibpath_var=no
  25693. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25694. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25695. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  25696. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25697. - export_dynamic_flag_spec='${wl}-E'
  25698. - else
  25699. - case $host_os in
  25700. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  25701. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25702. - hardcode_libdir_flag_spec='-R$libdir'
  25703. - ;;
  25704. - *)
  25705. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25706. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25707. - ;;
  25708. - esac
  25709. - fi
  25710. - ;;
  25711. - os2*)
  25712. - hardcode_libdir_flag_spec='-L$libdir'
  25713. - hardcode_minus_L=yes
  25714. - allow_undefined_flag=unsupported
  25715. - 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'
  25716. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  25717. - ;;
  25718. -
  25719. - osf3*)
  25720. - if test "$GCC" = yes; then
  25721. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25722. - 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'
  25723. - else
  25724. - allow_undefined_flag=' -expect_unresolved \*'
  25725. - 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'
  25726. - fi
  25727. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25728. - hardcode_libdir_separator=:
  25729. - ;;
  25730. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  25731. - if test "$GCC" = yes; then
  25732. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25733. - 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'
  25734. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25735. - else
  25736. - allow_undefined_flag=' -expect_unresolved \*'
  25737. - 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'
  25738. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  25739. - $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'
  25740. - # Both c and cxx compiler support -rpath directly
  25741. - hardcode_libdir_flag_spec='-rpath $libdir'
  25742. - fi
  25743. - hardcode_libdir_separator=:
  25744. - ;;
  25745. - solaris*)
  25746. - no_undefined_flag=' -z text'
  25747. - if test "$GCC" = yes; then
  25748. - wlarc='${wl}'
  25749. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25750. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25751. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  25752. - else
  25753. - wlarc=''
  25754. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25755. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25756. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  25757. - fi
  25758. - hardcode_libdir_flag_spec='-R$libdir'
  25759. - hardcode_shlibpath_var=no
  25760. - case $host_os in
  25761. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  25762. - *)
  25763. - # The compiler driver will combine linker options so we
  25764. - # cannot just pass the convience library names through
  25765. - # without $wl, iff we do not link with $LD.
  25766. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  25767. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  25768. - case $wlarc in
  25769. - '')
  25770. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  25771. - *)
  25772. - whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  25773. - esac ;;
  25774. - esac
  25775. - link_all_deplibs=yes
  25776. - ;;
  25777. - sunos4*)
  25778. - if test "x$host_vendor" = xsequent; then
  25779. - # Use $CC to link under sequent, because it throws in some extra .o
  25780. - # files that make .init and .fini sections work.
  25781. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  25782. - else
  25783. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  25784. - fi
  25785. - hardcode_libdir_flag_spec='-L$libdir'
  25786. - hardcode_direct=yes
  25787. - hardcode_minus_L=yes
  25788. - hardcode_shlibpath_var=no
  25789. - ;;
  25790. - sysv4)
  25791. - case $host_vendor in
  25792. - sni)
  25793. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25794. - hardcode_direct=yes # is this really true???
  25795. - ;;
  25796. - siemens)
  25797. - ## LD is ld it makes a PLAMLIB
  25798. - ## CC just makes a GrossModule.
  25799. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  25800. - reload_cmds='$CC -r -o $output$reload_objs'
  25801. - hardcode_direct=no
  25802. - ;;
  25803. - motorola)
  25804. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25805. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  25806. - ;;
  25807. - esac
  25808. - runpath_var='LD_RUN_PATH'
  25809. - hardcode_shlibpath_var=no
  25810. - ;;
  25811. - sysv4.3*)
  25812. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25813. - hardcode_shlibpath_var=no
  25814. - export_dynamic_flag_spec='-Bexport'
  25815. - ;;
  25816. - sysv4*MP*)
  25817. - if test -d /usr/nec; then
  25818. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25819. - hardcode_shlibpath_var=no
  25820. - runpath_var=LD_RUN_PATH
  25821. - hardcode_runpath_var=yes
  25822. - ld_shlibs=yes
  25823. - fi
  25824. - ;;
  25825. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  25826. - no_undefined_flag='${wl}-z,text'
  25827. - archive_cmds_need_lc=no
  25828. - hardcode_shlibpath_var=no
  25829. - runpath_var='LD_RUN_PATH'
  25830. - if test "$GCC" = yes; then
  25831. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25832. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25833. - else
  25834. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25835. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25836. - fi
  25837. - ;;
  25838. - sysv5* | sco3.2v5* | sco5v6*)
  25839. - # Note: We can NOT use -z defs as we might desire, because we do not
  25840. - # link with -lc, and that would cause any symbols used from libc to
  25841. - # always be unresolved, which means just about no library would
  25842. - # ever link correctly. If we're not using GNU ld we use -z text
  25843. - # though, which does catch some bad symbols but isn't as heavy-handed
  25844. - # as -z defs.
  25845. - no_undefined_flag='${wl}-z,text'
  25846. - allow_undefined_flag='${wl}-z,nodefs'
  25847. - archive_cmds_need_lc=no
  25848. - hardcode_shlibpath_var=no
  25849. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  25850. - hardcode_libdir_separator=':'
  25851. - link_all_deplibs=yes
  25852. - export_dynamic_flag_spec='${wl}-Bexport'
  25853. - runpath_var='LD_RUN_PATH'
  25854. - if test "$GCC" = yes; then
  25855. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25856. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25857. - else
  25858. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25859. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25860. - fi
  25861. - ;;
  25862. - uts4*)
  25863. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25864. - hardcode_libdir_flag_spec='-L$libdir'
  25865. - hardcode_shlibpath_var=no
  25866. - ;;
  25867. - *)
  25868. - ld_shlibs=no
  25869. - ;;
  25870. - esac
  25871. +case $host_os in
  25872. +aix3*)
  25873. + # AIX sometimes has problems with the GCC collect2 program. For some
  25874. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  25875. + # vanish in a puff of smoke.
  25876. + if test "X${COLLECT_NAMES+set}" != Xset; then
  25877. + COLLECT_NAMES=
  25878. + export COLLECT_NAMES
  25879. fi
  25880. + ;;
  25881. +esac
  25882. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  25883. -echo "${ECHO_T}$ld_shlibs" >&6; }
  25884. -test "$ld_shlibs" = no && can_build_shared=no
  25885. +# Sed substitution that helps us do robust quoting. It backslashifies
  25886. +# metacharacters that are still active within double-quoted strings.
  25887. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  25888. -#
  25889. -# Do we need to explicitly link libc?
  25890. -#
  25891. -case "x$archive_cmds_need_lc" in
  25892. -x|xyes)
  25893. - # Assume -lc should be added
  25894. - archive_cmds_need_lc=yes
  25895. +# Same as above, but do not quote variable references.
  25896. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  25897. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  25898. - case $archive_cmds in
  25899. - *'~'*)
  25900. - # FIXME: we may have to deal with multi-command sequences.
  25901. - ;;
  25902. - '$CC '*)
  25903. - # Test whether the compiler implicitly links with -lc since on some
  25904. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  25905. - # to ld, don't add -lc before -lgcc.
  25906. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  25907. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  25908. - $rm conftest*
  25909. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25910. +# Sed substitution to delay expansion of an escaped shell variable in a
  25911. +# double_quote_subst'ed string.
  25912. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  25913. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25914. - (eval $ac_compile) 2>&5
  25915. - ac_status=$?
  25916. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25917. - (exit $ac_status); } 2>conftest.err; then
  25918. - soname=conftest
  25919. - lib=conftest
  25920. - libobjs=conftest.$ac_objext
  25921. - deplibs=
  25922. - wl=$lt_prog_compiler_wl
  25923. - pic_flag=$lt_prog_compiler_pic
  25924. - compiler_flags=-v
  25925. - linker_flags=-v
  25926. - verstring=
  25927. - output_objdir=.
  25928. - libname=conftest
  25929. - lt_save_allow_undefined_flag=$allow_undefined_flag
  25930. - allow_undefined_flag=
  25931. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  25932. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  25933. - ac_status=$?
  25934. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25935. - (exit $ac_status); }
  25936. - then
  25937. - archive_cmds_need_lc=no
  25938. - else
  25939. - archive_cmds_need_lc=yes
  25940. - fi
  25941. - allow_undefined_flag=$lt_save_allow_undefined_flag
  25942. - else
  25943. - cat conftest.err 1>&5
  25944. - fi
  25945. - $rm conftest*
  25946. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  25947. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  25948. - ;;
  25949. - esac
  25950. - fi
  25951. - ;;
  25952. -esac
  25953. +# Sed substitution to delay expansion of an escaped single quote.
  25954. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  25955. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  25956. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  25957. -library_names_spec=
  25958. -libname_spec='lib$name'
  25959. -soname_spec=
  25960. -shrext_cmds=".so"
  25961. -postinstall_cmds=
  25962. -postuninstall_cmds=
  25963. -finish_cmds=
  25964. -finish_eval=
  25965. -shlibpath_var=
  25966. -shlibpath_overrides_runpath=unknown
  25967. -version_type=none
  25968. -dynamic_linker="$host_os ld.so"
  25969. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  25970. -if test "$GCC" = yes; then
  25971. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25972. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  25973. - # if the path contains ";" then we assume it to be the separator
  25974. - # otherwise default to the standard path separator (i.e. ":") - it is
  25975. - # assumed that no part of a normal pathname contains ";" but that should
  25976. - # okay in the real world where ";" in dirpaths is itself problematic.
  25977. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  25978. - else
  25979. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25980. - fi
  25981. -else
  25982. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  25983. -fi
  25984. -need_lib_prefix=unknown
  25985. -hardcode_into_libs=no
  25986. +# Sed substitution to avoid accidental globbing in evaled expressions
  25987. +no_glob_subst='s/\*/\\\*/g'
  25988. -# when you set need_version to no, make sure it does not cause -set_version
  25989. -# flags to be left without arguments
  25990. -need_version=unknown
  25991. +# Global variables:
  25992. +ofile=libtool
  25993. +can_build_shared=yes
  25994. -case $host_os in
  25995. -aix3*)
  25996. - version_type=linux
  25997. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  25998. - shlibpath_var=LIBPATH
  25999. +# All known linkers require a `.a' archive for static linking (except MSVC,
  26000. +# which needs '.lib').
  26001. +libext=a
  26002. - # AIX 3 has no versioning support, so we append a major version to the name.
  26003. - soname_spec='${libname}${release}${shared_ext}$major'
  26004. - ;;
  26005. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  26006. -aix4* | aix5*)
  26007. - version_type=linux
  26008. - need_lib_prefix=no
  26009. - need_version=no
  26010. - hardcode_into_libs=yes
  26011. - if test "$host_cpu" = ia64; then
  26012. - # AIX 5 supports IA64
  26013. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  26014. - shlibpath_var=LD_LIBRARY_PATH
  26015. - else
  26016. - # With GCC up to 2.95.x, collect2 would create an import file
  26017. - # for dependence libraries. The import file would start with
  26018. - # the line `#! .'. This would cause the generated library to
  26019. - # depend on `.', always an invalid library. This was fixed in
  26020. - # development snapshots of GCC prior to 3.0.
  26021. - case $host_os in
  26022. - aix4 | aix4.[01] | aix4.[01].*)
  26023. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  26024. - echo ' yes '
  26025. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  26026. - :
  26027. - else
  26028. - can_build_shared=no
  26029. - fi
  26030. - ;;
  26031. - esac
  26032. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  26033. - # soname into executable. Probably we can add versioning support to
  26034. - # collect2, so additional links can be useful in future.
  26035. - if test "$aix_use_runtimelinking" = yes; then
  26036. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  26037. - # instead of lib<name>.a to let people know that these are not
  26038. - # typical AIX shared libraries.
  26039. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26040. - else
  26041. - # We preserve .a as extension for shared libraries through AIX4.2
  26042. - # and later when we are not doing run time linking.
  26043. - library_names_spec='${libname}${release}.a $libname.a'
  26044. - soname_spec='${libname}${release}${shared_ext}$major'
  26045. - fi
  26046. - shlibpath_var=LIBPATH
  26047. - fi
  26048. - ;;
  26049. +old_CC="$CC"
  26050. +old_CFLAGS="$CFLAGS"
  26051. -amigaos*)
  26052. - library_names_spec='$libname.ixlibrary $libname.a'
  26053. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  26054. - 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'
  26055. - ;;
  26056. +# Set sane defaults for various variables
  26057. +test -z "$CC" && CC=cc
  26058. +test -z "$LTCC" && LTCC=$CC
  26059. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  26060. +test -z "$LD" && LD=ld
  26061. +test -z "$ac_objext" && ac_objext=o
  26062. -beos*)
  26063. - library_names_spec='${libname}${shared_ext}'
  26064. - dynamic_linker="$host_os ld.so"
  26065. - shlibpath_var=LIBRARY_PATH
  26066. +for cc_temp in $compiler""; do
  26067. + case $cc_temp in
  26068. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26069. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26070. + \-*) ;;
  26071. + *) break;;
  26072. + esac
  26073. +done
  26074. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26075. +
  26076. +
  26077. +# Only perform the check for file, if the check method requires it
  26078. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  26079. +case $deplibs_check_method in
  26080. +file_magic*)
  26081. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  26082. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  26083. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  26084. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  26085. + $as_echo_n "(cached) " >&6
  26086. +else
  26087. + case $MAGIC_CMD in
  26088. +[\\/*] | ?:[\\/]*)
  26089. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  26090. ;;
  26091. +*)
  26092. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  26093. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26094. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  26095. + for ac_dir in $ac_dummy; do
  26096. + IFS="$lt_save_ifs"
  26097. + test -z "$ac_dir" && ac_dir=.
  26098. + if test -f $ac_dir/${ac_tool_prefix}file; then
  26099. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  26100. + if test -n "$file_magic_test_file"; then
  26101. + case $deplibs_check_method in
  26102. + "file_magic "*)
  26103. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  26104. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26105. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  26106. + $EGREP "$file_magic_regex" > /dev/null; then
  26107. + :
  26108. + else
  26109. + cat <<_LT_EOF 1>&2
  26110. -bsdi[45]*)
  26111. - version_type=linux
  26112. - need_version=no
  26113. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26114. - soname_spec='${libname}${release}${shared_ext}$major'
  26115. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  26116. - shlibpath_var=LD_LIBRARY_PATH
  26117. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  26118. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  26119. - # the default ld.so.conf also contains /usr/contrib/lib and
  26120. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  26121. - # libtool to hard-code these into programs
  26122. +*** Warning: the command libtool uses to detect shared libraries,
  26123. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  26124. +*** The result is that libtool may fail to recognize shared libraries
  26125. +*** as such. This will affect the creation of libtool libraries that
  26126. +*** depend on shared libraries, but programs linked with such libtool
  26127. +*** libraries will work regardless of this problem. Nevertheless, you
  26128. +*** may want to report the problem to your system manager and/or to
  26129. +*** bug-libtool@gnu.org
  26130. +
  26131. +_LT_EOF
  26132. + fi ;;
  26133. + esac
  26134. + fi
  26135. + break
  26136. + fi
  26137. + done
  26138. + IFS="$lt_save_ifs"
  26139. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  26140. ;;
  26141. +esac
  26142. +fi
  26143. -cygwin* | mingw* | pw32*)
  26144. - version_type=windows
  26145. - shrext_cmds=".dll"
  26146. - need_version=no
  26147. - need_lib_prefix=no
  26148. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26149. +if test -n "$MAGIC_CMD"; then
  26150. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  26151. +$as_echo "$MAGIC_CMD" >&6; }
  26152. +else
  26153. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26154. +$as_echo "no" >&6; }
  26155. +fi
  26156. - case $GCC,$host_os in
  26157. - yes,cygwin* | yes,mingw* | yes,pw32*)
  26158. - library_names_spec='$libname.dll.a'
  26159. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  26160. - postinstall_cmds='base_file=`basename \${file}`~
  26161. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  26162. - dldir=$destdir/`dirname \$dlpath`~
  26163. - test -d \$dldir || mkdir -p \$dldir~
  26164. - $install_prog $dir/$dlname \$dldir/$dlname~
  26165. - chmod a+x \$dldir/$dlname'
  26166. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  26167. - dlpath=$dir/\$dldll~
  26168. - $rm \$dlpath'
  26169. - shlibpath_overrides_runpath=yes
  26170. - case $host_os in
  26171. - cygwin*)
  26172. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  26173. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26174. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  26175. - ;;
  26176. - mingw*)
  26177. - # MinGW DLLs use traditional 'lib' prefix
  26178. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26179. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26180. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  26181. - # It is most probably a Windows format PATH printed by
  26182. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  26183. - # path with ; separators, and with drive letters. We can handle the
  26184. - # drive letters (cygwin fileutils understands them), so leave them,
  26185. - # especially as we might pass files found there to a mingw objdump,
  26186. - # which wouldn't understand a cygwinified path. Ahh.
  26187. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  26188. - else
  26189. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26190. - fi
  26191. - ;;
  26192. - pw32*)
  26193. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  26194. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26195. - ;;
  26196. - esac
  26197. - ;;
  26198. - *)
  26199. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  26200. - ;;
  26201. - esac
  26202. - dynamic_linker='Win32 ld.exe'
  26203. - # FIXME: first we should search . and the directory the executable is in
  26204. - shlibpath_var=PATH
  26205. - ;;
  26206. -darwin* | rhapsody*)
  26207. - dynamic_linker="$host_os dyld"
  26208. - version_type=darwin
  26209. - need_lib_prefix=no
  26210. - need_version=no
  26211. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  26212. - soname_spec='${libname}${release}${major}$shared_ext'
  26213. - shlibpath_overrides_runpath=yes
  26214. - shlibpath_var=DYLD_LIBRARY_PATH
  26215. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  26216. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  26217. - if test "$GCC" = yes; then
  26218. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  26219. - else
  26220. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  26221. - fi
  26222. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  26223. - ;;
  26224. -dgux*)
  26225. - version_type=linux
  26226. - need_lib_prefix=no
  26227. - need_version=no
  26228. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  26229. - soname_spec='${libname}${release}${shared_ext}$major'
  26230. - shlibpath_var=LD_LIBRARY_PATH
  26231. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  26232. + if test -n "$ac_tool_prefix"; then
  26233. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  26234. +$as_echo_n "checking for file... " >&6; }
  26235. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  26236. + $as_echo_n "(cached) " >&6
  26237. +else
  26238. + case $MAGIC_CMD in
  26239. +[\\/*] | ?:[\\/]*)
  26240. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  26241. ;;
  26242. +*)
  26243. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  26244. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26245. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  26246. + for ac_dir in $ac_dummy; do
  26247. + IFS="$lt_save_ifs"
  26248. + test -z "$ac_dir" && ac_dir=.
  26249. + if test -f $ac_dir/file; then
  26250. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  26251. + if test -n "$file_magic_test_file"; then
  26252. + case $deplibs_check_method in
  26253. + "file_magic "*)
  26254. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  26255. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26256. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  26257. + $EGREP "$file_magic_regex" > /dev/null; then
  26258. + :
  26259. + else
  26260. + cat <<_LT_EOF 1>&2
  26261. -freebsd1*)
  26262. - dynamic_linker=no
  26263. - ;;
  26264. +*** Warning: the command libtool uses to detect shared libraries,
  26265. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  26266. +*** The result is that libtool may fail to recognize shared libraries
  26267. +*** as such. This will affect the creation of libtool libraries that
  26268. +*** depend on shared libraries, but programs linked with such libtool
  26269. +*** libraries will work regardless of this problem. Nevertheless, you
  26270. +*** may want to report the problem to your system manager and/or to
  26271. +*** bug-libtool@gnu.org
  26272. -kfreebsd*-gnu)
  26273. - version_type=linux
  26274. - need_lib_prefix=no
  26275. - need_version=no
  26276. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26277. - soname_spec='${libname}${release}${shared_ext}$major'
  26278. - shlibpath_var=LD_LIBRARY_PATH
  26279. - shlibpath_overrides_runpath=no
  26280. - hardcode_into_libs=yes
  26281. - dynamic_linker='GNU ld.so'
  26282. +_LT_EOF
  26283. + fi ;;
  26284. + esac
  26285. + fi
  26286. + break
  26287. + fi
  26288. + done
  26289. + IFS="$lt_save_ifs"
  26290. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  26291. ;;
  26292. +esac
  26293. +fi
  26294. +
  26295. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26296. +if test -n "$MAGIC_CMD"; then
  26297. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  26298. +$as_echo "$MAGIC_CMD" >&6; }
  26299. +else
  26300. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26301. +$as_echo "no" >&6; }
  26302. +fi
  26303. +
  26304. -freebsd* | dragonfly*)
  26305. - # DragonFly does not have aout. When/if they implement a new
  26306. - # versioning mechanism, adjust this.
  26307. - if test -x /usr/bin/objformat; then
  26308. - objformat=`/usr/bin/objformat`
  26309. else
  26310. - case $host_os in
  26311. - freebsd[123]*) objformat=aout ;;
  26312. - *) objformat=elf ;;
  26313. - esac
  26314. + MAGIC_CMD=:
  26315. fi
  26316. - version_type=freebsd-$objformat
  26317. - case $version_type in
  26318. - freebsd-elf*)
  26319. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26320. - need_version=no
  26321. - need_lib_prefix=no
  26322. - ;;
  26323. - freebsd-*)
  26324. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  26325. - need_version=yes
  26326. - ;;
  26327. - esac
  26328. - shlibpath_var=LD_LIBRARY_PATH
  26329. - case $host_os in
  26330. - freebsd2*)
  26331. - shlibpath_overrides_runpath=yes
  26332. - ;;
  26333. - freebsd3.[01]* | freebsdelf3.[01]*)
  26334. - shlibpath_overrides_runpath=yes
  26335. - hardcode_into_libs=yes
  26336. - ;;
  26337. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  26338. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  26339. - shlibpath_overrides_runpath=no
  26340. - hardcode_into_libs=yes
  26341. - ;;
  26342. - freebsd*) # from 4.6 on
  26343. - shlibpath_overrides_runpath=yes
  26344. - hardcode_into_libs=yes
  26345. - ;;
  26346. - esac
  26347. - ;;
  26348. -
  26349. -gnu*)
  26350. - version_type=linux
  26351. - need_lib_prefix=no
  26352. - need_version=no
  26353. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  26354. - soname_spec='${libname}${release}${shared_ext}$major'
  26355. - shlibpath_var=LD_LIBRARY_PATH
  26356. - hardcode_into_libs=yes
  26357. - ;;
  26358. +fi
  26359. -hpux9* | hpux10* | hpux11*)
  26360. - # Give a soname corresponding to the major version so that dld.sl refuses to
  26361. - # link against other versions.
  26362. - version_type=sunos
  26363. - need_lib_prefix=no
  26364. - need_version=no
  26365. - case $host_cpu in
  26366. - ia64*)
  26367. - shrext_cmds='.so'
  26368. - hardcode_into_libs=yes
  26369. - dynamic_linker="$host_os dld.so"
  26370. - shlibpath_var=LD_LIBRARY_PATH
  26371. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26372. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26373. - soname_spec='${libname}${release}${shared_ext}$major'
  26374. - if test "X$HPUX_IA64_MODE" = X32; then
  26375. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  26376. - else
  26377. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  26378. - fi
  26379. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26380. - ;;
  26381. - hppa*64*)
  26382. - shrext_cmds='.sl'
  26383. - hardcode_into_libs=yes
  26384. - dynamic_linker="$host_os dld.sl"
  26385. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  26386. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26387. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26388. - soname_spec='${libname}${release}${shared_ext}$major'
  26389. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  26390. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26391. - ;;
  26392. - *)
  26393. - shrext_cmds='.sl'
  26394. - dynamic_linker="$host_os dld.sl"
  26395. - shlibpath_var=SHLIB_PATH
  26396. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  26397. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26398. - soname_spec='${libname}${release}${shared_ext}$major'
  26399. - ;;
  26400. - esac
  26401. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  26402. - postinstall_cmds='chmod 555 $lib'
  26403. + fi
  26404. ;;
  26405. +esac
  26406. -interix3*)
  26407. - version_type=linux
  26408. - need_lib_prefix=no
  26409. - need_version=no
  26410. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26411. - soname_spec='${libname}${release}${shared_ext}$major'
  26412. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  26413. - shlibpath_var=LD_LIBRARY_PATH
  26414. - shlibpath_overrides_runpath=no
  26415. - hardcode_into_libs=yes
  26416. - ;;
  26417. +# Use C for the default configuration in the libtool script
  26418. -irix5* | irix6* | nonstopux*)
  26419. - case $host_os in
  26420. - nonstopux*) version_type=nonstopux ;;
  26421. - *)
  26422. - if test "$lt_cv_prog_gnu_ld" = yes; then
  26423. - version_type=linux
  26424. - else
  26425. - version_type=irix
  26426. - fi ;;
  26427. - esac
  26428. - need_lib_prefix=no
  26429. - need_version=no
  26430. - soname_spec='${libname}${release}${shared_ext}$major'
  26431. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  26432. - case $host_os in
  26433. - irix5* | nonstopux*)
  26434. - libsuff= shlibsuff=
  26435. - ;;
  26436. - *)
  26437. - case $LD in # libtool.m4 will add one of these switches to LD
  26438. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  26439. - libsuff= shlibsuff= libmagic=32-bit;;
  26440. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  26441. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  26442. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  26443. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  26444. - *) libsuff= shlibsuff= libmagic=never-match;;
  26445. - esac
  26446. - ;;
  26447. - esac
  26448. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  26449. - shlibpath_overrides_runpath=no
  26450. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  26451. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  26452. - hardcode_into_libs=yes
  26453. - ;;
  26454. +lt_save_CC="$CC"
  26455. +ac_ext=c
  26456. +ac_cpp='$CPP $CPPFLAGS'
  26457. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26458. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26459. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26460. -# No shared lib support for Linux oldld, aout, or coff.
  26461. -linux*oldld* | linux*aout* | linux*coff*)
  26462. - dynamic_linker=no
  26463. - ;;
  26464. -# This must be Linux ELF.
  26465. -linux*)
  26466. - version_type=linux
  26467. - need_lib_prefix=no
  26468. - need_version=no
  26469. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26470. - soname_spec='${libname}${release}${shared_ext}$major'
  26471. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  26472. - shlibpath_var=LD_LIBRARY_PATH
  26473. - shlibpath_overrides_runpath=no
  26474. - # This implies no fast_install, which is unacceptable.
  26475. - # Some rework will be needed to allow for fast_install
  26476. - # before this can be enabled.
  26477. - hardcode_into_libs=yes
  26478. +# Source file extension for C test sources.
  26479. +ac_ext=c
  26480. - # Append ld.so.conf contents to the search path
  26481. - if test -f /etc/ld.so.conf; then
  26482. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  26483. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  26484. - fi
  26485. +# Object file extension for compiled C test sources.
  26486. +objext=o
  26487. +objext=$objext
  26488. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  26489. - # powerpc, because MkLinux only supported shared libraries with the
  26490. - # GNU dynamic linker. Since this was broken with cross compilers,
  26491. - # most powerpc-linux boxes support dynamic linking these days and
  26492. - # people can always --disable-shared, the test was removed, and we
  26493. - # assume the GNU/Linux dynamic linker is in use.
  26494. - dynamic_linker='GNU/Linux ld.so'
  26495. - ;;
  26496. +# Code to be used in simple compile tests
  26497. +lt_simple_compile_test_code="int some_variable = 0;"
  26498. -knetbsd*-gnu)
  26499. - version_type=linux
  26500. - need_lib_prefix=no
  26501. - need_version=no
  26502. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26503. - soname_spec='${libname}${release}${shared_ext}$major'
  26504. - shlibpath_var=LD_LIBRARY_PATH
  26505. - shlibpath_overrides_runpath=no
  26506. - hardcode_into_libs=yes
  26507. - dynamic_linker='GNU ld.so'
  26508. - ;;
  26509. +# Code to be used in simple link tests
  26510. +lt_simple_link_test_code='int main(){return(0);}'
  26511. -netbsd*)
  26512. - version_type=sunos
  26513. - need_lib_prefix=no
  26514. - need_version=no
  26515. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26516. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26517. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26518. - dynamic_linker='NetBSD (a.out) ld.so'
  26519. - else
  26520. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26521. - soname_spec='${libname}${release}${shared_ext}$major'
  26522. - dynamic_linker='NetBSD ld.elf_so'
  26523. - fi
  26524. - shlibpath_var=LD_LIBRARY_PATH
  26525. - shlibpath_overrides_runpath=yes
  26526. - hardcode_into_libs=yes
  26527. - ;;
  26528. -newsos6)
  26529. - version_type=linux
  26530. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26531. - shlibpath_var=LD_LIBRARY_PATH
  26532. - shlibpath_overrides_runpath=yes
  26533. - ;;
  26534. -nto-qnx*)
  26535. - version_type=linux
  26536. - need_lib_prefix=no
  26537. - need_version=no
  26538. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26539. - soname_spec='${libname}${release}${shared_ext}$major'
  26540. - shlibpath_var=LD_LIBRARY_PATH
  26541. - shlibpath_overrides_runpath=yes
  26542. - ;;
  26543. -openbsd*)
  26544. - version_type=sunos
  26545. - sys_lib_dlsearch_path_spec="/usr/lib"
  26546. - need_lib_prefix=no
  26547. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  26548. - case $host_os in
  26549. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  26550. - *) need_version=no ;;
  26551. - esac
  26552. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26553. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26554. - shlibpath_var=LD_LIBRARY_PATH
  26555. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26556. - case $host_os in
  26557. - openbsd2.[89] | openbsd2.[89].*)
  26558. - shlibpath_overrides_runpath=no
  26559. - ;;
  26560. - *)
  26561. - shlibpath_overrides_runpath=yes
  26562. - ;;
  26563. - esac
  26564. - else
  26565. - shlibpath_overrides_runpath=yes
  26566. - fi
  26567. - ;;
  26568. -os2*)
  26569. - libname_spec='$name'
  26570. - shrext_cmds=".dll"
  26571. - need_lib_prefix=no
  26572. - library_names_spec='$libname${shared_ext} $libname.a'
  26573. - dynamic_linker='OS/2 ld.exe'
  26574. - shlibpath_var=LIBPATH
  26575. - ;;
  26576. -osf3* | osf4* | osf5*)
  26577. - version_type=osf
  26578. - need_lib_prefix=no
  26579. - need_version=no
  26580. - soname_spec='${libname}${release}${shared_ext}$major'
  26581. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26582. - shlibpath_var=LD_LIBRARY_PATH
  26583. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  26584. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  26585. - ;;
  26586. -solaris*)
  26587. - version_type=linux
  26588. - need_lib_prefix=no
  26589. - need_version=no
  26590. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26591. - soname_spec='${libname}${release}${shared_ext}$major'
  26592. - shlibpath_var=LD_LIBRARY_PATH
  26593. - shlibpath_overrides_runpath=yes
  26594. - hardcode_into_libs=yes
  26595. - # ldd complains unless libraries are executable
  26596. - postinstall_cmds='chmod +x $lib'
  26597. - ;;
  26598. +# If no C compiler was specified, use CC.
  26599. +LTCC=${LTCC-"$CC"}
  26600. -sunos4*)
  26601. - version_type=sunos
  26602. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26603. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  26604. - shlibpath_var=LD_LIBRARY_PATH
  26605. - shlibpath_overrides_runpath=yes
  26606. - if test "$with_gnu_ld" = yes; then
  26607. - need_lib_prefix=no
  26608. - fi
  26609. - need_version=yes
  26610. - ;;
  26611. +# If no C compiler flags were specified, use CFLAGS.
  26612. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26613. -sysv4 | sysv4.3*)
  26614. - version_type=linux
  26615. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26616. - soname_spec='${libname}${release}${shared_ext}$major'
  26617. - shlibpath_var=LD_LIBRARY_PATH
  26618. - case $host_vendor in
  26619. - sni)
  26620. - shlibpath_overrides_runpath=no
  26621. - need_lib_prefix=no
  26622. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  26623. - runpath_var=LD_RUN_PATH
  26624. - ;;
  26625. - siemens)
  26626. - need_lib_prefix=no
  26627. - ;;
  26628. - motorola)
  26629. - need_lib_prefix=no
  26630. - need_version=no
  26631. - shlibpath_overrides_runpath=no
  26632. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  26633. - ;;
  26634. - esac
  26635. - ;;
  26636. +# Allow CC to be a program name with arguments.
  26637. +compiler=$CC
  26638. -sysv4*MP*)
  26639. - if test -d /usr/nec ;then
  26640. - version_type=linux
  26641. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  26642. - soname_spec='$libname${shared_ext}.$major'
  26643. - shlibpath_var=LD_LIBRARY_PATH
  26644. - fi
  26645. - ;;
  26646. +# Save the default compiler, since it gets overwritten when the other
  26647. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  26648. +compiler_DEFAULT=$CC
  26649. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  26650. - version_type=freebsd-elf
  26651. - need_lib_prefix=no
  26652. - need_version=no
  26653. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26654. - soname_spec='${libname}${release}${shared_ext}$major'
  26655. - shlibpath_var=LD_LIBRARY_PATH
  26656. - hardcode_into_libs=yes
  26657. - if test "$with_gnu_ld" = yes; then
  26658. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  26659. - shlibpath_overrides_runpath=no
  26660. - else
  26661. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  26662. - shlibpath_overrides_runpath=yes
  26663. - case $host_os in
  26664. - sco3.2v5*)
  26665. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  26666. - ;;
  26667. - esac
  26668. - fi
  26669. - sys_lib_dlsearch_path_spec='/usr/lib'
  26670. - ;;
  26671. +# save warnings/boilerplate of simple test code
  26672. +ac_outfile=conftest.$ac_objext
  26673. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  26674. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26675. +_lt_compiler_boilerplate=`cat conftest.err`
  26676. +$RM conftest*
  26677. -uts4*)
  26678. - version_type=linux
  26679. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26680. - soname_spec='${libname}${release}${shared_ext}$major'
  26681. - shlibpath_var=LD_LIBRARY_PATH
  26682. - ;;
  26683. +ac_outfile=conftest.$ac_objext
  26684. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  26685. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26686. +_lt_linker_boilerplate=`cat conftest.err`
  26687. +$RM -r conftest*
  26688. -*)
  26689. - dynamic_linker=no
  26690. - ;;
  26691. -esac
  26692. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  26693. -echo "${ECHO_T}$dynamic_linker" >&6; }
  26694. -test "$dynamic_linker" = no && can_build_shared=no
  26695. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  26696. -if test "$GCC" = yes; then
  26697. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  26698. -fi
  26699. +if test -n "$compiler"; then
  26700. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  26701. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  26702. -hardcode_action=
  26703. -if test -n "$hardcode_libdir_flag_spec" || \
  26704. - test -n "$runpath_var" || \
  26705. - test "X$hardcode_automatic" = "Xyes" ; then
  26706. +lt_prog_compiler_no_builtin_flag=
  26707. - # We can hardcode non-existant directories.
  26708. - if test "$hardcode_direct" != no &&
  26709. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  26710. - # have to relink, otherwise we might link with an installed library
  26711. - # when we should be linking with a yet-to-be-installed one
  26712. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  26713. - test "$hardcode_minus_L" != no; then
  26714. - # Linking always hardcodes the temporary library directory.
  26715. - hardcode_action=relink
  26716. - else
  26717. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  26718. - hardcode_action=immediate
  26719. - fi
  26720. +if test "$GCC" = yes; then
  26721. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  26722. +
  26723. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  26724. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  26725. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  26726. + $as_echo_n "(cached) " >&6
  26727. else
  26728. - # We cannot hardcode anything, or else we can only hardcode existing
  26729. - # directories.
  26730. - hardcode_action=unsupported
  26731. -fi
  26732. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  26733. -echo "${ECHO_T}$hardcode_action" >&6; }
  26734. + lt_cv_prog_compiler_rtti_exceptions=no
  26735. + ac_outfile=conftest.$ac_objext
  26736. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26737. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  26738. + # Insert the option either (1) after the last *FLAGS variable, or
  26739. + # (2) before a word containing "conftest.", or (3) at the end.
  26740. + # Note that $ac_compile itself does not contain backslashes and begins
  26741. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  26742. + # The option is referenced via a variable to avoid confusing sed.
  26743. + lt_compile=`echo "$ac_compile" | $SED \
  26744. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26745. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26746. + -e 's:$: $lt_compiler_flag:'`
  26747. + (eval echo "\"\$as_me:7335: $lt_compile\"" >&5)
  26748. + (eval "$lt_compile" 2>conftest.err)
  26749. + ac_status=$?
  26750. + cat conftest.err >&5
  26751. + echo "$as_me:7339: \$? = $ac_status" >&5
  26752. + if (exit $ac_status) && test -s "$ac_outfile"; then
  26753. + # The compiler can only warn and ignore the option if not recognized
  26754. + # So say no if there are warnings other than the usual output.
  26755. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26756. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26757. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26758. + lt_cv_prog_compiler_rtti_exceptions=yes
  26759. + fi
  26760. + fi
  26761. + $RM conftest*
  26762. -if test "$hardcode_action" = relink; then
  26763. - # Fast installation is not supported
  26764. - enable_fast_install=no
  26765. -elif test "$shlibpath_overrides_runpath" = yes ||
  26766. - test "$enable_shared" = no; then
  26767. - # Fast installation is not necessary
  26768. - enable_fast_install=needless
  26769. fi
  26770. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  26771. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  26772. -striplib=
  26773. -old_striplib=
  26774. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  26775. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  26776. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  26777. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  26778. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  26779. - { echo "$as_me:$LINENO: result: yes" >&5
  26780. -echo "${ECHO_T}yes" >&6; }
  26781. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  26782. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  26783. else
  26784. -# FIXME - insert some real tests, host_os isn't really good enough
  26785. - case $host_os in
  26786. - darwin*)
  26787. - if test -n "$STRIP" ; then
  26788. - striplib="$STRIP -x"
  26789. - { echo "$as_me:$LINENO: result: yes" >&5
  26790. -echo "${ECHO_T}yes" >&6; }
  26791. - else
  26792. - { echo "$as_me:$LINENO: result: no" >&5
  26793. -echo "${ECHO_T}no" >&6; }
  26794. -fi
  26795. - ;;
  26796. - *)
  26797. - { echo "$as_me:$LINENO: result: no" >&5
  26798. -echo "${ECHO_T}no" >&6; }
  26799. - ;;
  26800. - esac
  26801. + :
  26802. fi
  26803. -if test "x$enable_dlopen" != xyes; then
  26804. - enable_dlopen=unknown
  26805. - enable_dlopen_self=unknown
  26806. - enable_dlopen_self_static=unknown
  26807. -else
  26808. - lt_cv_dlopen=no
  26809. - lt_cv_dlopen_libs=
  26810. -
  26811. - case $host_os in
  26812. - beos*)
  26813. - lt_cv_dlopen="load_add_on"
  26814. - lt_cv_dlopen_libs=
  26815. - lt_cv_dlopen_self=yes
  26816. - ;;
  26817. +fi
  26818. - mingw* | pw32*)
  26819. - lt_cv_dlopen="LoadLibrary"
  26820. - lt_cv_dlopen_libs=
  26821. - ;;
  26822. - cygwin*)
  26823. - lt_cv_dlopen="dlopen"
  26824. - lt_cv_dlopen_libs=
  26825. - ;;
  26826. - darwin*)
  26827. - # if libdl is installed we need to link against it
  26828. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  26829. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  26830. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  26831. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26832. -else
  26833. - ac_check_lib_save_LIBS=$LIBS
  26834. -LIBS="-ldl $LIBS"
  26835. -cat >conftest.$ac_ext <<_ACEOF
  26836. -/* confdefs.h. */
  26837. -_ACEOF
  26838. -cat confdefs.h >>conftest.$ac_ext
  26839. -cat >>conftest.$ac_ext <<_ACEOF
  26840. -/* end confdefs.h. */
  26841. -/* Override any GCC internal prototype to avoid an error.
  26842. - Use char because int might match the return type of a GCC
  26843. - builtin and then its argument prototype would still apply. */
  26844. -#ifdef __cplusplus
  26845. -extern "C"
  26846. -#endif
  26847. -char dlopen ();
  26848. -int
  26849. -main ()
  26850. -{
  26851. -return dlopen ();
  26852. - ;
  26853. - return 0;
  26854. -}
  26855. -_ACEOF
  26856. -rm -f conftest.$ac_objext conftest$ac_exeext
  26857. -if { (ac_try="$ac_link"
  26858. -case "(($ac_try" in
  26859. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26860. - *) ac_try_echo=$ac_try;;
  26861. -esac
  26862. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26863. - (eval "$ac_link") 2>conftest.er1
  26864. - ac_status=$?
  26865. - grep -v '^ *+' conftest.er1 >conftest.err
  26866. - rm -f conftest.er1
  26867. - cat conftest.err >&5
  26868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26869. - (exit $ac_status); } &&
  26870. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26871. - { (case "(($ac_try" in
  26872. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26873. - *) ac_try_echo=$ac_try;;
  26874. -esac
  26875. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26876. - (eval "$ac_try") 2>&5
  26877. - ac_status=$?
  26878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26879. - (exit $ac_status); }; } &&
  26880. - { ac_try='test -s conftest$ac_exeext'
  26881. - { (case "(($ac_try" in
  26882. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26883. - *) ac_try_echo=$ac_try;;
  26884. -esac
  26885. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26886. - (eval "$ac_try") 2>&5
  26887. - ac_status=$?
  26888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26889. - (exit $ac_status); }; }; then
  26890. - ac_cv_lib_dl_dlopen=yes
  26891. -else
  26892. - echo "$as_me: failed program was:" >&5
  26893. -sed 's/^/| /' conftest.$ac_ext >&5
  26894. - ac_cv_lib_dl_dlopen=no
  26895. -fi
  26896. -rm -f core conftest.err conftest.$ac_objext \
  26897. - conftest$ac_exeext conftest.$ac_ext
  26898. -LIBS=$ac_check_lib_save_LIBS
  26899. -fi
  26900. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  26901. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  26902. -if test $ac_cv_lib_dl_dlopen = yes; then
  26903. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  26904. -else
  26905. + lt_prog_compiler_wl=
  26906. +lt_prog_compiler_pic=
  26907. +lt_prog_compiler_static=
  26908. - lt_cv_dlopen="dyld"
  26909. - lt_cv_dlopen_libs=
  26910. - lt_cv_dlopen_self=yes
  26911. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  26912. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  26913. -fi
  26914. + if test "$GCC" = yes; then
  26915. + lt_prog_compiler_wl='-Wl,'
  26916. + lt_prog_compiler_static='-static'
  26917. - ;;
  26918. + case $host_os in
  26919. + aix*)
  26920. + # All AIX code is PIC.
  26921. + if test "$host_cpu" = ia64; then
  26922. + # AIX 5 now supports IA64 processor
  26923. + lt_prog_compiler_static='-Bstatic'
  26924. + fi
  26925. + ;;
  26926. - *)
  26927. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  26928. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  26929. -if test "${ac_cv_func_shl_load+set}" = set; then
  26930. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26931. -else
  26932. - cat >conftest.$ac_ext <<_ACEOF
  26933. -/* confdefs.h. */
  26934. -_ACEOF
  26935. -cat confdefs.h >>conftest.$ac_ext
  26936. -cat >>conftest.$ac_ext <<_ACEOF
  26937. -/* end confdefs.h. */
  26938. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  26939. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26940. -#define shl_load innocuous_shl_load
  26941. + amigaos*)
  26942. + case $host_cpu in
  26943. + powerpc)
  26944. + # see comment about AmigaOS4 .so support
  26945. + lt_prog_compiler_pic='-fPIC'
  26946. + ;;
  26947. + m68k)
  26948. + # FIXME: we need at least 68020 code to build shared libraries, but
  26949. + # adding the `-m68020' flag to GCC prevents building anything better,
  26950. + # like `-m68040'.
  26951. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  26952. + ;;
  26953. + esac
  26954. + ;;
  26955. -/* System header to define __stub macros and hopefully few prototypes,
  26956. - which can conflict with char shl_load (); below.
  26957. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26958. - <limits.h> exists even on freestanding compilers. */
  26959. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26960. + # PIC is the default for these OSes.
  26961. + ;;
  26962. -#ifdef __STDC__
  26963. -# include <limits.h>
  26964. -#else
  26965. -# include <assert.h>
  26966. -#endif
  26967. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  26968. + # This hack is so that the source file can tell whether it is being
  26969. + # built for inclusion in a dll (and should export symbols for example).
  26970. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  26971. + # (--disable-auto-import) libraries
  26972. + lt_prog_compiler_pic='-DDLL_EXPORT'
  26973. + ;;
  26974. -#undef shl_load
  26975. + darwin* | rhapsody*)
  26976. + # PIC is the default on this platform
  26977. + # Common symbols not allowed in MH_DYLIB files
  26978. + lt_prog_compiler_pic='-fno-common'
  26979. + ;;
  26980. -/* Override any GCC internal prototype to avoid an error.
  26981. - Use char because int might match the return type of a GCC
  26982. - builtin and then its argument prototype would still apply. */
  26983. -#ifdef __cplusplus
  26984. -extern "C"
  26985. -#endif
  26986. -char shl_load ();
  26987. -/* The GNU C library defines this for functions which it implements
  26988. - to always fail with ENOSYS. Some functions are actually named
  26989. - something starting with __ and the normal name is an alias. */
  26990. -#if defined __stub_shl_load || defined __stub___shl_load
  26991. -choke me
  26992. -#endif
  26993. -
  26994. -int
  26995. -main ()
  26996. -{
  26997. -return shl_load ();
  26998. - ;
  26999. - return 0;
  27000. -}
  27001. -_ACEOF
  27002. -rm -f conftest.$ac_objext conftest$ac_exeext
  27003. -if { (ac_try="$ac_link"
  27004. -case "(($ac_try" in
  27005. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27006. - *) ac_try_echo=$ac_try;;
  27007. -esac
  27008. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27009. - (eval "$ac_link") 2>conftest.er1
  27010. - ac_status=$?
  27011. - grep -v '^ *+' conftest.er1 >conftest.err
  27012. - rm -f conftest.er1
  27013. - cat conftest.err >&5
  27014. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27015. - (exit $ac_status); } &&
  27016. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27017. - { (case "(($ac_try" in
  27018. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27019. - *) ac_try_echo=$ac_try;;
  27020. -esac
  27021. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27022. - (eval "$ac_try") 2>&5
  27023. - ac_status=$?
  27024. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27025. - (exit $ac_status); }; } &&
  27026. - { ac_try='test -s conftest$ac_exeext'
  27027. - { (case "(($ac_try" in
  27028. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27029. - *) ac_try_echo=$ac_try;;
  27030. -esac
  27031. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27032. - (eval "$ac_try") 2>&5
  27033. - ac_status=$?
  27034. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27035. - (exit $ac_status); }; }; then
  27036. - ac_cv_func_shl_load=yes
  27037. -else
  27038. - echo "$as_me: failed program was:" >&5
  27039. -sed 's/^/| /' conftest.$ac_ext >&5
  27040. -
  27041. - ac_cv_func_shl_load=no
  27042. -fi
  27043. -
  27044. -rm -f core conftest.err conftest.$ac_objext \
  27045. - conftest$ac_exeext conftest.$ac_ext
  27046. -fi
  27047. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  27048. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  27049. -if test $ac_cv_func_shl_load = yes; then
  27050. - lt_cv_dlopen="shl_load"
  27051. -else
  27052. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  27053. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  27054. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  27055. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27056. -else
  27057. - ac_check_lib_save_LIBS=$LIBS
  27058. -LIBS="-ldld $LIBS"
  27059. -cat >conftest.$ac_ext <<_ACEOF
  27060. -/* confdefs.h. */
  27061. -_ACEOF
  27062. -cat confdefs.h >>conftest.$ac_ext
  27063. -cat >>conftest.$ac_ext <<_ACEOF
  27064. -/* end confdefs.h. */
  27065. -
  27066. -/* Override any GCC internal prototype to avoid an error.
  27067. - Use char because int might match the return type of a GCC
  27068. - builtin and then its argument prototype would still apply. */
  27069. -#ifdef __cplusplus
  27070. -extern "C"
  27071. -#endif
  27072. -char shl_load ();
  27073. -int
  27074. -main ()
  27075. -{
  27076. -return shl_load ();
  27077. - ;
  27078. - return 0;
  27079. -}
  27080. -_ACEOF
  27081. -rm -f conftest.$ac_objext conftest$ac_exeext
  27082. -if { (ac_try="$ac_link"
  27083. -case "(($ac_try" in
  27084. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27085. - *) ac_try_echo=$ac_try;;
  27086. -esac
  27087. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27088. - (eval "$ac_link") 2>conftest.er1
  27089. - ac_status=$?
  27090. - grep -v '^ *+' conftest.er1 >conftest.err
  27091. - rm -f conftest.er1
  27092. - cat conftest.err >&5
  27093. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27094. - (exit $ac_status); } &&
  27095. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27096. - { (case "(($ac_try" in
  27097. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27098. - *) ac_try_echo=$ac_try;;
  27099. -esac
  27100. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27101. - (eval "$ac_try") 2>&5
  27102. - ac_status=$?
  27103. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27104. - (exit $ac_status); }; } &&
  27105. - { ac_try='test -s conftest$ac_exeext'
  27106. - { (case "(($ac_try" in
  27107. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27108. - *) ac_try_echo=$ac_try;;
  27109. -esac
  27110. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27111. - (eval "$ac_try") 2>&5
  27112. - ac_status=$?
  27113. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27114. - (exit $ac_status); }; }; then
  27115. - ac_cv_lib_dld_shl_load=yes
  27116. -else
  27117. - echo "$as_me: failed program was:" >&5
  27118. -sed 's/^/| /' conftest.$ac_ext >&5
  27119. -
  27120. - ac_cv_lib_dld_shl_load=no
  27121. -fi
  27122. -
  27123. -rm -f core conftest.err conftest.$ac_objext \
  27124. - conftest$ac_exeext conftest.$ac_ext
  27125. -LIBS=$ac_check_lib_save_LIBS
  27126. -fi
  27127. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  27128. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  27129. -if test $ac_cv_lib_dld_shl_load = yes; then
  27130. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  27131. -else
  27132. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  27133. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  27134. -if test "${ac_cv_func_dlopen+set}" = set; then
  27135. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27136. -else
  27137. - cat >conftest.$ac_ext <<_ACEOF
  27138. -/* confdefs.h. */
  27139. -_ACEOF
  27140. -cat confdefs.h >>conftest.$ac_ext
  27141. -cat >>conftest.$ac_ext <<_ACEOF
  27142. -/* end confdefs.h. */
  27143. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  27144. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27145. -#define dlopen innocuous_dlopen
  27146. -
  27147. -/* System header to define __stub macros and hopefully few prototypes,
  27148. - which can conflict with char dlopen (); below.
  27149. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27150. - <limits.h> exists even on freestanding compilers. */
  27151. -
  27152. -#ifdef __STDC__
  27153. -# include <limits.h>
  27154. -#else
  27155. -# include <assert.h>
  27156. -#endif
  27157. -
  27158. -#undef dlopen
  27159. -
  27160. -/* Override any GCC internal prototype to avoid an error.
  27161. - Use char because int might match the return type of a GCC
  27162. - builtin and then its argument prototype would still apply. */
  27163. -#ifdef __cplusplus
  27164. -extern "C"
  27165. -#endif
  27166. -char dlopen ();
  27167. -/* The GNU C library defines this for functions which it implements
  27168. - to always fail with ENOSYS. Some functions are actually named
  27169. - something starting with __ and the normal name is an alias. */
  27170. -#if defined __stub_dlopen || defined __stub___dlopen
  27171. -choke me
  27172. -#endif
  27173. -
  27174. -int
  27175. -main ()
  27176. -{
  27177. -return dlopen ();
  27178. - ;
  27179. - return 0;
  27180. -}
  27181. -_ACEOF
  27182. -rm -f conftest.$ac_objext conftest$ac_exeext
  27183. -if { (ac_try="$ac_link"
  27184. -case "(($ac_try" in
  27185. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27186. - *) ac_try_echo=$ac_try;;
  27187. -esac
  27188. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27189. - (eval "$ac_link") 2>conftest.er1
  27190. - ac_status=$?
  27191. - grep -v '^ *+' conftest.er1 >conftest.err
  27192. - rm -f conftest.er1
  27193. - cat conftest.err >&5
  27194. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27195. - (exit $ac_status); } &&
  27196. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27197. - { (case "(($ac_try" in
  27198. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27199. - *) ac_try_echo=$ac_try;;
  27200. -esac
  27201. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27202. - (eval "$ac_try") 2>&5
  27203. - ac_status=$?
  27204. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27205. - (exit $ac_status); }; } &&
  27206. - { ac_try='test -s conftest$ac_exeext'
  27207. - { (case "(($ac_try" in
  27208. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27209. - *) ac_try_echo=$ac_try;;
  27210. -esac
  27211. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27212. - (eval "$ac_try") 2>&5
  27213. - ac_status=$?
  27214. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27215. - (exit $ac_status); }; }; then
  27216. - ac_cv_func_dlopen=yes
  27217. -else
  27218. - echo "$as_me: failed program was:" >&5
  27219. -sed 's/^/| /' conftest.$ac_ext >&5
  27220. -
  27221. - ac_cv_func_dlopen=no
  27222. -fi
  27223. -
  27224. -rm -f core conftest.err conftest.$ac_objext \
  27225. - conftest$ac_exeext conftest.$ac_ext
  27226. -fi
  27227. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  27228. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  27229. -if test $ac_cv_func_dlopen = yes; then
  27230. - lt_cv_dlopen="dlopen"
  27231. -else
  27232. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  27233. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  27234. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  27235. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27236. -else
  27237. - ac_check_lib_save_LIBS=$LIBS
  27238. -LIBS="-ldl $LIBS"
  27239. -cat >conftest.$ac_ext <<_ACEOF
  27240. -/* confdefs.h. */
  27241. -_ACEOF
  27242. -cat confdefs.h >>conftest.$ac_ext
  27243. -cat >>conftest.$ac_ext <<_ACEOF
  27244. -/* end confdefs.h. */
  27245. -
  27246. -/* Override any GCC internal prototype to avoid an error.
  27247. - Use char because int might match the return type of a GCC
  27248. - builtin and then its argument prototype would still apply. */
  27249. -#ifdef __cplusplus
  27250. -extern "C"
  27251. -#endif
  27252. -char dlopen ();
  27253. -int
  27254. -main ()
  27255. -{
  27256. -return dlopen ();
  27257. - ;
  27258. - return 0;
  27259. -}
  27260. -_ACEOF
  27261. -rm -f conftest.$ac_objext conftest$ac_exeext
  27262. -if { (ac_try="$ac_link"
  27263. -case "(($ac_try" in
  27264. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27265. - *) ac_try_echo=$ac_try;;
  27266. -esac
  27267. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27268. - (eval "$ac_link") 2>conftest.er1
  27269. - ac_status=$?
  27270. - grep -v '^ *+' conftest.er1 >conftest.err
  27271. - rm -f conftest.er1
  27272. - cat conftest.err >&5
  27273. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27274. - (exit $ac_status); } &&
  27275. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27276. - { (case "(($ac_try" in
  27277. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27278. - *) ac_try_echo=$ac_try;;
  27279. -esac
  27280. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27281. - (eval "$ac_try") 2>&5
  27282. - ac_status=$?
  27283. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27284. - (exit $ac_status); }; } &&
  27285. - { ac_try='test -s conftest$ac_exeext'
  27286. - { (case "(($ac_try" in
  27287. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27288. - *) ac_try_echo=$ac_try;;
  27289. -esac
  27290. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27291. - (eval "$ac_try") 2>&5
  27292. - ac_status=$?
  27293. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27294. - (exit $ac_status); }; }; then
  27295. - ac_cv_lib_dl_dlopen=yes
  27296. -else
  27297. - echo "$as_me: failed program was:" >&5
  27298. -sed 's/^/| /' conftest.$ac_ext >&5
  27299. -
  27300. - ac_cv_lib_dl_dlopen=no
  27301. -fi
  27302. -
  27303. -rm -f core conftest.err conftest.$ac_objext \
  27304. - conftest$ac_exeext conftest.$ac_ext
  27305. -LIBS=$ac_check_lib_save_LIBS
  27306. -fi
  27307. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  27308. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  27309. -if test $ac_cv_lib_dl_dlopen = yes; then
  27310. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  27311. -else
  27312. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  27313. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  27314. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  27315. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27316. -else
  27317. - ac_check_lib_save_LIBS=$LIBS
  27318. -LIBS="-lsvld $LIBS"
  27319. -cat >conftest.$ac_ext <<_ACEOF
  27320. -/* confdefs.h. */
  27321. -_ACEOF
  27322. -cat confdefs.h >>conftest.$ac_ext
  27323. -cat >>conftest.$ac_ext <<_ACEOF
  27324. -/* end confdefs.h. */
  27325. -
  27326. -/* Override any GCC internal prototype to avoid an error.
  27327. - Use char because int might match the return type of a GCC
  27328. - builtin and then its argument prototype would still apply. */
  27329. -#ifdef __cplusplus
  27330. -extern "C"
  27331. -#endif
  27332. -char dlopen ();
  27333. -int
  27334. -main ()
  27335. -{
  27336. -return dlopen ();
  27337. - ;
  27338. - return 0;
  27339. -}
  27340. -_ACEOF
  27341. -rm -f conftest.$ac_objext conftest$ac_exeext
  27342. -if { (ac_try="$ac_link"
  27343. -case "(($ac_try" in
  27344. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27345. - *) ac_try_echo=$ac_try;;
  27346. -esac
  27347. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27348. - (eval "$ac_link") 2>conftest.er1
  27349. - ac_status=$?
  27350. - grep -v '^ *+' conftest.er1 >conftest.err
  27351. - rm -f conftest.er1
  27352. - cat conftest.err >&5
  27353. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27354. - (exit $ac_status); } &&
  27355. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27356. - { (case "(($ac_try" in
  27357. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27358. - *) ac_try_echo=$ac_try;;
  27359. -esac
  27360. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27361. - (eval "$ac_try") 2>&5
  27362. - ac_status=$?
  27363. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27364. - (exit $ac_status); }; } &&
  27365. - { ac_try='test -s conftest$ac_exeext'
  27366. - { (case "(($ac_try" in
  27367. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27368. - *) ac_try_echo=$ac_try;;
  27369. -esac
  27370. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27371. - (eval "$ac_try") 2>&5
  27372. - ac_status=$?
  27373. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27374. - (exit $ac_status); }; }; then
  27375. - ac_cv_lib_svld_dlopen=yes
  27376. -else
  27377. - echo "$as_me: failed program was:" >&5
  27378. -sed 's/^/| /' conftest.$ac_ext >&5
  27379. -
  27380. - ac_cv_lib_svld_dlopen=no
  27381. -fi
  27382. -
  27383. -rm -f core conftest.err conftest.$ac_objext \
  27384. - conftest$ac_exeext conftest.$ac_ext
  27385. -LIBS=$ac_check_lib_save_LIBS
  27386. -fi
  27387. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  27388. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  27389. -if test $ac_cv_lib_svld_dlopen = yes; then
  27390. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  27391. -else
  27392. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  27393. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  27394. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  27395. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27396. -else
  27397. - ac_check_lib_save_LIBS=$LIBS
  27398. -LIBS="-ldld $LIBS"
  27399. -cat >conftest.$ac_ext <<_ACEOF
  27400. -/* confdefs.h. */
  27401. -_ACEOF
  27402. -cat confdefs.h >>conftest.$ac_ext
  27403. -cat >>conftest.$ac_ext <<_ACEOF
  27404. -/* end confdefs.h. */
  27405. -
  27406. -/* Override any GCC internal prototype to avoid an error.
  27407. - Use char because int might match the return type of a GCC
  27408. - builtin and then its argument prototype would still apply. */
  27409. -#ifdef __cplusplus
  27410. -extern "C"
  27411. -#endif
  27412. -char dld_link ();
  27413. -int
  27414. -main ()
  27415. -{
  27416. -return dld_link ();
  27417. - ;
  27418. - return 0;
  27419. -}
  27420. -_ACEOF
  27421. -rm -f conftest.$ac_objext conftest$ac_exeext
  27422. -if { (ac_try="$ac_link"
  27423. -case "(($ac_try" in
  27424. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27425. - *) ac_try_echo=$ac_try;;
  27426. -esac
  27427. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27428. - (eval "$ac_link") 2>conftest.er1
  27429. - ac_status=$?
  27430. - grep -v '^ *+' conftest.er1 >conftest.err
  27431. - rm -f conftest.er1
  27432. - cat conftest.err >&5
  27433. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27434. - (exit $ac_status); } &&
  27435. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27436. - { (case "(($ac_try" in
  27437. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27438. - *) ac_try_echo=$ac_try;;
  27439. -esac
  27440. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27441. - (eval "$ac_try") 2>&5
  27442. - ac_status=$?
  27443. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27444. - (exit $ac_status); }; } &&
  27445. - { ac_try='test -s conftest$ac_exeext'
  27446. - { (case "(($ac_try" in
  27447. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27448. - *) ac_try_echo=$ac_try;;
  27449. -esac
  27450. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27451. - (eval "$ac_try") 2>&5
  27452. - ac_status=$?
  27453. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27454. - (exit $ac_status); }; }; then
  27455. - ac_cv_lib_dld_dld_link=yes
  27456. -else
  27457. - echo "$as_me: failed program was:" >&5
  27458. -sed 's/^/| /' conftest.$ac_ext >&5
  27459. -
  27460. - ac_cv_lib_dld_dld_link=no
  27461. -fi
  27462. -
  27463. -rm -f core conftest.err conftest.$ac_objext \
  27464. - conftest$ac_exeext conftest.$ac_ext
  27465. -LIBS=$ac_check_lib_save_LIBS
  27466. -fi
  27467. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  27468. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  27469. -if test $ac_cv_lib_dld_dld_link = yes; then
  27470. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  27471. -fi
  27472. -
  27473. -
  27474. -fi
  27475. -
  27476. -
  27477. -fi
  27478. -
  27479. -
  27480. -fi
  27481. -
  27482. -
  27483. -fi
  27484. -
  27485. -
  27486. -fi
  27487. -
  27488. - ;;
  27489. - esac
  27490. -
  27491. - if test "x$lt_cv_dlopen" != xno; then
  27492. - enable_dlopen=yes
  27493. - else
  27494. - enable_dlopen=no
  27495. - fi
  27496. -
  27497. - case $lt_cv_dlopen in
  27498. - dlopen)
  27499. - save_CPPFLAGS="$CPPFLAGS"
  27500. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  27501. -
  27502. - save_LDFLAGS="$LDFLAGS"
  27503. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  27504. -
  27505. - save_LIBS="$LIBS"
  27506. - LIBS="$lt_cv_dlopen_libs $LIBS"
  27507. -
  27508. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  27509. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  27510. -if test "${lt_cv_dlopen_self+set}" = set; then
  27511. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27512. -else
  27513. - if test "$cross_compiling" = yes; then :
  27514. - lt_cv_dlopen_self=cross
  27515. -else
  27516. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  27517. - lt_status=$lt_dlunknown
  27518. - cat > conftest.$ac_ext <<EOF
  27519. -#line 10293 "configure"
  27520. -#include "confdefs.h"
  27521. -
  27522. -#if HAVE_DLFCN_H
  27523. -#include <dlfcn.h>
  27524. -#endif
  27525. -
  27526. -#include <stdio.h>
  27527. -
  27528. -#ifdef RTLD_GLOBAL
  27529. -# define LT_DLGLOBAL RTLD_GLOBAL
  27530. -#else
  27531. -# ifdef DL_GLOBAL
  27532. -# define LT_DLGLOBAL DL_GLOBAL
  27533. -# else
  27534. -# define LT_DLGLOBAL 0
  27535. -# endif
  27536. -#endif
  27537. -
  27538. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  27539. - find out it does not work in some platform. */
  27540. -#ifndef LT_DLLAZY_OR_NOW
  27541. -# ifdef RTLD_LAZY
  27542. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  27543. -# else
  27544. -# ifdef DL_LAZY
  27545. -# define LT_DLLAZY_OR_NOW DL_LAZY
  27546. -# else
  27547. -# ifdef RTLD_NOW
  27548. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  27549. -# else
  27550. -# ifdef DL_NOW
  27551. -# define LT_DLLAZY_OR_NOW DL_NOW
  27552. -# else
  27553. -# define LT_DLLAZY_OR_NOW 0
  27554. -# endif
  27555. -# endif
  27556. -# endif
  27557. -# endif
  27558. -#endif
  27559. -
  27560. -#ifdef __cplusplus
  27561. -extern "C" void exit (int);
  27562. -#endif
  27563. -
  27564. -void fnord() { int i=42;}
  27565. -int main ()
  27566. -{
  27567. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  27568. - int status = $lt_dlunknown;
  27569. -
  27570. - if (self)
  27571. - {
  27572. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  27573. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  27574. - /* dlclose (self); */
  27575. - }
  27576. - else
  27577. - puts (dlerror ());
  27578. -
  27579. - exit (status);
  27580. -}
  27581. -EOF
  27582. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27583. - (eval $ac_link) 2>&5
  27584. - ac_status=$?
  27585. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27586. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  27587. - (./conftest; exit; ) >&5 2>/dev/null
  27588. - lt_status=$?
  27589. - case x$lt_status in
  27590. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  27591. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  27592. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  27593. - esac
  27594. - else :
  27595. - # compilation failed
  27596. - lt_cv_dlopen_self=no
  27597. - fi
  27598. -fi
  27599. -rm -fr conftest*
  27600. -
  27601. -
  27602. -fi
  27603. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  27604. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  27605. -
  27606. - if test "x$lt_cv_dlopen_self" = xyes; then
  27607. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  27608. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  27609. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  27610. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  27611. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27612. -else
  27613. - if test "$cross_compiling" = yes; then :
  27614. - lt_cv_dlopen_self_static=cross
  27615. -else
  27616. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  27617. - lt_status=$lt_dlunknown
  27618. - cat > conftest.$ac_ext <<EOF
  27619. -#line 10393 "configure"
  27620. -#include "confdefs.h"
  27621. -
  27622. -#if HAVE_DLFCN_H
  27623. -#include <dlfcn.h>
  27624. -#endif
  27625. -
  27626. -#include <stdio.h>
  27627. -
  27628. -#ifdef RTLD_GLOBAL
  27629. -# define LT_DLGLOBAL RTLD_GLOBAL
  27630. -#else
  27631. -# ifdef DL_GLOBAL
  27632. -# define LT_DLGLOBAL DL_GLOBAL
  27633. -# else
  27634. -# define LT_DLGLOBAL 0
  27635. -# endif
  27636. -#endif
  27637. -
  27638. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  27639. - find out it does not work in some platform. */
  27640. -#ifndef LT_DLLAZY_OR_NOW
  27641. -# ifdef RTLD_LAZY
  27642. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  27643. -# else
  27644. -# ifdef DL_LAZY
  27645. -# define LT_DLLAZY_OR_NOW DL_LAZY
  27646. -# else
  27647. -# ifdef RTLD_NOW
  27648. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  27649. -# else
  27650. -# ifdef DL_NOW
  27651. -# define LT_DLLAZY_OR_NOW DL_NOW
  27652. -# else
  27653. -# define LT_DLLAZY_OR_NOW 0
  27654. -# endif
  27655. -# endif
  27656. -# endif
  27657. -# endif
  27658. -#endif
  27659. -
  27660. -#ifdef __cplusplus
  27661. -extern "C" void exit (int);
  27662. -#endif
  27663. -
  27664. -void fnord() { int i=42;}
  27665. -int main ()
  27666. -{
  27667. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  27668. - int status = $lt_dlunknown;
  27669. -
  27670. - if (self)
  27671. - {
  27672. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  27673. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  27674. - /* dlclose (self); */
  27675. - }
  27676. - else
  27677. - puts (dlerror ());
  27678. -
  27679. - exit (status);
  27680. -}
  27681. -EOF
  27682. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27683. - (eval $ac_link) 2>&5
  27684. - ac_status=$?
  27685. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27686. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  27687. - (./conftest; exit; ) >&5 2>/dev/null
  27688. - lt_status=$?
  27689. - case x$lt_status in
  27690. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  27691. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  27692. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  27693. - esac
  27694. - else :
  27695. - # compilation failed
  27696. - lt_cv_dlopen_self_static=no
  27697. - fi
  27698. -fi
  27699. -rm -fr conftest*
  27700. -
  27701. -
  27702. -fi
  27703. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  27704. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  27705. - fi
  27706. -
  27707. - CPPFLAGS="$save_CPPFLAGS"
  27708. - LDFLAGS="$save_LDFLAGS"
  27709. - LIBS="$save_LIBS"
  27710. - ;;
  27711. - esac
  27712. -
  27713. - case $lt_cv_dlopen_self in
  27714. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  27715. - *) enable_dlopen_self=unknown ;;
  27716. - esac
  27717. -
  27718. - case $lt_cv_dlopen_self_static in
  27719. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  27720. - *) enable_dlopen_self_static=unknown ;;
  27721. - esac
  27722. -fi
  27723. -
  27724. -
  27725. -# Report which library types will actually be built
  27726. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  27727. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  27728. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  27729. -echo "${ECHO_T}$can_build_shared" >&6; }
  27730. -
  27731. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  27732. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  27733. -test "$can_build_shared" = "no" && enable_shared=no
  27734. -
  27735. -# On AIX, shared libraries and static libraries use the same namespace, and
  27736. -# are all built from PIC.
  27737. -case $host_os in
  27738. -aix3*)
  27739. - test "$enable_shared" = yes && enable_static=no
  27740. - if test -n "$RANLIB"; then
  27741. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  27742. - postinstall_cmds='$RANLIB $lib'
  27743. - fi
  27744. - ;;
  27745. -
  27746. -aix4* | aix5*)
  27747. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  27748. - test "$enable_shared" = yes && enable_static=no
  27749. - fi
  27750. - ;;
  27751. -esac
  27752. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  27753. -echo "${ECHO_T}$enable_shared" >&6; }
  27754. -
  27755. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  27756. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  27757. -# Make sure either enable_shared or enable_static is yes.
  27758. -test "$enable_shared" = yes || enable_static=yes
  27759. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  27760. -echo "${ECHO_T}$enable_static" >&6; }
  27761. -
  27762. -# The else clause should only fire when bootstrapping the
  27763. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  27764. -# with your package, and you will get complaints that there are
  27765. -# no rules to generate ltmain.sh.
  27766. -if test -f "$ltmain"; then
  27767. - # See if we are running on zsh, and set the options which allow our commands through
  27768. - # without removal of \ escapes.
  27769. - if test -n "${ZSH_VERSION+set}" ; then
  27770. - setopt NO_GLOB_SUBST
  27771. - fi
  27772. - # Now quote all the things that may contain metacharacters while being
  27773. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  27774. - # variables and quote the copies for generation of the libtool script.
  27775. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  27776. - SED SHELL STRIP \
  27777. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  27778. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  27779. - deplibs_check_method reload_flag reload_cmds need_locks \
  27780. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  27781. - lt_cv_sys_global_symbol_to_c_name_address \
  27782. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  27783. - old_postinstall_cmds old_postuninstall_cmds \
  27784. - compiler \
  27785. - CC \
  27786. - LD \
  27787. - lt_prog_compiler_wl \
  27788. - lt_prog_compiler_pic \
  27789. - lt_prog_compiler_static \
  27790. - lt_prog_compiler_no_builtin_flag \
  27791. - export_dynamic_flag_spec \
  27792. - thread_safe_flag_spec \
  27793. - whole_archive_flag_spec \
  27794. - enable_shared_with_static_runtimes \
  27795. - old_archive_cmds \
  27796. - old_archive_from_new_cmds \
  27797. - predep_objects \
  27798. - postdep_objects \
  27799. - predeps \
  27800. - postdeps \
  27801. - compiler_lib_search_path \
  27802. - archive_cmds \
  27803. - archive_expsym_cmds \
  27804. - postinstall_cmds \
  27805. - postuninstall_cmds \
  27806. - old_archive_from_expsyms_cmds \
  27807. - allow_undefined_flag \
  27808. - no_undefined_flag \
  27809. - export_symbols_cmds \
  27810. - hardcode_libdir_flag_spec \
  27811. - hardcode_libdir_flag_spec_ld \
  27812. - hardcode_libdir_separator \
  27813. - hardcode_automatic \
  27814. - module_cmds \
  27815. - module_expsym_cmds \
  27816. - lt_cv_prog_compiler_c_o \
  27817. - exclude_expsyms \
  27818. - include_expsyms; do
  27819. -
  27820. - case $var in
  27821. - old_archive_cmds | \
  27822. - old_archive_from_new_cmds | \
  27823. - archive_cmds | \
  27824. - archive_expsym_cmds | \
  27825. - module_cmds | \
  27826. - module_expsym_cmds | \
  27827. - old_archive_from_expsyms_cmds | \
  27828. - export_symbols_cmds | \
  27829. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  27830. - postinstall_cmds | postuninstall_cmds | \
  27831. - old_postinstall_cmds | old_postuninstall_cmds | \
  27832. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  27833. - # Double-quote double-evaled strings.
  27834. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  27835. - ;;
  27836. - *)
  27837. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  27838. - ;;
  27839. - esac
  27840. - done
  27841. -
  27842. - case $lt_echo in
  27843. - *'\$0 --fallback-echo"')
  27844. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  27845. - ;;
  27846. - esac
  27847. -
  27848. -cfgfile="${ofile}T"
  27849. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  27850. - $rm -f "$cfgfile"
  27851. - { echo "$as_me:$LINENO: creating $ofile" >&5
  27852. -echo "$as_me: creating $ofile" >&6;}
  27853. -
  27854. - cat <<__EOF__ >> "$cfgfile"
  27855. -#! $SHELL
  27856. -
  27857. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  27858. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  27859. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27860. -#
  27861. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  27862. -# Free Software Foundation, Inc.
  27863. -#
  27864. -# This file is part of GNU Libtool:
  27865. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  27866. -#
  27867. -# This program is free software; you can redistribute it and/or modify
  27868. -# it under the terms of the GNU General Public License as published by
  27869. -# the Free Software Foundation; either version 2 of the License, or
  27870. -# (at your option) any later version.
  27871. -#
  27872. -# This program is distributed in the hope that it will be useful, but
  27873. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  27874. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  27875. -# General Public License for more details.
  27876. -#
  27877. -# You should have received a copy of the GNU General Public License
  27878. -# along with this program; if not, write to the Free Software
  27879. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  27880. -#
  27881. -# As a special exception to the GNU General Public License, if you
  27882. -# distribute this file as part of a program that contains a
  27883. -# configuration script generated by Autoconf, you may include it under
  27884. -# the same distribution terms that you use for the rest of that program.
  27885. -
  27886. -# A sed program that does not truncate output.
  27887. -SED=$lt_SED
  27888. -
  27889. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27890. -Xsed="$SED -e 1s/^X//"
  27891. -
  27892. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  27893. -# if CDPATH is set.
  27894. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27895. -
  27896. -# The names of the tagged configurations supported by this script.
  27897. -available_tags=
  27898. -
  27899. -# ### BEGIN LIBTOOL CONFIG
  27900. -
  27901. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27902. -
  27903. -# Shell to use when invoking shell scripts.
  27904. -SHELL=$lt_SHELL
  27905. -
  27906. -# Whether or not to build shared libraries.
  27907. -build_libtool_libs=$enable_shared
  27908. -
  27909. -# Whether or not to build static libraries.
  27910. -build_old_libs=$enable_static
  27911. -
  27912. -# Whether or not to add -lc for building shared libraries.
  27913. -build_libtool_need_lc=$archive_cmds_need_lc
  27914. -
  27915. -# Whether or not to disallow shared libs when runtime libs are static
  27916. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27917. -
  27918. -# Whether or not to optimize for fast installation.
  27919. -fast_install=$enable_fast_install
  27920. -
  27921. -# The host system.
  27922. -host_alias=$host_alias
  27923. -host=$host
  27924. -host_os=$host_os
  27925. -
  27926. -# The build system.
  27927. -build_alias=$build_alias
  27928. -build=$build
  27929. -build_os=$build_os
  27930. -
  27931. -# An echo program that does not interpret backslashes.
  27932. -echo=$lt_echo
  27933. -
  27934. -# The archiver.
  27935. -AR=$lt_AR
  27936. -AR_FLAGS=$lt_AR_FLAGS
  27937. -
  27938. -# A C compiler.
  27939. -LTCC=$lt_LTCC
  27940. -
  27941. -# LTCC compiler flags.
  27942. -LTCFLAGS=$lt_LTCFLAGS
  27943. -
  27944. -# A language-specific compiler.
  27945. -CC=$lt_compiler
  27946. -
  27947. -# Is the compiler the GNU C compiler?
  27948. -with_gcc=$GCC
  27949. -
  27950. -# An ERE matcher.
  27951. -EGREP=$lt_EGREP
  27952. -
  27953. -# The linker used to build libraries.
  27954. -LD=$lt_LD
  27955. -
  27956. -# Whether we need hard or soft links.
  27957. -LN_S=$lt_LN_S
  27958. -
  27959. -# A BSD-compatible nm program.
  27960. -NM=$lt_NM
  27961. -
  27962. -# A symbol stripping program
  27963. -STRIP=$lt_STRIP
  27964. -
  27965. -# Used to examine libraries when file_magic_cmd begins "file"
  27966. -MAGIC_CMD=$MAGIC_CMD
  27967. -
  27968. -# Used on cygwin: DLL creation program.
  27969. -DLLTOOL="$DLLTOOL"
  27970. -
  27971. -# Used on cygwin: object dumper.
  27972. -OBJDUMP="$OBJDUMP"
  27973. -
  27974. -# Used on cygwin: assembler.
  27975. -AS="$AS"
  27976. -
  27977. -# The name of the directory that contains temporary libtool files.
  27978. -objdir=$objdir
  27979. -
  27980. -# How to create reloadable object files.
  27981. -reload_flag=$lt_reload_flag
  27982. -reload_cmds=$lt_reload_cmds
  27983. -
  27984. -# How to pass a linker flag through the compiler.
  27985. -wl=$lt_lt_prog_compiler_wl
  27986. -
  27987. -# Object file suffix (normally "o").
  27988. -objext="$ac_objext"
  27989. -
  27990. -# Old archive suffix (normally "a").
  27991. -libext="$libext"
  27992. -
  27993. -# Shared library suffix (normally ".so").
  27994. -shrext_cmds='$shrext_cmds'
  27995. -
  27996. -# Executable file suffix (normally "").
  27997. -exeext="$exeext"
  27998. -
  27999. -# Additional compiler flags for building library objects.
  28000. -pic_flag=$lt_lt_prog_compiler_pic
  28001. -pic_mode=$pic_mode
  28002. -
  28003. -# What is the maximum length of a command?
  28004. -max_cmd_len=$lt_cv_sys_max_cmd_len
  28005. -
  28006. -# Does compiler simultaneously support -c and -o options?
  28007. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  28008. -
  28009. -# Must we lock files when doing compilation?
  28010. -need_locks=$lt_need_locks
  28011. -
  28012. -# Do we need the lib prefix for modules?
  28013. -need_lib_prefix=$need_lib_prefix
  28014. -
  28015. -# Do we need a version for libraries?
  28016. -need_version=$need_version
  28017. -
  28018. -# Whether dlopen is supported.
  28019. -dlopen_support=$enable_dlopen
  28020. -
  28021. -# Whether dlopen of programs is supported.
  28022. -dlopen_self=$enable_dlopen_self
  28023. -
  28024. -# Whether dlopen of statically linked programs is supported.
  28025. -dlopen_self_static=$enable_dlopen_self_static
  28026. -
  28027. -# Compiler flag to prevent dynamic linking.
  28028. -link_static_flag=$lt_lt_prog_compiler_static
  28029. -
  28030. -# Compiler flag to turn off builtin functions.
  28031. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  28032. -
  28033. -# Compiler flag to allow reflexive dlopens.
  28034. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  28035. -
  28036. -# Compiler flag to generate shared objects directly from archives.
  28037. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  28038. -
  28039. -# Compiler flag to generate thread-safe objects.
  28040. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  28041. -
  28042. -# Library versioning type.
  28043. -version_type=$version_type
  28044. -
  28045. -# Format of library name prefix.
  28046. -libname_spec=$lt_libname_spec
  28047. -
  28048. -# List of archive names. First name is the real one, the rest are links.
  28049. -# The last name is the one that the linker finds with -lNAME.
  28050. -library_names_spec=$lt_library_names_spec
  28051. -
  28052. -# The coded name of the library, if different from the real name.
  28053. -soname_spec=$lt_soname_spec
  28054. -
  28055. -# Commands used to build and install an old-style archive.
  28056. -RANLIB=$lt_RANLIB
  28057. -old_archive_cmds=$lt_old_archive_cmds
  28058. -old_postinstall_cmds=$lt_old_postinstall_cmds
  28059. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  28060. -
  28061. -# Create an old-style archive from a shared archive.
  28062. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  28063. -
  28064. -# Create a temporary old-style archive to link instead of a shared archive.
  28065. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  28066. -
  28067. -# Commands used to build and install a shared archive.
  28068. -archive_cmds=$lt_archive_cmds
  28069. -archive_expsym_cmds=$lt_archive_expsym_cmds
  28070. -postinstall_cmds=$lt_postinstall_cmds
  28071. -postuninstall_cmds=$lt_postuninstall_cmds
  28072. -
  28073. -# Commands used to build a loadable module (assumed same as above if empty)
  28074. -module_cmds=$lt_module_cmds
  28075. -module_expsym_cmds=$lt_module_expsym_cmds
  28076. -
  28077. -# Commands to strip libraries.
  28078. -old_striplib=$lt_old_striplib
  28079. -striplib=$lt_striplib
  28080. -
  28081. -# Dependencies to place before the objects being linked to create a
  28082. -# shared library.
  28083. -predep_objects=$lt_predep_objects
  28084. -
  28085. -# Dependencies to place after the objects being linked to create a
  28086. -# shared library.
  28087. -postdep_objects=$lt_postdep_objects
  28088. -
  28089. -# Dependencies to place before the objects being linked to create a
  28090. -# shared library.
  28091. -predeps=$lt_predeps
  28092. -
  28093. -# Dependencies to place after the objects being linked to create a
  28094. -# shared library.
  28095. -postdeps=$lt_postdeps
  28096. -
  28097. -# The library search path used internally by the compiler when linking
  28098. -# a shared library.
  28099. -compiler_lib_search_path=$lt_compiler_lib_search_path
  28100. -
  28101. -# Method to check whether dependent libraries are shared objects.
  28102. -deplibs_check_method=$lt_deplibs_check_method
  28103. -
  28104. -# Command to use when deplibs_check_method == file_magic.
  28105. -file_magic_cmd=$lt_file_magic_cmd
  28106. -
  28107. -# Flag that allows shared libraries with undefined symbols to be built.
  28108. -allow_undefined_flag=$lt_allow_undefined_flag
  28109. -
  28110. -# Flag that forces no undefined symbols.
  28111. -no_undefined_flag=$lt_no_undefined_flag
  28112. -
  28113. -# Commands used to finish a libtool library installation in a directory.
  28114. -finish_cmds=$lt_finish_cmds
  28115. -
  28116. -# Same as above, but a single script fragment to be evaled but not shown.
  28117. -finish_eval=$lt_finish_eval
  28118. -
  28119. -# Take the output of nm and produce a listing of raw symbols and C names.
  28120. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  28121. -
  28122. -# Transform the output of nm in a proper C declaration
  28123. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  28124. -
  28125. -# Transform the output of nm in a C name address pair
  28126. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  28127. -
  28128. -# This is the shared library runtime path variable.
  28129. -runpath_var=$runpath_var
  28130. -
  28131. -# This is the shared library path variable.
  28132. -shlibpath_var=$shlibpath_var
  28133. -
  28134. -# Is shlibpath searched before the hard-coded library search path?
  28135. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  28136. -
  28137. -# How to hardcode a shared library path into an executable.
  28138. -hardcode_action=$hardcode_action
  28139. -
  28140. -# Whether we should hardcode library paths into libraries.
  28141. -hardcode_into_libs=$hardcode_into_libs
  28142. -
  28143. -# Flag to hardcode \$libdir into a binary during linking.
  28144. -# This must work even if \$libdir does not exist.
  28145. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  28146. -
  28147. -# If ld is used when linking, flag to hardcode \$libdir into
  28148. -# a binary during linking. This must work even if \$libdir does
  28149. -# not exist.
  28150. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  28151. -
  28152. -# Whether we need a single -rpath flag with a separated argument.
  28153. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  28154. -
  28155. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  28156. -# resulting binary.
  28157. -hardcode_direct=$hardcode_direct
  28158. -
  28159. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  28160. -# resulting binary.
  28161. -hardcode_minus_L=$hardcode_minus_L
  28162. -
  28163. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  28164. -# the resulting binary.
  28165. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  28166. -
  28167. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  28168. -# and all subsequent libraries and executables linked against it.
  28169. -hardcode_automatic=$hardcode_automatic
  28170. -
  28171. -# Variables whose values should be saved in libtool wrapper scripts and
  28172. -# restored at relink time.
  28173. -variables_saved_for_relink="$variables_saved_for_relink"
  28174. -
  28175. -# Whether libtool must link a program against all its dependency libraries.
  28176. -link_all_deplibs=$link_all_deplibs
  28177. -
  28178. -# Compile-time system search path for libraries
  28179. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  28180. -
  28181. -# Run-time system search path for libraries
  28182. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  28183. -
  28184. -# Fix the shell variable \$srcfile for the compiler.
  28185. -fix_srcfile_path="$fix_srcfile_path"
  28186. -
  28187. -# Set to yes if exported symbols are required.
  28188. -always_export_symbols=$always_export_symbols
  28189. -
  28190. -# The commands to list exported symbols.
  28191. -export_symbols_cmds=$lt_export_symbols_cmds
  28192. -
  28193. -# The commands to extract the exported symbol list from a shared archive.
  28194. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  28195. -
  28196. -# Symbols that should not be listed in the preloaded symbols.
  28197. -exclude_expsyms=$lt_exclude_expsyms
  28198. -
  28199. -# Symbols that must always be exported.
  28200. -include_expsyms=$lt_include_expsyms
  28201. -
  28202. -# ### END LIBTOOL CONFIG
  28203. -
  28204. -__EOF__
  28205. -
  28206. -
  28207. - case $host_os in
  28208. - aix3*)
  28209. - cat <<\EOF >> "$cfgfile"
  28210. -
  28211. -# AIX sometimes has problems with the GCC collect2 program. For some
  28212. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  28213. -# vanish in a puff of smoke.
  28214. -if test "X${COLLECT_NAMES+set}" != Xset; then
  28215. - COLLECT_NAMES=
  28216. - export COLLECT_NAMES
  28217. -fi
  28218. -EOF
  28219. - ;;
  28220. - esac
  28221. -
  28222. - # We use sed instead of cat because bash on DJGPP gets confused if
  28223. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28224. - # text mode, it properly converts lines to CR/LF. This bash problem
  28225. - # is reportedly fixed, but why not run on old versions too?
  28226. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  28227. -
  28228. - mv -f "$cfgfile" "$ofile" || \
  28229. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28230. - chmod +x "$ofile"
  28231. -
  28232. -else
  28233. - # If there is no Makefile yet, we rely on a make rule to execute
  28234. - # `config.status --recheck' to rerun these tests and create the
  28235. - # libtool script then.
  28236. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  28237. - if test -f "$ltmain_in"; then
  28238. - test -f Makefile && make "$ltmain"
  28239. - fi
  28240. -fi
  28241. -
  28242. -
  28243. -ac_ext=c
  28244. -ac_cpp='$CPP $CPPFLAGS'
  28245. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28246. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28247. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28248. -
  28249. -CC="$lt_save_CC"
  28250. -
  28251. -
  28252. -# Check whether --with-tags was given.
  28253. -if test "${with_tags+set}" = set; then
  28254. - withval=$with_tags; tagnames="$withval"
  28255. -fi
  28256. -
  28257. -
  28258. -if test -f "$ltmain" && test -n "$tagnames"; then
  28259. - if test ! -f "${ofile}"; then
  28260. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  28261. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  28262. - fi
  28263. -
  28264. - if test -z "$LTCC"; then
  28265. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  28266. - if test -z "$LTCC"; then
  28267. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  28268. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  28269. - else
  28270. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  28271. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  28272. - fi
  28273. - fi
  28274. - if test -z "$LTCFLAGS"; then
  28275. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  28276. - fi
  28277. -
  28278. - # Extract list of available tagged configurations in $ofile.
  28279. - # Note that this assumes the entire list is on one line.
  28280. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  28281. -
  28282. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  28283. - for tagname in $tagnames; do
  28284. - IFS="$lt_save_ifs"
  28285. - # Check whether tagname contains only valid characters
  28286. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  28287. - "") ;;
  28288. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  28289. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  28290. - { (exit 1); exit 1; }; }
  28291. - ;;
  28292. - esac
  28293. -
  28294. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  28295. - then
  28296. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  28297. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  28298. - { (exit 1); exit 1; }; }
  28299. - fi
  28300. -
  28301. - # Update the list of available tags.
  28302. - if test -n "$tagname"; then
  28303. - echo appending configuration tag \"$tagname\" to $ofile
  28304. -
  28305. - case $tagname in
  28306. - CXX)
  28307. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  28308. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  28309. - (test "X$CXX" != "Xg++"))) ; then
  28310. - ac_ext=cpp
  28311. -ac_cpp='$CXXCPP $CPPFLAGS'
  28312. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28313. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28314. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28315. -
  28316. -
  28317. -
  28318. -
  28319. -archive_cmds_need_lc_CXX=no
  28320. -allow_undefined_flag_CXX=
  28321. -always_export_symbols_CXX=no
  28322. -archive_expsym_cmds_CXX=
  28323. -export_dynamic_flag_spec_CXX=
  28324. -hardcode_direct_CXX=no
  28325. -hardcode_libdir_flag_spec_CXX=
  28326. -hardcode_libdir_flag_spec_ld_CXX=
  28327. -hardcode_libdir_separator_CXX=
  28328. -hardcode_minus_L_CXX=no
  28329. -hardcode_shlibpath_var_CXX=unsupported
  28330. -hardcode_automatic_CXX=no
  28331. -module_cmds_CXX=
  28332. -module_expsym_cmds_CXX=
  28333. -link_all_deplibs_CXX=unknown
  28334. -old_archive_cmds_CXX=$old_archive_cmds
  28335. -no_undefined_flag_CXX=
  28336. -whole_archive_flag_spec_CXX=
  28337. -enable_shared_with_static_runtimes_CXX=no
  28338. -
  28339. -# Dependencies to place before and after the object being linked:
  28340. -predep_objects_CXX=
  28341. -postdep_objects_CXX=
  28342. -predeps_CXX=
  28343. -postdeps_CXX=
  28344. -compiler_lib_search_path_CXX=
  28345. -
  28346. -# Source file extension for C++ test sources.
  28347. -ac_ext=cpp
  28348. -
  28349. -# Object file extension for compiled C++ test sources.
  28350. -objext=o
  28351. -objext_CXX=$objext
  28352. -
  28353. -# Code to be used in simple compile tests
  28354. -lt_simple_compile_test_code="int some_variable = 0;\n"
  28355. -
  28356. -# Code to be used in simple link tests
  28357. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  28358. -
  28359. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  28360. -
  28361. -# If no C compiler was specified, use CC.
  28362. -LTCC=${LTCC-"$CC"}
  28363. -
  28364. -# If no C compiler flags were specified, use CFLAGS.
  28365. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  28366. -
  28367. -# Allow CC to be a program name with arguments.
  28368. -compiler=$CC
  28369. -
  28370. -
  28371. -# save warnings/boilerplate of simple test code
  28372. -ac_outfile=conftest.$ac_objext
  28373. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  28374. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28375. -_lt_compiler_boilerplate=`cat conftest.err`
  28376. -$rm conftest*
  28377. -
  28378. -ac_outfile=conftest.$ac_objext
  28379. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  28380. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28381. -_lt_linker_boilerplate=`cat conftest.err`
  28382. -$rm conftest*
  28383. -
  28384. -
  28385. -# Allow CC to be a program name with arguments.
  28386. -lt_save_CC=$CC
  28387. -lt_save_LD=$LD
  28388. -lt_save_GCC=$GCC
  28389. -GCC=$GXX
  28390. -lt_save_with_gnu_ld=$with_gnu_ld
  28391. -lt_save_path_LD=$lt_cv_path_LD
  28392. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  28393. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  28394. -else
  28395. - $as_unset lt_cv_prog_gnu_ld
  28396. -fi
  28397. -if test -n "${lt_cv_path_LDCXX+set}"; then
  28398. - lt_cv_path_LD=$lt_cv_path_LDCXX
  28399. -else
  28400. - $as_unset lt_cv_path_LD
  28401. -fi
  28402. -test -z "${LDCXX+set}" || LD=$LDCXX
  28403. -CC=${CXX-"c++"}
  28404. -compiler=$CC
  28405. -compiler_CXX=$CC
  28406. -for cc_temp in $compiler""; do
  28407. - case $cc_temp in
  28408. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28409. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28410. - \-*) ;;
  28411. - *) break;;
  28412. - esac
  28413. -done
  28414. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  28415. -
  28416. -
  28417. -# We don't want -fno-exception wen compiling C++ code, so set the
  28418. -# no_builtin_flag separately
  28419. -if test "$GXX" = yes; then
  28420. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  28421. -else
  28422. - lt_prog_compiler_no_builtin_flag_CXX=
  28423. -fi
  28424. -
  28425. -if test "$GXX" = yes; then
  28426. - # Set up default GNU C++ configuration
  28427. -
  28428. -
  28429. -# Check whether --with-gnu-ld was given.
  28430. -if test "${with_gnu_ld+set}" = set; then
  28431. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  28432. -else
  28433. - with_gnu_ld=no
  28434. -fi
  28435. -
  28436. -ac_prog=ld
  28437. -if test "$GCC" = yes; then
  28438. - # Check if gcc -print-prog-name=ld gives a path.
  28439. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  28440. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  28441. - case $host in
  28442. - *-*-mingw*)
  28443. - # gcc leaves a trailing carriage return which upsets mingw
  28444. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  28445. - *)
  28446. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  28447. - esac
  28448. - case $ac_prog in
  28449. - # Accept absolute paths.
  28450. - [\\/]* | ?:[\\/]*)
  28451. - re_direlt='/[^/][^/]*/\.\./'
  28452. - # Canonicalize the pathname of ld
  28453. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  28454. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  28455. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  28456. - done
  28457. - test -z "$LD" && LD="$ac_prog"
  28458. - ;;
  28459. - "")
  28460. - # If it fails, then pretend we aren't using GCC.
  28461. - ac_prog=ld
  28462. - ;;
  28463. - *)
  28464. - # If it is relative, then search for the first ld in PATH.
  28465. - with_gnu_ld=unknown
  28466. - ;;
  28467. - esac
  28468. -elif test "$with_gnu_ld" = yes; then
  28469. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  28470. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  28471. -else
  28472. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  28473. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  28474. -fi
  28475. -if test "${lt_cv_path_LD+set}" = set; then
  28476. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28477. -else
  28478. - if test -z "$LD"; then
  28479. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  28480. - for ac_dir in $PATH; do
  28481. - IFS="$lt_save_ifs"
  28482. - test -z "$ac_dir" && ac_dir=.
  28483. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  28484. - lt_cv_path_LD="$ac_dir/$ac_prog"
  28485. - # Check to see if the program is GNU ld. I'd rather use --version,
  28486. - # but apparently some variants of GNU ld only accept -v.
  28487. - # Break only if it was the GNU/non-GNU ld that we prefer.
  28488. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  28489. - *GNU* | *'with BFD'*)
  28490. - test "$with_gnu_ld" != no && break
  28491. - ;;
  28492. - *)
  28493. - test "$with_gnu_ld" != yes && break
  28494. - ;;
  28495. - esac
  28496. - fi
  28497. - done
  28498. - IFS="$lt_save_ifs"
  28499. -else
  28500. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  28501. -fi
  28502. -fi
  28503. -
  28504. -LD="$lt_cv_path_LD"
  28505. -if test -n "$LD"; then
  28506. - { echo "$as_me:$LINENO: result: $LD" >&5
  28507. -echo "${ECHO_T}$LD" >&6; }
  28508. -else
  28509. - { echo "$as_me:$LINENO: result: no" >&5
  28510. -echo "${ECHO_T}no" >&6; }
  28511. -fi
  28512. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  28513. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  28514. - { (exit 1); exit 1; }; }
  28515. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  28516. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  28517. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  28518. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28519. -else
  28520. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  28521. -case `$LD -v 2>&1 </dev/null` in
  28522. -*GNU* | *'with BFD'*)
  28523. - lt_cv_prog_gnu_ld=yes
  28524. - ;;
  28525. -*)
  28526. - lt_cv_prog_gnu_ld=no
  28527. - ;;
  28528. -esac
  28529. -fi
  28530. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  28531. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  28532. -with_gnu_ld=$lt_cv_prog_gnu_ld
  28533. -
  28534. -
  28535. -
  28536. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  28537. - # archiving commands below assume that GNU ld is being used.
  28538. - if test "$with_gnu_ld" = yes; then
  28539. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28540. - 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'
  28541. -
  28542. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  28543. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28544. -
  28545. - # If archive_cmds runs LD, not CC, wlarc should be empty
  28546. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  28547. - # investigate it a little bit more. (MM)
  28548. - wlarc='${wl}'
  28549. -
  28550. - # ancient GNU ld didn't support --whole-archive et. al.
  28551. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  28552. - grep 'no-whole-archive' > /dev/null; then
  28553. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  28554. - else
  28555. - whole_archive_flag_spec_CXX=
  28556. - fi
  28557. - else
  28558. - with_gnu_ld=no
  28559. - wlarc=
  28560. -
  28561. - # A generic and very simple default shared library creation
  28562. - # command for GNU C++ for the case where it uses the native
  28563. - # linker, instead of GNU ld. If possible, this setting should
  28564. - # overridden to take advantage of the native linker features on
  28565. - # the platform it is being used on.
  28566. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  28567. - fi
  28568. -
  28569. - # Commands to make compiler produce verbose output that lists
  28570. - # what "hidden" libraries, object files and flags are used when
  28571. - # linking a shared library.
  28572. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28573. -
  28574. -else
  28575. - GXX=no
  28576. - with_gnu_ld=no
  28577. - wlarc=
  28578. -fi
  28579. -
  28580. -# PORTME: fill in a description of your system's C++ link characteristics
  28581. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28582. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  28583. -ld_shlibs_CXX=yes
  28584. -case $host_os in
  28585. - aix3*)
  28586. - # FIXME: insert proper C++ library support
  28587. - ld_shlibs_CXX=no
  28588. - ;;
  28589. - aix4* | aix5*)
  28590. - if test "$host_cpu" = ia64; then
  28591. - # On IA64, the linker does run time linking by default, so we don't
  28592. - # have to do anything special.
  28593. - aix_use_runtimelinking=no
  28594. - exp_sym_flag='-Bexport'
  28595. - no_entry_flag=""
  28596. - else
  28597. - aix_use_runtimelinking=no
  28598. -
  28599. - # Test if we are trying to use run time linking or normal
  28600. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  28601. - # need to do runtime linking.
  28602. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  28603. - for ld_flag in $LDFLAGS; do
  28604. - case $ld_flag in
  28605. - *-brtl*)
  28606. - aix_use_runtimelinking=yes
  28607. - break
  28608. - ;;
  28609. - esac
  28610. - done
  28611. - ;;
  28612. - esac
  28613. -
  28614. - exp_sym_flag='-bexport'
  28615. - no_entry_flag='-bnoentry'
  28616. - fi
  28617. -
  28618. - # When large executables or shared objects are built, AIX ld can
  28619. - # have problems creating the table of contents. If linking a library
  28620. - # or program results in "error TOC overflow" add -mminimal-toc to
  28621. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  28622. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  28623. -
  28624. - archive_cmds_CXX=''
  28625. - hardcode_direct_CXX=yes
  28626. - hardcode_libdir_separator_CXX=':'
  28627. - link_all_deplibs_CXX=yes
  28628. -
  28629. - if test "$GXX" = yes; then
  28630. - case $host_os in aix4.[012]|aix4.[012].*)
  28631. - # We only want to do this on AIX 4.2 and lower, the check
  28632. - # below for broken collect2 doesn't work under 4.3+
  28633. - collect2name=`${CC} -print-prog-name=collect2`
  28634. - if test -f "$collect2name" && \
  28635. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  28636. - then
  28637. - # We have reworked collect2
  28638. - hardcode_direct_CXX=yes
  28639. - else
  28640. - # We have old collect2
  28641. - hardcode_direct_CXX=unsupported
  28642. - # It fails to find uninstalled libraries when the uninstalled
  28643. - # path is not listed in the libpath. Setting hardcode_minus_L
  28644. - # to unsupported forces relinking
  28645. - hardcode_minus_L_CXX=yes
  28646. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  28647. - hardcode_libdir_separator_CXX=
  28648. - fi
  28649. - ;;
  28650. - esac
  28651. - shared_flag='-shared'
  28652. - if test "$aix_use_runtimelinking" = yes; then
  28653. - shared_flag="$shared_flag "'${wl}-G'
  28654. - fi
  28655. - else
  28656. - # not using gcc
  28657. - if test "$host_cpu" = ia64; then
  28658. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  28659. - # chokes on -Wl,-G. The following line is correct:
  28660. - shared_flag='-G'
  28661. - else
  28662. - if test "$aix_use_runtimelinking" = yes; then
  28663. - shared_flag='${wl}-G'
  28664. - else
  28665. - shared_flag='${wl}-bM:SRE'
  28666. - fi
  28667. - fi
  28668. - fi
  28669. -
  28670. - # It seems that -bexpall does not export symbols beginning with
  28671. - # underscore (_), so it is better to generate a list of symbols to export.
  28672. - always_export_symbols_CXX=yes
  28673. - if test "$aix_use_runtimelinking" = yes; then
  28674. - # Warning - without using the other runtime loading flags (-brtl),
  28675. - # -berok will link without error, but may produce a broken library.
  28676. - allow_undefined_flag_CXX='-berok'
  28677. - # Determine the default libpath from the value encoded in an empty executable.
  28678. - cat >conftest.$ac_ext <<_ACEOF
  28679. -/* confdefs.h. */
  28680. -_ACEOF
  28681. -cat confdefs.h >>conftest.$ac_ext
  28682. -cat >>conftest.$ac_ext <<_ACEOF
  28683. -/* end confdefs.h. */
  28684. -
  28685. -int
  28686. -main ()
  28687. -{
  28688. -
  28689. - ;
  28690. - return 0;
  28691. -}
  28692. -_ACEOF
  28693. -rm -f conftest.$ac_objext conftest$ac_exeext
  28694. -if { (ac_try="$ac_link"
  28695. -case "(($ac_try" in
  28696. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28697. - *) ac_try_echo=$ac_try;;
  28698. -esac
  28699. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28700. - (eval "$ac_link") 2>conftest.er1
  28701. - ac_status=$?
  28702. - grep -v '^ *+' conftest.er1 >conftest.err
  28703. - rm -f conftest.er1
  28704. - cat conftest.err >&5
  28705. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28706. - (exit $ac_status); } &&
  28707. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  28708. - { (case "(($ac_try" in
  28709. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28710. - *) ac_try_echo=$ac_try;;
  28711. -esac
  28712. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28713. - (eval "$ac_try") 2>&5
  28714. - ac_status=$?
  28715. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28716. - (exit $ac_status); }; } &&
  28717. - { ac_try='test -s conftest$ac_exeext'
  28718. - { (case "(($ac_try" in
  28719. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28720. - *) ac_try_echo=$ac_try;;
  28721. -esac
  28722. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28723. - (eval "$ac_try") 2>&5
  28724. - ac_status=$?
  28725. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28726. - (exit $ac_status); }; }; then
  28727. -
  28728. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28729. -}'`
  28730. -# Check for a 64-bit object if we didn't find anything.
  28731. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28732. -}'`; fi
  28733. -else
  28734. - echo "$as_me: failed program was:" >&5
  28735. -sed 's/^/| /' conftest.$ac_ext >&5
  28736. -
  28737. -
  28738. -fi
  28739. -
  28740. -rm -f core conftest.err conftest.$ac_objext \
  28741. - conftest$ac_exeext conftest.$ac_ext
  28742. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28743. -
  28744. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  28745. -
  28746. - 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"
  28747. - else
  28748. - if test "$host_cpu" = ia64; then
  28749. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  28750. - allow_undefined_flag_CXX="-z nodefs"
  28751. - 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"
  28752. - else
  28753. - # Determine the default libpath from the value encoded in an empty executable.
  28754. - cat >conftest.$ac_ext <<_ACEOF
  28755. -/* confdefs.h. */
  28756. -_ACEOF
  28757. -cat confdefs.h >>conftest.$ac_ext
  28758. -cat >>conftest.$ac_ext <<_ACEOF
  28759. -/* end confdefs.h. */
  28760. -
  28761. -int
  28762. -main ()
  28763. -{
  28764. -
  28765. - ;
  28766. - return 0;
  28767. -}
  28768. -_ACEOF
  28769. -rm -f conftest.$ac_objext conftest$ac_exeext
  28770. -if { (ac_try="$ac_link"
  28771. -case "(($ac_try" in
  28772. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28773. - *) ac_try_echo=$ac_try;;
  28774. -esac
  28775. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28776. - (eval "$ac_link") 2>conftest.er1
  28777. - ac_status=$?
  28778. - grep -v '^ *+' conftest.er1 >conftest.err
  28779. - rm -f conftest.er1
  28780. - cat conftest.err >&5
  28781. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28782. - (exit $ac_status); } &&
  28783. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  28784. - { (case "(($ac_try" in
  28785. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28786. - *) ac_try_echo=$ac_try;;
  28787. -esac
  28788. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28789. - (eval "$ac_try") 2>&5
  28790. - ac_status=$?
  28791. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28792. - (exit $ac_status); }; } &&
  28793. - { ac_try='test -s conftest$ac_exeext'
  28794. - { (case "(($ac_try" in
  28795. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28796. - *) ac_try_echo=$ac_try;;
  28797. -esac
  28798. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28799. - (eval "$ac_try") 2>&5
  28800. - ac_status=$?
  28801. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28802. - (exit $ac_status); }; }; then
  28803. -
  28804. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28805. -}'`
  28806. -# Check for a 64-bit object if we didn't find anything.
  28807. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28808. -}'`; fi
  28809. -else
  28810. - echo "$as_me: failed program was:" >&5
  28811. -sed 's/^/| /' conftest.$ac_ext >&5
  28812. -
  28813. -
  28814. -fi
  28815. -
  28816. -rm -f core conftest.err conftest.$ac_objext \
  28817. - conftest$ac_exeext conftest.$ac_ext
  28818. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28819. -
  28820. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  28821. - # Warning - without using the other run time loading flags,
  28822. - # -berok will link without error, but may produce a broken library.
  28823. - no_undefined_flag_CXX=' ${wl}-bernotok'
  28824. - allow_undefined_flag_CXX=' ${wl}-berok'
  28825. - # Exported symbols can be pulled into shared objects from archives
  28826. - whole_archive_flag_spec_CXX='$convenience'
  28827. - archive_cmds_need_lc_CXX=yes
  28828. - # This is similar to how AIX traditionally builds its shared libraries.
  28829. - 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'
  28830. - fi
  28831. - fi
  28832. - ;;
  28833. -
  28834. - beos*)
  28835. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28836. - allow_undefined_flag_CXX=unsupported
  28837. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  28838. - # support --undefined. This deserves some investigation. FIXME
  28839. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28840. - else
  28841. - ld_shlibs_CXX=no
  28842. - fi
  28843. - ;;
  28844. -
  28845. - chorus*)
  28846. - case $cc_basename in
  28847. - *)
  28848. - # FIXME: insert proper C++ library support
  28849. - ld_shlibs_CXX=no
  28850. - ;;
  28851. - esac
  28852. - ;;
  28853. -
  28854. - cygwin* | mingw* | pw32*)
  28855. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  28856. - # as there is no search path for DLLs.
  28857. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  28858. - allow_undefined_flag_CXX=unsupported
  28859. - always_export_symbols_CXX=no
  28860. - enable_shared_with_static_runtimes_CXX=yes
  28861. -
  28862. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  28863. - 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'
  28864. - # If the export-symbols file already is a .def file (1st line
  28865. - # is EXPORTS), use it as is; otherwise, prepend...
  28866. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  28867. - cp $export_symbols $output_objdir/$soname.def;
  28868. - else
  28869. - echo EXPORTS > $output_objdir/$soname.def;
  28870. - cat $export_symbols >> $output_objdir/$soname.def;
  28871. - fi~
  28872. - $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'
  28873. - else
  28874. - ld_shlibs_CXX=no
  28875. - fi
  28876. - ;;
  28877. - darwin* | rhapsody*)
  28878. - case $host_os in
  28879. - rhapsody* | darwin1.[012])
  28880. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  28881. - ;;
  28882. - *) # Darwin 1.3 on
  28883. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  28884. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28885. - else
  28886. - case ${MACOSX_DEPLOYMENT_TARGET} in
  28887. - 10.[012])
  28888. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28889. - ;;
  28890. - 10.*)
  28891. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  28892. - ;;
  28893. - esac
  28894. - fi
  28895. - ;;
  28896. - esac
  28897. - archive_cmds_need_lc_CXX=no
  28898. - hardcode_direct_CXX=no
  28899. - hardcode_automatic_CXX=yes
  28900. - hardcode_shlibpath_var_CXX=unsupported
  28901. - whole_archive_flag_spec_CXX=''
  28902. - link_all_deplibs_CXX=yes
  28903. -
  28904. - if test "$GXX" = yes ; then
  28905. - lt_int_apple_cc_single_mod=no
  28906. - output_verbose_link_cmd='echo'
  28907. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  28908. - lt_int_apple_cc_single_mod=yes
  28909. - fi
  28910. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  28911. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  28912. - else
  28913. - 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'
  28914. - fi
  28915. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28916. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28917. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  28918. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28919. - else
  28920. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28921. - fi
  28922. - 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}'
  28923. - else
  28924. - case $cc_basename in
  28925. - xlc*)
  28926. - output_verbose_link_cmd='echo'
  28927. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  28928. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28929. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28930. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28931. - 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}'
  28932. - ;;
  28933. - *)
  28934. - ld_shlibs_CXX=no
  28935. - ;;
  28936. - esac
  28937. - fi
  28938. - ;;
  28939. -
  28940. - dgux*)
  28941. - case $cc_basename in
  28942. - ec++*)
  28943. - # FIXME: insert proper C++ library support
  28944. - ld_shlibs_CXX=no
  28945. - ;;
  28946. - ghcx*)
  28947. - # Green Hills C++ Compiler
  28948. - # FIXME: insert proper C++ library support
  28949. - ld_shlibs_CXX=no
  28950. - ;;
  28951. - *)
  28952. - # FIXME: insert proper C++ library support
  28953. - ld_shlibs_CXX=no
  28954. - ;;
  28955. - esac
  28956. - ;;
  28957. - freebsd[12]*)
  28958. - # C++ shared libraries reported to be fairly broken before switch to ELF
  28959. - ld_shlibs_CXX=no
  28960. - ;;
  28961. - freebsd-elf*)
  28962. - archive_cmds_need_lc_CXX=no
  28963. - ;;
  28964. - freebsd* | kfreebsd*-gnu | dragonfly*)
  28965. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  28966. - # conventions
  28967. - ld_shlibs_CXX=yes
  28968. - ;;
  28969. - gnu*)
  28970. - ;;
  28971. - hpux9*)
  28972. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28973. - hardcode_libdir_separator_CXX=:
  28974. - export_dynamic_flag_spec_CXX='${wl}-E'
  28975. - hardcode_direct_CXX=yes
  28976. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28977. - # but as the default
  28978. - # location of the library.
  28979. -
  28980. - case $cc_basename in
  28981. - CC*)
  28982. - # FIXME: insert proper C++ library support
  28983. - ld_shlibs_CXX=no
  28984. - ;;
  28985. - aCC*)
  28986. - 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'
  28987. - # Commands to make compiler produce verbose output that lists
  28988. - # what "hidden" libraries, object files and flags are used when
  28989. - # linking a shared library.
  28990. - #
  28991. - # There doesn't appear to be a way to prevent this compiler from
  28992. - # explicitly linking system object files so we need to strip them
  28993. - # from the output so that they don't get included in the library
  28994. - # dependencies.
  28995. - 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'
  28996. - ;;
  28997. - *)
  28998. - if test "$GXX" = yes; then
  28999. - 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'
  29000. - else
  29001. - # FIXME: insert proper C++ library support
  29002. - ld_shlibs_CXX=no
  29003. - fi
  29004. - ;;
  29005. - esac
  29006. - ;;
  29007. - hpux10*|hpux11*)
  29008. - if test $with_gnu_ld = no; then
  29009. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  29010. - hardcode_libdir_separator_CXX=:
  29011. -
  29012. - case $host_cpu in
  29013. - hppa*64*|ia64*)
  29014. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  29015. - ;;
  29016. - *)
  29017. - export_dynamic_flag_spec_CXX='${wl}-E'
  29018. - ;;
  29019. - esac
  29020. - fi
  29021. - case $host_cpu in
  29022. - hppa*64*|ia64*)
  29023. - hardcode_direct_CXX=no
  29024. - hardcode_shlibpath_var_CXX=no
  29025. - ;;
  29026. - *)
  29027. - hardcode_direct_CXX=yes
  29028. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  29029. - # but as the default
  29030. - # location of the library.
  29031. - ;;
  29032. - esac
  29033. -
  29034. - case $cc_basename in
  29035. - CC*)
  29036. - # FIXME: insert proper C++ library support
  29037. - ld_shlibs_CXX=no
  29038. - ;;
  29039. - aCC*)
  29040. - case $host_cpu in
  29041. - hppa*64*)
  29042. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29043. - ;;
  29044. - ia64*)
  29045. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29046. - ;;
  29047. - *)
  29048. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29049. - ;;
  29050. - esac
  29051. - # Commands to make compiler produce verbose output that lists
  29052. - # what "hidden" libraries, object files and flags are used when
  29053. - # linking a shared library.
  29054. - #
  29055. - # There doesn't appear to be a way to prevent this compiler from
  29056. - # explicitly linking system object files so we need to strip them
  29057. - # from the output so that they don't get included in the library
  29058. - # dependencies.
  29059. - 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'
  29060. - ;;
  29061. - *)
  29062. - if test "$GXX" = yes; then
  29063. - if test $with_gnu_ld = no; then
  29064. - case $host_cpu in
  29065. - hppa*64*)
  29066. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29067. - ;;
  29068. - ia64*)
  29069. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29070. - ;;
  29071. - *)
  29072. - 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'
  29073. - ;;
  29074. - esac
  29075. - fi
  29076. - else
  29077. - # FIXME: insert proper C++ library support
  29078. - ld_shlibs_CXX=no
  29079. - fi
  29080. - ;;
  29081. - esac
  29082. - ;;
  29083. - interix3*)
  29084. - hardcode_direct_CXX=no
  29085. - hardcode_shlibpath_var_CXX=no
  29086. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29087. - export_dynamic_flag_spec_CXX='${wl}-E'
  29088. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29089. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  29090. - # default) and relocated if they conflict, which is a slow very memory
  29091. - # consuming and fragmenting process. To avoid this, we pick a random,
  29092. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29093. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29094. - 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'
  29095. - 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'
  29096. - ;;
  29097. - irix5* | irix6*)
  29098. - case $cc_basename in
  29099. - CC*)
  29100. - # SGI C++
  29101. - 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'
  29102. -
  29103. - # Archives containing C++ object files must be created using
  29104. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  29105. - # necessary to make sure instantiated templates are included
  29106. - # in the archive.
  29107. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  29108. - ;;
  29109. - *)
  29110. - if test "$GXX" = yes; then
  29111. - if test "$with_gnu_ld" = no; then
  29112. - 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'
  29113. - else
  29114. - 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'
  29115. - fi
  29116. - fi
  29117. - link_all_deplibs_CXX=yes
  29118. - ;;
  29119. - esac
  29120. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29121. - hardcode_libdir_separator_CXX=:
  29122. - ;;
  29123. - linux*)
  29124. - case $cc_basename in
  29125. - KCC*)
  29126. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  29127. -
  29128. - # KCC will only create a shared library if the output file
  29129. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29130. - # to its proper name (with version) after linking.
  29131. - 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'
  29132. - 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'
  29133. - # Commands to make compiler produce verbose output that lists
  29134. - # what "hidden" libraries, object files and flags are used when
  29135. - # linking a shared library.
  29136. - #
  29137. - # There doesn't appear to be a way to prevent this compiler from
  29138. - # explicitly linking system object files so we need to strip them
  29139. - # from the output so that they don't get included in the library
  29140. - # dependencies.
  29141. - 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'
  29142. -
  29143. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  29144. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29145. -
  29146. - # Archives containing C++ object files must be created using
  29147. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  29148. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  29149. - ;;
  29150. - icpc*)
  29151. - # Intel C++
  29152. - with_gnu_ld=yes
  29153. - # version 8.0 and above of icpc choke on multiply defined symbols
  29154. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  29155. - # earlier do not add the objects themselves.
  29156. - case `$CC -V 2>&1` in
  29157. - *"Version 7."*)
  29158. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29159. - 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'
  29160. - ;;
  29161. - *) # Version 8.0 or newer
  29162. - tmp_idyn=
  29163. - case $host_cpu in
  29164. - ia64*) tmp_idyn=' -i_dynamic';;
  29165. - esac
  29166. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29167. - 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'
  29168. - ;;
  29169. - esac
  29170. - archive_cmds_need_lc_CXX=no
  29171. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29172. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29173. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  29174. - ;;
  29175. - pgCC*)
  29176. - # Portland Group C++ compiler
  29177. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  29178. - 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'
  29179. -
  29180. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  29181. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29182. - 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'
  29183. - ;;
  29184. - cxx*)
  29185. - # Compaq C++
  29186. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29187. - 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'
  29188. -
  29189. - runpath_var=LD_RUN_PATH
  29190. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  29191. - hardcode_libdir_separator_CXX=:
  29192. -
  29193. - # Commands to make compiler produce verbose output that lists
  29194. - # what "hidden" libraries, object files and flags are used when
  29195. - # linking a shared library.
  29196. - #
  29197. - # There doesn't appear to be a way to prevent this compiler from
  29198. - # explicitly linking system object files so we need to strip them
  29199. - # from the output so that they don't get included in the library
  29200. - # dependencies.
  29201. - 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'
  29202. - ;;
  29203. - esac
  29204. - ;;
  29205. - lynxos*)
  29206. - # FIXME: insert proper C++ library support
  29207. - ld_shlibs_CXX=no
  29208. - ;;
  29209. - m88k*)
  29210. - # FIXME: insert proper C++ library support
  29211. - ld_shlibs_CXX=no
  29212. - ;;
  29213. - mvs*)
  29214. - case $cc_basename in
  29215. - cxx*)
  29216. - # FIXME: insert proper C++ library support
  29217. - ld_shlibs_CXX=no
  29218. - ;;
  29219. - *)
  29220. - # FIXME: insert proper C++ library support
  29221. - ld_shlibs_CXX=no
  29222. - ;;
  29223. - esac
  29224. - ;;
  29225. - netbsd*)
  29226. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29227. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  29228. - wlarc=
  29229. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  29230. - hardcode_direct_CXX=yes
  29231. - hardcode_shlibpath_var_CXX=no
  29232. - fi
  29233. - # Workaround some broken pre-1.5 toolchains
  29234. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  29235. - ;;
  29236. - openbsd2*)
  29237. - # C++ shared libraries are fairly broken
  29238. - ld_shlibs_CXX=no
  29239. - ;;
  29240. - openbsd*)
  29241. - hardcode_direct_CXX=yes
  29242. - hardcode_shlibpath_var_CXX=no
  29243. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  29244. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29245. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29246. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  29247. - export_dynamic_flag_spec_CXX='${wl}-E'
  29248. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29249. - fi
  29250. - output_verbose_link_cmd='echo'
  29251. - ;;
  29252. - osf3*)
  29253. - case $cc_basename in
  29254. - KCC*)
  29255. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  29256. -
  29257. - # KCC will only create a shared library if the output file
  29258. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29259. - # to its proper name (with version) after linking.
  29260. - 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'
  29261. -
  29262. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29263. - hardcode_libdir_separator_CXX=:
  29264. -
  29265. - # Archives containing C++ object files must be created using
  29266. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  29267. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  29268. -
  29269. - ;;
  29270. - RCC*)
  29271. - # Rational C++ 2.4.1
  29272. - # FIXME: insert proper C++ library support
  29273. - ld_shlibs_CXX=no
  29274. - ;;
  29275. - cxx*)
  29276. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29277. - 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'
  29278. -
  29279. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29280. - hardcode_libdir_separator_CXX=:
  29281. -
  29282. - # Commands to make compiler produce verbose output that lists
  29283. - # what "hidden" libraries, object files and flags are used when
  29284. - # linking a shared library.
  29285. - #
  29286. - # There doesn't appear to be a way to prevent this compiler from
  29287. - # explicitly linking system object files so we need to strip them
  29288. - # from the output so that they don't get included in the library
  29289. - # dependencies.
  29290. - 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'
  29291. - ;;
  29292. - *)
  29293. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29294. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29295. - 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'
  29296. -
  29297. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29298. - hardcode_libdir_separator_CXX=:
  29299. -
  29300. - # Commands to make compiler produce verbose output that lists
  29301. - # what "hidden" libraries, object files and flags are used when
  29302. - # linking a shared library.
  29303. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  29304. -
  29305. - else
  29306. - # FIXME: insert proper C++ library support
  29307. - ld_shlibs_CXX=no
  29308. - fi
  29309. - ;;
  29310. - esac
  29311. - ;;
  29312. - osf4* | osf5*)
  29313. - case $cc_basename in
  29314. - KCC*)
  29315. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  29316. -
  29317. - # KCC will only create a shared library if the output file
  29318. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29319. - # to its proper name (with version) after linking.
  29320. - 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'
  29321. -
  29322. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29323. - hardcode_libdir_separator_CXX=:
  29324. -
  29325. - # Archives containing C++ object files must be created using
  29326. - # the KAI C++ compiler.
  29327. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  29328. - ;;
  29329. - RCC*)
  29330. - # Rational C++ 2.4.1
  29331. - # FIXME: insert proper C++ library support
  29332. - ld_shlibs_CXX=no
  29333. - ;;
  29334. - cxx*)
  29335. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  29336. - 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'
  29337. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  29338. - echo "-hidden">> $lib.exp~
  29339. - $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~
  29340. - $rm $lib.exp'
  29341. -
  29342. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  29343. - hardcode_libdir_separator_CXX=:
  29344. -
  29345. - # Commands to make compiler produce verbose output that lists
  29346. - # what "hidden" libraries, object files and flags are used when
  29347. - # linking a shared library.
  29348. - #
  29349. - # There doesn't appear to be a way to prevent this compiler from
  29350. - # explicitly linking system object files so we need to strip them
  29351. - # from the output so that they don't get included in the library
  29352. - # dependencies.
  29353. - 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'
  29354. - ;;
  29355. - *)
  29356. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29357. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29358. - 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'
  29359. -
  29360. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29361. - hardcode_libdir_separator_CXX=:
  29362. -
  29363. - # Commands to make compiler produce verbose output that lists
  29364. - # what "hidden" libraries, object files and flags are used when
  29365. - # linking a shared library.
  29366. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  29367. -
  29368. - else
  29369. - # FIXME: insert proper C++ library support
  29370. - ld_shlibs_CXX=no
  29371. - fi
  29372. - ;;
  29373. - esac
  29374. - ;;
  29375. - psos*)
  29376. - # FIXME: insert proper C++ library support
  29377. - ld_shlibs_CXX=no
  29378. - ;;
  29379. - sunos4*)
  29380. - case $cc_basename in
  29381. - CC*)
  29382. - # Sun C++ 4.x
  29383. - # FIXME: insert proper C++ library support
  29384. - ld_shlibs_CXX=no
  29385. - ;;
  29386. - lcc*)
  29387. - # Lucid
  29388. - # FIXME: insert proper C++ library support
  29389. - ld_shlibs_CXX=no
  29390. - ;;
  29391. - *)
  29392. - # FIXME: insert proper C++ library support
  29393. - ld_shlibs_CXX=no
  29394. - ;;
  29395. - esac
  29396. - ;;
  29397. - solaris*)
  29398. - case $cc_basename in
  29399. - CC*)
  29400. - # Sun C++ 4.2, 5.x and Centerline C++
  29401. - archive_cmds_need_lc_CXX=yes
  29402. - no_undefined_flag_CXX=' -zdefs'
  29403. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29404. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29405. - $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'
  29406. -
  29407. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  29408. - hardcode_shlibpath_var_CXX=no
  29409. - case $host_os in
  29410. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  29411. - *)
  29412. - # The C++ compiler is used as linker so we must use $wl
  29413. - # flag to pass the commands to the underlying system
  29414. - # linker. We must also pass each convience library through
  29415. - # to the system linker between allextract/defaultextract.
  29416. - # The C++ compiler will combine linker options so we
  29417. - # cannot just pass the convience library names through
  29418. - # without $wl.
  29419. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  29420. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  29421. - ;;
  29422. - esac
  29423. - link_all_deplibs_CXX=yes
  29424. -
  29425. - output_verbose_link_cmd='echo'
  29426. -
  29427. - # Archives containing C++ object files must be created using
  29428. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  29429. - # necessary to make sure instantiated templates are included
  29430. - # in the archive.
  29431. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  29432. - ;;
  29433. - gcx*)
  29434. - # Green Hills C++ Compiler
  29435. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29436. -
  29437. - # The C++ compiler must be used to create the archive.
  29438. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  29439. - ;;
  29440. - *)
  29441. - # GNU C++ compiler with Solaris linker
  29442. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29443. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  29444. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  29445. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29446. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29447. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  29448. -
  29449. - # Commands to make compiler produce verbose output that lists
  29450. - # what "hidden" libraries, object files and flags are used when
  29451. - # linking a shared library.
  29452. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  29453. - else
  29454. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  29455. - # platform.
  29456. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29457. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29458. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  29459. -
  29460. - # Commands to make compiler produce verbose output that lists
  29461. - # what "hidden" libraries, object files and flags are used when
  29462. - # linking a shared library.
  29463. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  29464. - fi
  29465. -
  29466. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  29467. - fi
  29468. - ;;
  29469. - esac
  29470. - ;;
  29471. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  29472. - no_undefined_flag_CXX='${wl}-z,text'
  29473. - archive_cmds_need_lc_CXX=no
  29474. - hardcode_shlibpath_var_CXX=no
  29475. - runpath_var='LD_RUN_PATH'
  29476. -
  29477. - case $cc_basename in
  29478. - CC*)
  29479. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29480. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29481. - ;;
  29482. - *)
  29483. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29484. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29485. - ;;
  29486. - esac
  29487. - ;;
  29488. - sysv5* | sco3.2v5* | sco5v6*)
  29489. - # Note: We can NOT use -z defs as we might desire, because we do not
  29490. - # link with -lc, and that would cause any symbols used from libc to
  29491. - # always be unresolved, which means just about no library would
  29492. - # ever link correctly. If we're not using GNU ld we use -z text
  29493. - # though, which does catch some bad symbols but isn't as heavy-handed
  29494. - # as -z defs.
  29495. - # For security reasons, it is highly recommended that you always
  29496. - # use absolute paths for naming shared libraries, and exclude the
  29497. - # DT_RUNPATH tag from executables and libraries. But doing so
  29498. - # requires that you compile everything twice, which is a pain.
  29499. - # So that behaviour is only enabled if SCOABSPATH is set to a
  29500. - # non-empty value in the environment. Most likely only useful for
  29501. - # creating official distributions of packages.
  29502. - # This is a hack until libtool officially supports absolute path
  29503. - # names for shared libraries.
  29504. - no_undefined_flag_CXX='${wl}-z,text'
  29505. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  29506. - archive_cmds_need_lc_CXX=no
  29507. - hardcode_shlibpath_var_CXX=no
  29508. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  29509. - hardcode_libdir_separator_CXX=':'
  29510. - link_all_deplibs_CXX=yes
  29511. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  29512. - runpath_var='LD_RUN_PATH'
  29513. -
  29514. - case $cc_basename in
  29515. - CC*)
  29516. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29517. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29518. - ;;
  29519. - *)
  29520. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29521. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29522. - ;;
  29523. - esac
  29524. - ;;
  29525. - tandem*)
  29526. - case $cc_basename in
  29527. - NCC*)
  29528. - # NonStop-UX NCC 3.20
  29529. - # FIXME: insert proper C++ library support
  29530. - ld_shlibs_CXX=no
  29531. - ;;
  29532. - *)
  29533. - # FIXME: insert proper C++ library support
  29534. - ld_shlibs_CXX=no
  29535. - ;;
  29536. - esac
  29537. - ;;
  29538. - vxworks*)
  29539. - # FIXME: insert proper C++ library support
  29540. - ld_shlibs_CXX=no
  29541. - ;;
  29542. - *)
  29543. - # FIXME: insert proper C++ library support
  29544. - ld_shlibs_CXX=no
  29545. - ;;
  29546. -esac
  29547. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  29548. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  29549. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  29550. -
  29551. -GCC_CXX="$GXX"
  29552. -LD_CXX="$LD"
  29553. -
  29554. -
  29555. -cat > conftest.$ac_ext <<EOF
  29556. -class Foo
  29557. -{
  29558. -public:
  29559. - Foo (void) { a = 0; }
  29560. -private:
  29561. - int a;
  29562. -};
  29563. -EOF
  29564. -
  29565. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29566. - (eval $ac_compile) 2>&5
  29567. - ac_status=$?
  29568. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29569. - (exit $ac_status); }; then
  29570. - # Parse the compiler output and extract the necessary
  29571. - # objects, libraries and library flags.
  29572. -
  29573. - # Sentinel used to keep track of whether or not we are before
  29574. - # the conftest object file.
  29575. - pre_test_object_deps_done=no
  29576. -
  29577. - # The `*' in the case matches for architectures that use `case' in
  29578. - # $output_verbose_cmd can trigger glob expansion during the loop
  29579. - # eval without this substitution.
  29580. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  29581. -
  29582. - for p in `eval $output_verbose_link_cmd`; do
  29583. - case $p in
  29584. -
  29585. - -L* | -R* | -l*)
  29586. - # Some compilers place space between "-{L,R}" and the path.
  29587. - # Remove the space.
  29588. - if test $p = "-L" \
  29589. - || test $p = "-R"; then
  29590. - prev=$p
  29591. - continue
  29592. - else
  29593. - prev=
  29594. - fi
  29595. -
  29596. - if test "$pre_test_object_deps_done" = no; then
  29597. - case $p in
  29598. - -L* | -R*)
  29599. - # Internal compiler library paths should come after those
  29600. - # provided the user. The postdeps already come after the
  29601. - # user supplied libs so there is no need to process them.
  29602. - if test -z "$compiler_lib_search_path_CXX"; then
  29603. - compiler_lib_search_path_CXX="${prev}${p}"
  29604. - else
  29605. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  29606. - fi
  29607. - ;;
  29608. - # The "-l" case would never come before the object being
  29609. - # linked, so don't bother handling this case.
  29610. - esac
  29611. - else
  29612. - if test -z "$postdeps_CXX"; then
  29613. - postdeps_CXX="${prev}${p}"
  29614. - else
  29615. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  29616. - fi
  29617. - fi
  29618. - ;;
  29619. -
  29620. - *.$objext)
  29621. - # This assumes that the test object file only shows up
  29622. - # once in the compiler output.
  29623. - if test "$p" = "conftest.$objext"; then
  29624. - pre_test_object_deps_done=yes
  29625. - continue
  29626. - fi
  29627. -
  29628. - if test "$pre_test_object_deps_done" = no; then
  29629. - if test -z "$predep_objects_CXX"; then
  29630. - predep_objects_CXX="$p"
  29631. - else
  29632. - predep_objects_CXX="$predep_objects_CXX $p"
  29633. - fi
  29634. - else
  29635. - if test -z "$postdep_objects_CXX"; then
  29636. - postdep_objects_CXX="$p"
  29637. - else
  29638. - postdep_objects_CXX="$postdep_objects_CXX $p"
  29639. - fi
  29640. - fi
  29641. - ;;
  29642. -
  29643. - *) ;; # Ignore the rest.
  29644. -
  29645. - esac
  29646. - done
  29647. -
  29648. - # Clean up.
  29649. - rm -f a.out a.exe
  29650. -else
  29651. - echo "libtool.m4: error: problem compiling CXX test program"
  29652. -fi
  29653. -
  29654. -$rm -f confest.$objext
  29655. -
  29656. -# PORTME: override above test on systems where it is broken
  29657. -case $host_os in
  29658. -interix3*)
  29659. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  29660. - # hack all around it, let's just trust "g++" to DTRT.
  29661. - predep_objects_CXX=
  29662. - postdep_objects_CXX=
  29663. - postdeps_CXX=
  29664. - ;;
  29665. -
  29666. -solaris*)
  29667. - case $cc_basename in
  29668. - CC*)
  29669. - # Adding this requires a known-good setup of shared libraries for
  29670. - # Sun compiler versions before 5.6, else PIC objects from an old
  29671. - # archive will be linked into the output, leading to subtle bugs.
  29672. - postdeps_CXX='-lCstd -lCrun'
  29673. - ;;
  29674. - esac
  29675. - ;;
  29676. -esac
  29677. -
  29678. -
  29679. -case " $postdeps_CXX " in
  29680. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  29681. -esac
  29682. -
  29683. -lt_prog_compiler_wl_CXX=
  29684. -lt_prog_compiler_pic_CXX=
  29685. -lt_prog_compiler_static_CXX=
  29686. -
  29687. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  29688. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  29689. -
  29690. - # C++ specific cases for pic, static, wl, etc.
  29691. - if test "$GXX" = yes; then
  29692. - lt_prog_compiler_wl_CXX='-Wl,'
  29693. - lt_prog_compiler_static_CXX='-static'
  29694. -
  29695. - case $host_os in
  29696. - aix*)
  29697. - # All AIX code is PIC.
  29698. - if test "$host_cpu" = ia64; then
  29699. - # AIX 5 now supports IA64 processor
  29700. - lt_prog_compiler_static_CXX='-Bstatic'
  29701. - fi
  29702. - ;;
  29703. - amigaos*)
  29704. - # FIXME: we need at least 68020 code to build shared libraries, but
  29705. - # adding the `-m68020' flag to GCC prevents building anything better,
  29706. - # like `-m68040'.
  29707. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  29708. - ;;
  29709. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  29710. - # PIC is the default for these OSes.
  29711. - ;;
  29712. - mingw* | os2* | pw32*)
  29713. - # This hack is so that the source file can tell whether it is being
  29714. - # built for inclusion in a dll (and should export symbols for example).
  29715. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  29716. - ;;
  29717. - darwin* | rhapsody*)
  29718. - # PIC is the default on this platform
  29719. - # Common symbols not allowed in MH_DYLIB files
  29720. - lt_prog_compiler_pic_CXX='-fno-common'
  29721. - ;;
  29722. - *djgpp*)
  29723. - # DJGPP does not support shared libraries at all
  29724. - lt_prog_compiler_pic_CXX=
  29725. - ;;
  29726. - interix3*)
  29727. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29728. - # Instead, we relocate shared libraries at runtime.
  29729. - ;;
  29730. - sysv4*MP*)
  29731. - if test -d /usr/nec; then
  29732. - lt_prog_compiler_pic_CXX=-Kconform_pic
  29733. - fi
  29734. - ;;
  29735. - hpux*)
  29736. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29737. - # not for PA HP-UX.
  29738. - case $host_cpu in
  29739. - hppa*64*|ia64*)
  29740. - ;;
  29741. - *)
  29742. - lt_prog_compiler_pic_CXX='-fPIC'
  29743. - ;;
  29744. - esac
  29745. - ;;
  29746. - *)
  29747. - lt_prog_compiler_pic_CXX='-fPIC'
  29748. - ;;
  29749. - esac
  29750. - else
  29751. - case $host_os in
  29752. - aix4* | aix5*)
  29753. - # All AIX code is PIC.
  29754. - if test "$host_cpu" = ia64; then
  29755. - # AIX 5 now supports IA64 processor
  29756. - lt_prog_compiler_static_CXX='-Bstatic'
  29757. - else
  29758. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  29759. - fi
  29760. - ;;
  29761. - chorus*)
  29762. - case $cc_basename in
  29763. - cxch68*)
  29764. - # Green Hills C++ Compiler
  29765. - # _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"
  29766. - ;;
  29767. - esac
  29768. - ;;
  29769. - darwin*)
  29770. - # PIC is the default on this platform
  29771. - # Common symbols not allowed in MH_DYLIB files
  29772. - case $cc_basename in
  29773. - xlc*)
  29774. - lt_prog_compiler_pic_CXX='-qnocommon'
  29775. - lt_prog_compiler_wl_CXX='-Wl,'
  29776. - ;;
  29777. - esac
  29778. - ;;
  29779. - dgux*)
  29780. - case $cc_basename in
  29781. - ec++*)
  29782. - lt_prog_compiler_pic_CXX='-KPIC'
  29783. - ;;
  29784. - ghcx*)
  29785. - # Green Hills C++ Compiler
  29786. - lt_prog_compiler_pic_CXX='-pic'
  29787. - ;;
  29788. - *)
  29789. - ;;
  29790. - esac
  29791. - ;;
  29792. - freebsd* | kfreebsd*-gnu | dragonfly*)
  29793. - # FreeBSD uses GNU C++
  29794. - ;;
  29795. - hpux9* | hpux10* | hpux11*)
  29796. - case $cc_basename in
  29797. - CC*)
  29798. - lt_prog_compiler_wl_CXX='-Wl,'
  29799. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  29800. - if test "$host_cpu" != ia64; then
  29801. - lt_prog_compiler_pic_CXX='+Z'
  29802. - fi
  29803. - ;;
  29804. - aCC*)
  29805. - lt_prog_compiler_wl_CXX='-Wl,'
  29806. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  29807. - case $host_cpu in
  29808. - hppa*64*|ia64*)
  29809. - # +Z the default
  29810. - ;;
  29811. - *)
  29812. - lt_prog_compiler_pic_CXX='+Z'
  29813. - ;;
  29814. - esac
  29815. - ;;
  29816. - *)
  29817. - ;;
  29818. - esac
  29819. - ;;
  29820. - interix*)
  29821. - # This is c89, which is MS Visual C++ (no shared libs)
  29822. - # Anyone wants to do a port?
  29823. - ;;
  29824. - irix5* | irix6* | nonstopux*)
  29825. - case $cc_basename in
  29826. - CC*)
  29827. - lt_prog_compiler_wl_CXX='-Wl,'
  29828. - lt_prog_compiler_static_CXX='-non_shared'
  29829. - # CC pic flag -KPIC is the default.
  29830. - ;;
  29831. - *)
  29832. - ;;
  29833. - esac
  29834. - ;;
  29835. - linux*)
  29836. - case $cc_basename in
  29837. - KCC*)
  29838. - # KAI C++ Compiler
  29839. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29840. - lt_prog_compiler_pic_CXX='-fPIC'
  29841. - ;;
  29842. - icpc* | ecpc*)
  29843. - # Intel C++
  29844. - lt_prog_compiler_wl_CXX='-Wl,'
  29845. - lt_prog_compiler_pic_CXX='-KPIC'
  29846. - lt_prog_compiler_static_CXX='-static'
  29847. - ;;
  29848. - pgCC*)
  29849. - # Portland Group C++ compiler.
  29850. - lt_prog_compiler_wl_CXX='-Wl,'
  29851. - lt_prog_compiler_pic_CXX='-fpic'
  29852. - lt_prog_compiler_static_CXX='-Bstatic'
  29853. - ;;
  29854. - cxx*)
  29855. - # Compaq C++
  29856. - # Make sure the PIC flag is empty. It appears that all Alpha
  29857. - # Linux and Compaq Tru64 Unix objects are PIC.
  29858. - lt_prog_compiler_pic_CXX=
  29859. - lt_prog_compiler_static_CXX='-non_shared'
  29860. - ;;
  29861. - *)
  29862. - ;;
  29863. - esac
  29864. - ;;
  29865. - lynxos*)
  29866. - ;;
  29867. - m88k*)
  29868. - ;;
  29869. - mvs*)
  29870. - case $cc_basename in
  29871. - cxx*)
  29872. - lt_prog_compiler_pic_CXX='-W c,exportall'
  29873. - ;;
  29874. - *)
  29875. - ;;
  29876. - esac
  29877. - ;;
  29878. - netbsd*)
  29879. - ;;
  29880. - osf3* | osf4* | osf5*)
  29881. - case $cc_basename in
  29882. - KCC*)
  29883. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29884. - ;;
  29885. - RCC*)
  29886. - # Rational C++ 2.4.1
  29887. - lt_prog_compiler_pic_CXX='-pic'
  29888. - ;;
  29889. - cxx*)
  29890. - # Digital/Compaq C++
  29891. - lt_prog_compiler_wl_CXX='-Wl,'
  29892. - # Make sure the PIC flag is empty. It appears that all Alpha
  29893. - # Linux and Compaq Tru64 Unix objects are PIC.
  29894. - lt_prog_compiler_pic_CXX=
  29895. - lt_prog_compiler_static_CXX='-non_shared'
  29896. - ;;
  29897. - *)
  29898. - ;;
  29899. - esac
  29900. - ;;
  29901. - psos*)
  29902. - ;;
  29903. - solaris*)
  29904. - case $cc_basename in
  29905. - CC*)
  29906. - # Sun C++ 4.2, 5.x and Centerline C++
  29907. - lt_prog_compiler_pic_CXX='-KPIC'
  29908. - lt_prog_compiler_static_CXX='-Bstatic'
  29909. - lt_prog_compiler_wl_CXX='-Qoption ld '
  29910. - ;;
  29911. - gcx*)
  29912. - # Green Hills C++ Compiler
  29913. - lt_prog_compiler_pic_CXX='-PIC'
  29914. - ;;
  29915. - *)
  29916. - ;;
  29917. - esac
  29918. - ;;
  29919. - sunos4*)
  29920. - case $cc_basename in
  29921. - CC*)
  29922. - # Sun C++ 4.x
  29923. - lt_prog_compiler_pic_CXX='-pic'
  29924. - lt_prog_compiler_static_CXX='-Bstatic'
  29925. - ;;
  29926. - lcc*)
  29927. - # Lucid
  29928. - lt_prog_compiler_pic_CXX='-pic'
  29929. - ;;
  29930. - *)
  29931. - ;;
  29932. - esac
  29933. - ;;
  29934. - tandem*)
  29935. - case $cc_basename in
  29936. - NCC*)
  29937. - # NonStop-UX NCC 3.20
  29938. - lt_prog_compiler_pic_CXX='-KPIC'
  29939. - ;;
  29940. - *)
  29941. - ;;
  29942. - esac
  29943. - ;;
  29944. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  29945. - case $cc_basename in
  29946. - CC*)
  29947. - lt_prog_compiler_wl_CXX='-Wl,'
  29948. - lt_prog_compiler_pic_CXX='-KPIC'
  29949. - lt_prog_compiler_static_CXX='-Bstatic'
  29950. - ;;
  29951. - esac
  29952. - ;;
  29953. - vxworks*)
  29954. - ;;
  29955. - *)
  29956. - lt_prog_compiler_can_build_shared_CXX=no
  29957. - ;;
  29958. - esac
  29959. - fi
  29960. -
  29961. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  29962. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  29963. -
  29964. -#
  29965. -# Check to make sure the PIC flag actually works.
  29966. -#
  29967. -if test -n "$lt_prog_compiler_pic_CXX"; then
  29968. -
  29969. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  29970. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  29971. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  29972. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29973. -else
  29974. - lt_prog_compiler_pic_works_CXX=no
  29975. - ac_outfile=conftest.$ac_objext
  29976. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  29977. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  29978. - # Insert the option either (1) after the last *FLAGS variable, or
  29979. - # (2) before a word containing "conftest.", or (3) at the end.
  29980. - # Note that $ac_compile itself does not contain backslashes and begins
  29981. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29982. - # The option is referenced via a variable to avoid confusing sed.
  29983. - lt_compile=`echo "$ac_compile" | $SED \
  29984. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29985. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29986. - -e 's:$: $lt_compiler_flag:'`
  29987. - (eval echo "\"\$as_me:12761: $lt_compile\"" >&5)
  29988. - (eval "$lt_compile" 2>conftest.err)
  29989. - ac_status=$?
  29990. - cat conftest.err >&5
  29991. - echo "$as_me:12765: \$? = $ac_status" >&5
  29992. - if (exit $ac_status) && test -s "$ac_outfile"; then
  29993. - # The compiler can only warn and ignore the option if not recognized
  29994. - # So say no if there are warnings other than the usual output.
  29995. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29996. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29997. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29998. - lt_prog_compiler_pic_works_CXX=yes
  29999. - fi
  30000. - fi
  30001. - $rm conftest*
  30002. -
  30003. -fi
  30004. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  30005. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  30006. -
  30007. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  30008. - case $lt_prog_compiler_pic_CXX in
  30009. - "" | " "*) ;;
  30010. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  30011. - esac
  30012. -else
  30013. - lt_prog_compiler_pic_CXX=
  30014. - lt_prog_compiler_can_build_shared_CXX=no
  30015. -fi
  30016. -
  30017. -fi
  30018. -case $host_os in
  30019. - # For platforms which do not support PIC, -DPIC is meaningless:
  30020. - *djgpp*)
  30021. - lt_prog_compiler_pic_CXX=
  30022. - ;;
  30023. - *)
  30024. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  30025. - ;;
  30026. -esac
  30027. -
  30028. -#
  30029. -# Check to make sure the static flag actually works.
  30030. -#
  30031. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  30032. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30033. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  30034. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  30035. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30036. -else
  30037. - lt_prog_compiler_static_works_CXX=no
  30038. - save_LDFLAGS="$LDFLAGS"
  30039. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  30040. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  30041. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30042. - # The linker can only warn and ignore the option if not recognized
  30043. - # So say no if there are warnings
  30044. - if test -s conftest.err; then
  30045. - # Append any errors to the config.log.
  30046. - cat conftest.err 1>&5
  30047. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30048. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30049. - if diff conftest.exp conftest.er2 >/dev/null; then
  30050. - lt_prog_compiler_static_works_CXX=yes
  30051. - fi
  30052. - else
  30053. - lt_prog_compiler_static_works_CXX=yes
  30054. - fi
  30055. - fi
  30056. - $rm conftest*
  30057. - LDFLAGS="$save_LDFLAGS"
  30058. -
  30059. -fi
  30060. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  30061. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  30062. -
  30063. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  30064. - :
  30065. -else
  30066. - lt_prog_compiler_static_CXX=
  30067. -fi
  30068. -
  30069. -
  30070. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30071. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  30072. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  30073. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30074. -else
  30075. - lt_cv_prog_compiler_c_o_CXX=no
  30076. - $rm -r conftest 2>/dev/null
  30077. - mkdir conftest
  30078. - cd conftest
  30079. - mkdir out
  30080. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30081. -
  30082. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  30083. - # Insert the option either (1) after the last *FLAGS variable, or
  30084. - # (2) before a word containing "conftest.", or (3) at the end.
  30085. - # Note that $ac_compile itself does not contain backslashes and begins
  30086. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30087. - lt_compile=`echo "$ac_compile" | $SED \
  30088. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30089. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30090. - -e 's:$: $lt_compiler_flag:'`
  30091. - (eval echo "\"\$as_me:12865: $lt_compile\"" >&5)
  30092. - (eval "$lt_compile" 2>out/conftest.err)
  30093. - ac_status=$?
  30094. - cat out/conftest.err >&5
  30095. - echo "$as_me:12869: \$? = $ac_status" >&5
  30096. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30097. - then
  30098. - # The compiler can only warn and ignore the option if not recognized
  30099. - # So say no if there are warnings
  30100. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30101. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30102. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30103. - lt_cv_prog_compiler_c_o_CXX=yes
  30104. - fi
  30105. - fi
  30106. - chmod u+w . 2>&5
  30107. - $rm conftest*
  30108. - # SGI C++ compiler will create directory out/ii_files/ for
  30109. - # template instantiation
  30110. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  30111. - $rm out/* && rmdir out
  30112. - cd ..
  30113. - rmdir conftest
  30114. - $rm conftest*
  30115. -
  30116. -fi
  30117. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  30118. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  30119. -
  30120. -
  30121. -hard_links="nottested"
  30122. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  30123. - # do not overwrite the value of need_locks provided by the user
  30124. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  30125. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  30126. - hard_links=yes
  30127. - $rm conftest*
  30128. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30129. - touch conftest.a
  30130. - ln conftest.a conftest.b 2>&5 || hard_links=no
  30131. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30132. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  30133. -echo "${ECHO_T}$hard_links" >&6; }
  30134. - if test "$hard_links" = no; then
  30135. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30136. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30137. - need_locks=warn
  30138. - fi
  30139. -else
  30140. - need_locks=no
  30141. -fi
  30142. -
  30143. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30144. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  30145. -
  30146. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30147. - case $host_os in
  30148. - aix4* | aix5*)
  30149. - # If we're using GNU nm, then we don't want the "-C" option.
  30150. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30151. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  30152. - 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'
  30153. - else
  30154. - 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'
  30155. - fi
  30156. - ;;
  30157. - pw32*)
  30158. - export_symbols_cmds_CXX="$ltdll_cmds"
  30159. - ;;
  30160. - cygwin* | mingw*)
  30161. - 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'
  30162. - ;;
  30163. - *)
  30164. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30165. - ;;
  30166. - esac
  30167. -
  30168. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  30169. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  30170. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  30171. -
  30172. -#
  30173. -# Do we need to explicitly link libc?
  30174. -#
  30175. -case "x$archive_cmds_need_lc_CXX" in
  30176. -x|xyes)
  30177. - # Assume -lc should be added
  30178. - archive_cmds_need_lc_CXX=yes
  30179. -
  30180. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  30181. - case $archive_cmds_CXX in
  30182. - *'~'*)
  30183. - # FIXME: we may have to deal with multi-command sequences.
  30184. - ;;
  30185. - '$CC '*)
  30186. - # Test whether the compiler implicitly links with -lc since on some
  30187. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30188. - # to ld, don't add -lc before -lgcc.
  30189. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  30190. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  30191. - $rm conftest*
  30192. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30193. -
  30194. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30195. - (eval $ac_compile) 2>&5
  30196. - ac_status=$?
  30197. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30198. - (exit $ac_status); } 2>conftest.err; then
  30199. - soname=conftest
  30200. - lib=conftest
  30201. - libobjs=conftest.$ac_objext
  30202. - deplibs=
  30203. - wl=$lt_prog_compiler_wl_CXX
  30204. - pic_flag=$lt_prog_compiler_pic_CXX
  30205. - compiler_flags=-v
  30206. - linker_flags=-v
  30207. - verstring=
  30208. - output_objdir=.
  30209. - libname=conftest
  30210. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  30211. - allow_undefined_flag_CXX=
  30212. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  30213. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30214. - ac_status=$?
  30215. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30216. - (exit $ac_status); }
  30217. - then
  30218. - archive_cmds_need_lc_CXX=no
  30219. - else
  30220. - archive_cmds_need_lc_CXX=yes
  30221. - fi
  30222. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  30223. - else
  30224. - cat conftest.err 1>&5
  30225. - fi
  30226. - $rm conftest*
  30227. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  30228. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  30229. - ;;
  30230. - esac
  30231. - fi
  30232. - ;;
  30233. -esac
  30234. -
  30235. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  30236. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  30237. -library_names_spec=
  30238. -libname_spec='lib$name'
  30239. -soname_spec=
  30240. -shrext_cmds=".so"
  30241. -postinstall_cmds=
  30242. -postuninstall_cmds=
  30243. -finish_cmds=
  30244. -finish_eval=
  30245. -shlibpath_var=
  30246. -shlibpath_overrides_runpath=unknown
  30247. -version_type=none
  30248. -dynamic_linker="$host_os ld.so"
  30249. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  30250. -if test "$GCC" = yes; then
  30251. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  30252. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  30253. - # if the path contains ";" then we assume it to be the separator
  30254. - # otherwise default to the standard path separator (i.e. ":") - it is
  30255. - # assumed that no part of a normal pathname contains ";" but that should
  30256. - # okay in the real world where ";" in dirpaths is itself problematic.
  30257. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  30258. - else
  30259. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  30260. - fi
  30261. -else
  30262. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  30263. -fi
  30264. -need_lib_prefix=unknown
  30265. -hardcode_into_libs=no
  30266. -
  30267. -# when you set need_version to no, make sure it does not cause -set_version
  30268. -# flags to be left without arguments
  30269. -need_version=unknown
  30270. -
  30271. -case $host_os in
  30272. -aix3*)
  30273. - version_type=linux
  30274. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  30275. - shlibpath_var=LIBPATH
  30276. -
  30277. - # AIX 3 has no versioning support, so we append a major version to the name.
  30278. - soname_spec='${libname}${release}${shared_ext}$major'
  30279. - ;;
  30280. -
  30281. -aix4* | aix5*)
  30282. - version_type=linux
  30283. - need_lib_prefix=no
  30284. - need_version=no
  30285. - hardcode_into_libs=yes
  30286. - if test "$host_cpu" = ia64; then
  30287. - # AIX 5 supports IA64
  30288. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  30289. - shlibpath_var=LD_LIBRARY_PATH
  30290. - else
  30291. - # With GCC up to 2.95.x, collect2 would create an import file
  30292. - # for dependence libraries. The import file would start with
  30293. - # the line `#! .'. This would cause the generated library to
  30294. - # depend on `.', always an invalid library. This was fixed in
  30295. - # development snapshots of GCC prior to 3.0.
  30296. - case $host_os in
  30297. - aix4 | aix4.[01] | aix4.[01].*)
  30298. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  30299. - echo ' yes '
  30300. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  30301. - :
  30302. - else
  30303. - can_build_shared=no
  30304. - fi
  30305. - ;;
  30306. - esac
  30307. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  30308. - # soname into executable. Probably we can add versioning support to
  30309. - # collect2, so additional links can be useful in future.
  30310. - if test "$aix_use_runtimelinking" = yes; then
  30311. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  30312. - # instead of lib<name>.a to let people know that these are not
  30313. - # typical AIX shared libraries.
  30314. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30315. - else
  30316. - # We preserve .a as extension for shared libraries through AIX4.2
  30317. - # and later when we are not doing run time linking.
  30318. - library_names_spec='${libname}${release}.a $libname.a'
  30319. - soname_spec='${libname}${release}${shared_ext}$major'
  30320. - fi
  30321. - shlibpath_var=LIBPATH
  30322. - fi
  30323. - ;;
  30324. -
  30325. -amigaos*)
  30326. - library_names_spec='$libname.ixlibrary $libname.a'
  30327. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  30328. - 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'
  30329. - ;;
  30330. -
  30331. -beos*)
  30332. - library_names_spec='${libname}${shared_ext}'
  30333. - dynamic_linker="$host_os ld.so"
  30334. - shlibpath_var=LIBRARY_PATH
  30335. - ;;
  30336. -
  30337. -bsdi[45]*)
  30338. - version_type=linux
  30339. - need_version=no
  30340. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30341. - soname_spec='${libname}${release}${shared_ext}$major'
  30342. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  30343. - shlibpath_var=LD_LIBRARY_PATH
  30344. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  30345. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  30346. - # the default ld.so.conf also contains /usr/contrib/lib and
  30347. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  30348. - # libtool to hard-code these into programs
  30349. - ;;
  30350. -
  30351. -cygwin* | mingw* | pw32*)
  30352. - version_type=windows
  30353. - shrext_cmds=".dll"
  30354. - need_version=no
  30355. - need_lib_prefix=no
  30356. -
  30357. - case $GCC,$host_os in
  30358. - yes,cygwin* | yes,mingw* | yes,pw32*)
  30359. - library_names_spec='$libname.dll.a'
  30360. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  30361. - postinstall_cmds='base_file=`basename \${file}`~
  30362. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  30363. - dldir=$destdir/`dirname \$dlpath`~
  30364. - test -d \$dldir || mkdir -p \$dldir~
  30365. - $install_prog $dir/$dlname \$dldir/$dlname~
  30366. - chmod a+x \$dldir/$dlname'
  30367. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  30368. - dlpath=$dir/\$dldll~
  30369. - $rm \$dlpath'
  30370. - shlibpath_overrides_runpath=yes
  30371. -
  30372. - case $host_os in
  30373. - cygwin*)
  30374. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  30375. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30376. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  30377. - ;;
  30378. - mingw*)
  30379. - # MinGW DLLs use traditional 'lib' prefix
  30380. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30381. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  30382. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  30383. - # It is most probably a Windows format PATH printed by
  30384. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  30385. - # path with ; separators, and with drive letters. We can handle the
  30386. - # drive letters (cygwin fileutils understands them), so leave them,
  30387. - # especially as we might pass files found there to a mingw objdump,
  30388. - # which wouldn't understand a cygwinified path. Ahh.
  30389. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  30390. - else
  30391. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  30392. - fi
  30393. - ;;
  30394. - pw32*)
  30395. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  30396. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30397. - ;;
  30398. - esac
  30399. - ;;
  30400. -
  30401. - *)
  30402. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  30403. - ;;
  30404. - esac
  30405. - dynamic_linker='Win32 ld.exe'
  30406. - # FIXME: first we should search . and the directory the executable is in
  30407. - shlibpath_var=PATH
  30408. - ;;
  30409. -
  30410. -darwin* | rhapsody*)
  30411. - dynamic_linker="$host_os dyld"
  30412. - version_type=darwin
  30413. - need_lib_prefix=no
  30414. - need_version=no
  30415. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  30416. - soname_spec='${libname}${release}${major}$shared_ext'
  30417. - shlibpath_overrides_runpath=yes
  30418. - shlibpath_var=DYLD_LIBRARY_PATH
  30419. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  30420. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  30421. - if test "$GCC" = yes; then
  30422. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  30423. - else
  30424. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  30425. - fi
  30426. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  30427. - ;;
  30428. -
  30429. -dgux*)
  30430. - version_type=linux
  30431. - need_lib_prefix=no
  30432. - need_version=no
  30433. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  30434. - soname_spec='${libname}${release}${shared_ext}$major'
  30435. - shlibpath_var=LD_LIBRARY_PATH
  30436. - ;;
  30437. -
  30438. -freebsd1*)
  30439. - dynamic_linker=no
  30440. - ;;
  30441. -
  30442. -kfreebsd*-gnu)
  30443. - version_type=linux
  30444. - need_lib_prefix=no
  30445. - need_version=no
  30446. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30447. - soname_spec='${libname}${release}${shared_ext}$major'
  30448. - shlibpath_var=LD_LIBRARY_PATH
  30449. - shlibpath_overrides_runpath=no
  30450. - hardcode_into_libs=yes
  30451. - dynamic_linker='GNU ld.so'
  30452. - ;;
  30453. -
  30454. -freebsd* | dragonfly*)
  30455. - # DragonFly does not have aout. When/if they implement a new
  30456. - # versioning mechanism, adjust this.
  30457. - if test -x /usr/bin/objformat; then
  30458. - objformat=`/usr/bin/objformat`
  30459. - else
  30460. - case $host_os in
  30461. - freebsd[123]*) objformat=aout ;;
  30462. - *) objformat=elf ;;
  30463. - esac
  30464. - fi
  30465. - version_type=freebsd-$objformat
  30466. - case $version_type in
  30467. - freebsd-elf*)
  30468. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30469. - need_version=no
  30470. - need_lib_prefix=no
  30471. - ;;
  30472. - freebsd-*)
  30473. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  30474. - need_version=yes
  30475. - ;;
  30476. - esac
  30477. - shlibpath_var=LD_LIBRARY_PATH
  30478. - case $host_os in
  30479. - freebsd2*)
  30480. - shlibpath_overrides_runpath=yes
  30481. - ;;
  30482. - freebsd3.[01]* | freebsdelf3.[01]*)
  30483. - shlibpath_overrides_runpath=yes
  30484. - hardcode_into_libs=yes
  30485. - ;;
  30486. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  30487. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  30488. - shlibpath_overrides_runpath=no
  30489. - hardcode_into_libs=yes
  30490. - ;;
  30491. - freebsd*) # from 4.6 on
  30492. - shlibpath_overrides_runpath=yes
  30493. - hardcode_into_libs=yes
  30494. - ;;
  30495. - esac
  30496. - ;;
  30497. -
  30498. -gnu*)
  30499. - version_type=linux
  30500. - need_lib_prefix=no
  30501. - need_version=no
  30502. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  30503. - soname_spec='${libname}${release}${shared_ext}$major'
  30504. - shlibpath_var=LD_LIBRARY_PATH
  30505. - hardcode_into_libs=yes
  30506. - ;;
  30507. -
  30508. -hpux9* | hpux10* | hpux11*)
  30509. - # Give a soname corresponding to the major version so that dld.sl refuses to
  30510. - # link against other versions.
  30511. - version_type=sunos
  30512. - need_lib_prefix=no
  30513. - need_version=no
  30514. - case $host_cpu in
  30515. - ia64*)
  30516. - shrext_cmds='.so'
  30517. - hardcode_into_libs=yes
  30518. - dynamic_linker="$host_os dld.so"
  30519. - shlibpath_var=LD_LIBRARY_PATH
  30520. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30521. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30522. - soname_spec='${libname}${release}${shared_ext}$major'
  30523. - if test "X$HPUX_IA64_MODE" = X32; then
  30524. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  30525. - else
  30526. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  30527. - fi
  30528. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30529. - ;;
  30530. - hppa*64*)
  30531. - shrext_cmds='.sl'
  30532. - hardcode_into_libs=yes
  30533. - dynamic_linker="$host_os dld.sl"
  30534. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  30535. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30536. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30537. - soname_spec='${libname}${release}${shared_ext}$major'
  30538. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  30539. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30540. - ;;
  30541. - *)
  30542. - shrext_cmds='.sl'
  30543. - dynamic_linker="$host_os dld.sl"
  30544. - shlibpath_var=SHLIB_PATH
  30545. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  30546. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30547. - soname_spec='${libname}${release}${shared_ext}$major'
  30548. - ;;
  30549. - esac
  30550. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  30551. - postinstall_cmds='chmod 555 $lib'
  30552. - ;;
  30553. -
  30554. -interix3*)
  30555. - version_type=linux
  30556. - need_lib_prefix=no
  30557. - need_version=no
  30558. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30559. - soname_spec='${libname}${release}${shared_ext}$major'
  30560. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  30561. - shlibpath_var=LD_LIBRARY_PATH
  30562. - shlibpath_overrides_runpath=no
  30563. - hardcode_into_libs=yes
  30564. - ;;
  30565. -
  30566. -irix5* | irix6* | nonstopux*)
  30567. - case $host_os in
  30568. - nonstopux*) version_type=nonstopux ;;
  30569. - *)
  30570. - if test "$lt_cv_prog_gnu_ld" = yes; then
  30571. - version_type=linux
  30572. - else
  30573. - version_type=irix
  30574. - fi ;;
  30575. - esac
  30576. - need_lib_prefix=no
  30577. - need_version=no
  30578. - soname_spec='${libname}${release}${shared_ext}$major'
  30579. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  30580. - case $host_os in
  30581. - irix5* | nonstopux*)
  30582. - libsuff= shlibsuff=
  30583. - ;;
  30584. - *)
  30585. - case $LD in # libtool.m4 will add one of these switches to LD
  30586. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  30587. - libsuff= shlibsuff= libmagic=32-bit;;
  30588. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  30589. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  30590. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  30591. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  30592. - *) libsuff= shlibsuff= libmagic=never-match;;
  30593. - esac
  30594. - ;;
  30595. - esac
  30596. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  30597. - shlibpath_overrides_runpath=no
  30598. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  30599. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  30600. - hardcode_into_libs=yes
  30601. - ;;
  30602. -
  30603. -# No shared lib support for Linux oldld, aout, or coff.
  30604. -linux*oldld* | linux*aout* | linux*coff*)
  30605. - dynamic_linker=no
  30606. - ;;
  30607. -
  30608. -# This must be Linux ELF.
  30609. -linux*)
  30610. - version_type=linux
  30611. - need_lib_prefix=no
  30612. - need_version=no
  30613. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30614. - soname_spec='${libname}${release}${shared_ext}$major'
  30615. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  30616. - shlibpath_var=LD_LIBRARY_PATH
  30617. - shlibpath_overrides_runpath=no
  30618. - # This implies no fast_install, which is unacceptable.
  30619. - # Some rework will be needed to allow for fast_install
  30620. - # before this can be enabled.
  30621. - hardcode_into_libs=yes
  30622. -
  30623. - # Append ld.so.conf contents to the search path
  30624. - if test -f /etc/ld.so.conf; then
  30625. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  30626. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  30627. - fi
  30628. -
  30629. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  30630. - # powerpc, because MkLinux only supported shared libraries with the
  30631. - # GNU dynamic linker. Since this was broken with cross compilers,
  30632. - # most powerpc-linux boxes support dynamic linking these days and
  30633. - # people can always --disable-shared, the test was removed, and we
  30634. - # assume the GNU/Linux dynamic linker is in use.
  30635. - dynamic_linker='GNU/Linux ld.so'
  30636. - ;;
  30637. -
  30638. -knetbsd*-gnu)
  30639. - version_type=linux
  30640. - need_lib_prefix=no
  30641. - need_version=no
  30642. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30643. - soname_spec='${libname}${release}${shared_ext}$major'
  30644. - shlibpath_var=LD_LIBRARY_PATH
  30645. - shlibpath_overrides_runpath=no
  30646. - hardcode_into_libs=yes
  30647. - dynamic_linker='GNU ld.so'
  30648. - ;;
  30649. -
  30650. -netbsd*)
  30651. - version_type=sunos
  30652. - need_lib_prefix=no
  30653. - need_version=no
  30654. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30655. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30656. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30657. - dynamic_linker='NetBSD (a.out) ld.so'
  30658. - else
  30659. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30660. - soname_spec='${libname}${release}${shared_ext}$major'
  30661. - dynamic_linker='NetBSD ld.elf_so'
  30662. - fi
  30663. - shlibpath_var=LD_LIBRARY_PATH
  30664. - shlibpath_overrides_runpath=yes
  30665. - hardcode_into_libs=yes
  30666. - ;;
  30667. -
  30668. -newsos6)
  30669. - version_type=linux
  30670. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30671. - shlibpath_var=LD_LIBRARY_PATH
  30672. - shlibpath_overrides_runpath=yes
  30673. - ;;
  30674. -
  30675. -nto-qnx*)
  30676. - version_type=linux
  30677. - need_lib_prefix=no
  30678. - need_version=no
  30679. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30680. - soname_spec='${libname}${release}${shared_ext}$major'
  30681. - shlibpath_var=LD_LIBRARY_PATH
  30682. - shlibpath_overrides_runpath=yes
  30683. - ;;
  30684. -
  30685. -openbsd*)
  30686. - version_type=sunos
  30687. - sys_lib_dlsearch_path_spec="/usr/lib"
  30688. - need_lib_prefix=no
  30689. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  30690. - case $host_os in
  30691. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  30692. - *) need_version=no ;;
  30693. - esac
  30694. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30695. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30696. - shlibpath_var=LD_LIBRARY_PATH
  30697. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30698. - case $host_os in
  30699. - openbsd2.[89] | openbsd2.[89].*)
  30700. - shlibpath_overrides_runpath=no
  30701. - ;;
  30702. - *)
  30703. - shlibpath_overrides_runpath=yes
  30704. - ;;
  30705. - esac
  30706. - else
  30707. - shlibpath_overrides_runpath=yes
  30708. - fi
  30709. - ;;
  30710. -
  30711. -os2*)
  30712. - libname_spec='$name'
  30713. - shrext_cmds=".dll"
  30714. - need_lib_prefix=no
  30715. - library_names_spec='$libname${shared_ext} $libname.a'
  30716. - dynamic_linker='OS/2 ld.exe'
  30717. - shlibpath_var=LIBPATH
  30718. - ;;
  30719. -
  30720. -osf3* | osf4* | osf5*)
  30721. - version_type=osf
  30722. - need_lib_prefix=no
  30723. - need_version=no
  30724. - soname_spec='${libname}${release}${shared_ext}$major'
  30725. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30726. - shlibpath_var=LD_LIBRARY_PATH
  30727. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  30728. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  30729. - ;;
  30730. -
  30731. -solaris*)
  30732. - version_type=linux
  30733. - need_lib_prefix=no
  30734. - need_version=no
  30735. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30736. - soname_spec='${libname}${release}${shared_ext}$major'
  30737. - shlibpath_var=LD_LIBRARY_PATH
  30738. - shlibpath_overrides_runpath=yes
  30739. - hardcode_into_libs=yes
  30740. - # ldd complains unless libraries are executable
  30741. - postinstall_cmds='chmod +x $lib'
  30742. - ;;
  30743. -
  30744. -sunos4*)
  30745. - version_type=sunos
  30746. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30747. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  30748. - shlibpath_var=LD_LIBRARY_PATH
  30749. - shlibpath_overrides_runpath=yes
  30750. - if test "$with_gnu_ld" = yes; then
  30751. - need_lib_prefix=no
  30752. - fi
  30753. - need_version=yes
  30754. - ;;
  30755. -
  30756. -sysv4 | sysv4.3*)
  30757. - version_type=linux
  30758. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30759. - soname_spec='${libname}${release}${shared_ext}$major'
  30760. - shlibpath_var=LD_LIBRARY_PATH
  30761. - case $host_vendor in
  30762. - sni)
  30763. - shlibpath_overrides_runpath=no
  30764. - need_lib_prefix=no
  30765. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  30766. - runpath_var=LD_RUN_PATH
  30767. - ;;
  30768. - siemens)
  30769. - need_lib_prefix=no
  30770. - ;;
  30771. - motorola)
  30772. - need_lib_prefix=no
  30773. - need_version=no
  30774. - shlibpath_overrides_runpath=no
  30775. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  30776. - ;;
  30777. - esac
  30778. - ;;
  30779. -
  30780. -sysv4*MP*)
  30781. - if test -d /usr/nec ;then
  30782. - version_type=linux
  30783. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  30784. - soname_spec='$libname${shared_ext}.$major'
  30785. - shlibpath_var=LD_LIBRARY_PATH
  30786. - fi
  30787. - ;;
  30788. -
  30789. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  30790. - version_type=freebsd-elf
  30791. - need_lib_prefix=no
  30792. - need_version=no
  30793. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30794. - soname_spec='${libname}${release}${shared_ext}$major'
  30795. - shlibpath_var=LD_LIBRARY_PATH
  30796. - hardcode_into_libs=yes
  30797. - if test "$with_gnu_ld" = yes; then
  30798. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  30799. - shlibpath_overrides_runpath=no
  30800. - else
  30801. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  30802. - shlibpath_overrides_runpath=yes
  30803. - case $host_os in
  30804. - sco3.2v5*)
  30805. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  30806. - ;;
  30807. - esac
  30808. - fi
  30809. - sys_lib_dlsearch_path_spec='/usr/lib'
  30810. - ;;
  30811. -
  30812. -uts4*)
  30813. - version_type=linux
  30814. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30815. - soname_spec='${libname}${release}${shared_ext}$major'
  30816. - shlibpath_var=LD_LIBRARY_PATH
  30817. - ;;
  30818. -
  30819. -*)
  30820. - dynamic_linker=no
  30821. - ;;
  30822. -esac
  30823. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  30824. -echo "${ECHO_T}$dynamic_linker" >&6; }
  30825. -test "$dynamic_linker" = no && can_build_shared=no
  30826. -
  30827. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  30828. -if test "$GCC" = yes; then
  30829. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  30830. -fi
  30831. -
  30832. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  30833. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  30834. -hardcode_action_CXX=
  30835. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  30836. - test -n "$runpath_var_CXX" || \
  30837. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  30838. -
  30839. - # We can hardcode non-existant directories.
  30840. - if test "$hardcode_direct_CXX" != no &&
  30841. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  30842. - # have to relink, otherwise we might link with an installed library
  30843. - # when we should be linking with a yet-to-be-installed one
  30844. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  30845. - test "$hardcode_minus_L_CXX" != no; then
  30846. - # Linking always hardcodes the temporary library directory.
  30847. - hardcode_action_CXX=relink
  30848. - else
  30849. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  30850. - hardcode_action_CXX=immediate
  30851. - fi
  30852. -else
  30853. - # We cannot hardcode anything, or else we can only hardcode existing
  30854. - # directories.
  30855. - hardcode_action_CXX=unsupported
  30856. -fi
  30857. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  30858. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  30859. -
  30860. -if test "$hardcode_action_CXX" = relink; then
  30861. - # Fast installation is not supported
  30862. - enable_fast_install=no
  30863. -elif test "$shlibpath_overrides_runpath" = yes ||
  30864. - test "$enable_shared" = no; then
  30865. - # Fast installation is not necessary
  30866. - enable_fast_install=needless
  30867. -fi
  30868. -
  30869. -
  30870. -# The else clause should only fire when bootstrapping the
  30871. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30872. -# with your package, and you will get complaints that there are
  30873. -# no rules to generate ltmain.sh.
  30874. -if test -f "$ltmain"; then
  30875. - # See if we are running on zsh, and set the options which allow our commands through
  30876. - # without removal of \ escapes.
  30877. - if test -n "${ZSH_VERSION+set}" ; then
  30878. - setopt NO_GLOB_SUBST
  30879. - fi
  30880. - # Now quote all the things that may contain metacharacters while being
  30881. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30882. - # variables and quote the copies for generation of the libtool script.
  30883. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  30884. - SED SHELL STRIP \
  30885. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30886. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30887. - deplibs_check_method reload_flag reload_cmds need_locks \
  30888. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30889. - lt_cv_sys_global_symbol_to_c_name_address \
  30890. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30891. - old_postinstall_cmds old_postuninstall_cmds \
  30892. - compiler_CXX \
  30893. - CC_CXX \
  30894. - LD_CXX \
  30895. - lt_prog_compiler_wl_CXX \
  30896. - lt_prog_compiler_pic_CXX \
  30897. - lt_prog_compiler_static_CXX \
  30898. - lt_prog_compiler_no_builtin_flag_CXX \
  30899. - export_dynamic_flag_spec_CXX \
  30900. - thread_safe_flag_spec_CXX \
  30901. - whole_archive_flag_spec_CXX \
  30902. - enable_shared_with_static_runtimes_CXX \
  30903. - old_archive_cmds_CXX \
  30904. - old_archive_from_new_cmds_CXX \
  30905. - predep_objects_CXX \
  30906. - postdep_objects_CXX \
  30907. - predeps_CXX \
  30908. - postdeps_CXX \
  30909. - compiler_lib_search_path_CXX \
  30910. - archive_cmds_CXX \
  30911. - archive_expsym_cmds_CXX \
  30912. - postinstall_cmds_CXX \
  30913. - postuninstall_cmds_CXX \
  30914. - old_archive_from_expsyms_cmds_CXX \
  30915. - allow_undefined_flag_CXX \
  30916. - no_undefined_flag_CXX \
  30917. - export_symbols_cmds_CXX \
  30918. - hardcode_libdir_flag_spec_CXX \
  30919. - hardcode_libdir_flag_spec_ld_CXX \
  30920. - hardcode_libdir_separator_CXX \
  30921. - hardcode_automatic_CXX \
  30922. - module_cmds_CXX \
  30923. - module_expsym_cmds_CXX \
  30924. - lt_cv_prog_compiler_c_o_CXX \
  30925. - exclude_expsyms_CXX \
  30926. - include_expsyms_CXX; do
  30927. -
  30928. - case $var in
  30929. - old_archive_cmds_CXX | \
  30930. - old_archive_from_new_cmds_CXX | \
  30931. - archive_cmds_CXX | \
  30932. - archive_expsym_cmds_CXX | \
  30933. - module_cmds_CXX | \
  30934. - module_expsym_cmds_CXX | \
  30935. - old_archive_from_expsyms_cmds_CXX | \
  30936. - export_symbols_cmds_CXX | \
  30937. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30938. - postinstall_cmds | postuninstall_cmds | \
  30939. - old_postinstall_cmds | old_postuninstall_cmds | \
  30940. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30941. - # Double-quote double-evaled strings.
  30942. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30943. - ;;
  30944. - *)
  30945. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30946. - ;;
  30947. - esac
  30948. - done
  30949. -
  30950. - case $lt_echo in
  30951. - *'\$0 --fallback-echo"')
  30952. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30953. - ;;
  30954. - esac
  30955. -
  30956. -cfgfile="$ofile"
  30957. -
  30958. - cat <<__EOF__ >> "$cfgfile"
  30959. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  30960. -
  30961. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30962. -
  30963. -# Shell to use when invoking shell scripts.
  30964. -SHELL=$lt_SHELL
  30965. -
  30966. -# Whether or not to build shared libraries.
  30967. -build_libtool_libs=$enable_shared
  30968. -
  30969. -# Whether or not to build static libraries.
  30970. -build_old_libs=$enable_static
  30971. -
  30972. -# Whether or not to add -lc for building shared libraries.
  30973. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  30974. -
  30975. -# Whether or not to disallow shared libs when runtime libs are static
  30976. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  30977. -
  30978. -# Whether or not to optimize for fast installation.
  30979. -fast_install=$enable_fast_install
  30980. -
  30981. -# The host system.
  30982. -host_alias=$host_alias
  30983. -host=$host
  30984. -host_os=$host_os
  30985. -
  30986. -# The build system.
  30987. -build_alias=$build_alias
  30988. -build=$build
  30989. -build_os=$build_os
  30990. -
  30991. -# An echo program that does not interpret backslashes.
  30992. -echo=$lt_echo
  30993. -
  30994. -# The archiver.
  30995. -AR=$lt_AR
  30996. -AR_FLAGS=$lt_AR_FLAGS
  30997. -
  30998. -# A C compiler.
  30999. -LTCC=$lt_LTCC
  31000. -
  31001. -# LTCC compiler flags.
  31002. -LTCFLAGS=$lt_LTCFLAGS
  31003. -
  31004. -# A language-specific compiler.
  31005. -CC=$lt_compiler_CXX
  31006. -
  31007. -# Is the compiler the GNU C compiler?
  31008. -with_gcc=$GCC_CXX
  31009. -
  31010. -# An ERE matcher.
  31011. -EGREP=$lt_EGREP
  31012. -
  31013. -# The linker used to build libraries.
  31014. -LD=$lt_LD_CXX
  31015. -
  31016. -# Whether we need hard or soft links.
  31017. -LN_S=$lt_LN_S
  31018. -
  31019. -# A BSD-compatible nm program.
  31020. -NM=$lt_NM
  31021. -
  31022. -# A symbol stripping program
  31023. -STRIP=$lt_STRIP
  31024. -
  31025. -# Used to examine libraries when file_magic_cmd begins "file"
  31026. -MAGIC_CMD=$MAGIC_CMD
  31027. -
  31028. -# Used on cygwin: DLL creation program.
  31029. -DLLTOOL="$DLLTOOL"
  31030. -
  31031. -# Used on cygwin: object dumper.
  31032. -OBJDUMP="$OBJDUMP"
  31033. -
  31034. -# Used on cygwin: assembler.
  31035. -AS="$AS"
  31036. -
  31037. -# The name of the directory that contains temporary libtool files.
  31038. -objdir=$objdir
  31039. -
  31040. -# How to create reloadable object files.
  31041. -reload_flag=$lt_reload_flag
  31042. -reload_cmds=$lt_reload_cmds
  31043. -
  31044. -# How to pass a linker flag through the compiler.
  31045. -wl=$lt_lt_prog_compiler_wl_CXX
  31046. -
  31047. -# Object file suffix (normally "o").
  31048. -objext="$ac_objext"
  31049. -
  31050. -# Old archive suffix (normally "a").
  31051. -libext="$libext"
  31052. -
  31053. -# Shared library suffix (normally ".so").
  31054. -shrext_cmds='$shrext_cmds'
  31055. -
  31056. -# Executable file suffix (normally "").
  31057. -exeext="$exeext"
  31058. -
  31059. -# Additional compiler flags for building library objects.
  31060. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  31061. -pic_mode=$pic_mode
  31062. -
  31063. -# What is the maximum length of a command?
  31064. -max_cmd_len=$lt_cv_sys_max_cmd_len
  31065. -
  31066. -# Does compiler simultaneously support -c and -o options?
  31067. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  31068. -
  31069. -# Must we lock files when doing compilation?
  31070. -need_locks=$lt_need_locks
  31071. -
  31072. -# Do we need the lib prefix for modules?
  31073. -need_lib_prefix=$need_lib_prefix
  31074. -
  31075. -# Do we need a version for libraries?
  31076. -need_version=$need_version
  31077. -
  31078. -# Whether dlopen is supported.
  31079. -dlopen_support=$enable_dlopen
  31080. -
  31081. -# Whether dlopen of programs is supported.
  31082. -dlopen_self=$enable_dlopen_self
  31083. -
  31084. -# Whether dlopen of statically linked programs is supported.
  31085. -dlopen_self_static=$enable_dlopen_self_static
  31086. -
  31087. -# Compiler flag to prevent dynamic linking.
  31088. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  31089. -
  31090. -# Compiler flag to turn off builtin functions.
  31091. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  31092. -
  31093. -# Compiler flag to allow reflexive dlopens.
  31094. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  31095. -
  31096. -# Compiler flag to generate shared objects directly from archives.
  31097. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  31098. -
  31099. -# Compiler flag to generate thread-safe objects.
  31100. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  31101. -
  31102. -# Library versioning type.
  31103. -version_type=$version_type
  31104. -
  31105. -# Format of library name prefix.
  31106. -libname_spec=$lt_libname_spec
  31107. -
  31108. -# List of archive names. First name is the real one, the rest are links.
  31109. -# The last name is the one that the linker finds with -lNAME.
  31110. -library_names_spec=$lt_library_names_spec
  31111. -
  31112. -# The coded name of the library, if different from the real name.
  31113. -soname_spec=$lt_soname_spec
  31114. -
  31115. -# Commands used to build and install an old-style archive.
  31116. -RANLIB=$lt_RANLIB
  31117. -old_archive_cmds=$lt_old_archive_cmds_CXX
  31118. -old_postinstall_cmds=$lt_old_postinstall_cmds
  31119. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  31120. -
  31121. -# Create an old-style archive from a shared archive.
  31122. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  31123. -
  31124. -# Create a temporary old-style archive to link instead of a shared archive.
  31125. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  31126. -
  31127. -# Commands used to build and install a shared archive.
  31128. -archive_cmds=$lt_archive_cmds_CXX
  31129. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  31130. -postinstall_cmds=$lt_postinstall_cmds
  31131. -postuninstall_cmds=$lt_postuninstall_cmds
  31132. -
  31133. -# Commands used to build a loadable module (assumed same as above if empty)
  31134. -module_cmds=$lt_module_cmds_CXX
  31135. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  31136. -
  31137. -# Commands to strip libraries.
  31138. -old_striplib=$lt_old_striplib
  31139. -striplib=$lt_striplib
  31140. -
  31141. -# Dependencies to place before the objects being linked to create a
  31142. -# shared library.
  31143. -predep_objects=$lt_predep_objects_CXX
  31144. -
  31145. -# Dependencies to place after the objects being linked to create a
  31146. -# shared library.
  31147. -postdep_objects=$lt_postdep_objects_CXX
  31148. -
  31149. -# Dependencies to place before the objects being linked to create a
  31150. -# shared library.
  31151. -predeps=$lt_predeps_CXX
  31152. -
  31153. -# Dependencies to place after the objects being linked to create a
  31154. -# shared library.
  31155. -postdeps=$lt_postdeps_CXX
  31156. -
  31157. -# The library search path used internally by the compiler when linking
  31158. -# a shared library.
  31159. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  31160. -
  31161. -# Method to check whether dependent libraries are shared objects.
  31162. -deplibs_check_method=$lt_deplibs_check_method
  31163. -
  31164. -# Command to use when deplibs_check_method == file_magic.
  31165. -file_magic_cmd=$lt_file_magic_cmd
  31166. -
  31167. -# Flag that allows shared libraries with undefined symbols to be built.
  31168. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  31169. -
  31170. -# Flag that forces no undefined symbols.
  31171. -no_undefined_flag=$lt_no_undefined_flag_CXX
  31172. -
  31173. -# Commands used to finish a libtool library installation in a directory.
  31174. -finish_cmds=$lt_finish_cmds
  31175. -
  31176. -# Same as above, but a single script fragment to be evaled but not shown.
  31177. -finish_eval=$lt_finish_eval
  31178. -
  31179. -# Take the output of nm and produce a listing of raw symbols and C names.
  31180. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  31181. -
  31182. -# Transform the output of nm in a proper C declaration
  31183. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  31184. -
  31185. -# Transform the output of nm in a C name address pair
  31186. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  31187. -
  31188. -# This is the shared library runtime path variable.
  31189. -runpath_var=$runpath_var
  31190. -
  31191. -# This is the shared library path variable.
  31192. -shlibpath_var=$shlibpath_var
  31193. -
  31194. -# Is shlibpath searched before the hard-coded library search path?
  31195. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  31196. -
  31197. -# How to hardcode a shared library path into an executable.
  31198. -hardcode_action=$hardcode_action_CXX
  31199. -
  31200. -# Whether we should hardcode library paths into libraries.
  31201. -hardcode_into_libs=$hardcode_into_libs
  31202. -
  31203. -# Flag to hardcode \$libdir into a binary during linking.
  31204. -# This must work even if \$libdir does not exist.
  31205. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  31206. -
  31207. -# If ld is used when linking, flag to hardcode \$libdir into
  31208. -# a binary during linking. This must work even if \$libdir does
  31209. -# not exist.
  31210. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  31211. -
  31212. -# Whether we need a single -rpath flag with a separated argument.
  31213. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  31214. -
  31215. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  31216. -# resulting binary.
  31217. -hardcode_direct=$hardcode_direct_CXX
  31218. -
  31219. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  31220. -# resulting binary.
  31221. -hardcode_minus_L=$hardcode_minus_L_CXX
  31222. -
  31223. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  31224. -# the resulting binary.
  31225. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  31226. -
  31227. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  31228. -# and all subsequent libraries and executables linked against it.
  31229. -hardcode_automatic=$hardcode_automatic_CXX
  31230. -
  31231. -# Variables whose values should be saved in libtool wrapper scripts and
  31232. -# restored at relink time.
  31233. -variables_saved_for_relink="$variables_saved_for_relink"
  31234. -
  31235. -# Whether libtool must link a program against all its dependency libraries.
  31236. -link_all_deplibs=$link_all_deplibs_CXX
  31237. -
  31238. -# Compile-time system search path for libraries
  31239. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  31240. -
  31241. -# Run-time system search path for libraries
  31242. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  31243. -
  31244. -# Fix the shell variable \$srcfile for the compiler.
  31245. -fix_srcfile_path="$fix_srcfile_path_CXX"
  31246. -
  31247. -# Set to yes if exported symbols are required.
  31248. -always_export_symbols=$always_export_symbols_CXX
  31249. -
  31250. -# The commands to list exported symbols.
  31251. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  31252. -
  31253. -# The commands to extract the exported symbol list from a shared archive.
  31254. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  31255. -
  31256. -# Symbols that should not be listed in the preloaded symbols.
  31257. -exclude_expsyms=$lt_exclude_expsyms_CXX
  31258. -
  31259. -# Symbols that must always be exported.
  31260. -include_expsyms=$lt_include_expsyms_CXX
  31261. -
  31262. -# ### END LIBTOOL TAG CONFIG: $tagname
  31263. -
  31264. -__EOF__
  31265. -
  31266. -
  31267. -else
  31268. - # If there is no Makefile yet, we rely on a make rule to execute
  31269. - # `config.status --recheck' to rerun these tests and create the
  31270. - # libtool script then.
  31271. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  31272. - if test -f "$ltmain_in"; then
  31273. - test -f Makefile && make "$ltmain"
  31274. - fi
  31275. -fi
  31276. -
  31277. -
  31278. -ac_ext=c
  31279. -ac_cpp='$CPP $CPPFLAGS'
  31280. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31281. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31282. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31283. -
  31284. -CC=$lt_save_CC
  31285. -LDCXX=$LD
  31286. -LD=$lt_save_LD
  31287. -GCC=$lt_save_GCC
  31288. -with_gnu_ldcxx=$with_gnu_ld
  31289. -with_gnu_ld=$lt_save_with_gnu_ld
  31290. -lt_cv_path_LDCXX=$lt_cv_path_LD
  31291. -lt_cv_path_LD=$lt_save_path_LD
  31292. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  31293. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  31294. -
  31295. - else
  31296. - tagname=""
  31297. - fi
  31298. - ;;
  31299. -
  31300. - F77)
  31301. - if test -n "$F77" && test "X$F77" != "Xno"; then
  31302. -
  31303. -ac_ext=f
  31304. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  31305. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31306. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  31307. -
  31308. -
  31309. -archive_cmds_need_lc_F77=no
  31310. -allow_undefined_flag_F77=
  31311. -always_export_symbols_F77=no
  31312. -archive_expsym_cmds_F77=
  31313. -export_dynamic_flag_spec_F77=
  31314. -hardcode_direct_F77=no
  31315. -hardcode_libdir_flag_spec_F77=
  31316. -hardcode_libdir_flag_spec_ld_F77=
  31317. -hardcode_libdir_separator_F77=
  31318. -hardcode_minus_L_F77=no
  31319. -hardcode_automatic_F77=no
  31320. -module_cmds_F77=
  31321. -module_expsym_cmds_F77=
  31322. -link_all_deplibs_F77=unknown
  31323. -old_archive_cmds_F77=$old_archive_cmds
  31324. -no_undefined_flag_F77=
  31325. -whole_archive_flag_spec_F77=
  31326. -enable_shared_with_static_runtimes_F77=no
  31327. -
  31328. -# Source file extension for f77 test sources.
  31329. -ac_ext=f
  31330. -
  31331. -# Object file extension for compiled f77 test sources.
  31332. -objext=o
  31333. -objext_F77=$objext
  31334. -
  31335. -# Code to be used in simple compile tests
  31336. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  31337. -
  31338. -# Code to be used in simple link tests
  31339. -lt_simple_link_test_code=" program t\n end\n"
  31340. -
  31341. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  31342. -
  31343. -# If no C compiler was specified, use CC.
  31344. -LTCC=${LTCC-"$CC"}
  31345. -
  31346. -# If no C compiler flags were specified, use CFLAGS.
  31347. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  31348. -
  31349. -# Allow CC to be a program name with arguments.
  31350. -compiler=$CC
  31351. -
  31352. -
  31353. -# save warnings/boilerplate of simple test code
  31354. -ac_outfile=conftest.$ac_objext
  31355. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  31356. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31357. -_lt_compiler_boilerplate=`cat conftest.err`
  31358. -$rm conftest*
  31359. -
  31360. -ac_outfile=conftest.$ac_objext
  31361. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  31362. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31363. -_lt_linker_boilerplate=`cat conftest.err`
  31364. -$rm conftest*
  31365. -
  31366. -
  31367. -# Allow CC to be a program name with arguments.
  31368. -lt_save_CC="$CC"
  31369. -CC=${F77-"f77"}
  31370. -compiler=$CC
  31371. -compiler_F77=$CC
  31372. -for cc_temp in $compiler""; do
  31373. - case $cc_temp in
  31374. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31375. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31376. - \-*) ;;
  31377. - *) break;;
  31378. - esac
  31379. -done
  31380. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31381. -
  31382. -
  31383. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  31384. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  31385. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  31386. -echo "${ECHO_T}$can_build_shared" >&6; }
  31387. -
  31388. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  31389. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  31390. -test "$can_build_shared" = "no" && enable_shared=no
  31391. -
  31392. -# On AIX, shared libraries and static libraries use the same namespace, and
  31393. -# are all built from PIC.
  31394. -case $host_os in
  31395. -aix3*)
  31396. - test "$enable_shared" = yes && enable_static=no
  31397. - if test -n "$RANLIB"; then
  31398. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  31399. - postinstall_cmds='$RANLIB $lib'
  31400. - fi
  31401. - ;;
  31402. -aix4* | aix5*)
  31403. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  31404. - test "$enable_shared" = yes && enable_static=no
  31405. - fi
  31406. - ;;
  31407. -esac
  31408. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  31409. -echo "${ECHO_T}$enable_shared" >&6; }
  31410. -
  31411. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  31412. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  31413. -# Make sure either enable_shared or enable_static is yes.
  31414. -test "$enable_shared" = yes || enable_static=yes
  31415. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  31416. -echo "${ECHO_T}$enable_static" >&6; }
  31417. -
  31418. -GCC_F77="$G77"
  31419. -LD_F77="$LD"
  31420. -
  31421. -lt_prog_compiler_wl_F77=
  31422. -lt_prog_compiler_pic_F77=
  31423. -lt_prog_compiler_static_F77=
  31424. -
  31425. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  31426. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  31427. -
  31428. - if test "$GCC" = yes; then
  31429. - lt_prog_compiler_wl_F77='-Wl,'
  31430. - lt_prog_compiler_static_F77='-static'
  31431. -
  31432. - case $host_os in
  31433. - aix*)
  31434. - # All AIX code is PIC.
  31435. - if test "$host_cpu" = ia64; then
  31436. - # AIX 5 now supports IA64 processor
  31437. - lt_prog_compiler_static_F77='-Bstatic'
  31438. - fi
  31439. - ;;
  31440. -
  31441. - amigaos*)
  31442. - # FIXME: we need at least 68020 code to build shared libraries, but
  31443. - # adding the `-m68020' flag to GCC prevents building anything better,
  31444. - # like `-m68040'.
  31445. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  31446. - ;;
  31447. -
  31448. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  31449. - # PIC is the default for these OSes.
  31450. - ;;
  31451. -
  31452. - mingw* | pw32* | os2*)
  31453. - # This hack is so that the source file can tell whether it is being
  31454. - # built for inclusion in a dll (and should export symbols for example).
  31455. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  31456. - ;;
  31457. -
  31458. - darwin* | rhapsody*)
  31459. - # PIC is the default on this platform
  31460. - # Common symbols not allowed in MH_DYLIB files
  31461. - lt_prog_compiler_pic_F77='-fno-common'
  31462. - ;;
  31463. -
  31464. - interix3*)
  31465. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  31466. - # Instead, we relocate shared libraries at runtime.
  31467. - ;;
  31468. -
  31469. - msdosdjgpp*)
  31470. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  31471. - # on systems that don't support them.
  31472. - lt_prog_compiler_can_build_shared_F77=no
  31473. - enable_shared=no
  31474. - ;;
  31475. -
  31476. - sysv4*MP*)
  31477. - if test -d /usr/nec; then
  31478. - lt_prog_compiler_pic_F77=-Kconform_pic
  31479. - fi
  31480. - ;;
  31481. -
  31482. - hpux*)
  31483. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31484. - # not for PA HP-UX.
  31485. - case $host_cpu in
  31486. - hppa*64*|ia64*)
  31487. - # +Z the default
  31488. - ;;
  31489. - *)
  31490. - lt_prog_compiler_pic_F77='-fPIC'
  31491. - ;;
  31492. - esac
  31493. - ;;
  31494. -
  31495. - *)
  31496. - lt_prog_compiler_pic_F77='-fPIC'
  31497. - ;;
  31498. - esac
  31499. - else
  31500. - # PORTME Check for flag to pass linker flags through the system compiler.
  31501. - case $host_os in
  31502. - aix*)
  31503. - lt_prog_compiler_wl_F77='-Wl,'
  31504. - if test "$host_cpu" = ia64; then
  31505. - # AIX 5 now supports IA64 processor
  31506. - lt_prog_compiler_static_F77='-Bstatic'
  31507. - else
  31508. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  31509. - fi
  31510. - ;;
  31511. - darwin*)
  31512. - # PIC is the default on this platform
  31513. - # Common symbols not allowed in MH_DYLIB files
  31514. - case $cc_basename in
  31515. - xlc*)
  31516. - lt_prog_compiler_pic_F77='-qnocommon'
  31517. - lt_prog_compiler_wl_F77='-Wl,'
  31518. - ;;
  31519. - esac
  31520. - ;;
  31521. -
  31522. - mingw* | pw32* | os2*)
  31523. - # This hack is so that the source file can tell whether it is being
  31524. - # built for inclusion in a dll (and should export symbols for example).
  31525. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  31526. - ;;
  31527. -
  31528. - hpux9* | hpux10* | hpux11*)
  31529. - lt_prog_compiler_wl_F77='-Wl,'
  31530. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31531. - # not for PA HP-UX.
  31532. - case $host_cpu in
  31533. - hppa*64*|ia64*)
  31534. - # +Z the default
  31535. - ;;
  31536. - *)
  31537. - lt_prog_compiler_pic_F77='+Z'
  31538. - ;;
  31539. - esac
  31540. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  31541. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  31542. - ;;
  31543. -
  31544. - irix5* | irix6* | nonstopux*)
  31545. - lt_prog_compiler_wl_F77='-Wl,'
  31546. - # PIC (with -KPIC) is the default.
  31547. - lt_prog_compiler_static_F77='-non_shared'
  31548. - ;;
  31549. -
  31550. - newsos6)
  31551. - lt_prog_compiler_pic_F77='-KPIC'
  31552. - lt_prog_compiler_static_F77='-Bstatic'
  31553. - ;;
  31554. -
  31555. - linux*)
  31556. - case $cc_basename in
  31557. - icc* | ecc*)
  31558. - lt_prog_compiler_wl_F77='-Wl,'
  31559. - lt_prog_compiler_pic_F77='-KPIC'
  31560. - lt_prog_compiler_static_F77='-static'
  31561. - ;;
  31562. - pgcc* | pgf77* | pgf90* | pgf95*)
  31563. - # Portland Group compilers (*not* the Pentium gcc compiler,
  31564. - # which looks to be a dead project)
  31565. - lt_prog_compiler_wl_F77='-Wl,'
  31566. - lt_prog_compiler_pic_F77='-fpic'
  31567. - lt_prog_compiler_static_F77='-Bstatic'
  31568. - ;;
  31569. - ccc*)
  31570. - lt_prog_compiler_wl_F77='-Wl,'
  31571. - # All Alpha code is PIC.
  31572. - lt_prog_compiler_static_F77='-non_shared'
  31573. - ;;
  31574. - esac
  31575. - ;;
  31576. -
  31577. - osf3* | osf4* | osf5*)
  31578. - lt_prog_compiler_wl_F77='-Wl,'
  31579. - # All OSF/1 code is PIC.
  31580. - lt_prog_compiler_static_F77='-non_shared'
  31581. - ;;
  31582. -
  31583. - solaris*)
  31584. - lt_prog_compiler_pic_F77='-KPIC'
  31585. - lt_prog_compiler_static_F77='-Bstatic'
  31586. - case $cc_basename in
  31587. - f77* | f90* | f95*)
  31588. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  31589. - *)
  31590. - lt_prog_compiler_wl_F77='-Wl,';;
  31591. - esac
  31592. - ;;
  31593. -
  31594. - sunos4*)
  31595. - lt_prog_compiler_wl_F77='-Qoption ld '
  31596. - lt_prog_compiler_pic_F77='-PIC'
  31597. - lt_prog_compiler_static_F77='-Bstatic'
  31598. - ;;
  31599. -
  31600. - sysv4 | sysv4.2uw2* | sysv4.3*)
  31601. - lt_prog_compiler_wl_F77='-Wl,'
  31602. - lt_prog_compiler_pic_F77='-KPIC'
  31603. - lt_prog_compiler_static_F77='-Bstatic'
  31604. - ;;
  31605. -
  31606. - sysv4*MP*)
  31607. - if test -d /usr/nec ;then
  31608. - lt_prog_compiler_pic_F77='-Kconform_pic'
  31609. - lt_prog_compiler_static_F77='-Bstatic'
  31610. - fi
  31611. - ;;
  31612. -
  31613. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  31614. - lt_prog_compiler_wl_F77='-Wl,'
  31615. - lt_prog_compiler_pic_F77='-KPIC'
  31616. - lt_prog_compiler_static_F77='-Bstatic'
  31617. - ;;
  31618. -
  31619. - unicos*)
  31620. - lt_prog_compiler_wl_F77='-Wl,'
  31621. - lt_prog_compiler_can_build_shared_F77=no
  31622. - ;;
  31623. -
  31624. - uts4*)
  31625. - lt_prog_compiler_pic_F77='-pic'
  31626. - lt_prog_compiler_static_F77='-Bstatic'
  31627. - ;;
  31628. -
  31629. - *)
  31630. - lt_prog_compiler_can_build_shared_F77=no
  31631. - ;;
  31632. - esac
  31633. - fi
  31634. -
  31635. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  31636. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  31637. -
  31638. -#
  31639. -# Check to make sure the PIC flag actually works.
  31640. -#
  31641. -if test -n "$lt_prog_compiler_pic_F77"; then
  31642. -
  31643. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  31644. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  31645. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  31646. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31647. -else
  31648. - lt_prog_compiler_pic_works_F77=no
  31649. - ac_outfile=conftest.$ac_objext
  31650. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31651. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  31652. - # Insert the option either (1) after the last *FLAGS variable, or
  31653. - # (2) before a word containing "conftest.", or (3) at the end.
  31654. - # Note that $ac_compile itself does not contain backslashes and begins
  31655. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31656. - # The option is referenced via a variable to avoid confusing sed.
  31657. - lt_compile=`echo "$ac_compile" | $SED \
  31658. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31659. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31660. - -e 's:$: $lt_compiler_flag:'`
  31661. - (eval echo "\"\$as_me:14435: $lt_compile\"" >&5)
  31662. - (eval "$lt_compile" 2>conftest.err)
  31663. - ac_status=$?
  31664. - cat conftest.err >&5
  31665. - echo "$as_me:14439: \$? = $ac_status" >&5
  31666. - if (exit $ac_status) && test -s "$ac_outfile"; then
  31667. - # The compiler can only warn and ignore the option if not recognized
  31668. - # So say no if there are warnings other than the usual output.
  31669. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31670. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31671. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  31672. - lt_prog_compiler_pic_works_F77=yes
  31673. - fi
  31674. - fi
  31675. - $rm conftest*
  31676. -
  31677. -fi
  31678. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  31679. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  31680. -
  31681. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  31682. - case $lt_prog_compiler_pic_F77 in
  31683. - "" | " "*) ;;
  31684. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  31685. - esac
  31686. -else
  31687. - lt_prog_compiler_pic_F77=
  31688. - lt_prog_compiler_can_build_shared_F77=no
  31689. -fi
  31690. -
  31691. -fi
  31692. -case $host_os in
  31693. - # For platforms which do not support PIC, -DPIC is meaningless:
  31694. - *djgpp*)
  31695. - lt_prog_compiler_pic_F77=
  31696. - ;;
  31697. - *)
  31698. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  31699. - ;;
  31700. -esac
  31701. -
  31702. -#
  31703. -# Check to make sure the static flag actually works.
  31704. -#
  31705. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  31706. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  31707. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  31708. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  31709. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31710. -else
  31711. - lt_prog_compiler_static_works_F77=no
  31712. - save_LDFLAGS="$LDFLAGS"
  31713. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  31714. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  31715. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  31716. - # The linker can only warn and ignore the option if not recognized
  31717. - # So say no if there are warnings
  31718. - if test -s conftest.err; then
  31719. - # Append any errors to the config.log.
  31720. - cat conftest.err 1>&5
  31721. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31722. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31723. - if diff conftest.exp conftest.er2 >/dev/null; then
  31724. - lt_prog_compiler_static_works_F77=yes
  31725. - fi
  31726. - else
  31727. - lt_prog_compiler_static_works_F77=yes
  31728. - fi
  31729. - fi
  31730. - $rm conftest*
  31731. - LDFLAGS="$save_LDFLAGS"
  31732. -
  31733. -fi
  31734. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  31735. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  31736. -
  31737. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  31738. - :
  31739. -else
  31740. - lt_prog_compiler_static_F77=
  31741. -fi
  31742. -
  31743. -
  31744. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  31745. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  31746. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  31747. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31748. -else
  31749. - lt_cv_prog_compiler_c_o_F77=no
  31750. - $rm -r conftest 2>/dev/null
  31751. - mkdir conftest
  31752. - cd conftest
  31753. - mkdir out
  31754. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31755. -
  31756. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  31757. - # Insert the option either (1) after the last *FLAGS variable, or
  31758. - # (2) before a word containing "conftest.", or (3) at the end.
  31759. - # Note that $ac_compile itself does not contain backslashes and begins
  31760. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31761. - lt_compile=`echo "$ac_compile" | $SED \
  31762. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31763. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31764. - -e 's:$: $lt_compiler_flag:'`
  31765. - (eval echo "\"\$as_me:14539: $lt_compile\"" >&5)
  31766. - (eval "$lt_compile" 2>out/conftest.err)
  31767. - ac_status=$?
  31768. - cat out/conftest.err >&5
  31769. - echo "$as_me:14543: \$? = $ac_status" >&5
  31770. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31771. - then
  31772. - # The compiler can only warn and ignore the option if not recognized
  31773. - # So say no if there are warnings
  31774. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31775. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31776. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31777. - lt_cv_prog_compiler_c_o_F77=yes
  31778. - fi
  31779. - fi
  31780. - chmod u+w . 2>&5
  31781. - $rm conftest*
  31782. - # SGI C++ compiler will create directory out/ii_files/ for
  31783. - # template instantiation
  31784. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31785. - $rm out/* && rmdir out
  31786. - cd ..
  31787. - rmdir conftest
  31788. - $rm conftest*
  31789. -
  31790. -fi
  31791. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  31792. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  31793. -
  31794. -
  31795. -hard_links="nottested"
  31796. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  31797. - # do not overwrite the value of need_locks provided by the user
  31798. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31799. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  31800. - hard_links=yes
  31801. - $rm conftest*
  31802. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31803. - touch conftest.a
  31804. - ln conftest.a conftest.b 2>&5 || hard_links=no
  31805. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31806. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  31807. -echo "${ECHO_T}$hard_links" >&6; }
  31808. - if test "$hard_links" = no; then
  31809. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31810. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31811. - need_locks=warn
  31812. - fi
  31813. -else
  31814. - need_locks=no
  31815. -fi
  31816. -
  31817. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31818. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  31819. -
  31820. - runpath_var=
  31821. - allow_undefined_flag_F77=
  31822. - enable_shared_with_static_runtimes_F77=no
  31823. - archive_cmds_F77=
  31824. - archive_expsym_cmds_F77=
  31825. - old_archive_From_new_cmds_F77=
  31826. - old_archive_from_expsyms_cmds_F77=
  31827. - export_dynamic_flag_spec_F77=
  31828. - whole_archive_flag_spec_F77=
  31829. - thread_safe_flag_spec_F77=
  31830. - hardcode_libdir_flag_spec_F77=
  31831. - hardcode_libdir_flag_spec_ld_F77=
  31832. - hardcode_libdir_separator_F77=
  31833. - hardcode_direct_F77=no
  31834. - hardcode_minus_L_F77=no
  31835. - hardcode_shlibpath_var_F77=unsupported
  31836. - link_all_deplibs_F77=unknown
  31837. - hardcode_automatic_F77=no
  31838. - module_cmds_F77=
  31839. - module_expsym_cmds_F77=
  31840. - always_export_symbols_F77=no
  31841. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31842. - # include_expsyms should be a list of space-separated symbols to be *always*
  31843. - # included in the symbol list
  31844. - include_expsyms_F77=
  31845. - # exclude_expsyms can be an extended regexp of symbols to exclude
  31846. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  31847. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  31848. - # as well as any symbol that contains `d'.
  31849. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  31850. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  31851. - # platforms (ab)use it in PIC code, but their linkers get confused if
  31852. - # the symbol is explicitly referenced. Since portable code cannot
  31853. - # rely on this symbol name, it's probably fine to never include it in
  31854. - # preloaded symbol tables.
  31855. - extract_expsyms_cmds=
  31856. - # Just being paranoid about ensuring that cc_basename is set.
  31857. - for cc_temp in $compiler""; do
  31858. - case $cc_temp in
  31859. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31860. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31861. - \-*) ;;
  31862. - *) break;;
  31863. - esac
  31864. -done
  31865. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31866. -
  31867. - case $host_os in
  31868. - cygwin* | mingw* | pw32*)
  31869. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  31870. - # When not using gcc, we currently assume that we are using
  31871. - # Microsoft Visual C++.
  31872. - if test "$GCC" != yes; then
  31873. - with_gnu_ld=no
  31874. - fi
  31875. - ;;
  31876. - interix*)
  31877. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  31878. - with_gnu_ld=yes
  31879. - ;;
  31880. - openbsd*)
  31881. - with_gnu_ld=no
  31882. - ;;
  31883. - esac
  31884. -
  31885. - ld_shlibs_F77=yes
  31886. - if test "$with_gnu_ld" = yes; then
  31887. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31888. - wlarc='${wl}'
  31889. -
  31890. - # Set some defaults for GNU ld with shared library support. These
  31891. - # are reset later if shared libraries are not supported. Putting them
  31892. - # here allows them to be overridden if necessary.
  31893. - runpath_var=LD_RUN_PATH
  31894. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  31895. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  31896. - # ancient GNU ld didn't support --whole-archive et. al.
  31897. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  31898. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31899. - else
  31900. - whole_archive_flag_spec_F77=
  31901. - fi
  31902. - supports_anon_versioning=no
  31903. - case `$LD -v 2>/dev/null` in
  31904. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  31905. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  31906. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  31907. - *\ 2.11.*) ;; # other 2.11 versions
  31908. - *) supports_anon_versioning=yes ;;
  31909. - esac
  31910. -
  31911. - # See if GNU ld supports shared libraries.
  31912. - case $host_os in
  31913. - aix3* | aix4* | aix5*)
  31914. - # On AIX/PPC, the GNU linker is very broken
  31915. - if test "$host_cpu" != ia64; then
  31916. - ld_shlibs_F77=no
  31917. - cat <<EOF 1>&2
  31918. -
  31919. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  31920. -*** to be unable to reliably create shared libraries on AIX.
  31921. -*** Therefore, libtool is disabling shared libraries support. If you
  31922. -*** really care for shared libraries, you may want to modify your PATH
  31923. -*** so that a non-GNU linker is found, and then restart.
  31924. -
  31925. -EOF
  31926. - fi
  31927. - ;;
  31928. -
  31929. - amigaos*)
  31930. - 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)'
  31931. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31932. - hardcode_minus_L_F77=yes
  31933. -
  31934. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  31935. - # that the semantics of dynamic libraries on AmigaOS, at least up
  31936. - # to version 4, is to share data among multiple programs linked
  31937. - # with the same dynamic library. Since this doesn't match the
  31938. - # behavior of shared libraries on other platforms, we can't use
  31939. - # them.
  31940. - ld_shlibs_F77=no
  31941. - ;;
  31942. -
  31943. - beos*)
  31944. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31945. - allow_undefined_flag_F77=unsupported
  31946. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31947. - # support --undefined. This deserves some investigation. FIXME
  31948. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31949. - else
  31950. - ld_shlibs_F77=no
  31951. - fi
  31952. - ;;
  31953. -
  31954. - cygwin* | mingw* | pw32*)
  31955. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  31956. - # as there is no search path for DLLs.
  31957. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31958. - allow_undefined_flag_F77=unsupported
  31959. - always_export_symbols_F77=no
  31960. - enable_shared_with_static_runtimes_F77=yes
  31961. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  31962. -
  31963. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31964. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31965. - # If the export-symbols file already is a .def file (1st line
  31966. - # is EXPORTS), use it as is; otherwise, prepend...
  31967. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31968. - cp $export_symbols $output_objdir/$soname.def;
  31969. - else
  31970. - echo EXPORTS > $output_objdir/$soname.def;
  31971. - cat $export_symbols >> $output_objdir/$soname.def;
  31972. - fi~
  31973. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31974. - else
  31975. - ld_shlibs_F77=no
  31976. - fi
  31977. - ;;
  31978. -
  31979. - interix3*)
  31980. - hardcode_direct_F77=no
  31981. - hardcode_shlibpath_var_F77=no
  31982. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31983. - export_dynamic_flag_spec_F77='${wl}-E'
  31984. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31985. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31986. - # default) and relocated if they conflict, which is a slow very memory
  31987. - # consuming and fragmenting process. To avoid this, we pick a random,
  31988. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31989. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31990. - 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'
  31991. - 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'
  31992. - ;;
  31993. -
  31994. - linux*)
  31995. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31996. - tmp_addflag=
  31997. - case $cc_basename,$host_cpu in
  31998. - pgcc*) # Portland Group C compiler
  31999. - 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'
  32000. - tmp_addflag=' $pic_flag'
  32001. - ;;
  32002. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  32003. - 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'
  32004. - tmp_addflag=' $pic_flag -Mnomain' ;;
  32005. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  32006. - tmp_addflag=' -i_dynamic' ;;
  32007. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  32008. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  32009. - ifc* | ifort*) # Intel Fortran compiler
  32010. - tmp_addflag=' -nofor_main' ;;
  32011. - esac
  32012. - archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32013. -
  32014. - if test $supports_anon_versioning = yes; then
  32015. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  32016. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  32017. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  32018. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  32019. - fi
  32020. - else
  32021. - ld_shlibs_F77=no
  32022. - fi
  32023. - ;;
  32024. -
  32025. - netbsd*)
  32026. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32027. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  32028. - wlarc=
  32029. - else
  32030. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32031. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32032. - fi
  32033. - ;;
  32034. -
  32035. - solaris*)
  32036. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  32037. - ld_shlibs_F77=no
  32038. - cat <<EOF 1>&2
  32039. -
  32040. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  32041. -*** create shared libraries on Solaris systems. Therefore, libtool
  32042. -*** is disabling shared libraries support. We urge you to upgrade GNU
  32043. -*** binutils to release 2.9.1 or newer. Another option is to modify
  32044. -*** your PATH or compiler configuration so that the native linker is
  32045. -*** used, and then restart.
  32046. -
  32047. -EOF
  32048. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32049. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32050. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32051. - else
  32052. - ld_shlibs_F77=no
  32053. - fi
  32054. - ;;
  32055. -
  32056. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  32057. - case `$LD -v 2>&1` in
  32058. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  32059. - ld_shlibs_F77=no
  32060. - cat <<_LT_EOF 1>&2
  32061. -
  32062. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  32063. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  32064. -*** is disabling shared libraries support. We urge you to upgrade GNU
  32065. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  32066. -*** your PATH or compiler configuration so that the native linker is
  32067. -*** used, and then restart.
  32068. -
  32069. -_LT_EOF
  32070. - ;;
  32071. - *)
  32072. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32073. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  32074. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  32075. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  32076. - else
  32077. - ld_shlibs_F77=no
  32078. - fi
  32079. - ;;
  32080. - esac
  32081. - ;;
  32082. -
  32083. - sunos4*)
  32084. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32085. - wlarc=
  32086. - hardcode_direct_F77=yes
  32087. - hardcode_shlibpath_var_F77=no
  32088. - ;;
  32089. -
  32090. - *)
  32091. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32092. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32093. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32094. - else
  32095. - ld_shlibs_F77=no
  32096. - fi
  32097. - ;;
  32098. - esac
  32099. -
  32100. - if test "$ld_shlibs_F77" = no; then
  32101. - runpath_var=
  32102. - hardcode_libdir_flag_spec_F77=
  32103. - export_dynamic_flag_spec_F77=
  32104. - whole_archive_flag_spec_F77=
  32105. - fi
  32106. - else
  32107. - # PORTME fill in a description of your system's linker (not GNU ld)
  32108. - case $host_os in
  32109. - aix3*)
  32110. - allow_undefined_flag_F77=unsupported
  32111. - always_export_symbols_F77=yes
  32112. - 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'
  32113. - # Note: this linker hardcodes the directories in LIBPATH if there
  32114. - # are no directories specified by -L.
  32115. - hardcode_minus_L_F77=yes
  32116. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  32117. - # Neither direct hardcoding nor static linking is supported with a
  32118. - # broken collect2.
  32119. - hardcode_direct_F77=unsupported
  32120. - fi
  32121. - ;;
  32122. -
  32123. - aix4* | aix5*)
  32124. - if test "$host_cpu" = ia64; then
  32125. - # On IA64, the linker does run time linking by default, so we don't
  32126. - # have to do anything special.
  32127. - aix_use_runtimelinking=no
  32128. - exp_sym_flag='-Bexport'
  32129. - no_entry_flag=""
  32130. - else
  32131. - # If we're using GNU nm, then we don't want the "-C" option.
  32132. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  32133. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  32134. - 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'
  32135. - else
  32136. - 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'
  32137. - fi
  32138. - aix_use_runtimelinking=no
  32139. -
  32140. - # Test if we are trying to use run time linking or normal
  32141. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  32142. - # need to do runtime linking.
  32143. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  32144. - for ld_flag in $LDFLAGS; do
  32145. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  32146. - aix_use_runtimelinking=yes
  32147. - break
  32148. - fi
  32149. - done
  32150. - ;;
  32151. - esac
  32152. -
  32153. - exp_sym_flag='-bexport'
  32154. - no_entry_flag='-bnoentry'
  32155. - fi
  32156. -
  32157. - # When large executables or shared objects are built, AIX ld can
  32158. - # have problems creating the table of contents. If linking a library
  32159. - # or program results in "error TOC overflow" add -mminimal-toc to
  32160. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  32161. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  32162. -
  32163. - archive_cmds_F77=''
  32164. - hardcode_direct_F77=yes
  32165. - hardcode_libdir_separator_F77=':'
  32166. - link_all_deplibs_F77=yes
  32167. -
  32168. - if test "$GCC" = yes; then
  32169. - case $host_os in aix4.[012]|aix4.[012].*)
  32170. - # We only want to do this on AIX 4.2 and lower, the check
  32171. - # below for broken collect2 doesn't work under 4.3+
  32172. - collect2name=`${CC} -print-prog-name=collect2`
  32173. - if test -f "$collect2name" && \
  32174. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  32175. - then
  32176. - # We have reworked collect2
  32177. - hardcode_direct_F77=yes
  32178. - else
  32179. - # We have old collect2
  32180. - hardcode_direct_F77=unsupported
  32181. - # It fails to find uninstalled libraries when the uninstalled
  32182. - # path is not listed in the libpath. Setting hardcode_minus_L
  32183. - # to unsupported forces relinking
  32184. - hardcode_minus_L_F77=yes
  32185. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32186. - hardcode_libdir_separator_F77=
  32187. - fi
  32188. - ;;
  32189. - esac
  32190. - shared_flag='-shared'
  32191. - if test "$aix_use_runtimelinking" = yes; then
  32192. - shared_flag="$shared_flag "'${wl}-G'
  32193. - fi
  32194. - else
  32195. - # not using gcc
  32196. - if test "$host_cpu" = ia64; then
  32197. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  32198. - # chokes on -Wl,-G. The following line is correct:
  32199. - shared_flag='-G'
  32200. - else
  32201. - if test "$aix_use_runtimelinking" = yes; then
  32202. - shared_flag='${wl}-G'
  32203. - else
  32204. - shared_flag='${wl}-bM:SRE'
  32205. - fi
  32206. - fi
  32207. - fi
  32208. -
  32209. - # It seems that -bexpall does not export symbols beginning with
  32210. - # underscore (_), so it is better to generate a list of symbols to export.
  32211. - always_export_symbols_F77=yes
  32212. - if test "$aix_use_runtimelinking" = yes; then
  32213. - # Warning - without using the other runtime loading flags (-brtl),
  32214. - # -berok will link without error, but may produce a broken library.
  32215. - allow_undefined_flag_F77='-berok'
  32216. - # Determine the default libpath from the value encoded in an empty executable.
  32217. - cat >conftest.$ac_ext <<_ACEOF
  32218. - program main
  32219. -
  32220. - end
  32221. -_ACEOF
  32222. -rm -f conftest.$ac_objext conftest$ac_exeext
  32223. -if { (ac_try="$ac_link"
  32224. -case "(($ac_try" in
  32225. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32226. - *) ac_try_echo=$ac_try;;
  32227. -esac
  32228. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32229. - (eval "$ac_link") 2>conftest.er1
  32230. - ac_status=$?
  32231. - grep -v '^ *+' conftest.er1 >conftest.err
  32232. - rm -f conftest.er1
  32233. - cat conftest.err >&5
  32234. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32235. - (exit $ac_status); } &&
  32236. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  32237. - { (case "(($ac_try" in
  32238. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32239. - *) ac_try_echo=$ac_try;;
  32240. -esac
  32241. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32242. - (eval "$ac_try") 2>&5
  32243. - ac_status=$?
  32244. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32245. - (exit $ac_status); }; } &&
  32246. - { ac_try='test -s conftest$ac_exeext'
  32247. - { (case "(($ac_try" in
  32248. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32249. - *) ac_try_echo=$ac_try;;
  32250. -esac
  32251. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32252. - (eval "$ac_try") 2>&5
  32253. - ac_status=$?
  32254. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32255. - (exit $ac_status); }; }; then
  32256. -
  32257. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32258. -}'`
  32259. -# Check for a 64-bit object if we didn't find anything.
  32260. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32261. -}'`; fi
  32262. -else
  32263. - echo "$as_me: failed program was:" >&5
  32264. -sed 's/^/| /' conftest.$ac_ext >&5
  32265. -
  32266. -
  32267. -fi
  32268. -
  32269. -rm -f core conftest.err conftest.$ac_objext \
  32270. - conftest$ac_exeext conftest.$ac_ext
  32271. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32272. -
  32273. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  32274. - 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"
  32275. - else
  32276. - if test "$host_cpu" = ia64; then
  32277. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  32278. - allow_undefined_flag_F77="-z nodefs"
  32279. - 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"
  32280. - else
  32281. - # Determine the default libpath from the value encoded in an empty executable.
  32282. - cat >conftest.$ac_ext <<_ACEOF
  32283. - program main
  32284. -
  32285. - end
  32286. -_ACEOF
  32287. -rm -f conftest.$ac_objext conftest$ac_exeext
  32288. -if { (ac_try="$ac_link"
  32289. -case "(($ac_try" in
  32290. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32291. - *) ac_try_echo=$ac_try;;
  32292. -esac
  32293. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32294. - (eval "$ac_link") 2>conftest.er1
  32295. - ac_status=$?
  32296. - grep -v '^ *+' conftest.er1 >conftest.err
  32297. - rm -f conftest.er1
  32298. - cat conftest.err >&5
  32299. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32300. - (exit $ac_status); } &&
  32301. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  32302. - { (case "(($ac_try" in
  32303. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32304. - *) ac_try_echo=$ac_try;;
  32305. -esac
  32306. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32307. - (eval "$ac_try") 2>&5
  32308. - ac_status=$?
  32309. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32310. - (exit $ac_status); }; } &&
  32311. - { ac_try='test -s conftest$ac_exeext'
  32312. - { (case "(($ac_try" in
  32313. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32314. - *) ac_try_echo=$ac_try;;
  32315. -esac
  32316. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32317. - (eval "$ac_try") 2>&5
  32318. - ac_status=$?
  32319. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32320. - (exit $ac_status); }; }; then
  32321. -
  32322. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32323. -}'`
  32324. -# Check for a 64-bit object if we didn't find anything.
  32325. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  32326. -}'`; fi
  32327. -else
  32328. - echo "$as_me: failed program was:" >&5
  32329. -sed 's/^/| /' conftest.$ac_ext >&5
  32330. -
  32331. -
  32332. -fi
  32333. -
  32334. -rm -f core conftest.err conftest.$ac_objext \
  32335. - conftest$ac_exeext conftest.$ac_ext
  32336. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32337. -
  32338. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  32339. - # Warning - without using the other run time loading flags,
  32340. - # -berok will link without error, but may produce a broken library.
  32341. - no_undefined_flag_F77=' ${wl}-bernotok'
  32342. - allow_undefined_flag_F77=' ${wl}-berok'
  32343. - # Exported symbols can be pulled into shared objects from archives
  32344. - whole_archive_flag_spec_F77='$convenience'
  32345. - archive_cmds_need_lc_F77=yes
  32346. - # This is similar to how AIX traditionally builds its shared libraries.
  32347. - 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'
  32348. - fi
  32349. - fi
  32350. - ;;
  32351. -
  32352. - amigaos*)
  32353. - 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)'
  32354. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32355. - hardcode_minus_L_F77=yes
  32356. - # see comment about different semantics on the GNU ld section
  32357. - ld_shlibs_F77=no
  32358. - ;;
  32359. -
  32360. - bsdi[45]*)
  32361. - export_dynamic_flag_spec_F77=-rdynamic
  32362. - ;;
  32363. -
  32364. - cygwin* | mingw* | pw32*)
  32365. - # When not using gcc, we currently assume that we are using
  32366. - # Microsoft Visual C++.
  32367. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  32368. - # no search path for DLLs.
  32369. - hardcode_libdir_flag_spec_F77=' '
  32370. - allow_undefined_flag_F77=unsupported
  32371. - # Tell ltmain to make .lib files, not .a files.
  32372. - libext=lib
  32373. - # Tell ltmain to make .dll files, not .so files.
  32374. - shrext_cmds=".dll"
  32375. - # FIXME: Setting linknames here is a bad hack.
  32376. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  32377. - # The linker will automatically build a .lib file if we build a DLL.
  32378. - old_archive_From_new_cmds_F77='true'
  32379. - # FIXME: Should let the user specify the lib program.
  32380. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  32381. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  32382. - enable_shared_with_static_runtimes_F77=yes
  32383. - ;;
  32384. -
  32385. - darwin* | rhapsody*)
  32386. - case $host_os in
  32387. - rhapsody* | darwin1.[012])
  32388. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  32389. - ;;
  32390. - *) # Darwin 1.3 on
  32391. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  32392. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32393. - else
  32394. - case ${MACOSX_DEPLOYMENT_TARGET} in
  32395. - 10.[012])
  32396. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  32397. - ;;
  32398. - 10.*)
  32399. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  32400. - ;;
  32401. - esac
  32402. - fi
  32403. - ;;
  32404. - esac
  32405. - archive_cmds_need_lc_F77=no
  32406. - hardcode_direct_F77=no
  32407. - hardcode_automatic_F77=yes
  32408. - hardcode_shlibpath_var_F77=unsupported
  32409. - whole_archive_flag_spec_F77=''
  32410. - link_all_deplibs_F77=yes
  32411. - if test "$GCC" = yes ; then
  32412. - output_verbose_link_cmd='echo'
  32413. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  32414. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32415. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32416. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32417. - 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}'
  32418. - else
  32419. - case $cc_basename in
  32420. - xlc*)
  32421. - output_verbose_link_cmd='echo'
  32422. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  32423. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  32424. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  32425. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32426. - 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}'
  32427. - ;;
  32428. - *)
  32429. - ld_shlibs_F77=no
  32430. - ;;
  32431. - esac
  32432. - fi
  32433. - ;;
  32434. -
  32435. - dgux*)
  32436. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32437. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32438. - hardcode_shlibpath_var_F77=no
  32439. - ;;
  32440. -
  32441. - freebsd1*)
  32442. - ld_shlibs_F77=no
  32443. - ;;
  32444. -
  32445. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  32446. - # support. Future versions do this automatically, but an explicit c++rt0.o
  32447. - # does not break anything, and helps significantly (at the cost of a little
  32448. - # extra space).
  32449. - freebsd2.2*)
  32450. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  32451. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32452. - hardcode_direct_F77=yes
  32453. - hardcode_shlibpath_var_F77=no
  32454. - ;;
  32455. -
  32456. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  32457. - freebsd2*)
  32458. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32459. - hardcode_direct_F77=yes
  32460. - hardcode_minus_L_F77=yes
  32461. - hardcode_shlibpath_var_F77=no
  32462. - ;;
  32463. -
  32464. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  32465. - freebsd* | kfreebsd*-gnu | dragonfly*)
  32466. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  32467. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32468. - hardcode_direct_F77=yes
  32469. - hardcode_shlibpath_var_F77=no
  32470. - ;;
  32471. -
  32472. - hpux9*)
  32473. - if test "$GCC" = yes; then
  32474. - 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'
  32475. - else
  32476. - 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'
  32477. - fi
  32478. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32479. - hardcode_libdir_separator_F77=:
  32480. - hardcode_direct_F77=yes
  32481. -
  32482. - # hardcode_minus_L: Not really in the search PATH,
  32483. - # but as the default location of the library.
  32484. - hardcode_minus_L_F77=yes
  32485. - export_dynamic_flag_spec_F77='${wl}-E'
  32486. - ;;
  32487. -
  32488. - hpux10*)
  32489. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32490. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32491. - else
  32492. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  32493. - fi
  32494. - if test "$with_gnu_ld" = no; then
  32495. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32496. - hardcode_libdir_separator_F77=:
  32497. -
  32498. - hardcode_direct_F77=yes
  32499. - export_dynamic_flag_spec_F77='${wl}-E'
  32500. -
  32501. - # hardcode_minus_L: Not really in the search PATH,
  32502. - # but as the default location of the library.
  32503. - hardcode_minus_L_F77=yes
  32504. - fi
  32505. - ;;
  32506. -
  32507. - hpux11*)
  32508. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  32509. - case $host_cpu in
  32510. - hppa*64*)
  32511. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32512. - ;;
  32513. - ia64*)
  32514. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32515. - ;;
  32516. - *)
  32517. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32518. - ;;
  32519. - esac
  32520. - else
  32521. - case $host_cpu in
  32522. - hppa*64*)
  32523. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32524. - ;;
  32525. - ia64*)
  32526. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  32527. - ;;
  32528. - *)
  32529. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  32530. - ;;
  32531. - esac
  32532. - fi
  32533. - if test "$with_gnu_ld" = no; then
  32534. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  32535. - hardcode_libdir_separator_F77=:
  32536. -
  32537. - case $host_cpu in
  32538. - hppa*64*|ia64*)
  32539. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  32540. - hardcode_direct_F77=no
  32541. - hardcode_shlibpath_var_F77=no
  32542. - ;;
  32543. - *)
  32544. - hardcode_direct_F77=yes
  32545. - export_dynamic_flag_spec_F77='${wl}-E'
  32546. -
  32547. - # hardcode_minus_L: Not really in the search PATH,
  32548. - # but as the default location of the library.
  32549. - hardcode_minus_L_F77=yes
  32550. - ;;
  32551. - esac
  32552. - fi
  32553. - ;;
  32554. -
  32555. - irix5* | irix6* | nonstopux*)
  32556. - if test "$GCC" = yes; then
  32557. - 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'
  32558. - else
  32559. - 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'
  32560. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  32561. - fi
  32562. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32563. - hardcode_libdir_separator_F77=:
  32564. - link_all_deplibs_F77=yes
  32565. - ;;
  32566. -
  32567. - netbsd*)
  32568. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32569. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  32570. - else
  32571. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  32572. - fi
  32573. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32574. - hardcode_direct_F77=yes
  32575. - hardcode_shlibpath_var_F77=no
  32576. - ;;
  32577. -
  32578. - newsos6)
  32579. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32580. - hardcode_direct_F77=yes
  32581. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32582. - hardcode_libdir_separator_F77=:
  32583. - hardcode_shlibpath_var_F77=no
  32584. - ;;
  32585. -
  32586. - openbsd*)
  32587. - hardcode_direct_F77=yes
  32588. - hardcode_shlibpath_var_F77=no
  32589. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32590. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32591. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  32592. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  32593. - export_dynamic_flag_spec_F77='${wl}-E'
  32594. - else
  32595. - case $host_os in
  32596. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  32597. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32598. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32599. - ;;
  32600. - *)
  32601. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32602. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  32603. - ;;
  32604. - esac
  32605. - fi
  32606. - ;;
  32607. -
  32608. - os2*)
  32609. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32610. - hardcode_minus_L_F77=yes
  32611. - allow_undefined_flag_F77=unsupported
  32612. - 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'
  32613. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  32614. - ;;
  32615. -
  32616. - osf3*)
  32617. - if test "$GCC" = yes; then
  32618. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  32619. - 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'
  32620. - else
  32621. - allow_undefined_flag_F77=' -expect_unresolved \*'
  32622. - 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'
  32623. - fi
  32624. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32625. - hardcode_libdir_separator_F77=:
  32626. - ;;
  32627. -
  32628. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  32629. - if test "$GCC" = yes; then
  32630. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  32631. - 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'
  32632. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32633. - else
  32634. - allow_undefined_flag_F77=' -expect_unresolved \*'
  32635. - 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'
  32636. - 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~
  32637. - $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'
  32638. -
  32639. - # Both c and cxx compiler support -rpath directly
  32640. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  32641. - fi
  32642. - hardcode_libdir_separator_F77=:
  32643. - ;;
  32644. -
  32645. - solaris*)
  32646. - no_undefined_flag_F77=' -z text'
  32647. - if test "$GCC" = yes; then
  32648. - wlarc='${wl}'
  32649. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32650. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32651. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  32652. - else
  32653. - wlarc=''
  32654. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32655. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32656. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  32657. - fi
  32658. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32659. - hardcode_shlibpath_var_F77=no
  32660. - case $host_os in
  32661. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  32662. - *)
  32663. - # The compiler driver will combine linker options so we
  32664. - # cannot just pass the convience library names through
  32665. - # without $wl, iff we do not link with $LD.
  32666. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  32667. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32668. - case $wlarc in
  32669. - '')
  32670. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  32671. - *)
  32672. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  32673. - esac ;;
  32674. - esac
  32675. - link_all_deplibs_F77=yes
  32676. - ;;
  32677. -
  32678. - sunos4*)
  32679. - if test "x$host_vendor" = xsequent; then
  32680. - # Use $CC to link under sequent, because it throws in some extra .o
  32681. - # files that make .init and .fini sections work.
  32682. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32683. - else
  32684. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  32685. - fi
  32686. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32687. - hardcode_direct_F77=yes
  32688. - hardcode_minus_L_F77=yes
  32689. - hardcode_shlibpath_var_F77=no
  32690. - ;;
  32691. -
  32692. - sysv4)
  32693. - case $host_vendor in
  32694. - sni)
  32695. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32696. - hardcode_direct_F77=yes # is this really true???
  32697. - ;;
  32698. - siemens)
  32699. - ## LD is ld it makes a PLAMLIB
  32700. - ## CC just makes a GrossModule.
  32701. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  32702. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  32703. - hardcode_direct_F77=no
  32704. - ;;
  32705. - motorola)
  32706. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32707. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  32708. - ;;
  32709. - esac
  32710. - runpath_var='LD_RUN_PATH'
  32711. - hardcode_shlibpath_var_F77=no
  32712. - ;;
  32713. -
  32714. - sysv4.3*)
  32715. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32716. - hardcode_shlibpath_var_F77=no
  32717. - export_dynamic_flag_spec_F77='-Bexport'
  32718. - ;;
  32719. -
  32720. - sysv4*MP*)
  32721. - if test -d /usr/nec; then
  32722. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32723. - hardcode_shlibpath_var_F77=no
  32724. - runpath_var=LD_RUN_PATH
  32725. - hardcode_runpath_var=yes
  32726. - ld_shlibs_F77=yes
  32727. - fi
  32728. - ;;
  32729. -
  32730. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  32731. - no_undefined_flag_F77='${wl}-z,text'
  32732. - archive_cmds_need_lc_F77=no
  32733. - hardcode_shlibpath_var_F77=no
  32734. - runpath_var='LD_RUN_PATH'
  32735. -
  32736. - if test "$GCC" = yes; then
  32737. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32738. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32739. - else
  32740. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32741. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32742. - fi
  32743. - ;;
  32744. -
  32745. - sysv5* | sco3.2v5* | sco5v6*)
  32746. - # Note: We can NOT use -z defs as we might desire, because we do not
  32747. - # link with -lc, and that would cause any symbols used from libc to
  32748. - # always be unresolved, which means just about no library would
  32749. - # ever link correctly. If we're not using GNU ld we use -z text
  32750. - # though, which does catch some bad symbols but isn't as heavy-handed
  32751. - # as -z defs.
  32752. - no_undefined_flag_F77='${wl}-z,text'
  32753. - allow_undefined_flag_F77='${wl}-z,nodefs'
  32754. - archive_cmds_need_lc_F77=no
  32755. - hardcode_shlibpath_var_F77=no
  32756. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32757. - hardcode_libdir_separator_F77=':'
  32758. - link_all_deplibs_F77=yes
  32759. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  32760. - runpath_var='LD_RUN_PATH'
  32761. -
  32762. - if test "$GCC" = yes; then
  32763. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32764. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32765. - else
  32766. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32767. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32768. - fi
  32769. - ;;
  32770. -
  32771. - uts4*)
  32772. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32773. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32774. - hardcode_shlibpath_var_F77=no
  32775. - ;;
  32776. -
  32777. - *)
  32778. - ld_shlibs_F77=no
  32779. - ;;
  32780. - esac
  32781. - fi
  32782. -
  32783. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  32784. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  32785. -test "$ld_shlibs_F77" = no && can_build_shared=no
  32786. -
  32787. -#
  32788. -# Do we need to explicitly link libc?
  32789. -#
  32790. -case "x$archive_cmds_need_lc_F77" in
  32791. -x|xyes)
  32792. - # Assume -lc should be added
  32793. - archive_cmds_need_lc_F77=yes
  32794. -
  32795. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32796. - case $archive_cmds_F77 in
  32797. - *'~'*)
  32798. - # FIXME: we may have to deal with multi-command sequences.
  32799. - ;;
  32800. - '$CC '*)
  32801. - # Test whether the compiler implicitly links with -lc since on some
  32802. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32803. - # to ld, don't add -lc before -lgcc.
  32804. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32805. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  32806. - $rm conftest*
  32807. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  32808. -
  32809. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32810. - (eval $ac_compile) 2>&5
  32811. - ac_status=$?
  32812. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32813. - (exit $ac_status); } 2>conftest.err; then
  32814. - soname=conftest
  32815. - lib=conftest
  32816. - libobjs=conftest.$ac_objext
  32817. - deplibs=
  32818. - wl=$lt_prog_compiler_wl_F77
  32819. - pic_flag=$lt_prog_compiler_pic_F77
  32820. - compiler_flags=-v
  32821. - linker_flags=-v
  32822. - verstring=
  32823. - output_objdir=.
  32824. - libname=conftest
  32825. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  32826. - allow_undefined_flag_F77=
  32827. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32828. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32829. - ac_status=$?
  32830. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32831. - (exit $ac_status); }
  32832. - then
  32833. - archive_cmds_need_lc_F77=no
  32834. - else
  32835. - archive_cmds_need_lc_F77=yes
  32836. - fi
  32837. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  32838. - else
  32839. - cat conftest.err 1>&5
  32840. - fi
  32841. - $rm conftest*
  32842. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  32843. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  32844. - ;;
  32845. - esac
  32846. - fi
  32847. - ;;
  32848. -esac
  32849. -
  32850. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  32851. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  32852. -library_names_spec=
  32853. -libname_spec='lib$name'
  32854. -soname_spec=
  32855. -shrext_cmds=".so"
  32856. -postinstall_cmds=
  32857. -postuninstall_cmds=
  32858. -finish_cmds=
  32859. -finish_eval=
  32860. -shlibpath_var=
  32861. -shlibpath_overrides_runpath=unknown
  32862. -version_type=none
  32863. -dynamic_linker="$host_os ld.so"
  32864. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  32865. -if test "$GCC" = yes; then
  32866. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32867. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  32868. - # if the path contains ";" then we assume it to be the separator
  32869. - # otherwise default to the standard path separator (i.e. ":") - it is
  32870. - # assumed that no part of a normal pathname contains ";" but that should
  32871. - # okay in the real world where ";" in dirpaths is itself problematic.
  32872. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32873. - else
  32874. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32875. - fi
  32876. -else
  32877. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  32878. -fi
  32879. -need_lib_prefix=unknown
  32880. -hardcode_into_libs=no
  32881. -
  32882. -# when you set need_version to no, make sure it does not cause -set_version
  32883. -# flags to be left without arguments
  32884. -need_version=unknown
  32885. -
  32886. -case $host_os in
  32887. -aix3*)
  32888. - version_type=linux
  32889. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  32890. - shlibpath_var=LIBPATH
  32891. -
  32892. - # AIX 3 has no versioning support, so we append a major version to the name.
  32893. - soname_spec='${libname}${release}${shared_ext}$major'
  32894. - ;;
  32895. -
  32896. -aix4* | aix5*)
  32897. - version_type=linux
  32898. - need_lib_prefix=no
  32899. - need_version=no
  32900. - hardcode_into_libs=yes
  32901. - if test "$host_cpu" = ia64; then
  32902. - # AIX 5 supports IA64
  32903. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  32904. - shlibpath_var=LD_LIBRARY_PATH
  32905. - else
  32906. - # With GCC up to 2.95.x, collect2 would create an import file
  32907. - # for dependence libraries. The import file would start with
  32908. - # the line `#! .'. This would cause the generated library to
  32909. - # depend on `.', always an invalid library. This was fixed in
  32910. - # development snapshots of GCC prior to 3.0.
  32911. - case $host_os in
  32912. - aix4 | aix4.[01] | aix4.[01].*)
  32913. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  32914. - echo ' yes '
  32915. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  32916. - :
  32917. - else
  32918. - can_build_shared=no
  32919. - fi
  32920. - ;;
  32921. - esac
  32922. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  32923. - # soname into executable. Probably we can add versioning support to
  32924. - # collect2, so additional links can be useful in future.
  32925. - if test "$aix_use_runtimelinking" = yes; then
  32926. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  32927. - # instead of lib<name>.a to let people know that these are not
  32928. - # typical AIX shared libraries.
  32929. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32930. - else
  32931. - # We preserve .a as extension for shared libraries through AIX4.2
  32932. - # and later when we are not doing run time linking.
  32933. - library_names_spec='${libname}${release}.a $libname.a'
  32934. - soname_spec='${libname}${release}${shared_ext}$major'
  32935. - fi
  32936. - shlibpath_var=LIBPATH
  32937. - fi
  32938. - ;;
  32939. -
  32940. -amigaos*)
  32941. - library_names_spec='$libname.ixlibrary $libname.a'
  32942. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32943. - 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'
  32944. - ;;
  32945. -
  32946. -beos*)
  32947. - library_names_spec='${libname}${shared_ext}'
  32948. - dynamic_linker="$host_os ld.so"
  32949. - shlibpath_var=LIBRARY_PATH
  32950. - ;;
  32951. -
  32952. -bsdi[45]*)
  32953. - version_type=linux
  32954. - need_version=no
  32955. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32956. - soname_spec='${libname}${release}${shared_ext}$major'
  32957. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  32958. - shlibpath_var=LD_LIBRARY_PATH
  32959. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  32960. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  32961. - # the default ld.so.conf also contains /usr/contrib/lib and
  32962. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  32963. - # libtool to hard-code these into programs
  32964. - ;;
  32965. -
  32966. -cygwin* | mingw* | pw32*)
  32967. - version_type=windows
  32968. - shrext_cmds=".dll"
  32969. - need_version=no
  32970. - need_lib_prefix=no
  32971. -
  32972. - case $GCC,$host_os in
  32973. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32974. - library_names_spec='$libname.dll.a'
  32975. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32976. - postinstall_cmds='base_file=`basename \${file}`~
  32977. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32978. - dldir=$destdir/`dirname \$dlpath`~
  32979. - test -d \$dldir || mkdir -p \$dldir~
  32980. - $install_prog $dir/$dlname \$dldir/$dlname~
  32981. - chmod a+x \$dldir/$dlname'
  32982. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32983. - dlpath=$dir/\$dldll~
  32984. - $rm \$dlpath'
  32985. - shlibpath_overrides_runpath=yes
  32986. -
  32987. - case $host_os in
  32988. - cygwin*)
  32989. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  32990. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32991. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32992. - ;;
  32993. - mingw*)
  32994. - # MinGW DLLs use traditional 'lib' prefix
  32995. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32996. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32997. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32998. - # It is most probably a Windows format PATH printed by
  32999. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  33000. - # path with ; separators, and with drive letters. We can handle the
  33001. - # drive letters (cygwin fileutils understands them), so leave them,
  33002. - # especially as we might pass files found there to a mingw objdump,
  33003. - # which wouldn't understand a cygwinified path. Ahh.
  33004. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33005. - else
  33006. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33007. - fi
  33008. - ;;
  33009. - pw32*)
  33010. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  33011. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33012. + hpux*)
  33013. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  33014. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  33015. + # sets the default TLS model and affects inlining.
  33016. + case $host_cpu in
  33017. + hppa*64*)
  33018. + # +Z the default
  33019. + ;;
  33020. + *)
  33021. + lt_prog_compiler_pic='-fPIC'
  33022. + ;;
  33023. + esac
  33024. ;;
  33025. - esac
  33026. - ;;
  33027. -
  33028. - *)
  33029. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  33030. - ;;
  33031. - esac
  33032. - dynamic_linker='Win32 ld.exe'
  33033. - # FIXME: first we should search . and the directory the executable is in
  33034. - shlibpath_var=PATH
  33035. - ;;
  33036. -
  33037. -darwin* | rhapsody*)
  33038. - dynamic_linker="$host_os dyld"
  33039. - version_type=darwin
  33040. - need_lib_prefix=no
  33041. - need_version=no
  33042. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33043. - soname_spec='${libname}${release}${major}$shared_ext'
  33044. - shlibpath_overrides_runpath=yes
  33045. - shlibpath_var=DYLD_LIBRARY_PATH
  33046. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  33047. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  33048. - if test "$GCC" = yes; then
  33049. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  33050. - else
  33051. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  33052. - fi
  33053. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  33054. - ;;
  33055. -
  33056. -dgux*)
  33057. - version_type=linux
  33058. - need_lib_prefix=no
  33059. - need_version=no
  33060. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  33061. - soname_spec='${libname}${release}${shared_ext}$major'
  33062. - shlibpath_var=LD_LIBRARY_PATH
  33063. - ;;
  33064. -
  33065. -freebsd1*)
  33066. - dynamic_linker=no
  33067. - ;;
  33068. -
  33069. -kfreebsd*-gnu)
  33070. - version_type=linux
  33071. - need_lib_prefix=no
  33072. - need_version=no
  33073. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33074. - soname_spec='${libname}${release}${shared_ext}$major'
  33075. - shlibpath_var=LD_LIBRARY_PATH
  33076. - shlibpath_overrides_runpath=no
  33077. - hardcode_into_libs=yes
  33078. - dynamic_linker='GNU ld.so'
  33079. - ;;
  33080. -freebsd* | dragonfly*)
  33081. - # DragonFly does not have aout. When/if they implement a new
  33082. - # versioning mechanism, adjust this.
  33083. - if test -x /usr/bin/objformat; then
  33084. - objformat=`/usr/bin/objformat`
  33085. - else
  33086. - case $host_os in
  33087. - freebsd[123]*) objformat=aout ;;
  33088. - *) objformat=elf ;;
  33089. - esac
  33090. - fi
  33091. - version_type=freebsd-$objformat
  33092. - case $version_type in
  33093. - freebsd-elf*)
  33094. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33095. - need_version=no
  33096. - need_lib_prefix=no
  33097. - ;;
  33098. - freebsd-*)
  33099. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  33100. - need_version=yes
  33101. + interix[3-9]*)
  33102. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  33103. + # Instead, we relocate shared libraries at runtime.
  33104. ;;
  33105. - esac
  33106. - shlibpath_var=LD_LIBRARY_PATH
  33107. - case $host_os in
  33108. - freebsd2*)
  33109. - shlibpath_overrides_runpath=yes
  33110. - ;;
  33111. - freebsd3.[01]* | freebsdelf3.[01]*)
  33112. - shlibpath_overrides_runpath=yes
  33113. - hardcode_into_libs=yes
  33114. - ;;
  33115. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  33116. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  33117. - shlibpath_overrides_runpath=no
  33118. - hardcode_into_libs=yes
  33119. - ;;
  33120. - freebsd*) # from 4.6 on
  33121. - shlibpath_overrides_runpath=yes
  33122. - hardcode_into_libs=yes
  33123. - ;;
  33124. - esac
  33125. - ;;
  33126. -
  33127. -gnu*)
  33128. - version_type=linux
  33129. - need_lib_prefix=no
  33130. - need_version=no
  33131. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  33132. - soname_spec='${libname}${release}${shared_ext}$major'
  33133. - shlibpath_var=LD_LIBRARY_PATH
  33134. - hardcode_into_libs=yes
  33135. - ;;
  33136. -
  33137. -hpux9* | hpux10* | hpux11*)
  33138. - # Give a soname corresponding to the major version so that dld.sl refuses to
  33139. - # link against other versions.
  33140. - version_type=sunos
  33141. - need_lib_prefix=no
  33142. - need_version=no
  33143. - case $host_cpu in
  33144. - ia64*)
  33145. - shrext_cmds='.so'
  33146. - hardcode_into_libs=yes
  33147. - dynamic_linker="$host_os dld.so"
  33148. - shlibpath_var=LD_LIBRARY_PATH
  33149. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33150. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33151. - soname_spec='${libname}${release}${shared_ext}$major'
  33152. - if test "X$HPUX_IA64_MODE" = X32; then
  33153. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  33154. - else
  33155. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  33156. - fi
  33157. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33158. - ;;
  33159. - hppa*64*)
  33160. - shrext_cmds='.sl'
  33161. - hardcode_into_libs=yes
  33162. - dynamic_linker="$host_os dld.sl"
  33163. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33164. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33165. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33166. - soname_spec='${libname}${release}${shared_ext}$major'
  33167. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33168. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33169. - ;;
  33170. - *)
  33171. - shrext_cmds='.sl'
  33172. - dynamic_linker="$host_os dld.sl"
  33173. - shlibpath_var=SHLIB_PATH
  33174. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  33175. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33176. - soname_spec='${libname}${release}${shared_ext}$major'
  33177. - ;;
  33178. - esac
  33179. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  33180. - postinstall_cmds='chmod 555 $lib'
  33181. - ;;
  33182. -
  33183. -interix3*)
  33184. - version_type=linux
  33185. - need_lib_prefix=no
  33186. - need_version=no
  33187. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33188. - soname_spec='${libname}${release}${shared_ext}$major'
  33189. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  33190. - shlibpath_var=LD_LIBRARY_PATH
  33191. - shlibpath_overrides_runpath=no
  33192. - hardcode_into_libs=yes
  33193. - ;;
  33194. -
  33195. -irix5* | irix6* | nonstopux*)
  33196. - case $host_os in
  33197. - nonstopux*) version_type=nonstopux ;;
  33198. - *)
  33199. - if test "$lt_cv_prog_gnu_ld" = yes; then
  33200. - version_type=linux
  33201. - else
  33202. - version_type=irix
  33203. - fi ;;
  33204. - esac
  33205. - need_lib_prefix=no
  33206. - need_version=no
  33207. - soname_spec='${libname}${release}${shared_ext}$major'
  33208. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  33209. - case $host_os in
  33210. - irix5* | nonstopux*)
  33211. - libsuff= shlibsuff=
  33212. - ;;
  33213. - *)
  33214. - case $LD in # libtool.m4 will add one of these switches to LD
  33215. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  33216. - libsuff= shlibsuff= libmagic=32-bit;;
  33217. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  33218. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  33219. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  33220. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  33221. - *) libsuff= shlibsuff= libmagic=never-match;;
  33222. - esac
  33223. - ;;
  33224. - esac
  33225. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  33226. - shlibpath_overrides_runpath=no
  33227. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  33228. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  33229. - hardcode_into_libs=yes
  33230. - ;;
  33231. -
  33232. -# No shared lib support for Linux oldld, aout, or coff.
  33233. -linux*oldld* | linux*aout* | linux*coff*)
  33234. - dynamic_linker=no
  33235. - ;;
  33236. -
  33237. -# This must be Linux ELF.
  33238. -linux*)
  33239. - version_type=linux
  33240. - need_lib_prefix=no
  33241. - need_version=no
  33242. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33243. - soname_spec='${libname}${release}${shared_ext}$major'
  33244. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  33245. - shlibpath_var=LD_LIBRARY_PATH
  33246. - shlibpath_overrides_runpath=no
  33247. - # This implies no fast_install, which is unacceptable.
  33248. - # Some rework will be needed to allow for fast_install
  33249. - # before this can be enabled.
  33250. - hardcode_into_libs=yes
  33251. -
  33252. - # Append ld.so.conf contents to the search path
  33253. - if test -f /etc/ld.so.conf; then
  33254. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  33255. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  33256. - fi
  33257. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  33258. - # powerpc, because MkLinux only supported shared libraries with the
  33259. - # GNU dynamic linker. Since this was broken with cross compilers,
  33260. - # most powerpc-linux boxes support dynamic linking these days and
  33261. - # people can always --disable-shared, the test was removed, and we
  33262. - # assume the GNU/Linux dynamic linker is in use.
  33263. - dynamic_linker='GNU/Linux ld.so'
  33264. - ;;
  33265. + msdosdjgpp*)
  33266. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  33267. + # on systems that don't support them.
  33268. + lt_prog_compiler_can_build_shared=no
  33269. + enable_shared=no
  33270. + ;;
  33271. -knetbsd*-gnu)
  33272. - version_type=linux
  33273. - need_lib_prefix=no
  33274. - need_version=no
  33275. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33276. - soname_spec='${libname}${release}${shared_ext}$major'
  33277. - shlibpath_var=LD_LIBRARY_PATH
  33278. - shlibpath_overrides_runpath=no
  33279. - hardcode_into_libs=yes
  33280. - dynamic_linker='GNU ld.so'
  33281. - ;;
  33282. + *nto* | *qnx*)
  33283. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33284. + # it will coredump.
  33285. + lt_prog_compiler_pic='-fPIC -shared'
  33286. + ;;
  33287. -netbsd*)
  33288. - version_type=sunos
  33289. - need_lib_prefix=no
  33290. - need_version=no
  33291. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33292. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33293. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33294. - dynamic_linker='NetBSD (a.out) ld.so'
  33295. + sysv4*MP*)
  33296. + if test -d /usr/nec; then
  33297. + lt_prog_compiler_pic=-Kconform_pic
  33298. + fi
  33299. + ;;
  33300. +
  33301. + *)
  33302. + lt_prog_compiler_pic='-fPIC'
  33303. + ;;
  33304. + esac
  33305. else
  33306. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33307. - soname_spec='${libname}${release}${shared_ext}$major'
  33308. - dynamic_linker='NetBSD ld.elf_so'
  33309. - fi
  33310. - shlibpath_var=LD_LIBRARY_PATH
  33311. - shlibpath_overrides_runpath=yes
  33312. - hardcode_into_libs=yes
  33313. - ;;
  33314. + # PORTME Check for flag to pass linker flags through the system compiler.
  33315. + case $host_os in
  33316. + aix*)
  33317. + lt_prog_compiler_wl='-Wl,'
  33318. + if test "$host_cpu" = ia64; then
  33319. + # AIX 5 now supports IA64 processor
  33320. + lt_prog_compiler_static='-Bstatic'
  33321. + else
  33322. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  33323. + fi
  33324. + ;;
  33325. -newsos6)
  33326. - version_type=linux
  33327. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33328. - shlibpath_var=LD_LIBRARY_PATH
  33329. - shlibpath_overrides_runpath=yes
  33330. - ;;
  33331. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33332. + # This hack is so that the source file can tell whether it is being
  33333. + # built for inclusion in a dll (and should export symbols for example).
  33334. + lt_prog_compiler_pic='-DDLL_EXPORT'
  33335. + ;;
  33336. -nto-qnx*)
  33337. - version_type=linux
  33338. - need_lib_prefix=no
  33339. - need_version=no
  33340. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33341. - soname_spec='${libname}${release}${shared_ext}$major'
  33342. - shlibpath_var=LD_LIBRARY_PATH
  33343. - shlibpath_overrides_runpath=yes
  33344. - ;;
  33345. + hpux9* | hpux10* | hpux11*)
  33346. + lt_prog_compiler_wl='-Wl,'
  33347. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33348. + # not for PA HP-UX.
  33349. + case $host_cpu in
  33350. + hppa*64*|ia64*)
  33351. + # +Z the default
  33352. + ;;
  33353. + *)
  33354. + lt_prog_compiler_pic='+Z'
  33355. + ;;
  33356. + esac
  33357. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33358. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  33359. + ;;
  33360. -openbsd*)
  33361. - version_type=sunos
  33362. - sys_lib_dlsearch_path_spec="/usr/lib"
  33363. - need_lib_prefix=no
  33364. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  33365. - case $host_os in
  33366. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33367. - *) need_version=no ;;
  33368. - esac
  33369. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33370. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33371. - shlibpath_var=LD_LIBRARY_PATH
  33372. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33373. - case $host_os in
  33374. - openbsd2.[89] | openbsd2.[89].*)
  33375. - shlibpath_overrides_runpath=no
  33376. + irix5* | irix6* | nonstopux*)
  33377. + lt_prog_compiler_wl='-Wl,'
  33378. + # PIC (with -KPIC) is the default.
  33379. + lt_prog_compiler_static='-non_shared'
  33380. + ;;
  33381. +
  33382. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33383. + case $cc_basename in
  33384. + # old Intel for x86_64 which still supported -KPIC.
  33385. + ecc*)
  33386. + lt_prog_compiler_wl='-Wl,'
  33387. + lt_prog_compiler_pic='-KPIC'
  33388. + lt_prog_compiler_static='-static'
  33389. + ;;
  33390. + # icc used to be incompatible with GCC.
  33391. + # ICC 10 doesn't accept -KPIC any more.
  33392. + icc* | ifort*)
  33393. + lt_prog_compiler_wl='-Wl,'
  33394. + lt_prog_compiler_pic='-fPIC'
  33395. + lt_prog_compiler_static='-static'
  33396. + ;;
  33397. + # Lahey Fortran 8.1.
  33398. + lf95*)
  33399. + lt_prog_compiler_wl='-Wl,'
  33400. + lt_prog_compiler_pic='--shared'
  33401. + lt_prog_compiler_static='--static'
  33402. + ;;
  33403. + pgcc* | pgf77* | pgf90* | pgf95*)
  33404. + # Portland Group compilers (*not* the Pentium gcc compiler,
  33405. + # which looks to be a dead project)
  33406. + lt_prog_compiler_wl='-Wl,'
  33407. + lt_prog_compiler_pic='-fpic'
  33408. + lt_prog_compiler_static='-Bstatic'
  33409. + ;;
  33410. + ccc*)
  33411. + lt_prog_compiler_wl='-Wl,'
  33412. + # All Alpha code is PIC.
  33413. + lt_prog_compiler_static='-non_shared'
  33414. + ;;
  33415. + xl*)
  33416. + # IBM XL C 8.0/Fortran 10.1 on PPC
  33417. + lt_prog_compiler_wl='-Wl,'
  33418. + lt_prog_compiler_pic='-qpic'
  33419. + lt_prog_compiler_static='-qstaticlink'
  33420. ;;
  33421. *)
  33422. - shlibpath_overrides_runpath=yes
  33423. + case `$CC -V 2>&1 | sed 5q` in
  33424. + *Sun\ C*)
  33425. + # Sun C 5.9
  33426. + lt_prog_compiler_pic='-KPIC'
  33427. + lt_prog_compiler_static='-Bstatic'
  33428. + lt_prog_compiler_wl='-Wl,'
  33429. + ;;
  33430. + *Sun\ F*)
  33431. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  33432. + lt_prog_compiler_pic='-KPIC'
  33433. + lt_prog_compiler_static='-Bstatic'
  33434. + lt_prog_compiler_wl=''
  33435. + ;;
  33436. + esac
  33437. ;;
  33438. esac
  33439. - else
  33440. - shlibpath_overrides_runpath=yes
  33441. - fi
  33442. - ;;
  33443. + ;;
  33444. -os2*)
  33445. - libname_spec='$name'
  33446. - shrext_cmds=".dll"
  33447. - need_lib_prefix=no
  33448. - library_names_spec='$libname${shared_ext} $libname.a'
  33449. - dynamic_linker='OS/2 ld.exe'
  33450. - shlibpath_var=LIBPATH
  33451. - ;;
  33452. + newsos6)
  33453. + lt_prog_compiler_pic='-KPIC'
  33454. + lt_prog_compiler_static='-Bstatic'
  33455. + ;;
  33456. -osf3* | osf4* | osf5*)
  33457. - version_type=osf
  33458. - need_lib_prefix=no
  33459. - need_version=no
  33460. - soname_spec='${libname}${release}${shared_ext}$major'
  33461. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33462. - shlibpath_var=LD_LIBRARY_PATH
  33463. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  33464. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  33465. - ;;
  33466. + *nto* | *qnx*)
  33467. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33468. + # it will coredump.
  33469. + lt_prog_compiler_pic='-fPIC -shared'
  33470. + ;;
  33471. -solaris*)
  33472. - version_type=linux
  33473. - need_lib_prefix=no
  33474. - need_version=no
  33475. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33476. - soname_spec='${libname}${release}${shared_ext}$major'
  33477. - shlibpath_var=LD_LIBRARY_PATH
  33478. - shlibpath_overrides_runpath=yes
  33479. - hardcode_into_libs=yes
  33480. - # ldd complains unless libraries are executable
  33481. - postinstall_cmds='chmod +x $lib'
  33482. - ;;
  33483. + osf3* | osf4* | osf5*)
  33484. + lt_prog_compiler_wl='-Wl,'
  33485. + # All OSF/1 code is PIC.
  33486. + lt_prog_compiler_static='-non_shared'
  33487. + ;;
  33488. -sunos4*)
  33489. - version_type=sunos
  33490. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33491. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  33492. - shlibpath_var=LD_LIBRARY_PATH
  33493. - shlibpath_overrides_runpath=yes
  33494. - if test "$with_gnu_ld" = yes; then
  33495. - need_lib_prefix=no
  33496. - fi
  33497. - need_version=yes
  33498. - ;;
  33499. + rdos*)
  33500. + lt_prog_compiler_static='-non_shared'
  33501. + ;;
  33502. -sysv4 | sysv4.3*)
  33503. - version_type=linux
  33504. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33505. - soname_spec='${libname}${release}${shared_ext}$major'
  33506. - shlibpath_var=LD_LIBRARY_PATH
  33507. - case $host_vendor in
  33508. - sni)
  33509. - shlibpath_overrides_runpath=no
  33510. - need_lib_prefix=no
  33511. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33512. - runpath_var=LD_RUN_PATH
  33513. + solaris*)
  33514. + lt_prog_compiler_pic='-KPIC'
  33515. + lt_prog_compiler_static='-Bstatic'
  33516. + case $cc_basename in
  33517. + f77* | f90* | f95*)
  33518. + lt_prog_compiler_wl='-Qoption ld ';;
  33519. + *)
  33520. + lt_prog_compiler_wl='-Wl,';;
  33521. + esac
  33522. ;;
  33523. - siemens)
  33524. - need_lib_prefix=no
  33525. +
  33526. + sunos4*)
  33527. + lt_prog_compiler_wl='-Qoption ld '
  33528. + lt_prog_compiler_pic='-PIC'
  33529. + lt_prog_compiler_static='-Bstatic'
  33530. ;;
  33531. - motorola)
  33532. - need_lib_prefix=no
  33533. - need_version=no
  33534. - shlibpath_overrides_runpath=no
  33535. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  33536. +
  33537. + sysv4 | sysv4.2uw2* | sysv4.3*)
  33538. + lt_prog_compiler_wl='-Wl,'
  33539. + lt_prog_compiler_pic='-KPIC'
  33540. + lt_prog_compiler_static='-Bstatic'
  33541. ;;
  33542. - esac
  33543. - ;;
  33544. -sysv4*MP*)
  33545. - if test -d /usr/nec ;then
  33546. - version_type=linux
  33547. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  33548. - soname_spec='$libname${shared_ext}.$major'
  33549. - shlibpath_var=LD_LIBRARY_PATH
  33550. - fi
  33551. - ;;
  33552. + sysv4*MP*)
  33553. + if test -d /usr/nec ;then
  33554. + lt_prog_compiler_pic='-Kconform_pic'
  33555. + lt_prog_compiler_static='-Bstatic'
  33556. + fi
  33557. + ;;
  33558. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  33559. - version_type=freebsd-elf
  33560. - need_lib_prefix=no
  33561. - need_version=no
  33562. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33563. - soname_spec='${libname}${release}${shared_ext}$major'
  33564. - shlibpath_var=LD_LIBRARY_PATH
  33565. - hardcode_into_libs=yes
  33566. - if test "$with_gnu_ld" = yes; then
  33567. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33568. - shlibpath_overrides_runpath=no
  33569. - else
  33570. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33571. - shlibpath_overrides_runpath=yes
  33572. - case $host_os in
  33573. - sco3.2v5*)
  33574. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33575. - ;;
  33576. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33577. + lt_prog_compiler_wl='-Wl,'
  33578. + lt_prog_compiler_pic='-KPIC'
  33579. + lt_prog_compiler_static='-Bstatic'
  33580. + ;;
  33581. +
  33582. + unicos*)
  33583. + lt_prog_compiler_wl='-Wl,'
  33584. + lt_prog_compiler_can_build_shared=no
  33585. + ;;
  33586. +
  33587. + uts4*)
  33588. + lt_prog_compiler_pic='-pic'
  33589. + lt_prog_compiler_static='-Bstatic'
  33590. + ;;
  33591. +
  33592. + *)
  33593. + lt_prog_compiler_can_build_shared=no
  33594. + ;;
  33595. esac
  33596. fi
  33597. - sys_lib_dlsearch_path_spec='/usr/lib'
  33598. - ;;
  33599. -
  33600. -uts4*)
  33601. - version_type=linux
  33602. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33603. - soname_spec='${libname}${release}${shared_ext}$major'
  33604. - shlibpath_var=LD_LIBRARY_PATH
  33605. - ;;
  33606. -*)
  33607. - dynamic_linker=no
  33608. - ;;
  33609. +case $host_os in
  33610. + # For platforms which do not support PIC, -DPIC is meaningless:
  33611. + *djgpp*)
  33612. + lt_prog_compiler_pic=
  33613. + ;;
  33614. + *)
  33615. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  33616. + ;;
  33617. esac
  33618. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33619. -echo "${ECHO_T}$dynamic_linker" >&6; }
  33620. -test "$dynamic_linker" = no && can_build_shared=no
  33621. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  33622. +$as_echo "$lt_prog_compiler_pic" >&6; }
  33623. +
  33624. +
  33625. +
  33626. +
  33627. +
  33628. +
  33629. +#
  33630. +# Check to make sure the PIC flag actually works.
  33631. +#
  33632. +if test -n "$lt_prog_compiler_pic"; then
  33633. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  33634. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  33635. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  33636. + $as_echo_n "(cached) " >&6
  33637. +else
  33638. + lt_cv_prog_compiler_pic_works=no
  33639. + ac_outfile=conftest.$ac_objext
  33640. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33641. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  33642. + # Insert the option either (1) after the last *FLAGS variable, or
  33643. + # (2) before a word containing "conftest.", or (3) at the end.
  33644. + # Note that $ac_compile itself does not contain backslashes and begins
  33645. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33646. + # The option is referenced via a variable to avoid confusing sed.
  33647. + lt_compile=`echo "$ac_compile" | $SED \
  33648. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33649. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33650. + -e 's:$: $lt_compiler_flag:'`
  33651. + (eval echo "\"\$as_me:7674: $lt_compile\"" >&5)
  33652. + (eval "$lt_compile" 2>conftest.err)
  33653. + ac_status=$?
  33654. + cat conftest.err >&5
  33655. + echo "$as_me:7678: \$? = $ac_status" >&5
  33656. + if (exit $ac_status) && test -s "$ac_outfile"; then
  33657. + # The compiler can only warn and ignore the option if not recognized
  33658. + # So say no if there are warnings other than the usual output.
  33659. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33660. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33661. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33662. + lt_cv_prog_compiler_pic_works=yes
  33663. + fi
  33664. + fi
  33665. + $RM conftest*
  33666. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33667. -if test "$GCC" = yes; then
  33668. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33669. fi
  33670. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  33671. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  33672. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33673. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  33674. -hardcode_action_F77=
  33675. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  33676. - test -n "$runpath_var_F77" || \
  33677. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  33678. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  33679. + case $lt_prog_compiler_pic in
  33680. + "" | " "*) ;;
  33681. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  33682. + esac
  33683. +else
  33684. + lt_prog_compiler_pic=
  33685. + lt_prog_compiler_can_build_shared=no
  33686. +fi
  33687. - # We can hardcode non-existant directories.
  33688. - if test "$hardcode_direct_F77" != no &&
  33689. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33690. - # have to relink, otherwise we might link with an installed library
  33691. - # when we should be linking with a yet-to-be-installed one
  33692. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  33693. - test "$hardcode_minus_L_F77" != no; then
  33694. - # Linking always hardcodes the temporary library directory.
  33695. - hardcode_action_F77=relink
  33696. - else
  33697. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33698. - hardcode_action_F77=immediate
  33699. - fi
  33700. +fi
  33701. +
  33702. +
  33703. +
  33704. +
  33705. +
  33706. +
  33707. +#
  33708. +# Check to make sure the static flag actually works.
  33709. +#
  33710. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  33711. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  33712. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  33713. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  33714. + $as_echo_n "(cached) " >&6
  33715. else
  33716. - # We cannot hardcode anything, or else we can only hardcode existing
  33717. - # directories.
  33718. - hardcode_action_F77=unsupported
  33719. + lt_cv_prog_compiler_static_works=no
  33720. + save_LDFLAGS="$LDFLAGS"
  33721. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  33722. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  33723. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  33724. + # The linker can only warn and ignore the option if not recognized
  33725. + # So say no if there are warnings
  33726. + if test -s conftest.err; then
  33727. + # Append any errors to the config.log.
  33728. + cat conftest.err 1>&5
  33729. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  33730. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33731. + if diff conftest.exp conftest.er2 >/dev/null; then
  33732. + lt_cv_prog_compiler_static_works=yes
  33733. + fi
  33734. + else
  33735. + lt_cv_prog_compiler_static_works=yes
  33736. + fi
  33737. + fi
  33738. + $RM -r conftest*
  33739. + LDFLAGS="$save_LDFLAGS"
  33740. +
  33741. fi
  33742. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  33743. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  33744. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  33745. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  33746. -if test "$hardcode_action_F77" = relink; then
  33747. - # Fast installation is not supported
  33748. - enable_fast_install=no
  33749. -elif test "$shlibpath_overrides_runpath" = yes ||
  33750. - test "$enable_shared" = no; then
  33751. - # Fast installation is not necessary
  33752. - enable_fast_install=needless
  33753. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  33754. + :
  33755. +else
  33756. + lt_prog_compiler_static=
  33757. fi
  33758. -# The else clause should only fire when bootstrapping the
  33759. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  33760. -# with your package, and you will get complaints that there are
  33761. -# no rules to generate ltmain.sh.
  33762. -if test -f "$ltmain"; then
  33763. - # See if we are running on zsh, and set the options which allow our commands through
  33764. - # without removal of \ escapes.
  33765. - if test -n "${ZSH_VERSION+set}" ; then
  33766. - setopt NO_GLOB_SUBST
  33767. - fi
  33768. - # Now quote all the things that may contain metacharacters while being
  33769. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  33770. - # variables and quote the copies for generation of the libtool script.
  33771. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  33772. - SED SHELL STRIP \
  33773. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  33774. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  33775. - deplibs_check_method reload_flag reload_cmds need_locks \
  33776. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  33777. - lt_cv_sys_global_symbol_to_c_name_address \
  33778. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  33779. - old_postinstall_cmds old_postuninstall_cmds \
  33780. - compiler_F77 \
  33781. - CC_F77 \
  33782. - LD_F77 \
  33783. - lt_prog_compiler_wl_F77 \
  33784. - lt_prog_compiler_pic_F77 \
  33785. - lt_prog_compiler_static_F77 \
  33786. - lt_prog_compiler_no_builtin_flag_F77 \
  33787. - export_dynamic_flag_spec_F77 \
  33788. - thread_safe_flag_spec_F77 \
  33789. - whole_archive_flag_spec_F77 \
  33790. - enable_shared_with_static_runtimes_F77 \
  33791. - old_archive_cmds_F77 \
  33792. - old_archive_from_new_cmds_F77 \
  33793. - predep_objects_F77 \
  33794. - postdep_objects_F77 \
  33795. - predeps_F77 \
  33796. - postdeps_F77 \
  33797. - compiler_lib_search_path_F77 \
  33798. - archive_cmds_F77 \
  33799. - archive_expsym_cmds_F77 \
  33800. - postinstall_cmds_F77 \
  33801. - postuninstall_cmds_F77 \
  33802. - old_archive_from_expsyms_cmds_F77 \
  33803. - allow_undefined_flag_F77 \
  33804. - no_undefined_flag_F77 \
  33805. - export_symbols_cmds_F77 \
  33806. - hardcode_libdir_flag_spec_F77 \
  33807. - hardcode_libdir_flag_spec_ld_F77 \
  33808. - hardcode_libdir_separator_F77 \
  33809. - hardcode_automatic_F77 \
  33810. - module_cmds_F77 \
  33811. - module_expsym_cmds_F77 \
  33812. - lt_cv_prog_compiler_c_o_F77 \
  33813. - exclude_expsyms_F77 \
  33814. - include_expsyms_F77; do
  33815. -
  33816. - case $var in
  33817. - old_archive_cmds_F77 | \
  33818. - old_archive_from_new_cmds_F77 | \
  33819. - archive_cmds_F77 | \
  33820. - archive_expsym_cmds_F77 | \
  33821. - module_cmds_F77 | \
  33822. - module_expsym_cmds_F77 | \
  33823. - old_archive_from_expsyms_cmds_F77 | \
  33824. - export_symbols_cmds_F77 | \
  33825. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  33826. - postinstall_cmds | postuninstall_cmds | \
  33827. - old_postinstall_cmds | old_postuninstall_cmds | \
  33828. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  33829. - # Double-quote double-evaled strings.
  33830. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  33831. - ;;
  33832. - *)
  33833. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  33834. - ;;
  33835. - esac
  33836. - done
  33837. - case $lt_echo in
  33838. - *'\$0 --fallback-echo"')
  33839. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  33840. - ;;
  33841. - esac
  33842. -cfgfile="$ofile"
  33843. - cat <<__EOF__ >> "$cfgfile"
  33844. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  33845. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  33846. -# Shell to use when invoking shell scripts.
  33847. -SHELL=$lt_SHELL
  33848. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33849. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33850. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  33851. + $as_echo_n "(cached) " >&6
  33852. +else
  33853. + lt_cv_prog_compiler_c_o=no
  33854. + $RM -r conftest 2>/dev/null
  33855. + mkdir conftest
  33856. + cd conftest
  33857. + mkdir out
  33858. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33859. -# Whether or not to build shared libraries.
  33860. -build_libtool_libs=$enable_shared
  33861. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33862. + # Insert the option either (1) after the last *FLAGS variable, or
  33863. + # (2) before a word containing "conftest.", or (3) at the end.
  33864. + # Note that $ac_compile itself does not contain backslashes and begins
  33865. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33866. + lt_compile=`echo "$ac_compile" | $SED \
  33867. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33868. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33869. + -e 's:$: $lt_compiler_flag:'`
  33870. + (eval echo "\"\$as_me:7779: $lt_compile\"" >&5)
  33871. + (eval "$lt_compile" 2>out/conftest.err)
  33872. + ac_status=$?
  33873. + cat out/conftest.err >&5
  33874. + echo "$as_me:7783: \$? = $ac_status" >&5
  33875. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33876. + then
  33877. + # The compiler can only warn and ignore the option if not recognized
  33878. + # So say no if there are warnings
  33879. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33880. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33881. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33882. + lt_cv_prog_compiler_c_o=yes
  33883. + fi
  33884. + fi
  33885. + chmod u+w . 2>&5
  33886. + $RM conftest*
  33887. + # SGI C++ compiler will create directory out/ii_files/ for
  33888. + # template instantiation
  33889. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33890. + $RM out/* && rmdir out
  33891. + cd ..
  33892. + $RM -r conftest
  33893. + $RM conftest*
  33894. -# Whether or not to build static libraries.
  33895. -build_old_libs=$enable_static
  33896. +fi
  33897. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  33898. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  33899. -# Whether or not to add -lc for building shared libraries.
  33900. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  33901. -# Whether or not to disallow shared libs when runtime libs are static
  33902. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  33903. -# Whether or not to optimize for fast installation.
  33904. -fast_install=$enable_fast_install
  33905. -# The host system.
  33906. -host_alias=$host_alias
  33907. -host=$host
  33908. -host_os=$host_os
  33909. -# The build system.
  33910. -build_alias=$build_alias
  33911. -build=$build
  33912. -build_os=$build_os
  33913. -# An echo program that does not interpret backslashes.
  33914. -echo=$lt_echo
  33915. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33916. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33917. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  33918. + $as_echo_n "(cached) " >&6
  33919. +else
  33920. + lt_cv_prog_compiler_c_o=no
  33921. + $RM -r conftest 2>/dev/null
  33922. + mkdir conftest
  33923. + cd conftest
  33924. + mkdir out
  33925. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33926. -# The archiver.
  33927. -AR=$lt_AR
  33928. -AR_FLAGS=$lt_AR_FLAGS
  33929. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33930. + # Insert the option either (1) after the last *FLAGS variable, or
  33931. + # (2) before a word containing "conftest.", or (3) at the end.
  33932. + # Note that $ac_compile itself does not contain backslashes and begins
  33933. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33934. + lt_compile=`echo "$ac_compile" | $SED \
  33935. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33936. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33937. + -e 's:$: $lt_compiler_flag:'`
  33938. + (eval echo "\"\$as_me:7834: $lt_compile\"" >&5)
  33939. + (eval "$lt_compile" 2>out/conftest.err)
  33940. + ac_status=$?
  33941. + cat out/conftest.err >&5
  33942. + echo "$as_me:7838: \$? = $ac_status" >&5
  33943. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33944. + then
  33945. + # The compiler can only warn and ignore the option if not recognized
  33946. + # So say no if there are warnings
  33947. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33948. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33949. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33950. + lt_cv_prog_compiler_c_o=yes
  33951. + fi
  33952. + fi
  33953. + chmod u+w . 2>&5
  33954. + $RM conftest*
  33955. + # SGI C++ compiler will create directory out/ii_files/ for
  33956. + # template instantiation
  33957. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33958. + $RM out/* && rmdir out
  33959. + cd ..
  33960. + $RM -r conftest
  33961. + $RM conftest*
  33962. -# A C compiler.
  33963. -LTCC=$lt_LTCC
  33964. +fi
  33965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  33966. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  33967. -# LTCC compiler flags.
  33968. -LTCFLAGS=$lt_LTCFLAGS
  33969. -# A language-specific compiler.
  33970. -CC=$lt_compiler_F77
  33971. -# Is the compiler the GNU C compiler?
  33972. -with_gcc=$GCC_F77
  33973. -# An ERE matcher.
  33974. -EGREP=$lt_EGREP
  33975. +hard_links="nottested"
  33976. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  33977. + # do not overwrite the value of need_locks provided by the user
  33978. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  33979. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  33980. + hard_links=yes
  33981. + $RM conftest*
  33982. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33983. + touch conftest.a
  33984. + ln conftest.a conftest.b 2>&5 || hard_links=no
  33985. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33986. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  33987. +$as_echo "$hard_links" >&6; }
  33988. + if test "$hard_links" = no; then
  33989. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33990. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33991. + need_locks=warn
  33992. + fi
  33993. +else
  33994. + need_locks=no
  33995. +fi
  33996. -# The linker used to build libraries.
  33997. -LD=$lt_LD_F77
  33998. -# Whether we need hard or soft links.
  33999. -LN_S=$lt_LN_S
  34000. -# A BSD-compatible nm program.
  34001. -NM=$lt_NM
  34002. -# A symbol stripping program
  34003. -STRIP=$lt_STRIP
  34004. -# Used to examine libraries when file_magic_cmd begins "file"
  34005. -MAGIC_CMD=$MAGIC_CMD
  34006. -# Used on cygwin: DLL creation program.
  34007. -DLLTOOL="$DLLTOOL"
  34008. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34009. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  34010. +
  34011. + runpath_var=
  34012. + allow_undefined_flag=
  34013. + always_export_symbols=no
  34014. + archive_cmds=
  34015. + archive_expsym_cmds=
  34016. + compiler_needs_object=no
  34017. + enable_shared_with_static_runtimes=no
  34018. + export_dynamic_flag_spec=
  34019. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34020. + hardcode_automatic=no
  34021. + hardcode_direct=no
  34022. + hardcode_direct_absolute=no
  34023. + hardcode_libdir_flag_spec=
  34024. + hardcode_libdir_flag_spec_ld=
  34025. + hardcode_libdir_separator=
  34026. + hardcode_minus_L=no
  34027. + hardcode_shlibpath_var=unsupported
  34028. + inherit_rpath=no
  34029. + link_all_deplibs=unknown
  34030. + module_cmds=
  34031. + module_expsym_cmds=
  34032. + old_archive_from_new_cmds=
  34033. + old_archive_from_expsyms_cmds=
  34034. + thread_safe_flag_spec=
  34035. + whole_archive_flag_spec=
  34036. + # include_expsyms should be a list of space-separated symbols to be *always*
  34037. + # included in the symbol list
  34038. + include_expsyms=
  34039. + # exclude_expsyms can be an extended regexp of symbols to exclude
  34040. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  34041. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  34042. + # as well as any symbol that contains `d'.
  34043. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  34044. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  34045. + # platforms (ab)use it in PIC code, but their linkers get confused if
  34046. + # the symbol is explicitly referenced. Since portable code cannot
  34047. + # rely on this symbol name, it's probably fine to never include it in
  34048. + # preloaded symbol tables.
  34049. + # Exclude shared library initialization/finalization symbols.
  34050. + extract_expsyms_cmds=
  34051. +
  34052. + case $host_os in
  34053. + cygwin* | mingw* | pw32* | cegcc*)
  34054. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  34055. + # When not using gcc, we currently assume that we are using
  34056. + # Microsoft Visual C++.
  34057. + if test "$GCC" != yes; then
  34058. + with_gnu_ld=no
  34059. + fi
  34060. + ;;
  34061. + interix*)
  34062. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  34063. + with_gnu_ld=yes
  34064. + ;;
  34065. + openbsd*)
  34066. + with_gnu_ld=no
  34067. + ;;
  34068. + linux* | k*bsd*-gnu)
  34069. + link_all_deplibs=no
  34070. + ;;
  34071. + esac
  34072. -# Used on cygwin: object dumper.
  34073. -OBJDUMP="$OBJDUMP"
  34074. + ld_shlibs=yes
  34075. + if test "$with_gnu_ld" = yes; then
  34076. + # If archive_cmds runs LD, not CC, wlarc should be empty
  34077. + wlarc='${wl}'
  34078. -# Used on cygwin: assembler.
  34079. -AS="$AS"
  34080. + # Set some defaults for GNU ld with shared library support. These
  34081. + # are reset later if shared libraries are not supported. Putting them
  34082. + # here allows them to be overridden if necessary.
  34083. + runpath_var=LD_RUN_PATH
  34084. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34085. + export_dynamic_flag_spec='${wl}--export-dynamic'
  34086. + # ancient GNU ld didn't support --whole-archive et. al.
  34087. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  34088. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34089. + else
  34090. + whole_archive_flag_spec=
  34091. + fi
  34092. + supports_anon_versioning=no
  34093. + case `$LD -v 2>&1` in
  34094. + *GNU\ gold*) supports_anon_versioning=yes ;;
  34095. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34096. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34097. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34098. + *\ 2.11.*) ;; # other 2.11 versions
  34099. + *) supports_anon_versioning=yes ;;
  34100. + esac
  34101. -# The name of the directory that contains temporary libtool files.
  34102. -objdir=$objdir
  34103. + # See if GNU ld supports shared libraries.
  34104. + case $host_os in
  34105. + aix[3-9]*)
  34106. + # On AIX/PPC, the GNU linker is very broken
  34107. + if test "$host_cpu" != ia64; then
  34108. + ld_shlibs=no
  34109. + cat <<_LT_EOF 1>&2
  34110. -# How to create reloadable object files.
  34111. -reload_flag=$lt_reload_flag
  34112. -reload_cmds=$lt_reload_cmds
  34113. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  34114. +*** to be unable to reliably create shared libraries on AIX.
  34115. +*** Therefore, libtool is disabling shared libraries support. If you
  34116. +*** really care for shared libraries, you may want to modify your PATH
  34117. +*** so that a non-GNU linker is found, and then restart.
  34118. -# How to pass a linker flag through the compiler.
  34119. -wl=$lt_lt_prog_compiler_wl_F77
  34120. +_LT_EOF
  34121. + fi
  34122. + ;;
  34123. -# Object file suffix (normally "o").
  34124. -objext="$ac_objext"
  34125. + amigaos*)
  34126. + case $host_cpu in
  34127. + powerpc)
  34128. + # see comment about AmigaOS4 .so support
  34129. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34130. + archive_expsym_cmds=''
  34131. + ;;
  34132. + m68k)
  34133. + 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)'
  34134. + hardcode_libdir_flag_spec='-L$libdir'
  34135. + hardcode_minus_L=yes
  34136. + ;;
  34137. + esac
  34138. + ;;
  34139. -# Old archive suffix (normally "a").
  34140. -libext="$libext"
  34141. + beos*)
  34142. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34143. + allow_undefined_flag=unsupported
  34144. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34145. + # support --undefined. This deserves some investigation. FIXME
  34146. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34147. + else
  34148. + ld_shlibs=no
  34149. + fi
  34150. + ;;
  34151. -# Shared library suffix (normally ".so").
  34152. -shrext_cmds='$shrext_cmds'
  34153. + cygwin* | mingw* | pw32* | cegcc*)
  34154. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  34155. + # as there is no search path for DLLs.
  34156. + hardcode_libdir_flag_spec='-L$libdir'
  34157. + allow_undefined_flag=unsupported
  34158. + always_export_symbols=no
  34159. + enable_shared_with_static_runtimes=yes
  34160. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  34161. -# Executable file suffix (normally "").
  34162. -exeext="$exeext"
  34163. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  34164. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34165. + # If the export-symbols file already is a .def file (1st line
  34166. + # is EXPORTS), use it as is; otherwise, prepend...
  34167. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34168. + cp $export_symbols $output_objdir/$soname.def;
  34169. + else
  34170. + echo EXPORTS > $output_objdir/$soname.def;
  34171. + cat $export_symbols >> $output_objdir/$soname.def;
  34172. + fi~
  34173. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34174. + else
  34175. + ld_shlibs=no
  34176. + fi
  34177. + ;;
  34178. -# Additional compiler flags for building library objects.
  34179. -pic_flag=$lt_lt_prog_compiler_pic_F77
  34180. -pic_mode=$pic_mode
  34181. + interix[3-9]*)
  34182. + hardcode_direct=no
  34183. + hardcode_shlibpath_var=no
  34184. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34185. + export_dynamic_flag_spec='${wl}-E'
  34186. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34187. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  34188. + # default) and relocated if they conflict, which is a slow very memory
  34189. + # consuming and fragmenting process. To avoid this, we pick a random,
  34190. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34191. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34192. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  34193. + 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'
  34194. + ;;
  34195. -# What is the maximum length of a command?
  34196. -max_cmd_len=$lt_cv_sys_max_cmd_len
  34197. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  34198. + tmp_diet=no
  34199. + if test "$host_os" = linux-dietlibc; then
  34200. + case $cc_basename in
  34201. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  34202. + esac
  34203. + fi
  34204. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  34205. + && test "$tmp_diet" = no
  34206. + then
  34207. + tmp_addflag=
  34208. + tmp_sharedflag='-shared'
  34209. + case $cc_basename,$host_cpu in
  34210. + pgcc*) # Portland Group C compiler
  34211. + 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'
  34212. + tmp_addflag=' $pic_flag'
  34213. + ;;
  34214. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34215. + 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'
  34216. + tmp_addflag=' $pic_flag -Mnomain' ;;
  34217. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34218. + tmp_addflag=' -i_dynamic' ;;
  34219. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34220. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  34221. + ifc* | ifort*) # Intel Fortran compiler
  34222. + tmp_addflag=' -nofor_main' ;;
  34223. + lf95*) # Lahey Fortran 8.1
  34224. + whole_archive_flag_spec=
  34225. + tmp_sharedflag='--shared' ;;
  34226. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  34227. + tmp_sharedflag='-qmkshrobj'
  34228. + tmp_addflag= ;;
  34229. + esac
  34230. + case `$CC -V 2>&1 | sed 5q` in
  34231. + *Sun\ C*) # Sun C 5.9
  34232. + 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'
  34233. + compiler_needs_object=yes
  34234. + tmp_sharedflag='-G' ;;
  34235. + *Sun\ F*) # Sun Fortran 8.3
  34236. + tmp_sharedflag='-G' ;;
  34237. + esac
  34238. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34239. -# Does compiler simultaneously support -c and -o options?
  34240. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  34241. + if test "x$supports_anon_versioning" = xyes; then
  34242. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34243. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34244. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34245. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34246. + fi
  34247. -# Must we lock files when doing compilation?
  34248. -need_locks=$lt_need_locks
  34249. + case $cc_basename in
  34250. + xlf*)
  34251. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  34252. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  34253. + hardcode_libdir_flag_spec=
  34254. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  34255. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  34256. + if test "x$supports_anon_versioning" = xyes; then
  34257. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34258. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34259. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34260. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  34261. + fi
  34262. + ;;
  34263. + esac
  34264. + else
  34265. + ld_shlibs=no
  34266. + fi
  34267. + ;;
  34268. -# Do we need the lib prefix for modules?
  34269. -need_lib_prefix=$need_lib_prefix
  34270. + netbsd* | netbsdelf*-gnu)
  34271. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34272. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34273. + wlarc=
  34274. + else
  34275. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34276. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34277. + fi
  34278. + ;;
  34279. -# Do we need a version for libraries?
  34280. -need_version=$need_version
  34281. + solaris*)
  34282. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  34283. + ld_shlibs=no
  34284. + cat <<_LT_EOF 1>&2
  34285. -# Whether dlopen is supported.
  34286. -dlopen_support=$enable_dlopen
  34287. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34288. +*** create shared libraries on Solaris systems. Therefore, libtool
  34289. +*** is disabling shared libraries support. We urge you to upgrade GNU
  34290. +*** binutils to release 2.9.1 or newer. Another option is to modify
  34291. +*** your PATH or compiler configuration so that the native linker is
  34292. +*** used, and then restart.
  34293. -# Whether dlopen of programs is supported.
  34294. -dlopen_self=$enable_dlopen_self
  34295. +_LT_EOF
  34296. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34297. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34298. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34299. + else
  34300. + ld_shlibs=no
  34301. + fi
  34302. + ;;
  34303. -# Whether dlopen of statically linked programs is supported.
  34304. -dlopen_self_static=$enable_dlopen_self_static
  34305. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34306. + case `$LD -v 2>&1` in
  34307. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34308. + ld_shlibs=no
  34309. + cat <<_LT_EOF 1>&2
  34310. -# Compiler flag to prevent dynamic linking.
  34311. -link_static_flag=$lt_lt_prog_compiler_static_F77
  34312. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34313. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  34314. +*** is disabling shared libraries support. We urge you to upgrade GNU
  34315. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34316. +*** your PATH or compiler configuration so that the native linker is
  34317. +*** used, and then restart.
  34318. -# Compiler flag to turn off builtin functions.
  34319. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  34320. +_LT_EOF
  34321. + ;;
  34322. + *)
  34323. + # For security reasons, it is highly recommended that you always
  34324. + # use absolute paths for naming shared libraries, and exclude the
  34325. + # DT_RUNPATH tag from executables and libraries. But doing so
  34326. + # requires that you compile everything twice, which is a pain.
  34327. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34328. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34329. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34330. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34331. + else
  34332. + ld_shlibs=no
  34333. + fi
  34334. + ;;
  34335. + esac
  34336. + ;;
  34337. -# Compiler flag to allow reflexive dlopens.
  34338. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  34339. + sunos4*)
  34340. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34341. + wlarc=
  34342. + hardcode_direct=yes
  34343. + hardcode_shlibpath_var=no
  34344. + ;;
  34345. -# Compiler flag to generate shared objects directly from archives.
  34346. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  34347. + *)
  34348. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34349. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34350. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34351. + else
  34352. + ld_shlibs=no
  34353. + fi
  34354. + ;;
  34355. + esac
  34356. -# Compiler flag to generate thread-safe objects.
  34357. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  34358. + if test "$ld_shlibs" = no; then
  34359. + runpath_var=
  34360. + hardcode_libdir_flag_spec=
  34361. + export_dynamic_flag_spec=
  34362. + whole_archive_flag_spec=
  34363. + fi
  34364. + else
  34365. + # PORTME fill in a description of your system's linker (not GNU ld)
  34366. + case $host_os in
  34367. + aix3*)
  34368. + allow_undefined_flag=unsupported
  34369. + always_export_symbols=yes
  34370. + 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'
  34371. + # Note: this linker hardcodes the directories in LIBPATH if there
  34372. + # are no directories specified by -L.
  34373. + hardcode_minus_L=yes
  34374. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34375. + # Neither direct hardcoding nor static linking is supported with a
  34376. + # broken collect2.
  34377. + hardcode_direct=unsupported
  34378. + fi
  34379. + ;;
  34380. -# Library versioning type.
  34381. -version_type=$version_type
  34382. + aix[4-9]*)
  34383. + if test "$host_cpu" = ia64; then
  34384. + # On IA64, the linker does run time linking by default, so we don't
  34385. + # have to do anything special.
  34386. + aix_use_runtimelinking=no
  34387. + exp_sym_flag='-Bexport'
  34388. + no_entry_flag=""
  34389. + else
  34390. + # If we're using GNU nm, then we don't want the "-C" option.
  34391. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34392. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  34393. + 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'
  34394. + else
  34395. + 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'
  34396. + fi
  34397. + aix_use_runtimelinking=no
  34398. -# Format of library name prefix.
  34399. -libname_spec=$lt_libname_spec
  34400. + # Test if we are trying to use run time linking or normal
  34401. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34402. + # need to do runtime linking.
  34403. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  34404. + for ld_flag in $LDFLAGS; do
  34405. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34406. + aix_use_runtimelinking=yes
  34407. + break
  34408. + fi
  34409. + done
  34410. + ;;
  34411. + esac
  34412. -# List of archive names. First name is the real one, the rest are links.
  34413. -# The last name is the one that the linker finds with -lNAME.
  34414. -library_names_spec=$lt_library_names_spec
  34415. + exp_sym_flag='-bexport'
  34416. + no_entry_flag='-bnoentry'
  34417. + fi
  34418. -# The coded name of the library, if different from the real name.
  34419. -soname_spec=$lt_soname_spec
  34420. + # When large executables or shared objects are built, AIX ld can
  34421. + # have problems creating the table of contents. If linking a library
  34422. + # or program results in "error TOC overflow" add -mminimal-toc to
  34423. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34424. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34425. -# Commands used to build and install an old-style archive.
  34426. -RANLIB=$lt_RANLIB
  34427. -old_archive_cmds=$lt_old_archive_cmds_F77
  34428. -old_postinstall_cmds=$lt_old_postinstall_cmds
  34429. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34430. + archive_cmds=''
  34431. + hardcode_direct=yes
  34432. + hardcode_direct_absolute=yes
  34433. + hardcode_libdir_separator=':'
  34434. + link_all_deplibs=yes
  34435. + file_list_spec='${wl}-f,'
  34436. -# Create an old-style archive from a shared archive.
  34437. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  34438. + if test "$GCC" = yes; then
  34439. + case $host_os in aix4.[012]|aix4.[012].*)
  34440. + # We only want to do this on AIX 4.2 and lower, the check
  34441. + # below for broken collect2 doesn't work under 4.3+
  34442. + collect2name=`${CC} -print-prog-name=collect2`
  34443. + if test -f "$collect2name" &&
  34444. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  34445. + then
  34446. + # We have reworked collect2
  34447. + :
  34448. + else
  34449. + # We have old collect2
  34450. + hardcode_direct=unsupported
  34451. + # It fails to find uninstalled libraries when the uninstalled
  34452. + # path is not listed in the libpath. Setting hardcode_minus_L
  34453. + # to unsupported forces relinking
  34454. + hardcode_minus_L=yes
  34455. + hardcode_libdir_flag_spec='-L$libdir'
  34456. + hardcode_libdir_separator=
  34457. + fi
  34458. + ;;
  34459. + esac
  34460. + shared_flag='-shared'
  34461. + if test "$aix_use_runtimelinking" = yes; then
  34462. + shared_flag="$shared_flag "'${wl}-G'
  34463. + fi
  34464. + link_all_deplibs=no
  34465. + else
  34466. + # not using gcc
  34467. + if test "$host_cpu" = ia64; then
  34468. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34469. + # chokes on -Wl,-G. The following line is correct:
  34470. + shared_flag='-G'
  34471. + else
  34472. + if test "$aix_use_runtimelinking" = yes; then
  34473. + shared_flag='${wl}-G'
  34474. + else
  34475. + shared_flag='${wl}-bM:SRE'
  34476. + fi
  34477. + fi
  34478. + fi
  34479. -# Create a temporary old-style archive to link instead of a shared archive.
  34480. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  34481. + export_dynamic_flag_spec='${wl}-bexpall'
  34482. + # It seems that -bexpall does not export symbols beginning with
  34483. + # underscore (_), so it is better to generate a list of symbols to export.
  34484. + always_export_symbols=yes
  34485. + if test "$aix_use_runtimelinking" = yes; then
  34486. + # Warning - without using the other runtime loading flags (-brtl),
  34487. + # -berok will link without error, but may produce a broken library.
  34488. + allow_undefined_flag='-berok'
  34489. + # Determine the default libpath from the value encoded in an
  34490. + # empty executable.
  34491. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34492. +/* end confdefs.h. */
  34493. -# Commands used to build and install a shared archive.
  34494. -archive_cmds=$lt_archive_cmds_F77
  34495. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  34496. -postinstall_cmds=$lt_postinstall_cmds
  34497. -postuninstall_cmds=$lt_postuninstall_cmds
  34498. +int
  34499. +main ()
  34500. +{
  34501. -# Commands used to build a loadable module (assumed same as above if empty)
  34502. -module_cmds=$lt_module_cmds_F77
  34503. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  34504. + ;
  34505. + return 0;
  34506. +}
  34507. +_ACEOF
  34508. +if ac_fn_c_try_link "$LINENO"; then :
  34509. -# Commands to strip libraries.
  34510. -old_striplib=$lt_old_striplib
  34511. -striplib=$lt_striplib
  34512. +lt_aix_libpath_sed='
  34513. + /Import File Strings/,/^$/ {
  34514. + /^0/ {
  34515. + s/^0 *\(.*\)$/\1/
  34516. + p
  34517. + }
  34518. + }'
  34519. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34520. +# Check for a 64-bit object if we didn't find anything.
  34521. +if test -z "$aix_libpath"; then
  34522. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34523. +fi
  34524. +fi
  34525. +rm -f core conftest.err conftest.$ac_objext \
  34526. + conftest$ac_exeext conftest.$ac_ext
  34527. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34528. -# Dependencies to place before the objects being linked to create a
  34529. -# shared library.
  34530. -predep_objects=$lt_predep_objects_F77
  34531. -
  34532. -# Dependencies to place after the objects being linked to create a
  34533. -# shared library.
  34534. -postdep_objects=$lt_postdep_objects_F77
  34535. -
  34536. -# Dependencies to place before the objects being linked to create a
  34537. -# shared library.
  34538. -predeps=$lt_predeps_F77
  34539. -
  34540. -# Dependencies to place after the objects being linked to create a
  34541. -# shared library.
  34542. -postdeps=$lt_postdeps_F77
  34543. -
  34544. -# The library search path used internally by the compiler when linking
  34545. -# a shared library.
  34546. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  34547. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  34548. + 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"
  34549. + else
  34550. + if test "$host_cpu" = ia64; then
  34551. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  34552. + allow_undefined_flag="-z nodefs"
  34553. + 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"
  34554. + else
  34555. + # Determine the default libpath from the value encoded in an
  34556. + # empty executable.
  34557. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34558. +/* end confdefs.h. */
  34559. -# Method to check whether dependent libraries are shared objects.
  34560. -deplibs_check_method=$lt_deplibs_check_method
  34561. +int
  34562. +main ()
  34563. +{
  34564. -# Command to use when deplibs_check_method == file_magic.
  34565. -file_magic_cmd=$lt_file_magic_cmd
  34566. + ;
  34567. + return 0;
  34568. +}
  34569. +_ACEOF
  34570. +if ac_fn_c_try_link "$LINENO"; then :
  34571. -# Flag that allows shared libraries with undefined symbols to be built.
  34572. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  34573. +lt_aix_libpath_sed='
  34574. + /Import File Strings/,/^$/ {
  34575. + /^0/ {
  34576. + s/^0 *\(.*\)$/\1/
  34577. + p
  34578. + }
  34579. + }'
  34580. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34581. +# Check for a 64-bit object if we didn't find anything.
  34582. +if test -z "$aix_libpath"; then
  34583. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34584. +fi
  34585. +fi
  34586. +rm -f core conftest.err conftest.$ac_objext \
  34587. + conftest$ac_exeext conftest.$ac_ext
  34588. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34589. -# Flag that forces no undefined symbols.
  34590. -no_undefined_flag=$lt_no_undefined_flag_F77
  34591. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  34592. + # Warning - without using the other run time loading flags,
  34593. + # -berok will link without error, but may produce a broken library.
  34594. + no_undefined_flag=' ${wl}-bernotok'
  34595. + allow_undefined_flag=' ${wl}-berok'
  34596. + # Exported symbols can be pulled into shared objects from archives
  34597. + whole_archive_flag_spec='$convenience'
  34598. + archive_cmds_need_lc=yes
  34599. + # This is similar to how AIX traditionally builds its shared libraries.
  34600. + 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'
  34601. + fi
  34602. + fi
  34603. + ;;
  34604. -# Commands used to finish a libtool library installation in a directory.
  34605. -finish_cmds=$lt_finish_cmds
  34606. + amigaos*)
  34607. + case $host_cpu in
  34608. + powerpc)
  34609. + # see comment about AmigaOS4 .so support
  34610. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34611. + archive_expsym_cmds=''
  34612. + ;;
  34613. + m68k)
  34614. + 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)'
  34615. + hardcode_libdir_flag_spec='-L$libdir'
  34616. + hardcode_minus_L=yes
  34617. + ;;
  34618. + esac
  34619. + ;;
  34620. -# Same as above, but a single script fragment to be evaled but not shown.
  34621. -finish_eval=$lt_finish_eval
  34622. + bsdi[45]*)
  34623. + export_dynamic_flag_spec=-rdynamic
  34624. + ;;
  34625. -# Take the output of nm and produce a listing of raw symbols and C names.
  34626. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34627. + cygwin* | mingw* | pw32* | cegcc*)
  34628. + # When not using gcc, we currently assume that we are using
  34629. + # Microsoft Visual C++.
  34630. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  34631. + # no search path for DLLs.
  34632. + hardcode_libdir_flag_spec=' '
  34633. + allow_undefined_flag=unsupported
  34634. + # Tell ltmain to make .lib files, not .a files.
  34635. + libext=lib
  34636. + # Tell ltmain to make .dll files, not .so files.
  34637. + shrext_cmds=".dll"
  34638. + # FIXME: Setting linknames here is a bad hack.
  34639. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  34640. + # The linker will automatically build a .lib file if we build a DLL.
  34641. + old_archive_from_new_cmds='true'
  34642. + # FIXME: Should let the user specify the lib program.
  34643. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  34644. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  34645. + enable_shared_with_static_runtimes=yes
  34646. + ;;
  34647. -# Transform the output of nm in a proper C declaration
  34648. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  34649. + darwin* | rhapsody*)
  34650. -# Transform the output of nm in a C name address pair
  34651. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34652. -# This is the shared library runtime path variable.
  34653. -runpath_var=$runpath_var
  34654. + archive_cmds_need_lc=no
  34655. + hardcode_direct=no
  34656. + hardcode_automatic=yes
  34657. + hardcode_shlibpath_var=unsupported
  34658. + whole_archive_flag_spec=''
  34659. + link_all_deplibs=yes
  34660. + allow_undefined_flag="$_lt_dar_allow_undefined"
  34661. + case $cc_basename in
  34662. + ifort*) _lt_dar_can_shared=yes ;;
  34663. + *) _lt_dar_can_shared=$GCC ;;
  34664. + esac
  34665. + if test "$_lt_dar_can_shared" = "yes"; then
  34666. + output_verbose_link_cmd=echo
  34667. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  34668. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  34669. + 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}"
  34670. + 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}"
  34671. -# This is the shared library path variable.
  34672. -shlibpath_var=$shlibpath_var
  34673. + else
  34674. + ld_shlibs=no
  34675. + fi
  34676. -# Is shlibpath searched before the hard-coded library search path?
  34677. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34678. + ;;
  34679. -# How to hardcode a shared library path into an executable.
  34680. -hardcode_action=$hardcode_action_F77
  34681. + dgux*)
  34682. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34683. + hardcode_libdir_flag_spec='-L$libdir'
  34684. + hardcode_shlibpath_var=no
  34685. + ;;
  34686. -# Whether we should hardcode library paths into libraries.
  34687. -hardcode_into_libs=$hardcode_into_libs
  34688. + freebsd1*)
  34689. + ld_shlibs=no
  34690. + ;;
  34691. -# Flag to hardcode \$libdir into a binary during linking.
  34692. -# This must work even if \$libdir does not exist.
  34693. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  34694. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  34695. + # support. Future versions do this automatically, but an explicit c++rt0.o
  34696. + # does not break anything, and helps significantly (at the cost of a little
  34697. + # extra space).
  34698. + freebsd2.2*)
  34699. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  34700. + hardcode_libdir_flag_spec='-R$libdir'
  34701. + hardcode_direct=yes
  34702. + hardcode_shlibpath_var=no
  34703. + ;;
  34704. -# If ld is used when linking, flag to hardcode \$libdir into
  34705. -# a binary during linking. This must work even if \$libdir does
  34706. -# not exist.
  34707. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  34708. -
  34709. -# Whether we need a single -rpath flag with a separated argument.
  34710. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  34711. -
  34712. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  34713. -# resulting binary.
  34714. -hardcode_direct=$hardcode_direct_F77
  34715. -
  34716. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  34717. -# resulting binary.
  34718. -hardcode_minus_L=$hardcode_minus_L_F77
  34719. -
  34720. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34721. -# the resulting binary.
  34722. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  34723. -
  34724. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34725. -# and all subsequent libraries and executables linked against it.
  34726. -hardcode_automatic=$hardcode_automatic_F77
  34727. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  34728. + freebsd2*)
  34729. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34730. + hardcode_direct=yes
  34731. + hardcode_minus_L=yes
  34732. + hardcode_shlibpath_var=no
  34733. + ;;
  34734. -# Variables whose values should be saved in libtool wrapper scripts and
  34735. -# restored at relink time.
  34736. -variables_saved_for_relink="$variables_saved_for_relink"
  34737. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  34738. + freebsd* | dragonfly*)
  34739. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  34740. + hardcode_libdir_flag_spec='-R$libdir'
  34741. + hardcode_direct=yes
  34742. + hardcode_shlibpath_var=no
  34743. + ;;
  34744. -# Whether libtool must link a program against all its dependency libraries.
  34745. -link_all_deplibs=$link_all_deplibs_F77
  34746. + hpux9*)
  34747. + if test "$GCC" = yes; then
  34748. + 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'
  34749. + else
  34750. + 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'
  34751. + fi
  34752. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34753. + hardcode_libdir_separator=:
  34754. + hardcode_direct=yes
  34755. -# Compile-time system search path for libraries
  34756. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34757. + # hardcode_minus_L: Not really in the search PATH,
  34758. + # but as the default location of the library.
  34759. + hardcode_minus_L=yes
  34760. + export_dynamic_flag_spec='${wl}-E'
  34761. + ;;
  34762. -# Run-time system search path for libraries
  34763. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34764. + hpux10*)
  34765. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34766. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34767. + else
  34768. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  34769. + fi
  34770. + if test "$with_gnu_ld" = no; then
  34771. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34772. + hardcode_libdir_flag_spec_ld='+b $libdir'
  34773. + hardcode_libdir_separator=:
  34774. + hardcode_direct=yes
  34775. + hardcode_direct_absolute=yes
  34776. + export_dynamic_flag_spec='${wl}-E'
  34777. + # hardcode_minus_L: Not really in the search PATH,
  34778. + # but as the default location of the library.
  34779. + hardcode_minus_L=yes
  34780. + fi
  34781. + ;;
  34782. -# Fix the shell variable \$srcfile for the compiler.
  34783. -fix_srcfile_path="$fix_srcfile_path_F77"
  34784. + hpux11*)
  34785. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34786. + case $host_cpu in
  34787. + hppa*64*)
  34788. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34789. + ;;
  34790. + ia64*)
  34791. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34792. + ;;
  34793. + *)
  34794. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34795. + ;;
  34796. + esac
  34797. + else
  34798. + case $host_cpu in
  34799. + hppa*64*)
  34800. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34801. + ;;
  34802. + ia64*)
  34803. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34804. + ;;
  34805. + *)
  34806. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34807. + ;;
  34808. + esac
  34809. + fi
  34810. + if test "$with_gnu_ld" = no; then
  34811. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34812. + hardcode_libdir_separator=:
  34813. -# Set to yes if exported symbols are required.
  34814. -always_export_symbols=$always_export_symbols_F77
  34815. + case $host_cpu in
  34816. + hppa*64*|ia64*)
  34817. + hardcode_direct=no
  34818. + hardcode_shlibpath_var=no
  34819. + ;;
  34820. + *)
  34821. + hardcode_direct=yes
  34822. + hardcode_direct_absolute=yes
  34823. + export_dynamic_flag_spec='${wl}-E'
  34824. -# The commands to list exported symbols.
  34825. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  34826. + # hardcode_minus_L: Not really in the search PATH,
  34827. + # but as the default location of the library.
  34828. + hardcode_minus_L=yes
  34829. + ;;
  34830. + esac
  34831. + fi
  34832. + ;;
  34833. -# The commands to extract the exported symbol list from a shared archive.
  34834. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34835. + irix5* | irix6* | nonstopux*)
  34836. + if test "$GCC" = yes; then
  34837. + 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'
  34838. + # Try to use the -exported_symbol ld option, if it does not
  34839. + # work, assume that -exports_file does not work either and
  34840. + # implicitly export all symbols.
  34841. + save_LDFLAGS="$LDFLAGS"
  34842. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  34843. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34844. +/* end confdefs.h. */
  34845. +int foo(void) {}
  34846. +_ACEOF
  34847. +if ac_fn_c_try_link "$LINENO"; then :
  34848. + 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'
  34849. -# Symbols that should not be listed in the preloaded symbols.
  34850. -exclude_expsyms=$lt_exclude_expsyms_F77
  34851. +fi
  34852. +rm -f core conftest.err conftest.$ac_objext \
  34853. + conftest$ac_exeext conftest.$ac_ext
  34854. + LDFLAGS="$save_LDFLAGS"
  34855. + else
  34856. + 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'
  34857. + 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'
  34858. + fi
  34859. + archive_cmds_need_lc='no'
  34860. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34861. + hardcode_libdir_separator=:
  34862. + inherit_rpath=yes
  34863. + link_all_deplibs=yes
  34864. + ;;
  34865. -# Symbols that must always be exported.
  34866. -include_expsyms=$lt_include_expsyms_F77
  34867. + netbsd* | netbsdelf*-gnu)
  34868. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34869. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  34870. + else
  34871. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  34872. + fi
  34873. + hardcode_libdir_flag_spec='-R$libdir'
  34874. + hardcode_direct=yes
  34875. + hardcode_shlibpath_var=no
  34876. + ;;
  34877. -# ### END LIBTOOL TAG CONFIG: $tagname
  34878. + newsos6)
  34879. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34880. + hardcode_direct=yes
  34881. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34882. + hardcode_libdir_separator=:
  34883. + hardcode_shlibpath_var=no
  34884. + ;;
  34885. -__EOF__
  34886. + *nto* | *qnx*)
  34887. + ;;
  34888. + openbsd*)
  34889. + if test -f /usr/libexec/ld.so; then
  34890. + hardcode_direct=yes
  34891. + hardcode_shlibpath_var=no
  34892. + hardcode_direct_absolute=yes
  34893. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34894. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34895. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  34896. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34897. + export_dynamic_flag_spec='${wl}-E'
  34898. + else
  34899. + case $host_os in
  34900. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  34901. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34902. + hardcode_libdir_flag_spec='-R$libdir'
  34903. + ;;
  34904. + *)
  34905. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34906. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34907. + ;;
  34908. + esac
  34909. + fi
  34910. + else
  34911. + ld_shlibs=no
  34912. + fi
  34913. + ;;
  34914. -else
  34915. - # If there is no Makefile yet, we rely on a make rule to execute
  34916. - # `config.status --recheck' to rerun these tests and create the
  34917. - # libtool script then.
  34918. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  34919. - if test -f "$ltmain_in"; then
  34920. - test -f Makefile && make "$ltmain"
  34921. - fi
  34922. -fi
  34923. + os2*)
  34924. + hardcode_libdir_flag_spec='-L$libdir'
  34925. + hardcode_minus_L=yes
  34926. + allow_undefined_flag=unsupported
  34927. + 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'
  34928. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  34929. + ;;
  34930. + osf3*)
  34931. + if test "$GCC" = yes; then
  34932. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  34933. + 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'
  34934. + else
  34935. + allow_undefined_flag=' -expect_unresolved \*'
  34936. + 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'
  34937. + fi
  34938. + archive_cmds_need_lc='no'
  34939. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34940. + hardcode_libdir_separator=:
  34941. + ;;
  34942. -ac_ext=c
  34943. -ac_cpp='$CPP $CPPFLAGS'
  34944. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34945. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34946. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34947. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  34948. + if test "$GCC" = yes; then
  34949. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  34950. + 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'
  34951. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34952. + else
  34953. + allow_undefined_flag=' -expect_unresolved \*'
  34954. + 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'
  34955. + 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~
  34956. + $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'
  34957. -CC="$lt_save_CC"
  34958. + # Both c and cxx compiler support -rpath directly
  34959. + hardcode_libdir_flag_spec='-rpath $libdir'
  34960. + fi
  34961. + archive_cmds_need_lc='no'
  34962. + hardcode_libdir_separator=:
  34963. + ;;
  34964. + solaris*)
  34965. + no_undefined_flag=' -z defs'
  34966. + if test "$GCC" = yes; then
  34967. + wlarc='${wl}'
  34968. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34969. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34970. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  34971. + else
  34972. + case `$CC -V 2>&1` in
  34973. + *"Compilers 5.0"*)
  34974. + wlarc=''
  34975. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34976. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34977. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  34978. + ;;
  34979. + *)
  34980. + wlarc='${wl}'
  34981. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  34982. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  34983. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  34984. + ;;
  34985. + esac
  34986. + fi
  34987. + hardcode_libdir_flag_spec='-R$libdir'
  34988. + hardcode_shlibpath_var=no
  34989. + case $host_os in
  34990. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  34991. + *)
  34992. + # The compiler driver will combine and reorder linker options,
  34993. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  34994. + # but is careful enough not to reorder.
  34995. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  34996. + if test "$GCC" = yes; then
  34997. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  34998. else
  34999. - tagname=""
  35000. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  35001. fi
  35002. ;;
  35003. + esac
  35004. + link_all_deplibs=yes
  35005. + ;;
  35006. - GCJ)
  35007. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  35008. -
  35009. -
  35010. -# Source file extension for Java test sources.
  35011. -ac_ext=java
  35012. + sunos4*)
  35013. + if test "x$host_vendor" = xsequent; then
  35014. + # Use $CC to link under sequent, because it throws in some extra .o
  35015. + # files that make .init and .fini sections work.
  35016. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35017. + else
  35018. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35019. + fi
  35020. + hardcode_libdir_flag_spec='-L$libdir'
  35021. + hardcode_direct=yes
  35022. + hardcode_minus_L=yes
  35023. + hardcode_shlibpath_var=no
  35024. + ;;
  35025. -# Object file extension for compiled Java test sources.
  35026. -objext=o
  35027. -objext_GCJ=$objext
  35028. + sysv4)
  35029. + case $host_vendor in
  35030. + sni)
  35031. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35032. + hardcode_direct=yes # is this really true???
  35033. + ;;
  35034. + siemens)
  35035. + ## LD is ld it makes a PLAMLIB
  35036. + ## CC just makes a GrossModule.
  35037. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35038. + reload_cmds='$CC -r -o $output$reload_objs'
  35039. + hardcode_direct=no
  35040. + ;;
  35041. + motorola)
  35042. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35043. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  35044. + ;;
  35045. + esac
  35046. + runpath_var='LD_RUN_PATH'
  35047. + hardcode_shlibpath_var=no
  35048. + ;;
  35049. -# Code to be used in simple compile tests
  35050. -lt_simple_compile_test_code="class foo {}\n"
  35051. + sysv4.3*)
  35052. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35053. + hardcode_shlibpath_var=no
  35054. + export_dynamic_flag_spec='-Bexport'
  35055. + ;;
  35056. -# Code to be used in simple link tests
  35057. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  35058. + sysv4*MP*)
  35059. + if test -d /usr/nec; then
  35060. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35061. + hardcode_shlibpath_var=no
  35062. + runpath_var=LD_RUN_PATH
  35063. + hardcode_runpath_var=yes
  35064. + ld_shlibs=yes
  35065. + fi
  35066. + ;;
  35067. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  35068. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  35069. + no_undefined_flag='${wl}-z,text'
  35070. + archive_cmds_need_lc=no
  35071. + hardcode_shlibpath_var=no
  35072. + runpath_var='LD_RUN_PATH'
  35073. -# If no C compiler was specified, use CC.
  35074. -LTCC=${LTCC-"$CC"}
  35075. + if test "$GCC" = yes; then
  35076. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35077. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35078. + else
  35079. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35080. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35081. + fi
  35082. + ;;
  35083. -# If no C compiler flags were specified, use CFLAGS.
  35084. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  35085. + sysv5* | sco3.2v5* | sco5v6*)
  35086. + # Note: We can NOT use -z defs as we might desire, because we do not
  35087. + # link with -lc, and that would cause any symbols used from libc to
  35088. + # always be unresolved, which means just about no library would
  35089. + # ever link correctly. If we're not using GNU ld we use -z text
  35090. + # though, which does catch some bad symbols but isn't as heavy-handed
  35091. + # as -z defs.
  35092. + no_undefined_flag='${wl}-z,text'
  35093. + allow_undefined_flag='${wl}-z,nodefs'
  35094. + archive_cmds_need_lc=no
  35095. + hardcode_shlibpath_var=no
  35096. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  35097. + hardcode_libdir_separator=':'
  35098. + link_all_deplibs=yes
  35099. + export_dynamic_flag_spec='${wl}-Bexport'
  35100. + runpath_var='LD_RUN_PATH'
  35101. -# Allow CC to be a program name with arguments.
  35102. -compiler=$CC
  35103. + if test "$GCC" = yes; then
  35104. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35105. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35106. + else
  35107. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35108. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35109. + fi
  35110. + ;;
  35111. + uts4*)
  35112. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35113. + hardcode_libdir_flag_spec='-L$libdir'
  35114. + hardcode_shlibpath_var=no
  35115. + ;;
  35116. -# save warnings/boilerplate of simple test code
  35117. -ac_outfile=conftest.$ac_objext
  35118. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  35119. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35120. -_lt_compiler_boilerplate=`cat conftest.err`
  35121. -$rm conftest*
  35122. + *)
  35123. + ld_shlibs=no
  35124. + ;;
  35125. + esac
  35126. -ac_outfile=conftest.$ac_objext
  35127. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  35128. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35129. -_lt_linker_boilerplate=`cat conftest.err`
  35130. -$rm conftest*
  35131. + if test x$host_vendor = xsni; then
  35132. + case $host in
  35133. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  35134. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  35135. + ;;
  35136. + esac
  35137. + fi
  35138. + fi
  35139. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  35140. +$as_echo "$ld_shlibs" >&6; }
  35141. +test "$ld_shlibs" = no && can_build_shared=no
  35142. -# Allow CC to be a program name with arguments.
  35143. -lt_save_CC="$CC"
  35144. -CC=${GCJ-"gcj"}
  35145. -compiler=$CC
  35146. -compiler_GCJ=$CC
  35147. -for cc_temp in $compiler""; do
  35148. - case $cc_temp in
  35149. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  35150. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  35151. - \-*) ;;
  35152. - *) break;;
  35153. - esac
  35154. -done
  35155. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  35156. +with_gnu_ld=$with_gnu_ld
  35157. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  35158. -archive_cmds_need_lc_GCJ=no
  35159. -old_archive_cmds_GCJ=$old_archive_cmds
  35160. -lt_prog_compiler_no_builtin_flag_GCJ=
  35161. -if test "$GCC" = yes; then
  35162. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  35163. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  35164. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  35165. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  35166. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35167. -else
  35168. - lt_cv_prog_compiler_rtti_exceptions=no
  35169. - ac_outfile=conftest.$ac_objext
  35170. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35171. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  35172. - # Insert the option either (1) after the last *FLAGS variable, or
  35173. - # (2) before a word containing "conftest.", or (3) at the end.
  35174. - # Note that $ac_compile itself does not contain backslashes and begins
  35175. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35176. - # The option is referenced via a variable to avoid confusing sed.
  35177. - lt_compile=`echo "$ac_compile" | $SED \
  35178. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35179. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35180. - -e 's:$: $lt_compiler_flag:'`
  35181. - (eval echo "\"\$as_me:16769: $lt_compile\"" >&5)
  35182. - (eval "$lt_compile" 2>conftest.err)
  35183. - ac_status=$?
  35184. - cat conftest.err >&5
  35185. - echo "$as_me:16773: \$? = $ac_status" >&5
  35186. - if (exit $ac_status) && test -s "$ac_outfile"; then
  35187. - # The compiler can only warn and ignore the option if not recognized
  35188. - # So say no if there are warnings other than the usual output.
  35189. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  35190. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35191. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  35192. - lt_cv_prog_compiler_rtti_exceptions=yes
  35193. - fi
  35194. - fi
  35195. - $rm conftest*
  35196. -fi
  35197. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  35198. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  35199. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  35200. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  35201. -else
  35202. - :
  35203. -fi
  35204. -fi
  35205. -lt_prog_compiler_wl_GCJ=
  35206. -lt_prog_compiler_pic_GCJ=
  35207. -lt_prog_compiler_static_GCJ=
  35208. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  35209. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  35210. - if test "$GCC" = yes; then
  35211. - lt_prog_compiler_wl_GCJ='-Wl,'
  35212. - lt_prog_compiler_static_GCJ='-static'
  35213. - case $host_os in
  35214. - aix*)
  35215. - # All AIX code is PIC.
  35216. - if test "$host_cpu" = ia64; then
  35217. - # AIX 5 now supports IA64 processor
  35218. - lt_prog_compiler_static_GCJ='-Bstatic'
  35219. - fi
  35220. - ;;
  35221. +#
  35222. +# Do we need to explicitly link libc?
  35223. +#
  35224. +case "x$archive_cmds_need_lc" in
  35225. +x|xyes)
  35226. + # Assume -lc should be added
  35227. + archive_cmds_need_lc=yes
  35228. - amigaos*)
  35229. - # FIXME: we need at least 68020 code to build shared libraries, but
  35230. - # adding the `-m68020' flag to GCC prevents building anything better,
  35231. - # like `-m68040'.
  35232. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  35233. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  35234. + case $archive_cmds in
  35235. + *'~'*)
  35236. + # FIXME: we may have to deal with multi-command sequences.
  35237. ;;
  35238. + '$CC '*)
  35239. + # Test whether the compiler implicitly links with -lc since on some
  35240. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35241. + # to ld, don't add -lc before -lgcc.
  35242. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  35243. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  35244. + $RM conftest*
  35245. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35246. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  35247. - # PIC is the default for these OSes.
  35248. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  35249. + (eval $ac_compile) 2>&5
  35250. + ac_status=$?
  35251. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35252. + test $ac_status = 0; } 2>conftest.err; then
  35253. + soname=conftest
  35254. + lib=conftest
  35255. + libobjs=conftest.$ac_objext
  35256. + deplibs=
  35257. + wl=$lt_prog_compiler_wl
  35258. + pic_flag=$lt_prog_compiler_pic
  35259. + compiler_flags=-v
  35260. + linker_flags=-v
  35261. + verstring=
  35262. + output_objdir=.
  35263. + libname=conftest
  35264. + lt_save_allow_undefined_flag=$allow_undefined_flag
  35265. + allow_undefined_flag=
  35266. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  35267. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35268. + ac_status=$?
  35269. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35270. + test $ac_status = 0; }
  35271. + then
  35272. + archive_cmds_need_lc=no
  35273. + else
  35274. + archive_cmds_need_lc=yes
  35275. + fi
  35276. + allow_undefined_flag=$lt_save_allow_undefined_flag
  35277. + else
  35278. + cat conftest.err 1>&5
  35279. + fi
  35280. + $RM conftest*
  35281. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  35282. +$as_echo "$archive_cmds_need_lc" >&6; }
  35283. ;;
  35284. + esac
  35285. + fi
  35286. + ;;
  35287. +esac
  35288. +
  35289. +
  35290. +
  35291. +
  35292. +
  35293. +
  35294. +
  35295. +
  35296. +
  35297. +
  35298. +
  35299. +
  35300. +
  35301. +
  35302. +
  35303. +
  35304. +
  35305. +
  35306. +
  35307. +
  35308. +
  35309. +
  35310. +
  35311. +
  35312. +
  35313. +
  35314. +
  35315. +
  35316. +
  35317. +
  35318. +
  35319. +
  35320. +
  35321. +
  35322. +
  35323. - mingw* | pw32* | os2*)
  35324. - # This hack is so that the source file can tell whether it is being
  35325. - # built for inclusion in a dll (and should export symbols for example).
  35326. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  35327. - ;;
  35328. - darwin* | rhapsody*)
  35329. - # PIC is the default on this platform
  35330. - # Common symbols not allowed in MH_DYLIB files
  35331. - lt_prog_compiler_pic_GCJ='-fno-common'
  35332. - ;;
  35333. - interix3*)
  35334. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  35335. - # Instead, we relocate shared libraries at runtime.
  35336. - ;;
  35337. - msdosdjgpp*)
  35338. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  35339. - # on systems that don't support them.
  35340. - lt_prog_compiler_can_build_shared_GCJ=no
  35341. - enable_shared=no
  35342. - ;;
  35343. - sysv4*MP*)
  35344. - if test -d /usr/nec; then
  35345. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  35346. - fi
  35347. - ;;
  35348. - hpux*)
  35349. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  35350. - # not for PA HP-UX.
  35351. - case $host_cpu in
  35352. - hppa*64*|ia64*)
  35353. - # +Z the default
  35354. - ;;
  35355. - *)
  35356. - lt_prog_compiler_pic_GCJ='-fPIC'
  35357. - ;;
  35358. - esac
  35359. - ;;
  35360. - *)
  35361. - lt_prog_compiler_pic_GCJ='-fPIC'
  35362. - ;;
  35363. - esac
  35364. - else
  35365. - # PORTME Check for flag to pass linker flags through the system compiler.
  35366. - case $host_os in
  35367. - aix*)
  35368. - lt_prog_compiler_wl_GCJ='-Wl,'
  35369. - if test "$host_cpu" = ia64; then
  35370. - # AIX 5 now supports IA64 processor
  35371. - lt_prog_compiler_static_GCJ='-Bstatic'
  35372. - else
  35373. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  35374. - fi
  35375. - ;;
  35376. - darwin*)
  35377. - # PIC is the default on this platform
  35378. - # Common symbols not allowed in MH_DYLIB files
  35379. - case $cc_basename in
  35380. - xlc*)
  35381. - lt_prog_compiler_pic_GCJ='-qnocommon'
  35382. - lt_prog_compiler_wl_GCJ='-Wl,'
  35383. - ;;
  35384. - esac
  35385. - ;;
  35386. - mingw* | pw32* | os2*)
  35387. - # This hack is so that the source file can tell whether it is being
  35388. - # built for inclusion in a dll (and should export symbols for example).
  35389. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  35390. - ;;
  35391. - hpux9* | hpux10* | hpux11*)
  35392. - lt_prog_compiler_wl_GCJ='-Wl,'
  35393. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  35394. - # not for PA HP-UX.
  35395. - case $host_cpu in
  35396. - hppa*64*|ia64*)
  35397. - # +Z the default
  35398. - ;;
  35399. - *)
  35400. - lt_prog_compiler_pic_GCJ='+Z'
  35401. - ;;
  35402. - esac
  35403. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  35404. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  35405. - ;;
  35406. - irix5* | irix6* | nonstopux*)
  35407. - lt_prog_compiler_wl_GCJ='-Wl,'
  35408. - # PIC (with -KPIC) is the default.
  35409. - lt_prog_compiler_static_GCJ='-non_shared'
  35410. - ;;
  35411. - newsos6)
  35412. - lt_prog_compiler_pic_GCJ='-KPIC'
  35413. - lt_prog_compiler_static_GCJ='-Bstatic'
  35414. - ;;
  35415. - linux*)
  35416. - case $cc_basename in
  35417. - icc* | ecc*)
  35418. - lt_prog_compiler_wl_GCJ='-Wl,'
  35419. - lt_prog_compiler_pic_GCJ='-KPIC'
  35420. - lt_prog_compiler_static_GCJ='-static'
  35421. - ;;
  35422. - pgcc* | pgf77* | pgf90* | pgf95*)
  35423. - # Portland Group compilers (*not* the Pentium gcc compiler,
  35424. - # which looks to be a dead project)
  35425. - lt_prog_compiler_wl_GCJ='-Wl,'
  35426. - lt_prog_compiler_pic_GCJ='-fpic'
  35427. - lt_prog_compiler_static_GCJ='-Bstatic'
  35428. - ;;
  35429. - ccc*)
  35430. - lt_prog_compiler_wl_GCJ='-Wl,'
  35431. - # All Alpha code is PIC.
  35432. - lt_prog_compiler_static_GCJ='-non_shared'
  35433. - ;;
  35434. - esac
  35435. - ;;
  35436. - osf3* | osf4* | osf5*)
  35437. - lt_prog_compiler_wl_GCJ='-Wl,'
  35438. - # All OSF/1 code is PIC.
  35439. - lt_prog_compiler_static_GCJ='-non_shared'
  35440. - ;;
  35441. - solaris*)
  35442. - lt_prog_compiler_pic_GCJ='-KPIC'
  35443. - lt_prog_compiler_static_GCJ='-Bstatic'
  35444. - case $cc_basename in
  35445. - f77* | f90* | f95*)
  35446. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  35447. - *)
  35448. - lt_prog_compiler_wl_GCJ='-Wl,';;
  35449. - esac
  35450. - ;;
  35451. - sunos4*)
  35452. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  35453. - lt_prog_compiler_pic_GCJ='-PIC'
  35454. - lt_prog_compiler_static_GCJ='-Bstatic'
  35455. - ;;
  35456. - sysv4 | sysv4.2uw2* | sysv4.3*)
  35457. - lt_prog_compiler_wl_GCJ='-Wl,'
  35458. - lt_prog_compiler_pic_GCJ='-KPIC'
  35459. - lt_prog_compiler_static_GCJ='-Bstatic'
  35460. - ;;
  35461. - sysv4*MP*)
  35462. - if test -d /usr/nec ;then
  35463. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  35464. - lt_prog_compiler_static_GCJ='-Bstatic'
  35465. - fi
  35466. - ;;
  35467. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  35468. - lt_prog_compiler_wl_GCJ='-Wl,'
  35469. - lt_prog_compiler_pic_GCJ='-KPIC'
  35470. - lt_prog_compiler_static_GCJ='-Bstatic'
  35471. - ;;
  35472. - unicos*)
  35473. - lt_prog_compiler_wl_GCJ='-Wl,'
  35474. - lt_prog_compiler_can_build_shared_GCJ=no
  35475. - ;;
  35476. - uts4*)
  35477. - lt_prog_compiler_pic_GCJ='-pic'
  35478. - lt_prog_compiler_static_GCJ='-Bstatic'
  35479. - ;;
  35480. - *)
  35481. - lt_prog_compiler_can_build_shared_GCJ=no
  35482. - ;;
  35483. - esac
  35484. - fi
  35485. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  35486. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  35487. -#
  35488. -# Check to make sure the PIC flag actually works.
  35489. -#
  35490. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  35491. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  35492. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  35493. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  35494. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35495. -else
  35496. - lt_prog_compiler_pic_works_GCJ=no
  35497. - ac_outfile=conftest.$ac_objext
  35498. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35499. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  35500. - # Insert the option either (1) after the last *FLAGS variable, or
  35501. - # (2) before a word containing "conftest.", or (3) at the end.
  35502. - # Note that $ac_compile itself does not contain backslashes and begins
  35503. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35504. - # The option is referenced via a variable to avoid confusing sed.
  35505. - lt_compile=`echo "$ac_compile" | $SED \
  35506. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35507. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35508. - -e 's:$: $lt_compiler_flag:'`
  35509. - (eval echo "\"\$as_me:17037: $lt_compile\"" >&5)
  35510. - (eval "$lt_compile" 2>conftest.err)
  35511. - ac_status=$?
  35512. - cat conftest.err >&5
  35513. - echo "$as_me:17041: \$? = $ac_status" >&5
  35514. - if (exit $ac_status) && test -s "$ac_outfile"; then
  35515. - # The compiler can only warn and ignore the option if not recognized
  35516. - # So say no if there are warnings other than the usual output.
  35517. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  35518. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35519. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  35520. - lt_prog_compiler_pic_works_GCJ=yes
  35521. - fi
  35522. - fi
  35523. - $rm conftest*
  35524. -fi
  35525. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  35526. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  35527. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  35528. - case $lt_prog_compiler_pic_GCJ in
  35529. - "" | " "*) ;;
  35530. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  35531. - esac
  35532. -else
  35533. - lt_prog_compiler_pic_GCJ=
  35534. - lt_prog_compiler_can_build_shared_GCJ=no
  35535. -fi
  35536. -fi
  35537. -case $host_os in
  35538. - # For platforms which do not support PIC, -DPIC is meaningless:
  35539. - *djgpp*)
  35540. - lt_prog_compiler_pic_GCJ=
  35541. - ;;
  35542. - *)
  35543. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  35544. - ;;
  35545. -esac
  35546. -#
  35547. -# Check to make sure the static flag actually works.
  35548. -#
  35549. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  35550. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  35551. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  35552. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  35553. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35554. -else
  35555. - lt_prog_compiler_static_works_GCJ=no
  35556. - save_LDFLAGS="$LDFLAGS"
  35557. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  35558. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  35559. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  35560. - # The linker can only warn and ignore the option if not recognized
  35561. - # So say no if there are warnings
  35562. - if test -s conftest.err; then
  35563. - # Append any errors to the config.log.
  35564. - cat conftest.err 1>&5
  35565. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  35566. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35567. - if diff conftest.exp conftest.er2 >/dev/null; then
  35568. - lt_prog_compiler_static_works_GCJ=yes
  35569. - fi
  35570. - else
  35571. - lt_prog_compiler_static_works_GCJ=yes
  35572. - fi
  35573. - fi
  35574. - $rm conftest*
  35575. - LDFLAGS="$save_LDFLAGS"
  35576. -fi
  35577. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  35578. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  35579. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  35580. - :
  35581. -else
  35582. - lt_prog_compiler_static_GCJ=
  35583. -fi
  35584. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  35585. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  35586. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  35587. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35588. -else
  35589. - lt_cv_prog_compiler_c_o_GCJ=no
  35590. - $rm -r conftest 2>/dev/null
  35591. - mkdir conftest
  35592. - cd conftest
  35593. - mkdir out
  35594. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35595. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  35596. - # Insert the option either (1) after the last *FLAGS variable, or
  35597. - # (2) before a word containing "conftest.", or (3) at the end.
  35598. - # Note that $ac_compile itself does not contain backslashes and begins
  35599. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35600. - lt_compile=`echo "$ac_compile" | $SED \
  35601. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35602. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35603. - -e 's:$: $lt_compiler_flag:'`
  35604. - (eval echo "\"\$as_me:17141: $lt_compile\"" >&5)
  35605. - (eval "$lt_compile" 2>out/conftest.err)
  35606. - ac_status=$?
  35607. - cat out/conftest.err >&5
  35608. - echo "$as_me:17145: \$? = $ac_status" >&5
  35609. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  35610. - then
  35611. - # The compiler can only warn and ignore the option if not recognized
  35612. - # So say no if there are warnings
  35613. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  35614. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  35615. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  35616. - lt_cv_prog_compiler_c_o_GCJ=yes
  35617. - fi
  35618. - fi
  35619. - chmod u+w . 2>&5
  35620. - $rm conftest*
  35621. - # SGI C++ compiler will create directory out/ii_files/ for
  35622. - # template instantiation
  35623. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  35624. - $rm out/* && rmdir out
  35625. - cd ..
  35626. - rmdir conftest
  35627. - $rm conftest*
  35628. -fi
  35629. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  35630. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  35631. -hard_links="nottested"
  35632. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  35633. - # do not overwrite the value of need_locks provided by the user
  35634. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  35635. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  35636. - hard_links=yes
  35637. - $rm conftest*
  35638. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35639. - touch conftest.a
  35640. - ln conftest.a conftest.b 2>&5 || hard_links=no
  35641. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35642. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  35643. -echo "${ECHO_T}$hard_links" >&6; }
  35644. - if test "$hard_links" = no; then
  35645. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  35646. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  35647. - need_locks=warn
  35648. - fi
  35649. -else
  35650. - need_locks=no
  35651. -fi
  35652. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  35653. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  35654. - runpath_var=
  35655. - allow_undefined_flag_GCJ=
  35656. - enable_shared_with_static_runtimes_GCJ=no
  35657. - archive_cmds_GCJ=
  35658. - archive_expsym_cmds_GCJ=
  35659. - old_archive_From_new_cmds_GCJ=
  35660. - old_archive_from_expsyms_cmds_GCJ=
  35661. - export_dynamic_flag_spec_GCJ=
  35662. - whole_archive_flag_spec_GCJ=
  35663. - thread_safe_flag_spec_GCJ=
  35664. - hardcode_libdir_flag_spec_GCJ=
  35665. - hardcode_libdir_flag_spec_ld_GCJ=
  35666. - hardcode_libdir_separator_GCJ=
  35667. - hardcode_direct_GCJ=no
  35668. - hardcode_minus_L_GCJ=no
  35669. - hardcode_shlibpath_var_GCJ=unsupported
  35670. - link_all_deplibs_GCJ=unknown
  35671. - hardcode_automatic_GCJ=no
  35672. - module_cmds_GCJ=
  35673. - module_expsym_cmds_GCJ=
  35674. - always_export_symbols_GCJ=no
  35675. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  35676. - # include_expsyms should be a list of space-separated symbols to be *always*
  35677. - # included in the symbol list
  35678. - include_expsyms_GCJ=
  35679. - # exclude_expsyms can be an extended regexp of symbols to exclude
  35680. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  35681. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  35682. - # as well as any symbol that contains `d'.
  35683. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  35684. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  35685. - # platforms (ab)use it in PIC code, but their linkers get confused if
  35686. - # the symbol is explicitly referenced. Since portable code cannot
  35687. - # rely on this symbol name, it's probably fine to never include it in
  35688. - # preloaded symbol tables.
  35689. - extract_expsyms_cmds=
  35690. - # Just being paranoid about ensuring that cc_basename is set.
  35691. - for cc_temp in $compiler""; do
  35692. - case $cc_temp in
  35693. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  35694. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  35695. - \-*) ;;
  35696. - *) break;;
  35697. - esac
  35698. -done
  35699. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  35700. - case $host_os in
  35701. - cygwin* | mingw* | pw32*)
  35702. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  35703. - # When not using gcc, we currently assume that we are using
  35704. - # Microsoft Visual C++.
  35705. - if test "$GCC" != yes; then
  35706. - with_gnu_ld=no
  35707. - fi
  35708. - ;;
  35709. - interix*)
  35710. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  35711. - with_gnu_ld=yes
  35712. - ;;
  35713. - openbsd*)
  35714. - with_gnu_ld=no
  35715. - ;;
  35716. - esac
  35717. - ld_shlibs_GCJ=yes
  35718. - if test "$with_gnu_ld" = yes; then
  35719. - # If archive_cmds runs LD, not CC, wlarc should be empty
  35720. - wlarc='${wl}'
  35721. - # Set some defaults for GNU ld with shared library support. These
  35722. - # are reset later if shared libraries are not supported. Putting them
  35723. - # here allows them to be overridden if necessary.
  35724. - runpath_var=LD_RUN_PATH
  35725. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  35726. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  35727. - # ancient GNU ld didn't support --whole-archive et. al.
  35728. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  35729. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  35730. - else
  35731. - whole_archive_flag_spec_GCJ=
  35732. - fi
  35733. - supports_anon_versioning=no
  35734. - case `$LD -v 2>/dev/null` in
  35735. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  35736. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  35737. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  35738. - *\ 2.11.*) ;; # other 2.11 versions
  35739. - *) supports_anon_versioning=yes ;;
  35740. - esac
  35741. - # See if GNU ld supports shared libraries.
  35742. - case $host_os in
  35743. - aix3* | aix4* | aix5*)
  35744. - # On AIX/PPC, the GNU linker is very broken
  35745. - if test "$host_cpu" != ia64; then
  35746. - ld_shlibs_GCJ=no
  35747. - cat <<EOF 1>&2
  35748. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  35749. -*** to be unable to reliably create shared libraries on AIX.
  35750. -*** Therefore, libtool is disabling shared libraries support. If you
  35751. -*** really care for shared libraries, you may want to modify your PATH
  35752. -*** so that a non-GNU linker is found, and then restart.
  35753. -EOF
  35754. - fi
  35755. - ;;
  35756. - amigaos*)
  35757. - 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)'
  35758. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35759. - hardcode_minus_L_GCJ=yes
  35760. -
  35761. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  35762. - # that the semantics of dynamic libraries on AmigaOS, at least up
  35763. - # to version 4, is to share data among multiple programs linked
  35764. - # with the same dynamic library. Since this doesn't match the
  35765. - # behavior of shared libraries on other platforms, we can't use
  35766. - # them.
  35767. - ld_shlibs_GCJ=no
  35768. - ;;
  35769. - beos*)
  35770. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35771. - allow_undefined_flag_GCJ=unsupported
  35772. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  35773. - # support --undefined. This deserves some investigation. FIXME
  35774. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35775. - else
  35776. - ld_shlibs_GCJ=no
  35777. - fi
  35778. - ;;
  35779. - cygwin* | mingw* | pw32*)
  35780. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  35781. - # as there is no search path for DLLs.
  35782. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35783. - allow_undefined_flag_GCJ=unsupported
  35784. - always_export_symbols_GCJ=no
  35785. - enable_shared_with_static_runtimes_GCJ=yes
  35786. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  35787. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  35788. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35789. - # If the export-symbols file already is a .def file (1st line
  35790. - # is EXPORTS), use it as is; otherwise, prepend...
  35791. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  35792. - cp $export_symbols $output_objdir/$soname.def;
  35793. - else
  35794. - echo EXPORTS > $output_objdir/$soname.def;
  35795. - cat $export_symbols >> $output_objdir/$soname.def;
  35796. - fi~
  35797. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35798. - else
  35799. - ld_shlibs_GCJ=no
  35800. - fi
  35801. - ;;
  35802. - interix3*)
  35803. - hardcode_direct_GCJ=no
  35804. - hardcode_shlibpath_var_GCJ=no
  35805. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35806. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35807. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  35808. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  35809. - # default) and relocated if they conflict, which is a slow very memory
  35810. - # consuming and fragmenting process. To avoid this, we pick a random,
  35811. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  35812. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  35813. - 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'
  35814. - 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'
  35815. - ;;
  35816. - linux*)
  35817. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35818. - tmp_addflag=
  35819. - case $cc_basename,$host_cpu in
  35820. - pgcc*) # Portland Group C compiler
  35821. - 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'
  35822. - tmp_addflag=' $pic_flag'
  35823. - ;;
  35824. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  35825. - 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'
  35826. - tmp_addflag=' $pic_flag -Mnomain' ;;
  35827. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  35828. - tmp_addflag=' -i_dynamic' ;;
  35829. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  35830. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  35831. - ifc* | ifort*) # Intel Fortran compiler
  35832. - tmp_addflag=' -nofor_main' ;;
  35833. - esac
  35834. - archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35835. - if test $supports_anon_versioning = yes; then
  35836. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  35837. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  35838. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  35839. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  35840. - fi
  35841. - else
  35842. - ld_shlibs_GCJ=no
  35843. - fi
  35844. - ;;
  35845. - netbsd*)
  35846. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35847. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  35848. - wlarc=
  35849. - else
  35850. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35851. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35852. - fi
  35853. - ;;
  35854. - solaris*)
  35855. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  35856. - ld_shlibs_GCJ=no
  35857. - cat <<EOF 1>&2
  35858. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  35859. -*** create shared libraries on Solaris systems. Therefore, libtool
  35860. -*** is disabling shared libraries support. We urge you to upgrade GNU
  35861. -*** binutils to release 2.9.1 or newer. Another option is to modify
  35862. -*** your PATH or compiler configuration so that the native linker is
  35863. -*** used, and then restart.
  35864. -EOF
  35865. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35866. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35867. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35868. - else
  35869. - ld_shlibs_GCJ=no
  35870. - fi
  35871. - ;;
  35872. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  35873. - case `$LD -v 2>&1` in
  35874. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  35875. - ld_shlibs_GCJ=no
  35876. - cat <<_LT_EOF 1>&2
  35877. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  35878. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  35879. -*** is disabling shared libraries support. We urge you to upgrade GNU
  35880. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  35881. -*** your PATH or compiler configuration so that the native linker is
  35882. -*** used, and then restart.
  35883. -_LT_EOF
  35884. - ;;
  35885. - *)
  35886. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35887. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  35888. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  35889. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  35890. - else
  35891. - ld_shlibs_GCJ=no
  35892. - fi
  35893. - ;;
  35894. - esac
  35895. - ;;
  35896. - sunos4*)
  35897. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35898. - wlarc=
  35899. - hardcode_direct_GCJ=yes
  35900. - hardcode_shlibpath_var_GCJ=no
  35901. - ;;
  35902. - *)
  35903. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35904. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35905. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35906. - else
  35907. - ld_shlibs_GCJ=no
  35908. - fi
  35909. - ;;
  35910. - esac
  35911. - if test "$ld_shlibs_GCJ" = no; then
  35912. - runpath_var=
  35913. - hardcode_libdir_flag_spec_GCJ=
  35914. - export_dynamic_flag_spec_GCJ=
  35915. - whole_archive_flag_spec_GCJ=
  35916. - fi
  35917. - else
  35918. - # PORTME fill in a description of your system's linker (not GNU ld)
  35919. - case $host_os in
  35920. - aix3*)
  35921. - allow_undefined_flag_GCJ=unsupported
  35922. - always_export_symbols_GCJ=yes
  35923. - 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'
  35924. - # Note: this linker hardcodes the directories in LIBPATH if there
  35925. - # are no directories specified by -L.
  35926. - hardcode_minus_L_GCJ=yes
  35927. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  35928. - # Neither direct hardcoding nor static linking is supported with a
  35929. - # broken collect2.
  35930. - hardcode_direct_GCJ=unsupported
  35931. - fi
  35932. - ;;
  35933. - aix4* | aix5*)
  35934. - if test "$host_cpu" = ia64; then
  35935. - # On IA64, the linker does run time linking by default, so we don't
  35936. - # have to do anything special.
  35937. - aix_use_runtimelinking=no
  35938. - exp_sym_flag='-Bexport'
  35939. - no_entry_flag=""
  35940. - else
  35941. - # If we're using GNU nm, then we don't want the "-C" option.
  35942. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  35943. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  35944. - 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'
  35945. - else
  35946. - 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'
  35947. - fi
  35948. - aix_use_runtimelinking=no
  35949. - # Test if we are trying to use run time linking or normal
  35950. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  35951. - # need to do runtime linking.
  35952. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  35953. - for ld_flag in $LDFLAGS; do
  35954. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  35955. - aix_use_runtimelinking=yes
  35956. - break
  35957. - fi
  35958. - done
  35959. - ;;
  35960. - esac
  35961. - exp_sym_flag='-bexport'
  35962. - no_entry_flag='-bnoentry'
  35963. - fi
  35964. - # When large executables or shared objects are built, AIX ld can
  35965. - # have problems creating the table of contents. If linking a library
  35966. - # or program results in "error TOC overflow" add -mminimal-toc to
  35967. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  35968. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  35969. - archive_cmds_GCJ=''
  35970. - hardcode_direct_GCJ=yes
  35971. - hardcode_libdir_separator_GCJ=':'
  35972. - link_all_deplibs_GCJ=yes
  35973. - if test "$GCC" = yes; then
  35974. - case $host_os in aix4.[012]|aix4.[012].*)
  35975. - # We only want to do this on AIX 4.2 and lower, the check
  35976. - # below for broken collect2 doesn't work under 4.3+
  35977. - collect2name=`${CC} -print-prog-name=collect2`
  35978. - if test -f "$collect2name" && \
  35979. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  35980. - then
  35981. - # We have reworked collect2
  35982. - hardcode_direct_GCJ=yes
  35983. - else
  35984. - # We have old collect2
  35985. - hardcode_direct_GCJ=unsupported
  35986. - # It fails to find uninstalled libraries when the uninstalled
  35987. - # path is not listed in the libpath. Setting hardcode_minus_L
  35988. - # to unsupported forces relinking
  35989. - hardcode_minus_L_GCJ=yes
  35990. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35991. - hardcode_libdir_separator_GCJ=
  35992. - fi
  35993. - ;;
  35994. - esac
  35995. - shared_flag='-shared'
  35996. - if test "$aix_use_runtimelinking" = yes; then
  35997. - shared_flag="$shared_flag "'${wl}-G'
  35998. - fi
  35999. - else
  36000. - # not using gcc
  36001. - if test "$host_cpu" = ia64; then
  36002. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  36003. - # chokes on -Wl,-G. The following line is correct:
  36004. - shared_flag='-G'
  36005. - else
  36006. - if test "$aix_use_runtimelinking" = yes; then
  36007. - shared_flag='${wl}-G'
  36008. - else
  36009. - shared_flag='${wl}-bM:SRE'
  36010. - fi
  36011. - fi
  36012. - fi
  36013. - # It seems that -bexpall does not export symbols beginning with
  36014. - # underscore (_), so it is better to generate a list of symbols to export.
  36015. - always_export_symbols_GCJ=yes
  36016. - if test "$aix_use_runtimelinking" = yes; then
  36017. - # Warning - without using the other runtime loading flags (-brtl),
  36018. - # -berok will link without error, but may produce a broken library.
  36019. - allow_undefined_flag_GCJ='-berok'
  36020. - # Determine the default libpath from the value encoded in an empty executable.
  36021. - cat >conftest.$ac_ext <<_ACEOF
  36022. -/* confdefs.h. */
  36023. -_ACEOF
  36024. -cat confdefs.h >>conftest.$ac_ext
  36025. -cat >>conftest.$ac_ext <<_ACEOF
  36026. -/* end confdefs.h. */
  36027. -int
  36028. -main ()
  36029. -{
  36030. - ;
  36031. - return 0;
  36032. -}
  36033. -_ACEOF
  36034. -rm -f conftest.$ac_objext conftest$ac_exeext
  36035. -if { (ac_try="$ac_link"
  36036. -case "(($ac_try" in
  36037. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36038. - *) ac_try_echo=$ac_try;;
  36039. -esac
  36040. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36041. - (eval "$ac_link") 2>conftest.er1
  36042. - ac_status=$?
  36043. - grep -v '^ *+' conftest.er1 >conftest.err
  36044. - rm -f conftest.er1
  36045. - cat conftest.err >&5
  36046. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36047. - (exit $ac_status); } &&
  36048. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36049. - { (case "(($ac_try" in
  36050. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36051. - *) ac_try_echo=$ac_try;;
  36052. -esac
  36053. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36054. - (eval "$ac_try") 2>&5
  36055. - ac_status=$?
  36056. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36057. - (exit $ac_status); }; } &&
  36058. - { ac_try='test -s conftest$ac_exeext'
  36059. - { (case "(($ac_try" in
  36060. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36061. - *) ac_try_echo=$ac_try;;
  36062. -esac
  36063. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36064. - (eval "$ac_try") 2>&5
  36065. - ac_status=$?
  36066. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36067. - (exit $ac_status); }; }; then
  36068. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  36069. -}'`
  36070. -# Check for a 64-bit object if we didn't find anything.
  36071. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  36072. -}'`; fi
  36073. -else
  36074. - echo "$as_me: failed program was:" >&5
  36075. -sed 's/^/| /' conftest.$ac_ext >&5
  36076. -fi
  36077. -rm -f core conftest.err conftest.$ac_objext \
  36078. - conftest$ac_exeext conftest.$ac_ext
  36079. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  36080. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  36081. - 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"
  36082. - else
  36083. - if test "$host_cpu" = ia64; then
  36084. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  36085. - allow_undefined_flag_GCJ="-z nodefs"
  36086. - 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"
  36087. - else
  36088. - # Determine the default libpath from the value encoded in an empty executable.
  36089. - cat >conftest.$ac_ext <<_ACEOF
  36090. -/* confdefs.h. */
  36091. -_ACEOF
  36092. -cat confdefs.h >>conftest.$ac_ext
  36093. -cat >>conftest.$ac_ext <<_ACEOF
  36094. -/* end confdefs.h. */
  36095. -int
  36096. -main ()
  36097. -{
  36098. - ;
  36099. - return 0;
  36100. -}
  36101. -_ACEOF
  36102. -rm -f conftest.$ac_objext conftest$ac_exeext
  36103. -if { (ac_try="$ac_link"
  36104. -case "(($ac_try" in
  36105. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36106. - *) ac_try_echo=$ac_try;;
  36107. -esac
  36108. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36109. - (eval "$ac_link") 2>conftest.er1
  36110. - ac_status=$?
  36111. - grep -v '^ *+' conftest.er1 >conftest.err
  36112. - rm -f conftest.er1
  36113. - cat conftest.err >&5
  36114. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36115. - (exit $ac_status); } &&
  36116. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36117. - { (case "(($ac_try" in
  36118. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36119. - *) ac_try_echo=$ac_try;;
  36120. -esac
  36121. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36122. - (eval "$ac_try") 2>&5
  36123. - ac_status=$?
  36124. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36125. - (exit $ac_status); }; } &&
  36126. - { ac_try='test -s conftest$ac_exeext'
  36127. - { (case "(($ac_try" in
  36128. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36129. - *) ac_try_echo=$ac_try;;
  36130. -esac
  36131. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36132. - (eval "$ac_try") 2>&5
  36133. - ac_status=$?
  36134. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36135. - (exit $ac_status); }; }; then
  36136. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  36137. -}'`
  36138. -# Check for a 64-bit object if we didn't find anything.
  36139. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  36140. -}'`; fi
  36141. -else
  36142. - echo "$as_me: failed program was:" >&5
  36143. -sed 's/^/| /' conftest.$ac_ext >&5
  36144. -fi
  36145. -rm -f core conftest.err conftest.$ac_objext \
  36146. - conftest$ac_exeext conftest.$ac_ext
  36147. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  36148. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  36149. - # Warning - without using the other run time loading flags,
  36150. - # -berok will link without error, but may produce a broken library.
  36151. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  36152. - allow_undefined_flag_GCJ=' ${wl}-berok'
  36153. - # Exported symbols can be pulled into shared objects from archives
  36154. - whole_archive_flag_spec_GCJ='$convenience'
  36155. - archive_cmds_need_lc_GCJ=yes
  36156. - # This is similar to how AIX traditionally builds its shared libraries.
  36157. - 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'
  36158. - fi
  36159. - fi
  36160. - ;;
  36161. - amigaos*)
  36162. - 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)'
  36163. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36164. - hardcode_minus_L_GCJ=yes
  36165. - # see comment about different semantics on the GNU ld section
  36166. - ld_shlibs_GCJ=no
  36167. - ;;
  36168. - bsdi[45]*)
  36169. - export_dynamic_flag_spec_GCJ=-rdynamic
  36170. - ;;
  36171. - cygwin* | mingw* | pw32*)
  36172. - # When not using gcc, we currently assume that we are using
  36173. - # Microsoft Visual C++.
  36174. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  36175. - # no search path for DLLs.
  36176. - hardcode_libdir_flag_spec_GCJ=' '
  36177. - allow_undefined_flag_GCJ=unsupported
  36178. - # Tell ltmain to make .lib files, not .a files.
  36179. - libext=lib
  36180. - # Tell ltmain to make .dll files, not .so files.
  36181. - shrext_cmds=".dll"
  36182. - # FIXME: Setting linknames here is a bad hack.
  36183. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  36184. - # The linker will automatically build a .lib file if we build a DLL.
  36185. - old_archive_From_new_cmds_GCJ='true'
  36186. - # FIXME: Should let the user specify the lib program.
  36187. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  36188. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  36189. - enable_shared_with_static_runtimes_GCJ=yes
  36190. - ;;
  36191. - darwin* | rhapsody*)
  36192. - case $host_os in
  36193. - rhapsody* | darwin1.[012])
  36194. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  36195. - ;;
  36196. - *) # Darwin 1.3 on
  36197. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  36198. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  36199. - else
  36200. - case ${MACOSX_DEPLOYMENT_TARGET} in
  36201. - 10.[012])
  36202. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  36203. - ;;
  36204. - 10.*)
  36205. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  36206. - ;;
  36207. - esac
  36208. - fi
  36209. - ;;
  36210. - esac
  36211. - archive_cmds_need_lc_GCJ=no
  36212. - hardcode_direct_GCJ=no
  36213. - hardcode_automatic_GCJ=yes
  36214. - hardcode_shlibpath_var_GCJ=unsupported
  36215. - whole_archive_flag_spec_GCJ=''
  36216. - link_all_deplibs_GCJ=yes
  36217. - if test "$GCC" = yes ; then
  36218. - output_verbose_link_cmd='echo'
  36219. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  36220. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  36221. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  36222. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36223. - 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}'
  36224. - else
  36225. - case $cc_basename in
  36226. - xlc*)
  36227. - output_verbose_link_cmd='echo'
  36228. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  36229. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  36230. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  36231. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36232. - 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}'
  36233. - ;;
  36234. - *)
  36235. - ld_shlibs_GCJ=no
  36236. - ;;
  36237. - esac
  36238. - fi
  36239. - ;;
  36240. - dgux*)
  36241. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36242. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36243. - hardcode_shlibpath_var_GCJ=no
  36244. - ;;
  36245. - freebsd1*)
  36246. - ld_shlibs_GCJ=no
  36247. - ;;
  36248. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  36249. - # support. Future versions do this automatically, but an explicit c++rt0.o
  36250. - # does not break anything, and helps significantly (at the cost of a little
  36251. - # extra space).
  36252. - freebsd2.2*)
  36253. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  36254. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36255. - hardcode_direct_GCJ=yes
  36256. - hardcode_shlibpath_var_GCJ=no
  36257. - ;;
  36258. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  36259. - freebsd2*)
  36260. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36261. - hardcode_direct_GCJ=yes
  36262. - hardcode_minus_L_GCJ=yes
  36263. - hardcode_shlibpath_var_GCJ=no
  36264. - ;;
  36265. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  36266. - freebsd* | kfreebsd*-gnu | dragonfly*)
  36267. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  36268. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36269. - hardcode_direct_GCJ=yes
  36270. - hardcode_shlibpath_var_GCJ=no
  36271. - ;;
  36272. - hpux9*)
  36273. - if test "$GCC" = yes; then
  36274. - 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'
  36275. - else
  36276. - 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'
  36277. - fi
  36278. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36279. - hardcode_libdir_separator_GCJ=:
  36280. - hardcode_direct_GCJ=yes
  36281. - # hardcode_minus_L: Not really in the search PATH,
  36282. - # but as the default location of the library.
  36283. - hardcode_minus_L_GCJ=yes
  36284. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36285. - ;;
  36286. - hpux10*)
  36287. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36288. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36289. - else
  36290. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  36291. - fi
  36292. - if test "$with_gnu_ld" = no; then
  36293. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36294. - hardcode_libdir_separator_GCJ=:
  36295. - hardcode_direct_GCJ=yes
  36296. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36297. - # hardcode_minus_L: Not really in the search PATH,
  36298. - # but as the default location of the library.
  36299. - hardcode_minus_L_GCJ=yes
  36300. - fi
  36301. - ;;
  36302. - hpux11*)
  36303. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36304. - case $host_cpu in
  36305. - hppa*64*)
  36306. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36307. - ;;
  36308. - ia64*)
  36309. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  36310. - ;;
  36311. - *)
  36312. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36313. - ;;
  36314. - esac
  36315. - else
  36316. - case $host_cpu in
  36317. - hppa*64*)
  36318. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36319. - ;;
  36320. - ia64*)
  36321. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  36322. - ;;
  36323. - *)
  36324. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36325. - ;;
  36326. - esac
  36327. - fi
  36328. - if test "$with_gnu_ld" = no; then
  36329. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  36330. - hardcode_libdir_separator_GCJ=:
  36331. - case $host_cpu in
  36332. - hppa*64*|ia64*)
  36333. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  36334. - hardcode_direct_GCJ=no
  36335. - hardcode_shlibpath_var_GCJ=no
  36336. - ;;
  36337. - *)
  36338. - hardcode_direct_GCJ=yes
  36339. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36340. - # hardcode_minus_L: Not really in the search PATH,
  36341. - # but as the default location of the library.
  36342. - hardcode_minus_L_GCJ=yes
  36343. - ;;
  36344. - esac
  36345. - fi
  36346. - ;;
  36347. - irix5* | irix6* | nonstopux*)
  36348. - if test "$GCC" = yes; then
  36349. - 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'
  36350. - else
  36351. - 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'
  36352. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  36353. - fi
  36354. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36355. - hardcode_libdir_separator_GCJ=:
  36356. - link_all_deplibs_GCJ=yes
  36357. - ;;
  36358. - netbsd*)
  36359. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36360. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  36361. - else
  36362. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  36363. - fi
  36364. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36365. - hardcode_direct_GCJ=yes
  36366. - hardcode_shlibpath_var_GCJ=no
  36367. - ;;
  36368. - newsos6)
  36369. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36370. - hardcode_direct_GCJ=yes
  36371. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36372. - hardcode_libdir_separator_GCJ=:
  36373. - hardcode_shlibpath_var_GCJ=no
  36374. - ;;
  36375. - openbsd*)
  36376. - hardcode_direct_GCJ=yes
  36377. - hardcode_shlibpath_var_GCJ=no
  36378. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36379. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36380. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  36381. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  36382. - export_dynamic_flag_spec_GCJ='${wl}-E'
  36383. - else
  36384. - case $host_os in
  36385. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  36386. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36387. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36388. - ;;
  36389. - *)
  36390. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36391. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  36392. - ;;
  36393. - esac
  36394. - fi
  36395. - ;;
  36396. - os2*)
  36397. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36398. - hardcode_minus_L_GCJ=yes
  36399. - allow_undefined_flag_GCJ=unsupported
  36400. - 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'
  36401. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  36402. - ;;
  36403. - osf3*)
  36404. - if test "$GCC" = yes; then
  36405. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  36406. - 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'
  36407. - else
  36408. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  36409. - 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'
  36410. - fi
  36411. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36412. - hardcode_libdir_separator_GCJ=:
  36413. - ;;
  36414. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  36415. - if test "$GCC" = yes; then
  36416. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  36417. - 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'
  36418. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  36419. - else
  36420. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  36421. - 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'
  36422. - 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~
  36423. - $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'
  36424. - # Both c and cxx compiler support -rpath directly
  36425. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  36426. - fi
  36427. - hardcode_libdir_separator_GCJ=:
  36428. - ;;
  36429. - solaris*)
  36430. - no_undefined_flag_GCJ=' -z text'
  36431. - if test "$GCC" = yes; then
  36432. - wlarc='${wl}'
  36433. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36434. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36435. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  36436. - else
  36437. - wlarc=''
  36438. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36439. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36440. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  36441. - fi
  36442. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  36443. - hardcode_shlibpath_var_GCJ=no
  36444. - case $host_os in
  36445. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  36446. - *)
  36447. - # The compiler driver will combine linker options so we
  36448. - # cannot just pass the convience library names through
  36449. - # without $wl, iff we do not link with $LD.
  36450. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  36451. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  36452. - case $wlarc in
  36453. - '')
  36454. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  36455. - *)
  36456. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  36457. - esac ;;
  36458. - esac
  36459. - link_all_deplibs_GCJ=yes
  36460. - ;;
  36461. - sunos4*)
  36462. - if test "x$host_vendor" = xsequent; then
  36463. - # Use $CC to link under sequent, because it throws in some extra .o
  36464. - # files that make .init and .fini sections work.
  36465. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  36466. - else
  36467. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  36468. - fi
  36469. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36470. - hardcode_direct_GCJ=yes
  36471. - hardcode_minus_L_GCJ=yes
  36472. - hardcode_shlibpath_var_GCJ=no
  36473. - ;;
  36474. - sysv4)
  36475. - case $host_vendor in
  36476. - sni)
  36477. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36478. - hardcode_direct_GCJ=yes # is this really true???
  36479. - ;;
  36480. - siemens)
  36481. - ## LD is ld it makes a PLAMLIB
  36482. - ## CC just makes a GrossModule.
  36483. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  36484. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  36485. - hardcode_direct_GCJ=no
  36486. - ;;
  36487. - motorola)
  36488. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36489. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  36490. - ;;
  36491. - esac
  36492. - runpath_var='LD_RUN_PATH'
  36493. - hardcode_shlibpath_var_GCJ=no
  36494. - ;;
  36495. - sysv4.3*)
  36496. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36497. - hardcode_shlibpath_var_GCJ=no
  36498. - export_dynamic_flag_spec_GCJ='-Bexport'
  36499. - ;;
  36500. - sysv4*MP*)
  36501. - if test -d /usr/nec; then
  36502. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36503. - hardcode_shlibpath_var_GCJ=no
  36504. - runpath_var=LD_RUN_PATH
  36505. - hardcode_runpath_var=yes
  36506. - ld_shlibs_GCJ=yes
  36507. - fi
  36508. - ;;
  36509. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  36510. - no_undefined_flag_GCJ='${wl}-z,text'
  36511. - archive_cmds_need_lc_GCJ=no
  36512. - hardcode_shlibpath_var_GCJ=no
  36513. - runpath_var='LD_RUN_PATH'
  36514. - if test "$GCC" = yes; then
  36515. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36516. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36517. - else
  36518. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36519. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36520. - fi
  36521. - ;;
  36522. - sysv5* | sco3.2v5* | sco5v6*)
  36523. - # Note: We can NOT use -z defs as we might desire, because we do not
  36524. - # link with -lc, and that would cause any symbols used from libc to
  36525. - # always be unresolved, which means just about no library would
  36526. - # ever link correctly. If we're not using GNU ld we use -z text
  36527. - # though, which does catch some bad symbols but isn't as heavy-handed
  36528. - # as -z defs.
  36529. - no_undefined_flag_GCJ='${wl}-z,text'
  36530. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  36531. - archive_cmds_need_lc_GCJ=no
  36532. - hardcode_shlibpath_var_GCJ=no
  36533. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  36534. - hardcode_libdir_separator_GCJ=':'
  36535. - link_all_deplibs_GCJ=yes
  36536. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  36537. - runpath_var='LD_RUN_PATH'
  36538. - if test "$GCC" = yes; then
  36539. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36540. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36541. - else
  36542. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36543. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36544. - fi
  36545. - ;;
  36546. - uts4*)
  36547. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36548. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  36549. - hardcode_shlibpath_var_GCJ=no
  36550. - ;;
  36551. - *)
  36552. - ld_shlibs_GCJ=no
  36553. - ;;
  36554. - esac
  36555. - fi
  36556. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  36557. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  36558. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  36559. -#
  36560. -# Do we need to explicitly link libc?
  36561. -#
  36562. -case "x$archive_cmds_need_lc_GCJ" in
  36563. -x|xyes)
  36564. - # Assume -lc should be added
  36565. - archive_cmds_need_lc_GCJ=yes
  36566. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  36567. - case $archive_cmds_GCJ in
  36568. - *'~'*)
  36569. - # FIXME: we may have to deal with multi-command sequences.
  36570. - ;;
  36571. - '$CC '*)
  36572. - # Test whether the compiler implicitly links with -lc since on some
  36573. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  36574. - # to ld, don't add -lc before -lgcc.
  36575. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  36576. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  36577. - $rm conftest*
  36578. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36579. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36580. - (eval $ac_compile) 2>&5
  36581. - ac_status=$?
  36582. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36583. - (exit $ac_status); } 2>conftest.err; then
  36584. - soname=conftest
  36585. - lib=conftest
  36586. - libobjs=conftest.$ac_objext
  36587. - deplibs=
  36588. - wl=$lt_prog_compiler_wl_GCJ
  36589. - pic_flag=$lt_prog_compiler_pic_GCJ
  36590. - compiler_flags=-v
  36591. - linker_flags=-v
  36592. - verstring=
  36593. - output_objdir=.
  36594. - libname=conftest
  36595. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  36596. - allow_undefined_flag_GCJ=
  36597. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  36598. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  36599. - ac_status=$?
  36600. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36601. - (exit $ac_status); }
  36602. - then
  36603. - archive_cmds_need_lc_GCJ=no
  36604. - else
  36605. - archive_cmds_need_lc_GCJ=yes
  36606. - fi
  36607. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  36608. - else
  36609. - cat conftest.err 1>&5
  36610. - fi
  36611. - $rm conftest*
  36612. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  36613. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  36614. - ;;
  36615. - esac
  36616. - fi
  36617. - ;;
  36618. -esac
  36619. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  36620. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  36621. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  36622. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  36623. +if test "$GCC" = yes; then
  36624. + case $host_os in
  36625. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  36626. + *) lt_awk_arg="/^libraries:/" ;;
  36627. + esac
  36628. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36629. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  36630. + # if the path contains ";" then we assume it to be the separator
  36631. + # otherwise default to the standard path separator (i.e. ":") - it is
  36632. + # assumed that no part of a normal pathname contains ";" but that should
  36633. + # okay in the real world where ";" in dirpaths is itself problematic.
  36634. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  36635. + else
  36636. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36637. + fi
  36638. + # Ok, now we have the path, separated by spaces, we can step through it
  36639. + # and add multilib dir if necessary.
  36640. + lt_tmp_lt_search_path_spec=
  36641. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  36642. + for lt_sys_path in $lt_search_path_spec; do
  36643. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  36644. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  36645. + else
  36646. + test -d "$lt_sys_path" && \
  36647. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  36648. + fi
  36649. + done
  36650. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  36651. +BEGIN {RS=" "; FS="/|\n";} {
  36652. + lt_foo="";
  36653. + lt_count=0;
  36654. + for (lt_i = NF; lt_i > 0; lt_i--) {
  36655. + if ($lt_i != "" && $lt_i != ".") {
  36656. + if ($lt_i == "..") {
  36657. + lt_count++;
  36658. + } else {
  36659. + if (lt_count == 0) {
  36660. + lt_foo="/" $lt_i lt_foo;
  36661. + } else {
  36662. + lt_count--;
  36663. + }
  36664. + }
  36665. + }
  36666. + }
  36667. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  36668. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  36669. +}'`
  36670. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  36671. +else
  36672. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36673. +fi
  36674. library_names_spec=
  36675. libname_spec='lib$name'
  36676. soname_spec=
  36677. @@ -18258,20 +9187,6 @@
  36678. version_type=none
  36679. dynamic_linker="$host_os ld.so"
  36680. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  36681. -if test "$GCC" = yes; then
  36682. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36683. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  36684. - # if the path contains ";" then we assume it to be the separator
  36685. - # otherwise default to the standard path separator (i.e. ":") - it is
  36686. - # assumed that no part of a normal pathname contains ";" but that should
  36687. - # okay in the real world where ";" in dirpaths is itself problematic.
  36688. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36689. - else
  36690. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36691. - fi
  36692. -else
  36693. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36694. -fi
  36695. need_lib_prefix=unknown
  36696. hardcode_into_libs=no
  36697. @@ -18289,7 +9204,7 @@
  36698. soname_spec='${libname}${release}${shared_ext}$major'
  36699. ;;
  36700. -aix4* | aix5*)
  36701. +aix[4-9]*)
  36702. version_type=linux
  36703. need_lib_prefix=no
  36704. need_version=no
  36705. @@ -18308,7 +9223,7 @@
  36706. aix4 | aix4.[01] | aix4.[01].*)
  36707. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  36708. echo ' yes '
  36709. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  36710. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  36711. :
  36712. else
  36713. can_build_shared=no
  36714. @@ -18334,9 +9249,18 @@
  36715. ;;
  36716. amigaos*)
  36717. - library_names_spec='$libname.ixlibrary $libname.a'
  36718. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36719. - 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'
  36720. + case $host_cpu in
  36721. + powerpc)
  36722. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  36723. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  36724. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36725. + ;;
  36726. + m68k)
  36727. + library_names_spec='$libname.ixlibrary $libname.a'
  36728. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36729. + 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'
  36730. + ;;
  36731. + esac
  36732. ;;
  36733. beos*)
  36734. @@ -18359,25 +9283,28 @@
  36735. # libtool to hard-code these into programs
  36736. ;;
  36737. -cygwin* | mingw* | pw32*)
  36738. +cygwin* | mingw* | pw32* | cegcc*)
  36739. version_type=windows
  36740. shrext_cmds=".dll"
  36741. need_version=no
  36742. need_lib_prefix=no
  36743. case $GCC,$host_os in
  36744. - yes,cygwin* | yes,mingw* | yes,pw32*)
  36745. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  36746. library_names_spec='$libname.dll.a'
  36747. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36748. postinstall_cmds='base_file=`basename \${file}`~
  36749. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  36750. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  36751. dldir=$destdir/`dirname \$dlpath`~
  36752. test -d \$dldir || mkdir -p \$dldir~
  36753. $install_prog $dir/$dlname \$dldir/$dlname~
  36754. - chmod a+x \$dldir/$dlname'
  36755. + chmod a+x \$dldir/$dlname~
  36756. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  36757. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  36758. + fi'
  36759. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36760. dlpath=$dir/\$dldll~
  36761. - $rm \$dlpath'
  36762. + $RM \$dlpath'
  36763. shlibpath_overrides_runpath=yes
  36764. case $host_os in
  36765. @@ -18386,20 +9313,20 @@
  36766. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36767. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36768. ;;
  36769. - mingw*)
  36770. + mingw* | cegcc*)
  36771. # MinGW DLLs use traditional 'lib' prefix
  36772. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36773. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36774. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  36775. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36776. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  36777. # It is most probably a Windows format PATH printed by
  36778. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36779. # path with ; separators, and with drive letters. We can handle the
  36780. # drive letters (cygwin fileutils understands them), so leave them,
  36781. # especially as we might pass files found there to a mingw objdump,
  36782. # which wouldn't understand a cygwinified path. Ahh.
  36783. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36784. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36785. else
  36786. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36787. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36788. fi
  36789. ;;
  36790. pw32*)
  36791. @@ -18423,17 +9350,13 @@
  36792. version_type=darwin
  36793. need_lib_prefix=no
  36794. need_version=no
  36795. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36796. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36797. soname_spec='${libname}${release}${major}$shared_ext'
  36798. shlibpath_overrides_runpath=yes
  36799. shlibpath_var=DYLD_LIBRARY_PATH
  36800. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36801. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  36802. - if test "$GCC" = yes; then
  36803. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  36804. - else
  36805. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  36806. - fi
  36807. +
  36808. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  36809. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36810. ;;
  36811. @@ -18450,18 +9373,6 @@
  36812. dynamic_linker=no
  36813. ;;
  36814. -kfreebsd*-gnu)
  36815. - version_type=linux
  36816. - need_lib_prefix=no
  36817. - need_version=no
  36818. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36819. - soname_spec='${libname}${release}${shared_ext}$major'
  36820. - shlibpath_var=LD_LIBRARY_PATH
  36821. - shlibpath_overrides_runpath=no
  36822. - hardcode_into_libs=yes
  36823. - dynamic_linker='GNU ld.so'
  36824. - ;;
  36825. -
  36826. freebsd* | dragonfly*)
  36827. # DragonFly does not have aout. When/if they implement a new
  36828. # versioning mechanism, adjust this.
  36829. @@ -18499,7 +9410,7 @@
  36830. shlibpath_overrides_runpath=no
  36831. hardcode_into_libs=yes
  36832. ;;
  36833. - freebsd*) # from 4.6 on
  36834. + *) # from 4.6 on, and DragonFly
  36835. shlibpath_overrides_runpath=yes
  36836. hardcode_into_libs=yes
  36837. ;;
  36838. @@ -18538,18 +9449,18 @@
  36839. fi
  36840. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36841. ;;
  36842. - hppa*64*)
  36843. - shrext_cmds='.sl'
  36844. - hardcode_into_libs=yes
  36845. - dynamic_linker="$host_os dld.sl"
  36846. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36847. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36848. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36849. - soname_spec='${libname}${release}${shared_ext}$major'
  36850. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36851. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36852. - ;;
  36853. - *)
  36854. + hppa*64*)
  36855. + shrext_cmds='.sl'
  36856. + hardcode_into_libs=yes
  36857. + dynamic_linker="$host_os dld.sl"
  36858. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36859. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36860. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36861. + soname_spec='${libname}${release}${shared_ext}$major'
  36862. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36863. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36864. + ;;
  36865. + *)
  36866. shrext_cmds='.sl'
  36867. dynamic_linker="$host_os dld.sl"
  36868. shlibpath_var=SHLIB_PATH
  36869. @@ -18562,7 +9473,7 @@
  36870. postinstall_cmds='chmod 555 $lib'
  36871. ;;
  36872. -interix3*)
  36873. +interix[3-9]*)
  36874. version_type=linux
  36875. need_lib_prefix=no
  36876. need_version=no
  36877. @@ -18617,7 +9528,7 @@
  36878. ;;
  36879. # This must be Linux ELF.
  36880. -linux*)
  36881. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  36882. version_type=linux
  36883. need_lib_prefix=no
  36884. need_version=no
  36885. @@ -18626,6 +9537,32 @@
  36886. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36887. shlibpath_var=LD_LIBRARY_PATH
  36888. shlibpath_overrides_runpath=no
  36889. + # Some binutils ld are patched to set DT_RUNPATH
  36890. + save_LDFLAGS=$LDFLAGS
  36891. + save_libdir=$libdir
  36892. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  36893. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  36894. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36895. +/* end confdefs.h. */
  36896. +
  36897. +int
  36898. +main ()
  36899. +{
  36900. +
  36901. + ;
  36902. + return 0;
  36903. +}
  36904. +_ACEOF
  36905. +if ac_fn_c_try_link "$LINENO"; then :
  36906. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  36907. + shlibpath_overrides_runpath=yes
  36908. +fi
  36909. +fi
  36910. +rm -f core conftest.err conftest.$ac_objext \
  36911. + conftest$ac_exeext conftest.$ac_ext
  36912. + LDFLAGS=$save_LDFLAGS
  36913. + libdir=$save_libdir
  36914. +
  36915. # This implies no fast_install, which is unacceptable.
  36916. # Some rework will be needed to allow for fast_install
  36917. # before this can be enabled.
  36918. @@ -18633,7 +9570,7 @@
  36919. # Append ld.so.conf contents to the search path
  36920. if test -f /etc/ld.so.conf; then
  36921. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  36922. + 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' ' '`
  36923. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  36924. fi
  36925. @@ -18646,7 +9583,7 @@
  36926. dynamic_linker='GNU/Linux ld.so'
  36927. ;;
  36928. -knetbsd*-gnu)
  36929. +netbsdelf*-gnu)
  36930. version_type=linux
  36931. need_lib_prefix=no
  36932. need_version=no
  36933. @@ -18655,14 +9592,14 @@
  36934. shlibpath_var=LD_LIBRARY_PATH
  36935. shlibpath_overrides_runpath=no
  36936. hardcode_into_libs=yes
  36937. - dynamic_linker='GNU ld.so'
  36938. + dynamic_linker='NetBSD ld.elf_so'
  36939. ;;
  36940. netbsd*)
  36941. version_type=sunos
  36942. need_lib_prefix=no
  36943. need_version=no
  36944. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36945. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  36946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36947. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36948. dynamic_linker='NetBSD (a.out) ld.so'
  36949. @@ -18683,14 +9620,16 @@
  36950. shlibpath_overrides_runpath=yes
  36951. ;;
  36952. -nto-qnx*)
  36953. - version_type=linux
  36954. +*nto* | *qnx*)
  36955. + version_type=qnx
  36956. need_lib_prefix=no
  36957. need_version=no
  36958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36959. soname_spec='${libname}${release}${shared_ext}$major'
  36960. shlibpath_var=LD_LIBRARY_PATH
  36961. - shlibpath_overrides_runpath=yes
  36962. + shlibpath_overrides_runpath=no
  36963. + hardcode_into_libs=yes
  36964. + dynamic_linker='ldqnx.so'
  36965. ;;
  36966. openbsd*)
  36967. @@ -18699,13 +9638,13 @@
  36968. need_lib_prefix=no
  36969. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  36970. case $host_os in
  36971. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36972. - *) need_version=no ;;
  36973. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36974. + *) need_version=no ;;
  36975. esac
  36976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36977. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36978. shlibpath_var=LD_LIBRARY_PATH
  36979. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36980. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36981. case $host_os in
  36982. openbsd2.[89] | openbsd2.[89].*)
  36983. shlibpath_overrides_runpath=no
  36984. @@ -18739,6 +9678,10 @@
  36985. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  36986. ;;
  36987. +rdos*)
  36988. + dynamic_linker=no
  36989. + ;;
  36990. +
  36991. solaris*)
  36992. version_type=linux
  36993. need_lib_prefix=no
  36994. @@ -18773,7 +9716,6 @@
  36995. sni)
  36996. shlibpath_overrides_runpath=no
  36997. need_lib_prefix=no
  36998. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  36999. runpath_var=LD_RUN_PATH
  37000. ;;
  37001. siemens)
  37002. @@ -18804,13 +9746,12 @@
  37003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37004. soname_spec='${libname}${release}${shared_ext}$major'
  37005. shlibpath_var=LD_LIBRARY_PATH
  37006. + shlibpath_overrides_runpath=yes
  37007. hardcode_into_libs=yes
  37008. if test "$with_gnu_ld" = yes; then
  37009. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  37010. - shlibpath_overrides_runpath=no
  37011. else
  37012. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  37013. - shlibpath_overrides_runpath=yes
  37014. case $host_os in
  37015. sco3.2v5*)
  37016. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  37017. @@ -18820,6 +9761,17 @@
  37018. sys_lib_dlsearch_path_spec='/usr/lib'
  37019. ;;
  37020. +tpf*)
  37021. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  37022. + version_type=linux
  37023. + need_lib_prefix=no
  37024. + need_version=no
  37025. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37026. + shlibpath_var=LD_LIBRARY_PATH
  37027. + shlibpath_overrides_runpath=no
  37028. + hardcode_into_libs=yes
  37029. + ;;
  37030. +
  37031. uts4*)
  37032. version_type=linux
  37033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37034. @@ -18831,8 +9783,8 @@
  37035. dynamic_linker=no
  37036. ;;
  37037. esac
  37038. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  37039. -echo "${ECHO_T}$dynamic_linker" >&6; }
  37040. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  37041. +$as_echo "$dynamic_linker" >&6; }
  37042. test "$dynamic_linker" = no && can_build_shared=no
  37043. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  37044. @@ -18840,932 +9792,724 @@
  37045. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  37046. fi
  37047. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  37048. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  37049. -hardcode_action_GCJ=
  37050. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  37051. - test -n "$runpath_var_GCJ" || \
  37052. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  37053. -
  37054. - # We can hardcode non-existant directories.
  37055. - if test "$hardcode_direct_GCJ" != no &&
  37056. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37057. - # have to relink, otherwise we might link with an installed library
  37058. - # when we should be linking with a yet-to-be-installed one
  37059. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  37060. - test "$hardcode_minus_L_GCJ" != no; then
  37061. - # Linking always hardcodes the temporary library directory.
  37062. - hardcode_action_GCJ=relink
  37063. - else
  37064. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37065. - hardcode_action_GCJ=immediate
  37066. - fi
  37067. -else
  37068. - # We cannot hardcode anything, or else we can only hardcode existing
  37069. - # directories.
  37070. - hardcode_action_GCJ=unsupported
  37071. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  37072. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  37073. fi
  37074. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  37075. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  37076. -
  37077. -if test "$hardcode_action_GCJ" = relink; then
  37078. - # Fast installation is not supported
  37079. - enable_fast_install=no
  37080. -elif test "$shlibpath_overrides_runpath" = yes ||
  37081. - test "$enable_shared" = no; then
  37082. - # Fast installation is not necessary
  37083. - enable_fast_install=needless
  37084. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  37085. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  37086. fi
  37087. -# The else clause should only fire when bootstrapping the
  37088. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37089. -# with your package, and you will get complaints that there are
  37090. -# no rules to generate ltmain.sh.
  37091. -if test -f "$ltmain"; then
  37092. - # See if we are running on zsh, and set the options which allow our commands through
  37093. - # without removal of \ escapes.
  37094. - if test -n "${ZSH_VERSION+set}" ; then
  37095. - setopt NO_GLOB_SUBST
  37096. - fi
  37097. - # Now quote all the things that may contain metacharacters while being
  37098. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37099. - # variables and quote the copies for generation of the libtool script.
  37100. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  37101. - SED SHELL STRIP \
  37102. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37103. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37104. - deplibs_check_method reload_flag reload_cmds need_locks \
  37105. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37106. - lt_cv_sys_global_symbol_to_c_name_address \
  37107. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37108. - old_postinstall_cmds old_postuninstall_cmds \
  37109. - compiler_GCJ \
  37110. - CC_GCJ \
  37111. - LD_GCJ \
  37112. - lt_prog_compiler_wl_GCJ \
  37113. - lt_prog_compiler_pic_GCJ \
  37114. - lt_prog_compiler_static_GCJ \
  37115. - lt_prog_compiler_no_builtin_flag_GCJ \
  37116. - export_dynamic_flag_spec_GCJ \
  37117. - thread_safe_flag_spec_GCJ \
  37118. - whole_archive_flag_spec_GCJ \
  37119. - enable_shared_with_static_runtimes_GCJ \
  37120. - old_archive_cmds_GCJ \
  37121. - old_archive_from_new_cmds_GCJ \
  37122. - predep_objects_GCJ \
  37123. - postdep_objects_GCJ \
  37124. - predeps_GCJ \
  37125. - postdeps_GCJ \
  37126. - compiler_lib_search_path_GCJ \
  37127. - archive_cmds_GCJ \
  37128. - archive_expsym_cmds_GCJ \
  37129. - postinstall_cmds_GCJ \
  37130. - postuninstall_cmds_GCJ \
  37131. - old_archive_from_expsyms_cmds_GCJ \
  37132. - allow_undefined_flag_GCJ \
  37133. - no_undefined_flag_GCJ \
  37134. - export_symbols_cmds_GCJ \
  37135. - hardcode_libdir_flag_spec_GCJ \
  37136. - hardcode_libdir_flag_spec_ld_GCJ \
  37137. - hardcode_libdir_separator_GCJ \
  37138. - hardcode_automatic_GCJ \
  37139. - module_cmds_GCJ \
  37140. - module_expsym_cmds_GCJ \
  37141. - lt_cv_prog_compiler_c_o_GCJ \
  37142. - exclude_expsyms_GCJ \
  37143. - include_expsyms_GCJ; do
  37144. -
  37145. - case $var in
  37146. - old_archive_cmds_GCJ | \
  37147. - old_archive_from_new_cmds_GCJ | \
  37148. - archive_cmds_GCJ | \
  37149. - archive_expsym_cmds_GCJ | \
  37150. - module_cmds_GCJ | \
  37151. - module_expsym_cmds_GCJ | \
  37152. - old_archive_from_expsyms_cmds_GCJ | \
  37153. - export_symbols_cmds_GCJ | \
  37154. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37155. - postinstall_cmds | postuninstall_cmds | \
  37156. - old_postinstall_cmds | old_postuninstall_cmds | \
  37157. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37158. - # Double-quote double-evaled strings.
  37159. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37160. - ;;
  37161. - *)
  37162. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37163. - ;;
  37164. - esac
  37165. - done
  37166. -
  37167. - case $lt_echo in
  37168. - *'\$0 --fallback-echo"')
  37169. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37170. - ;;
  37171. - esac
  37172. -
  37173. -cfgfile="$ofile"
  37174. -
  37175. - cat <<__EOF__ >> "$cfgfile"
  37176. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37177. -
  37178. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37179. -
  37180. -# Shell to use when invoking shell scripts.
  37181. -SHELL=$lt_SHELL
  37182. -
  37183. -# Whether or not to build shared libraries.
  37184. -build_libtool_libs=$enable_shared
  37185. -
  37186. -# Whether or not to build static libraries.
  37187. -build_old_libs=$enable_static
  37188. -
  37189. -# Whether or not to add -lc for building shared libraries.
  37190. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  37191. -
  37192. -# Whether or not to disallow shared libs when runtime libs are static
  37193. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  37194. -
  37195. -# Whether or not to optimize for fast installation.
  37196. -fast_install=$enable_fast_install
  37197. -
  37198. -# The host system.
  37199. -host_alias=$host_alias
  37200. -host=$host
  37201. -host_os=$host_os
  37202. -
  37203. -# The build system.
  37204. -build_alias=$build_alias
  37205. -build=$build
  37206. -build_os=$build_os
  37207. -
  37208. -# An echo program that does not interpret backslashes.
  37209. -echo=$lt_echo
  37210. -
  37211. -# The archiver.
  37212. -AR=$lt_AR
  37213. -AR_FLAGS=$lt_AR_FLAGS
  37214. -
  37215. -# A C compiler.
  37216. -LTCC=$lt_LTCC
  37217. -
  37218. -# LTCC compiler flags.
  37219. -LTCFLAGS=$lt_LTCFLAGS
  37220. -
  37221. -# A language-specific compiler.
  37222. -CC=$lt_compiler_GCJ
  37223. -
  37224. -# Is the compiler the GNU C compiler?
  37225. -with_gcc=$GCC_GCJ
  37226. -
  37227. -# An ERE matcher.
  37228. -EGREP=$lt_EGREP
  37229. -
  37230. -# The linker used to build libraries.
  37231. -LD=$lt_LD_GCJ
  37232. -# Whether we need hard or soft links.
  37233. -LN_S=$lt_LN_S
  37234. -# A BSD-compatible nm program.
  37235. -NM=$lt_NM
  37236. -# A symbol stripping program
  37237. -STRIP=$lt_STRIP
  37238. -# Used to examine libraries when file_magic_cmd begins "file"
  37239. -MAGIC_CMD=$MAGIC_CMD
  37240. -# Used on cygwin: DLL creation program.
  37241. -DLLTOOL="$DLLTOOL"
  37242. -# Used on cygwin: object dumper.
  37243. -OBJDUMP="$OBJDUMP"
  37244. -# Used on cygwin: assembler.
  37245. -AS="$AS"
  37246. -# The name of the directory that contains temporary libtool files.
  37247. -objdir=$objdir
  37248. -# How to create reloadable object files.
  37249. -reload_flag=$lt_reload_flag
  37250. -reload_cmds=$lt_reload_cmds
  37251. -# How to pass a linker flag through the compiler.
  37252. -wl=$lt_lt_prog_compiler_wl_GCJ
  37253. -# Object file suffix (normally "o").
  37254. -objext="$ac_objext"
  37255. -# Old archive suffix (normally "a").
  37256. -libext="$libext"
  37257. -# Shared library suffix (normally ".so").
  37258. -shrext_cmds='$shrext_cmds'
  37259. -# Executable file suffix (normally "").
  37260. -exeext="$exeext"
  37261. -# Additional compiler flags for building library objects.
  37262. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  37263. -pic_mode=$pic_mode
  37264. -# What is the maximum length of a command?
  37265. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37266. -# Does compiler simultaneously support -c and -o options?
  37267. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  37268. -# Must we lock files when doing compilation?
  37269. -need_locks=$lt_need_locks
  37270. -# Do we need the lib prefix for modules?
  37271. -need_lib_prefix=$need_lib_prefix
  37272. -# Do we need a version for libraries?
  37273. -need_version=$need_version
  37274. -# Whether dlopen is supported.
  37275. -dlopen_support=$enable_dlopen
  37276. -# Whether dlopen of programs is supported.
  37277. -dlopen_self=$enable_dlopen_self
  37278. -# Whether dlopen of statically linked programs is supported.
  37279. -dlopen_self_static=$enable_dlopen_self_static
  37280. -# Compiler flag to prevent dynamic linking.
  37281. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  37282. -# Compiler flag to turn off builtin functions.
  37283. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  37284. -# Compiler flag to allow reflexive dlopens.
  37285. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  37286. -# Compiler flag to generate shared objects directly from archives.
  37287. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  37288. -# Compiler flag to generate thread-safe objects.
  37289. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  37290. -# Library versioning type.
  37291. -version_type=$version_type
  37292. -# Format of library name prefix.
  37293. -libname_spec=$lt_libname_spec
  37294. -# List of archive names. First name is the real one, the rest are links.
  37295. -# The last name is the one that the linker finds with -lNAME.
  37296. -library_names_spec=$lt_library_names_spec
  37297. -# The coded name of the library, if different from the real name.
  37298. -soname_spec=$lt_soname_spec
  37299. -# Commands used to build and install an old-style archive.
  37300. -RANLIB=$lt_RANLIB
  37301. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  37302. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37303. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37304. -# Create an old-style archive from a shared archive.
  37305. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  37306. -# Create a temporary old-style archive to link instead of a shared archive.
  37307. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  37308. -# Commands used to build and install a shared archive.
  37309. -archive_cmds=$lt_archive_cmds_GCJ
  37310. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  37311. -postinstall_cmds=$lt_postinstall_cmds
  37312. -postuninstall_cmds=$lt_postuninstall_cmds
  37313. -# Commands used to build a loadable module (assumed same as above if empty)
  37314. -module_cmds=$lt_module_cmds_GCJ
  37315. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  37316. -# Commands to strip libraries.
  37317. -old_striplib=$lt_old_striplib
  37318. -striplib=$lt_striplib
  37319. -# Dependencies to place before the objects being linked to create a
  37320. -# shared library.
  37321. -predep_objects=$lt_predep_objects_GCJ
  37322. -
  37323. -# Dependencies to place after the objects being linked to create a
  37324. -# shared library.
  37325. -postdep_objects=$lt_postdep_objects_GCJ
  37326. -
  37327. -# Dependencies to place before the objects being linked to create a
  37328. -# shared library.
  37329. -predeps=$lt_predeps_GCJ
  37330. -
  37331. -# Dependencies to place after the objects being linked to create a
  37332. -# shared library.
  37333. -postdeps=$lt_postdeps_GCJ
  37334. -
  37335. -# The library search path used internally by the compiler when linking
  37336. -# a shared library.
  37337. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  37338. -# Method to check whether dependent libraries are shared objects.
  37339. -deplibs_check_method=$lt_deplibs_check_method
  37340. -# Command to use when deplibs_check_method == file_magic.
  37341. -file_magic_cmd=$lt_file_magic_cmd
  37342. -# Flag that allows shared libraries with undefined symbols to be built.
  37343. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  37344. -# Flag that forces no undefined symbols.
  37345. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  37346. -# Commands used to finish a libtool library installation in a directory.
  37347. -finish_cmds=$lt_finish_cmds
  37348. -# Same as above, but a single script fragment to be evaled but not shown.
  37349. -finish_eval=$lt_finish_eval
  37350. -# Take the output of nm and produce a listing of raw symbols and C names.
  37351. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37352. -# Transform the output of nm in a proper C declaration
  37353. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37354. -# Transform the output of nm in a C name address pair
  37355. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37356. -# This is the shared library runtime path variable.
  37357. -runpath_var=$runpath_var
  37358. -# This is the shared library path variable.
  37359. -shlibpath_var=$shlibpath_var
  37360. -# Is shlibpath searched before the hard-coded library search path?
  37361. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37362. -# How to hardcode a shared library path into an executable.
  37363. -hardcode_action=$hardcode_action_GCJ
  37364. -# Whether we should hardcode library paths into libraries.
  37365. -hardcode_into_libs=$hardcode_into_libs
  37366. -# Flag to hardcode \$libdir into a binary during linking.
  37367. -# This must work even if \$libdir does not exist.
  37368. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  37369. -# If ld is used when linking, flag to hardcode \$libdir into
  37370. -# a binary during linking. This must work even if \$libdir does
  37371. -# not exist.
  37372. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  37373. -
  37374. -# Whether we need a single -rpath flag with a separated argument.
  37375. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  37376. -
  37377. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37378. -# resulting binary.
  37379. -hardcode_direct=$hardcode_direct_GCJ
  37380. -
  37381. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37382. -# resulting binary.
  37383. -hardcode_minus_L=$hardcode_minus_L_GCJ
  37384. -
  37385. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37386. -# the resulting binary.
  37387. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  37388. -
  37389. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37390. -# and all subsequent libraries and executables linked against it.
  37391. -hardcode_automatic=$hardcode_automatic_GCJ
  37392. -# Variables whose values should be saved in libtool wrapper scripts and
  37393. -# restored at relink time.
  37394. -variables_saved_for_relink="$variables_saved_for_relink"
  37395. -# Whether libtool must link a program against all its dependency libraries.
  37396. -link_all_deplibs=$link_all_deplibs_GCJ
  37397. -# Compile-time system search path for libraries
  37398. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37399. -# Run-time system search path for libraries
  37400. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37401. -# Fix the shell variable \$srcfile for the compiler.
  37402. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  37403. -# Set to yes if exported symbols are required.
  37404. -always_export_symbols=$always_export_symbols_GCJ
  37405. -# The commands to list exported symbols.
  37406. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  37407. -# The commands to extract the exported symbol list from a shared archive.
  37408. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37409. -# Symbols that should not be listed in the preloaded symbols.
  37410. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  37411. -# Symbols that must always be exported.
  37412. -include_expsyms=$lt_include_expsyms_GCJ
  37413. -# ### END LIBTOOL TAG CONFIG: $tagname
  37414. -__EOF__
  37415. -else
  37416. - # If there is no Makefile yet, we rely on a make rule to execute
  37417. - # `config.status --recheck' to rerun these tests and create the
  37418. - # libtool script then.
  37419. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37420. - if test -f "$ltmain_in"; then
  37421. - test -f Makefile && make "$ltmain"
  37422. - fi
  37423. -fi
  37424. -ac_ext=c
  37425. -ac_cpp='$CPP $CPPFLAGS'
  37426. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37427. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37428. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37429. -CC="$lt_save_CC"
  37430. - else
  37431. - tagname=""
  37432. - fi
  37433. - ;;
  37434. - RC)
  37435. -# Source file extension for RC test sources.
  37436. -ac_ext=rc
  37437. -# Object file extension for compiled RC test sources.
  37438. -objext=o
  37439. -objext_RC=$objext
  37440. -# Code to be used in simple compile tests
  37441. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  37442. -# Code to be used in simple link tests
  37443. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  37444. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37445. -# If no C compiler was specified, use CC.
  37446. -LTCC=${LTCC-"$CC"}
  37447. -# If no C compiler flags were specified, use CFLAGS.
  37448. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  37449. -# Allow CC to be a program name with arguments.
  37450. -compiler=$CC
  37451. -# save warnings/boilerplate of simple test code
  37452. -ac_outfile=conftest.$ac_objext
  37453. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  37454. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37455. -_lt_compiler_boilerplate=`cat conftest.err`
  37456. -$rm conftest*
  37457. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  37458. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  37459. +hardcode_action=
  37460. +if test -n "$hardcode_libdir_flag_spec" ||
  37461. + test -n "$runpath_var" ||
  37462. + test "X$hardcode_automatic" = "Xyes" ; then
  37463. -ac_outfile=conftest.$ac_objext
  37464. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  37465. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37466. -_lt_linker_boilerplate=`cat conftest.err`
  37467. -$rm conftest*
  37468. + # We can hardcode non-existent directories.
  37469. + if test "$hardcode_direct" != no &&
  37470. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37471. + # have to relink, otherwise we might link with an installed library
  37472. + # when we should be linking with a yet-to-be-installed one
  37473. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  37474. + test "$hardcode_minus_L" != no; then
  37475. + # Linking always hardcodes the temporary library directory.
  37476. + hardcode_action=relink
  37477. + else
  37478. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37479. + hardcode_action=immediate
  37480. + fi
  37481. +else
  37482. + # We cannot hardcode anything, or else we can only hardcode existing
  37483. + # directories.
  37484. + hardcode_action=unsupported
  37485. +fi
  37486. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  37487. +$as_echo "$hardcode_action" >&6; }
  37488. +if test "$hardcode_action" = relink ||
  37489. + test "$inherit_rpath" = yes; then
  37490. + # Fast installation is not supported
  37491. + enable_fast_install=no
  37492. +elif test "$shlibpath_overrides_runpath" = yes ||
  37493. + test "$enable_shared" = no; then
  37494. + # Fast installation is not necessary
  37495. + enable_fast_install=needless
  37496. +fi
  37497. -# Allow CC to be a program name with arguments.
  37498. -lt_save_CC="$CC"
  37499. -CC=${RC-"windres"}
  37500. -compiler=$CC
  37501. -compiler_RC=$CC
  37502. -for cc_temp in $compiler""; do
  37503. - case $cc_temp in
  37504. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37505. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37506. - \-*) ;;
  37507. - *) break;;
  37508. - esac
  37509. -done
  37510. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37511. -lt_cv_prog_compiler_c_o_RC=yes
  37512. -# The else clause should only fire when bootstrapping the
  37513. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37514. -# with your package, and you will get complaints that there are
  37515. -# no rules to generate ltmain.sh.
  37516. -if test -f "$ltmain"; then
  37517. - # See if we are running on zsh, and set the options which allow our commands through
  37518. - # without removal of \ escapes.
  37519. - if test -n "${ZSH_VERSION+set}" ; then
  37520. - setopt NO_GLOB_SUBST
  37521. - fi
  37522. - # Now quote all the things that may contain metacharacters while being
  37523. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37524. - # variables and quote the copies for generation of the libtool script.
  37525. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  37526. - SED SHELL STRIP \
  37527. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37528. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37529. - deplibs_check_method reload_flag reload_cmds need_locks \
  37530. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37531. - lt_cv_sys_global_symbol_to_c_name_address \
  37532. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37533. - old_postinstall_cmds old_postuninstall_cmds \
  37534. - compiler_RC \
  37535. - CC_RC \
  37536. - LD_RC \
  37537. - lt_prog_compiler_wl_RC \
  37538. - lt_prog_compiler_pic_RC \
  37539. - lt_prog_compiler_static_RC \
  37540. - lt_prog_compiler_no_builtin_flag_RC \
  37541. - export_dynamic_flag_spec_RC \
  37542. - thread_safe_flag_spec_RC \
  37543. - whole_archive_flag_spec_RC \
  37544. - enable_shared_with_static_runtimes_RC \
  37545. - old_archive_cmds_RC \
  37546. - old_archive_from_new_cmds_RC \
  37547. - predep_objects_RC \
  37548. - postdep_objects_RC \
  37549. - predeps_RC \
  37550. - postdeps_RC \
  37551. - compiler_lib_search_path_RC \
  37552. - archive_cmds_RC \
  37553. - archive_expsym_cmds_RC \
  37554. - postinstall_cmds_RC \
  37555. - postuninstall_cmds_RC \
  37556. - old_archive_from_expsyms_cmds_RC \
  37557. - allow_undefined_flag_RC \
  37558. - no_undefined_flag_RC \
  37559. - export_symbols_cmds_RC \
  37560. - hardcode_libdir_flag_spec_RC \
  37561. - hardcode_libdir_flag_spec_ld_RC \
  37562. - hardcode_libdir_separator_RC \
  37563. - hardcode_automatic_RC \
  37564. - module_cmds_RC \
  37565. - module_expsym_cmds_RC \
  37566. - lt_cv_prog_compiler_c_o_RC \
  37567. - exclude_expsyms_RC \
  37568. - include_expsyms_RC; do
  37569. -
  37570. - case $var in
  37571. - old_archive_cmds_RC | \
  37572. - old_archive_from_new_cmds_RC | \
  37573. - archive_cmds_RC | \
  37574. - archive_expsym_cmds_RC | \
  37575. - module_cmds_RC | \
  37576. - module_expsym_cmds_RC | \
  37577. - old_archive_from_expsyms_cmds_RC | \
  37578. - export_symbols_cmds_RC | \
  37579. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37580. - postinstall_cmds | postuninstall_cmds | \
  37581. - old_postinstall_cmds | old_postuninstall_cmds | \
  37582. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37583. - # Double-quote double-evaled strings.
  37584. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37585. - ;;
  37586. - *)
  37587. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37588. - ;;
  37589. - esac
  37590. - done
  37591. - case $lt_echo in
  37592. - *'\$0 --fallback-echo"')
  37593. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37594. - ;;
  37595. - esac
  37596. -cfgfile="$ofile"
  37597. - cat <<__EOF__ >> "$cfgfile"
  37598. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37599. + if test "x$enable_dlopen" != xyes; then
  37600. + enable_dlopen=unknown
  37601. + enable_dlopen_self=unknown
  37602. + enable_dlopen_self_static=unknown
  37603. +else
  37604. + lt_cv_dlopen=no
  37605. + lt_cv_dlopen_libs=
  37606. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37607. + case $host_os in
  37608. + beos*)
  37609. + lt_cv_dlopen="load_add_on"
  37610. + lt_cv_dlopen_libs=
  37611. + lt_cv_dlopen_self=yes
  37612. + ;;
  37613. -# Shell to use when invoking shell scripts.
  37614. -SHELL=$lt_SHELL
  37615. + mingw* | pw32* | cegcc*)
  37616. + lt_cv_dlopen="LoadLibrary"
  37617. + lt_cv_dlopen_libs=
  37618. + ;;
  37619. -# Whether or not to build shared libraries.
  37620. -build_libtool_libs=$enable_shared
  37621. + cygwin*)
  37622. + lt_cv_dlopen="dlopen"
  37623. + lt_cv_dlopen_libs=
  37624. + ;;
  37625. -# Whether or not to build static libraries.
  37626. -build_old_libs=$enable_static
  37627. + darwin*)
  37628. + # if libdl is installed we need to link against it
  37629. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37630. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37631. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37632. + $as_echo_n "(cached) " >&6
  37633. +else
  37634. + ac_check_lib_save_LIBS=$LIBS
  37635. +LIBS="-ldl $LIBS"
  37636. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37637. +/* end confdefs.h. */
  37638. -# Whether or not to add -lc for building shared libraries.
  37639. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  37640. +/* Override any GCC internal prototype to avoid an error.
  37641. + Use char because int might match the return type of a GCC
  37642. + builtin and then its argument prototype would still apply. */
  37643. +#ifdef __cplusplus
  37644. +extern "C"
  37645. +#endif
  37646. +char dlopen ();
  37647. +int
  37648. +main ()
  37649. +{
  37650. +return dlopen ();
  37651. + ;
  37652. + return 0;
  37653. +}
  37654. +_ACEOF
  37655. +if ac_fn_c_try_link "$LINENO"; then :
  37656. + ac_cv_lib_dl_dlopen=yes
  37657. +else
  37658. + ac_cv_lib_dl_dlopen=no
  37659. +fi
  37660. +rm -f core conftest.err conftest.$ac_objext \
  37661. + conftest$ac_exeext conftest.$ac_ext
  37662. +LIBS=$ac_check_lib_save_LIBS
  37663. +fi
  37664. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37665. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37666. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37667. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  37668. +else
  37669. -# Whether or not to disallow shared libs when runtime libs are static
  37670. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  37671. + lt_cv_dlopen="dyld"
  37672. + lt_cv_dlopen_libs=
  37673. + lt_cv_dlopen_self=yes
  37674. -# Whether or not to optimize for fast installation.
  37675. -fast_install=$enable_fast_install
  37676. +fi
  37677. -# The host system.
  37678. -host_alias=$host_alias
  37679. -host=$host
  37680. -host_os=$host_os
  37681. + ;;
  37682. -# The build system.
  37683. -build_alias=$build_alias
  37684. -build=$build
  37685. -build_os=$build_os
  37686. + *)
  37687. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  37688. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  37689. + lt_cv_dlopen="shl_load"
  37690. +else
  37691. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  37692. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  37693. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  37694. + $as_echo_n "(cached) " >&6
  37695. +else
  37696. + ac_check_lib_save_LIBS=$LIBS
  37697. +LIBS="-ldld $LIBS"
  37698. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37699. +/* end confdefs.h. */
  37700. -# An echo program that does not interpret backslashes.
  37701. -echo=$lt_echo
  37702. +/* Override any GCC internal prototype to avoid an error.
  37703. + Use char because int might match the return type of a GCC
  37704. + builtin and then its argument prototype would still apply. */
  37705. +#ifdef __cplusplus
  37706. +extern "C"
  37707. +#endif
  37708. +char shl_load ();
  37709. +int
  37710. +main ()
  37711. +{
  37712. +return shl_load ();
  37713. + ;
  37714. + return 0;
  37715. +}
  37716. +_ACEOF
  37717. +if ac_fn_c_try_link "$LINENO"; then :
  37718. + ac_cv_lib_dld_shl_load=yes
  37719. +else
  37720. + ac_cv_lib_dld_shl_load=no
  37721. +fi
  37722. +rm -f core conftest.err conftest.$ac_objext \
  37723. + conftest$ac_exeext conftest.$ac_ext
  37724. +LIBS=$ac_check_lib_save_LIBS
  37725. +fi
  37726. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  37727. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  37728. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  37729. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  37730. +else
  37731. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  37732. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  37733. + lt_cv_dlopen="dlopen"
  37734. +else
  37735. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37736. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37737. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37738. + $as_echo_n "(cached) " >&6
  37739. +else
  37740. + ac_check_lib_save_LIBS=$LIBS
  37741. +LIBS="-ldl $LIBS"
  37742. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37743. +/* end confdefs.h. */
  37744. -# The archiver.
  37745. -AR=$lt_AR
  37746. -AR_FLAGS=$lt_AR_FLAGS
  37747. +/* Override any GCC internal prototype to avoid an error.
  37748. + Use char because int might match the return type of a GCC
  37749. + builtin and then its argument prototype would still apply. */
  37750. +#ifdef __cplusplus
  37751. +extern "C"
  37752. +#endif
  37753. +char dlopen ();
  37754. +int
  37755. +main ()
  37756. +{
  37757. +return dlopen ();
  37758. + ;
  37759. + return 0;
  37760. +}
  37761. +_ACEOF
  37762. +if ac_fn_c_try_link "$LINENO"; then :
  37763. + ac_cv_lib_dl_dlopen=yes
  37764. +else
  37765. + ac_cv_lib_dl_dlopen=no
  37766. +fi
  37767. +rm -f core conftest.err conftest.$ac_objext \
  37768. + conftest$ac_exeext conftest.$ac_ext
  37769. +LIBS=$ac_check_lib_save_LIBS
  37770. +fi
  37771. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37772. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37773. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37774. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  37775. +else
  37776. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  37777. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  37778. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  37779. + $as_echo_n "(cached) " >&6
  37780. +else
  37781. + ac_check_lib_save_LIBS=$LIBS
  37782. +LIBS="-lsvld $LIBS"
  37783. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37784. +/* end confdefs.h. */
  37785. -# A C compiler.
  37786. -LTCC=$lt_LTCC
  37787. +/* Override any GCC internal prototype to avoid an error.
  37788. + Use char because int might match the return type of a GCC
  37789. + builtin and then its argument prototype would still apply. */
  37790. +#ifdef __cplusplus
  37791. +extern "C"
  37792. +#endif
  37793. +char dlopen ();
  37794. +int
  37795. +main ()
  37796. +{
  37797. +return dlopen ();
  37798. + ;
  37799. + return 0;
  37800. +}
  37801. +_ACEOF
  37802. +if ac_fn_c_try_link "$LINENO"; then :
  37803. + ac_cv_lib_svld_dlopen=yes
  37804. +else
  37805. + ac_cv_lib_svld_dlopen=no
  37806. +fi
  37807. +rm -f core conftest.err conftest.$ac_objext \
  37808. + conftest$ac_exeext conftest.$ac_ext
  37809. +LIBS=$ac_check_lib_save_LIBS
  37810. +fi
  37811. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  37812. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  37813. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  37814. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  37815. +else
  37816. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  37817. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  37818. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  37819. + $as_echo_n "(cached) " >&6
  37820. +else
  37821. + ac_check_lib_save_LIBS=$LIBS
  37822. +LIBS="-ldld $LIBS"
  37823. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37824. +/* end confdefs.h. */
  37825. -# LTCC compiler flags.
  37826. -LTCFLAGS=$lt_LTCFLAGS
  37827. +/* Override any GCC internal prototype to avoid an error.
  37828. + Use char because int might match the return type of a GCC
  37829. + builtin and then its argument prototype would still apply. */
  37830. +#ifdef __cplusplus
  37831. +extern "C"
  37832. +#endif
  37833. +char dld_link ();
  37834. +int
  37835. +main ()
  37836. +{
  37837. +return dld_link ();
  37838. + ;
  37839. + return 0;
  37840. +}
  37841. +_ACEOF
  37842. +if ac_fn_c_try_link "$LINENO"; then :
  37843. + ac_cv_lib_dld_dld_link=yes
  37844. +else
  37845. + ac_cv_lib_dld_dld_link=no
  37846. +fi
  37847. +rm -f core conftest.err conftest.$ac_objext \
  37848. + conftest$ac_exeext conftest.$ac_ext
  37849. +LIBS=$ac_check_lib_save_LIBS
  37850. +fi
  37851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  37852. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  37853. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  37854. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  37855. +fi
  37856. -# A language-specific compiler.
  37857. -CC=$lt_compiler_RC
  37858. -# Is the compiler the GNU C compiler?
  37859. -with_gcc=$GCC_RC
  37860. +fi
  37861. -# An ERE matcher.
  37862. -EGREP=$lt_EGREP
  37863. -# The linker used to build libraries.
  37864. -LD=$lt_LD_RC
  37865. +fi
  37866. -# Whether we need hard or soft links.
  37867. -LN_S=$lt_LN_S
  37868. -# A BSD-compatible nm program.
  37869. -NM=$lt_NM
  37870. +fi
  37871. -# A symbol stripping program
  37872. -STRIP=$lt_STRIP
  37873. -# Used to examine libraries when file_magic_cmd begins "file"
  37874. -MAGIC_CMD=$MAGIC_CMD
  37875. +fi
  37876. -# Used on cygwin: DLL creation program.
  37877. -DLLTOOL="$DLLTOOL"
  37878. -# Used on cygwin: object dumper.
  37879. -OBJDUMP="$OBJDUMP"
  37880. +fi
  37881. -# Used on cygwin: assembler.
  37882. -AS="$AS"
  37883. + ;;
  37884. + esac
  37885. -# The name of the directory that contains temporary libtool files.
  37886. -objdir=$objdir
  37887. + if test "x$lt_cv_dlopen" != xno; then
  37888. + enable_dlopen=yes
  37889. + else
  37890. + enable_dlopen=no
  37891. + fi
  37892. -# How to create reloadable object files.
  37893. -reload_flag=$lt_reload_flag
  37894. -reload_cmds=$lt_reload_cmds
  37895. + case $lt_cv_dlopen in
  37896. + dlopen)
  37897. + save_CPPFLAGS="$CPPFLAGS"
  37898. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  37899. -# How to pass a linker flag through the compiler.
  37900. -wl=$lt_lt_prog_compiler_wl_RC
  37901. + save_LDFLAGS="$LDFLAGS"
  37902. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  37903. -# Object file suffix (normally "o").
  37904. -objext="$ac_objext"
  37905. + save_LIBS="$LIBS"
  37906. + LIBS="$lt_cv_dlopen_libs $LIBS"
  37907. -# Old archive suffix (normally "a").
  37908. -libext="$libext"
  37909. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  37910. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  37911. +if test "${lt_cv_dlopen_self+set}" = set; then :
  37912. + $as_echo_n "(cached) " >&6
  37913. +else
  37914. + if test "$cross_compiling" = yes; then :
  37915. + lt_cv_dlopen_self=cross
  37916. +else
  37917. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  37918. + lt_status=$lt_dlunknown
  37919. + cat > conftest.$ac_ext <<_LT_EOF
  37920. +#line 10218 "configure"
  37921. +#include "confdefs.h"
  37922. -# Shared library suffix (normally ".so").
  37923. -shrext_cmds='$shrext_cmds'
  37924. +#if HAVE_DLFCN_H
  37925. +#include <dlfcn.h>
  37926. +#endif
  37927. -# Executable file suffix (normally "").
  37928. -exeext="$exeext"
  37929. +#include <stdio.h>
  37930. -# Additional compiler flags for building library objects.
  37931. -pic_flag=$lt_lt_prog_compiler_pic_RC
  37932. -pic_mode=$pic_mode
  37933. +#ifdef RTLD_GLOBAL
  37934. +# define LT_DLGLOBAL RTLD_GLOBAL
  37935. +#else
  37936. +# ifdef DL_GLOBAL
  37937. +# define LT_DLGLOBAL DL_GLOBAL
  37938. +# else
  37939. +# define LT_DLGLOBAL 0
  37940. +# endif
  37941. +#endif
  37942. -# What is the maximum length of a command?
  37943. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37944. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  37945. + find out it does not work in some platform. */
  37946. +#ifndef LT_DLLAZY_OR_NOW
  37947. +# ifdef RTLD_LAZY
  37948. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  37949. +# else
  37950. +# ifdef DL_LAZY
  37951. +# define LT_DLLAZY_OR_NOW DL_LAZY
  37952. +# else
  37953. +# ifdef RTLD_NOW
  37954. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  37955. +# else
  37956. +# ifdef DL_NOW
  37957. +# define LT_DLLAZY_OR_NOW DL_NOW
  37958. +# else
  37959. +# define LT_DLLAZY_OR_NOW 0
  37960. +# endif
  37961. +# endif
  37962. +# endif
  37963. +# endif
  37964. +#endif
  37965. -# Does compiler simultaneously support -c and -o options?
  37966. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  37967. +void fnord() { int i=42;}
  37968. +int main ()
  37969. +{
  37970. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  37971. + int status = $lt_dlunknown;
  37972. -# Must we lock files when doing compilation?
  37973. -need_locks=$lt_need_locks
  37974. + if (self)
  37975. + {
  37976. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  37977. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  37978. + /* dlclose (self); */
  37979. + }
  37980. + else
  37981. + puts (dlerror ());
  37982. -# Do we need the lib prefix for modules?
  37983. -need_lib_prefix=$need_lib_prefix
  37984. + return status;
  37985. +}
  37986. +_LT_EOF
  37987. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  37988. + (eval $ac_link) 2>&5
  37989. + ac_status=$?
  37990. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37991. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  37992. + (./conftest; exit; ) >&5 2>/dev/null
  37993. + lt_status=$?
  37994. + case x$lt_status in
  37995. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  37996. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  37997. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  37998. + esac
  37999. + else :
  38000. + # compilation failed
  38001. + lt_cv_dlopen_self=no
  38002. + fi
  38003. +fi
  38004. +rm -fr conftest*
  38005. -# Do we need a version for libraries?
  38006. -need_version=$need_version
  38007. -# Whether dlopen is supported.
  38008. -dlopen_support=$enable_dlopen
  38009. +fi
  38010. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  38011. +$as_echo "$lt_cv_dlopen_self" >&6; }
  38012. -# Whether dlopen of programs is supported.
  38013. -dlopen_self=$enable_dlopen_self
  38014. + if test "x$lt_cv_dlopen_self" = xyes; then
  38015. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  38016. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  38017. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  38018. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  38019. + $as_echo_n "(cached) " >&6
  38020. +else
  38021. + if test "$cross_compiling" = yes; then :
  38022. + lt_cv_dlopen_self_static=cross
  38023. +else
  38024. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  38025. + lt_status=$lt_dlunknown
  38026. + cat > conftest.$ac_ext <<_LT_EOF
  38027. +#line 10314 "configure"
  38028. +#include "confdefs.h"
  38029. -# Whether dlopen of statically linked programs is supported.
  38030. -dlopen_self_static=$enable_dlopen_self_static
  38031. +#if HAVE_DLFCN_H
  38032. +#include <dlfcn.h>
  38033. +#endif
  38034. -# Compiler flag to prevent dynamic linking.
  38035. -link_static_flag=$lt_lt_prog_compiler_static_RC
  38036. +#include <stdio.h>
  38037. -# Compiler flag to turn off builtin functions.
  38038. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  38039. +#ifdef RTLD_GLOBAL
  38040. +# define LT_DLGLOBAL RTLD_GLOBAL
  38041. +#else
  38042. +# ifdef DL_GLOBAL
  38043. +# define LT_DLGLOBAL DL_GLOBAL
  38044. +# else
  38045. +# define LT_DLGLOBAL 0
  38046. +# endif
  38047. +#endif
  38048. -# Compiler flag to allow reflexive dlopens.
  38049. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  38050. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  38051. + find out it does not work in some platform. */
  38052. +#ifndef LT_DLLAZY_OR_NOW
  38053. +# ifdef RTLD_LAZY
  38054. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  38055. +# else
  38056. +# ifdef DL_LAZY
  38057. +# define LT_DLLAZY_OR_NOW DL_LAZY
  38058. +# else
  38059. +# ifdef RTLD_NOW
  38060. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  38061. +# else
  38062. +# ifdef DL_NOW
  38063. +# define LT_DLLAZY_OR_NOW DL_NOW
  38064. +# else
  38065. +# define LT_DLLAZY_OR_NOW 0
  38066. +# endif
  38067. +# endif
  38068. +# endif
  38069. +# endif
  38070. +#endif
  38071. -# Compiler flag to generate shared objects directly from archives.
  38072. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  38073. +void fnord() { int i=42;}
  38074. +int main ()
  38075. +{
  38076. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  38077. + int status = $lt_dlunknown;
  38078. -# Compiler flag to generate thread-safe objects.
  38079. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  38080. + if (self)
  38081. + {
  38082. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  38083. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  38084. + /* dlclose (self); */
  38085. + }
  38086. + else
  38087. + puts (dlerror ());
  38088. -# Library versioning type.
  38089. -version_type=$version_type
  38090. + return status;
  38091. +}
  38092. +_LT_EOF
  38093. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  38094. + (eval $ac_link) 2>&5
  38095. + ac_status=$?
  38096. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38097. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  38098. + (./conftest; exit; ) >&5 2>/dev/null
  38099. + lt_status=$?
  38100. + case x$lt_status in
  38101. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  38102. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  38103. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  38104. + esac
  38105. + else :
  38106. + # compilation failed
  38107. + lt_cv_dlopen_self_static=no
  38108. + fi
  38109. +fi
  38110. +rm -fr conftest*
  38111. -# Format of library name prefix.
  38112. -libname_spec=$lt_libname_spec
  38113. -# List of archive names. First name is the real one, the rest are links.
  38114. -# The last name is the one that the linker finds with -lNAME.
  38115. -library_names_spec=$lt_library_names_spec
  38116. +fi
  38117. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  38118. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  38119. + fi
  38120. -# The coded name of the library, if different from the real name.
  38121. -soname_spec=$lt_soname_spec
  38122. + CPPFLAGS="$save_CPPFLAGS"
  38123. + LDFLAGS="$save_LDFLAGS"
  38124. + LIBS="$save_LIBS"
  38125. + ;;
  38126. + esac
  38127. -# Commands used to build and install an old-style archive.
  38128. -RANLIB=$lt_RANLIB
  38129. -old_archive_cmds=$lt_old_archive_cmds_RC
  38130. -old_postinstall_cmds=$lt_old_postinstall_cmds
  38131. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  38132. + case $lt_cv_dlopen_self in
  38133. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  38134. + *) enable_dlopen_self=unknown ;;
  38135. + esac
  38136. -# Create an old-style archive from a shared archive.
  38137. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  38138. + case $lt_cv_dlopen_self_static in
  38139. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  38140. + *) enable_dlopen_self_static=unknown ;;
  38141. + esac
  38142. +fi
  38143. -# Create a temporary old-style archive to link instead of a shared archive.
  38144. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  38145. -# Commands used to build and install a shared archive.
  38146. -archive_cmds=$lt_archive_cmds_RC
  38147. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  38148. -postinstall_cmds=$lt_postinstall_cmds
  38149. -postuninstall_cmds=$lt_postuninstall_cmds
  38150. -# Commands used to build a loadable module (assumed same as above if empty)
  38151. -module_cmds=$lt_module_cmds_RC
  38152. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  38153. -# Commands to strip libraries.
  38154. -old_striplib=$lt_old_striplib
  38155. -striplib=$lt_striplib
  38156. -# Dependencies to place before the objects being linked to create a
  38157. -# shared library.
  38158. -predep_objects=$lt_predep_objects_RC
  38159. -
  38160. -# Dependencies to place after the objects being linked to create a
  38161. -# shared library.
  38162. -postdep_objects=$lt_postdep_objects_RC
  38163. -
  38164. -# Dependencies to place before the objects being linked to create a
  38165. -# shared library.
  38166. -predeps=$lt_predeps_RC
  38167. -
  38168. -# Dependencies to place after the objects being linked to create a
  38169. -# shared library.
  38170. -postdeps=$lt_postdeps_RC
  38171. -
  38172. -# The library search path used internally by the compiler when linking
  38173. -# a shared library.
  38174. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  38175. -# Method to check whether dependent libraries are shared objects.
  38176. -deplibs_check_method=$lt_deplibs_check_method
  38177. -# Command to use when deplibs_check_method == file_magic.
  38178. -file_magic_cmd=$lt_file_magic_cmd
  38179. -# Flag that allows shared libraries with undefined symbols to be built.
  38180. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  38181. -# Flag that forces no undefined symbols.
  38182. -no_undefined_flag=$lt_no_undefined_flag_RC
  38183. -# Commands used to finish a libtool library installation in a directory.
  38184. -finish_cmds=$lt_finish_cmds
  38185. -# Same as above, but a single script fragment to be evaled but not shown.
  38186. -finish_eval=$lt_finish_eval
  38187. -# Take the output of nm and produce a listing of raw symbols and C names.
  38188. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  38189. -# Transform the output of nm in a proper C declaration
  38190. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  38191. -# Transform the output of nm in a C name address pair
  38192. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  38193. -# This is the shared library runtime path variable.
  38194. -runpath_var=$runpath_var
  38195. -# This is the shared library path variable.
  38196. -shlibpath_var=$shlibpath_var
  38197. -# Is shlibpath searched before the hard-coded library search path?
  38198. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  38199. +striplib=
  38200. +old_striplib=
  38201. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  38202. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  38203. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  38204. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  38205. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  38206. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38207. +$as_echo "yes" >&6; }
  38208. +else
  38209. +# FIXME - insert some real tests, host_os isn't really good enough
  38210. + case $host_os in
  38211. + darwin*)
  38212. + if test -n "$STRIP" ; then
  38213. + striplib="$STRIP -x"
  38214. + old_striplib="$STRIP -S"
  38215. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38216. +$as_echo "yes" >&6; }
  38217. + else
  38218. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38219. +$as_echo "no" >&6; }
  38220. + fi
  38221. + ;;
  38222. + *)
  38223. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38224. +$as_echo "no" >&6; }
  38225. + ;;
  38226. + esac
  38227. +fi
  38228. -# How to hardcode a shared library path into an executable.
  38229. -hardcode_action=$hardcode_action_RC
  38230. -# Whether we should hardcode library paths into libraries.
  38231. -hardcode_into_libs=$hardcode_into_libs
  38232. -# Flag to hardcode \$libdir into a binary during linking.
  38233. -# This must work even if \$libdir does not exist.
  38234. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  38235. -# If ld is used when linking, flag to hardcode \$libdir into
  38236. -# a binary during linking. This must work even if \$libdir does
  38237. -# not exist.
  38238. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  38239. -
  38240. -# Whether we need a single -rpath flag with a separated argument.
  38241. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  38242. -
  38243. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  38244. -# resulting binary.
  38245. -hardcode_direct=$hardcode_direct_RC
  38246. -
  38247. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  38248. -# resulting binary.
  38249. -hardcode_minus_L=$hardcode_minus_L_RC
  38250. -
  38251. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  38252. -# the resulting binary.
  38253. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  38254. -
  38255. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  38256. -# and all subsequent libraries and executables linked against it.
  38257. -hardcode_automatic=$hardcode_automatic_RC
  38258. -# Variables whose values should be saved in libtool wrapper scripts and
  38259. -# restored at relink time.
  38260. -variables_saved_for_relink="$variables_saved_for_relink"
  38261. -# Whether libtool must link a program against all its dependency libraries.
  38262. -link_all_deplibs=$link_all_deplibs_RC
  38263. -# Compile-time system search path for libraries
  38264. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  38265. -# Run-time system search path for libraries
  38266. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  38267. -# Fix the shell variable \$srcfile for the compiler.
  38268. -fix_srcfile_path="$fix_srcfile_path_RC"
  38269. -# Set to yes if exported symbols are required.
  38270. -always_export_symbols=$always_export_symbols_RC
  38271. -# The commands to list exported symbols.
  38272. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  38273. -# The commands to extract the exported symbol list from a shared archive.
  38274. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  38275. + # Report which library types will actually be built
  38276. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  38277. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  38278. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  38279. +$as_echo "$can_build_shared" >&6; }
  38280. -# Symbols that should not be listed in the preloaded symbols.
  38281. -exclude_expsyms=$lt_exclude_expsyms_RC
  38282. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  38283. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  38284. + test "$can_build_shared" = "no" && enable_shared=no
  38285. -# Symbols that must always be exported.
  38286. -include_expsyms=$lt_include_expsyms_RC
  38287. + # On AIX, shared libraries and static libraries use the same namespace, and
  38288. + # are all built from PIC.
  38289. + case $host_os in
  38290. + aix3*)
  38291. + test "$enable_shared" = yes && enable_static=no
  38292. + if test -n "$RANLIB"; then
  38293. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  38294. + postinstall_cmds='$RANLIB $lib'
  38295. + fi
  38296. + ;;
  38297. -# ### END LIBTOOL TAG CONFIG: $tagname
  38298. + aix[4-9]*)
  38299. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  38300. + test "$enable_shared" = yes && enable_static=no
  38301. + fi
  38302. + ;;
  38303. + esac
  38304. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  38305. +$as_echo "$enable_shared" >&6; }
  38306. -__EOF__
  38307. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  38308. +$as_echo_n "checking whether to build static libraries... " >&6; }
  38309. + # Make sure either enable_shared or enable_static is yes.
  38310. + test "$enable_shared" = yes || enable_static=yes
  38311. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  38312. +$as_echo "$enable_static" >&6; }
  38313. -else
  38314. - # If there is no Makefile yet, we rely on a make rule to execute
  38315. - # `config.status --recheck' to rerun these tests and create the
  38316. - # libtool script then.
  38317. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  38318. - if test -f "$ltmain_in"; then
  38319. - test -f Makefile && make "$ltmain"
  38320. - fi
  38321. -fi
  38322. +fi
  38323. ac_ext=c
  38324. ac_cpp='$CPP $CPPFLAGS'
  38325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38326. @@ -19774,46 +10518,6 @@
  38327. CC="$lt_save_CC"
  38328. - ;;
  38329. -
  38330. - *)
  38331. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  38332. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  38333. - { (exit 1); exit 1; }; }
  38334. - ;;
  38335. - esac
  38336. -
  38337. - # Append the new tag name to the list of available tags.
  38338. - if test -n "$tagname" ; then
  38339. - available_tags="$available_tags $tagname"
  38340. - fi
  38341. - fi
  38342. - done
  38343. - IFS="$lt_save_ifs"
  38344. -
  38345. - # Now substitute the updated list of available tags.
  38346. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  38347. - mv "${ofile}T" "$ofile"
  38348. - chmod +x "$ofile"
  38349. - else
  38350. - rm -f "${ofile}T"
  38351. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  38352. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  38353. - { (exit 1); exit 1; }; }
  38354. - fi
  38355. -fi
  38356. -
  38357. -
  38358. -
  38359. -# This can be used to rebuild libtool when needed
  38360. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  38361. -
  38362. -# Always use our own libtool.
  38363. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  38364. -
  38365. -# Prevent multiple expansion
  38366. -
  38367. -
  38368. @@ -19826,10 +10530,12 @@
  38369. + ac_config_commands="$ac_config_commands libtool"
  38370. +# Only expand once:
  38371. @@ -19837,26 +10543,21 @@
  38372. # Check whether --with-rtsig was given.
  38373. -if test "${with_rtsig+set}" = set; then
  38374. +if test "${with_rtsig+set}" = set; then :
  38375. withval=$with_rtsig; usertsig=yes
  38376. else
  38377. usertsig=no
  38378. fi
  38379. -
  38380. -{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  38381. -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  38382. -if test "${ac_cv_lib_socket_socket+set}" = set; then
  38383. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38384. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  38385. +$as_echo_n "checking for socket in -lsocket... " >&6; }
  38386. +if test "${ac_cv_lib_socket_socket+set}" = set; then :
  38387. + $as_echo_n "(cached) " >&6
  38388. else
  38389. ac_check_lib_save_LIBS=$LIBS
  38390. LIBS="-lsocket $LIBS"
  38391. -cat >conftest.$ac_ext <<_ACEOF
  38392. -/* confdefs.h. */
  38393. -_ACEOF
  38394. -cat confdefs.h >>conftest.$ac_ext
  38395. -cat >>conftest.$ac_ext <<_ACEOF
  38396. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38397. /* end confdefs.h. */
  38398. /* Override any GCC internal prototype to avoid an error.
  38399. @@ -19874,55 +10575,18 @@
  38400. return 0;
  38401. }
  38402. _ACEOF
  38403. -rm -f conftest.$ac_objext conftest$ac_exeext
  38404. -if { (ac_try="$ac_link"
  38405. -case "(($ac_try" in
  38406. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38407. - *) ac_try_echo=$ac_try;;
  38408. -esac
  38409. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38410. - (eval "$ac_link") 2>conftest.er1
  38411. - ac_status=$?
  38412. - grep -v '^ *+' conftest.er1 >conftest.err
  38413. - rm -f conftest.er1
  38414. - cat conftest.err >&5
  38415. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38416. - (exit $ac_status); } &&
  38417. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38418. - { (case "(($ac_try" in
  38419. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38420. - *) ac_try_echo=$ac_try;;
  38421. -esac
  38422. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38423. - (eval "$ac_try") 2>&5
  38424. - ac_status=$?
  38425. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38426. - (exit $ac_status); }; } &&
  38427. - { ac_try='test -s conftest$ac_exeext'
  38428. - { (case "(($ac_try" in
  38429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38430. - *) ac_try_echo=$ac_try;;
  38431. -esac
  38432. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38433. - (eval "$ac_try") 2>&5
  38434. - ac_status=$?
  38435. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38436. - (exit $ac_status); }; }; then
  38437. +if ac_fn_c_try_link "$LINENO"; then :
  38438. ac_cv_lib_socket_socket=yes
  38439. else
  38440. - echo "$as_me: failed program was:" >&5
  38441. -sed 's/^/| /' conftest.$ac_ext >&5
  38442. -
  38443. - ac_cv_lib_socket_socket=no
  38444. + ac_cv_lib_socket_socket=no
  38445. fi
  38446. -
  38447. rm -f core conftest.err conftest.$ac_objext \
  38448. - conftest$ac_exeext conftest.$ac_ext
  38449. + conftest$ac_exeext conftest.$ac_ext
  38450. LIBS=$ac_check_lib_save_LIBS
  38451. fi
  38452. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  38453. -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  38454. -if test $ac_cv_lib_socket_socket = yes; then
  38455. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  38456. +$as_echo "$ac_cv_lib_socket_socket" >&6; }
  38457. +if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  38458. cat >>confdefs.h <<_ACEOF
  38459. #define HAVE_LIBSOCKET 1
  38460. _ACEOF
  38461. @@ -19932,16 +10596,12 @@
  38462. fi
  38463. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  38464. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  38465. -if test "${ac_cv_header_stdc+set}" = set; then
  38466. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  38468. +$as_echo_n "checking for ANSI C header files... " >&6; }
  38469. +if test "${ac_cv_header_stdc+set}" = set; then :
  38470. + $as_echo_n "(cached) " >&6
  38471. else
  38472. - cat >conftest.$ac_ext <<_ACEOF
  38473. -/* confdefs.h. */
  38474. -_ACEOF
  38475. -cat confdefs.h >>conftest.$ac_ext
  38476. -cat >>conftest.$ac_ext <<_ACEOF
  38477. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38478. /* end confdefs.h. */
  38479. #include <stdlib.h>
  38480. #include <stdarg.h>
  38481. @@ -19956,64 +10616,23 @@
  38482. return 0;
  38483. }
  38484. _ACEOF
  38485. -rm -f conftest.$ac_objext
  38486. -if { (ac_try="$ac_compile"
  38487. -case "(($ac_try" in
  38488. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38489. - *) ac_try_echo=$ac_try;;
  38490. -esac
  38491. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38492. - (eval "$ac_compile") 2>conftest.er1
  38493. - ac_status=$?
  38494. - grep -v '^ *+' conftest.er1 >conftest.err
  38495. - rm -f conftest.er1
  38496. - cat conftest.err >&5
  38497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38498. - (exit $ac_status); } &&
  38499. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38500. - { (case "(($ac_try" in
  38501. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38502. - *) ac_try_echo=$ac_try;;
  38503. -esac
  38504. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38505. - (eval "$ac_try") 2>&5
  38506. - ac_status=$?
  38507. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38508. - (exit $ac_status); }; } &&
  38509. - { ac_try='test -s conftest.$ac_objext'
  38510. - { (case "(($ac_try" in
  38511. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38512. - *) ac_try_echo=$ac_try;;
  38513. -esac
  38514. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38515. - (eval "$ac_try") 2>&5
  38516. - ac_status=$?
  38517. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38518. - (exit $ac_status); }; }; then
  38519. +if ac_fn_c_try_compile "$LINENO"; then :
  38520. ac_cv_header_stdc=yes
  38521. else
  38522. - echo "$as_me: failed program was:" >&5
  38523. -sed 's/^/| /' conftest.$ac_ext >&5
  38524. -
  38525. - ac_cv_header_stdc=no
  38526. + ac_cv_header_stdc=no
  38527. fi
  38528. -
  38529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38530. if test $ac_cv_header_stdc = yes; then
  38531. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  38532. - cat >conftest.$ac_ext <<_ACEOF
  38533. -/* confdefs.h. */
  38534. -_ACEOF
  38535. -cat confdefs.h >>conftest.$ac_ext
  38536. -cat >>conftest.$ac_ext <<_ACEOF
  38537. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38538. /* end confdefs.h. */
  38539. #include <string.h>
  38540. _ACEOF
  38541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38542. - $EGREP "memchr" >/dev/null 2>&1; then
  38543. - :
  38544. + $EGREP "memchr" >/dev/null 2>&1; then :
  38545. +
  38546. else
  38547. ac_cv_header_stdc=no
  38548. fi
  38549. @@ -20023,18 +10642,14 @@
  38550. if test $ac_cv_header_stdc = yes; then
  38551. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  38552. - cat >conftest.$ac_ext <<_ACEOF
  38553. -/* confdefs.h. */
  38554. -_ACEOF
  38555. -cat confdefs.h >>conftest.$ac_ext
  38556. -cat >>conftest.$ac_ext <<_ACEOF
  38557. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38558. /* end confdefs.h. */
  38559. #include <stdlib.h>
  38560. _ACEOF
  38561. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38562. - $EGREP "free" >/dev/null 2>&1; then
  38563. - :
  38564. + $EGREP "free" >/dev/null 2>&1; then :
  38565. +
  38566. else
  38567. ac_cv_header_stdc=no
  38568. fi
  38569. @@ -20042,259 +10657,65 @@
  38570. fi
  38571. -if test $ac_cv_header_stdc = yes; then
  38572. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  38573. - if test "$cross_compiling" = yes; then
  38574. - :
  38575. -else
  38576. - cat >conftest.$ac_ext <<_ACEOF
  38577. -/* confdefs.h. */
  38578. -_ACEOF
  38579. -cat confdefs.h >>conftest.$ac_ext
  38580. -cat >>conftest.$ac_ext <<_ACEOF
  38581. -/* end confdefs.h. */
  38582. -#include <ctype.h>
  38583. -#include <stdlib.h>
  38584. -#if ((' ' & 0x0FF) == 0x020)
  38585. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  38586. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  38587. -#else
  38588. -# define ISLOWER(c) \
  38589. - (('a' <= (c) && (c) <= 'i') \
  38590. - || ('j' <= (c) && (c) <= 'r') \
  38591. - || ('s' <= (c) && (c) <= 'z'))
  38592. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  38593. -#endif
  38594. -
  38595. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  38596. -int
  38597. -main ()
  38598. -{
  38599. - int i;
  38600. - for (i = 0; i < 256; i++)
  38601. - if (XOR (islower (i), ISLOWER (i))
  38602. - || toupper (i) != TOUPPER (i))
  38603. - return 2;
  38604. - return 0;
  38605. -}
  38606. -_ACEOF
  38607. -rm -f conftest$ac_exeext
  38608. -if { (ac_try="$ac_link"
  38609. -case "(($ac_try" in
  38610. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38611. - *) ac_try_echo=$ac_try;;
  38612. -esac
  38613. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38614. - (eval "$ac_link") 2>&5
  38615. - ac_status=$?
  38616. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38617. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  38618. - { (case "(($ac_try" in
  38619. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38620. - *) ac_try_echo=$ac_try;;
  38621. -esac
  38622. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38623. - (eval "$ac_try") 2>&5
  38624. - ac_status=$?
  38625. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38626. - (exit $ac_status); }; }; then
  38627. - :
  38628. -else
  38629. - echo "$as_me: program exited with status $ac_status" >&5
  38630. -echo "$as_me: failed program was:" >&5
  38631. -sed 's/^/| /' conftest.$ac_ext >&5
  38632. -
  38633. -( exit $ac_status )
  38634. -ac_cv_header_stdc=no
  38635. -fi
  38636. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  38637. -fi
  38638. -
  38639. -
  38640. -fi
  38641. -fi
  38642. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  38643. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  38644. -if test $ac_cv_header_stdc = yes; then
  38645. -
  38646. -cat >>confdefs.h <<\_ACEOF
  38647. -#define STDC_HEADERS 1
  38648. -_ACEOF
  38649. -
  38650. -fi
  38651. -
  38652. -
  38653. -
  38654. -
  38655. -
  38656. -
  38657. -
  38658. -
  38659. -
  38660. -
  38661. -
  38662. -
  38663. -
  38664. -
  38665. -
  38666. -
  38667. -for ac_header in fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/ioctl.h sys/devpoll.h port.h netinet/in6.h
  38668. -do
  38669. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38670. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38671. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  38672. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38673. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38674. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38675. -fi
  38676. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38677. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38678. -echo "${ECHO_T}$ac_res" >&6; }
  38679. -else
  38680. - # Is the header compilable?
  38681. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38682. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  38683. -cat >conftest.$ac_ext <<_ACEOF
  38684. -/* confdefs.h. */
  38685. -_ACEOF
  38686. -cat confdefs.h >>conftest.$ac_ext
  38687. -cat >>conftest.$ac_ext <<_ACEOF
  38688. -/* end confdefs.h. */
  38689. -$ac_includes_default
  38690. -#include <$ac_header>
  38691. -_ACEOF
  38692. -rm -f conftest.$ac_objext
  38693. -if { (ac_try="$ac_compile"
  38694. -case "(($ac_try" in
  38695. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38696. - *) ac_try_echo=$ac_try;;
  38697. -esac
  38698. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38699. - (eval "$ac_compile") 2>conftest.er1
  38700. - ac_status=$?
  38701. - grep -v '^ *+' conftest.er1 >conftest.err
  38702. - rm -f conftest.er1
  38703. - cat conftest.err >&5
  38704. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38705. - (exit $ac_status); } &&
  38706. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38707. - { (case "(($ac_try" in
  38708. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38709. - *) ac_try_echo=$ac_try;;
  38710. -esac
  38711. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38712. - (eval "$ac_try") 2>&5
  38713. - ac_status=$?
  38714. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38715. - (exit $ac_status); }; } &&
  38716. - { ac_try='test -s conftest.$ac_objext'
  38717. - { (case "(($ac_try" in
  38718. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38719. - *) ac_try_echo=$ac_try;;
  38720. -esac
  38721. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38722. - (eval "$ac_try") 2>&5
  38723. - ac_status=$?
  38724. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38725. - (exit $ac_status); }; }; then
  38726. - ac_header_compiler=yes
  38727. -else
  38728. - echo "$as_me: failed program was:" >&5
  38729. -sed 's/^/| /' conftest.$ac_ext >&5
  38730. -
  38731. - ac_header_compiler=no
  38732. -fi
  38733. -
  38734. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38735. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38736. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  38737. -
  38738. -# Is the header present?
  38739. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38740. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  38741. -cat >conftest.$ac_ext <<_ACEOF
  38742. -/* confdefs.h. */
  38743. -_ACEOF
  38744. -cat confdefs.h >>conftest.$ac_ext
  38745. -cat >>conftest.$ac_ext <<_ACEOF
  38746. +if test $ac_cv_header_stdc = yes; then
  38747. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  38748. + if test "$cross_compiling" = yes; then :
  38749. + :
  38750. +else
  38751. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38752. /* end confdefs.h. */
  38753. -#include <$ac_header>
  38754. +#include <ctype.h>
  38755. +#include <stdlib.h>
  38756. +#if ((' ' & 0x0FF) == 0x020)
  38757. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  38758. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  38759. +#else
  38760. +# define ISLOWER(c) \
  38761. + (('a' <= (c) && (c) <= 'i') \
  38762. + || ('j' <= (c) && (c) <= 'r') \
  38763. + || ('s' <= (c) && (c) <= 'z'))
  38764. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  38765. +#endif
  38766. +
  38767. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  38768. +int
  38769. +main ()
  38770. +{
  38771. + int i;
  38772. + for (i = 0; i < 256; i++)
  38773. + if (XOR (islower (i), ISLOWER (i))
  38774. + || toupper (i) != TOUPPER (i))
  38775. + return 2;
  38776. + return 0;
  38777. +}
  38778. _ACEOF
  38779. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38780. -case "(($ac_try" in
  38781. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38782. - *) ac_try_echo=$ac_try;;
  38783. -esac
  38784. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38785. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38786. - ac_status=$?
  38787. - grep -v '^ *+' conftest.er1 >conftest.err
  38788. - rm -f conftest.er1
  38789. - cat conftest.err >&5
  38790. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38791. - (exit $ac_status); } >/dev/null; then
  38792. - if test -s conftest.err; then
  38793. - ac_cpp_err=$ac_c_preproc_warn_flag
  38794. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  38795. - else
  38796. - ac_cpp_err=
  38797. - fi
  38798. +if ac_fn_c_try_run "$LINENO"; then :
  38799. +
  38800. else
  38801. - ac_cpp_err=yes
  38802. + ac_cv_header_stdc=no
  38803. fi
  38804. -if test -z "$ac_cpp_err"; then
  38805. - ac_header_preproc=yes
  38806. -else
  38807. - echo "$as_me: failed program was:" >&5
  38808. -sed 's/^/| /' conftest.$ac_ext >&5
  38809. -
  38810. - ac_header_preproc=no
  38811. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38812. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38813. fi
  38814. -rm -f conftest.err conftest.$ac_ext
  38815. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38816. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  38817. +fi
  38818. +fi
  38819. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  38820. +$as_echo "$ac_cv_header_stdc" >&6; }
  38821. +if test $ac_cv_header_stdc = yes; then
  38822. -# So? What about this header?
  38823. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38824. - yes:no: )
  38825. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  38826. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38827. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  38828. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  38829. - ac_header_preproc=yes
  38830. - ;;
  38831. - no:yes:* )
  38832. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  38833. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  38834. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  38835. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  38836. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  38837. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  38838. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  38839. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  38840. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  38841. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  38842. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  38843. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  38844. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  38845. - ;;
  38846. -esac
  38847. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  38848. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38849. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38850. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38851. -else
  38852. - eval "$as_ac_Header=\$ac_header_preproc"
  38853. fi
  38854. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38855. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38856. -echo "${ECHO_T}$ac_res" >&6; }
  38857. -fi
  38858. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  38859. +for ac_header in fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/ioctl.h sys/devpoll.h port.h netinet/in6.h
  38860. +do :
  38861. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38862. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  38863. +eval as_val=\$$as_ac_Header
  38864. + if test "x$as_val" = x""yes; then :
  38865. cat >>confdefs.h <<_ACEOF
  38866. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38867. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  38868. _ACEOF
  38869. fi
  38870. @@ -20302,13 +10723,9 @@
  38871. done
  38872. if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
  38873. - { echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5
  38874. -echo $ECHO_N "checking for TAILQ_FOREACH in sys/queue.h... $ECHO_C" >&6; }
  38875. - cat >conftest.$ac_ext <<_ACEOF
  38876. -/* confdefs.h. */
  38877. -_ACEOF
  38878. -cat confdefs.h >>conftest.$ac_ext
  38879. -cat >>conftest.$ac_ext <<_ACEOF
  38880. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
  38881. +$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
  38882. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38883. /* end confdefs.h. */
  38884. #include <sys/queue.h>
  38885. @@ -20318,17 +10735,15 @@
  38886. _ACEOF
  38887. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38888. - $EGREP "yes" >/dev/null 2>&1; then
  38889. - { echo "$as_me:$LINENO: result: yes" >&5
  38890. -echo "${ECHO_T}yes" >&6; }
  38891. + $EGREP "yes" >/dev/null 2>&1; then :
  38892. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38893. +$as_echo "yes" >&6; }
  38894. -cat >>confdefs.h <<\_ACEOF
  38895. -#define HAVE_TAILQFOREACH 1
  38896. -_ACEOF
  38897. +$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
  38898. else
  38899. - { echo "$as_me:$LINENO: result: no" >&5
  38900. -echo "${ECHO_T}no" >&6; }
  38901. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38902. +$as_echo "no" >&6; }
  38903. fi
  38904. rm -f conftest*
  38905. @@ -20336,13 +10751,9 @@
  38906. fi
  38907. if test "x$ac_cv_header_sys_time_h" = "xyes"; then
  38908. - { echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5
  38909. -echo $ECHO_N "checking for timeradd in sys/time.h... $ECHO_C" >&6; }
  38910. - cat >conftest.$ac_ext <<_ACEOF
  38911. -/* confdefs.h. */
  38912. -_ACEOF
  38913. -cat confdefs.h >>conftest.$ac_ext
  38914. -cat >>conftest.$ac_ext <<_ACEOF
  38915. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
  38916. +$as_echo_n "checking for timeradd in sys/time.h... " >&6; }
  38917. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38918. /* end confdefs.h. */
  38919. #include <sys/time.h>
  38920. @@ -20352,17 +10763,15 @@
  38921. _ACEOF
  38922. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38923. - $EGREP "yes" >/dev/null 2>&1; then
  38924. + $EGREP "yes" >/dev/null 2>&1; then :
  38925. -cat >>confdefs.h <<\_ACEOF
  38926. -#define HAVE_TIMERADD 1
  38927. -_ACEOF
  38928. +$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
  38929. - { echo "$as_me:$LINENO: result: yes" >&5
  38930. -echo "${ECHO_T}yes" >&6; }
  38931. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38932. +$as_echo "yes" >&6; }
  38933. else
  38934. - { echo "$as_me:$LINENO: result: no" >&5
  38935. -echo "${ECHO_T}no" >&6; }
  38936. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38937. +$as_echo "no" >&6; }
  38938. fi
  38939. rm -f conftest*
  38940. @@ -20370,13 +10779,9 @@
  38941. fi
  38942. if test "x$ac_cv_header_sys_time_h" = "xyes"; then
  38943. - { echo "$as_me:$LINENO: checking for timercmp in sys/time.h" >&5
  38944. -echo $ECHO_N "checking for timercmp in sys/time.h... $ECHO_C" >&6; }
  38945. - cat >conftest.$ac_ext <<_ACEOF
  38946. -/* confdefs.h. */
  38947. -_ACEOF
  38948. -cat confdefs.h >>conftest.$ac_ext
  38949. -cat >>conftest.$ac_ext <<_ACEOF
  38950. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
  38951. +$as_echo_n "checking for timercmp in sys/time.h... " >&6; }
  38952. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38953. /* end confdefs.h. */
  38954. #include <sys/time.h>
  38955. @@ -20386,17 +10791,15 @@
  38956. _ACEOF
  38957. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38958. - $EGREP "yes" >/dev/null 2>&1; then
  38959. + $EGREP "yes" >/dev/null 2>&1; then :
  38960. -cat >>confdefs.h <<\_ACEOF
  38961. -#define HAVE_TIMERCMP 1
  38962. -_ACEOF
  38963. +$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
  38964. - { echo "$as_me:$LINENO: result: yes" >&5
  38965. -echo "${ECHO_T}yes" >&6; }
  38966. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38967. +$as_echo "yes" >&6; }
  38968. else
  38969. - { echo "$as_me:$LINENO: result: no" >&5
  38970. -echo "${ECHO_T}no" >&6; }
  38971. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38972. +$as_echo "no" >&6; }
  38973. fi
  38974. rm -f conftest*
  38975. @@ -20404,13 +10807,9 @@
  38976. fi
  38977. if test "x$ac_cv_header_sys_time_h" = "xyes"; then
  38978. - { echo "$as_me:$LINENO: checking for timerclear in sys/time.h" >&5
  38979. -echo $ECHO_N "checking for timerclear in sys/time.h... $ECHO_C" >&6; }
  38980. - cat >conftest.$ac_ext <<_ACEOF
  38981. -/* confdefs.h. */
  38982. -_ACEOF
  38983. -cat confdefs.h >>conftest.$ac_ext
  38984. -cat >>conftest.$ac_ext <<_ACEOF
  38985. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
  38986. +$as_echo_n "checking for timerclear in sys/time.h... " >&6; }
  38987. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38988. /* end confdefs.h. */
  38989. #include <sys/time.h>
  38990. @@ -20420,17 +10819,15 @@
  38991. _ACEOF
  38992. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38993. - $EGREP "yes" >/dev/null 2>&1; then
  38994. + $EGREP "yes" >/dev/null 2>&1; then :
  38995. -cat >>confdefs.h <<\_ACEOF
  38996. -#define HAVE_TIMERCLEAR 1
  38997. -_ACEOF
  38998. +$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
  38999. - { echo "$as_me:$LINENO: result: yes" >&5
  39000. -echo "${ECHO_T}yes" >&6; }
  39001. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39002. +$as_echo "yes" >&6; }
  39003. else
  39004. - { echo "$as_me:$LINENO: result: no" >&5
  39005. -echo "${ECHO_T}no" >&6; }
  39006. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39007. +$as_echo "no" >&6; }
  39008. fi
  39009. rm -f conftest*
  39010. @@ -20438,13 +10835,9 @@
  39011. fi
  39012. if test "x$ac_cv_header_sys_time_h" = "xyes"; then
  39013. - { echo "$as_me:$LINENO: checking for timerisset in sys/time.h" >&5
  39014. -echo $ECHO_N "checking for timerisset in sys/time.h... $ECHO_C" >&6; }
  39015. - cat >conftest.$ac_ext <<_ACEOF
  39016. -/* confdefs.h. */
  39017. -_ACEOF
  39018. -cat confdefs.h >>conftest.$ac_ext
  39019. -cat >>conftest.$ac_ext <<_ACEOF
  39020. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
  39021. +$as_echo_n "checking for timerisset in sys/time.h... " >&6; }
  39022. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39023. /* end confdefs.h. */
  39024. #include <sys/time.h>
  39025. @@ -20454,30 +10847,24 @@
  39026. _ACEOF
  39027. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  39028. - $EGREP "yes" >/dev/null 2>&1; then
  39029. + $EGREP "yes" >/dev/null 2>&1; then :
  39030. -cat >>confdefs.h <<\_ACEOF
  39031. -#define HAVE_TIMERISSET 1
  39032. -_ACEOF
  39033. +$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
  39034. - { echo "$as_me:$LINENO: result: yes" >&5
  39035. -echo "${ECHO_T}yes" >&6; }
  39036. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39037. +$as_echo "yes" >&6; }
  39038. else
  39039. - { echo "$as_me:$LINENO: result: no" >&5
  39040. -echo "${ECHO_T}no" >&6; }
  39041. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39042. +$as_echo "no" >&6; }
  39043. fi
  39044. rm -f conftest*
  39045. fi
  39046. -{ echo "$as_me:$LINENO: checking for WIN32" >&5
  39047. -echo $ECHO_N "checking for WIN32... $ECHO_C" >&6; }
  39048. -cat >conftest.$ac_ext <<_ACEOF
  39049. -/* confdefs.h. */
  39050. -_ACEOF
  39051. -cat confdefs.h >>conftest.$ac_ext
  39052. -cat >>conftest.$ac_ext <<_ACEOF
  39053. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
  39054. +$as_echo_n "checking for WIN32... " >&6; }
  39055. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39056. /* end confdefs.h. */
  39057. int
  39058. @@ -20492,55 +10879,16 @@
  39059. return 0;
  39060. }
  39061. _ACEOF
  39062. -rm -f conftest.$ac_objext
  39063. -if { (ac_try="$ac_compile"
  39064. -case "(($ac_try" in
  39065. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39066. - *) ac_try_echo=$ac_try;;
  39067. -esac
  39068. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39069. - (eval "$ac_compile") 2>conftest.er1
  39070. - ac_status=$?
  39071. - grep -v '^ *+' conftest.er1 >conftest.err
  39072. - rm -f conftest.er1
  39073. - cat conftest.err >&5
  39074. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39075. - (exit $ac_status); } &&
  39076. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39077. - { (case "(($ac_try" in
  39078. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39079. - *) ac_try_echo=$ac_try;;
  39080. -esac
  39081. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39082. - (eval "$ac_try") 2>&5
  39083. - ac_status=$?
  39084. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39085. - (exit $ac_status); }; } &&
  39086. - { ac_try='test -s conftest.$ac_objext'
  39087. - { (case "(($ac_try" in
  39088. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39089. - *) ac_try_echo=$ac_try;;
  39090. -esac
  39091. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39092. - (eval "$ac_try") 2>&5
  39093. - ac_status=$?
  39094. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39095. - (exit $ac_status); }; }; then
  39096. - bwin32=true; { echo "$as_me:$LINENO: result: yes" >&5
  39097. -echo "${ECHO_T}yes" >&6; }
  39098. +if ac_fn_c_try_compile "$LINENO"; then :
  39099. + bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39100. +$as_echo "yes" >&6; }
  39101. else
  39102. - echo "$as_me: failed program was:" >&5
  39103. -sed 's/^/| /' conftest.$ac_ext >&5
  39104. -
  39105. - bwin32=false; { echo "$as_me:$LINENO: result: no" >&5
  39106. -echo "${ECHO_T}no" >&6; }
  39107. + bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39108. +$as_echo "no" >&6; }
  39109. fi
  39110. -
  39111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39112. -
  39113. -
  39114. -if test x$bwin32 = xtrue; then
  39115. + if test x$bwin32 = xtrue; then
  39116. BUILD_WIN32_TRUE=
  39117. BUILD_WIN32_FALSE='#'
  39118. else
  39119. @@ -20549,16 +10897,12 @@
  39120. fi
  39121. -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  39122. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  39123. -if test "${ac_cv_c_const+set}" = set; then
  39124. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39125. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  39126. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  39127. +if test "${ac_cv_c_const+set}" = set; then :
  39128. + $as_echo_n "(cached) " >&6
  39129. else
  39130. - cat >conftest.$ac_ext <<_ACEOF
  39131. -/* confdefs.h. */
  39132. -_ACEOF
  39133. -cat confdefs.h >>conftest.$ac_ext
  39134. -cat >>conftest.$ac_ext <<_ACEOF
  39135. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39136. /* end confdefs.h. */
  39137. int
  39138. @@ -20568,10 +10912,10 @@
  39139. #ifndef __cplusplus
  39140. /* Ultrix mips cc rejects this. */
  39141. typedef int charset[2];
  39142. - const charset x;
  39143. + const charset cs;
  39144. /* SunOS 4.1.1 cc rejects this. */
  39145. - char const *const *ccp;
  39146. - char **p;
  39147. + char const *const *pcpcc;
  39148. + char **ppc;
  39149. /* NEC SVR4.0.2 mips cc rejects this. */
  39150. struct point {int x, y;};
  39151. static struct point const zero = {0,0};
  39152. @@ -20580,11 +10924,11 @@
  39153. an arm of an if-expression whose if-part is not a constant
  39154. expression */
  39155. const char *g = "string";
  39156. - ccp = &g + (g ? g-g : 0);
  39157. + pcpcc = &g + (g ? g-g : 0);
  39158. /* HPUX 7.0 cc rejects these. */
  39159. - ++ccp;
  39160. - p = (char**) ccp;
  39161. - ccp = (char const *const *) p;
  39162. + ++pcpcc;
  39163. + ppc = (char**) pcpcc;
  39164. + pcpcc = (char const *const *) ppc;
  39165. { /* SCO 3.2v4 cc rejects this. */
  39166. char *t;
  39167. char const *s = 0 ? (char *) 0 : (char const *) 0;
  39168. @@ -20611,79 +10955,36 @@
  39169. const int foo = 10;
  39170. if (!foo) return 0;
  39171. }
  39172. - return !x[0] && !zero.x;
  39173. + return !cs[0] && !zero.x;
  39174. #endif
  39175. ;
  39176. return 0;
  39177. }
  39178. _ACEOF
  39179. -rm -f conftest.$ac_objext
  39180. -if { (ac_try="$ac_compile"
  39181. -case "(($ac_try" in
  39182. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39183. - *) ac_try_echo=$ac_try;;
  39184. -esac
  39185. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39186. - (eval "$ac_compile") 2>conftest.er1
  39187. - ac_status=$?
  39188. - grep -v '^ *+' conftest.er1 >conftest.err
  39189. - rm -f conftest.er1
  39190. - cat conftest.err >&5
  39191. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39192. - (exit $ac_status); } &&
  39193. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39194. - { (case "(($ac_try" in
  39195. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39196. - *) ac_try_echo=$ac_try;;
  39197. -esac
  39198. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39199. - (eval "$ac_try") 2>&5
  39200. - ac_status=$?
  39201. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39202. - (exit $ac_status); }; } &&
  39203. - { ac_try='test -s conftest.$ac_objext'
  39204. - { (case "(($ac_try" in
  39205. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39206. - *) ac_try_echo=$ac_try;;
  39207. -esac
  39208. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39209. - (eval "$ac_try") 2>&5
  39210. - ac_status=$?
  39211. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39212. - (exit $ac_status); }; }; then
  39213. +if ac_fn_c_try_compile "$LINENO"; then :
  39214. ac_cv_c_const=yes
  39215. else
  39216. - echo "$as_me: failed program was:" >&5
  39217. -sed 's/^/| /' conftest.$ac_ext >&5
  39218. -
  39219. - ac_cv_c_const=no
  39220. + ac_cv_c_const=no
  39221. fi
  39222. -
  39223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39224. fi
  39225. -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  39226. -echo "${ECHO_T}$ac_cv_c_const" >&6; }
  39227. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  39228. +$as_echo "$ac_cv_c_const" >&6; }
  39229. if test $ac_cv_c_const = no; then
  39230. -cat >>confdefs.h <<\_ACEOF
  39231. -#define const
  39232. -_ACEOF
  39233. +$as_echo "#define const /**/" >>confdefs.h
  39234. fi
  39235. -{ echo "$as_me:$LINENO: checking for inline" >&5
  39236. -echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  39237. -if test "${ac_cv_c_inline+set}" = set; then
  39238. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39239. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  39240. +$as_echo_n "checking for inline... " >&6; }
  39241. +if test "${ac_cv_c_inline+set}" = set; then :
  39242. + $as_echo_n "(cached) " >&6
  39243. else
  39244. ac_cv_c_inline=no
  39245. for ac_kw in inline __inline__ __inline; do
  39246. - cat >conftest.$ac_ext <<_ACEOF
  39247. -/* confdefs.h. */
  39248. -_ACEOF
  39249. -cat confdefs.h >>conftest.$ac_ext
  39250. -cat >>conftest.$ac_ext <<_ACEOF
  39251. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39252. /* end confdefs.h. */
  39253. #ifndef __cplusplus
  39254. typedef int foo_t;
  39255. @@ -20692,56 +10993,16 @@
  39256. #endif
  39257. _ACEOF
  39258. -rm -f conftest.$ac_objext
  39259. -if { (ac_try="$ac_compile"
  39260. -case "(($ac_try" in
  39261. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39262. - *) ac_try_echo=$ac_try;;
  39263. -esac
  39264. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39265. - (eval "$ac_compile") 2>conftest.er1
  39266. - ac_status=$?
  39267. - grep -v '^ *+' conftest.er1 >conftest.err
  39268. - rm -f conftest.er1
  39269. - cat conftest.err >&5
  39270. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39271. - (exit $ac_status); } &&
  39272. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39273. - { (case "(($ac_try" in
  39274. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39275. - *) ac_try_echo=$ac_try;;
  39276. -esac
  39277. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39278. - (eval "$ac_try") 2>&5
  39279. - ac_status=$?
  39280. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39281. - (exit $ac_status); }; } &&
  39282. - { ac_try='test -s conftest.$ac_objext'
  39283. - { (case "(($ac_try" in
  39284. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39285. - *) ac_try_echo=$ac_try;;
  39286. -esac
  39287. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39288. - (eval "$ac_try") 2>&5
  39289. - ac_status=$?
  39290. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39291. - (exit $ac_status); }; }; then
  39292. +if ac_fn_c_try_compile "$LINENO"; then :
  39293. ac_cv_c_inline=$ac_kw
  39294. -else
  39295. - echo "$as_me: failed program was:" >&5
  39296. -sed 's/^/| /' conftest.$ac_ext >&5
  39297. -
  39298. -
  39299. fi
  39300. -
  39301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39302. test "$ac_cv_c_inline" != no && break
  39303. done
  39304. fi
  39305. -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  39306. -echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  39307. -
  39308. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  39309. +$as_echo "$ac_cv_c_inline" >&6; }
  39310. case $ac_cv_c_inline in
  39311. inline | yes) ;;
  39312. @@ -20758,16 +11019,12 @@
  39313. ;;
  39314. esac
  39315. -{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  39316. -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  39317. -if test "${ac_cv_header_time+set}" = set; then
  39318. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39319. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  39320. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  39321. +if test "${ac_cv_header_time+set}" = set; then :
  39322. + $as_echo_n "(cached) " >&6
  39323. else
  39324. - cat >conftest.$ac_ext <<_ACEOF
  39325. -/* confdefs.h. */
  39326. -_ACEOF
  39327. -cat confdefs.h >>conftest.$ac_ext
  39328. -cat >>conftest.$ac_ext <<_ACEOF
  39329. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39330. /* end confdefs.h. */
  39331. #include <sys/types.h>
  39332. #include <sys/time.h>
  39333. @@ -20782,3443 +11039,2913 @@
  39334. return 0;
  39335. }
  39336. _ACEOF
  39337. -rm -f conftest.$ac_objext
  39338. -if { (ac_try="$ac_compile"
  39339. -case "(($ac_try" in
  39340. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39341. - *) ac_try_echo=$ac_try;;
  39342. -esac
  39343. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39344. - (eval "$ac_compile") 2>conftest.er1
  39345. - ac_status=$?
  39346. - grep -v '^ *+' conftest.er1 >conftest.err
  39347. - rm -f conftest.er1
  39348. - cat conftest.err >&5
  39349. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39350. - (exit $ac_status); } &&
  39351. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39352. - { (case "(($ac_try" in
  39353. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39354. - *) ac_try_echo=$ac_try;;
  39355. -esac
  39356. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39357. - (eval "$ac_try") 2>&5
  39358. - ac_status=$?
  39359. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39360. - (exit $ac_status); }; } &&
  39361. - { ac_try='test -s conftest.$ac_objext'
  39362. - { (case "(($ac_try" in
  39363. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39364. - *) ac_try_echo=$ac_try;;
  39365. -esac
  39366. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39367. - (eval "$ac_try") 2>&5
  39368. - ac_status=$?
  39369. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39370. - (exit $ac_status); }; }; then
  39371. +if ac_fn_c_try_compile "$LINENO"; then :
  39372. ac_cv_header_time=yes
  39373. else
  39374. - echo "$as_me: failed program was:" >&5
  39375. -sed 's/^/| /' conftest.$ac_ext >&5
  39376. -
  39377. - ac_cv_header_time=no
  39378. + ac_cv_header_time=no
  39379. fi
  39380. -
  39381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39382. fi
  39383. -{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  39384. -echo "${ECHO_T}$ac_cv_header_time" >&6; }
  39385. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  39386. +$as_echo "$ac_cv_header_time" >&6; }
  39387. if test $ac_cv_header_time = yes; then
  39388. -cat >>confdefs.h <<\_ACEOF
  39389. -#define TIME_WITH_SYS_TIME 1
  39390. -_ACEOF
  39391. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  39392. fi
  39393. +for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getaddrinfo getnameinfo strlcpy inet_ntop
  39394. +do :
  39395. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  39396. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  39397. +eval as_val=\$$as_ac_var
  39398. + if test "x$as_val" = x""yes; then :
  39399. + cat >>confdefs.h <<_ACEOF
  39400. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  39401. +_ACEOF
  39402. +fi
  39403. +done
  39404. +if test "x$ac_cv_func_clock_gettime" = "xyes"; then
  39405. +$as_echo "#define DNS_USE_CPU_CLOCK_FOR_ID 1" >>confdefs.h
  39406. +else
  39407. +$as_echo "#define DNS_USE_GETTIMEOFDAY_FOR_ID 1" >>confdefs.h
  39408. +fi
  39409. -
  39410. -
  39411. -for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getaddrinfo getnameinfo strlcpy inet_ntop
  39412. -do
  39413. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  39414. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  39415. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  39416. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  39417. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39418. -else
  39419. - cat >conftest.$ac_ext <<_ACEOF
  39420. -/* confdefs.h. */
  39421. -_ACEOF
  39422. -cat confdefs.h >>conftest.$ac_ext
  39423. -cat >>conftest.$ac_ext <<_ACEOF
  39424. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
  39425. +$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
  39426. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39427. /* end confdefs.h. */
  39428. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  39429. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  39430. -#define $ac_func innocuous_$ac_func
  39431. -
  39432. -/* System header to define __stub macros and hopefully few prototypes,
  39433. - which can conflict with char $ac_func (); below.
  39434. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39435. - <limits.h> exists even on freestanding compilers. */
  39436. -#ifdef __STDC__
  39437. -# include <limits.h>
  39438. -#else
  39439. -# include <assert.h>
  39440. +#define _GNU_SOURCE
  39441. +#include <fcntl.h>
  39442. +#ifdef F_SETFD
  39443. +yes
  39444. #endif
  39445. -#undef $ac_func
  39446. +_ACEOF
  39447. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  39448. + $EGREP "yes" >/dev/null 2>&1; then :
  39449. -/* Override any GCC internal prototype to avoid an error.
  39450. - Use char because int might match the return type of a GCC
  39451. - builtin and then its argument prototype would still apply. */
  39452. -#ifdef __cplusplus
  39453. -extern "C"
  39454. -#endif
  39455. -char $ac_func ();
  39456. -/* The GNU C library defines this for functions which it implements
  39457. - to always fail with ENOSYS. Some functions are actually named
  39458. - something starting with __ and the normal name is an alias. */
  39459. -#if defined __stub_$ac_func || defined __stub___$ac_func
  39460. -choke me
  39461. -#endif
  39462. +$as_echo "#define HAVE_SETFD 1" >>confdefs.h
  39463. -int
  39464. -main ()
  39465. -{
  39466. -return $ac_func ();
  39467. - ;
  39468. - return 0;
  39469. -}
  39470. -_ACEOF
  39471. -rm -f conftest.$ac_objext conftest$ac_exeext
  39472. -if { (ac_try="$ac_link"
  39473. -case "(($ac_try" in
  39474. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39475. - *) ac_try_echo=$ac_try;;
  39476. -esac
  39477. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39478. - (eval "$ac_link") 2>conftest.er1
  39479. - ac_status=$?
  39480. - grep -v '^ *+' conftest.er1 >conftest.err
  39481. - rm -f conftest.er1
  39482. - cat conftest.err >&5
  39483. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39484. - (exit $ac_status); } &&
  39485. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39486. - { (case "(($ac_try" in
  39487. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39488. - *) ac_try_echo=$ac_try;;
  39489. -esac
  39490. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39491. - (eval "$ac_try") 2>&5
  39492. - ac_status=$?
  39493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39494. - (exit $ac_status); }; } &&
  39495. - { ac_try='test -s conftest$ac_exeext'
  39496. - { (case "(($ac_try" in
  39497. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39498. - *) ac_try_echo=$ac_try;;
  39499. -esac
  39500. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39501. - (eval "$ac_try") 2>&5
  39502. - ac_status=$?
  39503. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39504. - (exit $ac_status); }; }; then
  39505. - eval "$as_ac_var=yes"
  39506. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39507. +$as_echo "yes" >&6; }
  39508. else
  39509. - echo "$as_me: failed program was:" >&5
  39510. -sed 's/^/| /' conftest.$ac_ext >&5
  39511. -
  39512. - eval "$as_ac_var=no"
  39513. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39514. +$as_echo "no" >&6; }
  39515. fi
  39516. +rm -f conftest*
  39517. -rm -f core conftest.err conftest.$ac_objext \
  39518. - conftest$ac_exeext conftest.$ac_ext
  39519. -fi
  39520. -ac_res=`eval echo '${'$as_ac_var'}'`
  39521. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39522. -echo "${ECHO_T}$ac_res" >&6; }
  39523. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  39524. +
  39525. +needsignal=no
  39526. +haveselect=no
  39527. +for ac_func in select
  39528. +do :
  39529. + ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  39530. +if test "x$ac_cv_func_select" = x""yes; then :
  39531. cat >>confdefs.h <<_ACEOF
  39532. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  39533. +#define HAVE_SELECT 1
  39534. _ACEOF
  39535. -
  39536. + haveselect=yes
  39537. fi
  39538. done
  39539. +if test "x$haveselect" = "xyes" ; then
  39540. + case " $LIBOBJS " in
  39541. + *" select.$ac_objext "* ) ;;
  39542. + *) LIBOBJS="$LIBOBJS select.$ac_objext"
  39543. + ;;
  39544. +esac
  39545. -if test "x$ac_cv_func_clock_gettime" = "xyes"; then
  39546. + needsignal=yes
  39547. +fi
  39548. -cat >>confdefs.h <<\_ACEOF
  39549. -#define DNS_USE_CPU_CLOCK_FOR_ID 1
  39550. +havepoll=no
  39551. +havertsig=no
  39552. +for ac_func in poll
  39553. +do :
  39554. + ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  39555. +if test "x$ac_cv_func_poll" = x""yes; then :
  39556. + cat >>confdefs.h <<_ACEOF
  39557. +#define HAVE_POLL 1
  39558. _ACEOF
  39559. + havepoll=yes
  39560. +fi
  39561. +done
  39562. -else
  39563. +if test "x$havepoll" = "xyes" ; then
  39564. + case " $LIBOBJS " in
  39565. + *" poll.$ac_objext "* ) ;;
  39566. + *) LIBOBJS="$LIBOBJS poll.$ac_objext"
  39567. + ;;
  39568. +esac
  39569. +
  39570. + needsignal=yes
  39571. -cat >>confdefs.h <<\_ACEOF
  39572. -#define DNS_USE_GETTIMEOFDAY_FOR_ID 1
  39573. + if test "x$usertsig" = "xyes" ; then
  39574. + for ac_func in sigtimedwait
  39575. +do :
  39576. + ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
  39577. +if test "x$ac_cv_func_sigtimedwait" = x""yes; then :
  39578. + cat >>confdefs.h <<_ACEOF
  39579. +#define HAVE_SIGTIMEDWAIT 1
  39580. _ACEOF
  39581. -
  39582. + havertsig=yes
  39583. fi
  39584. +done
  39585. -{ echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5
  39586. -echo $ECHO_N "checking for F_SETFD in fcntl.h... $ECHO_C" >&6; }
  39587. -cat >conftest.$ac_ext <<_ACEOF
  39588. -/* confdefs.h. */
  39589. -_ACEOF
  39590. -cat confdefs.h >>conftest.$ac_ext
  39591. -cat >>conftest.$ac_ext <<_ACEOF
  39592. + fi
  39593. +fi
  39594. +if test "x$havertsig" = "xyes" ; then
  39595. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETSIG in fcntl.h" >&5
  39596. +$as_echo_n "checking for F_SETSIG in fcntl.h... " >&6; }
  39597. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39598. /* end confdefs.h. */
  39599. #define _GNU_SOURCE
  39600. #include <fcntl.h>
  39601. -#ifdef F_SETFD
  39602. +#ifdef F_SETSIG
  39603. yes
  39604. #endif
  39605. _ACEOF
  39606. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  39607. - $EGREP "yes" >/dev/null 2>&1; then
  39608. -
  39609. -cat >>confdefs.h <<\_ACEOF
  39610. -#define HAVE_SETFD 1
  39611. -_ACEOF
  39612. -
  39613. - { echo "$as_me:$LINENO: result: yes" >&5
  39614. -echo "${ECHO_T}yes" >&6; }
  39615. + $EGREP "yes" >/dev/null 2>&1; then :
  39616. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39617. +$as_echo "yes" >&6; }
  39618. else
  39619. - { echo "$as_me:$LINENO: result: no" >&5
  39620. -echo "${ECHO_T}no" >&6; }
  39621. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39622. +$as_echo "no" >&6; }; havertsig=no
  39623. fi
  39624. rm -f conftest*
  39625. +fi
  39626. +if test "x$havertsig" = "xyes" ; then
  39627. +
  39628. +$as_echo "#define HAVE_RTSIG 1" >>confdefs.h
  39629. -needsignal=no
  39630. -haveselect=no
  39631. + case " $LIBOBJS " in
  39632. + *" rtsig.$ac_objext "* ) ;;
  39633. + *) LIBOBJS="$LIBOBJS rtsig.$ac_objext"
  39634. + ;;
  39635. +esac
  39636. -for ac_func in select
  39637. -do
  39638. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  39639. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  39640. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  39641. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  39642. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39643. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working rtsig on pipes" >&5
  39644. +$as_echo_n "checking for working rtsig on pipes... " >&6; }
  39645. + if test "$cross_compiling" = yes; then :
  39646. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39647. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39648. +as_fn_error "cannot run test program while cross compiling
  39649. +See \`config.log' for more details." "$LINENO" 5; }
  39650. else
  39651. - cat >conftest.$ac_ext <<_ACEOF
  39652. -/* confdefs.h. */
  39653. -_ACEOF
  39654. -cat confdefs.h >>conftest.$ac_ext
  39655. -cat >>conftest.$ac_ext <<_ACEOF
  39656. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39657. /* end confdefs.h. */
  39658. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  39659. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  39660. -#define $ac_func innocuous_$ac_func
  39661. -
  39662. -/* System header to define __stub macros and hopefully few prototypes,
  39663. - which can conflict with char $ac_func (); below.
  39664. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39665. - <limits.h> exists even on freestanding compilers. */
  39666. -
  39667. -#ifdef __STDC__
  39668. -# include <limits.h>
  39669. -#else
  39670. -# include <assert.h>
  39671. -#endif
  39672. -#undef $ac_func
  39673. +#define _GNU_SOURCE
  39674. +#include <fcntl.h>
  39675. +#include <signal.h>
  39676. +#include <unistd.h>
  39677. -/* Override any GCC internal prototype to avoid an error.
  39678. - Use char because int might match the return type of a GCC
  39679. - builtin and then its argument prototype would still apply. */
  39680. -#ifdef __cplusplus
  39681. -extern "C"
  39682. -#endif
  39683. -char $ac_func ();
  39684. -/* The GNU C library defines this for functions which it implements
  39685. - to always fail with ENOSYS. Some functions are actually named
  39686. - something starting with __ and the normal name is an alias. */
  39687. -#if defined __stub_$ac_func || defined __stub___$ac_func
  39688. -choke me
  39689. -#endif
  39690. +int sigio()
  39691. +{
  39692. + exit(0);
  39693. +}
  39694. -int
  39695. -main ()
  39696. +int main()
  39697. {
  39698. -return $ac_func ();
  39699. - ;
  39700. - return 0;
  39701. + int fd[2];
  39702. +
  39703. + pipe(fd);
  39704. + signal(SIGIO, sigio);
  39705. + fcntl(fd[0], F_SETOWN, getpid());
  39706. + fcntl(fd[0], F_SETSIG, SIGIO);
  39707. + fcntl(fd[0], F_SETFL, fcntl(fd[0], F_GETFL) | O_ASYNC);
  39708. + write(fd[1], "", 1);
  39709. + return 1;
  39710. }
  39711. +
  39712. _ACEOF
  39713. -rm -f conftest.$ac_objext conftest$ac_exeext
  39714. -if { (ac_try="$ac_link"
  39715. -case "(($ac_try" in
  39716. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39717. - *) ac_try_echo=$ac_try;;
  39718. -esac
  39719. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39720. - (eval "$ac_link") 2>conftest.er1
  39721. - ac_status=$?
  39722. - grep -v '^ *+' conftest.er1 >conftest.err
  39723. - rm -f conftest.er1
  39724. - cat conftest.err >&5
  39725. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39726. - (exit $ac_status); } &&
  39727. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39728. - { (case "(($ac_try" in
  39729. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39730. - *) ac_try_echo=$ac_try;;
  39731. -esac
  39732. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39733. - (eval "$ac_try") 2>&5
  39734. - ac_status=$?
  39735. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39736. - (exit $ac_status); }; } &&
  39737. - { ac_try='test -s conftest$ac_exeext'
  39738. - { (case "(($ac_try" in
  39739. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39740. - *) ac_try_echo=$ac_try;;
  39741. -esac
  39742. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39743. - (eval "$ac_try") 2>&5
  39744. - ac_status=$?
  39745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39746. - (exit $ac_status); }; }; then
  39747. - eval "$as_ac_var=yes"
  39748. -else
  39749. - echo "$as_me: failed program was:" >&5
  39750. -sed 's/^/| /' conftest.$ac_ext >&5
  39751. +if ac_fn_c_try_run "$LINENO"; then :
  39752. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39753. +$as_echo "yes" >&6; }
  39754. +
  39755. +$as_echo "#define HAVE_WORKING_RTSIG 1" >>confdefs.h
  39756. - eval "$as_ac_var=no"
  39757. +else
  39758. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39759. +$as_echo "no" >&6; }
  39760. +fi
  39761. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39762. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39763. fi
  39764. -rm -f core conftest.err conftest.$ac_objext \
  39765. - conftest$ac_exeext conftest.$ac_ext
  39766. fi
  39767. -ac_res=`eval echo '${'$as_ac_var'}'`
  39768. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39769. -echo "${ECHO_T}$ac_res" >&6; }
  39770. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  39771. +
  39772. +haveepoll=no
  39773. +for ac_func in epoll_ctl
  39774. +do :
  39775. + ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
  39776. +if test "x$ac_cv_func_epoll_ctl" = x""yes; then :
  39777. cat >>confdefs.h <<_ACEOF
  39778. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  39779. +#define HAVE_EPOLL_CTL 1
  39780. _ACEOF
  39781. - haveselect=yes
  39782. + haveepoll=yes
  39783. fi
  39784. done
  39785. -if test "x$haveselect" = "xyes" ; then
  39786. +if test "x$haveepoll" = "xyes" ; then
  39787. +
  39788. +$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  39789. +
  39790. case " $LIBOBJS " in
  39791. - *" select.$ac_objext "* ) ;;
  39792. - *) LIBOBJS="$LIBOBJS select.$ac_objext"
  39793. + *" epoll.$ac_objext "* ) ;;
  39794. + *) LIBOBJS="$LIBOBJS epoll.$ac_objext"
  39795. ;;
  39796. esac
  39797. needsignal=yes
  39798. fi
  39799. -havepoll=no
  39800. -havertsig=no
  39801. +havedevpoll=no
  39802. +if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
  39803. -for ac_func in poll
  39804. -do
  39805. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  39806. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  39807. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  39808. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  39809. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39810. -else
  39811. - cat >conftest.$ac_ext <<_ACEOF
  39812. -/* confdefs.h. */
  39813. -_ACEOF
  39814. -cat confdefs.h >>conftest.$ac_ext
  39815. -cat >>conftest.$ac_ext <<_ACEOF
  39816. -/* end confdefs.h. */
  39817. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  39818. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  39819. -#define $ac_func innocuous_$ac_func
  39820. +$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
  39821. -/* System header to define __stub macros and hopefully few prototypes,
  39822. - which can conflict with char $ac_func (); below.
  39823. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39824. - <limits.h> exists even on freestanding compilers. */
  39825. + case " $LIBOBJS " in
  39826. + *" devpoll.$ac_objext "* ) ;;
  39827. + *) LIBOBJS="$LIBOBJS devpoll.$ac_objext"
  39828. + ;;
  39829. +esac
  39830. -#ifdef __STDC__
  39831. -# include <limits.h>
  39832. -#else
  39833. -# include <assert.h>
  39834. -#endif
  39835. +fi
  39836. -#undef $ac_func
  39837. +havekqueue=no
  39838. +if test "x$ac_cv_header_sys_event_h" = "xyes"; then
  39839. + for ac_func in kqueue
  39840. +do :
  39841. + ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  39842. +if test "x$ac_cv_func_kqueue" = x""yes; then :
  39843. + cat >>confdefs.h <<_ACEOF
  39844. +#define HAVE_KQUEUE 1
  39845. +_ACEOF
  39846. + havekqueue=yes
  39847. +fi
  39848. +done
  39849. -/* Override any GCC internal prototype to avoid an error.
  39850. - Use char because int might match the return type of a GCC
  39851. - builtin and then its argument prototype would still apply. */
  39852. -#ifdef __cplusplus
  39853. -extern "C"
  39854. -#endif
  39855. -char $ac_func ();
  39856. -/* The GNU C library defines this for functions which it implements
  39857. - to always fail with ENOSYS. Some functions are actually named
  39858. - something starting with __ and the normal name is an alias. */
  39859. -#if defined __stub_$ac_func || defined __stub___$ac_func
  39860. -choke me
  39861. -#endif
  39862. + if test "x$havekqueue" = "xyes" ; then
  39863. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
  39864. +$as_echo_n "checking for working kqueue... " >&6; }
  39865. + if test "$cross_compiling" = yes; then :
  39866. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39867. +$as_echo "no" >&6; }
  39868. +else
  39869. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39870. +/* end confdefs.h. */
  39871. +#include <sys/types.h>
  39872. +#include <sys/time.h>
  39873. +#include <sys/event.h>
  39874. +#include <stdio.h>
  39875. +#include <unistd.h>
  39876. +#include <fcntl.h>
  39877. int
  39878. -main ()
  39879. +main(int argc, char **argv)
  39880. {
  39881. -return $ac_func ();
  39882. - ;
  39883. - return 0;
  39884. -}
  39885. -_ACEOF
  39886. -rm -f conftest.$ac_objext conftest$ac_exeext
  39887. -if { (ac_try="$ac_link"
  39888. -case "(($ac_try" in
  39889. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39890. - *) ac_try_echo=$ac_try;;
  39891. -esac
  39892. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39893. - (eval "$ac_link") 2>conftest.er1
  39894. - ac_status=$?
  39895. - grep -v '^ *+' conftest.er1 >conftest.err
  39896. - rm -f conftest.er1
  39897. - cat conftest.err >&5
  39898. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39899. - (exit $ac_status); } &&
  39900. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39901. - { (case "(($ac_try" in
  39902. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39903. - *) ac_try_echo=$ac_try;;
  39904. -esac
  39905. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39906. - (eval "$ac_try") 2>&5
  39907. - ac_status=$?
  39908. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39909. - (exit $ac_status); }; } &&
  39910. - { ac_try='test -s conftest$ac_exeext'
  39911. - { (case "(($ac_try" in
  39912. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39913. - *) ac_try_echo=$ac_try;;
  39914. -esac
  39915. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39916. - (eval "$ac_try") 2>&5
  39917. - ac_status=$?
  39918. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39919. - (exit $ac_status); }; }; then
  39920. - eval "$as_ac_var=yes"
  39921. -else
  39922. - echo "$as_me: failed program was:" >&5
  39923. -sed 's/^/| /' conftest.$ac_ext >&5
  39924. + int kq;
  39925. + int n;
  39926. + int fd[2];
  39927. + struct kevent ev;
  39928. + struct timespec ts;
  39929. + char buf[8000];
  39930. - eval "$as_ac_var=no"
  39931. -fi
  39932. + if (pipe(fd) == -1)
  39933. + exit(1);
  39934. + if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
  39935. + exit(1);
  39936. -rm -f core conftest.err conftest.$ac_objext \
  39937. - conftest$ac_exeext conftest.$ac_ext
  39938. -fi
  39939. -ac_res=`eval echo '${'$as_ac_var'}'`
  39940. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39941. -echo "${ECHO_T}$ac_res" >&6; }
  39942. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  39943. - cat >>confdefs.h <<_ACEOF
  39944. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  39945. + while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
  39946. + ;
  39947. +
  39948. + if ((kq = kqueue()) == -1)
  39949. + exit(1);
  39950. +
  39951. + ev.ident = fd[1];
  39952. + ev.filter = EVFILT_WRITE;
  39953. + ev.flags = EV_ADD | EV_ENABLE;
  39954. + n = kevent(kq, &ev, 1, NULL, 0, NULL);
  39955. + if (n == -1)
  39956. + exit(1);
  39957. +
  39958. + read(fd[0], buf, sizeof(buf));
  39959. +
  39960. + ts.tv_sec = 0;
  39961. + ts.tv_nsec = 0;
  39962. + n = kevent(kq, NULL, 0, &ev, 1, &ts);
  39963. + if (n == -1 || n == 0)
  39964. + exit(1);
  39965. +
  39966. + exit(0);
  39967. +}
  39968. _ACEOF
  39969. - havepoll=yes
  39970. -fi
  39971. -done
  39972. +if ac_fn_c_try_run "$LINENO"; then :
  39973. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39974. +$as_echo "yes" >&6; }
  39975. -if test "x$havepoll" = "xyes" ; then
  39976. - case " $LIBOBJS " in
  39977. - *" poll.$ac_objext "* ) ;;
  39978. - *) LIBOBJS="$LIBOBJS poll.$ac_objext"
  39979. +$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
  39980. +
  39981. + case " $LIBOBJS " in
  39982. + *" kqueue.$ac_objext "* ) ;;
  39983. + *) LIBOBJS="$LIBOBJS kqueue.$ac_objext"
  39984. ;;
  39985. esac
  39986. - needsignal=yes
  39987. +else
  39988. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39989. +$as_echo "no" >&6; }
  39990. +fi
  39991. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39992. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39993. +fi
  39994. - if test "x$usertsig" = "xyes" ; then
  39995. + fi
  39996. +fi
  39997. -for ac_func in sigtimedwait
  39998. -do
  39999. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40000. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  40001. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  40002. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  40003. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40004. +haveepollsyscall=no
  40005. +if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
  40006. + if test "x$haveepoll" = "xno" ; then
  40007. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
  40008. +$as_echo_n "checking for epoll system call... " >&6; }
  40009. + if test "$cross_compiling" = yes; then :
  40010. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40011. +$as_echo "no" >&6; }
  40012. else
  40013. - cat >conftest.$ac_ext <<_ACEOF
  40014. -/* confdefs.h. */
  40015. -_ACEOF
  40016. -cat confdefs.h >>conftest.$ac_ext
  40017. -cat >>conftest.$ac_ext <<_ACEOF
  40018. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40019. /* end confdefs.h. */
  40020. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  40021. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40022. -#define $ac_func innocuous_$ac_func
  40023. -
  40024. -/* System header to define __stub macros and hopefully few prototypes,
  40025. - which can conflict with char $ac_func (); below.
  40026. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40027. - <limits.h> exists even on freestanding compilers. */
  40028. -
  40029. -#ifdef __STDC__
  40030. -# include <limits.h>
  40031. -#else
  40032. -# include <assert.h>
  40033. -#endif
  40034. -
  40035. -#undef $ac_func
  40036. +#include <stdint.h>
  40037. +#include <sys/param.h>
  40038. +#include <sys/types.h>
  40039. +#include <sys/syscall.h>
  40040. +#include <sys/epoll.h>
  40041. +#include <unistd.h>
  40042. -/* Override any GCC internal prototype to avoid an error.
  40043. - Use char because int might match the return type of a GCC
  40044. - builtin and then its argument prototype would still apply. */
  40045. -#ifdef __cplusplus
  40046. -extern "C"
  40047. -#endif
  40048. -char $ac_func ();
  40049. -/* The GNU C library defines this for functions which it implements
  40050. - to always fail with ENOSYS. Some functions are actually named
  40051. - something starting with __ and the normal name is an alias. */
  40052. -#if defined __stub_$ac_func || defined __stub___$ac_func
  40053. -choke me
  40054. -#endif
  40055. +int
  40056. +epoll_create(int size)
  40057. +{
  40058. + return (syscall(__NR_epoll_create, size));
  40059. +}
  40060. int
  40061. -main ()
  40062. +main(int argc, char **argv)
  40063. {
  40064. -return $ac_func ();
  40065. - ;
  40066. - return 0;
  40067. + int epfd;
  40068. +
  40069. + epfd = epoll_create(256);
  40070. + exit (epfd == -1 ? 1 : 0);
  40071. }
  40072. _ACEOF
  40073. -rm -f conftest.$ac_objext conftest$ac_exeext
  40074. -if { (ac_try="$ac_link"
  40075. -case "(($ac_try" in
  40076. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40077. - *) ac_try_echo=$ac_try;;
  40078. -esac
  40079. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40080. - (eval "$ac_link") 2>conftest.er1
  40081. - ac_status=$?
  40082. - grep -v '^ *+' conftest.er1 >conftest.err
  40083. - rm -f conftest.er1
  40084. - cat conftest.err >&5
  40085. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40086. - (exit $ac_status); } &&
  40087. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40088. - { (case "(($ac_try" in
  40089. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40090. - *) ac_try_echo=$ac_try;;
  40091. +if ac_fn_c_try_run "$LINENO"; then :
  40092. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  40093. +$as_echo "yes" >&6; }
  40094. +
  40095. +$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  40096. +
  40097. + needsignal=yes
  40098. + case " $LIBOBJS " in
  40099. + *" epoll_sub.$ac_objext "* ) ;;
  40100. + *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
  40101. + ;;
  40102. esac
  40103. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40104. - (eval "$ac_try") 2>&5
  40105. - ac_status=$?
  40106. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40107. - (exit $ac_status); }; } &&
  40108. - { ac_try='test -s conftest$ac_exeext'
  40109. - { (case "(($ac_try" in
  40110. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40111. - *) ac_try_echo=$ac_try;;
  40112. +
  40113. + case " $LIBOBJS " in
  40114. + *" epoll.$ac_objext "* ) ;;
  40115. + *) LIBOBJS="$LIBOBJS epoll.$ac_objext"
  40116. + ;;
  40117. esac
  40118. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40119. - (eval "$ac_try") 2>&5
  40120. - ac_status=$?
  40121. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40122. - (exit $ac_status); }; }; then
  40123. - eval "$as_ac_var=yes"
  40124. -else
  40125. - echo "$as_me: failed program was:" >&5
  40126. -sed 's/^/| /' conftest.$ac_ext >&5
  40127. - eval "$as_ac_var=no"
  40128. +else
  40129. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40130. +$as_echo "no" >&6; }
  40131. +fi
  40132. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  40133. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  40134. fi
  40135. -rm -f core conftest.err conftest.$ac_objext \
  40136. - conftest$ac_exeext conftest.$ac_ext
  40137. + fi
  40138. fi
  40139. -ac_res=`eval echo '${'$as_ac_var'}'`
  40140. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  40141. -echo "${ECHO_T}$ac_res" >&6; }
  40142. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  40143. +
  40144. +haveeventports=no
  40145. +for ac_func in port_create
  40146. +do :
  40147. + ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
  40148. +if test "x$ac_cv_func_port_create" = x""yes; then :
  40149. cat >>confdefs.h <<_ACEOF
  40150. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40151. +#define HAVE_PORT_CREATE 1
  40152. _ACEOF
  40153. - havertsig=yes
  40154. + haveeventports=yes
  40155. fi
  40156. done
  40157. - fi
  40158. -fi
  40159. -if test "x$havertsig" = "xyes" ; then
  40160. - { echo "$as_me:$LINENO: checking for F_SETSIG in fcntl.h" >&5
  40161. -echo $ECHO_N "checking for F_SETSIG in fcntl.h... $ECHO_C" >&6; }
  40162. - cat >conftest.$ac_ext <<_ACEOF
  40163. -/* confdefs.h. */
  40164. -_ACEOF
  40165. -cat confdefs.h >>conftest.$ac_ext
  40166. -cat >>conftest.$ac_ext <<_ACEOF
  40167. -/* end confdefs.h. */
  40168. +if test "x$haveeventports" = "xyes" ; then
  40169. -#define _GNU_SOURCE
  40170. -#include <fcntl.h>
  40171. -#ifdef F_SETSIG
  40172. -yes
  40173. -#endif
  40174. +$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
  40175. -_ACEOF
  40176. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  40177. - $EGREP "yes" >/dev/null 2>&1; then
  40178. - { echo "$as_me:$LINENO: result: yes" >&5
  40179. -echo "${ECHO_T}yes" >&6; }
  40180. -else
  40181. - { echo "$as_me:$LINENO: result: no" >&5
  40182. -echo "${ECHO_T}no" >&6; }; havertsig=no
  40183. -fi
  40184. -rm -f conftest*
  40185. + case " $LIBOBJS " in
  40186. + *" evport.$ac_objext "* ) ;;
  40187. + *) LIBOBJS="$LIBOBJS evport.$ac_objext"
  40188. + ;;
  40189. +esac
  40190. + needsignal=yes
  40191. fi
  40192. -if test "x$havertsig" = "xyes" ; then
  40193. -
  40194. -cat >>confdefs.h <<\_ACEOF
  40195. -#define HAVE_RTSIG 1
  40196. -_ACEOF
  40197. -
  40198. +if test "x$needsignal" = "xyes" ; then
  40199. case " $LIBOBJS " in
  40200. - *" rtsig.$ac_objext "* ) ;;
  40201. - *) LIBOBJS="$LIBOBJS rtsig.$ac_objext"
  40202. + *" signal.$ac_objext "* ) ;;
  40203. + *) LIBOBJS="$LIBOBJS signal.$ac_objext"
  40204. ;;
  40205. esac
  40206. - { echo "$as_me:$LINENO: checking for working rtsig on pipes" >&5
  40207. -echo $ECHO_N "checking for working rtsig on pipes... $ECHO_C" >&6; }
  40208. - if test "$cross_compiling" = yes; then
  40209. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  40210. -See \`config.log' for more details." >&5
  40211. -echo "$as_me: error: cannot run test program while cross compiling
  40212. -See \`config.log' for more details." >&2;}
  40213. - { (exit 1); exit 1; }; }
  40214. +fi
  40215. +
  40216. +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  40217. +if test "x$ac_cv_type_pid_t" = x""yes; then :
  40218. +
  40219. else
  40220. - cat >conftest.$ac_ext <<_ACEOF
  40221. -/* confdefs.h. */
  40222. -_ACEOF
  40223. -cat confdefs.h >>conftest.$ac_ext
  40224. -cat >>conftest.$ac_ext <<_ACEOF
  40225. -/* end confdefs.h. */
  40226. -#define _GNU_SOURCE
  40227. -#include <fcntl.h>
  40228. -#include <signal.h>
  40229. -#include <unistd.h>
  40230. +cat >>confdefs.h <<_ACEOF
  40231. +#define pid_t int
  40232. +_ACEOF
  40233. -int sigio()
  40234. -{
  40235. - exit(0);
  40236. -}
  40237. +fi
  40238. -int main()
  40239. -{
  40240. - int fd[2];
  40241. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  40242. +if test "x$ac_cv_type_size_t" = x""yes; then :
  40243. - pipe(fd);
  40244. - signal(SIGIO, sigio);
  40245. - fcntl(fd[0], F_SETOWN, getpid());
  40246. - fcntl(fd[0], F_SETSIG, SIGIO);
  40247. - fcntl(fd[0], F_SETFL, fcntl(fd[0], F_GETFL) | O_ASYNC);
  40248. - write(fd[1], "", 1);
  40249. - return 1;
  40250. -}
  40251. +else
  40252. +cat >>confdefs.h <<_ACEOF
  40253. +#define size_t unsigned int
  40254. _ACEOF
  40255. -rm -f conftest$ac_exeext
  40256. -if { (ac_try="$ac_link"
  40257. -case "(($ac_try" in
  40258. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40259. - *) ac_try_echo=$ac_try;;
  40260. -esac
  40261. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40262. - (eval "$ac_link") 2>&5
  40263. - ac_status=$?
  40264. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40265. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  40266. - { (case "(($ac_try" in
  40267. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40268. - *) ac_try_echo=$ac_try;;
  40269. -esac
  40270. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40271. - (eval "$ac_try") 2>&5
  40272. - ac_status=$?
  40273. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40274. - (exit $ac_status); }; }; then
  40275. - { echo "$as_me:$LINENO: result: yes" >&5
  40276. -echo "${ECHO_T}yes" >&6; }
  40277. -cat >>confdefs.h <<\_ACEOF
  40278. -#define HAVE_WORKING_RTSIG 1
  40279. -_ACEOF
  40280. +fi
  40281. -else
  40282. - echo "$as_me: program exited with status $ac_status" >&5
  40283. -echo "$as_me: failed program was:" >&5
  40284. -sed 's/^/| /' conftest.$ac_ext >&5
  40285. +ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  40286. +if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  40287. -( exit $ac_status )
  40288. -{ echo "$as_me:$LINENO: result: no" >&5
  40289. -echo "${ECHO_T}no" >&6; }
  40290. -fi
  40291. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  40292. -fi
  40293. +else
  40294. +cat >>confdefs.h <<_ACEOF
  40295. +#define u_int64_t unsigned long long
  40296. +_ACEOF
  40297. fi
  40298. -haveepoll=no
  40299. +ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  40300. +if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  40301. -for ac_func in epoll_ctl
  40302. -do
  40303. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40304. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  40305. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  40306. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  40307. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40308. else
  40309. - cat >conftest.$ac_ext <<_ACEOF
  40310. -/* confdefs.h. */
  40311. -_ACEOF
  40312. -cat confdefs.h >>conftest.$ac_ext
  40313. -cat >>conftest.$ac_ext <<_ACEOF
  40314. -/* end confdefs.h. */
  40315. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  40316. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40317. -#define $ac_func innocuous_$ac_func
  40318. -/* System header to define __stub macros and hopefully few prototypes,
  40319. - which can conflict with char $ac_func (); below.
  40320. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40321. - <limits.h> exists even on freestanding compilers. */
  40322. +cat >>confdefs.h <<_ACEOF
  40323. +#define u_int32_t unsigned int
  40324. +_ACEOF
  40325. -#ifdef __STDC__
  40326. -# include <limits.h>
  40327. -#else
  40328. -# include <assert.h>
  40329. -#endif
  40330. +fi
  40331. -#undef $ac_func
  40332. +ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  40333. +if test "x$ac_cv_type_u_int16_t" = x""yes; then :
  40334. -/* Override any GCC internal prototype to avoid an error.
  40335. - Use char because int might match the return type of a GCC
  40336. - builtin and then its argument prototype would still apply. */
  40337. -#ifdef __cplusplus
  40338. -extern "C"
  40339. -#endif
  40340. -char $ac_func ();
  40341. -/* The GNU C library defines this for functions which it implements
  40342. - to always fail with ENOSYS. Some functions are actually named
  40343. - something starting with __ and the normal name is an alias. */
  40344. -#if defined __stub_$ac_func || defined __stub___$ac_func
  40345. -choke me
  40346. -#endif
  40347. +else
  40348. -int
  40349. -main ()
  40350. -{
  40351. -return $ac_func ();
  40352. - ;
  40353. - return 0;
  40354. -}
  40355. +cat >>confdefs.h <<_ACEOF
  40356. +#define u_int16_t unsigned short
  40357. _ACEOF
  40358. -rm -f conftest.$ac_objext conftest$ac_exeext
  40359. -if { (ac_try="$ac_link"
  40360. -case "(($ac_try" in
  40361. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40362. - *) ac_try_echo=$ac_try;;
  40363. -esac
  40364. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40365. - (eval "$ac_link") 2>conftest.er1
  40366. - ac_status=$?
  40367. - grep -v '^ *+' conftest.er1 >conftest.err
  40368. - rm -f conftest.er1
  40369. - cat conftest.err >&5
  40370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40371. - (exit $ac_status); } &&
  40372. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40373. - { (case "(($ac_try" in
  40374. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40375. - *) ac_try_echo=$ac_try;;
  40376. -esac
  40377. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40378. - (eval "$ac_try") 2>&5
  40379. - ac_status=$?
  40380. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40381. - (exit $ac_status); }; } &&
  40382. - { ac_try='test -s conftest$ac_exeext'
  40383. - { (case "(($ac_try" in
  40384. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40385. - *) ac_try_echo=$ac_try;;
  40386. -esac
  40387. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40388. - (eval "$ac_try") 2>&5
  40389. - ac_status=$?
  40390. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40391. - (exit $ac_status); }; }; then
  40392. - eval "$as_ac_var=yes"
  40393. -else
  40394. - echo "$as_me: failed program was:" >&5
  40395. -sed 's/^/| /' conftest.$ac_ext >&5
  40396. - eval "$as_ac_var=no"
  40397. fi
  40398. -rm -f core conftest.err conftest.$ac_objext \
  40399. - conftest$ac_exeext conftest.$ac_ext
  40400. -fi
  40401. -ac_res=`eval echo '${'$as_ac_var'}'`
  40402. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  40403. -echo "${ECHO_T}$ac_res" >&6; }
  40404. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  40405. - cat >>confdefs.h <<_ACEOF
  40406. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40407. -_ACEOF
  40408. - haveepoll=yes
  40409. -fi
  40410. -done
  40411. +ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  40412. +if test "x$ac_cv_type_u_int8_t" = x""yes; then :
  40413. -if test "x$haveepoll" = "xyes" ; then
  40414. +else
  40415. -cat >>confdefs.h <<\_ACEOF
  40416. -#define HAVE_EPOLL 1
  40417. +cat >>confdefs.h <<_ACEOF
  40418. +#define u_int8_t unsigned char
  40419. _ACEOF
  40420. - case " $LIBOBJS " in
  40421. - *" epoll.$ac_objext "* ) ;;
  40422. - *) LIBOBJS="$LIBOBJS epoll.$ac_objext"
  40423. - ;;
  40424. -esac
  40425. -
  40426. - needsignal=yes
  40427. fi
  40428. -havedevpoll=no
  40429. -if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
  40430. +ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#ifdef WIN32
  40431. +#include <winsock2.h>
  40432. +#else
  40433. +#include <sys/types.h>
  40434. +#include <netinet/in.h>
  40435. +#include <sys/socket.h>
  40436. +#endif
  40437. +#ifdef HAVE_NETINET_IN6_H
  40438. +#include <netinet/in6.h>
  40439. +#endif
  40440. +"
  40441. +if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
  40442. -cat >>confdefs.h <<\_ACEOF
  40443. -#define HAVE_DEVPOLL 1
  40444. +cat >>confdefs.h <<_ACEOF
  40445. +#define HAVE_STRUCT_IN6_ADDR 1
  40446. _ACEOF
  40447. - case " $LIBOBJS " in
  40448. - *" devpoll.$ac_objext "* ) ;;
  40449. - *) LIBOBJS="$LIBOBJS devpoll.$ac_objext"
  40450. - ;;
  40451. -esac
  40452. fi
  40453. -havekqueue=no
  40454. -if test "x$ac_cv_header_sys_event_h" = "xyes"; then
  40455. -for ac_func in kqueue
  40456. -do
  40457. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40458. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  40459. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  40460. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  40461. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40462. -else
  40463. - cat >conftest.$ac_ext <<_ACEOF
  40464. -/* confdefs.h. */
  40465. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  40466. +$as_echo_n "checking for socklen_t... " >&6; }
  40467. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40468. +/* end confdefs.h. */
  40469. +
  40470. + #include <sys/types.h>
  40471. + #include <sys/socket.h>
  40472. +int
  40473. +main ()
  40474. +{
  40475. +socklen_t x;
  40476. + ;
  40477. + return 0;
  40478. +}
  40479. _ACEOF
  40480. -cat confdefs.h >>conftest.$ac_ext
  40481. -cat >>conftest.$ac_ext <<_ACEOF
  40482. -/* end confdefs.h. */
  40483. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  40484. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40485. -#define $ac_func innocuous_$ac_func
  40486. +if ac_fn_c_try_compile "$LINENO"; then :
  40487. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  40488. +$as_echo "yes" >&6; }
  40489. +else
  40490. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40491. +$as_echo "no" >&6; }
  40492. -/* System header to define __stub macros and hopefully few prototypes,
  40493. - which can conflict with char $ac_func (); below.
  40494. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40495. - <limits.h> exists even on freestanding compilers. */
  40496. +$as_echo "#define socklen_t unsigned int" >>confdefs.h
  40497. -#ifdef __STDC__
  40498. -# include <limits.h>
  40499. -#else
  40500. -# include <assert.h>
  40501. -#endif
  40502. -#undef $ac_func
  40503. +fi
  40504. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40505. -/* Override any GCC internal prototype to avoid an error.
  40506. - Use char because int might match the return type of a GCC
  40507. - builtin and then its argument prototype would still apply. */
  40508. -#ifdef __cplusplus
  40509. -extern "C"
  40510. -#endif
  40511. -char $ac_func ();
  40512. -/* The GNU C library defines this for functions which it implements
  40513. - to always fail with ENOSYS. Some functions are actually named
  40514. - something starting with __ and the normal name is an alias. */
  40515. -#if defined __stub_$ac_func || defined __stub___$ac_func
  40516. -choke me
  40517. -#endif
  40518. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
  40519. +$as_echo_n "checking whether our compiler supports __func__... " >&6; }
  40520. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40521. +/* end confdefs.h. */
  40522. int
  40523. main ()
  40524. {
  40525. -return $ac_func ();
  40526. +void foo() { const char *cp = __func__; }
  40527. ;
  40528. return 0;
  40529. }
  40530. _ACEOF
  40531. -rm -f conftest.$ac_objext conftest$ac_exeext
  40532. -if { (ac_try="$ac_link"
  40533. -case "(($ac_try" in
  40534. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40535. - *) ac_try_echo=$ac_try;;
  40536. -esac
  40537. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40538. - (eval "$ac_link") 2>conftest.er1
  40539. - ac_status=$?
  40540. - grep -v '^ *+' conftest.er1 >conftest.err
  40541. - rm -f conftest.er1
  40542. - cat conftest.err >&5
  40543. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40544. - (exit $ac_status); } &&
  40545. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40546. - { (case "(($ac_try" in
  40547. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40548. - *) ac_try_echo=$ac_try;;
  40549. -esac
  40550. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40551. - (eval "$ac_try") 2>&5
  40552. - ac_status=$?
  40553. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40554. - (exit $ac_status); }; } &&
  40555. - { ac_try='test -s conftest$ac_exeext'
  40556. - { (case "(($ac_try" in
  40557. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40558. - *) ac_try_echo=$ac_try;;
  40559. -esac
  40560. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40561. - (eval "$ac_try") 2>&5
  40562. - ac_status=$?
  40563. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40564. - (exit $ac_status); }; }; then
  40565. - eval "$as_ac_var=yes"
  40566. +if ac_fn_c_try_compile "$LINENO"; then :
  40567. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  40568. +$as_echo "yes" >&6; }
  40569. +else
  40570. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40571. +$as_echo "no" >&6; }
  40572. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
  40573. +$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
  40574. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40575. +/* end confdefs.h. */
  40576. +
  40577. +int
  40578. +main ()
  40579. +{
  40580. +void foo() { const char *cp = __FUNCTION__; }
  40581. + ;
  40582. + return 0;
  40583. +}
  40584. +_ACEOF
  40585. +if ac_fn_c_try_compile "$LINENO"; then :
  40586. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  40587. +$as_echo "yes" >&6; }
  40588. +
  40589. +$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
  40590. +
  40591. else
  40592. - echo "$as_me: failed program was:" >&5
  40593. -sed 's/^/| /' conftest.$ac_ext >&5
  40594. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  40595. +$as_echo "no" >&6; }
  40596. - eval "$as_ac_var=no"
  40597. -fi
  40598. +$as_echo "#define __func__ __FILE__" >>confdefs.h
  40599. -rm -f core conftest.err conftest.$ac_objext \
  40600. - conftest$ac_exeext conftest.$ac_ext
  40601. fi
  40602. -ac_res=`eval echo '${'$as_ac_var'}'`
  40603. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  40604. -echo "${ECHO_T}$ac_res" >&6; }
  40605. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  40606. - cat >>confdefs.h <<_ACEOF
  40607. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40608. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40609. +fi
  40610. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40611. +
  40612. +
  40613. +ac_config_files="$ac_config_files Makefile test/Makefile sample/Makefile"
  40614. +
  40615. +cat >confcache <<\_ACEOF
  40616. +# This file is a shell script that caches the results of configure
  40617. +# tests run on this system so they can be shared between configure
  40618. +# scripts and configure runs, see configure's option --config-cache.
  40619. +# It is not useful on other systems. If it contains results you don't
  40620. +# want to keep, you may remove or edit it.
  40621. +#
  40622. +# config.status only pays attention to the cache file if you give it
  40623. +# the --recheck option to rerun configure.
  40624. +#
  40625. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  40626. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  40627. +# following values.
  40628. +
  40629. _ACEOF
  40630. - havekqueue=yes
  40631. +
  40632. +# The following way of writing the cache mishandles newlines in values,
  40633. +# but we know of no workaround that is simple, portable, and efficient.
  40634. +# So, we kill variables containing newlines.
  40635. +# Ultrix sh set writes to stderr and can't be redirected directly,
  40636. +# and sets the high bit in the cache file unless we assign to the vars.
  40637. +(
  40638. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  40639. + eval ac_val=\$$ac_var
  40640. + case $ac_val in #(
  40641. + *${as_nl}*)
  40642. + case $ac_var in #(
  40643. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  40644. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  40645. + esac
  40646. + case $ac_var in #(
  40647. + _ | IFS | as_nl) ;; #(
  40648. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  40649. + *) { eval $ac_var=; unset $ac_var;} ;;
  40650. + esac ;;
  40651. + esac
  40652. + done
  40653. +
  40654. + (set) 2>&1 |
  40655. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  40656. + *${as_nl}ac_space=\ *)
  40657. + # `set' does not quote correctly, so add quotes: double-quote
  40658. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  40659. + sed -n \
  40660. + "s/'/'\\\\''/g;
  40661. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  40662. + ;; #(
  40663. + *)
  40664. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  40665. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  40666. + ;;
  40667. + esac |
  40668. + sort
  40669. +) |
  40670. + sed '
  40671. + /^ac_cv_env_/b end
  40672. + t clear
  40673. + :clear
  40674. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  40675. + t end
  40676. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  40677. + :end' >>confcache
  40678. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  40679. + if test -w "$cache_file"; then
  40680. + test "x$cache_file" != "x/dev/null" &&
  40681. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  40682. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  40683. + cat confcache >$cache_file
  40684. + else
  40685. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  40686. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  40687. + fi
  40688. fi
  40689. +rm -f confcache
  40690. +
  40691. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  40692. +# Let make expand exec_prefix.
  40693. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  40694. +
  40695. +DEFS=-DHAVE_CONFIG_H
  40696. +
  40697. +ac_libobjs=
  40698. +ac_ltlibobjs=
  40699. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  40700. + # 1. Remove the extension, and $U if already installed.
  40701. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  40702. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  40703. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  40704. + # will be set to the directory where LIBOBJS objects are built.
  40705. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  40706. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  40707. done
  40708. +LIBOBJS=$ac_libobjs
  40709. - if test "x$havekqueue" = "xyes" ; then
  40710. - { echo "$as_me:$LINENO: checking for working kqueue" >&5
  40711. -echo $ECHO_N "checking for working kqueue... $ECHO_C" >&6; }
  40712. - if test "$cross_compiling" = yes; then
  40713. - { echo "$as_me:$LINENO: result: no" >&5
  40714. -echo "${ECHO_T}no" >&6; }
  40715. +LTLIBOBJS=$ac_ltlibobjs
  40716. +
  40717. +
  40718. + if test -n "$EXEEXT"; then
  40719. + am__EXEEXT_TRUE=
  40720. + am__EXEEXT_FALSE='#'
  40721. else
  40722. - cat >conftest.$ac_ext <<_ACEOF
  40723. -/* confdefs.h. */
  40724. -_ACEOF
  40725. -cat confdefs.h >>conftest.$ac_ext
  40726. -cat >>conftest.$ac_ext <<_ACEOF
  40727. -/* end confdefs.h. */
  40728. -#include <sys/types.h>
  40729. -#include <sys/time.h>
  40730. -#include <sys/event.h>
  40731. -#include <stdio.h>
  40732. -#include <unistd.h>
  40733. -#include <fcntl.h>
  40734. + am__EXEEXT_TRUE='#'
  40735. + am__EXEEXT_FALSE=
  40736. +fi
  40737. -int
  40738. -main(int argc, char **argv)
  40739. -{
  40740. - int kq;
  40741. - int n;
  40742. - int fd[2];
  40743. - struct kevent ev;
  40744. - struct timespec ts;
  40745. - char buf[8000];
  40746. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  40747. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  40748. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40749. +fi
  40750. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  40751. + as_fn_error "conditional \"AMDEP\" was never defined.
  40752. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40753. +fi
  40754. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  40755. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  40756. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40757. +fi
  40758. +if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
  40759. + as_fn_error "conditional \"BUILD_WIN32\" was never defined.
  40760. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  40761. +fi
  40762. - if (pipe(fd) == -1)
  40763. - exit(1);
  40764. - if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
  40765. - exit(1);
  40766. +: ${CONFIG_STATUS=./config.status}
  40767. +ac_write_fail=0
  40768. +ac_clean_files_save=$ac_clean_files
  40769. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  40770. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  40771. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  40772. +as_write_fail=0
  40773. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  40774. +#! $SHELL
  40775. +# Generated by $as_me.
  40776. +# Run this file to recreate the current configuration.
  40777. +# Compiler output produced by configure, useful for debugging
  40778. +# configure, is in config.log if it exists.
  40779. - while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
  40780. - ;
  40781. +debug=false
  40782. +ac_cs_recheck=false
  40783. +ac_cs_silent=false
  40784. - if ((kq = kqueue()) == -1)
  40785. - exit(1);
  40786. +SHELL=\${CONFIG_SHELL-$SHELL}
  40787. +export SHELL
  40788. +_ASEOF
  40789. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  40790. +## -------------------- ##
  40791. +## M4sh Initialization. ##
  40792. +## -------------------- ##
  40793. - ev.ident = fd[1];
  40794. - ev.filter = EVFILT_WRITE;
  40795. - ev.flags = EV_ADD | EV_ENABLE;
  40796. - n = kevent(kq, &ev, 1, NULL, 0, NULL);
  40797. - if (n == -1)
  40798. - exit(1);
  40799. +# Be more Bourne compatible
  40800. +DUALCASE=1; export DUALCASE # for MKS sh
  40801. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  40802. + emulate sh
  40803. + NULLCMD=:
  40804. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  40805. + # is contrary to our usage. Disable this feature.
  40806. + alias -g '${1+"$@"}'='"$@"'
  40807. + setopt NO_GLOB_SUBST
  40808. +else
  40809. + case `(set -o) 2>/dev/null` in #(
  40810. + *posix*) :
  40811. + set -o posix ;; #(
  40812. + *) :
  40813. + ;;
  40814. +esac
  40815. +fi
  40816. - read(fd[0], buf, sizeof(buf));
  40817. - ts.tv_sec = 0;
  40818. - ts.tv_nsec = 0;
  40819. - n = kevent(kq, NULL, 0, &ev, 1, &ts);
  40820. - if (n == -1 || n == 0)
  40821. - exit(1);
  40822. +as_nl='
  40823. +'
  40824. +export as_nl
  40825. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  40826. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40827. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40828. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40829. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  40830. +# but without wasting forks for bash or zsh.
  40831. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  40832. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  40833. + as_echo='print -r --'
  40834. + as_echo_n='print -rn --'
  40835. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  40836. + as_echo='printf %s\n'
  40837. + as_echo_n='printf %s'
  40838. +else
  40839. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  40840. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  40841. + as_echo_n='/usr/ucb/echo -n'
  40842. + else
  40843. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  40844. + as_echo_n_body='eval
  40845. + arg=$1;
  40846. + case $arg in #(
  40847. + *"$as_nl"*)
  40848. + expr "X$arg" : "X\\(.*\\)$as_nl";
  40849. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  40850. + esac;
  40851. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  40852. + '
  40853. + export as_echo_n_body
  40854. + as_echo_n='sh -c $as_echo_n_body as_echo'
  40855. + fi
  40856. + export as_echo_body
  40857. + as_echo='sh -c $as_echo_body as_echo'
  40858. +fi
  40859. - exit(0);
  40860. -}
  40861. -_ACEOF
  40862. -rm -f conftest$ac_exeext
  40863. -if { (ac_try="$ac_link"
  40864. -case "(($ac_try" in
  40865. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40866. - *) ac_try_echo=$ac_try;;
  40867. -esac
  40868. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40869. - (eval "$ac_link") 2>&5
  40870. - ac_status=$?
  40871. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40872. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  40873. - { (case "(($ac_try" in
  40874. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40875. - *) ac_try_echo=$ac_try;;
  40876. +# The user is always right.
  40877. +if test "${PATH_SEPARATOR+set}" != set; then
  40878. + PATH_SEPARATOR=:
  40879. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  40880. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  40881. + PATH_SEPARATOR=';'
  40882. + }
  40883. +fi
  40884. +
  40885. +
  40886. +# IFS
  40887. +# We need space, tab and new line, in precisely that order. Quoting is
  40888. +# there to prevent editors from complaining about space-tab.
  40889. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  40890. +# splitting by setting IFS to empty value.)
  40891. +IFS=" "" $as_nl"
  40892. +
  40893. +# Find who we are. Look in the path if we contain no directory separator.
  40894. +case $0 in #((
  40895. + *[\\/]* ) as_myself=$0 ;;
  40896. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40897. +for as_dir in $PATH
  40898. +do
  40899. + IFS=$as_save_IFS
  40900. + test -z "$as_dir" && as_dir=.
  40901. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  40902. + done
  40903. +IFS=$as_save_IFS
  40904. +
  40905. + ;;
  40906. esac
  40907. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40908. - (eval "$ac_try") 2>&5
  40909. - ac_status=$?
  40910. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40911. - (exit $ac_status); }; }; then
  40912. - { echo "$as_me:$LINENO: result: yes" >&5
  40913. -echo "${ECHO_T}yes" >&6; }
  40914. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  40915. +# in which case we are not to be found in the path.
  40916. +if test "x$as_myself" = x; then
  40917. + as_myself=$0
  40918. +fi
  40919. +if test ! -f "$as_myself"; then
  40920. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  40921. + exit 1
  40922. +fi
  40923. -cat >>confdefs.h <<\_ACEOF
  40924. -#define HAVE_WORKING_KQUEUE 1
  40925. -_ACEOF
  40926. +# Unset variables that we do not need and which cause bugs (e.g. in
  40927. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  40928. +# suppresses any "Segmentation fault" message there. '((' could
  40929. +# trigger a bug in pdksh 5.2.14.
  40930. +for as_var in BASH_ENV ENV MAIL MAILPATH
  40931. +do eval test x\${$as_var+set} = xset \
  40932. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  40933. +done
  40934. +PS1='$ '
  40935. +PS2='> '
  40936. +PS4='+ '
  40937. +
  40938. +# NLS nuisances.
  40939. +LC_ALL=C
  40940. +export LC_ALL
  40941. +LANGUAGE=C
  40942. +export LANGUAGE
  40943. +
  40944. +# CDPATH.
  40945. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  40946. - case " $LIBOBJS " in
  40947. - *" kqueue.$ac_objext "* ) ;;
  40948. - *) LIBOBJS="$LIBOBJS kqueue.$ac_objext"
  40949. - ;;
  40950. -esac
  40951. +# as_fn_error ERROR [LINENO LOG_FD]
  40952. +# ---------------------------------
  40953. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  40954. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  40955. +# script with status $?, using 1 if that was 0.
  40956. +as_fn_error ()
  40957. +{
  40958. + as_status=$?; test $as_status -eq 0 && as_status=1
  40959. + if test "$3"; then
  40960. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  40961. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  40962. + fi
  40963. + $as_echo "$as_me: error: $1" >&2
  40964. + as_fn_exit $as_status
  40965. +} # as_fn_error
  40966. +
  40967. +
  40968. +# as_fn_set_status STATUS
  40969. +# -----------------------
  40970. +# Set $? to STATUS, without forking.
  40971. +as_fn_set_status ()
  40972. +{
  40973. + return $1
  40974. +} # as_fn_set_status
  40975. +
  40976. +# as_fn_exit STATUS
  40977. +# -----------------
  40978. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  40979. +as_fn_exit ()
  40980. +{
  40981. + set +e
  40982. + as_fn_set_status $1
  40983. + exit $1
  40984. +} # as_fn_exit
  40985. +
  40986. +# as_fn_unset VAR
  40987. +# ---------------
  40988. +# Portably unset VAR.
  40989. +as_fn_unset ()
  40990. +{
  40991. + { eval $1=; unset $1;}
  40992. +}
  40993. +as_unset=as_fn_unset
  40994. +# as_fn_append VAR VALUE
  40995. +# ----------------------
  40996. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  40997. +# advantage of any shell optimizations that allow amortized linear growth over
  40998. +# repeated appends, instead of the typical quadratic growth present in naive
  40999. +# implementations.
  41000. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  41001. + eval 'as_fn_append ()
  41002. + {
  41003. + eval $1+=\$2
  41004. + }'
  41005. else
  41006. - echo "$as_me: program exited with status $ac_status" >&5
  41007. -echo "$as_me: failed program was:" >&5
  41008. -sed 's/^/| /' conftest.$ac_ext >&5
  41009. + as_fn_append ()
  41010. + {
  41011. + eval $1=\$$1\$2
  41012. + }
  41013. +fi # as_fn_append
  41014. -( exit $ac_status )
  41015. -{ echo "$as_me:$LINENO: result: no" >&5
  41016. -echo "${ECHO_T}no" >&6; }
  41017. -fi
  41018. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  41019. -fi
  41020. +# as_fn_arith ARG...
  41021. +# ------------------
  41022. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  41023. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  41024. +# must be portable across $(()) and expr.
  41025. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  41026. + eval 'as_fn_arith ()
  41027. + {
  41028. + as_val=$(( $* ))
  41029. + }'
  41030. +else
  41031. + as_fn_arith ()
  41032. + {
  41033. + as_val=`expr "$@" || test $? -eq 1`
  41034. + }
  41035. +fi # as_fn_arith
  41036. - fi
  41037. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  41038. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  41039. + as_expr=expr
  41040. +else
  41041. + as_expr=false
  41042. fi
  41043. -haveepollsyscall=no
  41044. -if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
  41045. - if test "x$haveepoll" = "xno" ; then
  41046. - { echo "$as_me:$LINENO: checking for epoll system call" >&5
  41047. -echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
  41048. - if test "$cross_compiling" = yes; then
  41049. - { echo "$as_me:$LINENO: result: no" >&5
  41050. -echo "${ECHO_T}no" >&6; }
  41051. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  41052. + as_basename=basename
  41053. else
  41054. - cat >conftest.$ac_ext <<_ACEOF
  41055. -/* confdefs.h. */
  41056. -_ACEOF
  41057. -cat confdefs.h >>conftest.$ac_ext
  41058. -cat >>conftest.$ac_ext <<_ACEOF
  41059. -/* end confdefs.h. */
  41060. -#include <stdint.h>
  41061. -#include <sys/param.h>
  41062. -#include <sys/types.h>
  41063. -#include <sys/syscall.h>
  41064. -#include <sys/epoll.h>
  41065. -#include <unistd.h>
  41066. -
  41067. -int
  41068. -epoll_create(int size)
  41069. -{
  41070. - return (syscall(__NR_epoll_create, size));
  41071. -}
  41072. -
  41073. -int
  41074. -main(int argc, char **argv)
  41075. -{
  41076. - int epfd;
  41077. + as_basename=false
  41078. +fi
  41079. - epfd = epoll_create(256);
  41080. - exit (epfd == -1 ? 1 : 0);
  41081. -}
  41082. -_ACEOF
  41083. -rm -f conftest$ac_exeext
  41084. -if { (ac_try="$ac_link"
  41085. -case "(($ac_try" in
  41086. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41087. - *) ac_try_echo=$ac_try;;
  41088. -esac
  41089. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41090. - (eval "$ac_link") 2>&5
  41091. - ac_status=$?
  41092. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41093. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  41094. - { (case "(($ac_try" in
  41095. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41096. - *) ac_try_echo=$ac_try;;
  41097. -esac
  41098. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41099. - (eval "$ac_try") 2>&5
  41100. - ac_status=$?
  41101. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41102. - (exit $ac_status); }; }; then
  41103. - { echo "$as_me:$LINENO: result: yes" >&5
  41104. -echo "${ECHO_T}yes" >&6; }
  41105. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  41106. + as_dirname=dirname
  41107. +else
  41108. + as_dirname=false
  41109. +fi
  41110. -cat >>confdefs.h <<\_ACEOF
  41111. -#define HAVE_EPOLL 1
  41112. -_ACEOF
  41113. +as_me=`$as_basename -- "$0" ||
  41114. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  41115. + X"$0" : 'X\(//\)$' \| \
  41116. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  41117. +$as_echo X/"$0" |
  41118. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  41119. + s//\1/
  41120. + q
  41121. + }
  41122. + /^X\/\(\/\/\)$/{
  41123. + s//\1/
  41124. + q
  41125. + }
  41126. + /^X\/\(\/\).*/{
  41127. + s//\1/
  41128. + q
  41129. + }
  41130. + s/.*/./; q'`
  41131. - needsignal=yes
  41132. - case " $LIBOBJS " in
  41133. - *" epoll_sub.$ac_objext "* ) ;;
  41134. - *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
  41135. - ;;
  41136. -esac
  41137. +# Avoid depending upon Character Ranges.
  41138. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  41139. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  41140. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  41141. +as_cr_digits='0123456789'
  41142. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  41143. - case " $LIBOBJS " in
  41144. - *" epoll.$ac_objext "* ) ;;
  41145. - *) LIBOBJS="$LIBOBJS epoll.$ac_objext"
  41146. - ;;
  41147. +ECHO_C= ECHO_N= ECHO_T=
  41148. +case `echo -n x` in #(((((
  41149. +-n*)
  41150. + case `echo 'xy\c'` in
  41151. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  41152. + xy) ECHO_C='\c';;
  41153. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  41154. + ECHO_T=' ';;
  41155. + esac;;
  41156. +*)
  41157. + ECHO_N='-n';;
  41158. esac
  41159. +rm -f conf$$ conf$$.exe conf$$.file
  41160. +if test -d conf$$.dir; then
  41161. + rm -f conf$$.dir/conf$$.file
  41162. else
  41163. - echo "$as_me: program exited with status $ac_status" >&5
  41164. -echo "$as_me: failed program was:" >&5
  41165. -sed 's/^/| /' conftest.$ac_ext >&5
  41166. -
  41167. -( exit $ac_status )
  41168. -{ echo "$as_me:$LINENO: result: no" >&5
  41169. -echo "${ECHO_T}no" >&6; }
  41170. + rm -f conf$$.dir
  41171. + mkdir conf$$.dir 2>/dev/null
  41172. fi
  41173. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  41174. +if (echo >conf$$.file) 2>/dev/null; then
  41175. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  41176. + as_ln_s='ln -s'
  41177. + # ... but there are two gotchas:
  41178. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  41179. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  41180. + # In both cases, we have to default to `cp -p'.
  41181. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  41182. + as_ln_s='cp -p'
  41183. + elif ln conf$$.file conf$$ 2>/dev/null; then
  41184. + as_ln_s=ln
  41185. + else
  41186. + as_ln_s='cp -p'
  41187. + fi
  41188. +else
  41189. + as_ln_s='cp -p'
  41190. fi
  41191. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  41192. +rmdir conf$$.dir 2>/dev/null
  41193. - fi
  41194. -fi
  41195. +# as_fn_mkdir_p
  41196. +# -------------
  41197. +# Create "$as_dir" as a directory, including parents if necessary.
  41198. +as_fn_mkdir_p ()
  41199. +{
  41200. -haveeventports=no
  41201. + case $as_dir in #(
  41202. + -*) as_dir=./$as_dir;;
  41203. + esac
  41204. + test -d "$as_dir" || eval $as_mkdir_p || {
  41205. + as_dirs=
  41206. + while :; do
  41207. + case $as_dir in #(
  41208. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  41209. + *) as_qdir=$as_dir;;
  41210. + esac
  41211. + as_dirs="'$as_qdir' $as_dirs"
  41212. + as_dir=`$as_dirname -- "$as_dir" ||
  41213. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  41214. + X"$as_dir" : 'X\(//\)[^/]' \| \
  41215. + X"$as_dir" : 'X\(//\)$' \| \
  41216. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  41217. +$as_echo X"$as_dir" |
  41218. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  41219. + s//\1/
  41220. + q
  41221. + }
  41222. + /^X\(\/\/\)[^/].*/{
  41223. + s//\1/
  41224. + q
  41225. + }
  41226. + /^X\(\/\/\)$/{
  41227. + s//\1/
  41228. + q
  41229. + }
  41230. + /^X\(\/\).*/{
  41231. + s//\1/
  41232. + q
  41233. + }
  41234. + s/.*/./; q'`
  41235. + test -d "$as_dir" && break
  41236. + done
  41237. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  41238. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  41239. -for ac_func in port_create
  41240. -do
  41241. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  41242. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  41243. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  41244. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  41245. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41246. +
  41247. +} # as_fn_mkdir_p
  41248. +if mkdir -p . 2>/dev/null; then
  41249. + as_mkdir_p='mkdir -p "$as_dir"'
  41250. else
  41251. - cat >conftest.$ac_ext <<_ACEOF
  41252. -/* confdefs.h. */
  41253. -_ACEOF
  41254. -cat confdefs.h >>conftest.$ac_ext
  41255. -cat >>conftest.$ac_ext <<_ACEOF
  41256. -/* end confdefs.h. */
  41257. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  41258. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  41259. -#define $ac_func innocuous_$ac_func
  41260. + test -d ./-p && rmdir ./-p
  41261. + as_mkdir_p=false
  41262. +fi
  41263. -/* System header to define __stub macros and hopefully few prototypes,
  41264. - which can conflict with char $ac_func (); below.
  41265. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  41266. - <limits.h> exists even on freestanding compilers. */
  41267. +if test -x / >/dev/null 2>&1; then
  41268. + as_test_x='test -x'
  41269. +else
  41270. + if ls -dL / >/dev/null 2>&1; then
  41271. + as_ls_L_option=L
  41272. + else
  41273. + as_ls_L_option=
  41274. + fi
  41275. + as_test_x='
  41276. + eval sh -c '\''
  41277. + if test -d "$1"; then
  41278. + test -d "$1/.";
  41279. + else
  41280. + case $1 in #(
  41281. + -*)set "./$1";;
  41282. + esac;
  41283. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  41284. + ???[sx]*):;;*)false;;esac;fi
  41285. + '\'' sh
  41286. + '
  41287. +fi
  41288. +as_executable_p=$as_test_x
  41289. -#ifdef __STDC__
  41290. -# include <limits.h>
  41291. -#else
  41292. -# include <assert.h>
  41293. -#endif
  41294. +# Sed expression to map a string onto a valid CPP name.
  41295. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  41296. -#undef $ac_func
  41297. +# Sed expression to map a string onto a valid variable name.
  41298. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  41299. -/* Override any GCC internal prototype to avoid an error.
  41300. - Use char because int might match the return type of a GCC
  41301. - builtin and then its argument prototype would still apply. */
  41302. -#ifdef __cplusplus
  41303. -extern "C"
  41304. -#endif
  41305. -char $ac_func ();
  41306. -/* The GNU C library defines this for functions which it implements
  41307. - to always fail with ENOSYS. Some functions are actually named
  41308. - something starting with __ and the normal name is an alias. */
  41309. -#if defined __stub_$ac_func || defined __stub___$ac_func
  41310. -choke me
  41311. -#endif
  41312. -int
  41313. -main ()
  41314. -{
  41315. -return $ac_func ();
  41316. - ;
  41317. - return 0;
  41318. -}
  41319. -_ACEOF
  41320. -rm -f conftest.$ac_objext conftest$ac_exeext
  41321. -if { (ac_try="$ac_link"
  41322. -case "(($ac_try" in
  41323. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41324. - *) ac_try_echo=$ac_try;;
  41325. -esac
  41326. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41327. - (eval "$ac_link") 2>conftest.er1
  41328. - ac_status=$?
  41329. - grep -v '^ *+' conftest.er1 >conftest.err
  41330. - rm -f conftest.er1
  41331. - cat conftest.err >&5
  41332. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41333. - (exit $ac_status); } &&
  41334. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41335. - { (case "(($ac_try" in
  41336. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41337. - *) ac_try_echo=$ac_try;;
  41338. -esac
  41339. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41340. - (eval "$ac_try") 2>&5
  41341. - ac_status=$?
  41342. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41343. - (exit $ac_status); }; } &&
  41344. - { ac_try='test -s conftest$ac_exeext'
  41345. - { (case "(($ac_try" in
  41346. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41347. - *) ac_try_echo=$ac_try;;
  41348. -esac
  41349. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41350. - (eval "$ac_try") 2>&5
  41351. - ac_status=$?
  41352. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41353. - (exit $ac_status); }; }; then
  41354. - eval "$as_ac_var=yes"
  41355. -else
  41356. - echo "$as_me: failed program was:" >&5
  41357. -sed 's/^/| /' conftest.$ac_ext >&5
  41358. +exec 6>&1
  41359. +## ----------------------------------- ##
  41360. +## Main body of $CONFIG_STATUS script. ##
  41361. +## ----------------------------------- ##
  41362. +_ASEOF
  41363. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  41364. - eval "$as_ac_var=no"
  41365. -fi
  41366. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41367. +# Save the log message, to keep $0 and so on meaningful, and to
  41368. +# report actual input values of CONFIG_FILES etc. instead of their
  41369. +# values after options handling.
  41370. +ac_log="
  41371. +This file was extended by $as_me, which was
  41372. +generated by GNU Autoconf 2.65. Invocation command line was
  41373. -rm -f core conftest.err conftest.$ac_objext \
  41374. - conftest$ac_exeext conftest.$ac_ext
  41375. -fi
  41376. -ac_res=`eval echo '${'$as_ac_var'}'`
  41377. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  41378. -echo "${ECHO_T}$ac_res" >&6; }
  41379. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  41380. - cat >>confdefs.h <<_ACEOF
  41381. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  41382. -_ACEOF
  41383. - haveeventports=yes
  41384. -fi
  41385. -done
  41386. + CONFIG_FILES = $CONFIG_FILES
  41387. + CONFIG_HEADERS = $CONFIG_HEADERS
  41388. + CONFIG_LINKS = $CONFIG_LINKS
  41389. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  41390. + $ $0 $@
  41391. -if test "x$haveeventports" = "xyes" ; then
  41392. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  41393. +"
  41394. -cat >>confdefs.h <<\_ACEOF
  41395. -#define HAVE_EVENT_PORTS 1
  41396. _ACEOF
  41397. - case " $LIBOBJS " in
  41398. - *" evport.$ac_objext "* ) ;;
  41399. - *) LIBOBJS="$LIBOBJS evport.$ac_objext"
  41400. - ;;
  41401. +case $ac_config_files in *"
  41402. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  41403. esac
  41404. - needsignal=yes
  41405. -fi
  41406. -if test "x$needsignal" = "xyes" ; then
  41407. - case " $LIBOBJS " in
  41408. - *" signal.$ac_objext "* ) ;;
  41409. - *) LIBOBJS="$LIBOBJS signal.$ac_objext"
  41410. - ;;
  41411. +case $ac_config_headers in *"
  41412. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  41413. esac
  41414. -fi
  41415. -{ echo "$as_me:$LINENO: checking for pid_t" >&5
  41416. -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  41417. -if test "${ac_cv_type_pid_t+set}" = set; then
  41418. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41419. -else
  41420. - cat >conftest.$ac_ext <<_ACEOF
  41421. -/* confdefs.h. */
  41422. -_ACEOF
  41423. -cat confdefs.h >>conftest.$ac_ext
  41424. -cat >>conftest.$ac_ext <<_ACEOF
  41425. -/* end confdefs.h. */
  41426. -$ac_includes_default
  41427. -typedef pid_t ac__type_new_;
  41428. -int
  41429. -main ()
  41430. -{
  41431. -if ((ac__type_new_ *) 0)
  41432. - return 0;
  41433. -if (sizeof (ac__type_new_))
  41434. - return 0;
  41435. - ;
  41436. - return 0;
  41437. -}
  41438. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41439. +# Files that config.status was made for.
  41440. +config_files="$ac_config_files"
  41441. +config_headers="$ac_config_headers"
  41442. +config_commands="$ac_config_commands"
  41443. +
  41444. _ACEOF
  41445. -rm -f conftest.$ac_objext
  41446. -if { (ac_try="$ac_compile"
  41447. -case "(($ac_try" in
  41448. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41449. - *) ac_try_echo=$ac_try;;
  41450. -esac
  41451. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41452. - (eval "$ac_compile") 2>conftest.er1
  41453. - ac_status=$?
  41454. - grep -v '^ *+' conftest.er1 >conftest.err
  41455. - rm -f conftest.er1
  41456. - cat conftest.err >&5
  41457. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41458. - (exit $ac_status); } &&
  41459. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41460. - { (case "(($ac_try" in
  41461. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41462. - *) ac_try_echo=$ac_try;;
  41463. -esac
  41464. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41465. - (eval "$ac_try") 2>&5
  41466. - ac_status=$?
  41467. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41468. - (exit $ac_status); }; } &&
  41469. - { ac_try='test -s conftest.$ac_objext'
  41470. - { (case "(($ac_try" in
  41471. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41472. - *) ac_try_echo=$ac_try;;
  41473. -esac
  41474. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41475. - (eval "$ac_try") 2>&5
  41476. - ac_status=$?
  41477. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41478. - (exit $ac_status); }; }; then
  41479. - ac_cv_type_pid_t=yes
  41480. -else
  41481. - echo "$as_me: failed program was:" >&5
  41482. -sed 's/^/| /' conftest.$ac_ext >&5
  41483. - ac_cv_type_pid_t=no
  41484. -fi
  41485. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41486. +ac_cs_usage="\
  41487. +\`$as_me' instantiates files and other configuration actions
  41488. +from templates according to the current configuration. Unless the files
  41489. +and actions are specified as TAGs, all are instantiated by default.
  41490. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41491. -fi
  41492. -{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  41493. -echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  41494. -if test $ac_cv_type_pid_t = yes; then
  41495. - :
  41496. -else
  41497. +Usage: $0 [OPTION]... [TAG]...
  41498. -cat >>confdefs.h <<_ACEOF
  41499. -#define pid_t int
  41500. -_ACEOF
  41501. + -h, --help print this help, then exit
  41502. + -V, --version print version number and configuration settings, then exit
  41503. + --config print configuration, then exit
  41504. + -q, --quiet, --silent
  41505. + do not print progress messages
  41506. + -d, --debug don't remove temporary files
  41507. + --recheck update $as_me by reconfiguring in the same conditions
  41508. + --file=FILE[:TEMPLATE]
  41509. + instantiate the configuration file FILE
  41510. + --header=FILE[:TEMPLATE]
  41511. + instantiate the configuration header FILE
  41512. -fi
  41513. +Configuration files:
  41514. +$config_files
  41515. -{ echo "$as_me:$LINENO: checking for size_t" >&5
  41516. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  41517. -if test "${ac_cv_type_size_t+set}" = set; then
  41518. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41519. -else
  41520. - cat >conftest.$ac_ext <<_ACEOF
  41521. -/* confdefs.h. */
  41522. -_ACEOF
  41523. -cat confdefs.h >>conftest.$ac_ext
  41524. -cat >>conftest.$ac_ext <<_ACEOF
  41525. -/* end confdefs.h. */
  41526. -$ac_includes_default
  41527. -typedef size_t ac__type_new_;
  41528. -int
  41529. -main ()
  41530. -{
  41531. -if ((ac__type_new_ *) 0)
  41532. - return 0;
  41533. -if (sizeof (ac__type_new_))
  41534. - return 0;
  41535. - ;
  41536. - return 0;
  41537. -}
  41538. -_ACEOF
  41539. -rm -f conftest.$ac_objext
  41540. -if { (ac_try="$ac_compile"
  41541. -case "(($ac_try" in
  41542. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41543. - *) ac_try_echo=$ac_try;;
  41544. -esac
  41545. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41546. - (eval "$ac_compile") 2>conftest.er1
  41547. - ac_status=$?
  41548. - grep -v '^ *+' conftest.er1 >conftest.err
  41549. - rm -f conftest.er1
  41550. - cat conftest.err >&5
  41551. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41552. - (exit $ac_status); } &&
  41553. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41554. - { (case "(($ac_try" in
  41555. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41556. - *) ac_try_echo=$ac_try;;
  41557. -esac
  41558. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41559. - (eval "$ac_try") 2>&5
  41560. - ac_status=$?
  41561. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41562. - (exit $ac_status); }; } &&
  41563. - { ac_try='test -s conftest.$ac_objext'
  41564. - { (case "(($ac_try" in
  41565. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41566. - *) ac_try_echo=$ac_try;;
  41567. -esac
  41568. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41569. - (eval "$ac_try") 2>&5
  41570. - ac_status=$?
  41571. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41572. - (exit $ac_status); }; }; then
  41573. - ac_cv_type_size_t=yes
  41574. -else
  41575. - echo "$as_me: failed program was:" >&5
  41576. -sed 's/^/| /' conftest.$ac_ext >&5
  41577. +Configuration headers:
  41578. +$config_headers
  41579. - ac_cv_type_size_t=no
  41580. -fi
  41581. +Configuration commands:
  41582. +$config_commands
  41583. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41584. -fi
  41585. -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  41586. -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  41587. -if test $ac_cv_type_size_t = yes; then
  41588. - :
  41589. -else
  41590. +Report bugs to the package provider."
  41591. -cat >>confdefs.h <<_ACEOF
  41592. -#define size_t unsigned int
  41593. _ACEOF
  41594. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41595. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  41596. +ac_cs_version="\\
  41597. +config.status
  41598. +configured by $0, generated by GNU Autoconf 2.65,
  41599. + with options \\"\$ac_cs_config\\"
  41600. -fi
  41601. +Copyright (C) 2009 Free Software Foundation, Inc.
  41602. +This config.status script is free software; the Free Software Foundation
  41603. +gives unlimited permission to copy, distribute and modify it."
  41604. -{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
  41605. -echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  41606. -if test "${ac_cv_type_u_int64_t+set}" = set; then
  41607. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41608. -else
  41609. - cat >conftest.$ac_ext <<_ACEOF
  41610. -/* confdefs.h. */
  41611. -_ACEOF
  41612. -cat confdefs.h >>conftest.$ac_ext
  41613. -cat >>conftest.$ac_ext <<_ACEOF
  41614. -/* end confdefs.h. */
  41615. -$ac_includes_default
  41616. -typedef u_int64_t ac__type_new_;
  41617. -int
  41618. -main ()
  41619. -{
  41620. -if ((ac__type_new_ *) 0)
  41621. - return 0;
  41622. -if (sizeof (ac__type_new_))
  41623. - return 0;
  41624. - ;
  41625. - return 0;
  41626. -}
  41627. +ac_pwd='$ac_pwd'
  41628. +srcdir='$srcdir'
  41629. +INSTALL='$INSTALL'
  41630. +MKDIR_P='$MKDIR_P'
  41631. +AWK='$AWK'
  41632. +test -n "\$AWK" || AWK=awk
  41633. _ACEOF
  41634. -rm -f conftest.$ac_objext
  41635. -if { (ac_try="$ac_compile"
  41636. -case "(($ac_try" in
  41637. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41638. - *) ac_try_echo=$ac_try;;
  41639. -esac
  41640. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41641. - (eval "$ac_compile") 2>conftest.er1
  41642. - ac_status=$?
  41643. - grep -v '^ *+' conftest.er1 >conftest.err
  41644. - rm -f conftest.er1
  41645. - cat conftest.err >&5
  41646. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41647. - (exit $ac_status); } &&
  41648. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41649. - { (case "(($ac_try" in
  41650. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41651. - *) ac_try_echo=$ac_try;;
  41652. -esac
  41653. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41654. - (eval "$ac_try") 2>&5
  41655. - ac_status=$?
  41656. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41657. - (exit $ac_status); }; } &&
  41658. - { ac_try='test -s conftest.$ac_objext'
  41659. - { (case "(($ac_try" in
  41660. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41661. - *) ac_try_echo=$ac_try;;
  41662. -esac
  41663. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41664. - (eval "$ac_try") 2>&5
  41665. - ac_status=$?
  41666. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41667. - (exit $ac_status); }; }; then
  41668. - ac_cv_type_u_int64_t=yes
  41669. -else
  41670. - echo "$as_me: failed program was:" >&5
  41671. -sed 's/^/| /' conftest.$ac_ext >&5
  41672. - ac_cv_type_u_int64_t=no
  41673. -fi
  41674. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41675. +# The default lists apply if the user does not specify any file.
  41676. +ac_need_defaults=:
  41677. +while test $# != 0
  41678. +do
  41679. + case $1 in
  41680. + --*=*)
  41681. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  41682. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  41683. + ac_shift=:
  41684. + ;;
  41685. + *)
  41686. + ac_option=$1
  41687. + ac_optarg=$2
  41688. + ac_shift=shift
  41689. + ;;
  41690. + esac
  41691. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41692. + case $ac_option in
  41693. + # Handling of the options.
  41694. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  41695. + ac_cs_recheck=: ;;
  41696. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  41697. + $as_echo "$ac_cs_version"; exit ;;
  41698. + --config | --confi | --conf | --con | --co | --c )
  41699. + $as_echo "$ac_cs_config"; exit ;;
  41700. + --debug | --debu | --deb | --de | --d | -d )
  41701. + debug=: ;;
  41702. + --file | --fil | --fi | --f )
  41703. + $ac_shift
  41704. + case $ac_optarg in
  41705. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  41706. + esac
  41707. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  41708. + ac_need_defaults=false;;
  41709. + --header | --heade | --head | --hea )
  41710. + $ac_shift
  41711. + case $ac_optarg in
  41712. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  41713. + esac
  41714. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  41715. + ac_need_defaults=false;;
  41716. + --he | --h)
  41717. + # Conflict between --help and --header
  41718. + as_fn_error "ambiguous option: \`$1'
  41719. +Try \`$0 --help' for more information.";;
  41720. + --help | --hel | -h )
  41721. + $as_echo "$ac_cs_usage"; exit ;;
  41722. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  41723. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  41724. + ac_cs_silent=: ;;
  41725. +
  41726. + # This is an error.
  41727. + -*) as_fn_error "unrecognized option: \`$1'
  41728. +Try \`$0 --help' for more information." ;;
  41729. +
  41730. + *) as_fn_append ac_config_targets " $1"
  41731. + ac_need_defaults=false ;;
  41732. +
  41733. + esac
  41734. + shift
  41735. +done
  41736. +
  41737. +ac_configure_extra_args=
  41738. +
  41739. +if $ac_cs_silent; then
  41740. + exec 6>/dev/null
  41741. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  41742. fi
  41743. -{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  41744. -echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  41745. -if test $ac_cv_type_u_int64_t = yes; then
  41746. - :
  41747. -else
  41748. -cat >>confdefs.h <<_ACEOF
  41749. -#define u_int64_t unsigned long long
  41750. _ACEOF
  41751. -
  41752. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41753. +if \$ac_cs_recheck; then
  41754. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  41755. + shift
  41756. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  41757. + CONFIG_SHELL='$SHELL'
  41758. + export CONFIG_SHELL
  41759. + exec "\$@"
  41760. fi
  41761. -{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
  41762. -echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  41763. -if test "${ac_cv_type_u_int32_t+set}" = set; then
  41764. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41765. -else
  41766. - cat >conftest.$ac_ext <<_ACEOF
  41767. -/* confdefs.h. */
  41768. _ACEOF
  41769. -cat confdefs.h >>conftest.$ac_ext
  41770. -cat >>conftest.$ac_ext <<_ACEOF
  41771. -/* end confdefs.h. */
  41772. -$ac_includes_default
  41773. -typedef u_int32_t ac__type_new_;
  41774. -int
  41775. -main ()
  41776. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41777. +exec 5>>config.log
  41778. {
  41779. -if ((ac__type_new_ *) 0)
  41780. - return 0;
  41781. -if (sizeof (ac__type_new_))
  41782. - return 0;
  41783. - ;
  41784. - return 0;
  41785. -}
  41786. + echo
  41787. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  41788. +## Running $as_me. ##
  41789. +_ASBOX
  41790. + $as_echo "$ac_log"
  41791. +} >&5
  41792. +
  41793. _ACEOF
  41794. -rm -f conftest.$ac_objext
  41795. -if { (ac_try="$ac_compile"
  41796. -case "(($ac_try" in
  41797. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41798. - *) ac_try_echo=$ac_try;;
  41799. -esac
  41800. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41801. - (eval "$ac_compile") 2>conftest.er1
  41802. - ac_status=$?
  41803. - grep -v '^ *+' conftest.er1 >conftest.err
  41804. - rm -f conftest.er1
  41805. - cat conftest.err >&5
  41806. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41807. - (exit $ac_status); } &&
  41808. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41809. - { (case "(($ac_try" in
  41810. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41811. - *) ac_try_echo=$ac_try;;
  41812. -esac
  41813. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41814. - (eval "$ac_try") 2>&5
  41815. - ac_status=$?
  41816. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41817. - (exit $ac_status); }; } &&
  41818. - { ac_try='test -s conftest.$ac_objext'
  41819. - { (case "(($ac_try" in
  41820. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41821. - *) ac_try_echo=$ac_try;;
  41822. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41823. +#
  41824. +# INIT-COMMANDS
  41825. +#
  41826. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  41827. +
  41828. +
  41829. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  41830. +# if CDPATH is set.
  41831. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  41832. +
  41833. +sed_quote_subst='$sed_quote_subst'
  41834. +double_quote_subst='$double_quote_subst'
  41835. +delay_variable_subst='$delay_variable_subst'
  41836. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  41837. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  41838. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  41839. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  41840. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  41841. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  41842. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  41843. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  41844. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  41845. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  41846. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  41847. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  41848. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  41849. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  41850. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  41851. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  41852. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  41853. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  41854. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  41855. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  41856. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  41857. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  41858. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  41859. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  41860. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  41861. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  41862. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41863. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41864. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  41865. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  41866. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  41867. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  41868. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  41869. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  41870. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  41871. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41872. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41873. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41874. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  41875. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  41876. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  41877. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  41878. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  41879. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  41880. +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"`'
  41881. +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"`'
  41882. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  41883. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  41884. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  41885. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  41886. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41887. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  41888. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  41889. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  41890. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  41891. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  41892. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  41893. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  41894. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  41895. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  41896. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  41897. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  41898. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41899. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41900. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  41901. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  41902. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41903. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41904. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  41905. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41906. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41907. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41908. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41909. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41910. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41911. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  41912. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41913. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  41914. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41915. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  41916. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  41917. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  41918. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  41919. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  41920. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41921. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  41922. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  41923. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  41924. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  41925. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  41926. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41927. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41928. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41929. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41930. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41931. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  41932. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  41933. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  41934. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  41935. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41936. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41937. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  41938. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41939. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41940. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41941. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41942. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41943. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41944. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  41945. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  41946. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41947. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41948. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  41949. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  41950. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  41951. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  41952. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41953. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41954. +
  41955. +LTCC='$LTCC'
  41956. +LTCFLAGS='$LTCFLAGS'
  41957. +compiler='$compiler_DEFAULT'
  41958. +
  41959. +# Quote evaled strings.
  41960. +for var in SED \
  41961. +GREP \
  41962. +EGREP \
  41963. +FGREP \
  41964. +LD \
  41965. +NM \
  41966. +LN_S \
  41967. +lt_SP2NL \
  41968. +lt_NL2SP \
  41969. +reload_flag \
  41970. +OBJDUMP \
  41971. +deplibs_check_method \
  41972. +file_magic_cmd \
  41973. +AR \
  41974. +AR_FLAGS \
  41975. +STRIP \
  41976. +RANLIB \
  41977. +CC \
  41978. +CFLAGS \
  41979. +compiler \
  41980. +lt_cv_sys_global_symbol_pipe \
  41981. +lt_cv_sys_global_symbol_to_cdecl \
  41982. +lt_cv_sys_global_symbol_to_c_name_address \
  41983. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  41984. +SHELL \
  41985. +ECHO \
  41986. +lt_prog_compiler_no_builtin_flag \
  41987. +lt_prog_compiler_wl \
  41988. +lt_prog_compiler_pic \
  41989. +lt_prog_compiler_static \
  41990. +lt_cv_prog_compiler_c_o \
  41991. +need_locks \
  41992. +DSYMUTIL \
  41993. +NMEDIT \
  41994. +LIPO \
  41995. +OTOOL \
  41996. +OTOOL64 \
  41997. +shrext_cmds \
  41998. +export_dynamic_flag_spec \
  41999. +whole_archive_flag_spec \
  42000. +compiler_needs_object \
  42001. +with_gnu_ld \
  42002. +allow_undefined_flag \
  42003. +no_undefined_flag \
  42004. +hardcode_libdir_flag_spec \
  42005. +hardcode_libdir_flag_spec_ld \
  42006. +hardcode_libdir_separator \
  42007. +fix_srcfile_path \
  42008. +exclude_expsyms \
  42009. +include_expsyms \
  42010. +file_list_spec \
  42011. +variables_saved_for_relink \
  42012. +libname_spec \
  42013. +library_names_spec \
  42014. +soname_spec \
  42015. +finish_eval \
  42016. +old_striplib \
  42017. +striplib; do
  42018. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  42019. + *[\\\\\\\`\\"\\\$]*)
  42020. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  42021. + ;;
  42022. + *)
  42023. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  42024. + ;;
  42025. + esac
  42026. +done
  42027. +
  42028. +# Double-quote double-evaled strings.
  42029. +for var in reload_cmds \
  42030. +old_postinstall_cmds \
  42031. +old_postuninstall_cmds \
  42032. +old_archive_cmds \
  42033. +extract_expsyms_cmds \
  42034. +old_archive_from_new_cmds \
  42035. +old_archive_from_expsyms_cmds \
  42036. +archive_cmds \
  42037. +archive_expsym_cmds \
  42038. +module_cmds \
  42039. +module_expsym_cmds \
  42040. +export_symbols_cmds \
  42041. +prelink_cmds \
  42042. +postinstall_cmds \
  42043. +postuninstall_cmds \
  42044. +finish_cmds \
  42045. +sys_lib_search_path_spec \
  42046. +sys_lib_dlsearch_path_spec; do
  42047. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  42048. + *[\\\\\\\`\\"\\\$]*)
  42049. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  42050. + ;;
  42051. + *)
  42052. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  42053. + ;;
  42054. + esac
  42055. +done
  42056. +
  42057. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  42058. +case \$lt_ECHO in
  42059. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  42060. + ;;
  42061. esac
  42062. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42063. - (eval "$ac_try") 2>&5
  42064. - ac_status=$?
  42065. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42066. - (exit $ac_status); }; }; then
  42067. - ac_cv_type_u_int32_t=yes
  42068. -else
  42069. - echo "$as_me: failed program was:" >&5
  42070. -sed 's/^/| /' conftest.$ac_ext >&5
  42071. - ac_cv_type_u_int32_t=no
  42072. -fi
  42073. +ac_aux_dir='$ac_aux_dir'
  42074. +xsi_shell='$xsi_shell'
  42075. +lt_shell_append='$lt_shell_append'
  42076. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42077. +# See if we are running on zsh, and set the options which allow our
  42078. +# commands through without removal of \ escapes INIT.
  42079. +if test -n "\${ZSH_VERSION+set}" ; then
  42080. + setopt NO_GLOB_SUBST
  42081. fi
  42082. -{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  42083. -echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  42084. -if test $ac_cv_type_u_int32_t = yes; then
  42085. - :
  42086. -else
  42087. -cat >>confdefs.h <<_ACEOF
  42088. -#define u_int32_t unsigned int
  42089. +
  42090. + PACKAGE='$PACKAGE'
  42091. + VERSION='$VERSION'
  42092. + TIMESTAMP='$TIMESTAMP'
  42093. + RM='$RM'
  42094. + ofile='$ofile'
  42095. +
  42096. +
  42097. +
  42098. +
  42099. _ACEOF
  42100. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42101. +
  42102. +# Handling of arguments.
  42103. +for ac_config_target in $ac_config_targets
  42104. +do
  42105. + case $ac_config_target in
  42106. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  42107. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  42108. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  42109. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  42110. + "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  42111. + "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
  42112. +
  42113. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  42114. + esac
  42115. +done
  42116. +
  42117. +
  42118. +# If the user did not use the arguments to specify the items to instantiate,
  42119. +# then the envvar interface is used. Set only those that are not.
  42120. +# We use the long form for the default assignment because of an extremely
  42121. +# bizarre bug on SunOS 4.1.3.
  42122. +if $ac_need_defaults; then
  42123. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  42124. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  42125. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  42126. fi
  42127. -{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
  42128. -echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
  42129. -if test "${ac_cv_type_u_int16_t+set}" = set; then
  42130. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42131. -else
  42132. - cat >conftest.$ac_ext <<_ACEOF
  42133. -/* confdefs.h. */
  42134. -_ACEOF
  42135. -cat confdefs.h >>conftest.$ac_ext
  42136. -cat >>conftest.$ac_ext <<_ACEOF
  42137. -/* end confdefs.h. */
  42138. -$ac_includes_default
  42139. -typedef u_int16_t ac__type_new_;
  42140. -int
  42141. -main ()
  42142. +# Have a temporary directory for convenience. Make it in the build tree
  42143. +# simply because there is no reason against having it here, and in addition,
  42144. +# creating and moving files from /tmp can sometimes cause problems.
  42145. +# Hook for its removal unless debugging.
  42146. +# Note that there is a small window in which the directory will not be cleaned:
  42147. +# after its creation but before its name has been assigned to `$tmp'.
  42148. +$debug ||
  42149. {
  42150. -if ((ac__type_new_ *) 0)
  42151. - return 0;
  42152. -if (sizeof (ac__type_new_))
  42153. - return 0;
  42154. - ;
  42155. - return 0;
  42156. + tmp=
  42157. + trap 'exit_status=$?
  42158. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  42159. +' 0
  42160. + trap 'as_fn_exit 1' 1 2 13 15
  42161. }
  42162. -_ACEOF
  42163. -rm -f conftest.$ac_objext
  42164. -if { (ac_try="$ac_compile"
  42165. -case "(($ac_try" in
  42166. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42167. - *) ac_try_echo=$ac_try;;
  42168. -esac
  42169. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42170. - (eval "$ac_compile") 2>conftest.er1
  42171. - ac_status=$?
  42172. - grep -v '^ *+' conftest.er1 >conftest.err
  42173. - rm -f conftest.er1
  42174. - cat conftest.err >&5
  42175. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42176. - (exit $ac_status); } &&
  42177. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42178. - { (case "(($ac_try" in
  42179. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42180. - *) ac_try_echo=$ac_try;;
  42181. -esac
  42182. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42183. - (eval "$ac_try") 2>&5
  42184. - ac_status=$?
  42185. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42186. - (exit $ac_status); }; } &&
  42187. - { ac_try='test -s conftest.$ac_objext'
  42188. - { (case "(($ac_try" in
  42189. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42190. - *) ac_try_echo=$ac_try;;
  42191. -esac
  42192. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42193. - (eval "$ac_try") 2>&5
  42194. - ac_status=$?
  42195. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42196. - (exit $ac_status); }; }; then
  42197. - ac_cv_type_u_int16_t=yes
  42198. -else
  42199. - echo "$as_me: failed program was:" >&5
  42200. -sed 's/^/| /' conftest.$ac_ext >&5
  42201. +# Create a (secure) tmp directory for tmp files.
  42202. - ac_cv_type_u_int16_t=no
  42203. -fi
  42204. +{
  42205. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  42206. + test -n "$tmp" && test -d "$tmp"
  42207. +} ||
  42208. +{
  42209. + tmp=./conf$$-$RANDOM
  42210. + (umask 077 && mkdir "$tmp")
  42211. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  42212. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42213. +# Set up the scripts for CONFIG_FILES section.
  42214. +# No need to generate them if there are no CONFIG_FILES.
  42215. +# This happens for instance with `./config.status config.h'.
  42216. +if test -n "$CONFIG_FILES"; then
  42217. +
  42218. +
  42219. +ac_cr=`echo X | tr X '\015'`
  42220. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  42221. +# But we know of no other shell where ac_cr would be empty at this
  42222. +# point, so we can use a bashism as a fallback.
  42223. +if test "x$ac_cr" = x; then
  42224. + eval ac_cr=\$\'\\r\'
  42225. fi
  42226. -{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  42227. -echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
  42228. -if test $ac_cv_type_u_int16_t = yes; then
  42229. - :
  42230. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  42231. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  42232. + ac_cs_awk_cr='\r'
  42233. else
  42234. + ac_cs_awk_cr=$ac_cr
  42235. +fi
  42236. -cat >>confdefs.h <<_ACEOF
  42237. -#define u_int16_t unsigned short
  42238. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  42239. _ACEOF
  42240. -fi
  42241. -{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
  42242. -echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
  42243. -if test "${ac_cv_type_u_int8_t+set}" = set; then
  42244. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42245. -else
  42246. - cat >conftest.$ac_ext <<_ACEOF
  42247. -/* confdefs.h. */
  42248. +{
  42249. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  42250. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  42251. + echo "_ACEOF"
  42252. +} >conf$$subs.sh ||
  42253. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  42254. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  42255. +ac_delim='%!_!# '
  42256. +for ac_last_try in false false false false false :; do
  42257. + . ./conf$$subs.sh ||
  42258. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  42259. +
  42260. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  42261. + if test $ac_delim_n = $ac_delim_num; then
  42262. + break
  42263. + elif $ac_last_try; then
  42264. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  42265. + else
  42266. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  42267. + fi
  42268. +done
  42269. +rm -f conf$$subs.sh
  42270. +
  42271. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42272. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  42273. _ACEOF
  42274. -cat confdefs.h >>conftest.$ac_ext
  42275. -cat >>conftest.$ac_ext <<_ACEOF
  42276. -/* end confdefs.h. */
  42277. -$ac_includes_default
  42278. -typedef u_int8_t ac__type_new_;
  42279. -int
  42280. -main ()
  42281. +sed -n '
  42282. +h
  42283. +s/^/S["/; s/!.*/"]=/
  42284. +p
  42285. +g
  42286. +s/^[^!]*!//
  42287. +:repl
  42288. +t repl
  42289. +s/'"$ac_delim"'$//
  42290. +t delim
  42291. +:nl
  42292. +h
  42293. +s/\(.\{148\}\)..*/\1/
  42294. +t more1
  42295. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  42296. +p
  42297. +n
  42298. +b repl
  42299. +:more1
  42300. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  42301. +p
  42302. +g
  42303. +s/.\{148\}//
  42304. +t nl
  42305. +:delim
  42306. +h
  42307. +s/\(.\{148\}\)..*/\1/
  42308. +t more2
  42309. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  42310. +p
  42311. +b
  42312. +:more2
  42313. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  42314. +p
  42315. +g
  42316. +s/.\{148\}//
  42317. +t delim
  42318. +' <conf$$subs.awk | sed '
  42319. +/^[^""]/{
  42320. + N
  42321. + s/\n//
  42322. +}
  42323. +' >>$CONFIG_STATUS || ac_write_fail=1
  42324. +rm -f conf$$subs.awk
  42325. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42326. +_ACAWK
  42327. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  42328. + for (key in S) S_is_set[key] = 1
  42329. + FS = ""
  42330. +
  42331. +}
  42332. {
  42333. -if ((ac__type_new_ *) 0)
  42334. - return 0;
  42335. -if (sizeof (ac__type_new_))
  42336. - return 0;
  42337. - ;
  42338. - return 0;
  42339. + line = $ 0
  42340. + nfields = split(line, field, "@")
  42341. + substed = 0
  42342. + len = length(field[1])
  42343. + for (i = 2; i < nfields; i++) {
  42344. + key = field[i]
  42345. + keylen = length(key)
  42346. + if (S_is_set[key]) {
  42347. + value = S[key]
  42348. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  42349. + len += length(value) + length(field[++i])
  42350. + substed = 1
  42351. + } else
  42352. + len += 1 + keylen
  42353. + }
  42354. +
  42355. + print line
  42356. }
  42357. +
  42358. +_ACAWK
  42359. _ACEOF
  42360. -rm -f conftest.$ac_objext
  42361. -if { (ac_try="$ac_compile"
  42362. -case "(($ac_try" in
  42363. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42364. - *) ac_try_echo=$ac_try;;
  42365. -esac
  42366. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42367. - (eval "$ac_compile") 2>conftest.er1
  42368. - ac_status=$?
  42369. - grep -v '^ *+' conftest.er1 >conftest.err
  42370. - rm -f conftest.er1
  42371. - cat conftest.err >&5
  42372. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42373. - (exit $ac_status); } &&
  42374. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42375. - { (case "(($ac_try" in
  42376. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42377. - *) ac_try_echo=$ac_try;;
  42378. -esac
  42379. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42380. - (eval "$ac_try") 2>&5
  42381. - ac_status=$?
  42382. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42383. - (exit $ac_status); }; } &&
  42384. - { ac_try='test -s conftest.$ac_objext'
  42385. - { (case "(($ac_try" in
  42386. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42387. - *) ac_try_echo=$ac_try;;
  42388. -esac
  42389. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42390. - (eval "$ac_try") 2>&5
  42391. - ac_status=$?
  42392. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42393. - (exit $ac_status); }; }; then
  42394. - ac_cv_type_u_int8_t=yes
  42395. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42396. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  42397. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  42398. else
  42399. - echo "$as_me: failed program was:" >&5
  42400. -sed 's/^/| /' conftest.$ac_ext >&5
  42401. + cat
  42402. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  42403. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  42404. +_ACEOF
  42405. - ac_cv_type_u_int8_t=no
  42406. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  42407. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  42408. +# trailing colons and then remove the whole line if VPATH becomes empty
  42409. +# (actually we leave an empty line to preserve line numbers).
  42410. +if test "x$srcdir" = x.; then
  42411. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  42412. +s/:*\$(srcdir):*/:/
  42413. +s/:*\${srcdir}:*/:/
  42414. +s/:*@srcdir@:*/:/
  42415. +s/^\([^=]*=[ ]*\):*/\1/
  42416. +s/:*$//
  42417. +s/^[^=]*=[ ]*$//
  42418. +}'
  42419. fi
  42420. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42421. -fi
  42422. -{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  42423. -echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
  42424. -if test $ac_cv_type_u_int8_t = yes; then
  42425. - :
  42426. -else
  42427. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42428. +fi # test -n "$CONFIG_FILES"
  42429. -cat >>confdefs.h <<_ACEOF
  42430. -#define u_int8_t unsigned char
  42431. +# Set up the scripts for CONFIG_HEADERS section.
  42432. +# No need to generate them if there are no CONFIG_HEADERS.
  42433. +# This happens for instance with `./config.status Makefile'.
  42434. +if test -n "$CONFIG_HEADERS"; then
  42435. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  42436. +BEGIN {
  42437. _ACEOF
  42438. -fi
  42439. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  42440. +# here-document in config.status, that substitutes the proper values into
  42441. +# config.h.in to produce config.h.
  42442. -{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
  42443. -echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
  42444. -if test "${ac_cv_type_struct_in6_addr+set}" = set; then
  42445. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42446. -else
  42447. - cat >conftest.$ac_ext <<_ACEOF
  42448. -/* confdefs.h. */
  42449. -_ACEOF
  42450. -cat confdefs.h >>conftest.$ac_ext
  42451. -cat >>conftest.$ac_ext <<_ACEOF
  42452. -/* end confdefs.h. */
  42453. -#ifdef WIN32
  42454. -#include <winsock2.h>
  42455. -#else
  42456. -#include <sys/types.h>
  42457. -#include <netinet/in.h>
  42458. -#include <sys/socket.h>
  42459. -#endif
  42460. -#ifdef HAVE_NETINET_IN6_H
  42461. -#include <netinet/in6.h>
  42462. -#endif
  42463. +# Create a delimiter string that does not exist in confdefs.h, to ease
  42464. +# handling of long lines.
  42465. +ac_delim='%!_!# '
  42466. +for ac_last_try in false false :; do
  42467. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  42468. + if test -z "$ac_t"; then
  42469. + break
  42470. + elif $ac_last_try; then
  42471. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  42472. + else
  42473. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  42474. + fi
  42475. +done
  42476. -typedef struct in6_addr ac__type_new_;
  42477. -int
  42478. -main ()
  42479. -{
  42480. -if ((ac__type_new_ *) 0)
  42481. - return 0;
  42482. -if (sizeof (ac__type_new_))
  42483. - return 0;
  42484. - ;
  42485. - return 0;
  42486. +# For the awk script, D is an array of macro values keyed by name,
  42487. +# likewise P contains macro parameters if any. Preserve backslash
  42488. +# newline sequences.
  42489. +
  42490. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  42491. +sed -n '
  42492. +s/.\{148\}/&'"$ac_delim"'/g
  42493. +t rset
  42494. +:rset
  42495. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  42496. +t def
  42497. +d
  42498. +:def
  42499. +s/\\$//
  42500. +t bsnl
  42501. +s/["\\]/\\&/g
  42502. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  42503. +D["\1"]=" \3"/p
  42504. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  42505. +d
  42506. +:bsnl
  42507. +s/["\\]/\\&/g
  42508. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  42509. +D["\1"]=" \3\\\\\\n"\\/p
  42510. +t cont
  42511. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  42512. +t cont
  42513. +d
  42514. +:cont
  42515. +n
  42516. +s/.\{148\}/&'"$ac_delim"'/g
  42517. +t clear
  42518. +:clear
  42519. +s/\\$//
  42520. +t bsnlc
  42521. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  42522. +d
  42523. +:bsnlc
  42524. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  42525. +b cont
  42526. +' <confdefs.h | sed '
  42527. +s/'"$ac_delim"'/"\\\
  42528. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  42529. +
  42530. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42531. + for (key in D) D_is_set[key] = 1
  42532. + FS = ""
  42533. +}
  42534. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  42535. + line = \$ 0
  42536. + split(line, arg, " ")
  42537. + if (arg[1] == "#") {
  42538. + defundef = arg[2]
  42539. + mac1 = arg[3]
  42540. + } else {
  42541. + defundef = substr(arg[1], 2)
  42542. + mac1 = arg[2]
  42543. + }
  42544. + split(mac1, mac2, "(") #)
  42545. + macro = mac2[1]
  42546. + prefix = substr(line, 1, index(line, defundef) - 1)
  42547. + if (D_is_set[macro]) {
  42548. + # Preserve the white space surrounding the "#".
  42549. + print prefix "define", macro P[macro] D[macro]
  42550. + next
  42551. + } else {
  42552. + # Replace #undef with comments. This is necessary, for example,
  42553. + # in the case of _POSIX_SOURCE, which is predefined and required
  42554. + # on some systems where configure will not decide to define it.
  42555. + if (defundef == "undef") {
  42556. + print "/*", prefix defundef, macro, "*/"
  42557. + next
  42558. + }
  42559. + }
  42560. }
  42561. +{ print }
  42562. +_ACAWK
  42563. _ACEOF
  42564. -rm -f conftest.$ac_objext
  42565. -if { (ac_try="$ac_compile"
  42566. -case "(($ac_try" in
  42567. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42568. - *) ac_try_echo=$ac_try;;
  42569. -esac
  42570. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42571. - (eval "$ac_compile") 2>conftest.er1
  42572. - ac_status=$?
  42573. - grep -v '^ *+' conftest.er1 >conftest.err
  42574. - rm -f conftest.er1
  42575. - cat conftest.err >&5
  42576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42577. - (exit $ac_status); } &&
  42578. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42579. - { (case "(($ac_try" in
  42580. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42581. - *) ac_try_echo=$ac_try;;
  42582. -esac
  42583. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42584. - (eval "$ac_try") 2>&5
  42585. - ac_status=$?
  42586. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42587. - (exit $ac_status); }; } &&
  42588. - { ac_try='test -s conftest.$ac_objext'
  42589. - { (case "(($ac_try" in
  42590. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42591. - *) ac_try_echo=$ac_try;;
  42592. -esac
  42593. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42594. - (eval "$ac_try") 2>&5
  42595. - ac_status=$?
  42596. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42597. - (exit $ac_status); }; }; then
  42598. - ac_cv_type_struct_in6_addr=yes
  42599. -else
  42600. - echo "$as_me: failed program was:" >&5
  42601. -sed 's/^/| /' conftest.$ac_ext >&5
  42602. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42603. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  42604. +fi # test -n "$CONFIG_HEADERS"
  42605. - ac_cv_type_struct_in6_addr=no
  42606. -fi
  42607. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42608. -fi
  42609. -{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
  42610. -echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
  42611. -if test $ac_cv_type_struct_in6_addr = yes; then
  42612. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  42613. +shift
  42614. +for ac_tag
  42615. +do
  42616. + case $ac_tag in
  42617. + :[FHLC]) ac_mode=$ac_tag; continue;;
  42618. + esac
  42619. + case $ac_mode$ac_tag in
  42620. + :[FHL]*:*);;
  42621. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  42622. + :[FH]-) ac_tag=-:-;;
  42623. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  42624. + esac
  42625. + ac_save_IFS=$IFS
  42626. + IFS=:
  42627. + set x $ac_tag
  42628. + IFS=$ac_save_IFS
  42629. + shift
  42630. + ac_file=$1
  42631. + shift
  42632. +
  42633. + case $ac_mode in
  42634. + :L) ac_source=$1;;
  42635. + :[FH])
  42636. + ac_file_inputs=
  42637. + for ac_f
  42638. + do
  42639. + case $ac_f in
  42640. + -) ac_f="$tmp/stdin";;
  42641. + *) # Look for the file first in the build tree, then in the source tree
  42642. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  42643. + # because $ac_f cannot contain `:'.
  42644. + test -f "$ac_f" ||
  42645. + case $ac_f in
  42646. + [\\/$]*) false;;
  42647. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  42648. + esac ||
  42649. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  42650. + esac
  42651. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  42652. + as_fn_append ac_file_inputs " '$ac_f'"
  42653. + done
  42654. +
  42655. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  42656. + # use $as_me), people would be surprised to read:
  42657. + # /* config.h. Generated by config.status. */
  42658. + configure_input='Generated from '`
  42659. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  42660. + `' by configure.'
  42661. + if test x"$ac_file" != x-; then
  42662. + configure_input="$ac_file. $configure_input"
  42663. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  42664. +$as_echo "$as_me: creating $ac_file" >&6;}
  42665. + fi
  42666. + # Neutralize special characters interpreted by sed in replacement strings.
  42667. + case $configure_input in #(
  42668. + *\&* | *\|* | *\\* )
  42669. + ac_sed_conf_input=`$as_echo "$configure_input" |
  42670. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  42671. + *) ac_sed_conf_input=$configure_input;;
  42672. + esac
  42673. +
  42674. + case $ac_tag in
  42675. + *:-:* | *:-) cat >"$tmp/stdin" \
  42676. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  42677. + esac
  42678. + ;;
  42679. + esac
  42680. +
  42681. + ac_dir=`$as_dirname -- "$ac_file" ||
  42682. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42683. + X"$ac_file" : 'X\(//\)[^/]' \| \
  42684. + X"$ac_file" : 'X\(//\)$' \| \
  42685. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  42686. +$as_echo X"$ac_file" |
  42687. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42688. + s//\1/
  42689. + q
  42690. + }
  42691. + /^X\(\/\/\)[^/].*/{
  42692. + s//\1/
  42693. + q
  42694. + }
  42695. + /^X\(\/\/\)$/{
  42696. + s//\1/
  42697. + q
  42698. + }
  42699. + /^X\(\/\).*/{
  42700. + s//\1/
  42701. + q
  42702. + }
  42703. + s/.*/./; q'`
  42704. + as_dir="$ac_dir"; as_fn_mkdir_p
  42705. + ac_builddir=.
  42706. -cat >>confdefs.h <<_ACEOF
  42707. -#define HAVE_STRUCT_IN6_ADDR 1
  42708. -_ACEOF
  42709. +case "$ac_dir" in
  42710. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42711. +*)
  42712. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  42713. + # A ".." for each directory in $ac_dir_suffix.
  42714. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  42715. + case $ac_top_builddir_sub in
  42716. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42717. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  42718. + esac ;;
  42719. +esac
  42720. +ac_abs_top_builddir=$ac_pwd
  42721. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  42722. +# for backward compatibility:
  42723. +ac_top_builddir=$ac_top_build_prefix
  42724. +case $srcdir in
  42725. + .) # We are building in place.
  42726. + ac_srcdir=.
  42727. + ac_top_srcdir=$ac_top_builddir_sub
  42728. + ac_abs_top_srcdir=$ac_pwd ;;
  42729. + [\\/]* | ?:[\\/]* ) # Absolute name.
  42730. + ac_srcdir=$srcdir$ac_dir_suffix;
  42731. + ac_top_srcdir=$srcdir
  42732. + ac_abs_top_srcdir=$srcdir ;;
  42733. + *) # Relative name.
  42734. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  42735. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  42736. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  42737. +esac
  42738. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  42739. -fi
  42740. + case $ac_mode in
  42741. + :F)
  42742. + #
  42743. + # CONFIG_FILE
  42744. + #
  42745. -{ echo "$as_me:$LINENO: checking for socklen_t" >&5
  42746. -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  42747. -cat >conftest.$ac_ext <<_ACEOF
  42748. -/* confdefs.h. */
  42749. + case $INSTALL in
  42750. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  42751. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  42752. + esac
  42753. + ac_MKDIR_P=$MKDIR_P
  42754. + case $MKDIR_P in
  42755. + [\\/$]* | ?:[\\/]* ) ;;
  42756. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  42757. + esac
  42758. _ACEOF
  42759. -cat confdefs.h >>conftest.$ac_ext
  42760. -cat >>conftest.$ac_ext <<_ACEOF
  42761. -/* end confdefs.h. */
  42762. - #include <sys/types.h>
  42763. - #include <sys/socket.h>
  42764. -int
  42765. -main ()
  42766. -{
  42767. -socklen_t x;
  42768. - ;
  42769. - return 0;
  42770. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42771. +# If the template does not know about datarootdir, expand it.
  42772. +# FIXME: This hack should be removed a few years after 2.60.
  42773. +ac_datarootdir_hack=; ac_datarootdir_seen=
  42774. +ac_sed_dataroot='
  42775. +/datarootdir/ {
  42776. + p
  42777. + q
  42778. }
  42779. +/@datadir@/p
  42780. +/@docdir@/p
  42781. +/@infodir@/p
  42782. +/@localedir@/p
  42783. +/@mandir@/p'
  42784. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  42785. +*datarootdir*) ac_datarootdir_seen=yes;;
  42786. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  42787. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  42788. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  42789. _ACEOF
  42790. -rm -f conftest.$ac_objext
  42791. -if { (ac_try="$ac_compile"
  42792. -case "(($ac_try" in
  42793. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42794. - *) ac_try_echo=$ac_try;;
  42795. -esac
  42796. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42797. - (eval "$ac_compile") 2>conftest.er1
  42798. - ac_status=$?
  42799. - grep -v '^ *+' conftest.er1 >conftest.err
  42800. - rm -f conftest.er1
  42801. - cat conftest.err >&5
  42802. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42803. - (exit $ac_status); } &&
  42804. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42805. - { (case "(($ac_try" in
  42806. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42807. - *) ac_try_echo=$ac_try;;
  42808. -esac
  42809. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42810. - (eval "$ac_try") 2>&5
  42811. - ac_status=$?
  42812. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42813. - (exit $ac_status); }; } &&
  42814. - { ac_try='test -s conftest.$ac_objext'
  42815. - { (case "(($ac_try" in
  42816. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42817. - *) ac_try_echo=$ac_try;;
  42818. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42819. + ac_datarootdir_hack='
  42820. + s&@datadir@&$datadir&g
  42821. + s&@docdir@&$docdir&g
  42822. + s&@infodir@&$infodir&g
  42823. + s&@localedir@&$localedir&g
  42824. + s&@mandir@&$mandir&g
  42825. + s&\\\${datarootdir}&$datarootdir&g' ;;
  42826. esac
  42827. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42828. - (eval "$ac_try") 2>&5
  42829. - ac_status=$?
  42830. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42831. - (exit $ac_status); }; }; then
  42832. - { echo "$as_me:$LINENO: result: yes" >&5
  42833. -echo "${ECHO_T}yes" >&6; }
  42834. -else
  42835. - echo "$as_me: failed program was:" >&5
  42836. -sed 's/^/| /' conftest.$ac_ext >&5
  42837. -
  42838. - { echo "$as_me:$LINENO: result: no" >&5
  42839. -echo "${ECHO_T}no" >&6; }
  42840. +_ACEOF
  42841. -cat >>confdefs.h <<\_ACEOF
  42842. -#define socklen_t unsigned int
  42843. +# Neutralize VPATH when `$srcdir' = `.'.
  42844. +# Shell code in configure.ac might set extrasub.
  42845. +# FIXME: do we really want to maintain this feature?
  42846. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42847. +ac_sed_extra="$ac_vpsub
  42848. +$extrasub
  42849. _ACEOF
  42850. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42851. +:t
  42852. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  42853. +s|@configure_input@|$ac_sed_conf_input|;t t
  42854. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  42855. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  42856. +s&@srcdir@&$ac_srcdir&;t t
  42857. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  42858. +s&@top_srcdir@&$ac_top_srcdir&;t t
  42859. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  42860. +s&@builddir@&$ac_builddir&;t t
  42861. +s&@abs_builddir@&$ac_abs_builddir&;t t
  42862. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  42863. +s&@INSTALL@&$ac_INSTALL&;t t
  42864. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  42865. +$ac_datarootdir_hack
  42866. +"
  42867. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  42868. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42869. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  42870. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  42871. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  42872. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42873. +which seems to be undefined. Please make sure it is defined." >&5
  42874. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42875. +which seems to be undefined. Please make sure it is defined." >&2;}
  42876. -fi
  42877. + rm -f "$tmp/stdin"
  42878. + case $ac_file in
  42879. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  42880. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  42881. + esac \
  42882. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42883. + ;;
  42884. + :H)
  42885. + #
  42886. + # CONFIG_HEADER
  42887. + #
  42888. + if test x"$ac_file" != x-; then
  42889. + {
  42890. + $as_echo "/* $configure_input */" \
  42891. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  42892. + } >"$tmp/config.h" \
  42893. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42894. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  42895. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  42896. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  42897. + else
  42898. + rm -f "$ac_file"
  42899. + mv "$tmp/config.h" "$ac_file" \
  42900. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42901. + fi
  42902. + else
  42903. + $as_echo "/* $configure_input */" \
  42904. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  42905. + || as_fn_error "could not create -" "$LINENO" 5
  42906. + fi
  42907. +# Compute "$ac_file"'s index in $config_headers.
  42908. +_am_arg="$ac_file"
  42909. +_am_stamp_count=1
  42910. +for _am_header in $config_headers :; do
  42911. + case $_am_header in
  42912. + $_am_arg | $_am_arg:* )
  42913. + break ;;
  42914. + * )
  42915. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  42916. + esac
  42917. +done
  42918. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  42919. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42920. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  42921. + X"$_am_arg" : 'X\(//\)$' \| \
  42922. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  42923. +$as_echo X"$_am_arg" |
  42924. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42925. + s//\1/
  42926. + q
  42927. + }
  42928. + /^X\(\/\/\)[^/].*/{
  42929. + s//\1/
  42930. + q
  42931. + }
  42932. + /^X\(\/\/\)$/{
  42933. + s//\1/
  42934. + q
  42935. + }
  42936. + /^X\(\/\).*/{
  42937. + s//\1/
  42938. + q
  42939. + }
  42940. + s/.*/./; q'`/stamp-h$_am_stamp_count
  42941. + ;;
  42942. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42943. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  42944. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  42945. + ;;
  42946. + esac
  42947. -{ echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
  42948. -echo $ECHO_N "checking whether our compiler supports __func__... $ECHO_C" >&6; }
  42949. -cat >conftest.$ac_ext <<_ACEOF
  42950. -/* confdefs.h. */
  42951. -_ACEOF
  42952. -cat confdefs.h >>conftest.$ac_ext
  42953. -cat >>conftest.$ac_ext <<_ACEOF
  42954. -/* end confdefs.h. */
  42955. -int
  42956. -main ()
  42957. -{
  42958. -void foo() { const char *cp = __func__; }
  42959. - ;
  42960. - return 0;
  42961. -}
  42962. -_ACEOF
  42963. -rm -f conftest.$ac_objext
  42964. -if { (ac_try="$ac_compile"
  42965. -case "(($ac_try" in
  42966. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42967. - *) ac_try_echo=$ac_try;;
  42968. -esac
  42969. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42970. - (eval "$ac_compile") 2>conftest.er1
  42971. - ac_status=$?
  42972. - grep -v '^ *+' conftest.er1 >conftest.err
  42973. - rm -f conftest.er1
  42974. - cat conftest.err >&5
  42975. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42976. - (exit $ac_status); } &&
  42977. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42978. - { (case "(($ac_try" in
  42979. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42980. - *) ac_try_echo=$ac_try;;
  42981. -esac
  42982. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42983. - (eval "$ac_try") 2>&5
  42984. - ac_status=$?
  42985. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42986. - (exit $ac_status); }; } &&
  42987. - { ac_try='test -s conftest.$ac_objext'
  42988. - { (case "(($ac_try" in
  42989. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42990. - *) ac_try_echo=$ac_try;;
  42991. -esac
  42992. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42993. - (eval "$ac_try") 2>&5
  42994. - ac_status=$?
  42995. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42996. - (exit $ac_status); }; }; then
  42997. - { echo "$as_me:$LINENO: result: yes" >&5
  42998. -echo "${ECHO_T}yes" >&6; }
  42999. -else
  43000. - echo "$as_me: failed program was:" >&5
  43001. -sed 's/^/| /' conftest.$ac_ext >&5
  43002. + case $ac_file$ac_mode in
  43003. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  43004. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  43005. + # are listed without --file. Let's play safe and only enable the eval
  43006. + # if we detect the quoting.
  43007. + case $CONFIG_FILES in
  43008. + *\'*) eval set x "$CONFIG_FILES" ;;
  43009. + *) set x $CONFIG_FILES ;;
  43010. + esac
  43011. + shift
  43012. + for mf
  43013. + do
  43014. + # Strip MF so we end up with the name of the file.
  43015. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  43016. + # Check whether this is an Automake generated Makefile or not.
  43017. + # We used to match only the files named `Makefile.in', but
  43018. + # some people rename them; so instead we look at the file content.
  43019. + # Grep'ing the first line is not enough: some people post-process
  43020. + # each Makefile.in and add a new line on top of each file to say so.
  43021. + # Grep'ing the whole file is not good either: AIX grep has a line
  43022. + # limit of 2048, but all sed's we know have understand at least 4000.
  43023. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  43024. + dirpart=`$as_dirname -- "$mf" ||
  43025. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43026. + X"$mf" : 'X\(//\)[^/]' \| \
  43027. + X"$mf" : 'X\(//\)$' \| \
  43028. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  43029. +$as_echo X"$mf" |
  43030. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43031. + s//\1/
  43032. + q
  43033. + }
  43034. + /^X\(\/\/\)[^/].*/{
  43035. + s//\1/
  43036. + q
  43037. + }
  43038. + /^X\(\/\/\)$/{
  43039. + s//\1/
  43040. + q
  43041. + }
  43042. + /^X\(\/\).*/{
  43043. + s//\1/
  43044. + q
  43045. + }
  43046. + s/.*/./; q'`
  43047. + else
  43048. + continue
  43049. + fi
  43050. + # Extract the definition of DEPDIR, am__include, and am__quote
  43051. + # from the Makefile without running `make'.
  43052. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  43053. + test -z "$DEPDIR" && continue
  43054. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  43055. + test -z "am__include" && continue
  43056. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  43057. + # When using ansi2knr, U may be empty or an underscore; expand it
  43058. + U=`sed -n 's/^U = //p' < "$mf"`
  43059. + # Find all dependency output files, they are included files with
  43060. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  43061. + # simplest approach to changing $(DEPDIR) to its actual value in the
  43062. + # expansion.
  43063. + for file in `sed -n "
  43064. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  43065. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  43066. + # Make sure the directory exists.
  43067. + test -f "$dirpart/$file" && continue
  43068. + fdir=`$as_dirname -- "$file" ||
  43069. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43070. + X"$file" : 'X\(//\)[^/]' \| \
  43071. + X"$file" : 'X\(//\)$' \| \
  43072. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  43073. +$as_echo X"$file" |
  43074. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43075. + s//\1/
  43076. + q
  43077. + }
  43078. + /^X\(\/\/\)[^/].*/{
  43079. + s//\1/
  43080. + q
  43081. + }
  43082. + /^X\(\/\/\)$/{
  43083. + s//\1/
  43084. + q
  43085. + }
  43086. + /^X\(\/\).*/{
  43087. + s//\1/
  43088. + q
  43089. + }
  43090. + s/.*/./; q'`
  43091. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  43092. + # echo "creating $dirpart/$file"
  43093. + echo '# dummy' > "$dirpart/$file"
  43094. + done
  43095. + done
  43096. +}
  43097. + ;;
  43098. + "libtool":C)
  43099. - { echo "$as_me:$LINENO: result: no" >&5
  43100. -echo "${ECHO_T}no" >&6; }
  43101. - { echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
  43102. -echo $ECHO_N "checking whether our compiler supports __FUNCTION__... $ECHO_C" >&6; }
  43103. - cat >conftest.$ac_ext <<_ACEOF
  43104. -/* confdefs.h. */
  43105. -_ACEOF
  43106. -cat confdefs.h >>conftest.$ac_ext
  43107. -cat >>conftest.$ac_ext <<_ACEOF
  43108. -/* end confdefs.h. */
  43109. + # See if we are running on zsh, and set the options which allow our
  43110. + # commands through without removal of \ escapes.
  43111. + if test -n "${ZSH_VERSION+set}" ; then
  43112. + setopt NO_GLOB_SUBST
  43113. + fi
  43114. -int
  43115. -main ()
  43116. -{
  43117. -void foo() { const char *cp = __FUNCTION__; }
  43118. - ;
  43119. - return 0;
  43120. -}
  43121. -_ACEOF
  43122. -rm -f conftest.$ac_objext
  43123. -if { (ac_try="$ac_compile"
  43124. -case "(($ac_try" in
  43125. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43126. - *) ac_try_echo=$ac_try;;
  43127. -esac
  43128. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43129. - (eval "$ac_compile") 2>conftest.er1
  43130. - ac_status=$?
  43131. - grep -v '^ *+' conftest.er1 >conftest.err
  43132. - rm -f conftest.er1
  43133. - cat conftest.err >&5
  43134. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43135. - (exit $ac_status); } &&
  43136. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43137. - { (case "(($ac_try" in
  43138. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43139. - *) ac_try_echo=$ac_try;;
  43140. -esac
  43141. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43142. - (eval "$ac_try") 2>&5
  43143. - ac_status=$?
  43144. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43145. - (exit $ac_status); }; } &&
  43146. - { ac_try='test -s conftest.$ac_objext'
  43147. - { (case "(($ac_try" in
  43148. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43149. - *) ac_try_echo=$ac_try;;
  43150. -esac
  43151. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43152. - (eval "$ac_try") 2>&5
  43153. - ac_status=$?
  43154. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43155. - (exit $ac_status); }; }; then
  43156. - { echo "$as_me:$LINENO: result: yes" >&5
  43157. -echo "${ECHO_T}yes" >&6; }
  43158. + cfgfile="${ofile}T"
  43159. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  43160. + $RM "$cfgfile"
  43161. -cat >>confdefs.h <<\_ACEOF
  43162. -#define __func__ __FUNCTION__
  43163. -_ACEOF
  43164. + cat <<_LT_EOF >> "$cfgfile"
  43165. +#! $SHELL
  43166. -else
  43167. - echo "$as_me: failed program was:" >&5
  43168. -sed 's/^/| /' conftest.$ac_ext >&5
  43169. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  43170. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  43171. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  43172. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  43173. +#
  43174. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  43175. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  43176. +# Written by Gordon Matzigkeit, 1996
  43177. +#
  43178. +# This file is part of GNU Libtool.
  43179. +#
  43180. +# GNU Libtool is free software; you can redistribute it and/or
  43181. +# modify it under the terms of the GNU General Public License as
  43182. +# published by the Free Software Foundation; either version 2 of
  43183. +# the License, or (at your option) any later version.
  43184. +#
  43185. +# As a special exception to the GNU General Public License,
  43186. +# if you distribute this file as part of a program or library that
  43187. +# is built using GNU Libtool, you may include this file under the
  43188. +# same distribution terms that you use for the rest of that program.
  43189. +#
  43190. +# GNU Libtool is distributed in the hope that it will be useful,
  43191. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  43192. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  43193. +# GNU General Public License for more details.
  43194. +#
  43195. +# You should have received a copy of the GNU General Public License
  43196. +# along with GNU Libtool; see the file COPYING. If not, a copy
  43197. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  43198. +# obtained by writing to the Free Software Foundation, Inc.,
  43199. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  43200. - { echo "$as_me:$LINENO: result: no" >&5
  43201. -echo "${ECHO_T}no" >&6; }
  43202. -cat >>confdefs.h <<\_ACEOF
  43203. -#define __func__ __FILE__
  43204. -_ACEOF
  43205. +# The names of the tagged configurations supported by this script.
  43206. +available_tags=""
  43207. -fi
  43208. +# ### BEGIN LIBTOOL CONFIG
  43209. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43210. -fi
  43211. +# Which release of libtool.m4 was used?
  43212. +macro_version=$macro_version
  43213. +macro_revision=$macro_revision
  43214. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43215. +# Whether or not to build shared libraries.
  43216. +build_libtool_libs=$enable_shared
  43217. +# Whether or not to build static libraries.
  43218. +build_old_libs=$enable_static
  43219. -ac_config_files="$ac_config_files Makefile test/Makefile sample/Makefile"
  43220. +# What type of objects to build.
  43221. +pic_mode=$pic_mode
  43222. -cat >confcache <<\_ACEOF
  43223. -# This file is a shell script that caches the results of configure
  43224. -# tests run on this system so they can be shared between configure
  43225. -# scripts and configure runs, see configure's option --config-cache.
  43226. -# It is not useful on other systems. If it contains results you don't
  43227. -# want to keep, you may remove or edit it.
  43228. -#
  43229. -# config.status only pays attention to the cache file if you give it
  43230. -# the --recheck option to rerun configure.
  43231. -#
  43232. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  43233. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  43234. -# following values.
  43235. +# Whether or not to optimize for fast installation.
  43236. +fast_install=$enable_fast_install
  43237. -_ACEOF
  43238. +# The host system.
  43239. +host_alias=$host_alias
  43240. +host=$host
  43241. +host_os=$host_os
  43242. -# The following way of writing the cache mishandles newlines in values,
  43243. -# but we know of no workaround that is simple, portable, and efficient.
  43244. -# So, we kill variables containing newlines.
  43245. -# Ultrix sh set writes to stderr and can't be redirected directly,
  43246. -# and sets the high bit in the cache file unless we assign to the vars.
  43247. -(
  43248. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  43249. - eval ac_val=\$$ac_var
  43250. - case $ac_val in #(
  43251. - *${as_nl}*)
  43252. - case $ac_var in #(
  43253. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  43254. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  43255. - esac
  43256. - case $ac_var in #(
  43257. - _ | IFS | as_nl) ;; #(
  43258. - *) $as_unset $ac_var ;;
  43259. - esac ;;
  43260. - esac
  43261. - done
  43262. +# The build system.
  43263. +build_alias=$build_alias
  43264. +build=$build
  43265. +build_os=$build_os
  43266. - (set) 2>&1 |
  43267. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  43268. - *${as_nl}ac_space=\ *)
  43269. - # `set' does not quote correctly, so add quotes (double-quote
  43270. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  43271. - sed -n \
  43272. - "s/'/'\\\\''/g;
  43273. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  43274. - ;; #(
  43275. - *)
  43276. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  43277. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  43278. - ;;
  43279. - esac |
  43280. - sort
  43281. -) |
  43282. - sed '
  43283. - /^ac_cv_env_/b end
  43284. - t clear
  43285. - :clear
  43286. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  43287. - t end
  43288. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  43289. - :end' >>confcache
  43290. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  43291. - if test -w "$cache_file"; then
  43292. - test "x$cache_file" != "x/dev/null" &&
  43293. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  43294. -echo "$as_me: updating cache $cache_file" >&6;}
  43295. - cat confcache >$cache_file
  43296. - else
  43297. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  43298. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  43299. - fi
  43300. -fi
  43301. -rm -f confcache
  43302. +# A sed program that does not truncate output.
  43303. +SED=$lt_SED
  43304. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  43305. -# Let make expand exec_prefix.
  43306. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  43307. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  43308. +Xsed="\$SED -e 1s/^X//"
  43309. -DEFS=-DHAVE_CONFIG_H
  43310. +# A grep program that handles long lines.
  43311. +GREP=$lt_GREP
  43312. -ac_libobjs=
  43313. -ac_ltlibobjs=
  43314. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  43315. - # 1. Remove the extension, and $U if already installed.
  43316. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  43317. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  43318. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  43319. - # will be set to the directory where LIBOBJS objects are built.
  43320. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  43321. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  43322. -done
  43323. -LIBOBJS=$ac_libobjs
  43324. +# An ERE matcher.
  43325. +EGREP=$lt_EGREP
  43326. -LTLIBOBJS=$ac_ltlibobjs
  43327. +# A literal string matcher.
  43328. +FGREP=$lt_FGREP
  43329. +# A BSD- or MS-compatible name lister.
  43330. +NM=$lt_NM
  43331. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  43332. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  43333. -Usually this means the macro was only invoked conditionally." >&5
  43334. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  43335. -Usually this means the macro was only invoked conditionally." >&2;}
  43336. - { (exit 1); exit 1; }; }
  43337. -fi
  43338. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  43339. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  43340. -Usually this means the macro was only invoked conditionally." >&5
  43341. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  43342. -Usually this means the macro was only invoked conditionally." >&2;}
  43343. - { (exit 1); exit 1; }; }
  43344. -fi
  43345. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  43346. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  43347. -Usually this means the macro was only invoked conditionally." >&5
  43348. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  43349. -Usually this means the macro was only invoked conditionally." >&2;}
  43350. - { (exit 1); exit 1; }; }
  43351. -fi
  43352. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  43353. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  43354. -Usually this means the macro was only invoked conditionally." >&5
  43355. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  43356. -Usually this means the macro was only invoked conditionally." >&2;}
  43357. - { (exit 1); exit 1; }; }
  43358. -fi
  43359. -if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
  43360. - { { echo "$as_me:$LINENO: error: conditional \"BUILD_WIN32\" was never defined.
  43361. -Usually this means the macro was only invoked conditionally." >&5
  43362. -echo "$as_me: error: conditional \"BUILD_WIN32\" was never defined.
  43363. -Usually this means the macro was only invoked conditionally." >&2;}
  43364. - { (exit 1); exit 1; }; }
  43365. -fi
  43366. +# Whether we need soft or hard links.
  43367. +LN_S=$lt_LN_S
  43368. -: ${CONFIG_STATUS=./config.status}
  43369. -ac_clean_files_save=$ac_clean_files
  43370. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  43371. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  43372. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  43373. -cat >$CONFIG_STATUS <<_ACEOF
  43374. -#! $SHELL
  43375. -# Generated by $as_me.
  43376. -# Run this file to recreate the current configuration.
  43377. -# Compiler output produced by configure, useful for debugging
  43378. -# configure, is in config.log if it exists.
  43379. +# What is the maximum length of a command?
  43380. +max_cmd_len=$max_cmd_len
  43381. -debug=false
  43382. -ac_cs_recheck=false
  43383. -ac_cs_silent=false
  43384. -SHELL=\${CONFIG_SHELL-$SHELL}
  43385. -_ACEOF
  43386. +# Object file suffix (normally "o").
  43387. +objext=$ac_objext
  43388. -cat >>$CONFIG_STATUS <<\_ACEOF
  43389. -## --------------------- ##
  43390. -## M4sh Initialization. ##
  43391. -## --------------------- ##
  43392. +# Executable file suffix (normally "").
  43393. +exeext=$exeext
  43394. -# Be Bourne compatible
  43395. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  43396. - emulate sh
  43397. - NULLCMD=:
  43398. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  43399. - # is contrary to our usage. Disable this feature.
  43400. - alias -g '${1+"$@"}'='"$@"'
  43401. - setopt NO_GLOB_SUBST
  43402. -else
  43403. - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  43404. -fi
  43405. -BIN_SH=xpg4; export BIN_SH # for Tru64
  43406. -DUALCASE=1; export DUALCASE # for MKS sh
  43407. +# whether the shell understands "unset".
  43408. +lt_unset=$lt_unset
  43409. +# turn spaces into newlines.
  43410. +SP2NL=$lt_lt_SP2NL
  43411. -# PATH needs CR
  43412. -# Avoid depending upon Character Ranges.
  43413. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  43414. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  43415. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  43416. -as_cr_digits='0123456789'
  43417. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  43418. +# turn newlines into spaces.
  43419. +NL2SP=$lt_lt_NL2SP
  43420. -# The user is always right.
  43421. -if test "${PATH_SEPARATOR+set}" != set; then
  43422. - echo "#! /bin/sh" >conf$$.sh
  43423. - echo "exit 0" >>conf$$.sh
  43424. - chmod +x conf$$.sh
  43425. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  43426. - PATH_SEPARATOR=';'
  43427. - else
  43428. - PATH_SEPARATOR=:
  43429. - fi
  43430. - rm -f conf$$.sh
  43431. -fi
  43432. +# How to create reloadable object files.
  43433. +reload_flag=$lt_reload_flag
  43434. +reload_cmds=$lt_reload_cmds
  43435. -# Support unset when possible.
  43436. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  43437. - as_unset=unset
  43438. -else
  43439. - as_unset=false
  43440. -fi
  43441. +# An object symbol dumper.
  43442. +OBJDUMP=$lt_OBJDUMP
  43443. +# Method to check whether dependent libraries are shared objects.
  43444. +deplibs_check_method=$lt_deplibs_check_method
  43445. -# IFS
  43446. -# We need space, tab and new line, in precisely that order. Quoting is
  43447. -# there to prevent editors from complaining about space-tab.
  43448. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  43449. -# splitting by setting IFS to empty value.)
  43450. -as_nl='
  43451. -'
  43452. -IFS=" "" $as_nl"
  43453. +# Command to use when deplibs_check_method == "file_magic".
  43454. +file_magic_cmd=$lt_file_magic_cmd
  43455. -# Find who we are. Look in the path if we contain no directory separator.
  43456. -case $0 in
  43457. - *[\\/]* ) as_myself=$0 ;;
  43458. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43459. -for as_dir in $PATH
  43460. -do
  43461. - IFS=$as_save_IFS
  43462. - test -z "$as_dir" && as_dir=.
  43463. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  43464. -done
  43465. -IFS=$as_save_IFS
  43466. +# The archiver.
  43467. +AR=$lt_AR
  43468. +AR_FLAGS=$lt_AR_FLAGS
  43469. - ;;
  43470. -esac
  43471. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  43472. -# in which case we are not to be found in the path.
  43473. -if test "x$as_myself" = x; then
  43474. - as_myself=$0
  43475. -fi
  43476. -if test ! -f "$as_myself"; then
  43477. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  43478. - { (exit 1); exit 1; }
  43479. -fi
  43480. +# A symbol stripping program.
  43481. +STRIP=$lt_STRIP
  43482. -# Work around bugs in pre-3.0 UWIN ksh.
  43483. -for as_var in ENV MAIL MAILPATH
  43484. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  43485. -done
  43486. -PS1='$ '
  43487. -PS2='> '
  43488. -PS4='+ '
  43489. +# Commands used to install an old-style archive.
  43490. +RANLIB=$lt_RANLIB
  43491. +old_postinstall_cmds=$lt_old_postinstall_cmds
  43492. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  43493. -# NLS nuisances.
  43494. -for as_var in \
  43495. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  43496. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  43497. - LC_TELEPHONE LC_TIME
  43498. -do
  43499. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43500. - eval $as_var=C; export $as_var
  43501. - else
  43502. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  43503. - fi
  43504. -done
  43505. +# A C compiler.
  43506. +LTCC=$lt_CC
  43507. -# Required to use basename.
  43508. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43509. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43510. - as_expr=expr
  43511. -else
  43512. - as_expr=false
  43513. -fi
  43514. +# LTCC compiler flags.
  43515. +LTCFLAGS=$lt_CFLAGS
  43516. +
  43517. +# Take the output of nm and produce a listing of raw symbols and C names.
  43518. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  43519. +
  43520. +# Transform the output of nm in a proper C declaration.
  43521. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  43522. +
  43523. +# Transform the output of nm in a C name address pair.
  43524. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  43525. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  43526. - as_basename=basename
  43527. -else
  43528. - as_basename=false
  43529. -fi
  43530. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  43531. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  43532. +# The name of the directory that contains temporary libtool files.
  43533. +objdir=$objdir
  43534. -# Name of the executable.
  43535. -as_me=`$as_basename -- "$0" ||
  43536. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  43537. - X"$0" : 'X\(//\)$' \| \
  43538. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  43539. -echo X/"$0" |
  43540. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  43541. - s//\1/
  43542. - q
  43543. - }
  43544. - /^X\/\(\/\/\)$/{
  43545. - s//\1/
  43546. - q
  43547. - }
  43548. - /^X\/\(\/\).*/{
  43549. - s//\1/
  43550. - q
  43551. - }
  43552. - s/.*/./; q'`
  43553. +# Shell to use when invoking shell scripts.
  43554. +SHELL=$lt_SHELL
  43555. -# CDPATH.
  43556. -$as_unset CDPATH
  43557. +# An echo program that does not interpret backslashes.
  43558. +ECHO=$lt_ECHO
  43559. +# Used to examine libraries when file_magic_cmd begins with "file".
  43560. +MAGIC_CMD=$MAGIC_CMD
  43561. +# Must we lock files when doing compilation?
  43562. +need_locks=$lt_need_locks
  43563. - as_lineno_1=$LINENO
  43564. - as_lineno_2=$LINENO
  43565. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  43566. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  43567. -
  43568. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  43569. - # uniformly replaced by the line number. The first 'sed' inserts a
  43570. - # line-number line after each line using $LINENO; the second 'sed'
  43571. - # does the real work. The second script uses 'N' to pair each
  43572. - # line-number line with the line containing $LINENO, and appends
  43573. - # trailing '-' during substitution so that $LINENO is not a special
  43574. - # case at line end.
  43575. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  43576. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  43577. - # E. McMahon (1931-1989) for sed's syntax. :-)
  43578. - sed -n '
  43579. - p
  43580. - /[$]LINENO/=
  43581. - ' <$as_myself |
  43582. - sed '
  43583. - s/[$]LINENO.*/&-/
  43584. - t lineno
  43585. - b
  43586. - :lineno
  43587. - N
  43588. - :loop
  43589. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  43590. - t loop
  43591. - s/-\n.*//
  43592. - ' >$as_me.lineno &&
  43593. - chmod +x "$as_me.lineno" ||
  43594. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  43595. - { (exit 1); exit 1; }; }
  43596. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  43597. +DSYMUTIL=$lt_DSYMUTIL
  43598. - # Don't try to exec as it changes $[0], causing all sort of problems
  43599. - # (the dirname of $[0] is not the place where we might find the
  43600. - # original and so on. Autoconf is especially sensitive to this).
  43601. - . "./$as_me.lineno"
  43602. - # Exit status is that of the last command.
  43603. - exit
  43604. -}
  43605. +# Tool to change global to local symbols on Mac OS X.
  43606. +NMEDIT=$lt_NMEDIT
  43607. +# Tool to manipulate fat objects and archives on Mac OS X.
  43608. +LIPO=$lt_LIPO
  43609. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  43610. - as_dirname=dirname
  43611. -else
  43612. - as_dirname=false
  43613. -fi
  43614. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  43615. +OTOOL=$lt_OTOOL
  43616. -ECHO_C= ECHO_N= ECHO_T=
  43617. -case `echo -n x` in
  43618. --n*)
  43619. - case `echo 'x\c'` in
  43620. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  43621. - *) ECHO_C='\c';;
  43622. - esac;;
  43623. -*)
  43624. - ECHO_N='-n';;
  43625. -esac
  43626. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  43627. +OTOOL64=$lt_OTOOL64
  43628. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43629. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43630. - as_expr=expr
  43631. -else
  43632. - as_expr=false
  43633. -fi
  43634. +# Old archive suffix (normally "a").
  43635. +libext=$libext
  43636. -rm -f conf$$ conf$$.exe conf$$.file
  43637. -if test -d conf$$.dir; then
  43638. - rm -f conf$$.dir/conf$$.file
  43639. -else
  43640. - rm -f conf$$.dir
  43641. - mkdir conf$$.dir
  43642. -fi
  43643. -echo >conf$$.file
  43644. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  43645. - as_ln_s='ln -s'
  43646. - # ... but there are two gotchas:
  43647. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  43648. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  43649. - # In both cases, we have to default to `cp -p'.
  43650. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  43651. - as_ln_s='cp -p'
  43652. -elif ln conf$$.file conf$$ 2>/dev/null; then
  43653. - as_ln_s=ln
  43654. -else
  43655. - as_ln_s='cp -p'
  43656. -fi
  43657. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  43658. -rmdir conf$$.dir 2>/dev/null
  43659. +# Shared library suffix (normally ".so").
  43660. +shrext_cmds=$lt_shrext_cmds
  43661. -if mkdir -p . 2>/dev/null; then
  43662. - as_mkdir_p=:
  43663. -else
  43664. - test -d ./-p && rmdir ./-p
  43665. - as_mkdir_p=false
  43666. -fi
  43667. +# The commands to extract the exported symbol list from a shared archive.
  43668. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  43669. -# Find out whether ``test -x'' works. Don't use a zero-byte file, as
  43670. -# systems may use methods other than mode bits to determine executability.
  43671. -cat >conf$$.file <<_ASEOF
  43672. -#! /bin/sh
  43673. -exit 0
  43674. -_ASEOF
  43675. -chmod +x conf$$.file
  43676. -if test -x conf$$.file >/dev/null 2>&1; then
  43677. - as_executable_p="test -x"
  43678. -else
  43679. - as_executable_p=:
  43680. -fi
  43681. -rm -f conf$$.file
  43682. +# Variables whose values should be saved in libtool wrapper scripts and
  43683. +# restored at link time.
  43684. +variables_saved_for_relink=$lt_variables_saved_for_relink
  43685. -# Sed expression to map a string onto a valid CPP name.
  43686. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  43687. +# Do we need the "lib" prefix for modules?
  43688. +need_lib_prefix=$need_lib_prefix
  43689. -# Sed expression to map a string onto a valid variable name.
  43690. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  43691. +# Do we need a version for libraries?
  43692. +need_version=$need_version
  43693. +# Library versioning type.
  43694. +version_type=$version_type
  43695. -exec 6>&1
  43696. +# Shared library runtime path variable.
  43697. +runpath_var=$runpath_var
  43698. -# Save the log message, to keep $[0] and so on meaningful, and to
  43699. -# report actual input values of CONFIG_FILES etc. instead of their
  43700. -# values after options handling.
  43701. -ac_log="
  43702. -This file was extended by $as_me, which was
  43703. -generated by GNU Autoconf 2.60. Invocation command line was
  43704. +# Shared library path variable.
  43705. +shlibpath_var=$shlibpath_var
  43706. - CONFIG_FILES = $CONFIG_FILES
  43707. - CONFIG_HEADERS = $CONFIG_HEADERS
  43708. - CONFIG_LINKS = $CONFIG_LINKS
  43709. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  43710. - $ $0 $@
  43711. +# Is shlibpath searched before the hard-coded library search path?
  43712. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  43713. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  43714. -"
  43715. +# Format of library name prefix.
  43716. +libname_spec=$lt_libname_spec
  43717. -_ACEOF
  43718. +# List of archive names. First name is the real one, the rest are links.
  43719. +# The last name is the one that the linker finds with -lNAME
  43720. +library_names_spec=$lt_library_names_spec
  43721. -cat >>$CONFIG_STATUS <<_ACEOF
  43722. -# Files that config.status was made for.
  43723. -config_files="$ac_config_files"
  43724. -config_headers="$ac_config_headers"
  43725. -config_commands="$ac_config_commands"
  43726. +# The coded name of the library, if different from the real name.
  43727. +soname_spec=$lt_soname_spec
  43728. -_ACEOF
  43729. +# Command to use after installation of a shared archive.
  43730. +postinstall_cmds=$lt_postinstall_cmds
  43731. -cat >>$CONFIG_STATUS <<\_ACEOF
  43732. -ac_cs_usage="\
  43733. -\`$as_me' instantiates files from templates according to the
  43734. -current configuration.
  43735. +# Command to use after uninstallation of a shared archive.
  43736. +postuninstall_cmds=$lt_postuninstall_cmds
  43737. -Usage: $0 [OPTIONS] [FILE]...
  43738. +# Commands used to finish a libtool library installation in a directory.
  43739. +finish_cmds=$lt_finish_cmds
  43740. - -h, --help print this help, then exit
  43741. - -V, --version print version number, then exit
  43742. - -q, --quiet do not print progress messages
  43743. - -d, --debug don't remove temporary files
  43744. - --recheck update $as_me by reconfiguring in the same conditions
  43745. - --file=FILE[:TEMPLATE]
  43746. - instantiate the configuration file FILE
  43747. - --header=FILE[:TEMPLATE]
  43748. - instantiate the configuration header FILE
  43749. +# As "finish_cmds", except a single script fragment to be evaled but
  43750. +# not shown.
  43751. +finish_eval=$lt_finish_eval
  43752. -Configuration files:
  43753. -$config_files
  43754. +# Whether we should hardcode library paths into libraries.
  43755. +hardcode_into_libs=$hardcode_into_libs
  43756. -Configuration headers:
  43757. -$config_headers
  43758. +# Compile-time system search path for libraries.
  43759. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  43760. -Configuration commands:
  43761. -$config_commands
  43762. +# Run-time system search path for libraries.
  43763. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  43764. -Report bugs to <bug-autoconf@gnu.org>."
  43765. +# Whether dlopen is supported.
  43766. +dlopen_support=$enable_dlopen
  43767. -_ACEOF
  43768. -cat >>$CONFIG_STATUS <<_ACEOF
  43769. -ac_cs_version="\\
  43770. -config.status
  43771. -configured by $0, generated by GNU Autoconf 2.60,
  43772. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  43773. +# Whether dlopen of programs is supported.
  43774. +dlopen_self=$enable_dlopen_self
  43775. -Copyright (C) 2006 Free Software Foundation, Inc.
  43776. -This config.status script is free software; the Free Software Foundation
  43777. -gives unlimited permission to copy, distribute and modify it."
  43778. +# Whether dlopen of statically linked programs is supported.
  43779. +dlopen_self_static=$enable_dlopen_self_static
  43780. -ac_pwd='$ac_pwd'
  43781. -srcdir='$srcdir'
  43782. -INSTALL='$INSTALL'
  43783. -_ACEOF
  43784. +# Commands to strip libraries.
  43785. +old_striplib=$lt_old_striplib
  43786. +striplib=$lt_striplib
  43787. -cat >>$CONFIG_STATUS <<\_ACEOF
  43788. -# If no file are specified by the user, then we need to provide default
  43789. -# value. By we need to know if files were specified by the user.
  43790. -ac_need_defaults=:
  43791. -while test $# != 0
  43792. -do
  43793. - case $1 in
  43794. - --*=*)
  43795. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  43796. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  43797. - ac_shift=:
  43798. - ;;
  43799. - *)
  43800. - ac_option=$1
  43801. - ac_optarg=$2
  43802. - ac_shift=shift
  43803. - ;;
  43804. - esac
  43805. - case $ac_option in
  43806. - # Handling of the options.
  43807. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  43808. - ac_cs_recheck=: ;;
  43809. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  43810. - echo "$ac_cs_version"; exit ;;
  43811. - --debug | --debu | --deb | --de | --d | -d )
  43812. - debug=: ;;
  43813. - --file | --fil | --fi | --f )
  43814. - $ac_shift
  43815. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  43816. - ac_need_defaults=false;;
  43817. - --header | --heade | --head | --hea )
  43818. - $ac_shift
  43819. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  43820. - ac_need_defaults=false;;
  43821. - --he | --h)
  43822. - # Conflict between --help and --header
  43823. - { echo "$as_me: error: ambiguous option: $1
  43824. -Try \`$0 --help' for more information." >&2
  43825. - { (exit 1); exit 1; }; };;
  43826. - --help | --hel | -h )
  43827. - echo "$ac_cs_usage"; exit ;;
  43828. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  43829. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  43830. - ac_cs_silent=: ;;
  43831. +# The linker used to build libraries.
  43832. +LD=$lt_LD
  43833. - # This is an error.
  43834. - -*) { echo "$as_me: error: unrecognized option: $1
  43835. -Try \`$0 --help' for more information." >&2
  43836. - { (exit 1); exit 1; }; } ;;
  43837. +# Commands used to build an old-style archive.
  43838. +old_archive_cmds=$lt_old_archive_cmds
  43839. - *) ac_config_targets="$ac_config_targets $1"
  43840. - ac_need_defaults=false ;;
  43841. +# A language specific compiler.
  43842. +CC=$lt_compiler
  43843. - esac
  43844. - shift
  43845. -done
  43846. +# Is the compiler the GNU compiler?
  43847. +with_gcc=$GCC
  43848. -ac_configure_extra_args=
  43849. +# Compiler flag to turn off builtin functions.
  43850. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  43851. -if $ac_cs_silent; then
  43852. - exec 6>/dev/null
  43853. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  43854. -fi
  43855. +# How to pass a linker flag through the compiler.
  43856. +wl=$lt_lt_prog_compiler_wl
  43857. -_ACEOF
  43858. -cat >>$CONFIG_STATUS <<_ACEOF
  43859. -if \$ac_cs_recheck; then
  43860. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  43861. - CONFIG_SHELL=$SHELL
  43862. - export CONFIG_SHELL
  43863. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  43864. -fi
  43865. +# Additional compiler flags for building library objects.
  43866. +pic_flag=$lt_lt_prog_compiler_pic
  43867. -_ACEOF
  43868. -cat >>$CONFIG_STATUS <<\_ACEOF
  43869. -exec 5>>config.log
  43870. -{
  43871. - echo
  43872. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  43873. -## Running $as_me. ##
  43874. -_ASBOX
  43875. - echo "$ac_log"
  43876. -} >&5
  43877. +# Compiler flag to prevent dynamic linking.
  43878. +link_static_flag=$lt_lt_prog_compiler_static
  43879. -_ACEOF
  43880. -cat >>$CONFIG_STATUS <<_ACEOF
  43881. -#
  43882. -# INIT-COMMANDS
  43883. -#
  43884. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  43885. +# Does compiler simultaneously support -c and -o options?
  43886. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  43887. -_ACEOF
  43888. +# Whether or not to add -lc for building shared libraries.
  43889. +build_libtool_need_lc=$archive_cmds_need_lc
  43890. -cat >>$CONFIG_STATUS <<\_ACEOF
  43891. +# Whether or not to disallow shared libs when runtime libs are static.
  43892. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  43893. +
  43894. +# Compiler flag to allow reflexive dlopens.
  43895. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  43896. -# Handling of arguments.
  43897. -for ac_config_target in $ac_config_targets
  43898. -do
  43899. - case $ac_config_target in
  43900. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  43901. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  43902. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  43903. - "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  43904. - "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
  43905. +# Compiler flag to generate shared objects directly from archives.
  43906. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  43907. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  43908. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  43909. - { (exit 1); exit 1; }; };;
  43910. - esac
  43911. -done
  43912. +# Whether the compiler copes with passing no objects directly.
  43913. +compiler_needs_object=$lt_compiler_needs_object
  43914. +# Create an old-style archive from a shared archive.
  43915. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  43916. -# If the user did not use the arguments to specify the items to instantiate,
  43917. -# then the envvar interface is used. Set only those that are not.
  43918. -# We use the long form for the default assignment because of an extremely
  43919. -# bizarre bug on SunOS 4.1.3.
  43920. -if $ac_need_defaults; then
  43921. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  43922. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  43923. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  43924. -fi
  43925. +# Create a temporary old-style archive to link instead of a shared archive.
  43926. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  43927. -# Have a temporary directory for convenience. Make it in the build tree
  43928. -# simply because there is no reason against having it here, and in addition,
  43929. -# creating and moving files from /tmp can sometimes cause problems.
  43930. -# Hook for its removal unless debugging.
  43931. -# Note that there is a small window in which the directory will not be cleaned:
  43932. -# after its creation but before its name has been assigned to `$tmp'.
  43933. -$debug ||
  43934. -{
  43935. - tmp=
  43936. - trap 'exit_status=$?
  43937. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  43938. -' 0
  43939. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  43940. -}
  43941. -# Create a (secure) tmp directory for tmp files.
  43942. +# Commands used to build a shared archive.
  43943. +archive_cmds=$lt_archive_cmds
  43944. +archive_expsym_cmds=$lt_archive_expsym_cmds
  43945. -{
  43946. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  43947. - test -n "$tmp" && test -d "$tmp"
  43948. -} ||
  43949. -{
  43950. - tmp=./conf$$-$RANDOM
  43951. - (umask 077 && mkdir "$tmp")
  43952. -} ||
  43953. -{
  43954. - echo "$me: cannot create a temporary directory in ." >&2
  43955. - { (exit 1); exit 1; }
  43956. -}
  43957. +# Commands used to build a loadable module if different from building
  43958. +# a shared archive.
  43959. +module_cmds=$lt_module_cmds
  43960. +module_expsym_cmds=$lt_module_expsym_cmds
  43961. -#
  43962. -# Set up the sed scripts for CONFIG_FILES section.
  43963. -#
  43964. +# Whether we are building with GNU ld or not.
  43965. +with_gnu_ld=$lt_with_gnu_ld
  43966. -# No need to generate the scripts if there are no CONFIG_FILES.
  43967. -# This happens for instance when ./config.status config.h
  43968. -if test -n "$CONFIG_FILES"; then
  43969. +# Flag that allows shared libraries with undefined symbols to be built.
  43970. +allow_undefined_flag=$lt_allow_undefined_flag
  43971. -_ACEOF
  43972. +# Flag that enforces no undefined symbols.
  43973. +no_undefined_flag=$lt_no_undefined_flag
  43974. +# Flag to hardcode \$libdir into a binary during linking.
  43975. +# This must work even if \$libdir does not exist
  43976. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  43977. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  43978. +# during linking. This must work even if \$libdir does not exist.
  43979. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  43980. -ac_delim='%!_!# '
  43981. -for ac_last_try in false false false false false :; do
  43982. - cat >conf$$subs.sed <<_ACEOF
  43983. -SHELL!$SHELL$ac_delim
  43984. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  43985. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  43986. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  43987. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  43988. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  43989. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  43990. -exec_prefix!$exec_prefix$ac_delim
  43991. -prefix!$prefix$ac_delim
  43992. -program_transform_name!$program_transform_name$ac_delim
  43993. -bindir!$bindir$ac_delim
  43994. -sbindir!$sbindir$ac_delim
  43995. -libexecdir!$libexecdir$ac_delim
  43996. -datarootdir!$datarootdir$ac_delim
  43997. -datadir!$datadir$ac_delim
  43998. -sysconfdir!$sysconfdir$ac_delim
  43999. -sharedstatedir!$sharedstatedir$ac_delim
  44000. -localstatedir!$localstatedir$ac_delim
  44001. -includedir!$includedir$ac_delim
  44002. -oldincludedir!$oldincludedir$ac_delim
  44003. -docdir!$docdir$ac_delim
  44004. -infodir!$infodir$ac_delim
  44005. -htmldir!$htmldir$ac_delim
  44006. -dvidir!$dvidir$ac_delim
  44007. -pdfdir!$pdfdir$ac_delim
  44008. -psdir!$psdir$ac_delim
  44009. -libdir!$libdir$ac_delim
  44010. -localedir!$localedir$ac_delim
  44011. -mandir!$mandir$ac_delim
  44012. -DEFS!$DEFS$ac_delim
  44013. -ECHO_C!$ECHO_C$ac_delim
  44014. -ECHO_N!$ECHO_N$ac_delim
  44015. -ECHO_T!$ECHO_T$ac_delim
  44016. -LIBS!$LIBS$ac_delim
  44017. -build_alias!$build_alias$ac_delim
  44018. -host_alias!$host_alias$ac_delim
  44019. -target_alias!$target_alias$ac_delim
  44020. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  44021. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  44022. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  44023. -CYGPATH_W!$CYGPATH_W$ac_delim
  44024. -PACKAGE!$PACKAGE$ac_delim
  44025. -VERSION!$VERSION$ac_delim
  44026. -ACLOCAL!$ACLOCAL$ac_delim
  44027. -AUTOCONF!$AUTOCONF$ac_delim
  44028. -AUTOMAKE!$AUTOMAKE$ac_delim
  44029. -AUTOHEADER!$AUTOHEADER$ac_delim
  44030. -MAKEINFO!$MAKEINFO$ac_delim
  44031. -install_sh!$install_sh$ac_delim
  44032. -STRIP!$STRIP$ac_delim
  44033. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  44034. -mkdir_p!$mkdir_p$ac_delim
  44035. -AWK!$AWK$ac_delim
  44036. -SET_MAKE!$SET_MAKE$ac_delim
  44037. -am__leading_dot!$am__leading_dot$ac_delim
  44038. -AMTAR!$AMTAR$ac_delim
  44039. -am__tar!$am__tar$ac_delim
  44040. -am__untar!$am__untar$ac_delim
  44041. -MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  44042. -MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  44043. -MAINT!$MAINT$ac_delim
  44044. -CC!$CC$ac_delim
  44045. -CFLAGS!$CFLAGS$ac_delim
  44046. -LDFLAGS!$LDFLAGS$ac_delim
  44047. -CPPFLAGS!$CPPFLAGS$ac_delim
  44048. -ac_ct_CC!$ac_ct_CC$ac_delim
  44049. -EXEEXT!$EXEEXT$ac_delim
  44050. -OBJEXT!$OBJEXT$ac_delim
  44051. -DEPDIR!$DEPDIR$ac_delim
  44052. -am__include!$am__include$ac_delim
  44053. -am__quote!$am__quote$ac_delim
  44054. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  44055. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  44056. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  44057. -CCDEPMODE!$CCDEPMODE$ac_delim
  44058. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  44059. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  44060. -LN_S!$LN_S$ac_delim
  44061. -CPP!$CPP$ac_delim
  44062. -GREP!$GREP$ac_delim
  44063. -EGREP!$EGREP$ac_delim
  44064. -build!$build$ac_delim
  44065. -build_cpu!$build_cpu$ac_delim
  44066. -build_vendor!$build_vendor$ac_delim
  44067. -build_os!$build_os$ac_delim
  44068. -host!$host$ac_delim
  44069. -host_cpu!$host_cpu$ac_delim
  44070. -host_vendor!$host_vendor$ac_delim
  44071. -host_os!$host_os$ac_delim
  44072. -ECHO!$ECHO$ac_delim
  44073. -AR!$AR$ac_delim
  44074. -RANLIB!$RANLIB$ac_delim
  44075. -CXX!$CXX$ac_delim
  44076. -CXXFLAGS!$CXXFLAGS$ac_delim
  44077. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  44078. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  44079. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  44080. -_ACEOF
  44081. +# Whether we need a single "-rpath" flag with a separated argument.
  44082. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  44083. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  44084. - break
  44085. - elif $ac_last_try; then
  44086. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  44087. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  44088. - { (exit 1); exit 1; }; }
  44089. - else
  44090. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44091. - fi
  44092. -done
  44093. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44094. +# DIR into the resulting binary.
  44095. +hardcode_direct=$hardcode_direct
  44096. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  44097. -if test -n "$ac_eof"; then
  44098. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  44099. - ac_eof=`expr $ac_eof + 1`
  44100. -fi
  44101. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44102. +# DIR into the resulting binary and the resulting library dependency is
  44103. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  44104. +# library is relocated.
  44105. +hardcode_direct_absolute=$hardcode_direct_absolute
  44106. -cat >>$CONFIG_STATUS <<_ACEOF
  44107. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  44108. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44109. -_ACEOF
  44110. -sed '
  44111. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  44112. -s/^/s,@/; s/!/@,|#_!!_#|/
  44113. -:n
  44114. -t n
  44115. -s/'"$ac_delim"'$/,g/; t
  44116. -s/$/\\/; p
  44117. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  44118. -' >>$CONFIG_STATUS <conf$$subs.sed
  44119. -rm -f conf$$subs.sed
  44120. -cat >>$CONFIG_STATUS <<_ACEOF
  44121. -CEOF$ac_eof
  44122. -_ACEOF
  44123. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  44124. +# into the resulting binary.
  44125. +hardcode_minus_L=$hardcode_minus_L
  44126. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  44127. +# into the resulting binary.
  44128. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  44129. -ac_delim='%!_!# '
  44130. -for ac_last_try in false false false false false :; do
  44131. - cat >conf$$subs.sed <<_ACEOF
  44132. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  44133. -CXXCPP!$CXXCPP$ac_delim
  44134. -F77!$F77$ac_delim
  44135. -FFLAGS!$FFLAGS$ac_delim
  44136. -ac_ct_F77!$ac_ct_F77$ac_delim
  44137. -LIBTOOL!$LIBTOOL$ac_delim
  44138. -LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
  44139. -BUILD_WIN32_TRUE!$BUILD_WIN32_TRUE$ac_delim
  44140. -BUILD_WIN32_FALSE!$BUILD_WIN32_FALSE$ac_delim
  44141. -LIBOBJS!$LIBOBJS$ac_delim
  44142. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  44143. -_ACEOF
  44144. +# Set to "yes" if building a shared library automatically hardcodes DIR
  44145. +# into the library and all subsequent libraries and executables linked
  44146. +# against it.
  44147. +hardcode_automatic=$hardcode_automatic
  44148. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
  44149. - break
  44150. - elif $ac_last_try; then
  44151. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  44152. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  44153. - { (exit 1); exit 1; }; }
  44154. - else
  44155. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44156. - fi
  44157. -done
  44158. +# Set to yes if linker adds runtime paths of dependent libraries
  44159. +# to runtime path list.
  44160. +inherit_rpath=$inherit_rpath
  44161. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  44162. -if test -n "$ac_eof"; then
  44163. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  44164. - ac_eof=`expr $ac_eof + 1`
  44165. -fi
  44166. -
  44167. -cat >>$CONFIG_STATUS <<_ACEOF
  44168. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  44169. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  44170. -_ACEOF
  44171. -sed '
  44172. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  44173. -s/^/s,@/; s/!/@,|#_!!_#|/
  44174. -:n
  44175. -t n
  44176. -s/'"$ac_delim"'$/,g/; t
  44177. -s/$/\\/; p
  44178. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  44179. -' >>$CONFIG_STATUS <conf$$subs.sed
  44180. -rm -f conf$$subs.sed
  44181. -cat >>$CONFIG_STATUS <<_ACEOF
  44182. -:end
  44183. -s/|#_!!_#|//g
  44184. -CEOF$ac_eof
  44185. -_ACEOF
  44186. +# Whether libtool must link a program against all its dependency libraries.
  44187. +link_all_deplibs=$link_all_deplibs
  44188. +# Fix the shell variable \$srcfile for the compiler.
  44189. +fix_srcfile_path=$lt_fix_srcfile_path
  44190. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  44191. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  44192. -# trailing colons and then remove the whole line if VPATH becomes empty
  44193. -# (actually we leave an empty line to preserve line numbers).
  44194. -if test "x$srcdir" = x.; then
  44195. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  44196. -s/:*\$(srcdir):*/:/
  44197. -s/:*\${srcdir}:*/:/
  44198. -s/:*@srcdir@:*/:/
  44199. -s/^\([^=]*=[ ]*\):*/\1/
  44200. -s/:*$//
  44201. -s/^[^=]*=[ ]*$//
  44202. -}'
  44203. -fi
  44204. +# Set to "yes" if exported symbols are required.
  44205. +always_export_symbols=$always_export_symbols
  44206. -cat >>$CONFIG_STATUS <<\_ACEOF
  44207. -fi # test -n "$CONFIG_FILES"
  44208. +# The commands to list exported symbols.
  44209. +export_symbols_cmds=$lt_export_symbols_cmds
  44210. +# Symbols that should not be listed in the preloaded symbols.
  44211. +exclude_expsyms=$lt_exclude_expsyms
  44212. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  44213. -do
  44214. - case $ac_tag in
  44215. - :[FHLC]) ac_mode=$ac_tag; continue;;
  44216. - esac
  44217. - case $ac_mode$ac_tag in
  44218. - :[FHL]*:*);;
  44219. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  44220. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  44221. - { (exit 1); exit 1; }; };;
  44222. - :[FH]-) ac_tag=-:-;;
  44223. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  44224. - esac
  44225. - ac_save_IFS=$IFS
  44226. - IFS=:
  44227. - set x $ac_tag
  44228. - IFS=$ac_save_IFS
  44229. - shift
  44230. - ac_file=$1
  44231. - shift
  44232. +# Symbols that must always be exported.
  44233. +include_expsyms=$lt_include_expsyms
  44234. - case $ac_mode in
  44235. - :L) ac_source=$1;;
  44236. - :[FH])
  44237. - ac_file_inputs=
  44238. - for ac_f
  44239. - do
  44240. - case $ac_f in
  44241. - -) ac_f="$tmp/stdin";;
  44242. - *) # Look for the file first in the build tree, then in the source tree
  44243. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  44244. - # because $ac_f cannot contain `:'.
  44245. - test -f "$ac_f" ||
  44246. - case $ac_f in
  44247. - [\\/$]*) false;;
  44248. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  44249. - esac ||
  44250. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  44251. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  44252. - { (exit 1); exit 1; }; };;
  44253. - esac
  44254. - ac_file_inputs="$ac_file_inputs $ac_f"
  44255. - done
  44256. +# Commands necessary for linking programs (against libraries) with templates.
  44257. +prelink_cmds=$lt_prelink_cmds
  44258. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  44259. - # use $as_me), people would be surprised to read:
  44260. - # /* config.h. Generated by config.status. */
  44261. - configure_input="Generated from "`IFS=:
  44262. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  44263. - if test x"$ac_file" != x-; then
  44264. - configure_input="$ac_file. $configure_input"
  44265. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  44266. -echo "$as_me: creating $ac_file" >&6;}
  44267. - fi
  44268. +# Specify filename containing input files.
  44269. +file_list_spec=$lt_file_list_spec
  44270. - case $ac_tag in
  44271. - *:-:* | *:-) cat >"$tmp/stdin";;
  44272. - esac
  44273. - ;;
  44274. - esac
  44275. +# How to hardcode a shared library path into an executable.
  44276. +hardcode_action=$hardcode_action
  44277. - ac_dir=`$as_dirname -- "$ac_file" ||
  44278. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44279. - X"$ac_file" : 'X\(//\)[^/]' \| \
  44280. - X"$ac_file" : 'X\(//\)$' \| \
  44281. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  44282. -echo X"$ac_file" |
  44283. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44284. - s//\1/
  44285. - q
  44286. - }
  44287. - /^X\(\/\/\)[^/].*/{
  44288. - s//\1/
  44289. - q
  44290. - }
  44291. - /^X\(\/\/\)$/{
  44292. - s//\1/
  44293. - q
  44294. - }
  44295. - /^X\(\/\).*/{
  44296. - s//\1/
  44297. - q
  44298. - }
  44299. - s/.*/./; q'`
  44300. - { as_dir="$ac_dir"
  44301. - case $as_dir in #(
  44302. - -*) as_dir=./$as_dir;;
  44303. - esac
  44304. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  44305. - as_dirs=
  44306. - while :; do
  44307. - case $as_dir in #(
  44308. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  44309. - *) as_qdir=$as_dir;;
  44310. - esac
  44311. - as_dirs="'$as_qdir' $as_dirs"
  44312. - as_dir=`$as_dirname -- "$as_dir" ||
  44313. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44314. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44315. - X"$as_dir" : 'X\(//\)$' \| \
  44316. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  44317. -echo X"$as_dir" |
  44318. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44319. - s//\1/
  44320. - q
  44321. - }
  44322. - /^X\(\/\/\)[^/].*/{
  44323. - s//\1/
  44324. - q
  44325. - }
  44326. - /^X\(\/\/\)$/{
  44327. - s//\1/
  44328. - q
  44329. - }
  44330. - /^X\(\/\).*/{
  44331. - s//\1/
  44332. - q
  44333. - }
  44334. - s/.*/./; q'`
  44335. - test -d "$as_dir" && break
  44336. - done
  44337. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  44338. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  44339. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  44340. - { (exit 1); exit 1; }; }; }
  44341. - ac_builddir=.
  44342. +# ### END LIBTOOL CONFIG
  44343. -case "$ac_dir" in
  44344. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  44345. -*)
  44346. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  44347. - # A ".." for each directory in $ac_dir_suffix.
  44348. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  44349. - case $ac_top_builddir_sub in
  44350. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  44351. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  44352. - esac ;;
  44353. -esac
  44354. -ac_abs_top_builddir=$ac_pwd
  44355. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  44356. -# for backward compatibility:
  44357. -ac_top_builddir=$ac_top_build_prefix
  44358. +_LT_EOF
  44359. -case $srcdir in
  44360. - .) # We are building in place.
  44361. - ac_srcdir=.
  44362. - ac_top_srcdir=$ac_top_builddir_sub
  44363. - ac_abs_top_srcdir=$ac_pwd ;;
  44364. - [\\/]* | ?:[\\/]* ) # Absolute name.
  44365. - ac_srcdir=$srcdir$ac_dir_suffix;
  44366. - ac_top_srcdir=$srcdir
  44367. - ac_abs_top_srcdir=$srcdir ;;
  44368. - *) # Relative name.
  44369. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  44370. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  44371. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  44372. -esac
  44373. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  44374. + case $host_os in
  44375. + aix3*)
  44376. + cat <<\_LT_EOF >> "$cfgfile"
  44377. +# AIX sometimes has problems with the GCC collect2 program. For some
  44378. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  44379. +# vanish in a puff of smoke.
  44380. +if test "X${COLLECT_NAMES+set}" != Xset; then
  44381. + COLLECT_NAMES=
  44382. + export COLLECT_NAMES
  44383. +fi
  44384. +_LT_EOF
  44385. + ;;
  44386. + esac
  44387. - case $ac_mode in
  44388. - :F)
  44389. - #
  44390. - # CONFIG_FILE
  44391. - #
  44392. +ltmain="$ac_aux_dir/ltmain.sh"
  44393. - case $INSTALL in
  44394. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  44395. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  44396. +
  44397. + # We use sed instead of cat because bash on DJGPP gets confused if
  44398. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  44399. + # text mode, it properly converts lines to CR/LF. This bash problem
  44400. + # is reportedly fixed, but why not run on old versions too?
  44401. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  44402. + || (rm -f "$cfgfile"; exit 1)
  44403. +
  44404. + case $xsi_shell in
  44405. + yes)
  44406. + cat << \_LT_EOF >> "$cfgfile"
  44407. +
  44408. +# func_dirname file append nondir_replacement
  44409. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  44410. +# otherwise set result to NONDIR_REPLACEMENT.
  44411. +func_dirname ()
  44412. +{
  44413. + case ${1} in
  44414. + */*) func_dirname_result="${1%/*}${2}" ;;
  44415. + * ) func_dirname_result="${3}" ;;
  44416. esac
  44417. -_ACEOF
  44418. +}
  44419. -cat >>$CONFIG_STATUS <<\_ACEOF
  44420. -# If the template does not know about datarootdir, expand it.
  44421. -# FIXME: This hack should be removed a few years after 2.60.
  44422. -ac_datarootdir_hack=; ac_datarootdir_seen=
  44423. +# func_basename file
  44424. +func_basename ()
  44425. +{
  44426. + func_basename_result="${1##*/}"
  44427. +}
  44428. -case `sed -n '/datarootdir/ {
  44429. - p
  44430. - q
  44431. +# func_dirname_and_basename file append nondir_replacement
  44432. +# perform func_basename and func_dirname in a single function
  44433. +# call:
  44434. +# dirname: Compute the dirname of FILE. If nonempty,
  44435. +# add APPEND to the result, otherwise set result
  44436. +# to NONDIR_REPLACEMENT.
  44437. +# value returned in "$func_dirname_result"
  44438. +# basename: Compute filename of FILE.
  44439. +# value retuned in "$func_basename_result"
  44440. +# Implementation must be kept synchronized with func_dirname
  44441. +# and func_basename. For efficiency, we do not delegate to
  44442. +# those functions but instead duplicate the functionality here.
  44443. +func_dirname_and_basename ()
  44444. +{
  44445. + case ${1} in
  44446. + */*) func_dirname_result="${1%/*}${2}" ;;
  44447. + * ) func_dirname_result="${3}" ;;
  44448. + esac
  44449. + func_basename_result="${1##*/}"
  44450. }
  44451. -/@datadir@/p
  44452. -/@docdir@/p
  44453. -/@infodir@/p
  44454. -/@localedir@/p
  44455. -/@mandir@/p
  44456. -' $ac_file_inputs` in
  44457. -*datarootdir*) ac_datarootdir_seen=yes;;
  44458. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  44459. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  44460. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  44461. -_ACEOF
  44462. -cat >>$CONFIG_STATUS <<_ACEOF
  44463. - ac_datarootdir_hack='
  44464. - s&@datadir@&$datadir&g
  44465. - s&@docdir@&$docdir&g
  44466. - s&@infodir@&$infodir&g
  44467. - s&@localedir@&$localedir&g
  44468. - s&@mandir@&$mandir&g
  44469. - s&\\\${datarootdir}&$datarootdir&g' ;;
  44470. -esac
  44471. -_ACEOF
  44472. -# Neutralize VPATH when `$srcdir' = `.'.
  44473. -# Shell code in configure.ac might set extrasub.
  44474. -# FIXME: do we really want to maintain this feature?
  44475. -cat >>$CONFIG_STATUS <<_ACEOF
  44476. - sed "$ac_vpsub
  44477. -$extrasub
  44478. -_ACEOF
  44479. -cat >>$CONFIG_STATUS <<\_ACEOF
  44480. -:t
  44481. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44482. -s&@configure_input@&$configure_input&;t t
  44483. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  44484. -s&@srcdir@&$ac_srcdir&;t t
  44485. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  44486. -s&@top_srcdir@&$ac_top_srcdir&;t t
  44487. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  44488. -s&@builddir@&$ac_builddir&;t t
  44489. -s&@abs_builddir@&$ac_abs_builddir&;t t
  44490. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  44491. -s&@INSTALL@&$ac_INSTALL&;t t
  44492. -$ac_datarootdir_hack
  44493. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  44494. +# func_stripname prefix suffix name
  44495. +# strip PREFIX and SUFFIX off of NAME.
  44496. +# PREFIX and SUFFIX must not contain globbing or regex special
  44497. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  44498. +# dot (in which case that matches only a dot).
  44499. +func_stripname ()
  44500. +{
  44501. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  44502. + # positional parameters, so assign one to ordinary parameter first.
  44503. + func_stripname_result=${3}
  44504. + func_stripname_result=${func_stripname_result#"${1}"}
  44505. + func_stripname_result=${func_stripname_result%"${2}"}
  44506. +}
  44507. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  44508. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  44509. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  44510. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44511. -which seems to be undefined. Please make sure it is defined." >&5
  44512. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44513. -which seems to be undefined. Please make sure it is defined." >&2;}
  44514. +# func_opt_split
  44515. +func_opt_split ()
  44516. +{
  44517. + func_opt_split_opt=${1%%=*}
  44518. + func_opt_split_arg=${1#*=}
  44519. +}
  44520. - rm -f "$tmp/stdin"
  44521. - case $ac_file in
  44522. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  44523. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  44524. +# func_lo2o object
  44525. +func_lo2o ()
  44526. +{
  44527. + case ${1} in
  44528. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  44529. + *) func_lo2o_result=${1} ;;
  44530. esac
  44531. - ;;
  44532. - :H)
  44533. - #
  44534. - # CONFIG_HEADER
  44535. - #
  44536. -_ACEOF
  44537. +}
  44538. -# Transform confdefs.h into a sed script `conftest.defines', that
  44539. -# substitutes the proper values into config.h.in to produce config.h.
  44540. -rm -f conftest.defines conftest.tail
  44541. -# First, append a space to every undef/define line, to ease matching.
  44542. -echo 's/$/ /' >conftest.defines
  44543. -# Then, protect against being on the right side of a sed subst, or in
  44544. -# an unquoted here document, in config.status. If some macros were
  44545. -# called several times there might be several #defines for the same
  44546. -# symbol, which is useless. But do not sort them, since the last
  44547. -# AC_DEFINE must be honored.
  44548. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  44549. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  44550. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  44551. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  44552. -# just an empty string.
  44553. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  44554. -ac_dB='\\)[ (].*,\\1define\\2'
  44555. -ac_dC=' '
  44556. -ac_dD=' ,'
  44557. +# func_xform libobj-or-source
  44558. +func_xform ()
  44559. +{
  44560. + func_xform_result=${1%.*}.lo
  44561. +}
  44562. -uniq confdefs.h |
  44563. - sed -n '
  44564. - t rset
  44565. - :rset
  44566. - s/^[ ]*#[ ]*define[ ][ ]*//
  44567. - t ok
  44568. - d
  44569. - :ok
  44570. - s/[\\&,]/\\&/g
  44571. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  44572. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  44573. - ' >>conftest.defines
  44574. -
  44575. -# Remove the space that was appended to ease matching.
  44576. -# Then replace #undef with comments. This is necessary, for
  44577. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  44578. -# on some systems where configure will not decide to define it.
  44579. -# (The regexp can be short, since the line contains either #define or #undef.)
  44580. -echo 's/ $//
  44581. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  44582. -
  44583. -# Break up conftest.defines:
  44584. -ac_max_sed_lines=50
  44585. -
  44586. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  44587. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  44588. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  44589. -# et cetera.
  44590. -ac_in='$ac_file_inputs'
  44591. -ac_out='"$tmp/out1"'
  44592. -ac_nxt='"$tmp/out2"'
  44593. +# func_arith arithmetic-term...
  44594. +func_arith ()
  44595. +{
  44596. + func_arith_result=$(( $* ))
  44597. +}
  44598. -while :
  44599. -do
  44600. - # Write a here document:
  44601. - cat >>$CONFIG_STATUS <<_ACEOF
  44602. - # First, check the format of the line:
  44603. - cat >"\$tmp/defines.sed" <<\\CEOF
  44604. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  44605. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  44606. -b
  44607. -:def
  44608. -_ACEOF
  44609. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  44610. - echo 'CEOF
  44611. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  44612. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  44613. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  44614. - grep . conftest.tail >/dev/null || break
  44615. - rm -f conftest.defines
  44616. - mv conftest.tail conftest.defines
  44617. -done
  44618. -rm -f conftest.defines conftest.tail
  44619. +# func_len string
  44620. +# STRING may not start with a hyphen.
  44621. +func_len ()
  44622. +{
  44623. + func_len_result=${#1}
  44624. +}
  44625. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  44626. -cat >>$CONFIG_STATUS <<\_ACEOF
  44627. - if test x"$ac_file" != x-; then
  44628. - echo "/* $configure_input */" >"$tmp/config.h"
  44629. - cat "$ac_result" >>"$tmp/config.h"
  44630. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  44631. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  44632. -echo "$as_me: $ac_file is unchanged" >&6;}
  44633. - else
  44634. - rm -f $ac_file
  44635. - mv "$tmp/config.h" $ac_file
  44636. - fi
  44637. +_LT_EOF
  44638. + ;;
  44639. + *) # Bourne compatible functions.
  44640. + cat << \_LT_EOF >> "$cfgfile"
  44641. +
  44642. +# func_dirname file append nondir_replacement
  44643. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  44644. +# otherwise set result to NONDIR_REPLACEMENT.
  44645. +func_dirname ()
  44646. +{
  44647. + # Extract subdirectory from the argument.
  44648. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  44649. + if test "X$func_dirname_result" = "X${1}"; then
  44650. + func_dirname_result="${3}"
  44651. else
  44652. - echo "/* $configure_input */"
  44653. - cat "$ac_result"
  44654. + func_dirname_result="$func_dirname_result${2}"
  44655. fi
  44656. - rm -f "$tmp/out12"
  44657. -# Compute $ac_file's index in $config_headers.
  44658. -_am_stamp_count=1
  44659. -for _am_header in $config_headers :; do
  44660. - case $_am_header in
  44661. - $ac_file | $ac_file:* )
  44662. - break ;;
  44663. - * )
  44664. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  44665. - esac
  44666. -done
  44667. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  44668. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44669. - X$ac_file : 'X\(//\)[^/]' \| \
  44670. - X$ac_file : 'X\(//\)$' \| \
  44671. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  44672. -echo X$ac_file |
  44673. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44674. - s//\1/
  44675. - q
  44676. - }
  44677. - /^X\(\/\/\)[^/].*/{
  44678. - s//\1/
  44679. - q
  44680. - }
  44681. - /^X\(\/\/\)$/{
  44682. - s//\1/
  44683. - q
  44684. - }
  44685. - /^X\(\/\).*/{
  44686. - s//\1/
  44687. - q
  44688. - }
  44689. - s/.*/./; q'`/stamp-h$_am_stamp_count
  44690. - ;;
  44691. +}
  44692. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  44693. -echo "$as_me: executing $ac_file commands" >&6;}
  44694. - ;;
  44695. +# func_basename file
  44696. +func_basename ()
  44697. +{
  44698. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  44699. +}
  44700. +
  44701. +
  44702. +# func_stripname prefix suffix name
  44703. +# strip PREFIX and SUFFIX off of NAME.
  44704. +# PREFIX and SUFFIX must not contain globbing or regex special
  44705. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  44706. +# dot (in which case that matches only a dot).
  44707. +# func_strip_suffix prefix name
  44708. +func_stripname ()
  44709. +{
  44710. + case ${2} in
  44711. + .*) func_stripname_result=`$ECHO "X${3}" \
  44712. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  44713. + *) func_stripname_result=`$ECHO "X${3}" \
  44714. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  44715. esac
  44716. +}
  44717. +# sed scripts:
  44718. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  44719. +my_sed_long_arg='1s/^-[^=]*=//'
  44720. - case $ac_file$ac_mode in
  44721. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  44722. - # Strip MF so we end up with the name of the file.
  44723. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  44724. - # Check whether this is an Automake generated Makefile or not.
  44725. - # We used to match only the files named `Makefile.in', but
  44726. - # some people rename them; so instead we look at the file content.
  44727. - # Grep'ing the first line is not enough: some people post-process
  44728. - # each Makefile.in and add a new line on top of each file to say so.
  44729. - # So let's grep whole file.
  44730. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  44731. - dirpart=`$as_dirname -- "$mf" ||
  44732. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44733. - X"$mf" : 'X\(//\)[^/]' \| \
  44734. - X"$mf" : 'X\(//\)$' \| \
  44735. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  44736. -echo X"$mf" |
  44737. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44738. - s//\1/
  44739. - q
  44740. - }
  44741. - /^X\(\/\/\)[^/].*/{
  44742. - s//\1/
  44743. - q
  44744. - }
  44745. - /^X\(\/\/\)$/{
  44746. - s//\1/
  44747. - q
  44748. - }
  44749. - /^X\(\/\).*/{
  44750. - s//\1/
  44751. - q
  44752. - }
  44753. - s/.*/./; q'`
  44754. - else
  44755. - continue
  44756. - fi
  44757. - # Extract the definition of DEPDIR, am__include, and am__quote
  44758. - # from the Makefile without running `make'.
  44759. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  44760. - test -z "$DEPDIR" && continue
  44761. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  44762. - test -z "am__include" && continue
  44763. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  44764. - # When using ansi2knr, U may be empty or an underscore; expand it
  44765. - U=`sed -n 's/^U = //p' < "$mf"`
  44766. - # Find all dependency output files, they are included files with
  44767. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  44768. - # simplest approach to changing $(DEPDIR) to its actual value in the
  44769. - # expansion.
  44770. - for file in `sed -n "
  44771. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  44772. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  44773. - # Make sure the directory exists.
  44774. - test -f "$dirpart/$file" && continue
  44775. - fdir=`$as_dirname -- "$file" ||
  44776. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44777. - X"$file" : 'X\(//\)[^/]' \| \
  44778. - X"$file" : 'X\(//\)$' \| \
  44779. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  44780. -echo X"$file" |
  44781. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44782. - s//\1/
  44783. - q
  44784. - }
  44785. - /^X\(\/\/\)[^/].*/{
  44786. - s//\1/
  44787. - q
  44788. - }
  44789. - /^X\(\/\/\)$/{
  44790. - s//\1/
  44791. - q
  44792. - }
  44793. - /^X\(\/\).*/{
  44794. - s//\1/
  44795. - q
  44796. - }
  44797. - s/.*/./; q'`
  44798. - { as_dir=$dirpart/$fdir
  44799. - case $as_dir in #(
  44800. - -*) as_dir=./$as_dir;;
  44801. +# func_opt_split
  44802. +func_opt_split ()
  44803. +{
  44804. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  44805. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  44806. +}
  44807. +
  44808. +# func_lo2o object
  44809. +func_lo2o ()
  44810. +{
  44811. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  44812. +}
  44813. +
  44814. +# func_xform libobj-or-source
  44815. +func_xform ()
  44816. +{
  44817. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  44818. +}
  44819. +
  44820. +# func_arith arithmetic-term...
  44821. +func_arith ()
  44822. +{
  44823. + func_arith_result=`expr "$@"`
  44824. +}
  44825. +
  44826. +# func_len string
  44827. +# STRING may not start with a hyphen.
  44828. +func_len ()
  44829. +{
  44830. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  44831. +}
  44832. +
  44833. +_LT_EOF
  44834. +esac
  44835. +
  44836. +case $lt_shell_append in
  44837. + yes)
  44838. + cat << \_LT_EOF >> "$cfgfile"
  44839. +
  44840. +# func_append var value
  44841. +# Append VALUE to the end of shell variable VAR.
  44842. +func_append ()
  44843. +{
  44844. + eval "$1+=\$2"
  44845. +}
  44846. +_LT_EOF
  44847. + ;;
  44848. + *)
  44849. + cat << \_LT_EOF >> "$cfgfile"
  44850. +
  44851. +# func_append var value
  44852. +# Append VALUE to the end of shell variable VAR.
  44853. +func_append ()
  44854. +{
  44855. + eval "$1=\$$1\$2"
  44856. +}
  44857. +
  44858. +_LT_EOF
  44859. + ;;
  44860. esac
  44861. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  44862. - as_dirs=
  44863. - while :; do
  44864. - case $as_dir in #(
  44865. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  44866. - *) as_qdir=$as_dir;;
  44867. - esac
  44868. - as_dirs="'$as_qdir' $as_dirs"
  44869. - as_dir=`$as_dirname -- "$as_dir" ||
  44870. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44871. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44872. - X"$as_dir" : 'X\(//\)$' \| \
  44873. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  44874. -echo X"$as_dir" |
  44875. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44876. - s//\1/
  44877. - q
  44878. - }
  44879. - /^X\(\/\/\)[^/].*/{
  44880. - s//\1/
  44881. - q
  44882. - }
  44883. - /^X\(\/\/\)$/{
  44884. - s//\1/
  44885. - q
  44886. - }
  44887. - /^X\(\/\).*/{
  44888. - s//\1/
  44889. - q
  44890. - }
  44891. - s/.*/./; q'`
  44892. - test -d "$as_dir" && break
  44893. - done
  44894. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  44895. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  44896. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  44897. - { (exit 1); exit 1; }; }; }
  44898. - # echo "creating $dirpart/$file"
  44899. - echo '# dummy' > "$dirpart/$file"
  44900. - done
  44901. -done
  44902. +
  44903. +
  44904. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  44905. + || (rm -f "$cfgfile"; exit 1)
  44906. +
  44907. + mv -f "$cfgfile" "$ofile" ||
  44908. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  44909. + chmod +x "$ofile"
  44910. +
  44911. ;;
  44912. esac
  44913. done # for ac_tag
  44914. -{ (exit 0); exit 0; }
  44915. +as_fn_exit 0
  44916. _ACEOF
  44917. -chmod +x $CONFIG_STATUS
  44918. ac_clean_files=$ac_clean_files_save
  44919. +test $ac_write_fail = 0 ||
  44920. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  44921. +
  44922. # configure is writing to config.log, and then calls config.status.
  44923. # config.status does its own redirection, appending to config.log.
  44924. @@ -24238,6 +13965,10 @@
  44925. exec 5>>config.log
  44926. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  44927. # would make configure fail if this is the last instruction.
  44928. - $ac_cs_success || { (exit 1); exit 1; }
  44929. + $ac_cs_success || as_fn_exit $?
  44930. +fi
  44931. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  44932. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  44933. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  44934. fi
  44935. diff -Nur libevent-1.3.orig/install-sh libevent-1.3/install-sh
  44936. --- libevent-1.3.orig/install-sh 2007-02-16 01:48:32.000000000 +0100
  44937. +++ libevent-1.3/install-sh 2011-02-17 17:08:17.343554823 +0100
  44938. @@ -1,7 +1,38 @@
  44939. -#! /bin/sh
  44940. -#
  44941. +#!/bin/sh
  44942. # install - install a program, script, or datafile
  44943. -# This comes from X11R5.
  44944. +
  44945. +scriptversion=2009-04-28.21; # UTC
  44946. +
  44947. +# This originates from X11R5 (mit/util/scripts/install.sh), which was
  44948. +# later released in X11R6 (xc/config/util/install.sh) with the
  44949. +# following copyright and license.
  44950. +#
  44951. +# Copyright (C) 1994 X Consortium
  44952. +#
  44953. +# Permission is hereby granted, free of charge, to any person obtaining a copy
  44954. +# of this software and associated documentation files (the "Software"), to
  44955. +# deal in the Software without restriction, including without limitation the
  44956. +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  44957. +# sell copies of the Software, and to permit persons to whom the Software is
  44958. +# furnished to do so, subject to the following conditions:
  44959. +#
  44960. +# The above copyright notice and this permission notice shall be included in
  44961. +# all copies or substantial portions of the Software.
  44962. +#
  44963. +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  44964. +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  44965. +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  44966. +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  44967. +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
  44968. +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  44969. +#
  44970. +# Except as contained in this notice, the name of the X Consortium shall not
  44971. +# be used in advertising or otherwise to promote the sale, use or other deal-
  44972. +# ings in this Software without prior written authorization from the X Consor-
  44973. +# tium.
  44974. +#
  44975. +#
  44976. +# FSF changes to this file are in the public domain.
  44977. #
  44978. # Calling this script install-sh is preferred over install.sh, to prevent
  44979. # `make' implicit rules from creating a file called install from it
  44980. @@ -9,230 +40,481 @@
  44981. #
  44982. # This script is compatible with the BSD install script, but was written
  44983. # from scratch.
  44984. -#
  44985. +nl='
  44986. +'
  44987. +IFS=" "" $nl"
  44988. # set DOITPROG to echo to test this script
  44989. # Don't use :- since 4.3BSD and earlier shells don't like it.
  44990. -doit="${DOITPROG-}"
  44991. +doit=${DOITPROG-}
  44992. +if test -z "$doit"; then
  44993. + doit_exec=exec
  44994. +else
  44995. + doit_exec=$doit
  44996. +fi
  44997. +
  44998. +# Put in absolute file names if you don't have them in your path;
  44999. +# or use environment vars.
  45000. +
  45001. +chgrpprog=${CHGRPPROG-chgrp}
  45002. +chmodprog=${CHMODPROG-chmod}
  45003. +chownprog=${CHOWNPROG-chown}
  45004. +cmpprog=${CMPPROG-cmp}
  45005. +cpprog=${CPPROG-cp}
  45006. +mkdirprog=${MKDIRPROG-mkdir}
  45007. +mvprog=${MVPROG-mv}
  45008. +rmprog=${RMPROG-rm}
  45009. +stripprog=${STRIPPROG-strip}
  45010. +
  45011. +posix_glob='?'
  45012. +initialize_posix_glob='
  45013. + test "$posix_glob" != "?" || {
  45014. + if (set -f) 2>/dev/null; then
  45015. + posix_glob=
  45016. + else
  45017. + posix_glob=:
  45018. + fi
  45019. + }
  45020. +'
  45021. +posix_mkdir=
  45022. -# put in absolute paths if you don't have them in your path; or use env. vars.
  45023. +# Desired mode of installed file.
  45024. +mode=0755
  45025. -mvprog="${MVPROG-mv}"
  45026. -cpprog="${CPPROG-cp}"
  45027. -chmodprog="${CHMODPROG-chmod}"
  45028. -chownprog="${CHOWNPROG-chown}"
  45029. -chgrpprog="${CHGRPPROG-chgrp}"
  45030. -stripprog="${STRIPPROG-strip}"
  45031. -rmprog="${RMPROG-rm}"
  45032. -mkdirprog="${MKDIRPROG-mkdir}"
  45033. -
  45034. -tranformbasename=""
  45035. -transform_arg=""
  45036. -instcmd="$mvprog"
  45037. -chmodcmd="$chmodprog 0755"
  45038. -chowncmd=""
  45039. -chgrpcmd=""
  45040. -stripcmd=""
  45041. +chgrpcmd=
  45042. +chmodcmd=$chmodprog
  45043. +chowncmd=
  45044. +mvcmd=$mvprog
  45045. rmcmd="$rmprog -f"
  45046. -mvcmd="$mvprog"
  45047. -src=""
  45048. -dst=""
  45049. -dir_arg=""
  45050. -
  45051. -while [ x"$1" != x ]; do
  45052. - case $1 in
  45053. - -c) instcmd="$cpprog"
  45054. - shift
  45055. - continue;;
  45056. -
  45057. - -d) dir_arg=true
  45058. - shift
  45059. - continue;;
  45060. -
  45061. - -m) chmodcmd="$chmodprog $2"
  45062. - shift
  45063. - shift
  45064. - continue;;
  45065. -
  45066. - -o) chowncmd="$chownprog $2"
  45067. - shift
  45068. - shift
  45069. - continue;;
  45070. -
  45071. - -g) chgrpcmd="$chgrpprog $2"
  45072. - shift
  45073. - shift
  45074. - continue;;
  45075. -
  45076. - -s) stripcmd="$stripprog"
  45077. - shift
  45078. - continue;;
  45079. -
  45080. - -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  45081. - shift
  45082. - continue;;
  45083. -
  45084. - -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  45085. - shift
  45086. - continue;;
  45087. +stripcmd=
  45088. - *) if [ x"$src" = x ]
  45089. - then
  45090. - src=$1
  45091. - else
  45092. - # this colon is to work around a 386BSD /bin/sh bug
  45093. - :
  45094. - dst=$1
  45095. - fi
  45096. - shift
  45097. - continue;;
  45098. - esac
  45099. -done
  45100. +src=
  45101. +dst=
  45102. +dir_arg=
  45103. +dst_arg=
  45104. -if [ x"$src" = x ]
  45105. -then
  45106. - echo "install: no input file specified"
  45107. - exit 1
  45108. -else
  45109. - true
  45110. -fi
  45111. +copy_on_change=false
  45112. +no_target_directory=
  45113. -if [ x"$dir_arg" != x ]; then
  45114. - dst=$src
  45115. - src=""
  45116. -
  45117. - if [ -d $dst ]; then
  45118. - instcmd=:
  45119. - else
  45120. - instcmd=mkdir
  45121. - fi
  45122. -else
  45123. +usage="\
  45124. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  45125. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  45126. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  45127. + or: $0 [OPTION]... -d DIRECTORIES...
  45128. -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  45129. -# might cause directories to be created, which would be especially bad
  45130. -# if $src (and thus $dsttmp) contains '*'.
  45131. -
  45132. - if [ -f $src -o -d $src ]
  45133. - then
  45134. - true
  45135. - else
  45136. - echo "install: $src does not exist"
  45137. - exit 1
  45138. - fi
  45139. -
  45140. - if [ x"$dst" = x ]
  45141. - then
  45142. - echo "install: no destination specified"
  45143. - exit 1
  45144. - else
  45145. - true
  45146. - fi
  45147. +In the 1st form, copy SRCFILE to DSTFILE.
  45148. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  45149. +In the 4th, create DIRECTORIES.
  45150. -# If destination is a directory, append the input filename; if your system
  45151. -# does not like double slashes in filenames, you may need to add some logic
  45152. +Options:
  45153. + --help display this help and exit.
  45154. + --version display version info and exit.
  45155. - if [ -d $dst ]
  45156. - then
  45157. - dst="$dst"/`basename $src`
  45158. - else
  45159. - true
  45160. - fi
  45161. -fi
  45162. + -c (ignored)
  45163. + -C install only if different (preserve the last data modification time)
  45164. + -d create directories instead of installing files.
  45165. + -g GROUP $chgrpprog installed files to GROUP.
  45166. + -m MODE $chmodprog installed files to MODE.
  45167. + -o USER $chownprog installed files to USER.
  45168. + -s $stripprog installed files.
  45169. + -t DIRECTORY install into DIRECTORY.
  45170. + -T report an error if DSTFILE is a directory.
  45171. -## this sed command emulates the dirname command
  45172. -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  45173. +Environment variables override the default commands:
  45174. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  45175. + RMPROG STRIPPROG
  45176. +"
  45177. -# Make sure that the destination directory exists.
  45178. -# this part is taken from Noah Friedman's mkinstalldirs script
  45179. +while test $# -ne 0; do
  45180. + case $1 in
  45181. + -c) ;;
  45182. -# Skip lots of stat calls in the usual case.
  45183. -if [ ! -d "$dstdir" ]; then
  45184. -defaultIFS='
  45185. -'
  45186. -IFS="${IFS-${defaultIFS}}"
  45187. + -C) copy_on_change=true;;
  45188. -oIFS="${IFS}"
  45189. -# Some sh's can't handle IFS=/ for some reason.
  45190. -IFS='%'
  45191. -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  45192. -IFS="${oIFS}"
  45193. -
  45194. -pathcomp=''
  45195. -
  45196. -while [ $# -ne 0 ] ; do
  45197. - pathcomp="${pathcomp}${1}"
  45198. - shift
  45199. -
  45200. - if [ ! -d "${pathcomp}" ] ;
  45201. - then
  45202. - $mkdirprog "${pathcomp}"
  45203. - else
  45204. - true
  45205. - fi
  45206. + -d) dir_arg=true;;
  45207. - pathcomp="${pathcomp}/"
  45208. -done
  45209. -fi
  45210. + -g) chgrpcmd="$chgrpprog $2"
  45211. + shift;;
  45212. -if [ x"$dir_arg" != x ]
  45213. -then
  45214. - $doit $instcmd $dst &&
  45215. -
  45216. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
  45217. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
  45218. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
  45219. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
  45220. -else
  45221. + --help) echo "$usage"; exit $?;;
  45222. -# If we're going to rename the final executable, determine the name now.
  45223. + -m) mode=$2
  45224. + case $mode in
  45225. + *' '* | *' '* | *'
  45226. +'* | *'*'* | *'?'* | *'['*)
  45227. + echo "$0: invalid mode: $mode" >&2
  45228. + exit 1;;
  45229. + esac
  45230. + shift;;
  45231. - if [ x"$transformarg" = x ]
  45232. - then
  45233. - dstfile=`basename $dst`
  45234. - else
  45235. - dstfile=`basename $dst $transformbasename |
  45236. - sed $transformarg`$transformbasename
  45237. - fi
  45238. + -o) chowncmd="$chownprog $2"
  45239. + shift;;
  45240. -# don't allow the sed command to completely eliminate the filename
  45241. + -s) stripcmd=$stripprog;;
  45242. - if [ x"$dstfile" = x ]
  45243. - then
  45244. - dstfile=`basename $dst`
  45245. - else
  45246. - true
  45247. - fi
  45248. + -t) dst_arg=$2
  45249. + shift;;
  45250. +
  45251. + -T) no_target_directory=true;;
  45252. +
  45253. + --version) echo "$0 $scriptversion"; exit $?;;
  45254. +
  45255. + --) shift
  45256. + break;;
  45257. -# Make a temp file name in the proper directory.
  45258. + -*) echo "$0: invalid option: $1" >&2
  45259. + exit 1;;
  45260. - dsttmp=$dstdir/#inst.$$#
  45261. + *) break;;
  45262. + esac
  45263. + shift
  45264. +done
  45265. +
  45266. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  45267. + # When -d is used, all remaining arguments are directories to create.
  45268. + # When -t is used, the destination is already specified.
  45269. + # Otherwise, the last argument is the destination. Remove it from $@.
  45270. + for arg
  45271. + do
  45272. + if test -n "$dst_arg"; then
  45273. + # $@ is not empty: it contains at least $arg.
  45274. + set fnord "$@" "$dst_arg"
  45275. + shift # fnord
  45276. + fi
  45277. + shift # arg
  45278. + dst_arg=$arg
  45279. + done
  45280. +fi
  45281. -# Move or copy the file name to the temp name
  45282. +if test $# -eq 0; then
  45283. + if test -z "$dir_arg"; then
  45284. + echo "$0: no input file specified." >&2
  45285. + exit 1
  45286. + fi
  45287. + # It's OK to call `install-sh -d' without argument.
  45288. + # This can happen when creating conditional directories.
  45289. + exit 0
  45290. +fi
  45291. - $doit $instcmd $src $dsttmp &&
  45292. +if test -z "$dir_arg"; then
  45293. + trap '(exit $?); exit' 1 2 13 15
  45294. - trap "rm -f ${dsttmp}" 0 &&
  45295. + # Set umask so as not to create temps with too-generous modes.
  45296. + # However, 'strip' requires both read and write access to temps.
  45297. + case $mode in
  45298. + # Optimize common cases.
  45299. + *644) cp_umask=133;;
  45300. + *755) cp_umask=22;;
  45301. +
  45302. + *[0-7])
  45303. + if test -z "$stripcmd"; then
  45304. + u_plus_rw=
  45305. + else
  45306. + u_plus_rw='% 200'
  45307. + fi
  45308. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  45309. + *)
  45310. + if test -z "$stripcmd"; then
  45311. + u_plus_rw=
  45312. + else
  45313. + u_plus_rw=,u+rw
  45314. + fi
  45315. + cp_umask=$mode$u_plus_rw;;
  45316. + esac
  45317. +fi
  45318. -# and set any options; do chmod last to preserve setuid bits
  45319. +for src
  45320. +do
  45321. + # Protect names starting with `-'.
  45322. + case $src in
  45323. + -*) src=./$src;;
  45324. + esac
  45325. +
  45326. + if test -n "$dir_arg"; then
  45327. + dst=$src
  45328. + dstdir=$dst
  45329. + test -d "$dstdir"
  45330. + dstdir_status=$?
  45331. + else
  45332. +
  45333. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  45334. + # might cause directories to be created, which would be especially bad
  45335. + # if $src (and thus $dsttmp) contains '*'.
  45336. + if test ! -f "$src" && test ! -d "$src"; then
  45337. + echo "$0: $src does not exist." >&2
  45338. + exit 1
  45339. + fi
  45340. +
  45341. + if test -z "$dst_arg"; then
  45342. + echo "$0: no destination specified." >&2
  45343. + exit 1
  45344. + fi
  45345. +
  45346. + dst=$dst_arg
  45347. + # Protect names starting with `-'.
  45348. + case $dst in
  45349. + -*) dst=./$dst;;
  45350. + esac
  45351. -# If any of these fail, we abort the whole thing. If we want to
  45352. -# ignore errors from any of these, just make sure not to ignore
  45353. -# errors from the above "$doit $instcmd $src $dsttmp" command.
  45354. + # If destination is a directory, append the input filename; won't work
  45355. + # if double slashes aren't ignored.
  45356. + if test -d "$dst"; then
  45357. + if test -n "$no_target_directory"; then
  45358. + echo "$0: $dst_arg: Is a directory" >&2
  45359. + exit 1
  45360. + fi
  45361. + dstdir=$dst
  45362. + dst=$dstdir/`basename "$src"`
  45363. + dstdir_status=0
  45364. + else
  45365. + # Prefer dirname, but fall back on a substitute if dirname fails.
  45366. + dstdir=`
  45367. + (dirname "$dst") 2>/dev/null ||
  45368. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45369. + X"$dst" : 'X\(//\)[^/]' \| \
  45370. + X"$dst" : 'X\(//\)$' \| \
  45371. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  45372. + echo X"$dst" |
  45373. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45374. + s//\1/
  45375. + q
  45376. + }
  45377. + /^X\(\/\/\)[^/].*/{
  45378. + s//\1/
  45379. + q
  45380. + }
  45381. + /^X\(\/\/\)$/{
  45382. + s//\1/
  45383. + q
  45384. + }
  45385. + /^X\(\/\).*/{
  45386. + s//\1/
  45387. + q
  45388. + }
  45389. + s/.*/./; q'
  45390. + `
  45391. +
  45392. + test -d "$dstdir"
  45393. + dstdir_status=$?
  45394. + fi
  45395. + fi
  45396. +
  45397. + obsolete_mkdir_used=false
  45398. +
  45399. + if test $dstdir_status != 0; then
  45400. + case $posix_mkdir in
  45401. + '')
  45402. + # Create intermediate dirs using mode 755 as modified by the umask.
  45403. + # This is like FreeBSD 'install' as of 1997-10-28.
  45404. + umask=`umask`
  45405. + case $stripcmd.$umask in
  45406. + # Optimize common cases.
  45407. + *[2367][2367]) mkdir_umask=$umask;;
  45408. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  45409. +
  45410. + *[0-7])
  45411. + mkdir_umask=`expr $umask + 22 \
  45412. + - $umask % 100 % 40 + $umask % 20 \
  45413. + - $umask % 10 % 4 + $umask % 2
  45414. + `;;
  45415. + *) mkdir_umask=$umask,go-w;;
  45416. + esac
  45417. +
  45418. + # With -d, create the new directory with the user-specified mode.
  45419. + # Otherwise, rely on $mkdir_umask.
  45420. + if test -n "$dir_arg"; then
  45421. + mkdir_mode=-m$mode
  45422. + else
  45423. + mkdir_mode=
  45424. + fi
  45425. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
  45426. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
  45427. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
  45428. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
  45429. + posix_mkdir=false
  45430. + case $umask in
  45431. + *[123567][0-7][0-7])
  45432. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  45433. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  45434. + ;;
  45435. + *)
  45436. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  45437. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  45438. -# Now rename the file to the real destination.
  45439. + if (umask $mkdir_umask &&
  45440. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  45441. + then
  45442. + if test -z "$dir_arg" || {
  45443. + # Check for POSIX incompatibilities with -m.
  45444. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  45445. + # other-writeable bit of parent directory when it shouldn't.
  45446. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  45447. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  45448. + case $ls_ld_tmpdir in
  45449. + d????-?r-*) different_mode=700;;
  45450. + d????-?--*) different_mode=755;;
  45451. + *) false;;
  45452. + esac &&
  45453. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  45454. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  45455. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  45456. + }
  45457. + }
  45458. + then posix_mkdir=:
  45459. + fi
  45460. + rmdir "$tmpdir/d" "$tmpdir"
  45461. + else
  45462. + # Remove any dirs left behind by ancient mkdir implementations.
  45463. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  45464. + fi
  45465. + trap '' 0;;
  45466. + esac;;
  45467. + esac
  45468. - $doit $rmcmd -f $dstdir/$dstfile &&
  45469. - $doit $mvcmd $dsttmp $dstdir/$dstfile
  45470. + if
  45471. + $posix_mkdir && (
  45472. + umask $mkdir_umask &&
  45473. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  45474. + )
  45475. + then :
  45476. + else
  45477. +
  45478. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  45479. + # or it failed possibly due to a race condition. Create the
  45480. + # directory the slow way, step by step, checking for races as we go.
  45481. +
  45482. + case $dstdir in
  45483. + /*) prefix='/';;
  45484. + -*) prefix='./';;
  45485. + *) prefix='';;
  45486. + esac
  45487. +
  45488. + eval "$initialize_posix_glob"
  45489. +
  45490. + oIFS=$IFS
  45491. + IFS=/
  45492. + $posix_glob set -f
  45493. + set fnord $dstdir
  45494. + shift
  45495. + $posix_glob set +f
  45496. + IFS=$oIFS
  45497. +
  45498. + prefixes=
  45499. +
  45500. + for d
  45501. + do
  45502. + test -z "$d" && continue
  45503. +
  45504. + prefix=$prefix$d
  45505. + if test -d "$prefix"; then
  45506. + prefixes=
  45507. + else
  45508. + if $posix_mkdir; then
  45509. + (umask=$mkdir_umask &&
  45510. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  45511. + # Don't fail if two instances are running concurrently.
  45512. + test -d "$prefix" || exit 1
  45513. + else
  45514. + case $prefix in
  45515. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  45516. + *) qprefix=$prefix;;
  45517. + esac
  45518. + prefixes="$prefixes '$qprefix'"
  45519. + fi
  45520. + fi
  45521. + prefix=$prefix/
  45522. + done
  45523. -fi &&
  45524. + if test -n "$prefixes"; then
  45525. + # Don't fail if two instances are running concurrently.
  45526. + (umask $mkdir_umask &&
  45527. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  45528. + test -d "$dstdir" || exit 1
  45529. + obsolete_mkdir_used=true
  45530. + fi
  45531. + fi
  45532. + fi
  45533. +
  45534. + if test -n "$dir_arg"; then
  45535. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  45536. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  45537. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  45538. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  45539. + else
  45540. +
  45541. + # Make a couple of temp file names in the proper directory.
  45542. + dsttmp=$dstdir/_inst.$$_
  45543. + rmtmp=$dstdir/_rm.$$_
  45544. +
  45545. + # Trap to clean up those temp files at exit.
  45546. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  45547. +
  45548. + # Copy the file name to the temp name.
  45549. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  45550. +
  45551. + # and set any options; do chmod last to preserve setuid bits.
  45552. + #
  45553. + # If any of these fail, we abort the whole thing. If we want to
  45554. + # ignore errors from any of these, just make sure not to ignore
  45555. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  45556. + #
  45557. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  45558. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  45559. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  45560. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  45561. +
  45562. + # If -C, don't bother to copy if it wouldn't change the file.
  45563. + if $copy_on_change &&
  45564. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  45565. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  45566. +
  45567. + eval "$initialize_posix_glob" &&
  45568. + $posix_glob set -f &&
  45569. + set X $old && old=:$2:$4:$5:$6 &&
  45570. + set X $new && new=:$2:$4:$5:$6 &&
  45571. + $posix_glob set +f &&
  45572. +
  45573. + test "$old" = "$new" &&
  45574. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  45575. + then
  45576. + rm -f "$dsttmp"
  45577. + else
  45578. + # Rename the file to the real destination.
  45579. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  45580. +
  45581. + # The rename failed, perhaps because mv can't rename something else
  45582. + # to itself, or perhaps because mv is so ancient that it does not
  45583. + # support -f.
  45584. + {
  45585. + # Now remove or move aside any old file at destination location.
  45586. + # We try this two ways since rm can't unlink itself on some
  45587. + # systems and the destination file might be busy for other
  45588. + # reasons. In this case, the final cleanup might fail but the new
  45589. + # file should still install successfully.
  45590. + {
  45591. + test ! -f "$dst" ||
  45592. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  45593. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  45594. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  45595. + } ||
  45596. + { echo "$0: cannot unlink or rename $dst" >&2
  45597. + (exit 1); exit 1
  45598. + }
  45599. + } &&
  45600. +
  45601. + # Now rename the file to the real destination.
  45602. + $doit $mvcmd "$dsttmp" "$dst"
  45603. + }
  45604. + fi || exit 1
  45605. + trap '' 0
  45606. + fi
  45607. +done
  45608. -exit 0
  45609. +# Local variables:
  45610. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  45611. +# time-stamp-start: "scriptversion="
  45612. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  45613. +# time-stamp-time-zone: "UTC"
  45614. +# time-stamp-end: "; # UTC"
  45615. +# End:
  45616. diff -Nur libevent-1.3.orig/ltmain.sh libevent-1.3/ltmain.sh
  45617. --- libevent-1.3.orig/ltmain.sh 2006-12-09 05:42:31.000000000 +0100
  45618. +++ libevent-1.3/ltmain.sh 2011-02-17 17:08:13.963553568 +0100
  45619. @@ -1,30 +1,174 @@
  45620. -# ltmain.sh - Provide generalized library-building support services.
  45621. -# NOTE: Changing this file will not affect anything until you rerun configure.
  45622. -#
  45623. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  45624. -# Free Software Foundation, Inc.
  45625. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  45626. -#
  45627. -# This program is free software; you can redistribute it and/or modify
  45628. +# Generated from ltmain.m4sh.
  45629. +
  45630. +# ltmain.sh (GNU libtool) 2.2.6b
  45631. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  45632. +
  45633. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  45634. +# This is free software; see the source for copying conditions. There is NO
  45635. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  45636. +
  45637. +# GNU Libtool is free software; you can redistribute it and/or modify
  45638. # it under the terms of the GNU General Public License as published by
  45639. # the Free Software Foundation; either version 2 of the License, or
  45640. # (at your option) any later version.
  45641. #
  45642. -# This program is distributed in the hope that it will be useful, but
  45643. +# As a special exception to the GNU General Public License,
  45644. +# if you distribute this file as part of a program or library that
  45645. +# is built using GNU Libtool, you may include this file under the
  45646. +# same distribution terms that you use for the rest of that program.
  45647. +#
  45648. +# GNU Libtool is distributed in the hope that it will be useful, but
  45649. # WITHOUT ANY WARRANTY; without even the implied warranty of
  45650. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  45651. # General Public License for more details.
  45652. #
  45653. # You should have received a copy of the GNU General Public License
  45654. -# along with this program; if not, write to the Free Software
  45655. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45656. +# along with GNU Libtool; see the file COPYING. If not, a copy
  45657. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  45658. +# or obtained by writing to the Free Software Foundation, Inc.,
  45659. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45660. +
  45661. +# Usage: $progname [OPTION]... [MODE-ARG]...
  45662. +#
  45663. +# Provide generalized library-building support services.
  45664. #
  45665. -# As a special exception to the GNU General Public License, if you
  45666. -# distribute this file as part of a program that contains a
  45667. -# configuration script generated by Autoconf, you may include it under
  45668. -# the same distribution terms that you use for the rest of that program.
  45669. +# --config show all configuration variables
  45670. +# --debug enable verbose shell tracing
  45671. +# -n, --dry-run display commands without modifying any files
  45672. +# --features display basic configuration information and exit
  45673. +# --mode=MODE use operation mode MODE
  45674. +# --preserve-dup-deps don't remove duplicate dependency libraries
  45675. +# --quiet, --silent don't print informational messages
  45676. +# --tag=TAG use configuration variables from tag TAG
  45677. +# -v, --verbose print informational messages (default)
  45678. +# --version print version information
  45679. +# -h, --help print short or long help message
  45680. +#
  45681. +# MODE must be one of the following:
  45682. +#
  45683. +# clean remove files from the build directory
  45684. +# compile compile a source file into a libtool object
  45685. +# execute automatically set library path, then run a program
  45686. +# finish complete the installation of libtool libraries
  45687. +# install install libraries or executables
  45688. +# link create a library or an executable
  45689. +# uninstall remove libraries from an installed directory
  45690. +#
  45691. +# MODE-ARGS vary depending on the MODE.
  45692. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  45693. +#
  45694. +# When reporting a bug, please describe a test case to reproduce it and
  45695. +# include the following information:
  45696. +#
  45697. +# host-triplet: $host
  45698. +# shell: $SHELL
  45699. +# compiler: $LTCC
  45700. +# compiler flags: $LTCFLAGS
  45701. +# linker: $LD (gnu? $with_gnu_ld)
  45702. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  45703. +# automake: $automake_version
  45704. +# autoconf: $autoconf_version
  45705. +#
  45706. +# Report bugs to <bug-libtool@gnu.org>.
  45707. +
  45708. +PROGRAM=ltmain.sh
  45709. +PACKAGE=libtool
  45710. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  45711. +TIMESTAMP=""
  45712. +package_revision=1.3017
  45713. +
  45714. +# Be Bourne compatible
  45715. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  45716. + emulate sh
  45717. + NULLCMD=:
  45718. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  45719. + # is contrary to our usage. Disable this feature.
  45720. + alias -g '${1+"$@"}'='"$@"'
  45721. + setopt NO_GLOB_SUBST
  45722. +else
  45723. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  45724. +fi
  45725. +BIN_SH=xpg4; export BIN_SH # for Tru64
  45726. +DUALCASE=1; export DUALCASE # for MKS sh
  45727. +
  45728. +# NLS nuisances: We save the old values to restore during execute mode.
  45729. +# Only set LANG and LC_ALL to C if already set.
  45730. +# These must not be set unconditionally because not all systems understand
  45731. +# e.g. LANG=C (notably SCO).
  45732. +lt_user_locale=
  45733. +lt_safe_locale=
  45734. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  45735. +do
  45736. + eval "if test \"\${$lt_var+set}\" = set; then
  45737. + save_$lt_var=\$$lt_var
  45738. + $lt_var=C
  45739. + export $lt_var
  45740. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  45741. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  45742. + fi"
  45743. +done
  45744. +
  45745. +$lt_unset CDPATH
  45746. +
  45747. +
  45748. +
  45749. +
  45750. +
  45751. +: ${CP="cp -f"}
  45752. +: ${ECHO="echo"}
  45753. +: ${EGREP="/bin/grep -E"}
  45754. +: ${FGREP="/bin/grep -F"}
  45755. +: ${GREP="/bin/grep"}
  45756. +: ${LN_S="ln -s"}
  45757. +: ${MAKE="make"}
  45758. +: ${MKDIR="mkdir"}
  45759. +: ${MV="mv -f"}
  45760. +: ${RM="rm -f"}
  45761. +: ${SED="/bin/sed"}
  45762. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  45763. +: ${Xsed="$SED -e 1s/^X//"}
  45764. -basename="s,^.*/,,g"
  45765. +# Global variables:
  45766. +EXIT_SUCCESS=0
  45767. +EXIT_FAILURE=1
  45768. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  45769. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  45770. +
  45771. +exit_status=$EXIT_SUCCESS
  45772. +
  45773. +# Make sure IFS has a sensible default
  45774. +lt_nl='
  45775. +'
  45776. +IFS=" $lt_nl"
  45777. +
  45778. +dirname="s,/[^/]*$,,"
  45779. +basename="s,^.*/,,"
  45780. +
  45781. +# func_dirname_and_basename file append nondir_replacement
  45782. +# perform func_basename and func_dirname in a single function
  45783. +# call:
  45784. +# dirname: Compute the dirname of FILE. If nonempty,
  45785. +# add APPEND to the result, otherwise set result
  45786. +# to NONDIR_REPLACEMENT.
  45787. +# value returned in "$func_dirname_result"
  45788. +# basename: Compute filename of FILE.
  45789. +# value retuned in "$func_basename_result"
  45790. +# Implementation must be kept synchronized with func_dirname
  45791. +# and func_basename. For efficiency, we do not delegate to
  45792. +# those functions but instead duplicate the functionality here.
  45793. +func_dirname_and_basename ()
  45794. +{
  45795. + # Extract subdirectory from the argument.
  45796. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  45797. + if test "X$func_dirname_result" = "X${1}"; then
  45798. + func_dirname_result="${3}"
  45799. + else
  45800. + func_dirname_result="$func_dirname_result${2}"
  45801. + fi
  45802. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  45803. +}
  45804. +
  45805. +# Generated shell functions inserted here.
  45806. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  45807. # is ksh but when the shell is invoked as "sh" and the current value of
  45808. @@ -34,112 +178,174 @@
  45809. progpath="$0"
  45810. # The name of this program:
  45811. -progname=`echo "$progpath" | $SED $basename`
  45812. -modename="$progname"
  45813. +# In the unlikely event $progname began with a '-', it would play havoc with
  45814. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  45815. +func_dirname_and_basename "$progpath"
  45816. +progname=$func_basename_result
  45817. +case $progname in
  45818. + -*) progname=./$progname ;;
  45819. +esac
  45820. -# Global variables:
  45821. -EXIT_SUCCESS=0
  45822. -EXIT_FAILURE=1
  45823. +# Make sure we have an absolute path for reexecution:
  45824. +case $progpath in
  45825. + [\\/]*|[A-Za-z]:\\*) ;;
  45826. + *[\\/]*)
  45827. + progdir=$func_dirname_result
  45828. + progdir=`cd "$progdir" && pwd`
  45829. + progpath="$progdir/$progname"
  45830. + ;;
  45831. + *)
  45832. + save_IFS="$IFS"
  45833. + IFS=:
  45834. + for progdir in $PATH; do
  45835. + IFS="$save_IFS"
  45836. + test -x "$progdir/$progname" && break
  45837. + done
  45838. + IFS="$save_IFS"
  45839. + test -n "$progdir" || progdir=`pwd`
  45840. + progpath="$progdir/$progname"
  45841. + ;;
  45842. +esac
  45843. -PROGRAM=ltmain.sh
  45844. -PACKAGE=libtool
  45845. -VERSION=1.5.22
  45846. -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  45847. +# Sed substitution that helps us do robust quoting. It backslashifies
  45848. +# metacharacters that are still active within double-quoted strings.
  45849. +Xsed="${SED}"' -e 1s/^X//'
  45850. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  45851. -# See if we are running on zsh, and set the options which allow our
  45852. -# commands through without removal of \ escapes.
  45853. -if test -n "${ZSH_VERSION+set}" ; then
  45854. - setopt NO_GLOB_SUBST
  45855. -fi
  45856. +# Same as above, but do not quote variable references.
  45857. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  45858. -# Check that we have a working $echo.
  45859. -if test "X$1" = X--no-reexec; then
  45860. - # Discard the --no-reexec flag, and continue.
  45861. - shift
  45862. -elif test "X$1" = X--fallback-echo; then
  45863. - # Avoid inline document here, it may be left over
  45864. - :
  45865. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  45866. - # Yippee, $echo works!
  45867. - :
  45868. -else
  45869. - # Restart under the correct shell, and then maybe $echo will work.
  45870. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  45871. -fi
  45872. +# Re-`\' parameter expansions in output of double_quote_subst that were
  45873. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  45874. +# in input to double_quote_subst, that '$' was protected from expansion.
  45875. +# Since each input `\' is now two `\'s, look for any number of runs of
  45876. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  45877. +bs='\\'
  45878. +bs2='\\\\'
  45879. +bs4='\\\\\\\\'
  45880. +dollar='\$'
  45881. +sed_double_backslash="\
  45882. + s/$bs4/&\\
  45883. +/g
  45884. + s/^$bs2$dollar/$bs&/
  45885. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  45886. + s/\n//g"
  45887. +
  45888. +# Standard options:
  45889. +opt_dry_run=false
  45890. +opt_help=false
  45891. +opt_quiet=false
  45892. +opt_verbose=false
  45893. +opt_warning=:
  45894. +
  45895. +# func_echo arg...
  45896. +# Echo program name prefixed message, along with the current mode
  45897. +# name if it has been set yet.
  45898. +func_echo ()
  45899. +{
  45900. + $ECHO "$progname${mode+: }$mode: $*"
  45901. +}
  45902. -if test "X$1" = X--fallback-echo; then
  45903. - # used as fallback echo
  45904. - shift
  45905. - cat <<EOF
  45906. -$*
  45907. -EOF
  45908. - exit $EXIT_SUCCESS
  45909. -fi
  45910. +# func_verbose arg...
  45911. +# Echo program name prefixed message in verbose mode only.
  45912. +func_verbose ()
  45913. +{
  45914. + $opt_verbose && func_echo ${1+"$@"}
  45915. -default_mode=
  45916. -help="Try \`$progname --help' for more information."
  45917. -magic="%%%MAGIC variable%%%"
  45918. -mkdir="mkdir"
  45919. -mv="mv -f"
  45920. -rm="rm -f"
  45921. + # A bug in bash halts the script if the last line of a function
  45922. + # fails when set -e is in force, so we need another command to
  45923. + # work around that:
  45924. + :
  45925. +}
  45926. -# Sed substitution that helps us do robust quoting. It backslashifies
  45927. -# metacharacters that are still active within double-quoted strings.
  45928. -Xsed="${SED}"' -e 1s/^X//'
  45929. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  45930. -# test EBCDIC or ASCII
  45931. -case `echo X|tr X '\101'` in
  45932. - A) # ASCII based system
  45933. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  45934. - SP2NL='tr \040 \012'
  45935. - NL2SP='tr \015\012 \040\040'
  45936. - ;;
  45937. - *) # EBCDIC based system
  45938. - SP2NL='tr \100 \n'
  45939. - NL2SP='tr \r\n \100\100'
  45940. - ;;
  45941. -esac
  45942. +# func_error arg...
  45943. +# Echo program name prefixed message to standard error.
  45944. +func_error ()
  45945. +{
  45946. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  45947. +}
  45948. -# NLS nuisances.
  45949. -# Only set LANG and LC_ALL to C if already set.
  45950. -# These must not be set unconditionally because not all systems understand
  45951. -# e.g. LANG=C (notably SCO).
  45952. -# We save the old values to restore during execute mode.
  45953. -if test "${LC_ALL+set}" = set; then
  45954. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  45955. -fi
  45956. -if test "${LANG+set}" = set; then
  45957. - save_LANG="$LANG"; LANG=C; export LANG
  45958. -fi
  45959. +# func_warning arg...
  45960. +# Echo program name prefixed warning message to standard error.
  45961. +func_warning ()
  45962. +{
  45963. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  45964. -# Make sure IFS has a sensible default
  45965. -lt_nl='
  45966. -'
  45967. -IFS=" $lt_nl"
  45968. + # bash bug again:
  45969. + :
  45970. +}
  45971. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  45972. - $echo "$modename: not configured to build any kind of library" 1>&2
  45973. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  45974. - exit $EXIT_FAILURE
  45975. -fi
  45976. +# func_fatal_error arg...
  45977. +# Echo program name prefixed message to standard error, and exit.
  45978. +func_fatal_error ()
  45979. +{
  45980. + func_error ${1+"$@"}
  45981. + exit $EXIT_FAILURE
  45982. +}
  45983. -# Global variables.
  45984. -mode=$default_mode
  45985. -nonopt=
  45986. -prev=
  45987. -prevopt=
  45988. -run=
  45989. -show="$echo"
  45990. -show_help=
  45991. -execute_dlfiles=
  45992. -duplicate_deps=no
  45993. -preserve_args=
  45994. -lo2o="s/\\.lo\$/.${objext}/"
  45995. -o2lo="s/\\.${objext}\$/.lo/"
  45996. +# func_fatal_help arg...
  45997. +# Echo program name prefixed message to standard error, followed by
  45998. +# a help hint, and exit.
  45999. +func_fatal_help ()
  46000. +{
  46001. + func_error ${1+"$@"}
  46002. + func_fatal_error "$help"
  46003. +}
  46004. +help="Try \`$progname --help' for more information." ## default
  46005. +
  46006. +
  46007. +# func_grep expression filename
  46008. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  46009. +func_grep ()
  46010. +{
  46011. + $GREP "$1" "$2" >/dev/null 2>&1
  46012. +}
  46013. +
  46014. +
  46015. +# func_mkdir_p directory-path
  46016. +# Make sure the entire path to DIRECTORY-PATH is available.
  46017. +func_mkdir_p ()
  46018. +{
  46019. + my_directory_path="$1"
  46020. + my_dir_list=
  46021. +
  46022. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  46023. +
  46024. + # Protect directory names starting with `-'
  46025. + case $my_directory_path in
  46026. + -*) my_directory_path="./$my_directory_path" ;;
  46027. + esac
  46028. +
  46029. + # While some portion of DIR does not yet exist...
  46030. + while test ! -d "$my_directory_path"; do
  46031. + # ...make a list in topmost first order. Use a colon delimited
  46032. + # list incase some portion of path contains whitespace.
  46033. + my_dir_list="$my_directory_path:$my_dir_list"
  46034. +
  46035. + # If the last portion added has no slash in it, the list is done
  46036. + case $my_directory_path in */*) ;; *) break ;; esac
  46037. +
  46038. + # ...otherwise throw away the child directory and loop
  46039. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  46040. + done
  46041. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  46042. +
  46043. + save_mkdir_p_IFS="$IFS"; IFS=':'
  46044. + for my_dir in $my_dir_list; do
  46045. + IFS="$save_mkdir_p_IFS"
  46046. + # mkdir can fail with a `File exist' error if two processes
  46047. + # try to create one of the directories concurrently. Don't
  46048. + # stop in that case!
  46049. + $MKDIR "$my_dir" 2>/dev/null || :
  46050. + done
  46051. + IFS="$save_mkdir_p_IFS"
  46052. +
  46053. + # Bail out if we (or some other process) failed to create a directory.
  46054. + test -d "$my_directory_path" || \
  46055. + func_fatal_error "Failed to create \`$1'"
  46056. + fi
  46057. +}
  46058. -#####################################
  46059. -# Shell function definitions:
  46060. -# This seems to be the best place for them
  46061. # func_mktempdir [string]
  46062. # Make a temporary directory that won't clash with other running
  46063. @@ -149,7 +355,7 @@
  46064. {
  46065. my_template="${TMPDIR-/tmp}/${1-$progname}"
  46066. - if test "$run" = ":"; then
  46067. + if test "$opt_dry_run" = ":"; then
  46068. # Return a directory name, but don't create it in dry-run mode
  46069. my_tmpdir="${my_template}-$$"
  46070. else
  46071. @@ -158,546 +364,818 @@
  46072. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  46073. if test ! -d "$my_tmpdir"; then
  46074. - # Failing that, at least try and use $RANDOM to avoid a race
  46075. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  46076. + # Failing that, at least try and use $RANDOM to avoid a race
  46077. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  46078. - save_mktempdir_umask=`umask`
  46079. - umask 0077
  46080. - $mkdir "$my_tmpdir"
  46081. - umask $save_mktempdir_umask
  46082. + save_mktempdir_umask=`umask`
  46083. + umask 0077
  46084. + $MKDIR "$my_tmpdir"
  46085. + umask $save_mktempdir_umask
  46086. fi
  46087. # If we're not in dry-run mode, bomb out on failure
  46088. - test -d "$my_tmpdir" || {
  46089. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  46090. - exit $EXIT_FAILURE
  46091. - }
  46092. + test -d "$my_tmpdir" || \
  46093. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  46094. fi
  46095. - $echo "X$my_tmpdir" | $Xsed
  46096. + $ECHO "X$my_tmpdir" | $Xsed
  46097. }
  46098. -# func_win32_libid arg
  46099. -# return the library type of file 'arg'
  46100. -#
  46101. -# Need a lot of goo to handle *both* DLLs and import libs
  46102. -# Has to be a shell function in order to 'eat' the argument
  46103. -# that is supplied when $file_magic_command is called.
  46104. -func_win32_libid ()
  46105. +# func_quote_for_eval arg
  46106. +# Aesthetically quote ARG to be evaled later.
  46107. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  46108. +# is double-quoted, suitable for a subsequent eval, whereas
  46109. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  46110. +# which are still active within double quotes backslashified.
  46111. +func_quote_for_eval ()
  46112. {
  46113. - win32_libid_type="unknown"
  46114. - win32_fileres=`file -L $1 2>/dev/null`
  46115. - case $win32_fileres in
  46116. - *ar\ archive\ import\ library*) # definitely import
  46117. - win32_libid_type="x86 archive import"
  46118. - ;;
  46119. - *ar\ archive*) # could be an import, or static
  46120. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  46121. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  46122. - win32_nmres=`eval $NM -f posix -A $1 | \
  46123. - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  46124. - case $win32_nmres in
  46125. - import*) win32_libid_type="x86 archive import";;
  46126. - *) win32_libid_type="x86 archive static";;
  46127. - esac
  46128. - fi
  46129. - ;;
  46130. - *DLL*)
  46131. - win32_libid_type="x86 DLL"
  46132. - ;;
  46133. - *executable*) # but shell scripts are "executable" too...
  46134. - case $win32_fileres in
  46135. - *MS\ Windows\ PE\ Intel*)
  46136. - win32_libid_type="x86 DLL"
  46137. - ;;
  46138. + case $1 in
  46139. + *[\\\`\"\$]*)
  46140. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  46141. + *)
  46142. + func_quote_for_eval_unquoted_result="$1" ;;
  46143. + esac
  46144. +
  46145. + case $func_quote_for_eval_unquoted_result in
  46146. + # Double-quote args containing shell metacharacters to delay
  46147. + # word splitting, command substitution and and variable
  46148. + # expansion for a subsequent eval.
  46149. + # Many Bourne shells cannot handle close brackets correctly
  46150. + # in scan sets, so we specify it separately.
  46151. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46152. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  46153. + ;;
  46154. + *)
  46155. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  46156. esac
  46157. - ;;
  46158. - esac
  46159. - $echo $win32_libid_type
  46160. }
  46161. -# func_infer_tag arg
  46162. -# Infer tagged configuration to use if any are available and
  46163. -# if one wasn't chosen via the "--tag" command line option.
  46164. -# Only attempt this if the compiler in the base compile
  46165. -# command doesn't match the default compiler.
  46166. -# arg is usually of the form 'gcc ...'
  46167. -func_infer_tag ()
  46168. +# func_quote_for_expand arg
  46169. +# Aesthetically quote ARG to be evaled later; same as above,
  46170. +# but do not quote variable references.
  46171. +func_quote_for_expand ()
  46172. {
  46173. - if test -n "$available_tags" && test -z "$tagname"; then
  46174. - CC_quoted=
  46175. - for arg in $CC; do
  46176. - case $arg in
  46177. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46178. - arg="\"$arg\""
  46179. - ;;
  46180. - esac
  46181. - CC_quoted="$CC_quoted $arg"
  46182. - done
  46183. - case $@ in
  46184. - # Blanks in the command may have been stripped by the calling shell,
  46185. - # but not from the CC environment variable when configure was run.
  46186. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  46187. - # Blanks at the start of $base_compile will cause this to fail
  46188. - # if we don't check for them as well.
  46189. + case $1 in
  46190. + *[\\\`\"]*)
  46191. + my_arg=`$ECHO "X$1" | $Xsed \
  46192. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  46193. *)
  46194. - for z in $available_tags; do
  46195. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  46196. - # Evaluate the configuration.
  46197. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  46198. - CC_quoted=
  46199. - for arg in $CC; do
  46200. - # Double-quote args containing other shell metacharacters.
  46201. - case $arg in
  46202. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46203. - arg="\"$arg\""
  46204. - ;;
  46205. - esac
  46206. - CC_quoted="$CC_quoted $arg"
  46207. - done
  46208. - case "$@ " in
  46209. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  46210. - # The compiler in the base compile command matches
  46211. - # the one in the tagged configuration.
  46212. - # Assume this is the tagged configuration we want.
  46213. - tagname=$z
  46214. - break
  46215. - ;;
  46216. - esac
  46217. - fi
  46218. - done
  46219. - # If $tagname still isn't set, then no tagged configuration
  46220. - # was found and let the user know that the "--tag" command
  46221. - # line option must be used.
  46222. - if test -z "$tagname"; then
  46223. - $echo "$modename: unable to infer tagged configuration"
  46224. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  46225. - exit $EXIT_FAILURE
  46226. -# else
  46227. -# $echo "$modename: using $tagname tagged configuration"
  46228. - fi
  46229. - ;;
  46230. - esac
  46231. - fi
  46232. + my_arg="$1" ;;
  46233. + esac
  46234. +
  46235. + case $my_arg in
  46236. + # Double-quote args containing shell metacharacters to delay
  46237. + # word splitting and command substitution for a subsequent eval.
  46238. + # Many Bourne shells cannot handle close brackets correctly
  46239. + # in scan sets, so we specify it separately.
  46240. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46241. + my_arg="\"$my_arg\""
  46242. + ;;
  46243. + esac
  46244. +
  46245. + func_quote_for_expand_result="$my_arg"
  46246. }
  46247. -# func_extract_an_archive dir oldlib
  46248. -func_extract_an_archive ()
  46249. +# func_show_eval cmd [fail_exp]
  46250. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  46251. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  46252. +# is given, then evaluate it.
  46253. +func_show_eval ()
  46254. {
  46255. - f_ex_an_ar_dir="$1"; shift
  46256. - f_ex_an_ar_oldlib="$1"
  46257. + my_cmd="$1"
  46258. + my_fail_exp="${2-:}"
  46259. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  46260. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  46261. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  46262. - :
  46263. - else
  46264. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  46265. - exit $EXIT_FAILURE
  46266. + ${opt_silent-false} || {
  46267. + func_quote_for_expand "$my_cmd"
  46268. + eval "func_echo $func_quote_for_expand_result"
  46269. + }
  46270. +
  46271. + if ${opt_dry_run-false}; then :; else
  46272. + eval "$my_cmd"
  46273. + my_status=$?
  46274. + if test "$my_status" -eq 0; then :; else
  46275. + eval "(exit $my_status); $my_fail_exp"
  46276. + fi
  46277. fi
  46278. }
  46279. -# func_extract_archives gentop oldlib ...
  46280. -func_extract_archives ()
  46281. +
  46282. +# func_show_eval_locale cmd [fail_exp]
  46283. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  46284. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  46285. +# is given, then evaluate it. Use the saved locale for evaluation.
  46286. +func_show_eval_locale ()
  46287. {
  46288. - my_gentop="$1"; shift
  46289. - my_oldlibs=${1+"$@"}
  46290. - my_oldobjs=""
  46291. - my_xlib=""
  46292. - my_xabs=""
  46293. - my_xdir=""
  46294. - my_status=""
  46295. + my_cmd="$1"
  46296. + my_fail_exp="${2-:}"
  46297. +
  46298. + ${opt_silent-false} || {
  46299. + func_quote_for_expand "$my_cmd"
  46300. + eval "func_echo $func_quote_for_expand_result"
  46301. + }
  46302. - $show "${rm}r $my_gentop"
  46303. - $run ${rm}r "$my_gentop"
  46304. - $show "$mkdir $my_gentop"
  46305. - $run $mkdir "$my_gentop"
  46306. - my_status=$?
  46307. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  46308. - exit $my_status
  46309. + if ${opt_dry_run-false}; then :; else
  46310. + eval "$lt_user_locale
  46311. + $my_cmd"
  46312. + my_status=$?
  46313. + eval "$lt_safe_locale"
  46314. + if test "$my_status" -eq 0; then :; else
  46315. + eval "(exit $my_status); $my_fail_exp"
  46316. + fi
  46317. fi
  46318. +}
  46319. - for my_xlib in $my_oldlibs; do
  46320. - # Extract the objects.
  46321. - case $my_xlib in
  46322. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  46323. - *) my_xabs=`pwd`"/$my_xlib" ;;
  46324. - esac
  46325. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  46326. - my_xdir="$my_gentop/$my_xlib"
  46327. - $show "${rm}r $my_xdir"
  46328. - $run ${rm}r "$my_xdir"
  46329. - $show "$mkdir $my_xdir"
  46330. - $run $mkdir "$my_xdir"
  46331. - exit_status=$?
  46332. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  46333. - exit $exit_status
  46334. - fi
  46335. - case $host in
  46336. - *-darwin*)
  46337. - $show "Extracting $my_xabs"
  46338. - # Do not bother doing anything if just a dry run
  46339. - if test -z "$run"; then
  46340. - darwin_orig_dir=`pwd`
  46341. - cd $my_xdir || exit $?
  46342. - darwin_archive=$my_xabs
  46343. - darwin_curdir=`pwd`
  46344. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  46345. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  46346. - if test -n "$darwin_arches"; then
  46347. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  46348. - darwin_arch=
  46349. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  46350. - for darwin_arch in $darwin_arches ; do
  46351. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  46352. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  46353. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  46354. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  46355. - cd "$darwin_curdir"
  46356. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  46357. - done # $darwin_arches
  46358. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  46359. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  46360. - darwin_file=
  46361. - darwin_files=
  46362. - for darwin_file in $darwin_filelist; do
  46363. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  46364. - lipo -create -output "$darwin_file" $darwin_files
  46365. - done # $darwin_filelist
  46366. - ${rm}r unfat-$$
  46367. - cd "$darwin_orig_dir"
  46368. - else
  46369. - cd "$darwin_orig_dir"
  46370. - func_extract_an_archive "$my_xdir" "$my_xabs"
  46371. - fi # $darwin_arches
  46372. - fi # $run
  46373. - ;;
  46374. - *)
  46375. - func_extract_an_archive "$my_xdir" "$my_xabs"
  46376. - ;;
  46377. - esac
  46378. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  46379. - done
  46380. - func_extract_archives_result="$my_oldobjs"
  46381. +
  46382. +
  46383. +
  46384. +# func_version
  46385. +# Echo version message to standard output and exit.
  46386. +func_version ()
  46387. +{
  46388. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  46389. + s/^# //
  46390. + s/^# *$//
  46391. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  46392. + p
  46393. + }' < "$progpath"
  46394. + exit $?
  46395. }
  46396. -# End of Shell function definitions
  46397. -#####################################
  46398. -# Darwin sucks
  46399. -eval std_shrext=\"$shrext_cmds\"
  46400. +# func_usage
  46401. +# Echo short help message to standard output and exit.
  46402. +func_usage ()
  46403. +{
  46404. + $SED -n '/^# Usage:/,/# -h/ {
  46405. + s/^# //
  46406. + s/^# *$//
  46407. + s/\$progname/'$progname'/
  46408. + p
  46409. + }' < "$progpath"
  46410. + $ECHO
  46411. + $ECHO "run \`$progname --help | more' for full usage"
  46412. + exit $?
  46413. +}
  46414. -disable_libs=no
  46415. +# func_help
  46416. +# Echo long help message to standard output and exit.
  46417. +func_help ()
  46418. +{
  46419. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  46420. + s/^# //
  46421. + s/^# *$//
  46422. + s*\$progname*'$progname'*
  46423. + s*\$host*'"$host"'*
  46424. + s*\$SHELL*'"$SHELL"'*
  46425. + s*\$LTCC*'"$LTCC"'*
  46426. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  46427. + s*\$LD*'"$LD"'*
  46428. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  46429. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  46430. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  46431. + p
  46432. + }' < "$progpath"
  46433. + exit $?
  46434. +}
  46435. -# Parse our command line options once, thoroughly.
  46436. -while test "$#" -gt 0
  46437. -do
  46438. - arg="$1"
  46439. +# func_missing_arg argname
  46440. +# Echo program name prefixed message to standard error and set global
  46441. +# exit_cmd.
  46442. +func_missing_arg ()
  46443. +{
  46444. + func_error "missing argument for $1"
  46445. + exit_cmd=exit
  46446. +}
  46447. +
  46448. +exit_cmd=:
  46449. +
  46450. +
  46451. +
  46452. +
  46453. +
  46454. +# Check that we have a working $ECHO.
  46455. +if test "X$1" = X--no-reexec; then
  46456. + # Discard the --no-reexec flag, and continue.
  46457. shift
  46458. +elif test "X$1" = X--fallback-echo; then
  46459. + # Avoid inline document here, it may be left over
  46460. + :
  46461. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  46462. + # Yippee, $ECHO works!
  46463. + :
  46464. +else
  46465. + # Restart under the correct shell, and then maybe $ECHO will work.
  46466. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  46467. +fi
  46468. - case $arg in
  46469. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  46470. - *) optarg= ;;
  46471. - esac
  46472. +if test "X$1" = X--fallback-echo; then
  46473. + # used as fallback echo
  46474. + shift
  46475. + cat <<EOF
  46476. +$*
  46477. +EOF
  46478. + exit $EXIT_SUCCESS
  46479. +fi
  46480. - # If the previous option needs an argument, assign it.
  46481. - if test -n "$prev"; then
  46482. - case $prev in
  46483. - execute_dlfiles)
  46484. - execute_dlfiles="$execute_dlfiles $arg"
  46485. - ;;
  46486. - tag)
  46487. - tagname="$arg"
  46488. - preserve_args="${preserve_args}=$arg"
  46489. -
  46490. - # Check whether tagname contains only valid characters
  46491. - case $tagname in
  46492. - *[!-_A-Za-z0-9,/]*)
  46493. - $echo "$progname: invalid tag name: $tagname" 1>&2
  46494. - exit $EXIT_FAILURE
  46495. - ;;
  46496. - esac
  46497. +magic="%%%MAGIC variable%%%"
  46498. +magic_exe="%%%MAGIC EXE variable%%%"
  46499. - case $tagname in
  46500. - CC)
  46501. - # Don't test for the "default" C tag, as we know, it's there, but
  46502. - # not specially marked.
  46503. - ;;
  46504. - *)
  46505. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  46506. - taglist="$taglist $tagname"
  46507. - # Evaluate the configuration.
  46508. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  46509. - else
  46510. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  46511. - fi
  46512. - ;;
  46513. - esac
  46514. - ;;
  46515. - *)
  46516. - eval "$prev=\$arg"
  46517. - ;;
  46518. - esac
  46519. +# Global variables.
  46520. +# $mode is unset
  46521. +nonopt=
  46522. +execute_dlfiles=
  46523. +preserve_args=
  46524. +lo2o="s/\\.lo\$/.${objext}/"
  46525. +o2lo="s/\\.${objext}\$/.lo/"
  46526. +extracted_archives=
  46527. +extracted_serial=0
  46528. - prev=
  46529. - prevopt=
  46530. - continue
  46531. - fi
  46532. +opt_dry_run=false
  46533. +opt_duplicate_deps=false
  46534. +opt_silent=false
  46535. +opt_debug=:
  46536. - # Have we seen a non-optional argument yet?
  46537. - case $arg in
  46538. - --help)
  46539. - show_help=yes
  46540. - ;;
  46541. +# If this variable is set in any of the actions, the command in it
  46542. +# will be execed at the end. This prevents here-documents from being
  46543. +# left over by shells.
  46544. +exec_cmd=
  46545. - --version)
  46546. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  46547. - $echo
  46548. - $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  46549. - $echo "This is free software; see the source for copying conditions. There is NO"
  46550. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  46551. - exit $?
  46552. - ;;
  46553. +# func_fatal_configuration arg...
  46554. +# Echo program name prefixed message to standard error, followed by
  46555. +# a configuration failure hint, and exit.
  46556. +func_fatal_configuration ()
  46557. +{
  46558. + func_error ${1+"$@"}
  46559. + func_error "See the $PACKAGE documentation for more information."
  46560. + func_fatal_error "Fatal configuration error."
  46561. +}
  46562. +
  46563. +
  46564. +# func_config
  46565. +# Display the configuration for all the tags in this script.
  46566. +func_config ()
  46567. +{
  46568. + re_begincf='^# ### BEGIN LIBTOOL'
  46569. + re_endcf='^# ### END LIBTOOL'
  46570. +
  46571. + # Default configuration.
  46572. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  46573. - --config)
  46574. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  46575. # Now print the configurations for the tags.
  46576. for tagname in $taglist; do
  46577. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  46578. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  46579. done
  46580. - exit $?
  46581. - ;;
  46582. - --debug)
  46583. - $echo "$progname: enabling shell trace mode"
  46584. - set -x
  46585. - preserve_args="$preserve_args $arg"
  46586. - ;;
  46587. -
  46588. - --dry-run | -n)
  46589. - run=:
  46590. - ;;
  46591. + exit $?
  46592. +}
  46593. - --features)
  46594. - $echo "host: $host"
  46595. +# func_features
  46596. +# Display the features supported by this script.
  46597. +func_features ()
  46598. +{
  46599. + $ECHO "host: $host"
  46600. if test "$build_libtool_libs" = yes; then
  46601. - $echo "enable shared libraries"
  46602. + $ECHO "enable shared libraries"
  46603. else
  46604. - $echo "disable shared libraries"
  46605. + $ECHO "disable shared libraries"
  46606. fi
  46607. if test "$build_old_libs" = yes; then
  46608. - $echo "enable static libraries"
  46609. + $ECHO "enable static libraries"
  46610. else
  46611. - $echo "disable static libraries"
  46612. + $ECHO "disable static libraries"
  46613. fi
  46614. +
  46615. exit $?
  46616. - ;;
  46617. +}
  46618. - --finish) mode="finish" ;;
  46619. +# func_enable_tag tagname
  46620. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  46621. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  46622. +# variable here.
  46623. +func_enable_tag ()
  46624. +{
  46625. + # Global variable:
  46626. + tagname="$1"
  46627. - --mode) prevopt="--mode" prev=mode ;;
  46628. - --mode=*) mode="$optarg" ;;
  46629. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  46630. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  46631. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  46632. +
  46633. + # Validate tagname.
  46634. + case $tagname in
  46635. + *[!-_A-Za-z0-9,/]*)
  46636. + func_fatal_error "invalid tag name: $tagname"
  46637. + ;;
  46638. + esac
  46639. - --preserve-dup-deps) duplicate_deps="yes" ;;
  46640. + # Don't test for the "default" C tag, as we know it's
  46641. + # there but not specially marked.
  46642. + case $tagname in
  46643. + CC) ;;
  46644. + *)
  46645. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  46646. + taglist="$taglist $tagname"
  46647. - --quiet | --silent)
  46648. - show=:
  46649. - preserve_args="$preserve_args $arg"
  46650. - ;;
  46651. + # Evaluate the configuration. Be careful to quote the path
  46652. + # and the sed script, to avoid splitting on whitespace, but
  46653. + # also don't use non-portable quotes within backquotes within
  46654. + # quotes we have to do it in 2 steps:
  46655. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  46656. + eval "$extractedcf"
  46657. + else
  46658. + func_error "ignoring unknown tag $tagname"
  46659. + fi
  46660. + ;;
  46661. + esac
  46662. +}
  46663. +
  46664. +# Parse options once, thoroughly. This comes as soon as possible in
  46665. +# the script to make things like `libtool --version' happen quickly.
  46666. +{
  46667. - --tag)
  46668. - prevopt="--tag"
  46669. - prev=tag
  46670. - preserve_args="$preserve_args --tag"
  46671. + # Shorthand for --mode=foo, only valid as the first argument
  46672. + case $1 in
  46673. + clean|clea|cle|cl)
  46674. + shift; set dummy --mode clean ${1+"$@"}; shift
  46675. ;;
  46676. - --tag=*)
  46677. - set tag "$optarg" ${1+"$@"}
  46678. - shift
  46679. - prev=tag
  46680. - preserve_args="$preserve_args --tag"
  46681. + compile|compil|compi|comp|com|co|c)
  46682. + shift; set dummy --mode compile ${1+"$@"}; shift
  46683. ;;
  46684. -
  46685. - -dlopen)
  46686. - prevopt="-dlopen"
  46687. - prev=execute_dlfiles
  46688. + execute|execut|execu|exec|exe|ex|e)
  46689. + shift; set dummy --mode execute ${1+"$@"}; shift
  46690. ;;
  46691. -
  46692. - -*)
  46693. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  46694. - $echo "$help" 1>&2
  46695. - exit $EXIT_FAILURE
  46696. + finish|finis|fini|fin|fi|f)
  46697. + shift; set dummy --mode finish ${1+"$@"}; shift
  46698. ;;
  46699. -
  46700. - *)
  46701. - nonopt="$arg"
  46702. - break
  46703. + install|instal|insta|inst|ins|in|i)
  46704. + shift; set dummy --mode install ${1+"$@"}; shift
  46705. + ;;
  46706. + link|lin|li|l)
  46707. + shift; set dummy --mode link ${1+"$@"}; shift
  46708. + ;;
  46709. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  46710. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  46711. ;;
  46712. esac
  46713. -done
  46714. -if test -n "$prevopt"; then
  46715. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  46716. - $echo "$help" 1>&2
  46717. - exit $EXIT_FAILURE
  46718. -fi
  46719. + # Parse non-mode specific arguments:
  46720. + while test "$#" -gt 0; do
  46721. + opt="$1"
  46722. + shift
  46723. -case $disable_libs in
  46724. -no)
  46725. - ;;
  46726. -shared)
  46727. - build_libtool_libs=no
  46728. - build_old_libs=yes
  46729. - ;;
  46730. -static)
  46731. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  46732. - ;;
  46733. -esac
  46734. + case $opt in
  46735. + --config) func_config ;;
  46736. -# If this variable is set in any of the actions, the command in it
  46737. -# will be execed at the end. This prevents here-documents from being
  46738. -# left over by shells.
  46739. -exec_cmd=
  46740. + --debug) preserve_args="$preserve_args $opt"
  46741. + func_echo "enabling shell trace mode"
  46742. + opt_debug='set -x'
  46743. + $opt_debug
  46744. + ;;
  46745. +
  46746. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  46747. + execute_dlfiles="$execute_dlfiles $1"
  46748. + shift
  46749. + ;;
  46750. -if test -z "$show_help"; then
  46751. + --dry-run | -n) opt_dry_run=: ;;
  46752. + --features) func_features ;;
  46753. + --finish) mode="finish" ;;
  46754. +
  46755. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  46756. + case $1 in
  46757. + # Valid mode arguments:
  46758. + clean) ;;
  46759. + compile) ;;
  46760. + execute) ;;
  46761. + finish) ;;
  46762. + install) ;;
  46763. + link) ;;
  46764. + relink) ;;
  46765. + uninstall) ;;
  46766. +
  46767. + # Catch anything else as an error
  46768. + *) func_error "invalid argument for $opt"
  46769. + exit_cmd=exit
  46770. + break
  46771. + ;;
  46772. + esac
  46773. - # Infer the operation mode.
  46774. - if test -z "$mode"; then
  46775. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  46776. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  46777. - case $nonopt in
  46778. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  46779. - mode=link
  46780. - for arg
  46781. - do
  46782. - case $arg in
  46783. - -c)
  46784. - mode=compile
  46785. - break
  46786. - ;;
  46787. - esac
  46788. - done
  46789. - ;;
  46790. - *db | *dbx | *strace | *truss)
  46791. - mode=execute
  46792. - ;;
  46793. - *install*|cp|mv)
  46794. - mode=install
  46795. - ;;
  46796. - *rm)
  46797. - mode=uninstall
  46798. + mode="$1"
  46799. + shift
  46800. + ;;
  46801. +
  46802. + --preserve-dup-deps)
  46803. + opt_duplicate_deps=: ;;
  46804. +
  46805. + --quiet|--silent) preserve_args="$preserve_args $opt"
  46806. + opt_silent=:
  46807. + ;;
  46808. +
  46809. + --verbose| -v) preserve_args="$preserve_args $opt"
  46810. + opt_silent=false
  46811. + ;;
  46812. +
  46813. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  46814. + preserve_args="$preserve_args $opt $1"
  46815. + func_enable_tag "$1" # tagname is set here
  46816. + shift
  46817. + ;;
  46818. +
  46819. + # Separate optargs to long options:
  46820. + -dlopen=*|--mode=*|--tag=*)
  46821. + func_opt_split "$opt"
  46822. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  46823. + shift
  46824. + ;;
  46825. +
  46826. + -\?|-h) func_usage ;;
  46827. + --help) opt_help=: ;;
  46828. + --version) func_version ;;
  46829. +
  46830. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  46831. +
  46832. + *) nonopt="$opt"
  46833. + break
  46834. + ;;
  46835. + esac
  46836. + done
  46837. +
  46838. +
  46839. + case $host in
  46840. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  46841. + # don't eliminate duplications in $postdeps and $predeps
  46842. + opt_duplicate_compiler_generated_deps=:
  46843. ;;
  46844. *)
  46845. - # If we have no mode, but dlfiles were specified, then do execute mode.
  46846. - test -n "$execute_dlfiles" && mode=execute
  46847. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  46848. + ;;
  46849. + esac
  46850. - # Just use the default operation mode.
  46851. - if test -z "$mode"; then
  46852. - if test -n "$nonopt"; then
  46853. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  46854. - else
  46855. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  46856. - fi
  46857. + # Having warned about all mis-specified options, bail out if
  46858. + # anything was wrong.
  46859. + $exit_cmd $EXIT_FAILURE
  46860. +}
  46861. +
  46862. +# func_check_version_match
  46863. +# Ensure that we are using m4 macros, and libtool script from the same
  46864. +# release of libtool.
  46865. +func_check_version_match ()
  46866. +{
  46867. + if test "$package_revision" != "$macro_revision"; then
  46868. + if test "$VERSION" != "$macro_version"; then
  46869. + if test -z "$macro_version"; then
  46870. + cat >&2 <<_LT_EOF
  46871. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  46872. +$progname: definition of this LT_INIT comes from an older release.
  46873. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  46874. +$progname: and run autoconf again.
  46875. +_LT_EOF
  46876. + else
  46877. + cat >&2 <<_LT_EOF
  46878. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  46879. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  46880. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  46881. +$progname: and run autoconf again.
  46882. +_LT_EOF
  46883. fi
  46884. - ;;
  46885. - esac
  46886. + else
  46887. + cat >&2 <<_LT_EOF
  46888. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  46889. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  46890. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  46891. +$progname: of $PACKAGE $VERSION and run autoconf again.
  46892. +_LT_EOF
  46893. + fi
  46894. +
  46895. + exit $EXIT_MISMATCH
  46896. + fi
  46897. +}
  46898. +
  46899. +
  46900. +## ----------- ##
  46901. +## Main. ##
  46902. +## ----------- ##
  46903. +
  46904. +$opt_help || {
  46905. + # Sanity checks first:
  46906. + func_check_version_match
  46907. +
  46908. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  46909. + func_fatal_configuration "not configured to build any kind of library"
  46910. fi
  46911. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  46912. +
  46913. +
  46914. + # Darwin sucks
  46915. + eval std_shrext=\"$shrext_cmds\"
  46916. +
  46917. +
  46918. # Only execute mode is allowed to have -dlopen flags.
  46919. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  46920. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  46921. - $echo "$help" 1>&2
  46922. + func_error "unrecognized option \`-dlopen'"
  46923. + $ECHO "$help" 1>&2
  46924. exit $EXIT_FAILURE
  46925. fi
  46926. # Change the help message to a mode-specific one.
  46927. generic_help="$help"
  46928. - help="Try \`$modename --help --mode=$mode' for more information."
  46929. + help="Try \`$progname --help --mode=$mode' for more information."
  46930. +}
  46931. - # These modes are in order of execution frequency so that they run quickly.
  46932. - case $mode in
  46933. - # libtool compile mode
  46934. - compile)
  46935. - modename="$modename: compile"
  46936. - # Get the compilation command and the source file.
  46937. - base_compile=
  46938. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  46939. - suppress_opt=yes
  46940. - suppress_output=
  46941. - arg_mode=normal
  46942. - libobj=
  46943. - later=
  46944. - for arg
  46945. - do
  46946. - case $arg_mode in
  46947. - arg )
  46948. - # do not "continue". Instead, add this to base_compile
  46949. - lastarg="$arg"
  46950. - arg_mode=normal
  46951. - ;;
  46952. +# func_lalib_p file
  46953. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  46954. +# This function is only a basic sanity check; it will hardly flush out
  46955. +# determined imposters.
  46956. +func_lalib_p ()
  46957. +{
  46958. + test -f "$1" &&
  46959. + $SED -e 4q "$1" 2>/dev/null \
  46960. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  46961. +}
  46962. - target )
  46963. - libobj="$arg"
  46964. - arg_mode=normal
  46965. - continue
  46966. - ;;
  46967. +# func_lalib_unsafe_p file
  46968. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  46969. +# This function implements the same check as func_lalib_p without
  46970. +# resorting to external programs. To this end, it redirects stdin and
  46971. +# closes it afterwards, without saving the original file descriptor.
  46972. +# As a safety measure, use it only where a negative result would be
  46973. +# fatal anyway. Works if `file' does not exist.
  46974. +func_lalib_unsafe_p ()
  46975. +{
  46976. + lalib_p=no
  46977. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  46978. + for lalib_p_l in 1 2 3 4
  46979. + do
  46980. + read lalib_p_line
  46981. + case "$lalib_p_line" in
  46982. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  46983. + esac
  46984. + done
  46985. + exec 0<&5 5<&-
  46986. + fi
  46987. + test "$lalib_p" = yes
  46988. +}
  46989. - normal )
  46990. - # Accept any command-line options.
  46991. - case $arg in
  46992. - -o)
  46993. - if test -n "$libobj" ; then
  46994. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  46995. - exit $EXIT_FAILURE
  46996. - fi
  46997. - arg_mode=target
  46998. - continue
  46999. - ;;
  47000. +# func_ltwrapper_script_p file
  47001. +# True iff FILE is a libtool wrapper script
  47002. +# This function is only a basic sanity check; it will hardly flush out
  47003. +# determined imposters.
  47004. +func_ltwrapper_script_p ()
  47005. +{
  47006. + func_lalib_p "$1"
  47007. +}
  47008. - -static | -prefer-pic | -prefer-non-pic)
  47009. - later="$later $arg"
  47010. - continue
  47011. - ;;
  47012. +# func_ltwrapper_executable_p file
  47013. +# True iff FILE is a libtool wrapper executable
  47014. +# This function is only a basic sanity check; it will hardly flush out
  47015. +# determined imposters.
  47016. +func_ltwrapper_executable_p ()
  47017. +{
  47018. + func_ltwrapper_exec_suffix=
  47019. + case $1 in
  47020. + *.exe) ;;
  47021. + *) func_ltwrapper_exec_suffix=.exe ;;
  47022. + esac
  47023. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  47024. +}
  47025. - -no-suppress)
  47026. - suppress_opt=no
  47027. - continue
  47028. - ;;
  47029. +# func_ltwrapper_scriptname file
  47030. +# Assumes file is an ltwrapper_executable
  47031. +# uses $file to determine the appropriate filename for a
  47032. +# temporary ltwrapper_script.
  47033. +func_ltwrapper_scriptname ()
  47034. +{
  47035. + func_ltwrapper_scriptname_result=""
  47036. + if func_ltwrapper_executable_p "$1"; then
  47037. + func_dirname_and_basename "$1" "" "."
  47038. + func_stripname '' '.exe' "$func_basename_result"
  47039. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  47040. + fi
  47041. +}
  47042. - -Xcompiler)
  47043. - arg_mode=arg # the next one goes into the "base_compile" arg list
  47044. - continue # The current "srcfile" will either be retained or
  47045. - ;; # replaced later. I would guess that would be a bug.
  47046. +# func_ltwrapper_p file
  47047. +# True iff FILE is a libtool wrapper script or wrapper executable
  47048. +# This function is only a basic sanity check; it will hardly flush out
  47049. +# determined imposters.
  47050. +func_ltwrapper_p ()
  47051. +{
  47052. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  47053. +}
  47054. - -Wc,*)
  47055. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  47056. - lastarg=
  47057. - save_ifs="$IFS"; IFS=','
  47058. - for arg in $args; do
  47059. - IFS="$save_ifs"
  47060. - # Double-quote args containing other shell metacharacters.
  47061. - # Many Bourne shells cannot handle close brackets correctly
  47062. - # in scan sets, so we specify it separately.
  47063. - case $arg in
  47064. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47065. - arg="\"$arg\""
  47066. +# func_execute_cmds commands fail_cmd
  47067. +# Execute tilde-delimited COMMANDS.
  47068. +# If FAIL_CMD is given, eval that upon failure.
  47069. +# FAIL_CMD may read-access the current command in variable CMD!
  47070. +func_execute_cmds ()
  47071. +{
  47072. + $opt_debug
  47073. + save_ifs=$IFS; IFS='~'
  47074. + for cmd in $1; do
  47075. + IFS=$save_ifs
  47076. + eval cmd=\"$cmd\"
  47077. + func_show_eval "$cmd" "${2-:}"
  47078. + done
  47079. + IFS=$save_ifs
  47080. +}
  47081. +
  47082. +
  47083. +# func_source file
  47084. +# Source FILE, adding directory component if necessary.
  47085. +# Note that it is not necessary on cygwin/mingw to append a dot to
  47086. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  47087. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  47088. +# `FILE.' does not work on cygwin managed mounts.
  47089. +func_source ()
  47090. +{
  47091. + $opt_debug
  47092. + case $1 in
  47093. + */* | *\\*) . "$1" ;;
  47094. + *) . "./$1" ;;
  47095. + esac
  47096. +}
  47097. +
  47098. +
  47099. +# func_infer_tag arg
  47100. +# Infer tagged configuration to use if any are available and
  47101. +# if one wasn't chosen via the "--tag" command line option.
  47102. +# Only attempt this if the compiler in the base compile
  47103. +# command doesn't match the default compiler.
  47104. +# arg is usually of the form 'gcc ...'
  47105. +func_infer_tag ()
  47106. +{
  47107. + $opt_debug
  47108. + if test -n "$available_tags" && test -z "$tagname"; then
  47109. + CC_quoted=
  47110. + for arg in $CC; do
  47111. + func_quote_for_eval "$arg"
  47112. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  47113. + done
  47114. + case $@ in
  47115. + # Blanks in the command may have been stripped by the calling shell,
  47116. + # but not from the CC environment variable when configure was run.
  47117. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  47118. + # Blanks at the start of $base_compile will cause this to fail
  47119. + # if we don't check for them as well.
  47120. + *)
  47121. + for z in $available_tags; do
  47122. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  47123. + # Evaluate the configuration.
  47124. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  47125. + CC_quoted=
  47126. + for arg in $CC; do
  47127. + # Double-quote args containing other shell metacharacters.
  47128. + func_quote_for_eval "$arg"
  47129. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  47130. + done
  47131. + case "$@ " in
  47132. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  47133. + # The compiler in the base compile command matches
  47134. + # the one in the tagged configuration.
  47135. + # Assume this is the tagged configuration we want.
  47136. + tagname=$z
  47137. + break
  47138. ;;
  47139. esac
  47140. - lastarg="$lastarg $arg"
  47141. + fi
  47142. + done
  47143. + # If $tagname still isn't set, then no tagged configuration
  47144. + # was found and let the user know that the "--tag" command
  47145. + # line option must be used.
  47146. + if test -z "$tagname"; then
  47147. + func_echo "unable to infer tagged configuration"
  47148. + func_fatal_error "specify a tag with \`--tag'"
  47149. +# else
  47150. +# func_verbose "using $tagname tagged configuration"
  47151. + fi
  47152. + ;;
  47153. + esac
  47154. + fi
  47155. +}
  47156. +
  47157. +
  47158. +
  47159. +# func_write_libtool_object output_name pic_name nonpic_name
  47160. +# Create a libtool object file (analogous to a ".la" file),
  47161. +# but don't create it if we're doing a dry run.
  47162. +func_write_libtool_object ()
  47163. +{
  47164. + write_libobj=${1}
  47165. + if test "$build_libtool_libs" = yes; then
  47166. + write_lobj=\'${2}\'
  47167. + else
  47168. + write_lobj=none
  47169. + fi
  47170. +
  47171. + if test "$build_old_libs" = yes; then
  47172. + write_oldobj=\'${3}\'
  47173. + else
  47174. + write_oldobj=none
  47175. + fi
  47176. +
  47177. + $opt_dry_run || {
  47178. + cat >${write_libobj}T <<EOF
  47179. +# $write_libobj - a libtool object file
  47180. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  47181. +#
  47182. +# Please DO NOT delete this file!
  47183. +# It is necessary for linking the library.
  47184. +
  47185. +# Name of the PIC object.
  47186. +pic_object=$write_lobj
  47187. +
  47188. +# Name of the non-PIC object
  47189. +non_pic_object=$write_oldobj
  47190. +
  47191. +EOF
  47192. + $MV "${write_libobj}T" "${write_libobj}"
  47193. + }
  47194. +}
  47195. +
  47196. +# func_mode_compile arg...
  47197. +func_mode_compile ()
  47198. +{
  47199. + $opt_debug
  47200. + # Get the compilation command and the source file.
  47201. + base_compile=
  47202. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  47203. + suppress_opt=yes
  47204. + suppress_output=
  47205. + arg_mode=normal
  47206. + libobj=
  47207. + later=
  47208. + pie_flag=
  47209. +
  47210. + for arg
  47211. + do
  47212. + case $arg_mode in
  47213. + arg )
  47214. + # do not "continue". Instead, add this to base_compile
  47215. + lastarg="$arg"
  47216. + arg_mode=normal
  47217. + ;;
  47218. +
  47219. + target )
  47220. + libobj="$arg"
  47221. + arg_mode=normal
  47222. + continue
  47223. + ;;
  47224. +
  47225. + normal )
  47226. + # Accept any command-line options.
  47227. + case $arg in
  47228. + -o)
  47229. + test -n "$libobj" && \
  47230. + func_fatal_error "you cannot specify \`-o' more than once"
  47231. + arg_mode=target
  47232. + continue
  47233. + ;;
  47234. +
  47235. + -pie | -fpie | -fPIE)
  47236. + pie_flag="$pie_flag $arg"
  47237. + continue
  47238. + ;;
  47239. +
  47240. + -shared | -static | -prefer-pic | -prefer-non-pic)
  47241. + later="$later $arg"
  47242. + continue
  47243. + ;;
  47244. +
  47245. + -no-suppress)
  47246. + suppress_opt=no
  47247. + continue
  47248. + ;;
  47249. +
  47250. + -Xcompiler)
  47251. + arg_mode=arg # the next one goes into the "base_compile" arg list
  47252. + continue # The current "srcfile" will either be retained or
  47253. + ;; # replaced later. I would guess that would be a bug.
  47254. +
  47255. + -Wc,*)
  47256. + func_stripname '-Wc,' '' "$arg"
  47257. + args=$func_stripname_result
  47258. + lastarg=
  47259. + save_ifs="$IFS"; IFS=','
  47260. + for arg in $args; do
  47261. + IFS="$save_ifs"
  47262. + func_quote_for_eval "$arg"
  47263. + lastarg="$lastarg $func_quote_for_eval_result"
  47264. done
  47265. IFS="$save_ifs"
  47266. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  47267. + func_stripname ' ' '' "$lastarg"
  47268. + lastarg=$func_stripname_result
  47269. # Add the arguments to base_compile.
  47270. base_compile="$base_compile $lastarg"
  47271. continue
  47272. ;;
  47273. - * )
  47274. + *)
  47275. # Accept the current argument as the source file.
  47276. # The previous "srcfile" becomes the current argument.
  47277. #
  47278. @@ -709,64 +1187,42 @@
  47279. esac # case $arg_mode
  47280. # Aesthetically quote the previous argument.
  47281. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  47282. -
  47283. - case $lastarg in
  47284. - # Double-quote args containing other shell metacharacters.
  47285. - # Many Bourne shells cannot handle close brackets correctly
  47286. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  47287. - # in scan sets (worked around with variable expansion),
  47288. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  47289. - # at all, so we specify them separately.
  47290. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47291. - lastarg="\"$lastarg\""
  47292. - ;;
  47293. - esac
  47294. -
  47295. - base_compile="$base_compile $lastarg"
  47296. + func_quote_for_eval "$lastarg"
  47297. + base_compile="$base_compile $func_quote_for_eval_result"
  47298. done # for arg
  47299. case $arg_mode in
  47300. arg)
  47301. - $echo "$modename: you must specify an argument for -Xcompile"
  47302. - exit $EXIT_FAILURE
  47303. + func_fatal_error "you must specify an argument for -Xcompile"
  47304. ;;
  47305. target)
  47306. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  47307. - exit $EXIT_FAILURE
  47308. + func_fatal_error "you must specify a target with \`-o'"
  47309. ;;
  47310. *)
  47311. # Get the name of the library object.
  47312. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  47313. + test -z "$libobj" && {
  47314. + func_basename "$srcfile"
  47315. + libobj="$func_basename_result"
  47316. + }
  47317. ;;
  47318. esac
  47319. # Recognize several different file suffixes.
  47320. # If the user specifies -o file.o, it is replaced with file.lo
  47321. - xform='[cCFSifmso]'
  47322. case $libobj in
  47323. - *.ada) xform=ada ;;
  47324. - *.adb) xform=adb ;;
  47325. - *.ads) xform=ads ;;
  47326. - *.asm) xform=asm ;;
  47327. - *.c++) xform=c++ ;;
  47328. - *.cc) xform=cc ;;
  47329. - *.ii) xform=ii ;;
  47330. - *.class) xform=class ;;
  47331. - *.cpp) xform=cpp ;;
  47332. - *.cxx) xform=cxx ;;
  47333. - *.f90) xform=f90 ;;
  47334. - *.for) xform=for ;;
  47335. - *.java) xform=java ;;
  47336. + *.[cCFSifmso] | \
  47337. + *.ada | *.adb | *.ads | *.asm | \
  47338. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  47339. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  47340. + func_xform "$libobj"
  47341. + libobj=$func_xform_result
  47342. + ;;
  47343. esac
  47344. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  47345. -
  47346. case $libobj in
  47347. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  47348. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  47349. *)
  47350. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  47351. - exit $EXIT_FAILURE
  47352. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  47353. ;;
  47354. esac
  47355. @@ -774,7 +1230,15 @@
  47356. for arg in $later; do
  47357. case $arg in
  47358. + -shared)
  47359. + test "$build_libtool_libs" != yes && \
  47360. + func_fatal_configuration "can not build a shared library"
  47361. + build_old_libs=no
  47362. + continue
  47363. + ;;
  47364. +
  47365. -static)
  47366. + build_libtool_libs=no
  47367. build_old_libs=yes
  47368. continue
  47369. ;;
  47370. @@ -791,28 +1255,17 @@
  47371. esac
  47372. done
  47373. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  47374. - case $qlibobj in
  47375. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47376. - qlibobj="\"$qlibobj\"" ;;
  47377. - esac
  47378. - test "X$libobj" != "X$qlibobj" \
  47379. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  47380. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  47381. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  47382. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  47383. - if test "X$xdir" = "X$obj"; then
  47384. - xdir=
  47385. - else
  47386. - xdir=$xdir/
  47387. - fi
  47388. + func_quote_for_eval "$libobj"
  47389. + test "X$libobj" != "X$func_quote_for_eval_result" \
  47390. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  47391. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  47392. + func_dirname_and_basename "$obj" "/" ""
  47393. + objname="$func_basename_result"
  47394. + xdir="$func_dirname_result"
  47395. lobj=${xdir}$objdir/$objname
  47396. - if test -z "$base_compile"; then
  47397. - $echo "$modename: you must specify a compilation command" 1>&2
  47398. - $echo "$help" 1>&2
  47399. - exit $EXIT_FAILURE
  47400. - fi
  47401. + test -z "$base_compile" && \
  47402. + func_fatal_help "you must specify a compilation command"
  47403. # Delete any leftover library objects.
  47404. if test "$build_old_libs" = yes; then
  47405. @@ -821,12 +1274,9 @@
  47406. removelist="$lobj $libobj ${libobj}T"
  47407. fi
  47408. - $run $rm $removelist
  47409. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  47410. -
  47411. # On Cygwin there's no "real" PIC flag so we must build both object types
  47412. case $host_os in
  47413. - cygwin* | mingw* | pw32* | os2*)
  47414. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  47415. pic_mode=default
  47416. ;;
  47417. esac
  47418. @@ -838,10 +1288,8 @@
  47419. # Calculate the filename of the output object if compiler does
  47420. # not support -o with -c
  47421. if test "$compiler_c_o" = no; then
  47422. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  47423. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  47424. lockfile="$output_obj.lock"
  47425. - removelist="$removelist $output_obj $lockfile"
  47426. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  47427. else
  47428. output_obj=
  47429. need_locks=no
  47430. @@ -851,13 +1299,13 @@
  47431. # Lock this critical section if it is needed
  47432. # We use this script file to make the link, it avoids creating a new file
  47433. if test "$need_locks" = yes; then
  47434. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  47435. - $show "Waiting for $lockfile to be removed"
  47436. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  47437. + func_echo "Waiting for $lockfile to be removed"
  47438. sleep 2
  47439. done
  47440. elif test "$need_locks" = warn; then
  47441. if test -f "$lockfile"; then
  47442. - $echo "\
  47443. + $ECHO "\
  47444. *** ERROR, $lockfile exists and contains:
  47445. `cat $lockfile 2>/dev/null`
  47446. @@ -868,34 +1316,22 @@
  47447. avoid parallel builds (make -j) in this platform, or get a better
  47448. compiler."
  47449. - $run $rm $removelist
  47450. + $opt_dry_run || $RM $removelist
  47451. exit $EXIT_FAILURE
  47452. fi
  47453. - $echo "$srcfile" > "$lockfile"
  47454. + removelist="$removelist $output_obj"
  47455. + $ECHO "$srcfile" > "$lockfile"
  47456. fi
  47457. + $opt_dry_run || $RM $removelist
  47458. + removelist="$removelist $lockfile"
  47459. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  47460. +
  47461. if test -n "$fix_srcfile_path"; then
  47462. eval srcfile=\"$fix_srcfile_path\"
  47463. fi
  47464. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  47465. - case $qsrcfile in
  47466. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47467. - qsrcfile="\"$qsrcfile\"" ;;
  47468. - esac
  47469. -
  47470. - $run $rm "$libobj" "${libobj}T"
  47471. -
  47472. - # Create a libtool object file (analogous to a ".la" file),
  47473. - # but don't create it if we're doing a dry run.
  47474. - test -z "$run" && cat > ${libobj}T <<EOF
  47475. -# $libobj - a libtool object file
  47476. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  47477. -#
  47478. -# Please DO NOT delete this file!
  47479. -# It is necessary for linking the library.
  47480. -
  47481. -# Name of the PIC object.
  47482. -EOF
  47483. + func_quote_for_eval "$srcfile"
  47484. + qsrcfile=$func_quote_for_eval_result
  47485. # Only build a PIC object if we are building libtool libraries.
  47486. if test "$build_libtool_libs" = yes; then
  47487. @@ -909,32 +1345,19 @@
  47488. command="$base_compile $qsrcfile"
  47489. fi
  47490. - if test ! -d "${xdir}$objdir"; then
  47491. - $show "$mkdir ${xdir}$objdir"
  47492. - $run $mkdir ${xdir}$objdir
  47493. - exit_status=$?
  47494. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  47495. - exit $exit_status
  47496. - fi
  47497. - fi
  47498. + func_mkdir_p "$xdir$objdir"
  47499. if test -z "$output_obj"; then
  47500. # Place PIC objects in $objdir
  47501. command="$command -o $lobj"
  47502. fi
  47503. - $run $rm "$lobj" "$output_obj"
  47504. -
  47505. - $show "$command"
  47506. - if $run eval "$command"; then :
  47507. - else
  47508. - test -n "$output_obj" && $run $rm $removelist
  47509. - exit $EXIT_FAILURE
  47510. - fi
  47511. + func_show_eval_locale "$command" \
  47512. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  47513. if test "$need_locks" = warn &&
  47514. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  47515. - $echo "\
  47516. + $ECHO "\
  47517. *** ERROR, $lockfile contains:
  47518. `cat $lockfile 2>/dev/null`
  47519. @@ -948,45 +1371,27 @@
  47520. avoid parallel builds (make -j) in this platform, or get a better
  47521. compiler."
  47522. - $run $rm $removelist
  47523. + $opt_dry_run || $RM $removelist
  47524. exit $EXIT_FAILURE
  47525. fi
  47526. # Just move the object if needed, then go on to compile the next one
  47527. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  47528. - $show "$mv $output_obj $lobj"
  47529. - if $run $mv $output_obj $lobj; then :
  47530. - else
  47531. - error=$?
  47532. - $run $rm $removelist
  47533. - exit $error
  47534. - fi
  47535. + func_show_eval '$MV "$output_obj" "$lobj"' \
  47536. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  47537. fi
  47538. - # Append the name of the PIC object to the libtool object file.
  47539. - test -z "$run" && cat >> ${libobj}T <<EOF
  47540. -pic_object='$objdir/$objname'
  47541. -
  47542. -EOF
  47543. -
  47544. # Allow error messages only from the first compilation.
  47545. if test "$suppress_opt" = yes; then
  47546. - suppress_output=' >/dev/null 2>&1'
  47547. + suppress_output=' >/dev/null 2>&1'
  47548. fi
  47549. - else
  47550. - # No PIC object so indicate it doesn't exist in the libtool
  47551. - # object file.
  47552. - test -z "$run" && cat >> ${libobj}T <<EOF
  47553. -pic_object=none
  47554. -
  47555. -EOF
  47556. fi
  47557. # Only build a position-dependent object if we build old libraries.
  47558. if test "$build_old_libs" = yes; then
  47559. if test "$pic_mode" != yes; then
  47560. # Don't build PIC code
  47561. - command="$base_compile $qsrcfile"
  47562. + command="$base_compile $qsrcfile$pie_flag"
  47563. else
  47564. command="$base_compile $qsrcfile $pic_flag"
  47565. fi
  47566. @@ -996,17 +1401,12 @@
  47567. # Suppress compiler output if we already did a PIC compilation.
  47568. command="$command$suppress_output"
  47569. - $run $rm "$obj" "$output_obj"
  47570. - $show "$command"
  47571. - if $run eval "$command"; then :
  47572. - else
  47573. - $run $rm $removelist
  47574. - exit $EXIT_FAILURE
  47575. - fi
  47576. + func_show_eval_locale "$command" \
  47577. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  47578. if test "$need_locks" = warn &&
  47579. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  47580. - $echo "\
  47581. + $ECHO "\
  47582. *** ERROR, $lockfile contains:
  47583. `cat $lockfile 2>/dev/null`
  47584. @@ -1020,5423 +1420,6784 @@
  47585. avoid parallel builds (make -j) in this platform, or get a better
  47586. compiler."
  47587. - $run $rm $removelist
  47588. + $opt_dry_run || $RM $removelist
  47589. exit $EXIT_FAILURE
  47590. fi
  47591. # Just move the object if needed
  47592. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  47593. - $show "$mv $output_obj $obj"
  47594. - if $run $mv $output_obj $obj; then :
  47595. - else
  47596. - error=$?
  47597. - $run $rm $removelist
  47598. - exit $error
  47599. - fi
  47600. + func_show_eval '$MV "$output_obj" "$obj"' \
  47601. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  47602. fi
  47603. -
  47604. - # Append the name of the non-PIC object the libtool object file.
  47605. - # Only append if the libtool object file exists.
  47606. - test -z "$run" && cat >> ${libobj}T <<EOF
  47607. -# Name of the non-PIC object.
  47608. -non_pic_object='$objname'
  47609. -
  47610. -EOF
  47611. - else
  47612. - # Append the name of the non-PIC object the libtool object file.
  47613. - # Only append if the libtool object file exists.
  47614. - test -z "$run" && cat >> ${libobj}T <<EOF
  47615. -# Name of the non-PIC object.
  47616. -non_pic_object=none
  47617. -
  47618. -EOF
  47619. fi
  47620. - $run $mv "${libobj}T" "${libobj}"
  47621. + $opt_dry_run || {
  47622. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  47623. - # Unlock the critical section if it was locked
  47624. - if test "$need_locks" != no; then
  47625. - $run $rm "$lockfile"
  47626. - fi
  47627. + # Unlock the critical section if it was locked
  47628. + if test "$need_locks" != no; then
  47629. + removelist=$lockfile
  47630. + $RM "$lockfile"
  47631. + fi
  47632. + }
  47633. exit $EXIT_SUCCESS
  47634. - ;;
  47635. -
  47636. - # libtool link mode
  47637. - link | relink)
  47638. - modename="$modename: link"
  47639. - case $host in
  47640. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47641. - # It is impossible to link a dll without this setting, and
  47642. - # we shouldn't force the makefile maintainer to figure out
  47643. - # which system we are compiling for in order to pass an extra
  47644. - # flag for every libtool invocation.
  47645. - # allow_undefined=no
  47646. +}
  47647. - # FIXME: Unfortunately, there are problems with the above when trying
  47648. - # to make a dll which has undefined symbols, in which case not
  47649. - # even a static library is built. For now, we need to specify
  47650. - # -no-undefined on the libtool link line when we can be certain
  47651. - # that all symbols are satisfied, otherwise we get a static library.
  47652. - allow_undefined=yes
  47653. - ;;
  47654. - *)
  47655. - allow_undefined=yes
  47656. - ;;
  47657. - esac
  47658. - libtool_args="$nonopt"
  47659. - base_compile="$nonopt $@"
  47660. - compile_command="$nonopt"
  47661. - finalize_command="$nonopt"
  47662. +$opt_help || {
  47663. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  47664. +}
  47665. - compile_rpath=
  47666. - finalize_rpath=
  47667. - compile_shlibpath=
  47668. - finalize_shlibpath=
  47669. - convenience=
  47670. - old_convenience=
  47671. - deplibs=
  47672. - old_deplibs=
  47673. - compiler_flags=
  47674. - linker_flags=
  47675. - dllsearchpath=
  47676. - lib_search_path=`pwd`
  47677. - inst_prefix_dir=
  47678. +func_mode_help ()
  47679. +{
  47680. + # We need to display help for each of the modes.
  47681. + case $mode in
  47682. + "")
  47683. + # Generic help is extracted from the usage comments
  47684. + # at the start of this file.
  47685. + func_help
  47686. + ;;
  47687. - avoid_version=no
  47688. - dlfiles=
  47689. - dlprefiles=
  47690. - dlself=no
  47691. - export_dynamic=no
  47692. - export_symbols=
  47693. - export_symbols_regex=
  47694. - generated=
  47695. - libobjs=
  47696. - ltlibs=
  47697. - module=no
  47698. - no_install=no
  47699. - objs=
  47700. - non_pic_objects=
  47701. - notinst_path= # paths that contain not-installed libtool libraries
  47702. - precious_files_regex=
  47703. - prefer_static_libs=no
  47704. - preload=no
  47705. - prev=
  47706. - prevarg=
  47707. - release=
  47708. - rpath=
  47709. - xrpath=
  47710. - perm_rpath=
  47711. - temp_rpath=
  47712. - thread_safe=no
  47713. - vinfo=
  47714. - vinfo_number=no
  47715. + clean)
  47716. + $ECHO \
  47717. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  47718. - func_infer_tag $base_compile
  47719. +Remove files from the build directory.
  47720. - # We need to know -static, to get the right output filenames.
  47721. - for arg
  47722. - do
  47723. - case $arg in
  47724. - -all-static | -static)
  47725. - if test "X$arg" = "X-all-static"; then
  47726. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  47727. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  47728. - fi
  47729. - if test -n "$link_static_flag"; then
  47730. - dlopen_self=$dlopen_self_static
  47731. - fi
  47732. - prefer_static_libs=yes
  47733. - else
  47734. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  47735. - dlopen_self=$dlopen_self_static
  47736. - fi
  47737. - prefer_static_libs=built
  47738. - fi
  47739. - build_libtool_libs=no
  47740. - build_old_libs=yes
  47741. - break
  47742. - ;;
  47743. - esac
  47744. - done
  47745. +RM is the name of the program to use to delete files associated with each FILE
  47746. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  47747. +to RM.
  47748. - # See if our shared archives depend on static archives.
  47749. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  47750. +If FILE is a libtool library, object or program, all the files associated
  47751. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  47752. + ;;
  47753. - # Go through the arguments, transforming them on the way.
  47754. - while test "$#" -gt 0; do
  47755. - arg="$1"
  47756. - shift
  47757. - case $arg in
  47758. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47759. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  47760. - ;;
  47761. - *) qarg=$arg ;;
  47762. - esac
  47763. - libtool_args="$libtool_args $qarg"
  47764. + compile)
  47765. + $ECHO \
  47766. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  47767. - # If the previous option needs an argument, assign it.
  47768. - if test -n "$prev"; then
  47769. - case $prev in
  47770. - output)
  47771. - compile_command="$compile_command @OUTPUT@"
  47772. - finalize_command="$finalize_command @OUTPUT@"
  47773. - ;;
  47774. - esac
  47775. +Compile a source file into a libtool library object.
  47776. - case $prev in
  47777. - dlfiles|dlprefiles)
  47778. - if test "$preload" = no; then
  47779. - # Add the symbol object into the linking commands.
  47780. - compile_command="$compile_command @SYMFILE@"
  47781. - finalize_command="$finalize_command @SYMFILE@"
  47782. - preload=yes
  47783. - fi
  47784. - case $arg in
  47785. - *.la | *.lo) ;; # We handle these cases below.
  47786. - force)
  47787. - if test "$dlself" = no; then
  47788. - dlself=needless
  47789. - export_dynamic=yes
  47790. - fi
  47791. - prev=
  47792. - continue
  47793. - ;;
  47794. - self)
  47795. - if test "$prev" = dlprefiles; then
  47796. - dlself=yes
  47797. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  47798. - dlself=yes
  47799. - else
  47800. - dlself=needless
  47801. - export_dynamic=yes
  47802. - fi
  47803. - prev=
  47804. - continue
  47805. - ;;
  47806. - *)
  47807. - if test "$prev" = dlfiles; then
  47808. - dlfiles="$dlfiles $arg"
  47809. - else
  47810. - dlprefiles="$dlprefiles $arg"
  47811. - fi
  47812. - prev=
  47813. - continue
  47814. - ;;
  47815. - esac
  47816. - ;;
  47817. - expsyms)
  47818. - export_symbols="$arg"
  47819. - if test ! -f "$arg"; then
  47820. - $echo "$modename: symbol file \`$arg' does not exist"
  47821. - exit $EXIT_FAILURE
  47822. - fi
  47823. - prev=
  47824. - continue
  47825. - ;;
  47826. - expsyms_regex)
  47827. - export_symbols_regex="$arg"
  47828. - prev=
  47829. - continue
  47830. - ;;
  47831. - inst_prefix)
  47832. - inst_prefix_dir="$arg"
  47833. - prev=
  47834. - continue
  47835. - ;;
  47836. - precious_regex)
  47837. - precious_files_regex="$arg"
  47838. - prev=
  47839. - continue
  47840. - ;;
  47841. - release)
  47842. - release="-$arg"
  47843. - prev=
  47844. - continue
  47845. - ;;
  47846. - objectlist)
  47847. - if test -f "$arg"; then
  47848. - save_arg=$arg
  47849. - moreargs=
  47850. - for fil in `cat $save_arg`
  47851. - do
  47852. -# moreargs="$moreargs $fil"
  47853. - arg=$fil
  47854. - # A libtool-controlled object.
  47855. +This mode accepts the following additional options:
  47856. - # Check to see that this really is a libtool object.
  47857. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  47858. - pic_object=
  47859. - non_pic_object=
  47860. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  47861. + -no-suppress do not suppress compiler output for multiple passes
  47862. + -prefer-pic try to building PIC objects only
  47863. + -prefer-non-pic try to building non-PIC objects only
  47864. + -shared do not build a \`.o' file suitable for static linking
  47865. + -static only build a \`.o' file suitable for static linking
  47866. - # Read the .lo file
  47867. - # If there is no directory component, then add one.
  47868. - case $arg in
  47869. - */* | *\\*) . $arg ;;
  47870. - *) . ./$arg ;;
  47871. - esac
  47872. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  47873. +from the given SOURCEFILE.
  47874. - if test -z "$pic_object" || \
  47875. - test -z "$non_pic_object" ||
  47876. - test "$pic_object" = none && \
  47877. - test "$non_pic_object" = none; then
  47878. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  47879. - exit $EXIT_FAILURE
  47880. - fi
  47881. +The output file name is determined by removing the directory component from
  47882. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  47883. +library object suffix, \`.lo'."
  47884. + ;;
  47885. - # Extract subdirectory from the argument.
  47886. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47887. - if test "X$xdir" = "X$arg"; then
  47888. - xdir=
  47889. - else
  47890. - xdir="$xdir/"
  47891. - fi
  47892. + execute)
  47893. + $ECHO \
  47894. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  47895. - if test "$pic_object" != none; then
  47896. - # Prepend the subdirectory the object is found in.
  47897. - pic_object="$xdir$pic_object"
  47898. +Automatically set library path, then run a program.
  47899. - if test "$prev" = dlfiles; then
  47900. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47901. - dlfiles="$dlfiles $pic_object"
  47902. - prev=
  47903. - continue
  47904. - else
  47905. - # If libtool objects are unsupported, then we need to preload.
  47906. - prev=dlprefiles
  47907. - fi
  47908. - fi
  47909. +This mode accepts the following additional options:
  47910. - # CHECK ME: I think I busted this. -Ossama
  47911. - if test "$prev" = dlprefiles; then
  47912. - # Preload the old-style object.
  47913. - dlprefiles="$dlprefiles $pic_object"
  47914. - prev=
  47915. - fi
  47916. + -dlopen FILE add the directory containing FILE to the library path
  47917. - # A PIC object.
  47918. - libobjs="$libobjs $pic_object"
  47919. - arg="$pic_object"
  47920. - fi
  47921. +This mode sets the library path environment variable according to \`-dlopen'
  47922. +flags.
  47923. - # Non-PIC object.
  47924. - if test "$non_pic_object" != none; then
  47925. - # Prepend the subdirectory the object is found in.
  47926. - non_pic_object="$xdir$non_pic_object"
  47927. +If any of the ARGS are libtool executable wrappers, then they are translated
  47928. +into their corresponding uninstalled binary, and any of their required library
  47929. +directories are added to the library path.
  47930. - # A standard non-PIC object
  47931. - non_pic_objects="$non_pic_objects $non_pic_object"
  47932. - if test -z "$pic_object" || test "$pic_object" = none ; then
  47933. - arg="$non_pic_object"
  47934. - fi
  47935. - else
  47936. - # If the PIC object exists, use it instead.
  47937. - # $xdir was prepended to $pic_object above.
  47938. - non_pic_object="$pic_object"
  47939. - non_pic_objects="$non_pic_objects $non_pic_object"
  47940. - fi
  47941. - else
  47942. - # Only an error if not doing a dry-run.
  47943. - if test -z "$run"; then
  47944. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  47945. - exit $EXIT_FAILURE
  47946. - else
  47947. - # Dry-run case.
  47948. +Then, COMMAND is executed, with ARGS as arguments."
  47949. + ;;
  47950. - # Extract subdirectory from the argument.
  47951. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47952. - if test "X$xdir" = "X$arg"; then
  47953. - xdir=
  47954. - else
  47955. - xdir="$xdir/"
  47956. - fi
  47957. + finish)
  47958. + $ECHO \
  47959. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  47960. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  47961. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  47962. - libobjs="$libobjs $pic_object"
  47963. - non_pic_objects="$non_pic_objects $non_pic_object"
  47964. - fi
  47965. - fi
  47966. - done
  47967. - else
  47968. - $echo "$modename: link input file \`$save_arg' does not exist"
  47969. - exit $EXIT_FAILURE
  47970. - fi
  47971. - arg=$save_arg
  47972. - prev=
  47973. - continue
  47974. - ;;
  47975. - rpath | xrpath)
  47976. - # We need an absolute path.
  47977. - case $arg in
  47978. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47979. - *)
  47980. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  47981. - exit $EXIT_FAILURE
  47982. - ;;
  47983. - esac
  47984. - if test "$prev" = rpath; then
  47985. - case "$rpath " in
  47986. - *" $arg "*) ;;
  47987. - *) rpath="$rpath $arg" ;;
  47988. - esac
  47989. - else
  47990. - case "$xrpath " in
  47991. - *" $arg "*) ;;
  47992. - *) xrpath="$xrpath $arg" ;;
  47993. - esac
  47994. - fi
  47995. - prev=
  47996. - continue
  47997. - ;;
  47998. - xcompiler)
  47999. - compiler_flags="$compiler_flags $qarg"
  48000. - prev=
  48001. - compile_command="$compile_command $qarg"
  48002. - finalize_command="$finalize_command $qarg"
  48003. - continue
  48004. - ;;
  48005. - xlinker)
  48006. - linker_flags="$linker_flags $qarg"
  48007. - compiler_flags="$compiler_flags $wl$qarg"
  48008. - prev=
  48009. - compile_command="$compile_command $wl$qarg"
  48010. - finalize_command="$finalize_command $wl$qarg"
  48011. - continue
  48012. - ;;
  48013. - xcclinker)
  48014. - linker_flags="$linker_flags $qarg"
  48015. - compiler_flags="$compiler_flags $qarg"
  48016. - prev=
  48017. - compile_command="$compile_command $qarg"
  48018. - finalize_command="$finalize_command $qarg"
  48019. - continue
  48020. - ;;
  48021. - shrext)
  48022. - shrext_cmds="$arg"
  48023. - prev=
  48024. - continue
  48025. - ;;
  48026. - darwin_framework|darwin_framework_skip)
  48027. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  48028. - compile_command="$compile_command $arg"
  48029. - finalize_command="$finalize_command $arg"
  48030. - prev=
  48031. - continue
  48032. - ;;
  48033. - *)
  48034. - eval "$prev=\"\$arg\""
  48035. - prev=
  48036. - continue
  48037. - ;;
  48038. - esac
  48039. - fi # test -n "$prev"
  48040. +Complete the installation of libtool libraries.
  48041. - prevarg="$arg"
  48042. +Each LIBDIR is a directory that contains libtool libraries.
  48043. - case $arg in
  48044. - -all-static)
  48045. - if test -n "$link_static_flag"; then
  48046. - compile_command="$compile_command $link_static_flag"
  48047. - finalize_command="$finalize_command $link_static_flag"
  48048. - fi
  48049. - continue
  48050. - ;;
  48051. +The commands that this mode executes may require superuser privileges. Use
  48052. +the \`--dry-run' option if you just want to see what would be executed."
  48053. + ;;
  48054. - -allow-undefined)
  48055. - # FIXME: remove this flag sometime in the future.
  48056. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  48057. - continue
  48058. - ;;
  48059. + install)
  48060. + $ECHO \
  48061. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  48062. - -avoid-version)
  48063. - avoid_version=yes
  48064. - continue
  48065. - ;;
  48066. +Install executables or libraries.
  48067. - -dlopen)
  48068. - prev=dlfiles
  48069. - continue
  48070. - ;;
  48071. +INSTALL-COMMAND is the installation command. The first component should be
  48072. +either the \`install' or \`cp' program.
  48073. - -dlpreopen)
  48074. - prev=dlprefiles
  48075. - continue
  48076. - ;;
  48077. +The following components of INSTALL-COMMAND are treated specially:
  48078. - -export-dynamic)
  48079. - export_dynamic=yes
  48080. - continue
  48081. - ;;
  48082. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  48083. - -export-symbols | -export-symbols-regex)
  48084. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  48085. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  48086. - exit $EXIT_FAILURE
  48087. - fi
  48088. - if test "X$arg" = "X-export-symbols"; then
  48089. - prev=expsyms
  48090. - else
  48091. - prev=expsyms_regex
  48092. - fi
  48093. - continue
  48094. - ;;
  48095. +The rest of the components are interpreted as arguments to that command (only
  48096. +BSD-compatible install options are recognized)."
  48097. + ;;
  48098. - -framework|-arch|-isysroot)
  48099. - case " $CC " in
  48100. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  48101. - prev=darwin_framework_skip ;;
  48102. - *) compiler_flags="$compiler_flags $arg"
  48103. - prev=darwin_framework ;;
  48104. - esac
  48105. - compile_command="$compile_command $arg"
  48106. - finalize_command="$finalize_command $arg"
  48107. - continue
  48108. - ;;
  48109. + link)
  48110. + $ECHO \
  48111. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  48112. - -inst-prefix-dir)
  48113. - prev=inst_prefix
  48114. - continue
  48115. - ;;
  48116. +Link object files or libraries together to form another library, or to
  48117. +create an executable program.
  48118. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  48119. - # so, if we see these flags be careful not to treat them like -L
  48120. - -L[A-Z][A-Z]*:*)
  48121. - case $with_gcc/$host in
  48122. - no/*-*-irix* | /*-*-irix*)
  48123. - compile_command="$compile_command $arg"
  48124. - finalize_command="$finalize_command $arg"
  48125. - ;;
  48126. - esac
  48127. - continue
  48128. - ;;
  48129. +LINK-COMMAND is a command using the C compiler that you would use to create
  48130. +a program from several object files.
  48131. - -L*)
  48132. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  48133. - # We need an absolute path.
  48134. - case $dir in
  48135. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48136. - *)
  48137. - absdir=`cd "$dir" && pwd`
  48138. - if test -z "$absdir"; then
  48139. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  48140. - absdir="$dir"
  48141. - notinst_path="$notinst_path $dir"
  48142. - fi
  48143. - dir="$absdir"
  48144. - ;;
  48145. - esac
  48146. - case "$deplibs " in
  48147. - *" -L$dir "*) ;;
  48148. - *)
  48149. - deplibs="$deplibs -L$dir"
  48150. - lib_search_path="$lib_search_path $dir"
  48151. - ;;
  48152. - esac
  48153. - case $host in
  48154. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  48155. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  48156. - case :$dllsearchpath: in
  48157. - *":$dir:"*) ;;
  48158. - *) dllsearchpath="$dllsearchpath:$dir";;
  48159. - esac
  48160. - case :$dllsearchpath: in
  48161. - *":$testbindir:"*) ;;
  48162. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  48163. - esac
  48164. - ;;
  48165. - esac
  48166. - continue
  48167. - ;;
  48168. +The following components of LINK-COMMAND are treated specially:
  48169. - -l*)
  48170. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  48171. - case $host in
  48172. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  48173. - # These systems don't actually have a C or math library (as such)
  48174. - continue
  48175. - ;;
  48176. - *-*-os2*)
  48177. - # These systems don't actually have a C library (as such)
  48178. - test "X$arg" = "X-lc" && continue
  48179. - ;;
  48180. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  48181. - # Do not include libc due to us having libc/libc_r.
  48182. - test "X$arg" = "X-lc" && continue
  48183. - ;;
  48184. - *-*-rhapsody* | *-*-darwin1.[012])
  48185. - # Rhapsody C and math libraries are in the System framework
  48186. - deplibs="$deplibs -framework System"
  48187. - continue
  48188. - ;;
  48189. - *-*-sco3.2v5* | *-*-sco5v6*)
  48190. - # Causes problems with __ctype
  48191. - test "X$arg" = "X-lc" && continue
  48192. - ;;
  48193. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  48194. - # Compiler inserts libc in the correct place for threads to work
  48195. - test "X$arg" = "X-lc" && continue
  48196. - ;;
  48197. - esac
  48198. - elif test "X$arg" = "X-lc_r"; then
  48199. - case $host in
  48200. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  48201. - # Do not include libc_r directly, use -pthread flag.
  48202. - continue
  48203. - ;;
  48204. - esac
  48205. - fi
  48206. - deplibs="$deplibs $arg"
  48207. - continue
  48208. - ;;
  48209. + -all-static do not do any dynamic linking at all
  48210. + -avoid-version do not add a version suffix if possible
  48211. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  48212. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  48213. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  48214. + -export-symbols SYMFILE
  48215. + try to export only the symbols listed in SYMFILE
  48216. + -export-symbols-regex REGEX
  48217. + try to export only the symbols matching REGEX
  48218. + -LLIBDIR search LIBDIR for required installed libraries
  48219. + -lNAME OUTPUT-FILE requires the installed library libNAME
  48220. + -module build a library that can dlopened
  48221. + -no-fast-install disable the fast-install mode
  48222. + -no-install link a not-installable executable
  48223. + -no-undefined declare that a library does not refer to external symbols
  48224. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  48225. + -objectlist FILE Use a list of object files found in FILE to specify objects
  48226. + -precious-files-regex REGEX
  48227. + don't remove output files matching REGEX
  48228. + -release RELEASE specify package release information
  48229. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  48230. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  48231. + -shared only do dynamic linking of libtool libraries
  48232. + -shrext SUFFIX override the standard shared library file extension
  48233. + -static do not do any dynamic linking of uninstalled libtool libraries
  48234. + -static-libtool-libs
  48235. + do not do any dynamic linking of libtool libraries
  48236. + -version-info CURRENT[:REVISION[:AGE]]
  48237. + specify library version info [each variable defaults to 0]
  48238. + -weak LIBNAME declare that the target provides the LIBNAME interface
  48239. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  48240. - # classes, name mangling, and exception handling.
  48241. - -model)
  48242. - compile_command="$compile_command $arg"
  48243. - compiler_flags="$compiler_flags $arg"
  48244. - finalize_command="$finalize_command $arg"
  48245. - prev=xcompiler
  48246. - continue
  48247. - ;;
  48248. +All other options (arguments beginning with \`-') are ignored.
  48249. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  48250. - compiler_flags="$compiler_flags $arg"
  48251. - compile_command="$compile_command $arg"
  48252. - finalize_command="$finalize_command $arg"
  48253. - continue
  48254. - ;;
  48255. +Every other argument is treated as a filename. Files ending in \`.la' are
  48256. +treated as uninstalled libtool libraries, other files are standard or library
  48257. +object files.
  48258. - -module)
  48259. - module=yes
  48260. - continue
  48261. - ;;
  48262. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  48263. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  48264. +required, except when creating a convenience library.
  48265. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  48266. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  48267. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  48268. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  48269. - # -q* pass through compiler args for the IBM compiler
  48270. - # -m* pass through architecture-specific compiler args for GCC
  48271. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  48272. - # compiler args for GCC
  48273. - # -pg pass through profiling flag for GCC
  48274. - # @file GCC response files
  48275. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  48276. - -t[45]*|-txscale*|@*)
  48277. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  48278. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  48279. - # Unknown arguments in both finalize_command and compile_command need
  48280. - # to be aesthetically quoted because they are evaled later.
  48281. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48282. - case $arg in
  48283. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48284. - arg="\"$arg\""
  48285. - ;;
  48286. - esac
  48287. - compile_command="$compile_command $arg"
  48288. - finalize_command="$finalize_command $arg"
  48289. - compiler_flags="$compiler_flags $arg"
  48290. - continue
  48291. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  48292. +is created, otherwise an executable program is created."
  48293. ;;
  48294. - -shrext)
  48295. - prev=shrext
  48296. - continue
  48297. - ;;
  48298. + uninstall)
  48299. + $ECHO \
  48300. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  48301. - -no-fast-install)
  48302. - fast_install=no
  48303. - continue
  48304. - ;;
  48305. +Remove libraries from an installation directory.
  48306. - -no-install)
  48307. - case $host in
  48308. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  48309. - # The PATH hackery in wrapper scripts is required on Windows
  48310. - # in order for the loader to find any dlls it needs.
  48311. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  48312. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  48313. - fast_install=no
  48314. - ;;
  48315. - *) no_install=yes ;;
  48316. - esac
  48317. - continue
  48318. - ;;
  48319. +RM is the name of the program to use to delete files associated with each FILE
  48320. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  48321. +to RM.
  48322. - -no-undefined)
  48323. - allow_undefined=no
  48324. - continue
  48325. - ;;
  48326. +If FILE is a libtool library, all the files associated with it are deleted.
  48327. +Otherwise, only FILE itself is deleted using RM."
  48328. + ;;
  48329. - -objectlist)
  48330. - prev=objectlist
  48331. - continue
  48332. - ;;
  48333. + *)
  48334. + func_fatal_help "invalid operation mode \`$mode'"
  48335. + ;;
  48336. + esac
  48337. - -o) prev=output ;;
  48338. + $ECHO
  48339. + $ECHO "Try \`$progname --help' for more information about other modes."
  48340. - -precious-files-regex)
  48341. - prev=precious_regex
  48342. - continue
  48343. - ;;
  48344. + exit $?
  48345. +}
  48346. - -release)
  48347. - prev=release
  48348. - continue
  48349. - ;;
  48350. + # Now that we've collected a possible --mode arg, show help if necessary
  48351. + $opt_help && func_mode_help
  48352. - -rpath)
  48353. - prev=rpath
  48354. - continue
  48355. - ;;
  48356. - -R)
  48357. - prev=xrpath
  48358. - continue
  48359. - ;;
  48360. +# func_mode_execute arg...
  48361. +func_mode_execute ()
  48362. +{
  48363. + $opt_debug
  48364. + # The first argument is the command name.
  48365. + cmd="$nonopt"
  48366. + test -z "$cmd" && \
  48367. + func_fatal_help "you must specify a COMMAND"
  48368. - -R*)
  48369. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  48370. - # We need an absolute path.
  48371. - case $dir in
  48372. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48373. - *)
  48374. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  48375. - exit $EXIT_FAILURE
  48376. - ;;
  48377. - esac
  48378. - case "$xrpath " in
  48379. - *" $dir "*) ;;
  48380. - *) xrpath="$xrpath $dir" ;;
  48381. - esac
  48382. - continue
  48383. - ;;
  48384. -
  48385. - -static)
  48386. - # The effects of -static are defined in a previous loop.
  48387. - # We used to do the same as -all-static on platforms that
  48388. - # didn't have a PIC flag, but the assumption that the effects
  48389. - # would be equivalent was wrong. It would break on at least
  48390. - # Digital Unix and AIX.
  48391. - continue
  48392. - ;;
  48393. + # Handle -dlopen flags immediately.
  48394. + for file in $execute_dlfiles; do
  48395. + test -f "$file" \
  48396. + || func_fatal_help "\`$file' is not a file"
  48397. - -thread-safe)
  48398. - thread_safe=yes
  48399. - continue
  48400. - ;;
  48401. + dir=
  48402. + case $file in
  48403. + *.la)
  48404. + # Check to see that this really is a libtool archive.
  48405. + func_lalib_unsafe_p "$file" \
  48406. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  48407. - -version-info)
  48408. - prev=vinfo
  48409. - continue
  48410. - ;;
  48411. - -version-number)
  48412. - prev=vinfo
  48413. - vinfo_number=yes
  48414. - continue
  48415. - ;;
  48416. + # Read the libtool library.
  48417. + dlname=
  48418. + library_names=
  48419. + func_source "$file"
  48420. - -Wc,*)
  48421. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  48422. - arg=
  48423. - save_ifs="$IFS"; IFS=','
  48424. - for flag in $args; do
  48425. - IFS="$save_ifs"
  48426. - case $flag in
  48427. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48428. - flag="\"$flag\""
  48429. - ;;
  48430. - esac
  48431. - arg="$arg $wl$flag"
  48432. - compiler_flags="$compiler_flags $flag"
  48433. - done
  48434. - IFS="$save_ifs"
  48435. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  48436. - ;;
  48437. + # Skip this library if it cannot be dlopened.
  48438. + if test -z "$dlname"; then
  48439. + # Warn if it was a shared library.
  48440. + test -n "$library_names" && \
  48441. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  48442. + continue
  48443. + fi
  48444. - -Wl,*)
  48445. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  48446. - arg=
  48447. - save_ifs="$IFS"; IFS=','
  48448. - for flag in $args; do
  48449. - IFS="$save_ifs"
  48450. - case $flag in
  48451. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48452. - flag="\"$flag\""
  48453. - ;;
  48454. - esac
  48455. - arg="$arg $wl$flag"
  48456. - compiler_flags="$compiler_flags $wl$flag"
  48457. - linker_flags="$linker_flags $flag"
  48458. - done
  48459. - IFS="$save_ifs"
  48460. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  48461. - ;;
  48462. + func_dirname "$file" "" "."
  48463. + dir="$func_dirname_result"
  48464. - -Xcompiler)
  48465. - prev=xcompiler
  48466. - continue
  48467. + if test -f "$dir/$objdir/$dlname"; then
  48468. + dir="$dir/$objdir"
  48469. + else
  48470. + if test ! -f "$dir/$dlname"; then
  48471. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  48472. + fi
  48473. + fi
  48474. ;;
  48475. - -Xlinker)
  48476. - prev=xlinker
  48477. - continue
  48478. + *.lo)
  48479. + # Just add the directory containing the .lo file.
  48480. + func_dirname "$file" "" "."
  48481. + dir="$func_dirname_result"
  48482. ;;
  48483. - -XCClinker)
  48484. - prev=xcclinker
  48485. + *)
  48486. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  48487. continue
  48488. ;;
  48489. + esac
  48490. - # Some other compiler flag.
  48491. - -* | +*)
  48492. - # Unknown arguments in both finalize_command and compile_command need
  48493. - # to be aesthetically quoted because they are evaled later.
  48494. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48495. - case $arg in
  48496. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48497. - arg="\"$arg\""
  48498. - ;;
  48499. - esac
  48500. - ;;
  48501. + # Get the absolute pathname.
  48502. + absdir=`cd "$dir" && pwd`
  48503. + test -n "$absdir" && dir="$absdir"
  48504. - *.$objext)
  48505. - # A standard object.
  48506. - objs="$objs $arg"
  48507. - ;;
  48508. + # Now add the directory to shlibpath_var.
  48509. + if eval "test -z \"\$$shlibpath_var\""; then
  48510. + eval "$shlibpath_var=\"\$dir\""
  48511. + else
  48512. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  48513. + fi
  48514. + done
  48515. - *.lo)
  48516. - # A libtool-controlled object.
  48517. + # This variable tells wrapper scripts just to set shlibpath_var
  48518. + # rather than running their programs.
  48519. + libtool_execute_magic="$magic"
  48520. - # Check to see that this really is a libtool object.
  48521. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48522. - pic_object=
  48523. - non_pic_object=
  48524. + # Check if any of the arguments is a wrapper script.
  48525. + args=
  48526. + for file
  48527. + do
  48528. + case $file in
  48529. + -*) ;;
  48530. + *)
  48531. + # Do a test to see if this is really a libtool program.
  48532. + if func_ltwrapper_script_p "$file"; then
  48533. + func_source "$file"
  48534. + # Transform arg to wrapped name.
  48535. + file="$progdir/$program"
  48536. + elif func_ltwrapper_executable_p "$file"; then
  48537. + func_ltwrapper_scriptname "$file"
  48538. + func_source "$func_ltwrapper_scriptname_result"
  48539. + # Transform arg to wrapped name.
  48540. + file="$progdir/$program"
  48541. + fi
  48542. + ;;
  48543. + esac
  48544. + # Quote arguments (to preserve shell metacharacters).
  48545. + func_quote_for_eval "$file"
  48546. + args="$args $func_quote_for_eval_result"
  48547. + done
  48548. - # Read the .lo file
  48549. - # If there is no directory component, then add one.
  48550. - case $arg in
  48551. - */* | *\\*) . $arg ;;
  48552. - *) . ./$arg ;;
  48553. - esac
  48554. + if test "X$opt_dry_run" = Xfalse; then
  48555. + if test -n "$shlibpath_var"; then
  48556. + # Export the shlibpath_var.
  48557. + eval "export $shlibpath_var"
  48558. + fi
  48559. - if test -z "$pic_object" || \
  48560. - test -z "$non_pic_object" ||
  48561. - test "$pic_object" = none && \
  48562. - test "$non_pic_object" = none; then
  48563. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  48564. - exit $EXIT_FAILURE
  48565. - fi
  48566. + # Restore saved environment variables
  48567. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  48568. + do
  48569. + eval "if test \"\${save_$lt_var+set}\" = set; then
  48570. + $lt_var=\$save_$lt_var; export $lt_var
  48571. + else
  48572. + $lt_unset $lt_var
  48573. + fi"
  48574. + done
  48575. - # Extract subdirectory from the argument.
  48576. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48577. - if test "X$xdir" = "X$arg"; then
  48578. - xdir=
  48579. - else
  48580. - xdir="$xdir/"
  48581. - fi
  48582. + # Now prepare to actually exec the command.
  48583. + exec_cmd="\$cmd$args"
  48584. + else
  48585. + # Display what would be done.
  48586. + if test -n "$shlibpath_var"; then
  48587. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  48588. + $ECHO "export $shlibpath_var"
  48589. + fi
  48590. + $ECHO "$cmd$args"
  48591. + exit $EXIT_SUCCESS
  48592. + fi
  48593. +}
  48594. - if test "$pic_object" != none; then
  48595. - # Prepend the subdirectory the object is found in.
  48596. - pic_object="$xdir$pic_object"
  48597. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  48598. - if test "$prev" = dlfiles; then
  48599. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  48600. - dlfiles="$dlfiles $pic_object"
  48601. - prev=
  48602. - continue
  48603. - else
  48604. - # If libtool objects are unsupported, then we need to preload.
  48605. - prev=dlprefiles
  48606. - fi
  48607. - fi
  48608. - # CHECK ME: I think I busted this. -Ossama
  48609. - if test "$prev" = dlprefiles; then
  48610. - # Preload the old-style object.
  48611. - dlprefiles="$dlprefiles $pic_object"
  48612. - prev=
  48613. - fi
  48614. +# func_mode_finish arg...
  48615. +func_mode_finish ()
  48616. +{
  48617. + $opt_debug
  48618. + libdirs="$nonopt"
  48619. + admincmds=
  48620. - # A PIC object.
  48621. - libobjs="$libobjs $pic_object"
  48622. - arg="$pic_object"
  48623. - fi
  48624. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  48625. + for dir
  48626. + do
  48627. + libdirs="$libdirs $dir"
  48628. + done
  48629. - # Non-PIC object.
  48630. - if test "$non_pic_object" != none; then
  48631. - # Prepend the subdirectory the object is found in.
  48632. - non_pic_object="$xdir$non_pic_object"
  48633. + for libdir in $libdirs; do
  48634. + if test -n "$finish_cmds"; then
  48635. + # Do each command in the finish commands.
  48636. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  48637. +'"$cmd"'"'
  48638. + fi
  48639. + if test -n "$finish_eval"; then
  48640. + # Do the single finish_eval.
  48641. + eval cmds=\"$finish_eval\"
  48642. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  48643. + $cmds"
  48644. + fi
  48645. + done
  48646. + fi
  48647. - # A standard non-PIC object
  48648. - non_pic_objects="$non_pic_objects $non_pic_object"
  48649. - if test -z "$pic_object" || test "$pic_object" = none ; then
  48650. - arg="$non_pic_object"
  48651. - fi
  48652. - else
  48653. - # If the PIC object exists, use it instead.
  48654. - # $xdir was prepended to $pic_object above.
  48655. - non_pic_object="$pic_object"
  48656. - non_pic_objects="$non_pic_objects $non_pic_object"
  48657. - fi
  48658. - else
  48659. - # Only an error if not doing a dry-run.
  48660. - if test -z "$run"; then
  48661. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  48662. - exit $EXIT_FAILURE
  48663. - else
  48664. - # Dry-run case.
  48665. + # Exit here if they wanted silent mode.
  48666. + $opt_silent && exit $EXIT_SUCCESS
  48667. - # Extract subdirectory from the argument.
  48668. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  48669. - if test "X$xdir" = "X$arg"; then
  48670. - xdir=
  48671. - else
  48672. - xdir="$xdir/"
  48673. - fi
  48674. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  48675. + $ECHO "Libraries have been installed in:"
  48676. + for libdir in $libdirs; do
  48677. + $ECHO " $libdir"
  48678. + done
  48679. + $ECHO
  48680. + $ECHO "If you ever happen to want to link against installed libraries"
  48681. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  48682. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  48683. + $ECHO "flag during linking and do at least one of the following:"
  48684. + if test -n "$shlibpath_var"; then
  48685. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  48686. + $ECHO " during execution"
  48687. + fi
  48688. + if test -n "$runpath_var"; then
  48689. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  48690. + $ECHO " during linking"
  48691. + fi
  48692. + if test -n "$hardcode_libdir_flag_spec"; then
  48693. + libdir=LIBDIR
  48694. + eval flag=\"$hardcode_libdir_flag_spec\"
  48695. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  48696. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  48697. - libobjs="$libobjs $pic_object"
  48698. - non_pic_objects="$non_pic_objects $non_pic_object"
  48699. - fi
  48700. - fi
  48701. - ;;
  48702. + $ECHO " - use the \`$flag' linker flag"
  48703. + fi
  48704. + if test -n "$admincmds"; then
  48705. + $ECHO " - have your system administrator run these commands:$admincmds"
  48706. + fi
  48707. + if test -f /etc/ld.so.conf; then
  48708. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  48709. + fi
  48710. + $ECHO
  48711. - *.$libext)
  48712. - # An archive.
  48713. - deplibs="$deplibs $arg"
  48714. - old_deplibs="$old_deplibs $arg"
  48715. - continue
  48716. + $ECHO "See any operating system documentation about shared libraries for"
  48717. + case $host in
  48718. + solaris2.[6789]|solaris2.1[0-9])
  48719. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  48720. + $ECHO "pages."
  48721. ;;
  48722. + *)
  48723. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  48724. + ;;
  48725. + esac
  48726. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  48727. + exit $EXIT_SUCCESS
  48728. +}
  48729. - *.la)
  48730. - # A libtool-controlled library.
  48731. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  48732. - if test "$prev" = dlfiles; then
  48733. - # This library was specified with -dlopen.
  48734. - dlfiles="$dlfiles $arg"
  48735. - prev=
  48736. - elif test "$prev" = dlprefiles; then
  48737. - # The library was specified with -dlpreopen.
  48738. - dlprefiles="$dlprefiles $arg"
  48739. - prev=
  48740. - else
  48741. - deplibs="$deplibs $arg"
  48742. - fi
  48743. - continue
  48744. - ;;
  48745. - # Some other compiler argument.
  48746. - *)
  48747. - # Unknown arguments in both finalize_command and compile_command need
  48748. - # to be aesthetically quoted because they are evaled later.
  48749. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48750. - case $arg in
  48751. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48752. - arg="\"$arg\""
  48753. - ;;
  48754. - esac
  48755. - ;;
  48756. - esac # arg
  48757. +# func_mode_install arg...
  48758. +func_mode_install ()
  48759. +{
  48760. + $opt_debug
  48761. + # There may be an optional sh(1) argument at the beginning of
  48762. + # install_prog (especially on Windows NT).
  48763. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  48764. + # Allow the use of GNU shtool's install command.
  48765. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  48766. + # Aesthetically quote it.
  48767. + func_quote_for_eval "$nonopt"
  48768. + install_prog="$func_quote_for_eval_result "
  48769. + arg=$1
  48770. + shift
  48771. + else
  48772. + install_prog=
  48773. + arg=$nonopt
  48774. + fi
  48775. - # Now actually substitute the argument into the commands.
  48776. - if test -n "$arg"; then
  48777. - compile_command="$compile_command $arg"
  48778. - finalize_command="$finalize_command $arg"
  48779. + # The real first argument should be the name of the installation program.
  48780. + # Aesthetically quote it.
  48781. + func_quote_for_eval "$arg"
  48782. + install_prog="$install_prog$func_quote_for_eval_result"
  48783. +
  48784. + # We need to accept at least all the BSD install flags.
  48785. + dest=
  48786. + files=
  48787. + opts=
  48788. + prev=
  48789. + install_type=
  48790. + isdir=no
  48791. + stripme=
  48792. + for arg
  48793. + do
  48794. + if test -n "$dest"; then
  48795. + files="$files $dest"
  48796. + dest=$arg
  48797. + continue
  48798. fi
  48799. - done # argument parsing loop
  48800. - if test -n "$prev"; then
  48801. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  48802. - $echo "$help" 1>&2
  48803. - exit $EXIT_FAILURE
  48804. - fi
  48805. + case $arg in
  48806. + -d) isdir=yes ;;
  48807. + -f)
  48808. + case " $install_prog " in
  48809. + *[\\\ /]cp\ *) ;;
  48810. + *) prev=$arg ;;
  48811. + esac
  48812. + ;;
  48813. + -g | -m | -o)
  48814. + prev=$arg
  48815. + ;;
  48816. + -s)
  48817. + stripme=" -s"
  48818. + continue
  48819. + ;;
  48820. + -*)
  48821. + ;;
  48822. + *)
  48823. + # If the previous option needed an argument, then skip it.
  48824. + if test -n "$prev"; then
  48825. + prev=
  48826. + else
  48827. + dest=$arg
  48828. + continue
  48829. + fi
  48830. + ;;
  48831. + esac
  48832. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  48833. - eval arg=\"$export_dynamic_flag_spec\"
  48834. - compile_command="$compile_command $arg"
  48835. - finalize_command="$finalize_command $arg"
  48836. - fi
  48837. + # Aesthetically quote the argument.
  48838. + func_quote_for_eval "$arg"
  48839. + install_prog="$install_prog $func_quote_for_eval_result"
  48840. + done
  48841. - oldlibs=
  48842. - # calculate the name of the file, without its directory
  48843. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  48844. - libobjs_save="$libobjs"
  48845. + test -z "$install_prog" && \
  48846. + func_fatal_help "you must specify an install program"
  48847. - if test -n "$shlibpath_var"; then
  48848. - # get the directories listed in $shlibpath_var
  48849. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  48850. - else
  48851. - shlib_search_path=
  48852. - fi
  48853. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  48854. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  48855. + test -n "$prev" && \
  48856. + func_fatal_help "the \`$prev' option requires an argument"
  48857. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  48858. - if test "X$output_objdir" = "X$output"; then
  48859. - output_objdir="$objdir"
  48860. - else
  48861. - output_objdir="$output_objdir/$objdir"
  48862. - fi
  48863. - # Create the object directory.
  48864. - if test ! -d "$output_objdir"; then
  48865. - $show "$mkdir $output_objdir"
  48866. - $run $mkdir $output_objdir
  48867. - exit_status=$?
  48868. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  48869. - exit $exit_status
  48870. + if test -z "$files"; then
  48871. + if test -z "$dest"; then
  48872. + func_fatal_help "no file or destination specified"
  48873. + else
  48874. + func_fatal_help "you must specify a destination"
  48875. fi
  48876. fi
  48877. - # Determine the type of output
  48878. - case $output in
  48879. - "")
  48880. - $echo "$modename: you must specify an output file" 1>&2
  48881. - $echo "$help" 1>&2
  48882. - exit $EXIT_FAILURE
  48883. - ;;
  48884. - *.$libext) linkmode=oldlib ;;
  48885. - *.lo | *.$objext) linkmode=obj ;;
  48886. - *.la) linkmode=lib ;;
  48887. - *) linkmode=prog ;; # Anything else should be a program.
  48888. - esac
  48889. + # Strip any trailing slash from the destination.
  48890. + func_stripname '' '/' "$dest"
  48891. + dest=$func_stripname_result
  48892. - case $host in
  48893. - *cygwin* | *mingw* | *pw32*)
  48894. - # don't eliminate duplications in $postdeps and $predeps
  48895. - duplicate_compiler_generated_deps=yes
  48896. - ;;
  48897. + # Check to see that the destination is a directory.
  48898. + test -d "$dest" && isdir=yes
  48899. + if test "$isdir" = yes; then
  48900. + destdir="$dest"
  48901. + destname=
  48902. + else
  48903. + func_dirname_and_basename "$dest" "" "."
  48904. + destdir="$func_dirname_result"
  48905. + destname="$func_basename_result"
  48906. +
  48907. + # Not a directory, so check to see that there is only one file specified.
  48908. + set dummy $files; shift
  48909. + test "$#" -gt 1 && \
  48910. + func_fatal_help "\`$dest' is not a directory"
  48911. + fi
  48912. + case $destdir in
  48913. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  48914. *)
  48915. - duplicate_compiler_generated_deps=$duplicate_deps
  48916. + for file in $files; do
  48917. + case $file in
  48918. + *.lo) ;;
  48919. + *)
  48920. + func_fatal_help "\`$destdir' must be an absolute directory name"
  48921. + ;;
  48922. + esac
  48923. + done
  48924. ;;
  48925. esac
  48926. - specialdeplibs=
  48927. - libs=
  48928. - # Find all interdependent deplibs by searching for libraries
  48929. - # that are linked more than once (e.g. -la -lb -la)
  48930. - for deplib in $deplibs; do
  48931. - if test "X$duplicate_deps" = "Xyes" ; then
  48932. - case "$libs " in
  48933. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48934. - esac
  48935. - fi
  48936. - libs="$libs $deplib"
  48937. - done
  48938. + # This variable tells wrapper scripts just to set variables rather
  48939. + # than running their programs.
  48940. + libtool_install_magic="$magic"
  48941. - if test "$linkmode" = lib; then
  48942. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  48943. + staticlibs=
  48944. + future_libdirs=
  48945. + current_libdirs=
  48946. + for file in $files; do
  48947. - # Compute libraries that are listed more than once in $predeps
  48948. - # $postdeps and mark them as special (i.e., whose duplicates are
  48949. - # not to be eliminated).
  48950. - pre_post_deps=
  48951. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  48952. - for pre_post_dep in $predeps $postdeps; do
  48953. - case "$pre_post_deps " in
  48954. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  48955. + # Do each installation.
  48956. + case $file in
  48957. + *.$libext)
  48958. + # Do the static libraries later.
  48959. + staticlibs="$staticlibs $file"
  48960. + ;;
  48961. +
  48962. + *.la)
  48963. + # Check to see that this really is a libtool archive.
  48964. + func_lalib_unsafe_p "$file" \
  48965. + || func_fatal_help "\`$file' is not a valid libtool archive"
  48966. +
  48967. + library_names=
  48968. + old_library=
  48969. + relink_command=
  48970. + func_source "$file"
  48971. +
  48972. + # Add the libdir to current_libdirs if it is the destination.
  48973. + if test "X$destdir" = "X$libdir"; then
  48974. + case "$current_libdirs " in
  48975. + *" $libdir "*) ;;
  48976. + *) current_libdirs="$current_libdirs $libdir" ;;
  48977. esac
  48978. - pre_post_deps="$pre_post_deps $pre_post_dep"
  48979. - done
  48980. - fi
  48981. - pre_post_deps=
  48982. - fi
  48983. + else
  48984. + # Note the libdir as a future libdir.
  48985. + case "$future_libdirs " in
  48986. + *" $libdir "*) ;;
  48987. + *) future_libdirs="$future_libdirs $libdir" ;;
  48988. + esac
  48989. + fi
  48990. - deplibs=
  48991. - newdependency_libs=
  48992. - newlib_search_path=
  48993. - need_relink=no # whether we're linking any uninstalled libtool libraries
  48994. - notinst_deplibs= # not-installed libtool libraries
  48995. - case $linkmode in
  48996. - lib)
  48997. - passes="conv link"
  48998. - for file in $dlfiles $dlprefiles; do
  48999. - case $file in
  49000. - *.la) ;;
  49001. - *)
  49002. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  49003. - exit $EXIT_FAILURE
  49004. + func_dirname "$file" "/" ""
  49005. + dir="$func_dirname_result"
  49006. + dir="$dir$objdir"
  49007. +
  49008. + if test -n "$relink_command"; then
  49009. + # Determine the prefix the user has applied to our future dir.
  49010. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  49011. +
  49012. + # Don't allow the user to place us outside of our expected
  49013. + # location b/c this prevents finding dependent libraries that
  49014. + # are installed to the same prefix.
  49015. + # At present, this check doesn't affect windows .dll's that
  49016. + # are installed into $libdir/../bin (currently, that works fine)
  49017. + # but it's something to keep an eye on.
  49018. + test "$inst_prefix_dir" = "$destdir" && \
  49019. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  49020. +
  49021. + if test -n "$inst_prefix_dir"; then
  49022. + # Stick the inst_prefix_dir data into the link command.
  49023. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  49024. + else
  49025. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  49026. + fi
  49027. +
  49028. + func_warning "relinking \`$file'"
  49029. + func_show_eval "$relink_command" \
  49030. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  49031. + fi
  49032. +
  49033. + # See the names of the shared library.
  49034. + set dummy $library_names; shift
  49035. + if test -n "$1"; then
  49036. + realname="$1"
  49037. + shift
  49038. +
  49039. + srcname="$realname"
  49040. + test -n "$relink_command" && srcname="$realname"T
  49041. +
  49042. + # Install the shared library and build the symlinks.
  49043. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  49044. + 'exit $?'
  49045. + tstripme="$stripme"
  49046. + case $host_os in
  49047. + cygwin* | mingw* | pw32* | cegcc*)
  49048. + case $realname in
  49049. + *.dll.a)
  49050. + tstripme=""
  49051. + ;;
  49052. + esac
  49053. ;;
  49054. esac
  49055. - done
  49056. - ;;
  49057. - prog)
  49058. - compile_deplibs=
  49059. - finalize_deplibs=
  49060. - alldeplibs=no
  49061. - newdlfiles=
  49062. - newdlprefiles=
  49063. - passes="conv scan dlopen dlpreopen link"
  49064. - ;;
  49065. - *) passes="conv"
  49066. - ;;
  49067. - esac
  49068. - for pass in $passes; do
  49069. - if test "$linkmode,$pass" = "lib,link" ||
  49070. - test "$linkmode,$pass" = "prog,scan"; then
  49071. - libs="$deplibs"
  49072. - deplibs=
  49073. - fi
  49074. - if test "$linkmode" = prog; then
  49075. - case $pass in
  49076. - dlopen) libs="$dlfiles" ;;
  49077. - dlpreopen) libs="$dlprefiles" ;;
  49078. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  49079. - esac
  49080. - fi
  49081. - if test "$pass" = dlopen; then
  49082. - # Collect dlpreopened libraries
  49083. - save_deplibs="$deplibs"
  49084. - deplibs=
  49085. - fi
  49086. - for deplib in $libs; do
  49087. - lib=
  49088. - found=no
  49089. - case $deplib in
  49090. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  49091. - if test "$linkmode,$pass" = "prog,link"; then
  49092. - compile_deplibs="$deplib $compile_deplibs"
  49093. - finalize_deplibs="$deplib $finalize_deplibs"
  49094. - else
  49095. - compiler_flags="$compiler_flags $deplib"
  49096. + if test -n "$tstripme" && test -n "$striplib"; then
  49097. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  49098. fi
  49099. - continue
  49100. - ;;
  49101. - -l*)
  49102. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  49103. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  49104. - continue
  49105. - fi
  49106. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  49107. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  49108. - for search_ext in .la $std_shrext .so .a; do
  49109. - # Search the libtool library
  49110. - lib="$searchdir/lib${name}${search_ext}"
  49111. - if test -f "$lib"; then
  49112. - if test "$search_ext" = ".la"; then
  49113. - found=yes
  49114. - else
  49115. - found=no
  49116. - fi
  49117. - break 2
  49118. - fi
  49119. +
  49120. + if test "$#" -gt 0; then
  49121. + # Delete the old symlinks, and create new ones.
  49122. + # Try `ln -sf' first, because the `ln' binary might depend on
  49123. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  49124. + # so we also need to try rm && ln -s.
  49125. + for linkname
  49126. + do
  49127. + test "$linkname" != "$realname" \
  49128. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  49129. done
  49130. - done
  49131. - if test "$found" != yes; then
  49132. - # deplib doesn't seem to be a libtool library
  49133. - if test "$linkmode,$pass" = "prog,link"; then
  49134. - compile_deplibs="$deplib $compile_deplibs"
  49135. - finalize_deplibs="$deplib $finalize_deplibs"
  49136. - else
  49137. - deplibs="$deplib $deplibs"
  49138. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  49139. - fi
  49140. - continue
  49141. - else # deplib is a libtool library
  49142. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  49143. - # We need to do some special things here, and not later.
  49144. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49145. - case " $predeps $postdeps " in
  49146. - *" $deplib "*)
  49147. - if (${SED} -e '2q' $lib |
  49148. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49149. - library_names=
  49150. - old_library=
  49151. - case $lib in
  49152. - */* | *\\*) . $lib ;;
  49153. - *) . ./$lib ;;
  49154. - esac
  49155. - for l in $old_library $library_names; do
  49156. - ll="$l"
  49157. - done
  49158. - if test "X$ll" = "X$old_library" ; then # only static version available
  49159. - found=no
  49160. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  49161. - test "X$ladir" = "X$lib" && ladir="."
  49162. - lib=$ladir/$old_library
  49163. - if test "$linkmode,$pass" = "prog,link"; then
  49164. - compile_deplibs="$deplib $compile_deplibs"
  49165. - finalize_deplibs="$deplib $finalize_deplibs"
  49166. - else
  49167. - deplibs="$deplib $deplibs"
  49168. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  49169. - fi
  49170. - continue
  49171. - fi
  49172. - fi
  49173. - ;;
  49174. - *) ;;
  49175. - esac
  49176. - fi
  49177. - fi
  49178. - ;; # -l
  49179. - -L*)
  49180. - case $linkmode in
  49181. - lib)
  49182. - deplibs="$deplib $deplibs"
  49183. - test "$pass" = conv && continue
  49184. - newdependency_libs="$deplib $newdependency_libs"
  49185. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  49186. - ;;
  49187. - prog)
  49188. - if test "$pass" = conv; then
  49189. - deplibs="$deplib $deplibs"
  49190. - continue
  49191. - fi
  49192. - if test "$pass" = scan; then
  49193. - deplibs="$deplib $deplibs"
  49194. - else
  49195. - compile_deplibs="$deplib $compile_deplibs"
  49196. - finalize_deplibs="$deplib $finalize_deplibs"
  49197. - fi
  49198. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  49199. - ;;
  49200. - *)
  49201. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  49202. - ;;
  49203. - esac # linkmode
  49204. - continue
  49205. - ;; # -L
  49206. - -R*)
  49207. - if test "$pass" = link; then
  49208. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  49209. - # Make sure the xrpath contains only unique directories.
  49210. - case "$xrpath " in
  49211. - *" $dir "*) ;;
  49212. - *) xrpath="$xrpath $dir" ;;
  49213. - esac
  49214. fi
  49215. - deplibs="$deplib $deplibs"
  49216. - continue
  49217. +
  49218. + # Do each command in the postinstall commands.
  49219. + lib="$destdir/$realname"
  49220. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  49221. + fi
  49222. +
  49223. + # Install the pseudo-library for information purposes.
  49224. + func_basename "$file"
  49225. + name="$func_basename_result"
  49226. + instname="$dir/$name"i
  49227. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  49228. +
  49229. + # Maybe install the static library, too.
  49230. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  49231. + ;;
  49232. +
  49233. + *.lo)
  49234. + # Install (i.e. copy) a libtool object.
  49235. +
  49236. + # Figure out destination file name, if it wasn't already specified.
  49237. + if test -n "$destname"; then
  49238. + destfile="$destdir/$destname"
  49239. + else
  49240. + func_basename "$file"
  49241. + destfile="$func_basename_result"
  49242. + destfile="$destdir/$destfile"
  49243. + fi
  49244. +
  49245. + # Deduce the name of the destination old-style object file.
  49246. + case $destfile in
  49247. + *.lo)
  49248. + func_lo2o "$destfile"
  49249. + staticdest=$func_lo2o_result
  49250. ;;
  49251. - *.la) lib="$deplib" ;;
  49252. - *.$libext)
  49253. - if test "$pass" = conv; then
  49254. - deplibs="$deplib $deplibs"
  49255. - continue
  49256. - fi
  49257. - case $linkmode in
  49258. - lib)
  49259. - valid_a_lib=no
  49260. - case $deplibs_check_method in
  49261. - match_pattern*)
  49262. - set dummy $deplibs_check_method
  49263. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  49264. - if eval $echo \"$deplib\" 2>/dev/null \
  49265. - | $SED 10q \
  49266. - | $EGREP "$match_pattern_regex" > /dev/null; then
  49267. - valid_a_lib=yes
  49268. - fi
  49269. - ;;
  49270. - pass_all)
  49271. - valid_a_lib=yes
  49272. - ;;
  49273. - esac
  49274. - if test "$valid_a_lib" != yes; then
  49275. - $echo
  49276. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  49277. - $echo "*** I have the capability to make that library automatically link in when"
  49278. - $echo "*** you link to this library. But I can only do this if you have a"
  49279. - $echo "*** shared version of the library, which you do not appear to have"
  49280. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  49281. - $echo "*** that it is just a static archive that I should not used here."
  49282. - else
  49283. - $echo
  49284. - $echo "*** Warning: Linking the shared library $output against the"
  49285. - $echo "*** static library $deplib is not portable!"
  49286. - deplibs="$deplib $deplibs"
  49287. - fi
  49288. - continue
  49289. - ;;
  49290. - prog)
  49291. - if test "$pass" != link; then
  49292. - deplibs="$deplib $deplibs"
  49293. - else
  49294. - compile_deplibs="$deplib $compile_deplibs"
  49295. - finalize_deplibs="$deplib $finalize_deplibs"
  49296. - fi
  49297. - continue
  49298. - ;;
  49299. - esac # linkmode
  49300. - ;; # *.$libext
  49301. - *.lo | *.$objext)
  49302. - if test "$pass" = conv; then
  49303. - deplibs="$deplib $deplibs"
  49304. - elif test "$linkmode" = prog; then
  49305. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  49306. - # If there is no dlopen support or we're linking statically,
  49307. - # we need to preload.
  49308. - newdlprefiles="$newdlprefiles $deplib"
  49309. - compile_deplibs="$deplib $compile_deplibs"
  49310. - finalize_deplibs="$deplib $finalize_deplibs"
  49311. - else
  49312. - newdlfiles="$newdlfiles $deplib"
  49313. - fi
  49314. - fi
  49315. - continue
  49316. + *.$objext)
  49317. + staticdest="$destfile"
  49318. + destfile=
  49319. ;;
  49320. - %DEPLIBS%)
  49321. - alldeplibs=yes
  49322. - continue
  49323. + *)
  49324. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  49325. ;;
  49326. - esac # case $deplib
  49327. - if test "$found" = yes || test -f "$lib"; then :
  49328. - else
  49329. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  49330. - exit $EXIT_FAILURE
  49331. + esac
  49332. +
  49333. + # Install the libtool object if requested.
  49334. + test -n "$destfile" && \
  49335. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  49336. +
  49337. + # Install the old object if enabled.
  49338. + if test "$build_old_libs" = yes; then
  49339. + # Deduce the name of the old-style object file.
  49340. + func_lo2o "$file"
  49341. + staticobj=$func_lo2o_result
  49342. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  49343. fi
  49344. + exit $EXIT_SUCCESS
  49345. + ;;
  49346. - # Check to see that this really is a libtool archive.
  49347. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  49348. + *)
  49349. + # Figure out destination file name, if it wasn't already specified.
  49350. + if test -n "$destname"; then
  49351. + destfile="$destdir/$destname"
  49352. else
  49353. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  49354. - exit $EXIT_FAILURE
  49355. + func_basename "$file"
  49356. + destfile="$func_basename_result"
  49357. + destfile="$destdir/$destfile"
  49358. fi
  49359. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  49360. - test "X$ladir" = "X$lib" && ladir="."
  49361. + # If the file is missing, and there is a .exe on the end, strip it
  49362. + # because it is most likely a libtool script we actually want to
  49363. + # install
  49364. + stripped_ext=""
  49365. + case $file in
  49366. + *.exe)
  49367. + if test ! -f "$file"; then
  49368. + func_stripname '' '.exe' "$file"
  49369. + file=$func_stripname_result
  49370. + stripped_ext=".exe"
  49371. + fi
  49372. + ;;
  49373. + esac
  49374. +
  49375. + # Do a test to see if this is really a libtool program.
  49376. + case $host in
  49377. + *cygwin* | *mingw*)
  49378. + if func_ltwrapper_executable_p "$file"; then
  49379. + func_ltwrapper_scriptname "$file"
  49380. + wrapper=$func_ltwrapper_scriptname_result
  49381. + else
  49382. + func_stripname '' '.exe' "$file"
  49383. + wrapper=$func_stripname_result
  49384. + fi
  49385. + ;;
  49386. + *)
  49387. + wrapper=$file
  49388. + ;;
  49389. + esac
  49390. + if func_ltwrapper_script_p "$wrapper"; then
  49391. + notinst_deplibs=
  49392. + relink_command=
  49393. - dlname=
  49394. - dlopen=
  49395. - dlpreopen=
  49396. - libdir=
  49397. - library_names=
  49398. - old_library=
  49399. - # If the library was installed with an old release of libtool,
  49400. - # it will not redefine variables installed, or shouldnotlink
  49401. - installed=yes
  49402. - shouldnotlink=no
  49403. - avoidtemprpath=
  49404. + func_source "$wrapper"
  49405. + # Check the variables that should have been set.
  49406. + test -z "$generated_by_libtool_version" && \
  49407. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  49408. - # Read the .la file
  49409. - case $lib in
  49410. - */* | *\\*) . $lib ;;
  49411. - *) . ./$lib ;;
  49412. - esac
  49413. + finalize=yes
  49414. + for lib in $notinst_deplibs; do
  49415. + # Check to see that each library is installed.
  49416. + libdir=
  49417. + if test -f "$lib"; then
  49418. + func_source "$lib"
  49419. + fi
  49420. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  49421. + if test -n "$libdir" && test ! -f "$libfile"; then
  49422. + func_warning "\`$lib' has not been installed in \`$libdir'"
  49423. + finalize=no
  49424. + fi
  49425. + done
  49426. - if test "$linkmode,$pass" = "lib,link" ||
  49427. - test "$linkmode,$pass" = "prog,scan" ||
  49428. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  49429. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  49430. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  49431. + relink_command=
  49432. + func_source "$wrapper"
  49433. +
  49434. + outputname=
  49435. + if test "$fast_install" = no && test -n "$relink_command"; then
  49436. + $opt_dry_run || {
  49437. + if test "$finalize" = yes; then
  49438. + tmpdir=`func_mktempdir`
  49439. + func_basename "$file$stripped_ext"
  49440. + file="$func_basename_result"
  49441. + outputname="$tmpdir/$file"
  49442. + # Replace the output file specification.
  49443. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  49444. +
  49445. + $opt_silent || {
  49446. + func_quote_for_expand "$relink_command"
  49447. + eval "func_echo $func_quote_for_expand_result"
  49448. + }
  49449. + if eval "$relink_command"; then :
  49450. + else
  49451. + func_error "error: relink \`$file' with the above command before installing it"
  49452. + $opt_dry_run || ${RM}r "$tmpdir"
  49453. + continue
  49454. + fi
  49455. + file="$outputname"
  49456. + else
  49457. + func_warning "cannot relink \`$file'"
  49458. + fi
  49459. + }
  49460. + else
  49461. + # Install the binary that we compiled earlier.
  49462. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  49463. + fi
  49464. fi
  49465. - if test "$pass" = conv; then
  49466. - # Only check for convenience libraries
  49467. - deplibs="$lib $deplibs"
  49468. - if test -z "$libdir"; then
  49469. - if test -z "$old_library"; then
  49470. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  49471. - exit $EXIT_FAILURE
  49472. - fi
  49473. - # It is a libtool convenience library, so add in its objects.
  49474. - convenience="$convenience $ladir/$objdir/$old_library"
  49475. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  49476. - tmp_libs=
  49477. - for deplib in $dependency_libs; do
  49478. - deplibs="$deplib $deplibs"
  49479. - if test "X$duplicate_deps" = "Xyes" ; then
  49480. - case "$tmp_libs " in
  49481. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49482. - esac
  49483. - fi
  49484. - tmp_libs="$tmp_libs $deplib"
  49485. - done
  49486. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  49487. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  49488. - exit $EXIT_FAILURE
  49489. - fi
  49490. - continue
  49491. - fi # $pass = conv
  49492. + # remove .exe since cygwin /usr/bin/install will append another
  49493. + # one anyway
  49494. + case $install_prog,$host in
  49495. + */usr/bin/install*,*cygwin*)
  49496. + case $file:$destfile in
  49497. + *.exe:*.exe)
  49498. + # this is ok
  49499. + ;;
  49500. + *.exe:*)
  49501. + destfile=$destfile.exe
  49502. + ;;
  49503. + *:*.exe)
  49504. + func_stripname '' '.exe' "$destfile"
  49505. + destfile=$func_stripname_result
  49506. + ;;
  49507. + esac
  49508. + ;;
  49509. + esac
  49510. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  49511. + $opt_dry_run || if test -n "$outputname"; then
  49512. + ${RM}r "$tmpdir"
  49513. + fi
  49514. + ;;
  49515. + esac
  49516. + done
  49517. + for file in $staticlibs; do
  49518. + func_basename "$file"
  49519. + name="$func_basename_result"
  49520. - # Get the name of the library we link against.
  49521. - linklib=
  49522. - for l in $old_library $library_names; do
  49523. - linklib="$l"
  49524. - done
  49525. - if test -z "$linklib"; then
  49526. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  49527. - exit $EXIT_FAILURE
  49528. - fi
  49529. + # Set up the ranlib parameters.
  49530. + oldlib="$destdir/$name"
  49531. - # This library was specified with -dlopen.
  49532. - if test "$pass" = dlopen; then
  49533. - if test -z "$libdir"; then
  49534. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  49535. - exit $EXIT_FAILURE
  49536. - fi
  49537. - if test -z "$dlname" ||
  49538. - test "$dlopen_support" != yes ||
  49539. - test "$build_libtool_libs" = no; then
  49540. - # If there is no dlname, no dlopen support or we're linking
  49541. - # statically, we need to preload. We also need to preload any
  49542. - # dependent libraries so libltdl's deplib preloader doesn't
  49543. - # bomb out in the load deplibs phase.
  49544. - dlprefiles="$dlprefiles $lib $dependency_libs"
  49545. - else
  49546. - newdlfiles="$newdlfiles $lib"
  49547. - fi
  49548. - continue
  49549. - fi # $pass = dlopen
  49550. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  49551. - # We need an absolute path.
  49552. - case $ladir in
  49553. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  49554. - *)
  49555. - abs_ladir=`cd "$ladir" && pwd`
  49556. - if test -z "$abs_ladir"; then
  49557. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  49558. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  49559. - abs_ladir="$ladir"
  49560. + if test -n "$stripme" && test -n "$old_striplib"; then
  49561. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  49562. + fi
  49563. +
  49564. + # Do each command in the postinstall commands.
  49565. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  49566. + done
  49567. +
  49568. + test -n "$future_libdirs" && \
  49569. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  49570. +
  49571. + if test -n "$current_libdirs"; then
  49572. + # Maybe just do a dry run.
  49573. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  49574. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  49575. + else
  49576. + exit $EXIT_SUCCESS
  49577. + fi
  49578. +}
  49579. +
  49580. +test "$mode" = install && func_mode_install ${1+"$@"}
  49581. +
  49582. +
  49583. +# func_generate_dlsyms outputname originator pic_p
  49584. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  49585. +# a dlpreopen symbol table.
  49586. +func_generate_dlsyms ()
  49587. +{
  49588. + $opt_debug
  49589. + my_outputname="$1"
  49590. + my_originator="$2"
  49591. + my_pic_p="${3-no}"
  49592. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  49593. + my_dlsyms=
  49594. +
  49595. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49596. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  49597. + my_dlsyms="${my_outputname}S.c"
  49598. + else
  49599. + func_error "not configured to extract global symbols from dlpreopened files"
  49600. + fi
  49601. + fi
  49602. +
  49603. + if test -n "$my_dlsyms"; then
  49604. + case $my_dlsyms in
  49605. + "") ;;
  49606. + *.c)
  49607. + # Discover the nlist of each of the dlfiles.
  49608. + nlist="$output_objdir/${my_outputname}.nm"
  49609. +
  49610. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  49611. +
  49612. + # Parse the name list into a source file.
  49613. + func_verbose "creating $output_objdir/$my_dlsyms"
  49614. +
  49615. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  49616. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  49617. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  49618. +
  49619. +#ifdef __cplusplus
  49620. +extern \"C\" {
  49621. +#endif
  49622. +
  49623. +/* External symbol declarations for the compiler. */\
  49624. +"
  49625. +
  49626. + if test "$dlself" = yes; then
  49627. + func_verbose "generating symbol list for \`$output'"
  49628. +
  49629. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  49630. +
  49631. + # Add our own program objects to the symbol list.
  49632. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49633. + for progfile in $progfiles; do
  49634. + func_verbose "extracting global C symbols from \`$progfile'"
  49635. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  49636. + done
  49637. +
  49638. + if test -n "$exclude_expsyms"; then
  49639. + $opt_dry_run || {
  49640. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  49641. + eval '$MV "$nlist"T "$nlist"'
  49642. + }
  49643. fi
  49644. - ;;
  49645. - esac
  49646. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  49647. - # Find the relevant object directory and library name.
  49648. - if test "X$installed" = Xyes; then
  49649. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49650. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  49651. - dir="$ladir"
  49652. - absdir="$abs_ladir"
  49653. - libdir="$abs_ladir"
  49654. - else
  49655. - dir="$libdir"
  49656. - absdir="$libdir"
  49657. + if test -n "$export_symbols_regex"; then
  49658. + $opt_dry_run || {
  49659. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  49660. + eval '$MV "$nlist"T "$nlist"'
  49661. + }
  49662. fi
  49663. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  49664. - else
  49665. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49666. - dir="$ladir"
  49667. - absdir="$abs_ladir"
  49668. - # Remove this search path later
  49669. - notinst_path="$notinst_path $abs_ladir"
  49670. +
  49671. + # Prepare the list of exported symbols
  49672. + if test -z "$export_symbols"; then
  49673. + export_symbols="$output_objdir/$outputname.exp"
  49674. + $opt_dry_run || {
  49675. + $RM $export_symbols
  49676. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  49677. + case $host in
  49678. + *cygwin* | *mingw* | *cegcc* )
  49679. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  49680. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  49681. + ;;
  49682. + esac
  49683. + }
  49684. else
  49685. - dir="$ladir/$objdir"
  49686. - absdir="$abs_ladir/$objdir"
  49687. - # Remove this search path later
  49688. - notinst_path="$notinst_path $abs_ladir"
  49689. + $opt_dry_run || {
  49690. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  49691. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  49692. + eval '$MV "$nlist"T "$nlist"'
  49693. + case $host in
  49694. + *cygwin | *mingw* | *cegcc* )
  49695. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  49696. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  49697. + ;;
  49698. + esac
  49699. + }
  49700. fi
  49701. - fi # $installed = yes
  49702. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  49703. + fi
  49704. - # This library was specified with -dlpreopen.
  49705. - if test "$pass" = dlpreopen; then
  49706. - if test -z "$libdir"; then
  49707. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  49708. - exit $EXIT_FAILURE
  49709. + for dlprefile in $dlprefiles; do
  49710. + func_verbose "extracting global C symbols from \`$dlprefile'"
  49711. + func_basename "$dlprefile"
  49712. + name="$func_basename_result"
  49713. + $opt_dry_run || {
  49714. + eval '$ECHO ": $name " >> "$nlist"'
  49715. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  49716. + }
  49717. + done
  49718. +
  49719. + $opt_dry_run || {
  49720. + # Make sure we have at least an empty file.
  49721. + test -f "$nlist" || : > "$nlist"
  49722. +
  49723. + if test -n "$exclude_expsyms"; then
  49724. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  49725. + $MV "$nlist"T "$nlist"
  49726. fi
  49727. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  49728. - # are required to link).
  49729. - if test -n "$old_library"; then
  49730. - newdlprefiles="$newdlprefiles $dir/$old_library"
  49731. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  49732. - elif test -n "$dlname"; then
  49733. - newdlprefiles="$newdlprefiles $dir/$dlname"
  49734. +
  49735. + # Try sorting and uniquifying the output.
  49736. + if $GREP -v "^: " < "$nlist" |
  49737. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  49738. + sort -k 3
  49739. + else
  49740. + sort +2
  49741. + fi |
  49742. + uniq > "$nlist"S; then
  49743. + :
  49744. else
  49745. - newdlprefiles="$newdlprefiles $dir/$linklib"
  49746. + $GREP -v "^: " < "$nlist" > "$nlist"S
  49747. fi
  49748. - fi # $pass = dlpreopen
  49749. - if test -z "$libdir"; then
  49750. - # Link the convenience library
  49751. - if test "$linkmode" = lib; then
  49752. - deplibs="$dir/$old_library $deplibs"
  49753. - elif test "$linkmode,$pass" = "prog,link"; then
  49754. - compile_deplibs="$dir/$old_library $compile_deplibs"
  49755. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  49756. + if test -f "$nlist"S; then
  49757. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  49758. else
  49759. - deplibs="$lib $deplibs" # used for prog,scan pass
  49760. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  49761. fi
  49762. - continue
  49763. - fi
  49764. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  49765. - if test "$linkmode" = prog && test "$pass" != link; then
  49766. - newlib_search_path="$newlib_search_path $ladir"
  49767. - deplibs="$lib $deplibs"
  49768. -
  49769. - linkalldeplibs=no
  49770. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  49771. - test "$build_libtool_libs" = no; then
  49772. - linkalldeplibs=yes
  49773. - fi
  49774. +/* The mapping between symbol names and symbols. */
  49775. +typedef struct {
  49776. + const char *name;
  49777. + void *address;
  49778. +} lt_dlsymlist;
  49779. +"
  49780. + case $host in
  49781. + *cygwin* | *mingw* | *cegcc* )
  49782. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  49783. +/* DATA imports from DLLs on WIN32 con't be const, because
  49784. + runtime relocations are performed -- see ld's documentation
  49785. + on pseudo-relocs. */"
  49786. + lt_dlsym_const= ;;
  49787. + *osf5*)
  49788. + echo >> "$output_objdir/$my_dlsyms" "\
  49789. +/* This system does not cope well with relocations in const data */"
  49790. + lt_dlsym_const= ;;
  49791. + *)
  49792. + lt_dlsym_const=const ;;
  49793. + esac
  49794. - tmp_libs=
  49795. - for deplib in $dependency_libs; do
  49796. - case $deplib in
  49797. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  49798. - esac
  49799. - # Need to link against all dependency_libs?
  49800. - if test "$linkalldeplibs" = yes; then
  49801. - deplibs="$deplib $deplibs"
  49802. - else
  49803. - # Need to hardcode shared library paths
  49804. - # or/and link against static libraries
  49805. - newdependency_libs="$deplib $newdependency_libs"
  49806. - fi
  49807. - if test "X$duplicate_deps" = "Xyes" ; then
  49808. - case "$tmp_libs " in
  49809. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49810. - esac
  49811. - fi
  49812. - tmp_libs="$tmp_libs $deplib"
  49813. - done # for deplib
  49814. - continue
  49815. - fi # $linkmode = prog...
  49816. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  49817. +extern $lt_dlsym_const lt_dlsymlist
  49818. +lt_${my_prefix}_LTX_preloaded_symbols[];
  49819. +$lt_dlsym_const lt_dlsymlist
  49820. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  49821. +{\
  49822. + { \"$my_originator\", (void *) 0 },"
  49823. - if test "$linkmode,$pass" = "prog,link"; then
  49824. - if test -n "$library_names" &&
  49825. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  49826. - # We need to hardcode the library path
  49827. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  49828. - # Make sure the rpath contains only unique directories.
  49829. - case "$temp_rpath " in
  49830. - *" $dir "*) ;;
  49831. - *" $absdir "*) ;;
  49832. - *) temp_rpath="$temp_rpath $absdir" ;;
  49833. - esac
  49834. - fi
  49835. + case $need_lib_prefix in
  49836. + no)
  49837. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  49838. + ;;
  49839. + *)
  49840. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  49841. + ;;
  49842. + esac
  49843. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  49844. + {0, (void *) 0}
  49845. +};
  49846. - # Hardcode the library path.
  49847. - # Skip directories that are in the system default run-time
  49848. - # search path.
  49849. - case " $sys_lib_dlsearch_path " in
  49850. - *" $absdir "*) ;;
  49851. - *)
  49852. - case "$compile_rpath " in
  49853. - *" $absdir "*) ;;
  49854. - *) compile_rpath="$compile_rpath $absdir"
  49855. - esac
  49856. - ;;
  49857. - esac
  49858. - case " $sys_lib_dlsearch_path " in
  49859. - *" $libdir "*) ;;
  49860. - *)
  49861. - case "$finalize_rpath " in
  49862. - *" $libdir "*) ;;
  49863. - *) finalize_rpath="$finalize_rpath $libdir"
  49864. - esac
  49865. - ;;
  49866. - esac
  49867. - fi # $linkmode,$pass = prog,link...
  49868. +/* This works around a problem in FreeBSD linker */
  49869. +#ifdef FREEBSD_WORKAROUND
  49870. +static const void *lt_preloaded_setup() {
  49871. + return lt_${my_prefix}_LTX_preloaded_symbols;
  49872. +}
  49873. +#endif
  49874. - if test "$alldeplibs" = yes &&
  49875. - { test "$deplibs_check_method" = pass_all ||
  49876. - { test "$build_libtool_libs" = yes &&
  49877. - test -n "$library_names"; }; }; then
  49878. - # We only need to search for static libraries
  49879. - continue
  49880. - fi
  49881. - fi
  49882. +#ifdef __cplusplus
  49883. +}
  49884. +#endif\
  49885. +"
  49886. + } # !$opt_dry_run
  49887. - link_static=no # Whether the deplib will be linked statically
  49888. - use_static_libs=$prefer_static_libs
  49889. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  49890. - use_static_libs=no
  49891. - fi
  49892. - if test -n "$library_names" &&
  49893. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  49894. - if test "$installed" = no; then
  49895. - notinst_deplibs="$notinst_deplibs $lib"
  49896. - need_relink=yes
  49897. - fi
  49898. - # This is a shared library
  49899. -
  49900. - # Warn about portability, can't link against -module's on
  49901. - # some systems (darwin)
  49902. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  49903. - $echo
  49904. - if test "$linkmode" = prog; then
  49905. - $echo "*** Warning: Linking the executable $output against the loadable module"
  49906. - else
  49907. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  49908. + pic_flag_for_symtable=
  49909. + case "$compile_command " in
  49910. + *" -static "*) ;;
  49911. + *)
  49912. + case $host in
  49913. + # compiling the symbol table file with pic_flag works around
  49914. + # a FreeBSD bug that causes programs to crash when -lm is
  49915. + # linked before any other PIC object. But we must not use
  49916. + # pic_flag when linking with -static. The problem exists in
  49917. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  49918. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  49919. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  49920. + *-*-hpux*)
  49921. + pic_flag_for_symtable=" $pic_flag" ;;
  49922. + *)
  49923. + if test "X$my_pic_p" != Xno; then
  49924. + pic_flag_for_symtable=" $pic_flag"
  49925. fi
  49926. - $echo "*** $linklib is not portable!"
  49927. - fi
  49928. - if test "$linkmode" = lib &&
  49929. - test "$hardcode_into_libs" = yes; then
  49930. - # Hardcode the library path.
  49931. - # Skip directories that are in the system default run-time
  49932. - # search path.
  49933. - case " $sys_lib_dlsearch_path " in
  49934. - *" $absdir "*) ;;
  49935. - *)
  49936. - case "$compile_rpath " in
  49937. - *" $absdir "*) ;;
  49938. - *) compile_rpath="$compile_rpath $absdir"
  49939. - esac
  49940. - ;;
  49941. - esac
  49942. - case " $sys_lib_dlsearch_path " in
  49943. - *" $libdir "*) ;;
  49944. - *)
  49945. - case "$finalize_rpath " in
  49946. - *" $libdir "*) ;;
  49947. - *) finalize_rpath="$finalize_rpath $libdir"
  49948. - esac
  49949. - ;;
  49950. - esac
  49951. - fi
  49952. + ;;
  49953. + esac
  49954. + ;;
  49955. + esac
  49956. + symtab_cflags=
  49957. + for arg in $LTCFLAGS; do
  49958. + case $arg in
  49959. + -pie | -fpie | -fPIE) ;;
  49960. + *) symtab_cflags="$symtab_cflags $arg" ;;
  49961. + esac
  49962. + done
  49963. - if test -n "$old_archive_from_expsyms_cmds"; then
  49964. - # figure out the soname
  49965. - set dummy $library_names
  49966. - realname="$2"
  49967. - shift; shift
  49968. - libname=`eval \\$echo \"$libname_spec\"`
  49969. - # use dlname if we got it. it's perfectly good, no?
  49970. - if test -n "$dlname"; then
  49971. - soname="$dlname"
  49972. - elif test -n "$soname_spec"; then
  49973. - # bleh windows
  49974. - case $host in
  49975. - *cygwin* | mingw*)
  49976. - major=`expr $current - $age`
  49977. - versuffix="-$major"
  49978. - ;;
  49979. - esac
  49980. - eval soname=\"$soname_spec\"
  49981. - else
  49982. - soname="$realname"
  49983. - fi
  49984. + # Now compile the dynamic symbol file.
  49985. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  49986. - # Make a new name for the extract_expsyms_cmds to use
  49987. - soroot="$soname"
  49988. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  49989. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  49990. + # Clean up the generated files.
  49991. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  49992. - # If the library has no export list, then create one now
  49993. - if test -f "$output_objdir/$soname-def"; then :
  49994. - else
  49995. - $show "extracting exported symbol list from \`$soname'"
  49996. - save_ifs="$IFS"; IFS='~'
  49997. - cmds=$extract_expsyms_cmds
  49998. - for cmd in $cmds; do
  49999. - IFS="$save_ifs"
  50000. - eval cmd=\"$cmd\"
  50001. - $show "$cmd"
  50002. - $run eval "$cmd" || exit $?
  50003. - done
  50004. - IFS="$save_ifs"
  50005. - fi
  50006. + # Transform the symbol file into the correct name.
  50007. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  50008. + case $host in
  50009. + *cygwin* | *mingw* | *cegcc* )
  50010. + if test -f "$output_objdir/$my_outputname.def"; then
  50011. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  50012. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  50013. + else
  50014. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50015. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50016. + fi
  50017. + ;;
  50018. + *)
  50019. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50020. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  50021. + ;;
  50022. + esac
  50023. + ;;
  50024. + *)
  50025. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  50026. + ;;
  50027. + esac
  50028. + else
  50029. + # We keep going just in case the user didn't refer to
  50030. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  50031. + # really was required.
  50032. +
  50033. + # Nullify the symbol file.
  50034. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  50035. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  50036. + fi
  50037. +}
  50038. - # Create $newlib
  50039. - if test -f "$output_objdir/$newlib"; then :; else
  50040. - $show "generating import library for \`$soname'"
  50041. - save_ifs="$IFS"; IFS='~'
  50042. - cmds=$old_archive_from_expsyms_cmds
  50043. - for cmd in $cmds; do
  50044. - IFS="$save_ifs"
  50045. - eval cmd=\"$cmd\"
  50046. - $show "$cmd"
  50047. - $run eval "$cmd" || exit $?
  50048. - done
  50049. - IFS="$save_ifs"
  50050. - fi
  50051. - # make sure the library variables are pointing to the new library
  50052. - dir=$output_objdir
  50053. - linklib=$newlib
  50054. - fi # test -n "$old_archive_from_expsyms_cmds"
  50055. +# func_win32_libid arg
  50056. +# return the library type of file 'arg'
  50057. +#
  50058. +# Need a lot of goo to handle *both* DLLs and import libs
  50059. +# Has to be a shell function in order to 'eat' the argument
  50060. +# that is supplied when $file_magic_command is called.
  50061. +func_win32_libid ()
  50062. +{
  50063. + $opt_debug
  50064. + win32_libid_type="unknown"
  50065. + win32_fileres=`file -L $1 2>/dev/null`
  50066. + case $win32_fileres in
  50067. + *ar\ archive\ import\ library*) # definitely import
  50068. + win32_libid_type="x86 archive import"
  50069. + ;;
  50070. + *ar\ archive*) # could be an import, or static
  50071. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  50072. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  50073. + win32_nmres=`eval $NM -f posix -A $1 |
  50074. + $SED -n -e '
  50075. + 1,100{
  50076. + / I /{
  50077. + s,.*,import,
  50078. + p
  50079. + q
  50080. + }
  50081. + }'`
  50082. + case $win32_nmres in
  50083. + import*) win32_libid_type="x86 archive import";;
  50084. + *) win32_libid_type="x86 archive static";;
  50085. + esac
  50086. + fi
  50087. + ;;
  50088. + *DLL*)
  50089. + win32_libid_type="x86 DLL"
  50090. + ;;
  50091. + *executable*) # but shell scripts are "executable" too...
  50092. + case $win32_fileres in
  50093. + *MS\ Windows\ PE\ Intel*)
  50094. + win32_libid_type="x86 DLL"
  50095. + ;;
  50096. + esac
  50097. + ;;
  50098. + esac
  50099. + $ECHO "$win32_libid_type"
  50100. +}
  50101. - if test "$linkmode" = prog || test "$mode" != relink; then
  50102. - add_shlibpath=
  50103. - add_dir=
  50104. - add=
  50105. - lib_linked=yes
  50106. - case $hardcode_action in
  50107. - immediate | unsupported)
  50108. - if test "$hardcode_direct" = no; then
  50109. - add="$dir/$linklib"
  50110. - case $host in
  50111. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  50112. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  50113. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  50114. - *-*-unixware7*) add_dir="-L$dir" ;;
  50115. - *-*-darwin* )
  50116. - # if the lib is a module then we can not link against
  50117. - # it, someone is ignoring the new warnings I added
  50118. - if /usr/bin/file -L $add 2> /dev/null |
  50119. - $EGREP ": [^:]* bundle" >/dev/null ; then
  50120. - $echo "** Warning, lib $linklib is a module, not a shared library"
  50121. - if test -z "$old_library" ; then
  50122. - $echo
  50123. - $echo "** And there doesn't seem to be a static archive available"
  50124. - $echo "** The link will probably fail, sorry"
  50125. - else
  50126. - add="$dir/$old_library"
  50127. - fi
  50128. - fi
  50129. - esac
  50130. - elif test "$hardcode_minus_L" = no; then
  50131. - case $host in
  50132. - *-*-sunos*) add_shlibpath="$dir" ;;
  50133. - esac
  50134. - add_dir="-L$dir"
  50135. - add="-l$name"
  50136. - elif test "$hardcode_shlibpath_var" = no; then
  50137. - add_shlibpath="$dir"
  50138. - add="-l$name"
  50139. - else
  50140. - lib_linked=no
  50141. - fi
  50142. - ;;
  50143. - relink)
  50144. - if test "$hardcode_direct" = yes; then
  50145. - add="$dir/$linklib"
  50146. - elif test "$hardcode_minus_L" = yes; then
  50147. - add_dir="-L$dir"
  50148. - # Try looking first in the location we're being installed to.
  50149. - if test -n "$inst_prefix_dir"; then
  50150. - case $libdir in
  50151. - [\\/]*)
  50152. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  50153. - ;;
  50154. - esac
  50155. - fi
  50156. - add="-l$name"
  50157. - elif test "$hardcode_shlibpath_var" = yes; then
  50158. - add_shlibpath="$dir"
  50159. - add="-l$name"
  50160. - else
  50161. - lib_linked=no
  50162. - fi
  50163. - ;;
  50164. - *) lib_linked=no ;;
  50165. - esac
  50166. - if test "$lib_linked" != yes; then
  50167. - $echo "$modename: configuration error: unsupported hardcode properties"
  50168. - exit $EXIT_FAILURE
  50169. - fi
  50170. - if test -n "$add_shlibpath"; then
  50171. - case :$compile_shlibpath: in
  50172. - *":$add_shlibpath:"*) ;;
  50173. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  50174. - esac
  50175. - fi
  50176. - if test "$linkmode" = prog; then
  50177. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  50178. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  50179. - else
  50180. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  50181. - test -n "$add" && deplibs="$add $deplibs"
  50182. - if test "$hardcode_direct" != yes && \
  50183. - test "$hardcode_minus_L" != yes && \
  50184. - test "$hardcode_shlibpath_var" = yes; then
  50185. - case :$finalize_shlibpath: in
  50186. - *":$libdir:"*) ;;
  50187. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  50188. - esac
  50189. - fi
  50190. - fi
  50191. - fi
  50192. +# func_extract_an_archive dir oldlib
  50193. +func_extract_an_archive ()
  50194. +{
  50195. + $opt_debug
  50196. + f_ex_an_ar_dir="$1"; shift
  50197. + f_ex_an_ar_oldlib="$1"
  50198. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  50199. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  50200. + :
  50201. + else
  50202. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  50203. + fi
  50204. +}
  50205. - if test "$linkmode" = prog || test "$mode" = relink; then
  50206. - add_shlibpath=
  50207. - add_dir=
  50208. - add=
  50209. - # Finalize command for both is simple: just hardcode it.
  50210. - if test "$hardcode_direct" = yes; then
  50211. - add="$libdir/$linklib"
  50212. - elif test "$hardcode_minus_L" = yes; then
  50213. - add_dir="-L$libdir"
  50214. - add="-l$name"
  50215. - elif test "$hardcode_shlibpath_var" = yes; then
  50216. - case :$finalize_shlibpath: in
  50217. - *":$libdir:"*) ;;
  50218. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  50219. - esac
  50220. - add="-l$name"
  50221. - elif test "$hardcode_automatic" = yes; then
  50222. - if test -n "$inst_prefix_dir" &&
  50223. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  50224. - add="$inst_prefix_dir$libdir/$linklib"
  50225. - else
  50226. - add="$libdir/$linklib"
  50227. - fi
  50228. - else
  50229. - # We cannot seem to hardcode it, guess we'll fake it.
  50230. - add_dir="-L$libdir"
  50231. - # Try looking first in the location we're being installed to.
  50232. - if test -n "$inst_prefix_dir"; then
  50233. - case $libdir in
  50234. - [\\/]*)
  50235. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  50236. - ;;
  50237. - esac
  50238. - fi
  50239. - add="-l$name"
  50240. - fi
  50241. - if test "$linkmode" = prog; then
  50242. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  50243. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  50244. - else
  50245. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  50246. - test -n "$add" && deplibs="$add $deplibs"
  50247. - fi
  50248. - fi
  50249. - elif test "$linkmode" = prog; then
  50250. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  50251. - # is not unsupported. This is valid on all known static and
  50252. - # shared platforms.
  50253. - if test "$hardcode_direct" != unsupported; then
  50254. - test -n "$old_library" && linklib="$old_library"
  50255. - compile_deplibs="$dir/$linklib $compile_deplibs"
  50256. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  50257. - else
  50258. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  50259. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  50260. - fi
  50261. - elif test "$build_libtool_libs" = yes; then
  50262. - # Not a shared library
  50263. - if test "$deplibs_check_method" != pass_all; then
  50264. - # We're trying link a shared library against a static one
  50265. - # but the system doesn't support it.
  50266. +# func_extract_archives gentop oldlib ...
  50267. +func_extract_archives ()
  50268. +{
  50269. + $opt_debug
  50270. + my_gentop="$1"; shift
  50271. + my_oldlibs=${1+"$@"}
  50272. + my_oldobjs=""
  50273. + my_xlib=""
  50274. + my_xabs=""
  50275. + my_xdir=""
  50276. - # Just print a warning and add the library to dependency_libs so
  50277. - # that the program can be linked against the static library.
  50278. - $echo
  50279. - $echo "*** Warning: This system can not link to static lib archive $lib."
  50280. - $echo "*** I have the capability to make that library automatically link in when"
  50281. - $echo "*** you link to this library. But I can only do this if you have a"
  50282. - $echo "*** shared version of the library, which you do not appear to have."
  50283. - if test "$module" = yes; then
  50284. - $echo "*** But as you try to build a module library, libtool will still create "
  50285. - $echo "*** a static module, that should work as long as the dlopening application"
  50286. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  50287. - if test -z "$global_symbol_pipe"; then
  50288. - $echo
  50289. - $echo "*** However, this would only work if libtool was able to extract symbol"
  50290. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  50291. - $echo "*** not find such a program. So, this module is probably useless."
  50292. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  50293. - fi
  50294. - if test "$build_old_libs" = no; then
  50295. - build_libtool_libs=module
  50296. - build_old_libs=yes
  50297. - else
  50298. - build_libtool_libs=no
  50299. - fi
  50300. - fi
  50301. + for my_xlib in $my_oldlibs; do
  50302. + # Extract the objects.
  50303. + case $my_xlib in
  50304. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  50305. + *) my_xabs=`pwd`"/$my_xlib" ;;
  50306. + esac
  50307. + func_basename "$my_xlib"
  50308. + my_xlib="$func_basename_result"
  50309. + my_xlib_u=$my_xlib
  50310. + while :; do
  50311. + case " $extracted_archives " in
  50312. + *" $my_xlib_u "*)
  50313. + func_arith $extracted_serial + 1
  50314. + extracted_serial=$func_arith_result
  50315. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  50316. + *) break ;;
  50317. + esac
  50318. + done
  50319. + extracted_archives="$extracted_archives $my_xlib_u"
  50320. + my_xdir="$my_gentop/$my_xlib_u"
  50321. +
  50322. + func_mkdir_p "$my_xdir"
  50323. +
  50324. + case $host in
  50325. + *-darwin*)
  50326. + func_verbose "Extracting $my_xabs"
  50327. + # Do not bother doing anything if just a dry run
  50328. + $opt_dry_run || {
  50329. + darwin_orig_dir=`pwd`
  50330. + cd $my_xdir || exit $?
  50331. + darwin_archive=$my_xabs
  50332. + darwin_curdir=`pwd`
  50333. + darwin_base_archive=`basename "$darwin_archive"`
  50334. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  50335. + if test -n "$darwin_arches"; then
  50336. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  50337. + darwin_arch=
  50338. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  50339. + for darwin_arch in $darwin_arches ; do
  50340. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  50341. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  50342. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  50343. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  50344. + cd "$darwin_curdir"
  50345. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  50346. + done # $darwin_arches
  50347. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  50348. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  50349. + darwin_file=
  50350. + darwin_files=
  50351. + for darwin_file in $darwin_filelist; do
  50352. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  50353. + $LIPO -create -output "$darwin_file" $darwin_files
  50354. + done # $darwin_filelist
  50355. + $RM -rf unfat-$$
  50356. + cd "$darwin_orig_dir"
  50357. else
  50358. - deplibs="$dir/$old_library $deplibs"
  50359. - link_static=yes
  50360. - fi
  50361. - fi # link shared/static library?
  50362. + cd $darwin_orig_dir
  50363. + func_extract_an_archive "$my_xdir" "$my_xabs"
  50364. + fi # $darwin_arches
  50365. + } # !$opt_dry_run
  50366. + ;;
  50367. + *)
  50368. + func_extract_an_archive "$my_xdir" "$my_xabs"
  50369. + ;;
  50370. + esac
  50371. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  50372. + done
  50373. - if test "$linkmode" = lib; then
  50374. - if test -n "$dependency_libs" &&
  50375. - { test "$hardcode_into_libs" != yes ||
  50376. - test "$build_old_libs" = yes ||
  50377. - test "$link_static" = yes; }; then
  50378. - # Extract -R from dependency_libs
  50379. - temp_deplibs=
  50380. - for libdir in $dependency_libs; do
  50381. - case $libdir in
  50382. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  50383. - case " $xrpath " in
  50384. - *" $temp_xrpath "*) ;;
  50385. - *) xrpath="$xrpath $temp_xrpath";;
  50386. - esac;;
  50387. - *) temp_deplibs="$temp_deplibs $libdir";;
  50388. - esac
  50389. - done
  50390. - dependency_libs="$temp_deplibs"
  50391. - fi
  50392. + func_extract_archives_result="$my_oldobjs"
  50393. +}
  50394. - newlib_search_path="$newlib_search_path $absdir"
  50395. - # Link against this library
  50396. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  50397. - # ... and its dependency_libs
  50398. - tmp_libs=
  50399. - for deplib in $dependency_libs; do
  50400. - newdependency_libs="$deplib $newdependency_libs"
  50401. - if test "X$duplicate_deps" = "Xyes" ; then
  50402. - case "$tmp_libs " in
  50403. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50404. - esac
  50405. - fi
  50406. - tmp_libs="$tmp_libs $deplib"
  50407. - done
  50408. - if test "$link_all_deplibs" != no; then
  50409. - # Add the search paths of all dependency libraries
  50410. - for deplib in $dependency_libs; do
  50411. - case $deplib in
  50412. - -L*) path="$deplib" ;;
  50413. - *.la)
  50414. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  50415. - test "X$dir" = "X$deplib" && dir="."
  50416. - # We need an absolute path.
  50417. - case $dir in
  50418. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  50419. - *)
  50420. - absdir=`cd "$dir" && pwd`
  50421. - if test -z "$absdir"; then
  50422. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  50423. - absdir="$dir"
  50424. - fi
  50425. - ;;
  50426. - esac
  50427. - if grep "^installed=no" $deplib > /dev/null; then
  50428. - path="$absdir/$objdir"
  50429. - else
  50430. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  50431. - if test -z "$libdir"; then
  50432. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  50433. - exit $EXIT_FAILURE
  50434. - fi
  50435. - if test "$absdir" != "$libdir"; then
  50436. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  50437. - fi
  50438. - path="$absdir"
  50439. - fi
  50440. - depdepl=
  50441. - case $host in
  50442. - *-*-darwin*)
  50443. - # we do not want to link against static libs,
  50444. - # but need to link against shared
  50445. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  50446. - if test -n "$deplibrary_names" ; then
  50447. - for tmp in $deplibrary_names ; do
  50448. - depdepl=$tmp
  50449. - done
  50450. - if test -f "$path/$depdepl" ; then
  50451. - depdepl="$path/$depdepl"
  50452. - fi
  50453. - # do not add paths which are already there
  50454. - case " $newlib_search_path " in
  50455. - *" $path "*) ;;
  50456. - *) newlib_search_path="$newlib_search_path $path";;
  50457. - esac
  50458. - fi
  50459. - path=""
  50460. - ;;
  50461. - *)
  50462. - path="-L$path"
  50463. - ;;
  50464. - esac
  50465. - ;;
  50466. - -l*)
  50467. - case $host in
  50468. - *-*-darwin*)
  50469. - # Again, we only want to link against shared libraries
  50470. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  50471. - for tmp in $newlib_search_path ; do
  50472. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  50473. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  50474. - break
  50475. - fi
  50476. - done
  50477. - path=""
  50478. - ;;
  50479. - *) continue ;;
  50480. - esac
  50481. - ;;
  50482. - *) continue ;;
  50483. - esac
  50484. - case " $deplibs " in
  50485. - *" $path "*) ;;
  50486. - *) deplibs="$path $deplibs" ;;
  50487. - esac
  50488. - case " $deplibs " in
  50489. - *" $depdepl "*) ;;
  50490. - *) deplibs="$depdepl $deplibs" ;;
  50491. - esac
  50492. - done
  50493. - fi # link_all_deplibs != no
  50494. - fi # linkmode = lib
  50495. - done # for deplib in $libs
  50496. - dependency_libs="$newdependency_libs"
  50497. - if test "$pass" = dlpreopen; then
  50498. - # Link the dlpreopened libraries before other libraries
  50499. - for deplib in $save_deplibs; do
  50500. - deplibs="$deplib $deplibs"
  50501. - done
  50502. - fi
  50503. - if test "$pass" != dlopen; then
  50504. - if test "$pass" != conv; then
  50505. - # Make sure lib_search_path contains only unique directories.
  50506. - lib_search_path=
  50507. - for dir in $newlib_search_path; do
  50508. - case "$lib_search_path " in
  50509. - *" $dir "*) ;;
  50510. - *) lib_search_path="$lib_search_path $dir" ;;
  50511. - esac
  50512. - done
  50513. - newlib_search_path=
  50514. - fi
  50515. - if test "$linkmode,$pass" != "prog,link"; then
  50516. - vars="deplibs"
  50517. - else
  50518. - vars="compile_deplibs finalize_deplibs"
  50519. +# func_emit_wrapper_part1 [arg=no]
  50520. +#
  50521. +# Emit the first part of a libtool wrapper script on stdout.
  50522. +# For more information, see the description associated with
  50523. +# func_emit_wrapper(), below.
  50524. +func_emit_wrapper_part1 ()
  50525. +{
  50526. + func_emit_wrapper_part1_arg1=no
  50527. + if test -n "$1" ; then
  50528. + func_emit_wrapper_part1_arg1=$1
  50529. fi
  50530. - for var in $vars dependency_libs; do
  50531. - # Add libraries to $var in reverse order
  50532. - eval tmp_libs=\"\$$var\"
  50533. - new_libs=
  50534. - for deplib in $tmp_libs; do
  50535. - # FIXME: Pedantically, this is the right thing to do, so
  50536. - # that some nasty dependency loop isn't accidentally
  50537. - # broken:
  50538. - #new_libs="$deplib $new_libs"
  50539. - # Pragmatically, this seems to cause very few problems in
  50540. - # practice:
  50541. - case $deplib in
  50542. - -L*) new_libs="$deplib $new_libs" ;;
  50543. - -R*) ;;
  50544. - *)
  50545. - # And here is the reason: when a library appears more
  50546. - # than once as an explicit dependence of a library, or
  50547. - # is implicitly linked in more than once by the
  50548. - # compiler, it is considered special, and multiple
  50549. - # occurrences thereof are not removed. Compare this
  50550. - # with having the same library being listed as a
  50551. - # dependency of multiple other libraries: in this case,
  50552. - # we know (pedantically, we assume) the library does not
  50553. - # need to be listed more than once, so we keep only the
  50554. - # last copy. This is not always right, but it is rare
  50555. - # enough that we require users that really mean to play
  50556. - # such unportable linking tricks to link the library
  50557. - # using -Wl,-lname, so that libtool does not consider it
  50558. - # for duplicate removal.
  50559. - case " $specialdeplibs " in
  50560. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  50561. - *)
  50562. - case " $new_libs " in
  50563. - *" $deplib "*) ;;
  50564. - *) new_libs="$deplib $new_libs" ;;
  50565. - esac
  50566. - ;;
  50567. - esac
  50568. - ;;
  50569. - esac
  50570. - done
  50571. - tmp_libs=
  50572. - for deplib in $new_libs; do
  50573. - case $deplib in
  50574. - -L*)
  50575. - case " $tmp_libs " in
  50576. - *" $deplib "*) ;;
  50577. - *) tmp_libs="$tmp_libs $deplib" ;;
  50578. - esac
  50579. - ;;
  50580. - *) tmp_libs="$tmp_libs $deplib" ;;
  50581. - esac
  50582. - done
  50583. - eval $var=\"$tmp_libs\"
  50584. - done # for var
  50585. - fi
  50586. - # Last step: remove runtime libs from dependency_libs
  50587. - # (they stay in deplibs)
  50588. - tmp_libs=
  50589. - for i in $dependency_libs ; do
  50590. - case " $predeps $postdeps $compiler_lib_search_path " in
  50591. - *" $i "*)
  50592. - i=""
  50593. - ;;
  50594. - esac
  50595. - if test -n "$i" ; then
  50596. - tmp_libs="$tmp_libs $i"
  50597. - fi
  50598. - done
  50599. - dependency_libs=$tmp_libs
  50600. - done # for pass
  50601. - if test "$linkmode" = prog; then
  50602. - dlfiles="$newdlfiles"
  50603. - dlprefiles="$newdlprefiles"
  50604. - fi
  50605. - case $linkmode in
  50606. - oldlib)
  50607. - if test -n "$deplibs"; then
  50608. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  50609. - fi
  50610. + $ECHO "\
  50611. +#! $SHELL
  50612. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  50613. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  50614. - fi
  50615. +# $output - temporary wrapper script for $objdir/$outputname
  50616. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  50617. +#
  50618. +# The $output program cannot be directly executed until all the libtool
  50619. +# libraries that it depends on are installed.
  50620. +#
  50621. +# This wrapper script should never be moved out of the build directory.
  50622. +# If it is, it will not operate correctly.
  50623. - if test -n "$rpath"; then
  50624. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  50625. - fi
  50626. +# Sed substitution that helps us do robust quoting. It backslashifies
  50627. +# metacharacters that are still active within double-quoted strings.
  50628. +Xsed='${SED} -e 1s/^X//'
  50629. +sed_quote_subst='$sed_quote_subst'
  50630. - if test -n "$xrpath"; then
  50631. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  50632. - fi
  50633. +# Be Bourne compatible
  50634. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  50635. + emulate sh
  50636. + NULLCMD=:
  50637. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  50638. + # is contrary to our usage. Disable this feature.
  50639. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  50640. + setopt NO_GLOB_SUBST
  50641. +else
  50642. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  50643. +fi
  50644. +BIN_SH=xpg4; export BIN_SH # for Tru64
  50645. +DUALCASE=1; export DUALCASE # for MKS sh
  50646. - if test -n "$vinfo"; then
  50647. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  50648. - fi
  50649. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  50650. +# if CDPATH is set.
  50651. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  50652. - if test -n "$release"; then
  50653. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  50654. - fi
  50655. +relink_command=\"$relink_command\"
  50656. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  50657. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  50658. - fi
  50659. +# This environment variable determines our operation mode.
  50660. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  50661. + # install mode needs the following variables:
  50662. + generated_by_libtool_version='$macro_version'
  50663. + notinst_deplibs='$notinst_deplibs'
  50664. +else
  50665. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  50666. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  50667. + ECHO=\"$qecho\"
  50668. + file=\"\$0\"
  50669. + # Make sure echo works.
  50670. + if test \"X\$1\" = X--no-reexec; then
  50671. + # Discard the --no-reexec flag, and continue.
  50672. + shift
  50673. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  50674. + # Yippee, \$ECHO works!
  50675. + :
  50676. + else
  50677. + # Restart under the correct shell, and then maybe \$ECHO will work.
  50678. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  50679. + fi
  50680. + fi\
  50681. +"
  50682. + $ECHO "\
  50683. - # Now set the variables for building old libraries.
  50684. - build_libtool_libs=no
  50685. - oldlibs="$output"
  50686. - objs="$objs$old_deplibs"
  50687. - ;;
  50688. + # Find the directory that this script lives in.
  50689. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  50690. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  50691. - lib)
  50692. - # Make sure we only generate libraries of the form `libNAME.la'.
  50693. - case $outputname in
  50694. - lib*)
  50695. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  50696. - eval shared_ext=\"$shrext_cmds\"
  50697. - eval libname=\"$libname_spec\"
  50698. - ;;
  50699. - *)
  50700. - if test "$module" = no; then
  50701. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  50702. - $echo "$help" 1>&2
  50703. - exit $EXIT_FAILURE
  50704. - fi
  50705. - if test "$need_lib_prefix" != no; then
  50706. - # Add the "lib" prefix for modules if required
  50707. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  50708. - eval shared_ext=\"$shrext_cmds\"
  50709. - eval libname=\"$libname_spec\"
  50710. - else
  50711. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  50712. - fi
  50713. - ;;
  50714. + # Follow symbolic links until we get to the real thisdir.
  50715. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  50716. + while test -n \"\$file\"; do
  50717. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  50718. +
  50719. + # If there was a directory component, then change thisdir.
  50720. + if test \"x\$destdir\" != \"x\$file\"; then
  50721. + case \"\$destdir\" in
  50722. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  50723. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  50724. esac
  50725. + fi
  50726. - if test -n "$objs"; then
  50727. - if test "$deplibs_check_method" != pass_all; then
  50728. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  50729. - exit $EXIT_FAILURE
  50730. - else
  50731. - $echo
  50732. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  50733. - $echo "*** objects $objs is not portable!"
  50734. - libobjs="$libobjs $objs"
  50735. - fi
  50736. - fi
  50737. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  50738. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  50739. + done
  50740. +"
  50741. +}
  50742. +# end: func_emit_wrapper_part1
  50743. - if test "$dlself" != no; then
  50744. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  50745. - fi
  50746. +# func_emit_wrapper_part2 [arg=no]
  50747. +#
  50748. +# Emit the second part of a libtool wrapper script on stdout.
  50749. +# For more information, see the description associated with
  50750. +# func_emit_wrapper(), below.
  50751. +func_emit_wrapper_part2 ()
  50752. +{
  50753. + func_emit_wrapper_part2_arg1=no
  50754. + if test -n "$1" ; then
  50755. + func_emit_wrapper_part2_arg1=$1
  50756. + fi
  50757. +
  50758. + $ECHO "\
  50759. +
  50760. + # Usually 'no', except on cygwin/mingw when embedded into
  50761. + # the cwrapper.
  50762. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  50763. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  50764. + # special case for '.'
  50765. + if test \"\$thisdir\" = \".\"; then
  50766. + thisdir=\`pwd\`
  50767. + fi
  50768. + # remove .libs from thisdir
  50769. + case \"\$thisdir\" in
  50770. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  50771. + $objdir ) thisdir=. ;;
  50772. + esac
  50773. + fi
  50774. - set dummy $rpath
  50775. - if test "$#" -gt 2; then
  50776. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  50777. + # Try to get the absolute directory name.
  50778. + absdir=\`cd \"\$thisdir\" && pwd\`
  50779. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  50780. +"
  50781. +
  50782. + if test "$fast_install" = yes; then
  50783. + $ECHO "\
  50784. + program=lt-'$outputname'$exeext
  50785. + progdir=\"\$thisdir/$objdir\"
  50786. +
  50787. + if test ! -f \"\$progdir/\$program\" ||
  50788. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  50789. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  50790. +
  50791. + file=\"\$\$-\$program\"
  50792. +
  50793. + if test ! -d \"\$progdir\"; then
  50794. + $MKDIR \"\$progdir\"
  50795. + else
  50796. + $RM \"\$progdir/\$file\"
  50797. + fi"
  50798. +
  50799. + $ECHO "\
  50800. +
  50801. + # relink executable if necessary
  50802. + if test -n \"\$relink_command\"; then
  50803. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  50804. + else
  50805. + $ECHO \"\$relink_command_output\" >&2
  50806. + $RM \"\$progdir/\$file\"
  50807. + exit 1
  50808. fi
  50809. - install_libdir="$2"
  50810. + fi
  50811. - oldlibs=
  50812. - if test -z "$rpath"; then
  50813. - if test "$build_libtool_libs" = yes; then
  50814. - # Building a libtool convenience library.
  50815. - # Some compilers have problems with a `.al' extension so
  50816. - # convenience libraries should have the same extension an
  50817. - # archive normally would.
  50818. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  50819. - build_libtool_libs=convenience
  50820. - build_old_libs=yes
  50821. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  50822. + { $RM \"\$progdir/\$program\";
  50823. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  50824. + $RM \"\$progdir/\$file\"
  50825. + fi"
  50826. + else
  50827. + $ECHO "\
  50828. + program='$outputname'
  50829. + progdir=\"\$thisdir/$objdir\"
  50830. +"
  50831. fi
  50832. - if test -n "$vinfo"; then
  50833. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  50834. - fi
  50835. + $ECHO "\
  50836. - if test -n "$release"; then
  50837. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  50838. - fi
  50839. - else
  50840. + if test -f \"\$progdir/\$program\"; then"
  50841. - # Parse the version information argument.
  50842. - save_ifs="$IFS"; IFS=':'
  50843. - set dummy $vinfo 0 0 0
  50844. - IFS="$save_ifs"
  50845. + # Export our shlibpath_var if we have one.
  50846. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  50847. + $ECHO "\
  50848. + # Add our own library path to $shlibpath_var
  50849. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  50850. - if test -n "$8"; then
  50851. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  50852. - $echo "$help" 1>&2
  50853. - exit $EXIT_FAILURE
  50854. - fi
  50855. + # Some systems cannot cope with colon-terminated $shlibpath_var
  50856. + # The second colon is a workaround for a bug in BeOS R4 sed
  50857. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  50858. - # convert absolute version numbers to libtool ages
  50859. - # this retains compatibility with .la files and attempts
  50860. - # to make the code below a bit more comprehensible
  50861. + export $shlibpath_var
  50862. +"
  50863. + fi
  50864. - case $vinfo_number in
  50865. - yes)
  50866. - number_major="$2"
  50867. - number_minor="$3"
  50868. - number_revision="$4"
  50869. - #
  50870. - # There are really only two kinds -- those that
  50871. - # use the current revision as the major version
  50872. - # and those that subtract age and use age as
  50873. - # a minor version. But, then there is irix
  50874. - # which has an extra 1 added just for fun
  50875. - #
  50876. - case $version_type in
  50877. - darwin|linux|osf|windows)
  50878. - current=`expr $number_major + $number_minor`
  50879. - age="$number_minor"
  50880. - revision="$number_revision"
  50881. - ;;
  50882. - freebsd-aout|freebsd-elf|sunos)
  50883. - current="$number_major"
  50884. - revision="$number_minor"
  50885. - age="0"
  50886. - ;;
  50887. - irix|nonstopux)
  50888. - current=`expr $number_major + $number_minor - 1`
  50889. - age="$number_minor"
  50890. - revision="$number_minor"
  50891. - ;;
  50892. - esac
  50893. - ;;
  50894. - no)
  50895. - current="$2"
  50896. - revision="$3"
  50897. - age="$4"
  50898. - ;;
  50899. - esac
  50900. + # fixup the dll searchpath if we need to.
  50901. + if test -n "$dllsearchpath"; then
  50902. + $ECHO "\
  50903. + # Add the dll search path components to the executable PATH
  50904. + PATH=$dllsearchpath:\$PATH
  50905. +"
  50906. + fi
  50907. - # Check that each of the things are valid numbers.
  50908. - case $current in
  50909. - 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]) ;;
  50910. - *)
  50911. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  50912. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50913. - exit $EXIT_FAILURE
  50914. + $ECHO "\
  50915. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  50916. + # Run the actual program with our arguments.
  50917. +"
  50918. + case $host in
  50919. + # Backslashes separate directories on plain windows
  50920. + *-*-mingw | *-*-os2* | *-cegcc*)
  50921. + $ECHO "\
  50922. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  50923. +"
  50924. ;;
  50925. - esac
  50926. - case $revision in
  50927. - 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]) ;;
  50928. *)
  50929. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  50930. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50931. - exit $EXIT_FAILURE
  50932. + $ECHO "\
  50933. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  50934. +"
  50935. ;;
  50936. esac
  50937. + $ECHO "\
  50938. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  50939. + exit 1
  50940. + fi
  50941. + else
  50942. + # The program doesn't exist.
  50943. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  50944. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  50945. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  50946. + exit 1
  50947. + fi
  50948. +fi\
  50949. +"
  50950. +}
  50951. +# end: func_emit_wrapper_part2
  50952. - case $age in
  50953. - 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]) ;;
  50954. - *)
  50955. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  50956. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50957. - exit $EXIT_FAILURE
  50958. - ;;
  50959. - esac
  50960. - if test "$age" -gt "$current"; then
  50961. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  50962. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50963. - exit $EXIT_FAILURE
  50964. +# func_emit_wrapper [arg=no]
  50965. +#
  50966. +# Emit a libtool wrapper script on stdout.
  50967. +# Don't directly open a file because we may want to
  50968. +# incorporate the script contents within a cygwin/mingw
  50969. +# wrapper executable. Must ONLY be called from within
  50970. +# func_mode_link because it depends on a number of variables
  50971. +# set therein.
  50972. +#
  50973. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  50974. +# variable will take. If 'yes', then the emitted script
  50975. +# will assume that the directory in which it is stored is
  50976. +# the $objdir directory. This is a cygwin/mingw-specific
  50977. +# behavior.
  50978. +func_emit_wrapper ()
  50979. +{
  50980. + func_emit_wrapper_arg1=no
  50981. + if test -n "$1" ; then
  50982. + func_emit_wrapper_arg1=$1
  50983. fi
  50984. - # Calculate the version variables.
  50985. - major=
  50986. - versuffix=
  50987. - verstring=
  50988. - case $version_type in
  50989. - none) ;;
  50990. -
  50991. - darwin)
  50992. - # Like Linux, but with the current version available in
  50993. - # verstring for coding it into the library header
  50994. - major=.`expr $current - $age`
  50995. - versuffix="$major.$age.$revision"
  50996. - # Darwin ld doesn't like 0 for these options...
  50997. - minor_current=`expr $current + 1`
  50998. - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  50999. - ;;
  51000. + # split this up so that func_emit_cwrapperexe_src
  51001. + # can call each part independently.
  51002. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  51003. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  51004. +}
  51005. - freebsd-aout)
  51006. - major=".$current"
  51007. - versuffix=".$current.$revision";
  51008. - ;;
  51009. - freebsd-elf)
  51010. - major=".$current"
  51011. - versuffix=".$current";
  51012. - ;;
  51013. +# func_to_host_path arg
  51014. +#
  51015. +# Convert paths to host format when used with build tools.
  51016. +# Intended for use with "native" mingw (where libtool itself
  51017. +# is running under the msys shell), or in the following cross-
  51018. +# build environments:
  51019. +# $build $host
  51020. +# mingw (msys) mingw [e.g. native]
  51021. +# cygwin mingw
  51022. +# *nix + wine mingw
  51023. +# where wine is equipped with the `winepath' executable.
  51024. +# In the native mingw case, the (msys) shell automatically
  51025. +# converts paths for any non-msys applications it launches,
  51026. +# but that facility isn't available from inside the cwrapper.
  51027. +# Similar accommodations are necessary for $host mingw and
  51028. +# $build cygwin. Calling this function does no harm for other
  51029. +# $host/$build combinations not listed above.
  51030. +#
  51031. +# ARG is the path (on $build) that should be converted to
  51032. +# the proper representation for $host. The result is stored
  51033. +# in $func_to_host_path_result.
  51034. +func_to_host_path ()
  51035. +{
  51036. + func_to_host_path_result="$1"
  51037. + if test -n "$1" ; then
  51038. + case $host in
  51039. + *mingw* )
  51040. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  51041. + case $build in
  51042. + *mingw* ) # actually, msys
  51043. + # awkward: cmd appends spaces to result
  51044. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  51045. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  51046. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  51047. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51048. + $SED -e "$lt_sed_naive_backslashify"`
  51049. + ;;
  51050. + *cygwin* )
  51051. + func_to_host_path_tmp1=`cygpath -w "$1"`
  51052. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51053. + $SED -e "$lt_sed_naive_backslashify"`
  51054. + ;;
  51055. + * )
  51056. + # Unfortunately, winepath does not exit with a non-zero
  51057. + # error code, so we are forced to check the contents of
  51058. + # stdout. On the other hand, if the command is not
  51059. + # found, the shell will set an exit code of 127 and print
  51060. + # *an error message* to stdout. So we must check for both
  51061. + # error code of zero AND non-empty stdout, which explains
  51062. + # the odd construction:
  51063. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  51064. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  51065. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  51066. + $SED -e "$lt_sed_naive_backslashify"`
  51067. + else
  51068. + # Allow warning below.
  51069. + func_to_host_path_result=""
  51070. + fi
  51071. + ;;
  51072. + esac
  51073. + if test -z "$func_to_host_path_result" ; then
  51074. + func_error "Could not determine host path corresponding to"
  51075. + func_error " '$1'"
  51076. + func_error "Continuing, but uninstalled executables may not work."
  51077. + # Fallback:
  51078. + func_to_host_path_result="$1"
  51079. + fi
  51080. + ;;
  51081. + esac
  51082. + fi
  51083. +}
  51084. +# end: func_to_host_path
  51085. - irix | nonstopux)
  51086. - major=`expr $current - $age + 1`
  51087. +# func_to_host_pathlist arg
  51088. +#
  51089. +# Convert pathlists to host format when used with build tools.
  51090. +# See func_to_host_path(), above. This function supports the
  51091. +# following $build/$host combinations (but does no harm for
  51092. +# combinations not listed here):
  51093. +# $build $host
  51094. +# mingw (msys) mingw [e.g. native]
  51095. +# cygwin mingw
  51096. +# *nix + wine mingw
  51097. +#
  51098. +# Path separators are also converted from $build format to
  51099. +# $host format. If ARG begins or ends with a path separator
  51100. +# character, it is preserved (but converted to $host format)
  51101. +# on output.
  51102. +#
  51103. +# ARG is a pathlist (on $build) that should be converted to
  51104. +# the proper representation on $host. The result is stored
  51105. +# in $func_to_host_pathlist_result.
  51106. +func_to_host_pathlist ()
  51107. +{
  51108. + func_to_host_pathlist_result="$1"
  51109. + if test -n "$1" ; then
  51110. + case $host in
  51111. + *mingw* )
  51112. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  51113. + # Remove leading and trailing path separator characters from
  51114. + # ARG. msys behavior is inconsistent here, cygpath turns them
  51115. + # into '.;' and ';.', and winepath ignores them completely.
  51116. + func_to_host_pathlist_tmp2="$1"
  51117. + # Once set for this call, this variable should not be
  51118. + # reassigned. It is used in tha fallback case.
  51119. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  51120. + $SED -e 's|^:*||' -e 's|:*$||'`
  51121. + case $build in
  51122. + *mingw* ) # Actually, msys.
  51123. + # Awkward: cmd appends spaces to result.
  51124. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  51125. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  51126. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  51127. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  51128. + $SED -e "$lt_sed_naive_backslashify"`
  51129. + ;;
  51130. + *cygwin* )
  51131. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  51132. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  51133. + $SED -e "$lt_sed_naive_backslashify"`
  51134. + ;;
  51135. + * )
  51136. + # unfortunately, winepath doesn't convert pathlists
  51137. + func_to_host_pathlist_result=""
  51138. + func_to_host_pathlist_oldIFS=$IFS
  51139. + IFS=:
  51140. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  51141. + IFS=$func_to_host_pathlist_oldIFS
  51142. + if test -n "$func_to_host_pathlist_f" ; then
  51143. + func_to_host_path "$func_to_host_pathlist_f"
  51144. + if test -n "$func_to_host_path_result" ; then
  51145. + if test -z "$func_to_host_pathlist_result" ; then
  51146. + func_to_host_pathlist_result="$func_to_host_path_result"
  51147. + else
  51148. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  51149. + fi
  51150. + fi
  51151. + fi
  51152. + IFS=:
  51153. + done
  51154. + IFS=$func_to_host_pathlist_oldIFS
  51155. + ;;
  51156. + esac
  51157. + if test -z "$func_to_host_pathlist_result" ; then
  51158. + func_error "Could not determine the host path(s) corresponding to"
  51159. + func_error " '$1'"
  51160. + func_error "Continuing, but uninstalled executables may not work."
  51161. + # Fallback. This may break if $1 contains DOS-style drive
  51162. + # specifications. The fix is not to complicate the expression
  51163. + # below, but for the user to provide a working wine installation
  51164. + # with winepath so that path translation in the cross-to-mingw
  51165. + # case works properly.
  51166. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  51167. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  51168. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  51169. + fi
  51170. + # Now, add the leading and trailing path separators back
  51171. + case "$1" in
  51172. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  51173. + ;;
  51174. + esac
  51175. + case "$1" in
  51176. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  51177. + ;;
  51178. + esac
  51179. + ;;
  51180. + esac
  51181. + fi
  51182. +}
  51183. +# end: func_to_host_pathlist
  51184. - case $version_type in
  51185. - nonstopux) verstring_prefix=nonstopux ;;
  51186. - *) verstring_prefix=sgi ;;
  51187. - esac
  51188. - verstring="$verstring_prefix$major.$revision"
  51189. +# func_emit_cwrapperexe_src
  51190. +# emit the source code for a wrapper executable on stdout
  51191. +# Must ONLY be called from within func_mode_link because
  51192. +# it depends on a number of variable set therein.
  51193. +func_emit_cwrapperexe_src ()
  51194. +{
  51195. + cat <<EOF
  51196. - # Add in all the interfaces that we are compatible with.
  51197. - loop=$revision
  51198. - while test "$loop" -ne 0; do
  51199. - iface=`expr $revision - $loop`
  51200. - loop=`expr $loop - 1`
  51201. - verstring="$verstring_prefix$major.$iface:$verstring"
  51202. - done
  51203. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  51204. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  51205. - # Before this point, $major must not contain `.'.
  51206. - major=.$major
  51207. - versuffix="$major.$revision"
  51208. - ;;
  51209. + The $output program cannot be directly executed until all the libtool
  51210. + libraries that it depends on are installed.
  51211. - linux)
  51212. - major=.`expr $current - $age`
  51213. - versuffix="$major.$age.$revision"
  51214. - ;;
  51215. + This wrapper executable should never be moved out of the build directory.
  51216. + If it is, it will not operate correctly.
  51217. - osf)
  51218. - major=.`expr $current - $age`
  51219. - versuffix=".$current.$age.$revision"
  51220. - verstring="$current.$age.$revision"
  51221. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  51222. + but could eventually absorb all of the scripts functionality and
  51223. + exec $objdir/$outputname directly.
  51224. +*/
  51225. +EOF
  51226. + cat <<"EOF"
  51227. +#include <stdio.h>
  51228. +#include <stdlib.h>
  51229. +#ifdef _MSC_VER
  51230. +# include <direct.h>
  51231. +# include <process.h>
  51232. +# include <io.h>
  51233. +# define setmode _setmode
  51234. +#else
  51235. +# include <unistd.h>
  51236. +# include <stdint.h>
  51237. +# ifdef __CYGWIN__
  51238. +# include <io.h>
  51239. +# define HAVE_SETENV
  51240. +# ifdef __STRICT_ANSI__
  51241. +char *realpath (const char *, char *);
  51242. +int putenv (char *);
  51243. +int setenv (const char *, const char *, int);
  51244. +# endif
  51245. +# endif
  51246. +#endif
  51247. +#include <malloc.h>
  51248. +#include <stdarg.h>
  51249. +#include <assert.h>
  51250. +#include <string.h>
  51251. +#include <ctype.h>
  51252. +#include <errno.h>
  51253. +#include <fcntl.h>
  51254. +#include <sys/stat.h>
  51255. - # Add in all the interfaces that we are compatible with.
  51256. - loop=$age
  51257. - while test "$loop" -ne 0; do
  51258. - iface=`expr $current - $loop`
  51259. - loop=`expr $loop - 1`
  51260. - verstring="$verstring:${iface}.0"
  51261. - done
  51262. +#if defined(PATH_MAX)
  51263. +# define LT_PATHMAX PATH_MAX
  51264. +#elif defined(MAXPATHLEN)
  51265. +# define LT_PATHMAX MAXPATHLEN
  51266. +#else
  51267. +# define LT_PATHMAX 1024
  51268. +#endif
  51269. - # Make executables depend on our current version.
  51270. - verstring="$verstring:${current}.0"
  51271. - ;;
  51272. +#ifndef S_IXOTH
  51273. +# define S_IXOTH 0
  51274. +#endif
  51275. +#ifndef S_IXGRP
  51276. +# define S_IXGRP 0
  51277. +#endif
  51278. - sunos)
  51279. - major=".$current"
  51280. - versuffix=".$current.$revision"
  51281. - ;;
  51282. +#ifdef _MSC_VER
  51283. +# define S_IXUSR _S_IEXEC
  51284. +# define stat _stat
  51285. +# ifndef _INTPTR_T_DEFINED
  51286. +# define intptr_t int
  51287. +# endif
  51288. +#endif
  51289. - windows)
  51290. - # Use '-' rather than '.', since we only want one
  51291. - # extension on DOS 8.3 filesystems.
  51292. - major=`expr $current - $age`
  51293. - versuffix="-$major"
  51294. - ;;
  51295. +#ifndef DIR_SEPARATOR
  51296. +# define DIR_SEPARATOR '/'
  51297. +# define PATH_SEPARATOR ':'
  51298. +#endif
  51299. - *)
  51300. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  51301. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  51302. - exit $EXIT_FAILURE
  51303. - ;;
  51304. - esac
  51305. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  51306. + defined (__OS2__)
  51307. +# define HAVE_DOS_BASED_FILE_SYSTEM
  51308. +# define FOPEN_WB "wb"
  51309. +# ifndef DIR_SEPARATOR_2
  51310. +# define DIR_SEPARATOR_2 '\\'
  51311. +# endif
  51312. +# ifndef PATH_SEPARATOR_2
  51313. +# define PATH_SEPARATOR_2 ';'
  51314. +# endif
  51315. +#endif
  51316. - # Clear the version info if we defaulted, and they specified a release.
  51317. - if test -z "$vinfo" && test -n "$release"; then
  51318. - major=
  51319. - case $version_type in
  51320. - darwin)
  51321. - # we can't check for "0.0" in archive_cmds due to quoting
  51322. - # problems, so we reset it completely
  51323. - verstring=
  51324. - ;;
  51325. - *)
  51326. - verstring="0.0"
  51327. - ;;
  51328. - esac
  51329. - if test "$need_version" = no; then
  51330. - versuffix=
  51331. - else
  51332. - versuffix=".0.0"
  51333. - fi
  51334. - fi
  51335. +#ifndef DIR_SEPARATOR_2
  51336. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  51337. +#else /* DIR_SEPARATOR_2 */
  51338. +# define IS_DIR_SEPARATOR(ch) \
  51339. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  51340. +#endif /* DIR_SEPARATOR_2 */
  51341. - # Remove version info from name if versioning should be avoided
  51342. - if test "$avoid_version" = yes && test "$need_version" = no; then
  51343. - major=
  51344. - versuffix=
  51345. - verstring=""
  51346. - fi
  51347. +#ifndef PATH_SEPARATOR_2
  51348. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  51349. +#else /* PATH_SEPARATOR_2 */
  51350. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  51351. +#endif /* PATH_SEPARATOR_2 */
  51352. - # Check to see if the archive will have undefined symbols.
  51353. - if test "$allow_undefined" = yes; then
  51354. - if test "$allow_undefined_flag" = unsupported; then
  51355. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  51356. - build_libtool_libs=no
  51357. - build_old_libs=yes
  51358. - fi
  51359. - else
  51360. - # Don't allow undefined symbols.
  51361. - allow_undefined_flag="$no_undefined_flag"
  51362. - fi
  51363. - fi
  51364. +#ifdef __CYGWIN__
  51365. +# define FOPEN_WB "wb"
  51366. +#endif
  51367. - if test "$mode" != relink; then
  51368. - # Remove our outputs, but don't remove object files since they
  51369. - # may have been created when compiling PIC objects.
  51370. - removelist=
  51371. - tempremovelist=`$echo "$output_objdir/*"`
  51372. - for p in $tempremovelist; do
  51373. - case $p in
  51374. - *.$objext)
  51375. - ;;
  51376. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  51377. - if test "X$precious_files_regex" != "X"; then
  51378. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  51379. - then
  51380. - continue
  51381. - fi
  51382. - fi
  51383. - removelist="$removelist $p"
  51384. - ;;
  51385. - *) ;;
  51386. - esac
  51387. - done
  51388. - if test -n "$removelist"; then
  51389. - $show "${rm}r $removelist"
  51390. - $run ${rm}r $removelist
  51391. - fi
  51392. - fi
  51393. +#ifndef FOPEN_WB
  51394. +# define FOPEN_WB "w"
  51395. +#endif
  51396. +#ifndef _O_BINARY
  51397. +# define _O_BINARY 0
  51398. +#endif
  51399. - # Now set the variables for building old libraries.
  51400. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  51401. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  51402. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  51403. +#define XFREE(stale) do { \
  51404. + if (stale) { free ((void *) stale); stale = 0; } \
  51405. +} while (0)
  51406. - # Transform .lo files to .o files.
  51407. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  51408. - fi
  51409. +#undef LTWRAPPER_DEBUGPRINTF
  51410. +#if defined DEBUGWRAPPER
  51411. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  51412. +static void
  51413. +ltwrapper_debugprintf (const char *fmt, ...)
  51414. +{
  51415. + va_list args;
  51416. + va_start (args, fmt);
  51417. + (void) vfprintf (stderr, fmt, args);
  51418. + va_end (args);
  51419. +}
  51420. +#else
  51421. +# define LTWRAPPER_DEBUGPRINTF(args)
  51422. +#endif
  51423. - # Eliminate all temporary directories.
  51424. - for path in $notinst_path; do
  51425. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  51426. - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  51427. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  51428. - done
  51429. +const char *program_name = NULL;
  51430. - if test -n "$xrpath"; then
  51431. - # If the user specified any rpath flags, then add them.
  51432. - temp_xrpath=
  51433. - for libdir in $xrpath; do
  51434. - temp_xrpath="$temp_xrpath -R$libdir"
  51435. - case "$finalize_rpath " in
  51436. - *" $libdir "*) ;;
  51437. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  51438. - esac
  51439. - done
  51440. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  51441. - dependency_libs="$temp_xrpath $dependency_libs"
  51442. - fi
  51443. - fi
  51444. +void *xmalloc (size_t num);
  51445. +char *xstrdup (const char *string);
  51446. +const char *base_name (const char *name);
  51447. +char *find_executable (const char *wrapper);
  51448. +char *chase_symlinks (const char *pathspec);
  51449. +int make_executable (const char *path);
  51450. +int check_executable (const char *path);
  51451. +char *strendzap (char *str, const char *pat);
  51452. +void lt_fatal (const char *message, ...);
  51453. +void lt_setenv (const char *name, const char *value);
  51454. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  51455. +void lt_opt_process_env_set (const char *arg);
  51456. +void lt_opt_process_env_prepend (const char *arg);
  51457. +void lt_opt_process_env_append (const char *arg);
  51458. +int lt_split_name_value (const char *arg, char** name, char** value);
  51459. +void lt_update_exe_path (const char *name, const char *value);
  51460. +void lt_update_lib_path (const char *name, const char *value);
  51461. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  51462. - old_dlfiles="$dlfiles"
  51463. - dlfiles=
  51464. - for lib in $old_dlfiles; do
  51465. - case " $dlprefiles $dlfiles " in
  51466. - *" $lib "*) ;;
  51467. - *) dlfiles="$dlfiles $lib" ;;
  51468. - esac
  51469. - done
  51470. +static const char *script_text_part1 =
  51471. +EOF
  51472. - # Make sure dlprefiles contains only unique files
  51473. - old_dlprefiles="$dlprefiles"
  51474. - dlprefiles=
  51475. - for lib in $old_dlprefiles; do
  51476. - case "$dlprefiles " in
  51477. - *" $lib "*) ;;
  51478. - *) dlprefiles="$dlprefiles $lib" ;;
  51479. - esac
  51480. - done
  51481. + func_emit_wrapper_part1 yes |
  51482. + $SED -e 's/\([\\"]\)/\\\1/g' \
  51483. + -e 's/^/ "/' -e 's/$/\\n"/'
  51484. + echo ";"
  51485. + cat <<EOF
  51486. - if test "$build_libtool_libs" = yes; then
  51487. - if test -n "$rpath"; then
  51488. - case $host in
  51489. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  51490. - # these systems don't actually have a c library (as such)!
  51491. - ;;
  51492. - *-*-rhapsody* | *-*-darwin1.[012])
  51493. - # Rhapsody C library is in the System framework
  51494. - deplibs="$deplibs -framework System"
  51495. - ;;
  51496. - *-*-netbsd*)
  51497. - # Don't link with libc until the a.out ld.so is fixed.
  51498. - ;;
  51499. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  51500. - # Do not include libc due to us having libc/libc_r.
  51501. - ;;
  51502. - *-*-sco3.2v5* | *-*-sco5v6*)
  51503. - # Causes problems with __ctype
  51504. - ;;
  51505. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  51506. - # Compiler inserts libc in the correct place for threads to work
  51507. - ;;
  51508. - *)
  51509. - # Add libc to deplibs on all other systems if necessary.
  51510. - if test "$build_libtool_need_lc" = "yes"; then
  51511. - deplibs="$deplibs -lc"
  51512. - fi
  51513. - ;;
  51514. - esac
  51515. - fi
  51516. +static const char *script_text_part2 =
  51517. +EOF
  51518. + func_emit_wrapper_part2 yes |
  51519. + $SED -e 's/\([\\"]\)/\\\1/g' \
  51520. + -e 's/^/ "/' -e 's/$/\\n"/'
  51521. + echo ";"
  51522. +
  51523. + cat <<EOF
  51524. +const char * MAGIC_EXE = "$magic_exe";
  51525. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  51526. +EOF
  51527. - # Transform deplibs into only deplibs that can be linked in shared.
  51528. - name_save=$name
  51529. - libname_save=$libname
  51530. - release_save=$release
  51531. - versuffix_save=$versuffix
  51532. - major_save=$major
  51533. - # I'm not sure if I'm treating the release correctly. I think
  51534. - # release should show up in the -l (ie -lgmp5) so we don't want to
  51535. - # add it in twice. Is that correct?
  51536. - release=""
  51537. - versuffix=""
  51538. - major=""
  51539. - newdeplibs=
  51540. - droppeddeps=no
  51541. - case $deplibs_check_method in
  51542. - pass_all)
  51543. - # Don't check for shared/static. Everything works.
  51544. - # This might be a little naive. We might want to check
  51545. - # whether the library exists or not. But this is on
  51546. - # osf3 & osf4 and I'm not really sure... Just
  51547. - # implementing what was already the behavior.
  51548. - newdeplibs=$deplibs
  51549. - ;;
  51550. - test_compile)
  51551. - # This code stresses the "libraries are programs" paradigm to its
  51552. - # limits. Maybe even breaks it. We compile a program, linking it
  51553. - # against the deplibs as a proxy for the library. Then we can check
  51554. - # whether they linked in statically or dynamically with ldd.
  51555. - $rm conftest.c
  51556. - cat > conftest.c <<EOF
  51557. - int main() { return 0; }
  51558. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  51559. + func_to_host_pathlist "$temp_rpath"
  51560. + cat <<EOF
  51561. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  51562. EOF
  51563. - $rm conftest
  51564. - $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  51565. - if test "$?" -eq 0 ; then
  51566. - ldd_output=`ldd conftest`
  51567. - for i in $deplibs; do
  51568. - name=`expr $i : '-l\(.*\)'`
  51569. - # If $name is empty we are operating on a -L argument.
  51570. - if test "$name" != "" && test "$name" -ne "0"; then
  51571. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51572. - case " $predeps $postdeps " in
  51573. - *" $i "*)
  51574. - newdeplibs="$newdeplibs $i"
  51575. - i=""
  51576. - ;;
  51577. - esac
  51578. - fi
  51579. - if test -n "$i" ; then
  51580. - libname=`eval \\$echo \"$libname_spec\"`
  51581. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  51582. - set dummy $deplib_matches
  51583. - deplib_match=$2
  51584. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  51585. - newdeplibs="$newdeplibs $i"
  51586. - else
  51587. - droppeddeps=yes
  51588. - $echo
  51589. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  51590. - $echo "*** I have the capability to make that library automatically link in when"
  51591. - $echo "*** you link to this library. But I can only do this if you have a"
  51592. - $echo "*** shared version of the library, which I believe you do not have"
  51593. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  51594. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  51595. - fi
  51596. - fi
  51597. - else
  51598. - newdeplibs="$newdeplibs $i"
  51599. - fi
  51600. - done
  51601. - else
  51602. - # Error occurred in the first compile. Let's try to salvage
  51603. - # the situation: Compile a separate program for each library.
  51604. - for i in $deplibs; do
  51605. - name=`expr $i : '-l\(.*\)'`
  51606. - # If $name is empty we are operating on a -L argument.
  51607. - if test "$name" != "" && test "$name" != "0"; then
  51608. - $rm conftest
  51609. - $LTCC $LTCFLAGS -o conftest conftest.c $i
  51610. - # Did it work?
  51611. - if test "$?" -eq 0 ; then
  51612. - ldd_output=`ldd conftest`
  51613. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51614. - case " $predeps $postdeps " in
  51615. - *" $i "*)
  51616. - newdeplibs="$newdeplibs $i"
  51617. - i=""
  51618. - ;;
  51619. - esac
  51620. - fi
  51621. - if test -n "$i" ; then
  51622. - libname=`eval \\$echo \"$libname_spec\"`
  51623. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  51624. - set dummy $deplib_matches
  51625. - deplib_match=$2
  51626. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  51627. - newdeplibs="$newdeplibs $i"
  51628. - else
  51629. - droppeddeps=yes
  51630. - $echo
  51631. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  51632. - $echo "*** I have the capability to make that library automatically link in when"
  51633. - $echo "*** you link to this library. But I can only do this if you have a"
  51634. - $echo "*** shared version of the library, which you do not appear to have"
  51635. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  51636. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  51637. - fi
  51638. - fi
  51639. - else
  51640. - droppeddeps=yes
  51641. - $echo
  51642. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  51643. - $echo "*** make it link in! You will probably need to install it or some"
  51644. - $echo "*** library that it depends on before this library will be fully"
  51645. - $echo "*** functional. Installing it before continuing would be even better."
  51646. - fi
  51647. - else
  51648. - newdeplibs="$newdeplibs $i"
  51649. - fi
  51650. - done
  51651. - fi
  51652. - ;;
  51653. - file_magic*)
  51654. - set dummy $deplibs_check_method
  51655. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  51656. - for a_deplib in $deplibs; do
  51657. - name=`expr $a_deplib : '-l\(.*\)'`
  51658. - # If $name is empty we are operating on a -L argument.
  51659. - if test "$name" != "" && test "$name" != "0"; then
  51660. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51661. - case " $predeps $postdeps " in
  51662. - *" $a_deplib "*)
  51663. - newdeplibs="$newdeplibs $a_deplib"
  51664. - a_deplib=""
  51665. - ;;
  51666. - esac
  51667. - fi
  51668. - if test -n "$a_deplib" ; then
  51669. - libname=`eval \\$echo \"$libname_spec\"`
  51670. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  51671. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  51672. - for potent_lib in $potential_libs; do
  51673. - # Follow soft links.
  51674. - if ls -lLd "$potent_lib" 2>/dev/null \
  51675. - | grep " -> " >/dev/null; then
  51676. - continue
  51677. - fi
  51678. - # The statement above tries to avoid entering an
  51679. - # endless loop below, in case of cyclic links.
  51680. - # We might still enter an endless loop, since a link
  51681. - # loop can be closed while we follow links,
  51682. - # but so what?
  51683. - potlib="$potent_lib"
  51684. - while test -h "$potlib" 2>/dev/null; do
  51685. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  51686. - case $potliblink in
  51687. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  51688. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  51689. - esac
  51690. - done
  51691. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  51692. - | ${SED} 10q \
  51693. - | $EGREP "$file_magic_regex" > /dev/null; then
  51694. - newdeplibs="$newdeplibs $a_deplib"
  51695. - a_deplib=""
  51696. - break 2
  51697. - fi
  51698. - done
  51699. - done
  51700. - fi
  51701. - if test -n "$a_deplib" ; then
  51702. - droppeddeps=yes
  51703. - $echo
  51704. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  51705. - $echo "*** I have the capability to make that library automatically link in when"
  51706. - $echo "*** you link to this library. But I can only do this if you have a"
  51707. - $echo "*** shared version of the library, which you do not appear to have"
  51708. - $echo "*** because I did check the linker path looking for a file starting"
  51709. - if test -z "$potlib" ; then
  51710. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  51711. - else
  51712. - $echo "*** with $libname and none of the candidates passed a file format test"
  51713. - $echo "*** using a file magic. Last file checked: $potlib"
  51714. - fi
  51715. - fi
  51716. else
  51717. - # Add a -L argument.
  51718. - newdeplibs="$newdeplibs $a_deplib"
  51719. + cat <<"EOF"
  51720. +const char * LIB_PATH_VALUE = "";
  51721. +EOF
  51722. fi
  51723. - done # Gone through all deplibs.
  51724. - ;;
  51725. - match_pattern*)
  51726. - set dummy $deplibs_check_method
  51727. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  51728. - for a_deplib in $deplibs; do
  51729. - name=`expr $a_deplib : '-l\(.*\)'`
  51730. - # If $name is empty we are operating on a -L argument.
  51731. - if test -n "$name" && test "$name" != "0"; then
  51732. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51733. - case " $predeps $postdeps " in
  51734. - *" $a_deplib "*)
  51735. - newdeplibs="$newdeplibs $a_deplib"
  51736. - a_deplib=""
  51737. - ;;
  51738. - esac
  51739. - fi
  51740. - if test -n "$a_deplib" ; then
  51741. - libname=`eval \\$echo \"$libname_spec\"`
  51742. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  51743. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  51744. - for potent_lib in $potential_libs; do
  51745. - potlib="$potent_lib" # see symlink-check above in file_magic test
  51746. - if eval $echo \"$potent_lib\" 2>/dev/null \
  51747. - | ${SED} 10q \
  51748. - | $EGREP "$match_pattern_regex" > /dev/null; then
  51749. - newdeplibs="$newdeplibs $a_deplib"
  51750. - a_deplib=""
  51751. - break 2
  51752. - fi
  51753. - done
  51754. - done
  51755. - fi
  51756. - if test -n "$a_deplib" ; then
  51757. - droppeddeps=yes
  51758. - $echo
  51759. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  51760. - $echo "*** I have the capability to make that library automatically link in when"
  51761. - $echo "*** you link to this library. But I can only do this if you have a"
  51762. - $echo "*** shared version of the library, which you do not appear to have"
  51763. - $echo "*** because I did check the linker path looking for a file starting"
  51764. - if test -z "$potlib" ; then
  51765. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  51766. - else
  51767. - $echo "*** with $libname and none of the candidates passed a file format test"
  51768. - $echo "*** using a regex pattern. Last file checked: $potlib"
  51769. - fi
  51770. - fi
  51771. +
  51772. + if test -n "$dllsearchpath"; then
  51773. + func_to_host_pathlist "$dllsearchpath:"
  51774. + cat <<EOF
  51775. +const char * EXE_PATH_VARNAME = "PATH";
  51776. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  51777. +EOF
  51778. else
  51779. - # Add a -L argument.
  51780. - newdeplibs="$newdeplibs $a_deplib"
  51781. + cat <<"EOF"
  51782. +const char * EXE_PATH_VARNAME = "";
  51783. +const char * EXE_PATH_VALUE = "";
  51784. +EOF
  51785. fi
  51786. - done # Gone through all deplibs.
  51787. - ;;
  51788. - none | unknown | *)
  51789. - newdeplibs=""
  51790. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  51791. - -e 's/ -[LR][^ ]*//g'`
  51792. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51793. - for i in $predeps $postdeps ; do
  51794. - # can't use Xsed below, because $i might contain '/'
  51795. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  51796. - done
  51797. - fi
  51798. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  51799. - | grep . >/dev/null; then
  51800. - $echo
  51801. - if test "X$deplibs_check_method" = "Xnone"; then
  51802. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  51803. +
  51804. + if test "$fast_install" = yes; then
  51805. + cat <<EOF
  51806. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  51807. +EOF
  51808. else
  51809. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  51810. + cat <<EOF
  51811. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  51812. +EOF
  51813. fi
  51814. - $echo "*** All declared inter-library dependencies are being dropped."
  51815. - droppeddeps=yes
  51816. - fi
  51817. - ;;
  51818. - esac
  51819. - versuffix=$versuffix_save
  51820. - major=$major_save
  51821. - release=$release_save
  51822. - libname=$libname_save
  51823. - name=$name_save
  51824. - case $host in
  51825. - *-*-rhapsody* | *-*-darwin1.[012])
  51826. - # On Rhapsody replace the C library is the System framework
  51827. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  51828. - ;;
  51829. - esac
  51830. - if test "$droppeddeps" = yes; then
  51831. - if test "$module" = yes; then
  51832. - $echo
  51833. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  51834. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  51835. - $echo "*** a static module, that should work as long as the dlopening"
  51836. - $echo "*** application is linked with the -dlopen flag."
  51837. - if test -z "$global_symbol_pipe"; then
  51838. - $echo
  51839. - $echo "*** However, this would only work if libtool was able to extract symbol"
  51840. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  51841. - $echo "*** not find such a program. So, this module is probably useless."
  51842. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  51843. - fi
  51844. - if test "$build_old_libs" = no; then
  51845. - oldlibs="$output_objdir/$libname.$libext"
  51846. - build_libtool_libs=module
  51847. - build_old_libs=yes
  51848. - else
  51849. - build_libtool_libs=no
  51850. - fi
  51851. - else
  51852. - $echo "*** The inter-library dependencies that have been dropped here will be"
  51853. - $echo "*** automatically added whenever a program is linked with this library"
  51854. - $echo "*** or is declared to -dlopen it."
  51855. + cat <<"EOF"
  51856. - if test "$allow_undefined" = no; then
  51857. - $echo
  51858. - $echo "*** Since this library must not contain undefined symbols,"
  51859. - $echo "*** because either the platform does not support them or"
  51860. - $echo "*** it was explicitly requested with -no-undefined,"
  51861. - $echo "*** libtool will only create a static version of it."
  51862. - if test "$build_old_libs" = no; then
  51863. - oldlibs="$output_objdir/$libname.$libext"
  51864. - build_libtool_libs=module
  51865. - build_old_libs=yes
  51866. - else
  51867. - build_libtool_libs=no
  51868. - fi
  51869. - fi
  51870. - fi
  51871. - fi
  51872. - # Done checking deplibs!
  51873. - deplibs=$newdeplibs
  51874. - fi
  51875. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  51876. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  51877. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  51878. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  51879. - # move library search paths that coincide with paths to not yet
  51880. - # installed libraries to the beginning of the library search list
  51881. - new_libs=
  51882. - for path in $notinst_path; do
  51883. - case " $new_libs " in
  51884. - *" -L$path/$objdir "*) ;;
  51885. - *)
  51886. - case " $deplibs " in
  51887. - *" -L$path/$objdir "*)
  51888. - new_libs="$new_libs -L$path/$objdir" ;;
  51889. - esac
  51890. - ;;
  51891. - esac
  51892. - done
  51893. - for deplib in $deplibs; do
  51894. - case $deplib in
  51895. - -L*)
  51896. - case " $new_libs " in
  51897. - *" $deplib "*) ;;
  51898. - *) new_libs="$new_libs $deplib" ;;
  51899. - esac
  51900. - ;;
  51901. - *) new_libs="$new_libs $deplib" ;;
  51902. - esac
  51903. - done
  51904. - deplibs="$new_libs"
  51905. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  51906. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  51907. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  51908. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  51909. - # All the library-specific variables (install_libdir is set above).
  51910. - library_names=
  51911. - old_library=
  51912. - dlname=
  51913. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  51914. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  51915. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  51916. - # Test again, we may have decided not to build it any more
  51917. - if test "$build_libtool_libs" = yes; then
  51918. - if test "$hardcode_into_libs" = yes; then
  51919. - # Hardcode the library paths
  51920. - hardcode_libdirs=
  51921. - dep_rpath=
  51922. - rpath="$finalize_rpath"
  51923. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  51924. - for libdir in $rpath; do
  51925. - if test -n "$hardcode_libdir_flag_spec"; then
  51926. - if test -n "$hardcode_libdir_separator"; then
  51927. - if test -z "$hardcode_libdirs"; then
  51928. - hardcode_libdirs="$libdir"
  51929. - else
  51930. - # Just accumulate the unique libdirs.
  51931. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  51932. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  51933. - ;;
  51934. - *)
  51935. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  51936. - ;;
  51937. - esac
  51938. - fi
  51939. - else
  51940. - eval flag=\"$hardcode_libdir_flag_spec\"
  51941. - dep_rpath="$dep_rpath $flag"
  51942. - fi
  51943. - elif test -n "$runpath_var"; then
  51944. - case "$perm_rpath " in
  51945. - *" $libdir "*) ;;
  51946. - *) perm_rpath="$perm_rpath $libdir" ;;
  51947. - esac
  51948. - fi
  51949. - done
  51950. - # Substitute the hardcoded libdirs into the rpath.
  51951. - if test -n "$hardcode_libdir_separator" &&
  51952. - test -n "$hardcode_libdirs"; then
  51953. - libdir="$hardcode_libdirs"
  51954. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  51955. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  51956. - else
  51957. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  51958. - fi
  51959. - fi
  51960. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  51961. - # We should set the runpath_var.
  51962. - rpath=
  51963. - for dir in $perm_rpath; do
  51964. - rpath="$rpath$dir:"
  51965. - done
  51966. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  51967. - fi
  51968. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  51969. - fi
  51970. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  51971. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  51972. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  51973. - shlibpath="$finalize_shlibpath"
  51974. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  51975. - if test -n "$shlibpath"; then
  51976. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  51977. - fi
  51978. +int
  51979. +main (int argc, char *argv[])
  51980. +{
  51981. + char **newargz;
  51982. + int newargc;
  51983. + char *tmp_pathspec;
  51984. + char *actual_cwrapper_path;
  51985. + char *actual_cwrapper_name;
  51986. + char *target_name;
  51987. + char *lt_argv_zero;
  51988. + intptr_t rval = 127;
  51989. - # Get the real and link names of the library.
  51990. - eval shared_ext=\"$shrext_cmds\"
  51991. - eval library_names=\"$library_names_spec\"
  51992. - set dummy $library_names
  51993. - realname="$2"
  51994. - shift; shift
  51995. + int i;
  51996. - if test -n "$soname_spec"; then
  51997. - eval soname=\"$soname_spec\"
  51998. - else
  51999. - soname="$realname"
  52000. - fi
  52001. - if test -z "$dlname"; then
  52002. - dlname=$soname
  52003. - fi
  52004. + program_name = (char *) xstrdup (base_name (argv[0]));
  52005. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  52006. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  52007. - lib="$output_objdir/$realname"
  52008. - linknames=
  52009. - for link
  52010. - do
  52011. - linknames="$linknames $link"
  52012. - done
  52013. + /* very simple arg parsing; don't want to rely on getopt */
  52014. + for (i = 1; i < argc; i++)
  52015. + {
  52016. + if (strcmp (argv[i], dumpscript_opt) == 0)
  52017. + {
  52018. +EOF
  52019. + case "$host" in
  52020. + *mingw* | *cygwin* )
  52021. + # make stdout use "unix" line endings
  52022. + echo " setmode(1,_O_BINARY);"
  52023. + ;;
  52024. + esac
  52025. - # Use standard objects if they are pic
  52026. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52027. + cat <<"EOF"
  52028. + printf ("%s", script_text_part1);
  52029. + printf ("%s", script_text_part2);
  52030. + return 0;
  52031. + }
  52032. + }
  52033. - # Prepare the list of exported symbols
  52034. - if test -z "$export_symbols"; then
  52035. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  52036. - $show "generating symbol list for \`$libname.la'"
  52037. - export_symbols="$output_objdir/$libname.exp"
  52038. - $run $rm $export_symbols
  52039. - cmds=$export_symbols_cmds
  52040. - save_ifs="$IFS"; IFS='~'
  52041. - for cmd in $cmds; do
  52042. - IFS="$save_ifs"
  52043. - eval cmd=\"$cmd\"
  52044. - if len=`expr "X$cmd" : ".*"` &&
  52045. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52046. - $show "$cmd"
  52047. - $run eval "$cmd" || exit $?
  52048. - skipped_export=false
  52049. - else
  52050. - # The command line is too long to execute in one step.
  52051. - $show "using reloadable object file for export list..."
  52052. - skipped_export=:
  52053. - # Break out early, otherwise skipped_export may be
  52054. - # set to false by a later but shorter cmd.
  52055. - break
  52056. - fi
  52057. - done
  52058. - IFS="$save_ifs"
  52059. - if test -n "$export_symbols_regex"; then
  52060. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  52061. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  52062. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  52063. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  52064. - fi
  52065. - fi
  52066. - fi
  52067. + newargz = XMALLOC (char *, argc + 1);
  52068. + tmp_pathspec = find_executable (argv[0]);
  52069. + if (tmp_pathspec == NULL)
  52070. + lt_fatal ("Couldn't find %s", argv[0]);
  52071. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  52072. + tmp_pathspec));
  52073. +
  52074. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  52075. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  52076. + actual_cwrapper_path));
  52077. + XFREE (tmp_pathspec);
  52078. +
  52079. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  52080. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  52081. +
  52082. + /* wrapper name transforms */
  52083. + strendzap (actual_cwrapper_name, ".exe");
  52084. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  52085. + XFREE (actual_cwrapper_name);
  52086. + actual_cwrapper_name = tmp_pathspec;
  52087. + tmp_pathspec = 0;
  52088. +
  52089. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  52090. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  52091. + strendzap (target_name, ".exe");
  52092. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  52093. + XFREE (target_name);
  52094. + target_name = tmp_pathspec;
  52095. + tmp_pathspec = 0;
  52096. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  52097. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  52098. - fi
  52099. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  52100. + target_name));
  52101. +EOF
  52102. - tmp_deplibs=
  52103. - for test_deplib in $deplibs; do
  52104. - case " $convenience " in
  52105. - *" $test_deplib "*) ;;
  52106. - *)
  52107. - tmp_deplibs="$tmp_deplibs $test_deplib"
  52108. - ;;
  52109. - esac
  52110. - done
  52111. - deplibs="$tmp_deplibs"
  52112. + cat <<EOF
  52113. + newargz[0] =
  52114. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  52115. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  52116. + strcpy (newargz[0], actual_cwrapper_path);
  52117. + strcat (newargz[0], "$objdir");
  52118. + strcat (newargz[0], "/");
  52119. +EOF
  52120. - if test -n "$convenience"; then
  52121. - if test -n "$whole_archive_flag_spec"; then
  52122. - save_libobjs=$libobjs
  52123. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  52124. - else
  52125. - gentop="$output_objdir/${outputname}x"
  52126. - generated="$generated $gentop"
  52127. + cat <<"EOF"
  52128. + /* stop here, and copy so we don't have to do this twice */
  52129. + tmp_pathspec = xstrdup (newargz[0]);
  52130. +
  52131. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  52132. + strcat (newargz[0], actual_cwrapper_name);
  52133. +
  52134. + /* DO want the lt- prefix here if it exists, so use target_name */
  52135. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  52136. + XFREE (tmp_pathspec);
  52137. + tmp_pathspec = NULL;
  52138. +EOF
  52139. - func_extract_archives $gentop $convenience
  52140. - libobjs="$libobjs $func_extract_archives_result"
  52141. - fi
  52142. - fi
  52143. -
  52144. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  52145. - eval flag=\"$thread_safe_flag_spec\"
  52146. - linker_flags="$linker_flags $flag"
  52147. - fi
  52148. + case $host_os in
  52149. + mingw*)
  52150. + cat <<"EOF"
  52151. + {
  52152. + char* p;
  52153. + while ((p = strchr (newargz[0], '\\')) != NULL)
  52154. + {
  52155. + *p = '/';
  52156. + }
  52157. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  52158. + {
  52159. + *p = '/';
  52160. + }
  52161. + }
  52162. +EOF
  52163. + ;;
  52164. + esac
  52165. - # Make a backup of the uninstalled library when relinking
  52166. - if test "$mode" = relink; then
  52167. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  52168. - fi
  52169. + cat <<"EOF"
  52170. + XFREE (target_name);
  52171. + XFREE (actual_cwrapper_path);
  52172. + XFREE (actual_cwrapper_name);
  52173. +
  52174. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  52175. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  52176. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  52177. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  52178. - # Do each of the archive commands.
  52179. - if test "$module" = yes && test -n "$module_cmds" ; then
  52180. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  52181. - eval test_cmds=\"$module_expsym_cmds\"
  52182. - cmds=$module_expsym_cmds
  52183. - else
  52184. - eval test_cmds=\"$module_cmds\"
  52185. - cmds=$module_cmds
  52186. - fi
  52187. - else
  52188. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  52189. - eval test_cmds=\"$archive_expsym_cmds\"
  52190. - cmds=$archive_expsym_cmds
  52191. - else
  52192. - eval test_cmds=\"$archive_cmds\"
  52193. - cmds=$archive_cmds
  52194. - fi
  52195. - fi
  52196. + newargc=0;
  52197. + for (i = 1; i < argc; i++)
  52198. + {
  52199. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  52200. + {
  52201. + if (argv[i][env_set_opt_len] == '=')
  52202. + {
  52203. + const char *p = argv[i] + env_set_opt_len + 1;
  52204. + lt_opt_process_env_set (p);
  52205. + }
  52206. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  52207. + {
  52208. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  52209. + }
  52210. + else
  52211. + lt_fatal ("%s missing required argument", env_set_opt);
  52212. + continue;
  52213. + }
  52214. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  52215. + {
  52216. + if (argv[i][env_prepend_opt_len] == '=')
  52217. + {
  52218. + const char *p = argv[i] + env_prepend_opt_len + 1;
  52219. + lt_opt_process_env_prepend (p);
  52220. + }
  52221. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  52222. + {
  52223. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  52224. + }
  52225. + else
  52226. + lt_fatal ("%s missing required argument", env_prepend_opt);
  52227. + continue;
  52228. + }
  52229. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  52230. + {
  52231. + if (argv[i][env_append_opt_len] == '=')
  52232. + {
  52233. + const char *p = argv[i] + env_append_opt_len + 1;
  52234. + lt_opt_process_env_append (p);
  52235. + }
  52236. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  52237. + {
  52238. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  52239. + }
  52240. + else
  52241. + lt_fatal ("%s missing required argument", env_append_opt);
  52242. + continue;
  52243. + }
  52244. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  52245. + {
  52246. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  52247. + namespace, but it is not one of the ones we know about and
  52248. + have already dealt with, above (inluding dump-script), then
  52249. + report an error. Otherwise, targets might begin to believe
  52250. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  52251. + namespace. The first time any user complains about this, we'll
  52252. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  52253. + or a configure.ac-settable value.
  52254. + */
  52255. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  52256. + ltwrapper_option_prefix, argv[i]);
  52257. + }
  52258. + /* otherwise ... */
  52259. + newargz[++newargc] = xstrdup (argv[i]);
  52260. + }
  52261. + newargz[++newargc] = NULL;
  52262. - if test "X$skipped_export" != "X:" &&
  52263. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  52264. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52265. - :
  52266. - else
  52267. - # The command line is too long to link in one step, link piecewise.
  52268. - $echo "creating reloadable object files..."
  52269. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  52270. + for (i = 0; i < newargc; i++)
  52271. + {
  52272. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  52273. + }
  52274. - # Save the value of $output and $libobjs because we want to
  52275. - # use them later. If we have whole_archive_flag_spec, we
  52276. - # want to use save_libobjs as it was before
  52277. - # whole_archive_flag_spec was expanded, because we can't
  52278. - # assume the linker understands whole_archive_flag_spec.
  52279. - # This may have to be revisited, in case too many
  52280. - # convenience libraries get linked in and end up exceeding
  52281. - # the spec.
  52282. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  52283. - save_libobjs=$libobjs
  52284. - fi
  52285. - save_output=$output
  52286. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  52287. +EOF
  52288. - # Clear the reloadable object creation command queue and
  52289. - # initialize k to one.
  52290. - test_cmds=
  52291. - concat_cmds=
  52292. - objlist=
  52293. - delfiles=
  52294. - last_robj=
  52295. - k=1
  52296. - output=$output_objdir/$output_la-${k}.$objext
  52297. - # Loop over the list of objects to be linked.
  52298. - for obj in $save_libobjs
  52299. - do
  52300. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  52301. - if test "X$objlist" = X ||
  52302. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  52303. - test "$len" -le "$max_cmd_len"; }; then
  52304. - objlist="$objlist $obj"
  52305. - else
  52306. - # The command $test_cmds is almost too long, add a
  52307. - # command to the queue.
  52308. - if test "$k" -eq 1 ; then
  52309. - # The first file doesn't have a previous command to add.
  52310. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  52311. - else
  52312. - # All subsequent reloadable object files will link in
  52313. - # the last one created.
  52314. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  52315. - fi
  52316. - last_robj=$output_objdir/$output_la-${k}.$objext
  52317. - k=`expr $k + 1`
  52318. - output=$output_objdir/$output_la-${k}.$objext
  52319. - objlist=$obj
  52320. - len=1
  52321. - fi
  52322. - done
  52323. - # Handle the remaining objects by creating one last
  52324. - # reloadable object file. All subsequent reloadable object
  52325. - # files will link in the last one created.
  52326. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  52327. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  52328. + case $host_os in
  52329. + mingw*)
  52330. + cat <<"EOF"
  52331. + /* execv doesn't actually work on mingw as expected on unix */
  52332. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  52333. + if (rval == -1)
  52334. + {
  52335. + /* failed to start process */
  52336. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  52337. + return 127;
  52338. + }
  52339. + return rval;
  52340. +EOF
  52341. + ;;
  52342. + *)
  52343. + cat <<"EOF"
  52344. + execv (lt_argv_zero, newargz);
  52345. + return rval; /* =127, but avoids unused variable warning */
  52346. +EOF
  52347. + ;;
  52348. + esac
  52349. - if ${skipped_export-false}; then
  52350. - $show "generating symbol list for \`$libname.la'"
  52351. - export_symbols="$output_objdir/$libname.exp"
  52352. - $run $rm $export_symbols
  52353. - libobjs=$output
  52354. - # Append the command to create the export file.
  52355. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  52356. - fi
  52357. -
  52358. - # Set up a command to remove the reloadable object files
  52359. - # after they are used.
  52360. - i=0
  52361. - while test "$i" -lt "$k"
  52362. - do
  52363. - i=`expr $i + 1`
  52364. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  52365. - done
  52366. + cat <<"EOF"
  52367. +}
  52368. - $echo "creating a temporary reloadable object file: $output"
  52369. +void *
  52370. +xmalloc (size_t num)
  52371. +{
  52372. + void *p = (void *) malloc (num);
  52373. + if (!p)
  52374. + lt_fatal ("Memory exhausted");
  52375. - # Loop through the commands generated above and execute them.
  52376. - save_ifs="$IFS"; IFS='~'
  52377. - for cmd in $concat_cmds; do
  52378. - IFS="$save_ifs"
  52379. - $show "$cmd"
  52380. - $run eval "$cmd" || exit $?
  52381. - done
  52382. - IFS="$save_ifs"
  52383. + return p;
  52384. +}
  52385. - libobjs=$output
  52386. - # Restore the value of output.
  52387. - output=$save_output
  52388. +char *
  52389. +xstrdup (const char *string)
  52390. +{
  52391. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  52392. + string) : NULL;
  52393. +}
  52394. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  52395. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  52396. - fi
  52397. - # Expand the library linking commands again to reset the
  52398. - # value of $libobjs for piecewise linking.
  52399. +const char *
  52400. +base_name (const char *name)
  52401. +{
  52402. + const char *base;
  52403. - # Do each of the archive commands.
  52404. - if test "$module" = yes && test -n "$module_cmds" ; then
  52405. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  52406. - cmds=$module_expsym_cmds
  52407. - else
  52408. - cmds=$module_cmds
  52409. - fi
  52410. - else
  52411. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  52412. - cmds=$archive_expsym_cmds
  52413. - else
  52414. - cmds=$archive_cmds
  52415. - fi
  52416. - fi
  52417. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52418. + /* Skip over the disk name in MSDOS pathnames. */
  52419. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  52420. + name += 2;
  52421. +#endif
  52422. - # Append the command to remove the reloadable object files
  52423. - # to the just-reset $cmds.
  52424. - eval cmds=\"\$cmds~\$rm $delfiles\"
  52425. - fi
  52426. - save_ifs="$IFS"; IFS='~'
  52427. - for cmd in $cmds; do
  52428. - IFS="$save_ifs"
  52429. - eval cmd=\"$cmd\"
  52430. - $show "$cmd"
  52431. - $run eval "$cmd" || {
  52432. - lt_exit=$?
  52433. + for (base = name; *name; name++)
  52434. + if (IS_DIR_SEPARATOR (*name))
  52435. + base = name + 1;
  52436. + return base;
  52437. +}
  52438. - # Restore the uninstalled library and exit
  52439. - if test "$mode" = relink; then
  52440. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  52441. - fi
  52442. +int
  52443. +check_executable (const char *path)
  52444. +{
  52445. + struct stat st;
  52446. - exit $lt_exit
  52447. - }
  52448. - done
  52449. - IFS="$save_ifs"
  52450. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  52451. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  52452. + if ((!path) || (!*path))
  52453. + return 0;
  52454. - # Restore the uninstalled library and exit
  52455. - if test "$mode" = relink; then
  52456. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  52457. + if ((stat (path, &st) >= 0)
  52458. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  52459. + return 1;
  52460. + else
  52461. + return 0;
  52462. +}
  52463. - if test -n "$convenience"; then
  52464. - if test -z "$whole_archive_flag_spec"; then
  52465. - $show "${rm}r $gentop"
  52466. - $run ${rm}r "$gentop"
  52467. - fi
  52468. - fi
  52469. +int
  52470. +make_executable (const char *path)
  52471. +{
  52472. + int rval = 0;
  52473. + struct stat st;
  52474. - exit $EXIT_SUCCESS
  52475. - fi
  52476. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  52477. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  52478. + if ((!path) || (!*path))
  52479. + return 0;
  52480. - # Create links to the real library.
  52481. - for linkname in $linknames; do
  52482. - if test "$realname" != "$linkname"; then
  52483. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  52484. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  52485. - fi
  52486. - done
  52487. + if (stat (path, &st) >= 0)
  52488. + {
  52489. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  52490. + }
  52491. + return rval;
  52492. +}
  52493. - # If -module or -export-dynamic was specified, set the dlname.
  52494. - if test "$module" = yes || test "$export_dynamic" = yes; then
  52495. - # On all known operating systems, these are identical.
  52496. - dlname="$soname"
  52497. - fi
  52498. - fi
  52499. - ;;
  52500. +/* Searches for the full path of the wrapper. Returns
  52501. + newly allocated full path name if found, NULL otherwise
  52502. + Does not chase symlinks, even on platforms that support them.
  52503. +*/
  52504. +char *
  52505. +find_executable (const char *wrapper)
  52506. +{
  52507. + int has_slash = 0;
  52508. + const char *p;
  52509. + const char *p_next;
  52510. + /* static buffer for getcwd */
  52511. + char tmp[LT_PATHMAX + 1];
  52512. + int tmp_len;
  52513. + char *concat_name;
  52514. - obj)
  52515. - if test -n "$deplibs"; then
  52516. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  52517. - fi
  52518. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  52519. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  52520. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  52521. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  52522. - fi
  52523. + if ((wrapper == NULL) || (*wrapper == '\0'))
  52524. + return NULL;
  52525. - if test -n "$rpath"; then
  52526. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  52527. - fi
  52528. + /* Absolute path? */
  52529. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52530. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  52531. + {
  52532. + concat_name = xstrdup (wrapper);
  52533. + if (check_executable (concat_name))
  52534. + return concat_name;
  52535. + XFREE (concat_name);
  52536. + }
  52537. + else
  52538. + {
  52539. +#endif
  52540. + if (IS_DIR_SEPARATOR (wrapper[0]))
  52541. + {
  52542. + concat_name = xstrdup (wrapper);
  52543. + if (check_executable (concat_name))
  52544. + return concat_name;
  52545. + XFREE (concat_name);
  52546. + }
  52547. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52548. + }
  52549. +#endif
  52550. - if test -n "$xrpath"; then
  52551. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  52552. - fi
  52553. + for (p = wrapper; *p; p++)
  52554. + if (*p == '/')
  52555. + {
  52556. + has_slash = 1;
  52557. + break;
  52558. + }
  52559. + if (!has_slash)
  52560. + {
  52561. + /* no slashes; search PATH */
  52562. + const char *path = getenv ("PATH");
  52563. + if (path != NULL)
  52564. + {
  52565. + for (p = path; *p; p = p_next)
  52566. + {
  52567. + const char *q;
  52568. + size_t p_len;
  52569. + for (q = p; *q; q++)
  52570. + if (IS_PATH_SEPARATOR (*q))
  52571. + break;
  52572. + p_len = q - p;
  52573. + p_next = (*q == '\0' ? q : q + 1);
  52574. + if (p_len == 0)
  52575. + {
  52576. + /* empty path: current directory */
  52577. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  52578. + lt_fatal ("getcwd failed");
  52579. + tmp_len = strlen (tmp);
  52580. + concat_name =
  52581. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  52582. + memcpy (concat_name, tmp, tmp_len);
  52583. + concat_name[tmp_len] = '/';
  52584. + strcpy (concat_name + tmp_len + 1, wrapper);
  52585. + }
  52586. + else
  52587. + {
  52588. + concat_name =
  52589. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  52590. + memcpy (concat_name, p, p_len);
  52591. + concat_name[p_len] = '/';
  52592. + strcpy (concat_name + p_len + 1, wrapper);
  52593. + }
  52594. + if (check_executable (concat_name))
  52595. + return concat_name;
  52596. + XFREE (concat_name);
  52597. + }
  52598. + }
  52599. + /* not found in PATH; assume curdir */
  52600. + }
  52601. + /* Relative path | not found in path: prepend cwd */
  52602. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  52603. + lt_fatal ("getcwd failed");
  52604. + tmp_len = strlen (tmp);
  52605. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  52606. + memcpy (concat_name, tmp, tmp_len);
  52607. + concat_name[tmp_len] = '/';
  52608. + strcpy (concat_name + tmp_len + 1, wrapper);
  52609. - if test -n "$vinfo"; then
  52610. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  52611. - fi
  52612. + if (check_executable (concat_name))
  52613. + return concat_name;
  52614. + XFREE (concat_name);
  52615. + return NULL;
  52616. +}
  52617. - if test -n "$release"; then
  52618. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  52619. - fi
  52620. +char *
  52621. +chase_symlinks (const char *pathspec)
  52622. +{
  52623. +#ifndef S_ISLNK
  52624. + return xstrdup (pathspec);
  52625. +#else
  52626. + char buf[LT_PATHMAX];
  52627. + struct stat s;
  52628. + char *tmp_pathspec = xstrdup (pathspec);
  52629. + char *p;
  52630. + int has_symlinks = 0;
  52631. + while (strlen (tmp_pathspec) && !has_symlinks)
  52632. + {
  52633. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  52634. + tmp_pathspec));
  52635. + if (lstat (tmp_pathspec, &s) == 0)
  52636. + {
  52637. + if (S_ISLNK (s.st_mode) != 0)
  52638. + {
  52639. + has_symlinks = 1;
  52640. + break;
  52641. + }
  52642. - case $output in
  52643. - *.lo)
  52644. - if test -n "$objs$old_deplibs"; then
  52645. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  52646. - exit $EXIT_FAILURE
  52647. - fi
  52648. - libobj="$output"
  52649. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  52650. - ;;
  52651. - *)
  52652. - libobj=
  52653. - obj="$output"
  52654. - ;;
  52655. - esac
  52656. + /* search backwards for last DIR_SEPARATOR */
  52657. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  52658. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  52659. + p--;
  52660. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  52661. + {
  52662. + /* no more DIR_SEPARATORS left */
  52663. + break;
  52664. + }
  52665. + *p = '\0';
  52666. + }
  52667. + else
  52668. + {
  52669. + char *errstr = strerror (errno);
  52670. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  52671. + }
  52672. + }
  52673. + XFREE (tmp_pathspec);
  52674. - # Delete the old objects.
  52675. - $run $rm $obj $libobj
  52676. + if (!has_symlinks)
  52677. + {
  52678. + return xstrdup (pathspec);
  52679. + }
  52680. - # Objects from convenience libraries. This assumes
  52681. - # single-version convenience libraries. Whenever we create
  52682. - # different ones for PIC/non-PIC, this we'll have to duplicate
  52683. - # the extraction.
  52684. - reload_conv_objs=
  52685. - gentop=
  52686. - # reload_cmds runs $LD directly, so let us get rid of
  52687. - # -Wl from whole_archive_flag_spec
  52688. - wl=
  52689. + tmp_pathspec = realpath (pathspec, buf);
  52690. + if (tmp_pathspec == 0)
  52691. + {
  52692. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  52693. + }
  52694. + return xstrdup (tmp_pathspec);
  52695. +#endif
  52696. +}
  52697. - if test -n "$convenience"; then
  52698. - if test -n "$whole_archive_flag_spec"; then
  52699. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  52700. - else
  52701. - gentop="$output_objdir/${obj}x"
  52702. - generated="$generated $gentop"
  52703. +char *
  52704. +strendzap (char *str, const char *pat)
  52705. +{
  52706. + size_t len, patlen;
  52707. - func_extract_archives $gentop $convenience
  52708. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  52709. - fi
  52710. - fi
  52711. + assert (str != NULL);
  52712. + assert (pat != NULL);
  52713. - # Create the old-style object.
  52714. - 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
  52715. + len = strlen (str);
  52716. + patlen = strlen (pat);
  52717. - output="$obj"
  52718. - cmds=$reload_cmds
  52719. - save_ifs="$IFS"; IFS='~'
  52720. - for cmd in $cmds; do
  52721. - IFS="$save_ifs"
  52722. - eval cmd=\"$cmd\"
  52723. - $show "$cmd"
  52724. - $run eval "$cmd" || exit $?
  52725. - done
  52726. - IFS="$save_ifs"
  52727. + if (patlen <= len)
  52728. + {
  52729. + str += len - patlen;
  52730. + if (strcmp (str, pat) == 0)
  52731. + *str = '\0';
  52732. + }
  52733. + return str;
  52734. +}
  52735. - # Exit if we aren't doing a library object file.
  52736. - if test -z "$libobj"; then
  52737. - if test -n "$gentop"; then
  52738. - $show "${rm}r $gentop"
  52739. - $run ${rm}r $gentop
  52740. - fi
  52741. +static void
  52742. +lt_error_core (int exit_status, const char *mode,
  52743. + const char *message, va_list ap)
  52744. +{
  52745. + fprintf (stderr, "%s: %s: ", program_name, mode);
  52746. + vfprintf (stderr, message, ap);
  52747. + fprintf (stderr, ".\n");
  52748. - exit $EXIT_SUCCESS
  52749. - fi
  52750. + if (exit_status >= 0)
  52751. + exit (exit_status);
  52752. +}
  52753. - if test "$build_libtool_libs" != yes; then
  52754. - if test -n "$gentop"; then
  52755. - $show "${rm}r $gentop"
  52756. - $run ${rm}r $gentop
  52757. - fi
  52758. +void
  52759. +lt_fatal (const char *message, ...)
  52760. +{
  52761. + va_list ap;
  52762. + va_start (ap, message);
  52763. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  52764. + va_end (ap);
  52765. +}
  52766. - # Create an invalid libtool object if no PIC, so that we don't
  52767. - # accidentally link it into a program.
  52768. - # $show "echo timestamp > $libobj"
  52769. - # $run eval "echo timestamp > $libobj" || exit $?
  52770. - exit $EXIT_SUCCESS
  52771. - fi
  52772. +void
  52773. +lt_setenv (const char *name, const char *value)
  52774. +{
  52775. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  52776. + (name ? name : "<NULL>"),
  52777. + (value ? value : "<NULL>")));
  52778. + {
  52779. +#ifdef HAVE_SETENV
  52780. + /* always make a copy, for consistency with !HAVE_SETENV */
  52781. + char *str = xstrdup (value);
  52782. + setenv (name, str, 1);
  52783. +#else
  52784. + int len = strlen (name) + 1 + strlen (value) + 1;
  52785. + char *str = XMALLOC (char, len);
  52786. + sprintf (str, "%s=%s", name, value);
  52787. + if (putenv (str) != EXIT_SUCCESS)
  52788. + {
  52789. + XFREE (str);
  52790. + }
  52791. +#endif
  52792. + }
  52793. +}
  52794. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  52795. - # Only do commands if we really have different PIC objects.
  52796. - reload_objs="$libobjs $reload_conv_objs"
  52797. - output="$libobj"
  52798. - cmds=$reload_cmds
  52799. - save_ifs="$IFS"; IFS='~'
  52800. - for cmd in $cmds; do
  52801. - IFS="$save_ifs"
  52802. - eval cmd=\"$cmd\"
  52803. - $show "$cmd"
  52804. - $run eval "$cmd" || exit $?
  52805. - done
  52806. - IFS="$save_ifs"
  52807. - fi
  52808. +char *
  52809. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  52810. +{
  52811. + char *new_value;
  52812. + if (orig_value && *orig_value)
  52813. + {
  52814. + int orig_value_len = strlen (orig_value);
  52815. + int add_len = strlen (add);
  52816. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  52817. + if (to_end)
  52818. + {
  52819. + strcpy (new_value, orig_value);
  52820. + strcpy (new_value + orig_value_len, add);
  52821. + }
  52822. + else
  52823. + {
  52824. + strcpy (new_value, add);
  52825. + strcpy (new_value + add_len, orig_value);
  52826. + }
  52827. + }
  52828. + else
  52829. + {
  52830. + new_value = xstrdup (add);
  52831. + }
  52832. + return new_value;
  52833. +}
  52834. - if test -n "$gentop"; then
  52835. - $show "${rm}r $gentop"
  52836. - $run ${rm}r $gentop
  52837. - fi
  52838. +int
  52839. +lt_split_name_value (const char *arg, char** name, char** value)
  52840. +{
  52841. + const char *p;
  52842. + int len;
  52843. + if (!arg || !*arg)
  52844. + return 1;
  52845. - exit $EXIT_SUCCESS
  52846. - ;;
  52847. + p = strchr (arg, (int)'=');
  52848. - prog)
  52849. - case $host in
  52850. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  52851. - esac
  52852. - if test -n "$vinfo"; then
  52853. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  52854. - fi
  52855. + if (!p)
  52856. + return 1;
  52857. - if test -n "$release"; then
  52858. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  52859. - fi
  52860. + *value = xstrdup (++p);
  52861. - if test "$preload" = yes; then
  52862. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  52863. - test "$dlopen_self_static" = unknown; then
  52864. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  52865. - fi
  52866. - fi
  52867. + len = strlen (arg) - strlen (*value);
  52868. + *name = XMALLOC (char, len);
  52869. + strncpy (*name, arg, len-1);
  52870. + (*name)[len - 1] = '\0';
  52871. - case $host in
  52872. - *-*-rhapsody* | *-*-darwin1.[012])
  52873. - # On Rhapsody replace the C library is the System framework
  52874. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52875. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52876. - ;;
  52877. - esac
  52878. + return 0;
  52879. +}
  52880. - case $host in
  52881. - *darwin*)
  52882. - # Don't allow lazy linking, it breaks C++ global constructors
  52883. - if test "$tagname" = CXX ; then
  52884. - compile_command="$compile_command ${wl}-bind_at_load"
  52885. - finalize_command="$finalize_command ${wl}-bind_at_load"
  52886. - fi
  52887. - ;;
  52888. - esac
  52889. +void
  52890. +lt_opt_process_env_set (const char *arg)
  52891. +{
  52892. + char *name = NULL;
  52893. + char *value = NULL;
  52894. + if (lt_split_name_value (arg, &name, &value) != 0)
  52895. + {
  52896. + XFREE (name);
  52897. + XFREE (value);
  52898. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  52899. + }
  52900. - # move library search paths that coincide with paths to not yet
  52901. - # installed libraries to the beginning of the library search list
  52902. - new_libs=
  52903. - for path in $notinst_path; do
  52904. - case " $new_libs " in
  52905. - *" -L$path/$objdir "*) ;;
  52906. - *)
  52907. - case " $compile_deplibs " in
  52908. - *" -L$path/$objdir "*)
  52909. - new_libs="$new_libs -L$path/$objdir" ;;
  52910. - esac
  52911. - ;;
  52912. - esac
  52913. - done
  52914. - for deplib in $compile_deplibs; do
  52915. - case $deplib in
  52916. - -L*)
  52917. - case " $new_libs " in
  52918. - *" $deplib "*) ;;
  52919. - *) new_libs="$new_libs $deplib" ;;
  52920. - esac
  52921. - ;;
  52922. - *) new_libs="$new_libs $deplib" ;;
  52923. - esac
  52924. - done
  52925. - compile_deplibs="$new_libs"
  52926. -
  52927. + lt_setenv (name, value);
  52928. + XFREE (name);
  52929. + XFREE (value);
  52930. +}
  52931. - compile_command="$compile_command $compile_deplibs"
  52932. - finalize_command="$finalize_command $finalize_deplibs"
  52933. +void
  52934. +lt_opt_process_env_prepend (const char *arg)
  52935. +{
  52936. + char *name = NULL;
  52937. + char *value = NULL;
  52938. + char *new_value = NULL;
  52939. - if test -n "$rpath$xrpath"; then
  52940. - # If the user specified any rpath flags, then add them.
  52941. - for libdir in $rpath $xrpath; do
  52942. - # This is the magic to use -rpath.
  52943. - case "$finalize_rpath " in
  52944. - *" $libdir "*) ;;
  52945. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  52946. - esac
  52947. - done
  52948. - fi
  52949. + if (lt_split_name_value (arg, &name, &value) != 0)
  52950. + {
  52951. + XFREE (name);
  52952. + XFREE (value);
  52953. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  52954. + }
  52955. - # Now hardcode the library paths
  52956. - rpath=
  52957. - hardcode_libdirs=
  52958. - for libdir in $compile_rpath $finalize_rpath; do
  52959. - if test -n "$hardcode_libdir_flag_spec"; then
  52960. - if test -n "$hardcode_libdir_separator"; then
  52961. - if test -z "$hardcode_libdirs"; then
  52962. - hardcode_libdirs="$libdir"
  52963. - else
  52964. - # Just accumulate the unique libdirs.
  52965. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52966. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52967. - ;;
  52968. - *)
  52969. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52970. - ;;
  52971. - esac
  52972. - fi
  52973. - else
  52974. - eval flag=\"$hardcode_libdir_flag_spec\"
  52975. - rpath="$rpath $flag"
  52976. - fi
  52977. - elif test -n "$runpath_var"; then
  52978. - case "$perm_rpath " in
  52979. - *" $libdir "*) ;;
  52980. - *) perm_rpath="$perm_rpath $libdir" ;;
  52981. - esac
  52982. - fi
  52983. - case $host in
  52984. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  52985. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  52986. - case :$dllsearchpath: in
  52987. - *":$libdir:"*) ;;
  52988. - *) dllsearchpath="$dllsearchpath:$libdir";;
  52989. - esac
  52990. - case :$dllsearchpath: in
  52991. - *":$testbindir:"*) ;;
  52992. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  52993. - esac
  52994. - ;;
  52995. - esac
  52996. - done
  52997. - # Substitute the hardcoded libdirs into the rpath.
  52998. - if test -n "$hardcode_libdir_separator" &&
  52999. - test -n "$hardcode_libdirs"; then
  53000. - libdir="$hardcode_libdirs"
  53001. - eval rpath=\" $hardcode_libdir_flag_spec\"
  53002. - fi
  53003. - compile_rpath="$rpath"
  53004. + new_value = lt_extend_str (getenv (name), value, 0);
  53005. + lt_setenv (name, new_value);
  53006. + XFREE (new_value);
  53007. + XFREE (name);
  53008. + XFREE (value);
  53009. +}
  53010. - rpath=
  53011. - hardcode_libdirs=
  53012. - for libdir in $finalize_rpath; do
  53013. - if test -n "$hardcode_libdir_flag_spec"; then
  53014. - if test -n "$hardcode_libdir_separator"; then
  53015. - if test -z "$hardcode_libdirs"; then
  53016. - hardcode_libdirs="$libdir"
  53017. - else
  53018. - # Just accumulate the unique libdirs.
  53019. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53020. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53021. - ;;
  53022. - *)
  53023. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53024. - ;;
  53025. - esac
  53026. - fi
  53027. - else
  53028. - eval flag=\"$hardcode_libdir_flag_spec\"
  53029. - rpath="$rpath $flag"
  53030. - fi
  53031. - elif test -n "$runpath_var"; then
  53032. - case "$finalize_perm_rpath " in
  53033. - *" $libdir "*) ;;
  53034. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  53035. - esac
  53036. - fi
  53037. - done
  53038. - # Substitute the hardcoded libdirs into the rpath.
  53039. - if test -n "$hardcode_libdir_separator" &&
  53040. - test -n "$hardcode_libdirs"; then
  53041. - libdir="$hardcode_libdirs"
  53042. - eval rpath=\" $hardcode_libdir_flag_spec\"
  53043. - fi
  53044. - finalize_rpath="$rpath"
  53045. +void
  53046. +lt_opt_process_env_append (const char *arg)
  53047. +{
  53048. + char *name = NULL;
  53049. + char *value = NULL;
  53050. + char *new_value = NULL;
  53051. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  53052. - # Transform all the library objects into standard objects.
  53053. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53054. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53055. - fi
  53056. + if (lt_split_name_value (arg, &name, &value) != 0)
  53057. + {
  53058. + XFREE (name);
  53059. + XFREE (value);
  53060. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  53061. + }
  53062. - dlsyms=
  53063. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53064. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  53065. - dlsyms="${outputname}S.c"
  53066. - else
  53067. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  53068. - fi
  53069. - fi
  53070. + new_value = lt_extend_str (getenv (name), value, 1);
  53071. + lt_setenv (name, new_value);
  53072. + XFREE (new_value);
  53073. + XFREE (name);
  53074. + XFREE (value);
  53075. +}
  53076. - if test -n "$dlsyms"; then
  53077. - case $dlsyms in
  53078. - "") ;;
  53079. - *.c)
  53080. - # Discover the nlist of each of the dlfiles.
  53081. - nlist="$output_objdir/${outputname}.nm"
  53082. +void
  53083. +lt_update_exe_path (const char *name, const char *value)
  53084. +{
  53085. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  53086. + (name ? name : "<NULL>"),
  53087. + (value ? value : "<NULL>")));
  53088. - $show "$rm $nlist ${nlist}S ${nlist}T"
  53089. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  53090. + if (name && *name && value && *value)
  53091. + {
  53092. + char *new_value = lt_extend_str (getenv (name), value, 0);
  53093. + /* some systems can't cope with a ':'-terminated path #' */
  53094. + int len = strlen (new_value);
  53095. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  53096. + {
  53097. + new_value[len-1] = '\0';
  53098. + }
  53099. + lt_setenv (name, new_value);
  53100. + XFREE (new_value);
  53101. + }
  53102. +}
  53103. - # Parse the name list into a source file.
  53104. - $show "creating $output_objdir/$dlsyms"
  53105. +void
  53106. +lt_update_lib_path (const char *name, const char *value)
  53107. +{
  53108. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  53109. + (name ? name : "<NULL>"),
  53110. + (value ? value : "<NULL>")));
  53111. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  53112. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  53113. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  53114. + if (name && *name && value && *value)
  53115. + {
  53116. + char *new_value = lt_extend_str (getenv (name), value, 0);
  53117. + lt_setenv (name, new_value);
  53118. + XFREE (new_value);
  53119. + }
  53120. +}
  53121. -#ifdef __cplusplus
  53122. -extern \"C\" {
  53123. -#endif
  53124. -/* Prevent the only kind of declaration conflicts we can make. */
  53125. -#define lt_preloaded_symbols some_other_symbol
  53126. +EOF
  53127. +}
  53128. +# end: func_emit_cwrapperexe_src
  53129. -/* External symbol declarations for the compiler. */\
  53130. -"
  53131. +# func_mode_link arg...
  53132. +func_mode_link ()
  53133. +{
  53134. + $opt_debug
  53135. + case $host in
  53136. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  53137. + # It is impossible to link a dll without this setting, and
  53138. + # we shouldn't force the makefile maintainer to figure out
  53139. + # which system we are compiling for in order to pass an extra
  53140. + # flag for every libtool invocation.
  53141. + # allow_undefined=no
  53142. - if test "$dlself" = yes; then
  53143. - $show "generating symbol list for \`$output'"
  53144. + # FIXME: Unfortunately, there are problems with the above when trying
  53145. + # to make a dll which has undefined symbols, in which case not
  53146. + # even a static library is built. For now, we need to specify
  53147. + # -no-undefined on the libtool link line when we can be certain
  53148. + # that all symbols are satisfied, otherwise we get a static library.
  53149. + allow_undefined=yes
  53150. + ;;
  53151. + *)
  53152. + allow_undefined=yes
  53153. + ;;
  53154. + esac
  53155. + libtool_args=$nonopt
  53156. + base_compile="$nonopt $@"
  53157. + compile_command=$nonopt
  53158. + finalize_command=$nonopt
  53159. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  53160. + compile_rpath=
  53161. + finalize_rpath=
  53162. + compile_shlibpath=
  53163. + finalize_shlibpath=
  53164. + convenience=
  53165. + old_convenience=
  53166. + deplibs=
  53167. + old_deplibs=
  53168. + compiler_flags=
  53169. + linker_flags=
  53170. + dllsearchpath=
  53171. + lib_search_path=`pwd`
  53172. + inst_prefix_dir=
  53173. + new_inherited_linker_flags=
  53174. - # Add our own program objects to the symbol list.
  53175. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53176. - for arg in $progfiles; do
  53177. - $show "extracting global C symbols from \`$arg'"
  53178. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  53179. - done
  53180. + avoid_version=no
  53181. + dlfiles=
  53182. + dlprefiles=
  53183. + dlself=no
  53184. + export_dynamic=no
  53185. + export_symbols=
  53186. + export_symbols_regex=
  53187. + generated=
  53188. + libobjs=
  53189. + ltlibs=
  53190. + module=no
  53191. + no_install=no
  53192. + objs=
  53193. + non_pic_objects=
  53194. + precious_files_regex=
  53195. + prefer_static_libs=no
  53196. + preload=no
  53197. + prev=
  53198. + prevarg=
  53199. + release=
  53200. + rpath=
  53201. + xrpath=
  53202. + perm_rpath=
  53203. + temp_rpath=
  53204. + thread_safe=no
  53205. + vinfo=
  53206. + vinfo_number=no
  53207. + weak_libs=
  53208. + single_module="${wl}-single_module"
  53209. + func_infer_tag $base_compile
  53210. - if test -n "$exclude_expsyms"; then
  53211. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  53212. - $run eval '$mv "$nlist"T "$nlist"'
  53213. - fi
  53214. -
  53215. - if test -n "$export_symbols_regex"; then
  53216. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  53217. - $run eval '$mv "$nlist"T "$nlist"'
  53218. - fi
  53219. -
  53220. - # Prepare the list of exported symbols
  53221. - if test -z "$export_symbols"; then
  53222. - export_symbols="$output_objdir/$outputname.exp"
  53223. - $run $rm $export_symbols
  53224. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  53225. - case $host in
  53226. - *cygwin* | *mingw* )
  53227. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53228. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  53229. - ;;
  53230. - esac
  53231. - else
  53232. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  53233. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  53234. - $run eval 'mv "$nlist"T "$nlist"'
  53235. - case $host in
  53236. - *cygwin* | *mingw* )
  53237. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53238. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  53239. - ;;
  53240. - esac
  53241. - fi
  53242. + # We need to know -static, to get the right output filenames.
  53243. + for arg
  53244. + do
  53245. + case $arg in
  53246. + -shared)
  53247. + test "$build_libtool_libs" != yes && \
  53248. + func_fatal_configuration "can not build a shared library"
  53249. + build_old_libs=no
  53250. + break
  53251. + ;;
  53252. + -all-static | -static | -static-libtool-libs)
  53253. + case $arg in
  53254. + -all-static)
  53255. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  53256. + func_warning "complete static linking is impossible in this configuration"
  53257. fi
  53258. + if test -n "$link_static_flag"; then
  53259. + dlopen_self=$dlopen_self_static
  53260. + fi
  53261. + prefer_static_libs=yes
  53262. + ;;
  53263. + -static)
  53264. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  53265. + dlopen_self=$dlopen_self_static
  53266. + fi
  53267. + prefer_static_libs=built
  53268. + ;;
  53269. + -static-libtool-libs)
  53270. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  53271. + dlopen_self=$dlopen_self_static
  53272. + fi
  53273. + prefer_static_libs=yes
  53274. + ;;
  53275. + esac
  53276. + build_libtool_libs=no
  53277. + build_old_libs=yes
  53278. + break
  53279. + ;;
  53280. + esac
  53281. + done
  53282. - for arg in $dlprefiles; do
  53283. - $show "extracting global C symbols from \`$arg'"
  53284. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  53285. - $run eval '$echo ": $name " >> "$nlist"'
  53286. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  53287. - done
  53288. -
  53289. - if test -z "$run"; then
  53290. - # Make sure we have at least an empty file.
  53291. - test -f "$nlist" || : > "$nlist"
  53292. -
  53293. - if test -n "$exclude_expsyms"; then
  53294. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  53295. - $mv "$nlist"T "$nlist"
  53296. - fi
  53297. + # See if our shared archives depend on static archives.
  53298. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  53299. - # Try sorting and uniquifying the output.
  53300. - if grep -v "^: " < "$nlist" |
  53301. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  53302. - sort -k 3
  53303. - else
  53304. - sort +2
  53305. - fi |
  53306. - uniq > "$nlist"S; then
  53307. - :
  53308. + # Go through the arguments, transforming them on the way.
  53309. + while test "$#" -gt 0; do
  53310. + arg="$1"
  53311. + shift
  53312. + func_quote_for_eval "$arg"
  53313. + qarg=$func_quote_for_eval_unquoted_result
  53314. + func_append libtool_args " $func_quote_for_eval_result"
  53315. +
  53316. + # If the previous option needs an argument, assign it.
  53317. + if test -n "$prev"; then
  53318. + case $prev in
  53319. + output)
  53320. + func_append compile_command " @OUTPUT@"
  53321. + func_append finalize_command " @OUTPUT@"
  53322. + ;;
  53323. + esac
  53324. +
  53325. + case $prev in
  53326. + dlfiles|dlprefiles)
  53327. + if test "$preload" = no; then
  53328. + # Add the symbol object into the linking commands.
  53329. + func_append compile_command " @SYMFILE@"
  53330. + func_append finalize_command " @SYMFILE@"
  53331. + preload=yes
  53332. + fi
  53333. + case $arg in
  53334. + *.la | *.lo) ;; # We handle these cases below.
  53335. + force)
  53336. + if test "$dlself" = no; then
  53337. + dlself=needless
  53338. + export_dynamic=yes
  53339. + fi
  53340. + prev=
  53341. + continue
  53342. + ;;
  53343. + self)
  53344. + if test "$prev" = dlprefiles; then
  53345. + dlself=yes
  53346. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  53347. + dlself=yes
  53348. else
  53349. - grep -v "^: " < "$nlist" > "$nlist"S
  53350. + dlself=needless
  53351. + export_dynamic=yes
  53352. fi
  53353. -
  53354. - if test -f "$nlist"S; then
  53355. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  53356. + prev=
  53357. + continue
  53358. + ;;
  53359. + *)
  53360. + if test "$prev" = dlfiles; then
  53361. + dlfiles="$dlfiles $arg"
  53362. else
  53363. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  53364. + dlprefiles="$dlprefiles $arg"
  53365. fi
  53366. + prev=
  53367. + continue
  53368. + ;;
  53369. + esac
  53370. + ;;
  53371. + expsyms)
  53372. + export_symbols="$arg"
  53373. + test -f "$arg" \
  53374. + || func_fatal_error "symbol file \`$arg' does not exist"
  53375. + prev=
  53376. + continue
  53377. + ;;
  53378. + expsyms_regex)
  53379. + export_symbols_regex="$arg"
  53380. + prev=
  53381. + continue
  53382. + ;;
  53383. + framework)
  53384. + case $host in
  53385. + *-*-darwin*)
  53386. + case "$deplibs " in
  53387. + *" $qarg.ltframework "*) ;;
  53388. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  53389. + ;;
  53390. + esac
  53391. + ;;
  53392. + esac
  53393. + prev=
  53394. + continue
  53395. + ;;
  53396. + inst_prefix)
  53397. + inst_prefix_dir="$arg"
  53398. + prev=
  53399. + continue
  53400. + ;;
  53401. + objectlist)
  53402. + if test -f "$arg"; then
  53403. + save_arg=$arg
  53404. + moreargs=
  53405. + for fil in `cat "$save_arg"`
  53406. + do
  53407. +# moreargs="$moreargs $fil"
  53408. + arg=$fil
  53409. + # A libtool-controlled object.
  53410. - $echo >> "$output_objdir/$dlsyms" "\
  53411. + # Check to see that this really is a libtool object.
  53412. + if func_lalib_unsafe_p "$arg"; then
  53413. + pic_object=
  53414. + non_pic_object=
  53415. -#undef lt_preloaded_symbols
  53416. + # Read the .lo file
  53417. + func_source "$arg"
  53418. -#if defined (__STDC__) && __STDC__
  53419. -# define lt_ptr void *
  53420. -#else
  53421. -# define lt_ptr char *
  53422. -# define const
  53423. -#endif
  53424. + if test -z "$pic_object" ||
  53425. + test -z "$non_pic_object" ||
  53426. + test "$pic_object" = none &&
  53427. + test "$non_pic_object" = none; then
  53428. + func_fatal_error "cannot find name of object for \`$arg'"
  53429. + fi
  53430. -/* The mapping between symbol names and symbols. */
  53431. -"
  53432. + # Extract subdirectory from the argument.
  53433. + func_dirname "$arg" "/" ""
  53434. + xdir="$func_dirname_result"
  53435. - case $host in
  53436. - *cygwin* | *mingw* )
  53437. - $echo >> "$output_objdir/$dlsyms" "\
  53438. -/* DATA imports from DLLs on WIN32 can't be const, because
  53439. - runtime relocations are performed -- see ld's documentation
  53440. - on pseudo-relocs */
  53441. -struct {
  53442. -"
  53443. - ;;
  53444. - * )
  53445. - $echo >> "$output_objdir/$dlsyms" "\
  53446. -const struct {
  53447. -"
  53448. - ;;
  53449. - esac
  53450. + if test "$pic_object" != none; then
  53451. + # Prepend the subdirectory the object is found in.
  53452. + pic_object="$xdir$pic_object"
  53453. + if test "$prev" = dlfiles; then
  53454. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  53455. + dlfiles="$dlfiles $pic_object"
  53456. + prev=
  53457. + continue
  53458. + else
  53459. + # If libtool objects are unsupported, then we need to preload.
  53460. + prev=dlprefiles
  53461. + fi
  53462. + fi
  53463. - $echo >> "$output_objdir/$dlsyms" "\
  53464. - const char *name;
  53465. - lt_ptr address;
  53466. -}
  53467. -lt_preloaded_symbols[] =
  53468. -{\
  53469. -"
  53470. + # CHECK ME: I think I busted this. -Ossama
  53471. + if test "$prev" = dlprefiles; then
  53472. + # Preload the old-style object.
  53473. + dlprefiles="$dlprefiles $pic_object"
  53474. + prev=
  53475. + fi
  53476. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  53477. + # A PIC object.
  53478. + func_append libobjs " $pic_object"
  53479. + arg="$pic_object"
  53480. + fi
  53481. - $echo >> "$output_objdir/$dlsyms" "\
  53482. - {0, (lt_ptr) 0}
  53483. -};
  53484. + # Non-PIC object.
  53485. + if test "$non_pic_object" != none; then
  53486. + # Prepend the subdirectory the object is found in.
  53487. + non_pic_object="$xdir$non_pic_object"
  53488. -/* This works around a problem in FreeBSD linker */
  53489. -#ifdef FREEBSD_WORKAROUND
  53490. -static const void *lt_preloaded_setup() {
  53491. - return lt_preloaded_symbols;
  53492. -}
  53493. -#endif
  53494. + # A standard non-PIC object
  53495. + func_append non_pic_objects " $non_pic_object"
  53496. + if test -z "$pic_object" || test "$pic_object" = none ; then
  53497. + arg="$non_pic_object"
  53498. + fi
  53499. + else
  53500. + # If the PIC object exists, use it instead.
  53501. + # $xdir was prepended to $pic_object above.
  53502. + non_pic_object="$pic_object"
  53503. + func_append non_pic_objects " $non_pic_object"
  53504. + fi
  53505. + else
  53506. + # Only an error if not doing a dry-run.
  53507. + if $opt_dry_run; then
  53508. + # Extract subdirectory from the argument.
  53509. + func_dirname "$arg" "/" ""
  53510. + xdir="$func_dirname_result"
  53511. -#ifdef __cplusplus
  53512. -}
  53513. -#endif\
  53514. -"
  53515. + func_lo2o "$arg"
  53516. + pic_object=$xdir$objdir/$func_lo2o_result
  53517. + non_pic_object=$xdir$func_lo2o_result
  53518. + func_append libobjs " $pic_object"
  53519. + func_append non_pic_objects " $non_pic_object"
  53520. + else
  53521. + func_fatal_error "\`$arg' is not a valid libtool object"
  53522. + fi
  53523. + fi
  53524. + done
  53525. + else
  53526. + func_fatal_error "link input file \`$arg' does not exist"
  53527. fi
  53528. -
  53529. - pic_flag_for_symtable=
  53530. - case $host in
  53531. - # compiling the symbol table file with pic_flag works around
  53532. - # a FreeBSD bug that causes programs to crash when -lm is
  53533. - # linked before any other PIC object. But we must not use
  53534. - # pic_flag when linking with -static. The problem exists in
  53535. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  53536. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  53537. - case "$compile_command " in
  53538. - *" -static "*) ;;
  53539. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  53540. - esac;;
  53541. - *-*-hpux*)
  53542. - case "$compile_command " in
  53543. - *" -static "*) ;;
  53544. - *) pic_flag_for_symtable=" $pic_flag";;
  53545. - esac
  53546. + arg=$save_arg
  53547. + prev=
  53548. + continue
  53549. + ;;
  53550. + precious_regex)
  53551. + precious_files_regex="$arg"
  53552. + prev=
  53553. + continue
  53554. + ;;
  53555. + release)
  53556. + release="-$arg"
  53557. + prev=
  53558. + continue
  53559. + ;;
  53560. + rpath | xrpath)
  53561. + # We need an absolute path.
  53562. + case $arg in
  53563. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  53564. + *)
  53565. + func_fatal_error "only absolute run-paths are allowed"
  53566. + ;;
  53567. esac
  53568. -
  53569. - # Now compile the dynamic symbol file.
  53570. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  53571. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  53572. -
  53573. - # Clean up the generated files.
  53574. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  53575. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  53576. -
  53577. - # Transform the symbol file into the correct name.
  53578. - case $host in
  53579. - *cygwin* | *mingw* )
  53580. - if test -f "$output_objdir/${outputname}.def" ; then
  53581. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  53582. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  53583. - else
  53584. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  53585. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  53586. - fi
  53587. - ;;
  53588. - * )
  53589. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  53590. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  53591. - ;;
  53592. - esac
  53593. + if test "$prev" = rpath; then
  53594. + case "$rpath " in
  53595. + *" $arg "*) ;;
  53596. + *) rpath="$rpath $arg" ;;
  53597. + esac
  53598. + else
  53599. + case "$xrpath " in
  53600. + *" $arg "*) ;;
  53601. + *) xrpath="$xrpath $arg" ;;
  53602. + esac
  53603. + fi
  53604. + prev=
  53605. + continue
  53606. + ;;
  53607. + shrext)
  53608. + shrext_cmds="$arg"
  53609. + prev=
  53610. + continue
  53611. + ;;
  53612. + weak)
  53613. + weak_libs="$weak_libs $arg"
  53614. + prev=
  53615. + continue
  53616. + ;;
  53617. + xcclinker)
  53618. + linker_flags="$linker_flags $qarg"
  53619. + compiler_flags="$compiler_flags $qarg"
  53620. + prev=
  53621. + func_append compile_command " $qarg"
  53622. + func_append finalize_command " $qarg"
  53623. + continue
  53624. + ;;
  53625. + xcompiler)
  53626. + compiler_flags="$compiler_flags $qarg"
  53627. + prev=
  53628. + func_append compile_command " $qarg"
  53629. + func_append finalize_command " $qarg"
  53630. + continue
  53631. + ;;
  53632. + xlinker)
  53633. + linker_flags="$linker_flags $qarg"
  53634. + compiler_flags="$compiler_flags $wl$qarg"
  53635. + prev=
  53636. + func_append compile_command " $wl$qarg"
  53637. + func_append finalize_command " $wl$qarg"
  53638. + continue
  53639. ;;
  53640. *)
  53641. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  53642. - exit $EXIT_FAILURE
  53643. + eval "$prev=\"\$arg\""
  53644. + prev=
  53645. + continue
  53646. ;;
  53647. esac
  53648. - else
  53649. - # We keep going just in case the user didn't refer to
  53650. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  53651. - # really was required.
  53652. + fi # test -n "$prev"
  53653. - # Nullify the symbol file.
  53654. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  53655. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  53656. - fi
  53657. + prevarg="$arg"
  53658. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  53659. - # Replace the output file specification.
  53660. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  53661. - link_command="$compile_command$compile_rpath"
  53662. + case $arg in
  53663. + -all-static)
  53664. + if test -n "$link_static_flag"; then
  53665. + # See comment for -static flag below, for more details.
  53666. + func_append compile_command " $link_static_flag"
  53667. + func_append finalize_command " $link_static_flag"
  53668. + fi
  53669. + continue
  53670. + ;;
  53671. - # We have no uninstalled library dependencies, so finalize right now.
  53672. - $show "$link_command"
  53673. - $run eval "$link_command"
  53674. - exit_status=$?
  53675. + -allow-undefined)
  53676. + # FIXME: remove this flag sometime in the future.
  53677. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  53678. + ;;
  53679. - # Delete the generated files.
  53680. - if test -n "$dlsyms"; then
  53681. - $show "$rm $output_objdir/${outputname}S.${objext}"
  53682. - $run $rm "$output_objdir/${outputname}S.${objext}"
  53683. - fi
  53684. + -avoid-version)
  53685. + avoid_version=yes
  53686. + continue
  53687. + ;;
  53688. - exit $exit_status
  53689. - fi
  53690. + -dlopen)
  53691. + prev=dlfiles
  53692. + continue
  53693. + ;;
  53694. - if test -n "$shlibpath_var"; then
  53695. - # We should set the shlibpath_var
  53696. - rpath=
  53697. - for dir in $temp_rpath; do
  53698. - case $dir in
  53699. - [\\/]* | [A-Za-z]:[\\/]*)
  53700. - # Absolute path.
  53701. - rpath="$rpath$dir:"
  53702. - ;;
  53703. - *)
  53704. - # Relative path: add a thisdir entry.
  53705. - rpath="$rpath\$thisdir/$dir:"
  53706. - ;;
  53707. - esac
  53708. - done
  53709. - temp_rpath="$rpath"
  53710. - fi
  53711. + -dlpreopen)
  53712. + prev=dlprefiles
  53713. + continue
  53714. + ;;
  53715. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  53716. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  53717. - fi
  53718. - if test -n "$finalize_shlibpath"; then
  53719. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  53720. - fi
  53721. + -export-dynamic)
  53722. + export_dynamic=yes
  53723. + continue
  53724. + ;;
  53725. - compile_var=
  53726. - finalize_var=
  53727. - if test -n "$runpath_var"; then
  53728. - if test -n "$perm_rpath"; then
  53729. - # We should set the runpath_var.
  53730. - rpath=
  53731. - for dir in $perm_rpath; do
  53732. - rpath="$rpath$dir:"
  53733. - done
  53734. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  53735. + -export-symbols | -export-symbols-regex)
  53736. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  53737. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  53738. fi
  53739. - if test -n "$finalize_perm_rpath"; then
  53740. - # We should set the runpath_var.
  53741. - rpath=
  53742. - for dir in $finalize_perm_rpath; do
  53743. - rpath="$rpath$dir:"
  53744. - done
  53745. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  53746. + if test "X$arg" = "X-export-symbols"; then
  53747. + prev=expsyms
  53748. + else
  53749. + prev=expsyms_regex
  53750. fi
  53751. - fi
  53752. + continue
  53753. + ;;
  53754. - if test "$no_install" = yes; then
  53755. - # We don't need to create a wrapper script.
  53756. - link_command="$compile_var$compile_command$compile_rpath"
  53757. - # Replace the output file specification.
  53758. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  53759. - # Delete the old output file.
  53760. - $run $rm $output
  53761. - # Link the executable and exit
  53762. - $show "$link_command"
  53763. - $run eval "$link_command" || exit $?
  53764. - exit $EXIT_SUCCESS
  53765. - fi
  53766. + -framework)
  53767. + prev=framework
  53768. + continue
  53769. + ;;
  53770. - if test "$hardcode_action" = relink; then
  53771. - # Fast installation is not supported
  53772. - link_command="$compile_var$compile_command$compile_rpath"
  53773. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  53774. + -inst-prefix-dir)
  53775. + prev=inst_prefix
  53776. + continue
  53777. + ;;
  53778. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  53779. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  53780. - else
  53781. - if test "$fast_install" != no; then
  53782. - link_command="$finalize_var$compile_command$finalize_rpath"
  53783. - if test "$fast_install" = yes; then
  53784. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  53785. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  53786. + # so, if we see these flags be careful not to treat them like -L
  53787. + -L[A-Z][A-Z]*:*)
  53788. + case $with_gcc/$host in
  53789. + no/*-*-irix* | /*-*-irix*)
  53790. + func_append compile_command " $arg"
  53791. + func_append finalize_command " $arg"
  53792. + ;;
  53793. + esac
  53794. + continue
  53795. + ;;
  53796. +
  53797. + -L*)
  53798. + func_stripname '-L' '' "$arg"
  53799. + dir=$func_stripname_result
  53800. + if test -z "$dir"; then
  53801. + if test "$#" -gt 0; then
  53802. + func_fatal_error "require no space between \`-L' and \`$1'"
  53803. else
  53804. - # fast_install is set to needless
  53805. - relink_command=
  53806. + func_fatal_error "need path for \`-L' option"
  53807. fi
  53808. - else
  53809. - link_command="$compile_var$compile_command$compile_rpath"
  53810. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  53811. fi
  53812. - fi
  53813. + # We need an absolute path.
  53814. + case $dir in
  53815. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  53816. + *)
  53817. + absdir=`cd "$dir" && pwd`
  53818. + test -z "$absdir" && \
  53819. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  53820. + dir="$absdir"
  53821. + ;;
  53822. + esac
  53823. + case "$deplibs " in
  53824. + *" -L$dir "*) ;;
  53825. + *)
  53826. + deplibs="$deplibs -L$dir"
  53827. + lib_search_path="$lib_search_path $dir"
  53828. + ;;
  53829. + esac
  53830. + case $host in
  53831. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  53832. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  53833. + case :$dllsearchpath: in
  53834. + *":$dir:"*) ;;
  53835. + ::) dllsearchpath=$dir;;
  53836. + *) dllsearchpath="$dllsearchpath:$dir";;
  53837. + esac
  53838. + case :$dllsearchpath: in
  53839. + *":$testbindir:"*) ;;
  53840. + ::) dllsearchpath=$testbindir;;
  53841. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  53842. + esac
  53843. + ;;
  53844. + esac
  53845. + continue
  53846. + ;;
  53847. - # Replace the output file specification.
  53848. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  53849. + -l*)
  53850. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  53851. + case $host in
  53852. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  53853. + # These systems don't actually have a C or math library (as such)
  53854. + continue
  53855. + ;;
  53856. + *-*-os2*)
  53857. + # These systems don't actually have a C library (as such)
  53858. + test "X$arg" = "X-lc" && continue
  53859. + ;;
  53860. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53861. + # Do not include libc due to us having libc/libc_r.
  53862. + test "X$arg" = "X-lc" && continue
  53863. + ;;
  53864. + *-*-rhapsody* | *-*-darwin1.[012])
  53865. + # Rhapsody C and math libraries are in the System framework
  53866. + deplibs="$deplibs System.ltframework"
  53867. + continue
  53868. + ;;
  53869. + *-*-sco3.2v5* | *-*-sco5v6*)
  53870. + # Causes problems with __ctype
  53871. + test "X$arg" = "X-lc" && continue
  53872. + ;;
  53873. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  53874. + # Compiler inserts libc in the correct place for threads to work
  53875. + test "X$arg" = "X-lc" && continue
  53876. + ;;
  53877. + esac
  53878. + elif test "X$arg" = "X-lc_r"; then
  53879. + case $host in
  53880. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53881. + # Do not include libc_r directly, use -pthread flag.
  53882. + continue
  53883. + ;;
  53884. + esac
  53885. + fi
  53886. + deplibs="$deplibs $arg"
  53887. + continue
  53888. + ;;
  53889. - # Delete the old output files.
  53890. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  53891. + -module)
  53892. + module=yes
  53893. + continue
  53894. + ;;
  53895. - $show "$link_command"
  53896. - $run eval "$link_command" || exit $?
  53897. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  53898. + # classes, name mangling, and exception handling.
  53899. + # Darwin uses the -arch flag to determine output architecture.
  53900. + -model|-arch|-isysroot)
  53901. + compiler_flags="$compiler_flags $arg"
  53902. + func_append compile_command " $arg"
  53903. + func_append finalize_command " $arg"
  53904. + prev=xcompiler
  53905. + continue
  53906. + ;;
  53907. - # Now create the wrapper script.
  53908. - $show "creating $output"
  53909. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  53910. + compiler_flags="$compiler_flags $arg"
  53911. + func_append compile_command " $arg"
  53912. + func_append finalize_command " $arg"
  53913. + case "$new_inherited_linker_flags " in
  53914. + *" $arg "*) ;;
  53915. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  53916. + esac
  53917. + continue
  53918. + ;;
  53919. - # Quote the relink command for shipping.
  53920. - if test -n "$relink_command"; then
  53921. - # Preserve any variables that may affect compiler behavior
  53922. - for var in $variables_saved_for_relink; do
  53923. - if eval test -z \"\${$var+set}\"; then
  53924. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  53925. - elif eval var_value=\$$var; test -z "$var_value"; then
  53926. - relink_command="$var=; export $var; $relink_command"
  53927. - else
  53928. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  53929. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  53930. - fi
  53931. - done
  53932. - relink_command="(cd `pwd`; $relink_command)"
  53933. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  53934. - fi
  53935. + -multi_module)
  53936. + single_module="${wl}-multi_module"
  53937. + continue
  53938. + ;;
  53939. - # Quote $echo for shipping.
  53940. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  53941. - case $progpath in
  53942. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  53943. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  53944. - esac
  53945. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  53946. - else
  53947. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  53948. - fi
  53949. + -no-fast-install)
  53950. + fast_install=no
  53951. + continue
  53952. + ;;
  53953. - # Only actually do things if our run command is non-null.
  53954. - if test -z "$run"; then
  53955. - # win32 will think the script is a binary if it has
  53956. - # a .exe suffix, so we strip it off here.
  53957. - case $output in
  53958. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  53959. - esac
  53960. - # test for cygwin because mv fails w/o .exe extensions
  53961. + -no-install)
  53962. case $host in
  53963. - *cygwin*)
  53964. - exeext=.exe
  53965. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  53966. - *) exeext= ;;
  53967. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  53968. + # The PATH hackery in wrapper scripts is required on Windows
  53969. + # and Darwin in order for the loader to find any dlls it needs.
  53970. + func_warning "\`-no-install' is ignored for $host"
  53971. + func_warning "assuming \`-no-fast-install' instead"
  53972. + fast_install=no
  53973. + ;;
  53974. + *) no_install=yes ;;
  53975. esac
  53976. - case $host in
  53977. - *cygwin* | *mingw* )
  53978. - output_name=`basename $output`
  53979. - output_path=`dirname $output`
  53980. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  53981. - cwrapper="$output_path/$output_name.exe"
  53982. - $rm $cwrappersource $cwrapper
  53983. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  53984. -
  53985. - cat > $cwrappersource <<EOF
  53986. + continue
  53987. + ;;
  53988. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  53989. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  53990. + -no-undefined)
  53991. + allow_undefined=no
  53992. + continue
  53993. + ;;
  53994. - The $output program cannot be directly executed until all the libtool
  53995. - libraries that it depends on are installed.
  53996. + -objectlist)
  53997. + prev=objectlist
  53998. + continue
  53999. + ;;
  54000. - This wrapper executable should never be moved out of the build directory.
  54001. - If it is, it will not operate correctly.
  54002. + -o) prev=output ;;
  54003. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  54004. - but could eventually absorb all of the scripts functionality and
  54005. - exec $objdir/$outputname directly.
  54006. -*/
  54007. -EOF
  54008. - cat >> $cwrappersource<<"EOF"
  54009. -#include <stdio.h>
  54010. -#include <stdlib.h>
  54011. -#include <unistd.h>
  54012. -#include <malloc.h>
  54013. -#include <stdarg.h>
  54014. -#include <assert.h>
  54015. -#include <string.h>
  54016. -#include <ctype.h>
  54017. -#include <sys/stat.h>
  54018. + -precious-files-regex)
  54019. + prev=precious_regex
  54020. + continue
  54021. + ;;
  54022. -#if defined(PATH_MAX)
  54023. -# define LT_PATHMAX PATH_MAX
  54024. -#elif defined(MAXPATHLEN)
  54025. -# define LT_PATHMAX MAXPATHLEN
  54026. -#else
  54027. -# define LT_PATHMAX 1024
  54028. -#endif
  54029. + -release)
  54030. + prev=release
  54031. + continue
  54032. + ;;
  54033. -#ifndef DIR_SEPARATOR
  54034. -# define DIR_SEPARATOR '/'
  54035. -# define PATH_SEPARATOR ':'
  54036. -#endif
  54037. + -rpath)
  54038. + prev=rpath
  54039. + continue
  54040. + ;;
  54041. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  54042. - defined (__OS2__)
  54043. -# define HAVE_DOS_BASED_FILE_SYSTEM
  54044. -# ifndef DIR_SEPARATOR_2
  54045. -# define DIR_SEPARATOR_2 '\\'
  54046. -# endif
  54047. -# ifndef PATH_SEPARATOR_2
  54048. -# define PATH_SEPARATOR_2 ';'
  54049. -# endif
  54050. -#endif
  54051. + -R)
  54052. + prev=xrpath
  54053. + continue
  54054. + ;;
  54055. -#ifndef DIR_SEPARATOR_2
  54056. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  54057. -#else /* DIR_SEPARATOR_2 */
  54058. -# define IS_DIR_SEPARATOR(ch) \
  54059. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  54060. -#endif /* DIR_SEPARATOR_2 */
  54061. + -R*)
  54062. + func_stripname '-R' '' "$arg"
  54063. + dir=$func_stripname_result
  54064. + # We need an absolute path.
  54065. + case $dir in
  54066. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  54067. + *)
  54068. + func_fatal_error "only absolute run-paths are allowed"
  54069. + ;;
  54070. + esac
  54071. + case "$xrpath " in
  54072. + *" $dir "*) ;;
  54073. + *) xrpath="$xrpath $dir" ;;
  54074. + esac
  54075. + continue
  54076. + ;;
  54077. -#ifndef PATH_SEPARATOR_2
  54078. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  54079. -#else /* PATH_SEPARATOR_2 */
  54080. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  54081. -#endif /* PATH_SEPARATOR_2 */
  54082. + -shared)
  54083. + # The effects of -shared are defined in a previous loop.
  54084. + continue
  54085. + ;;
  54086. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  54087. -#define XFREE(stale) do { \
  54088. - if (stale) { free ((void *) stale); stale = 0; } \
  54089. -} while (0)
  54090. + -shrext)
  54091. + prev=shrext
  54092. + continue
  54093. + ;;
  54094. -/* -DDEBUG is fairly common in CFLAGS. */
  54095. -#undef DEBUG
  54096. -#if defined DEBUGWRAPPER
  54097. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  54098. -#else
  54099. -# define DEBUG(format, ...)
  54100. -#endif
  54101. + -static | -static-libtool-libs)
  54102. + # The effects of -static are defined in a previous loop.
  54103. + # We used to do the same as -all-static on platforms that
  54104. + # didn't have a PIC flag, but the assumption that the effects
  54105. + # would be equivalent was wrong. It would break on at least
  54106. + # Digital Unix and AIX.
  54107. + continue
  54108. + ;;
  54109. -const char *program_name = NULL;
  54110. + -thread-safe)
  54111. + thread_safe=yes
  54112. + continue
  54113. + ;;
  54114. -void * xmalloc (size_t num);
  54115. -char * xstrdup (const char *string);
  54116. -const char * base_name (const char *name);
  54117. -char * find_executable(const char *wrapper);
  54118. -int check_executable(const char *path);
  54119. -char * strendzap(char *str, const char *pat);
  54120. -void lt_fatal (const char *message, ...);
  54121. + -version-info)
  54122. + prev=vinfo
  54123. + continue
  54124. + ;;
  54125. -int
  54126. -main (int argc, char *argv[])
  54127. -{
  54128. - char **newargz;
  54129. - int i;
  54130. + -version-number)
  54131. + prev=vinfo
  54132. + vinfo_number=yes
  54133. + continue
  54134. + ;;
  54135. - program_name = (char *) xstrdup (base_name (argv[0]));
  54136. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  54137. - DEBUG("(main) program_name : %s\n",program_name);
  54138. - newargz = XMALLOC(char *, argc+2);
  54139. -EOF
  54140. + -weak)
  54141. + prev=weak
  54142. + continue
  54143. + ;;
  54144. - cat >> $cwrappersource <<EOF
  54145. - newargz[0] = (char *) xstrdup("$SHELL");
  54146. -EOF
  54147. + -Wc,*)
  54148. + func_stripname '-Wc,' '' "$arg"
  54149. + args=$func_stripname_result
  54150. + arg=
  54151. + save_ifs="$IFS"; IFS=','
  54152. + for flag in $args; do
  54153. + IFS="$save_ifs"
  54154. + func_quote_for_eval "$flag"
  54155. + arg="$arg $wl$func_quote_for_eval_result"
  54156. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  54157. + done
  54158. + IFS="$save_ifs"
  54159. + func_stripname ' ' '' "$arg"
  54160. + arg=$func_stripname_result
  54161. + ;;
  54162. - cat >> $cwrappersource <<"EOF"
  54163. - newargz[1] = find_executable(argv[0]);
  54164. - if (newargz[1] == NULL)
  54165. - lt_fatal("Couldn't find %s", argv[0]);
  54166. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  54167. - /* we know the script has the same name, without the .exe */
  54168. - /* so make sure newargz[1] doesn't end in .exe */
  54169. - strendzap(newargz[1],".exe");
  54170. - for (i = 1; i < argc; i++)
  54171. - newargz[i+1] = xstrdup(argv[i]);
  54172. - newargz[argc+1] = NULL;
  54173. + -Wl,*)
  54174. + func_stripname '-Wl,' '' "$arg"
  54175. + args=$func_stripname_result
  54176. + arg=
  54177. + save_ifs="$IFS"; IFS=','
  54178. + for flag in $args; do
  54179. + IFS="$save_ifs"
  54180. + func_quote_for_eval "$flag"
  54181. + arg="$arg $wl$func_quote_for_eval_result"
  54182. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  54183. + linker_flags="$linker_flags $func_quote_for_eval_result"
  54184. + done
  54185. + IFS="$save_ifs"
  54186. + func_stripname ' ' '' "$arg"
  54187. + arg=$func_stripname_result
  54188. + ;;
  54189. - for (i=0; i<argc+1; i++)
  54190. - {
  54191. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  54192. - ;
  54193. - }
  54194. + -Xcompiler)
  54195. + prev=xcompiler
  54196. + continue
  54197. + ;;
  54198. -EOF
  54199. + -Xlinker)
  54200. + prev=xlinker
  54201. + continue
  54202. + ;;
  54203. - case $host_os in
  54204. - mingw*)
  54205. - cat >> $cwrappersource <<EOF
  54206. - execv("$SHELL",(char const **)newargz);
  54207. -EOF
  54208. - ;;
  54209. - *)
  54210. - cat >> $cwrappersource <<EOF
  54211. - execv("$SHELL",newargz);
  54212. -EOF
  54213. - ;;
  54214. - esac
  54215. + -XCClinker)
  54216. + prev=xcclinker
  54217. + continue
  54218. + ;;
  54219. - cat >> $cwrappersource <<"EOF"
  54220. - return 127;
  54221. -}
  54222. + # -msg_* for osf cc
  54223. + -msg_*)
  54224. + func_quote_for_eval "$arg"
  54225. + arg="$func_quote_for_eval_result"
  54226. + ;;
  54227. -void *
  54228. -xmalloc (size_t num)
  54229. -{
  54230. - void * p = (void *) malloc (num);
  54231. - if (!p)
  54232. - lt_fatal ("Memory exhausted");
  54233. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  54234. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  54235. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  54236. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  54237. + # -q* pass through compiler args for the IBM compiler
  54238. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  54239. + # compiler args for GCC
  54240. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  54241. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  54242. + # @file GCC response files
  54243. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  54244. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  54245. + func_quote_for_eval "$arg"
  54246. + arg="$func_quote_for_eval_result"
  54247. + func_append compile_command " $arg"
  54248. + func_append finalize_command " $arg"
  54249. + compiler_flags="$compiler_flags $arg"
  54250. + continue
  54251. + ;;
  54252. - return p;
  54253. -}
  54254. + # Some other compiler flag.
  54255. + -* | +*)
  54256. + func_quote_for_eval "$arg"
  54257. + arg="$func_quote_for_eval_result"
  54258. + ;;
  54259. -char *
  54260. -xstrdup (const char *string)
  54261. -{
  54262. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  54263. -;
  54264. -}
  54265. + *.$objext)
  54266. + # A standard object.
  54267. + objs="$objs $arg"
  54268. + ;;
  54269. -const char *
  54270. -base_name (const char *name)
  54271. -{
  54272. - const char *base;
  54273. + *.lo)
  54274. + # A libtool-controlled object.
  54275. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54276. - /* Skip over the disk name in MSDOS pathnames. */
  54277. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  54278. - name += 2;
  54279. -#endif
  54280. + # Check to see that this really is a libtool object.
  54281. + if func_lalib_unsafe_p "$arg"; then
  54282. + pic_object=
  54283. + non_pic_object=
  54284. - for (base = name; *name; name++)
  54285. - if (IS_DIR_SEPARATOR (*name))
  54286. - base = name + 1;
  54287. - return base;
  54288. -}
  54289. + # Read the .lo file
  54290. + func_source "$arg"
  54291. -int
  54292. -check_executable(const char * path)
  54293. -{
  54294. - struct stat st;
  54295. + if test -z "$pic_object" ||
  54296. + test -z "$non_pic_object" ||
  54297. + test "$pic_object" = none &&
  54298. + test "$non_pic_object" = none; then
  54299. + func_fatal_error "cannot find name of object for \`$arg'"
  54300. + fi
  54301. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  54302. - if ((!path) || (!*path))
  54303. - return 0;
  54304. + # Extract subdirectory from the argument.
  54305. + func_dirname "$arg" "/" ""
  54306. + xdir="$func_dirname_result"
  54307. - if ((stat (path, &st) >= 0) &&
  54308. - (
  54309. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  54310. -#if defined (S_IXOTH)
  54311. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  54312. -#endif
  54313. -#if defined (S_IXGRP)
  54314. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  54315. -#endif
  54316. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  54317. - )
  54318. - return 1;
  54319. - else
  54320. - return 0;
  54321. -}
  54322. + if test "$pic_object" != none; then
  54323. + # Prepend the subdirectory the object is found in.
  54324. + pic_object="$xdir$pic_object"
  54325. -/* Searches for the full path of the wrapper. Returns
  54326. - newly allocated full path name if found, NULL otherwise */
  54327. -char *
  54328. -find_executable (const char* wrapper)
  54329. -{
  54330. - int has_slash = 0;
  54331. - const char* p;
  54332. - const char* p_next;
  54333. - /* static buffer for getcwd */
  54334. - char tmp[LT_PATHMAX + 1];
  54335. - int tmp_len;
  54336. - char* concat_name;
  54337. + if test "$prev" = dlfiles; then
  54338. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  54339. + dlfiles="$dlfiles $pic_object"
  54340. + prev=
  54341. + continue
  54342. + else
  54343. + # If libtool objects are unsupported, then we need to preload.
  54344. + prev=dlprefiles
  54345. + fi
  54346. + fi
  54347. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  54348. + # CHECK ME: I think I busted this. -Ossama
  54349. + if test "$prev" = dlprefiles; then
  54350. + # Preload the old-style object.
  54351. + dlprefiles="$dlprefiles $pic_object"
  54352. + prev=
  54353. + fi
  54354. - if ((wrapper == NULL) || (*wrapper == '\0'))
  54355. - return NULL;
  54356. + # A PIC object.
  54357. + func_append libobjs " $pic_object"
  54358. + arg="$pic_object"
  54359. + fi
  54360. - /* Absolute path? */
  54361. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54362. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  54363. - {
  54364. - concat_name = xstrdup (wrapper);
  54365. - if (check_executable(concat_name))
  54366. - return concat_name;
  54367. - XFREE(concat_name);
  54368. - }
  54369. - else
  54370. - {
  54371. -#endif
  54372. - if (IS_DIR_SEPARATOR (wrapper[0]))
  54373. - {
  54374. - concat_name = xstrdup (wrapper);
  54375. - if (check_executable(concat_name))
  54376. - return concat_name;
  54377. - XFREE(concat_name);
  54378. - }
  54379. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54380. - }
  54381. -#endif
  54382. + # Non-PIC object.
  54383. + if test "$non_pic_object" != none; then
  54384. + # Prepend the subdirectory the object is found in.
  54385. + non_pic_object="$xdir$non_pic_object"
  54386. - for (p = wrapper; *p; p++)
  54387. - if (*p == '/')
  54388. - {
  54389. - has_slash = 1;
  54390. - break;
  54391. - }
  54392. - if (!has_slash)
  54393. - {
  54394. - /* no slashes; search PATH */
  54395. - const char* path = getenv ("PATH");
  54396. - if (path != NULL)
  54397. - {
  54398. - for (p = path; *p; p = p_next)
  54399. - {
  54400. - const char* q;
  54401. - size_t p_len;
  54402. - for (q = p; *q; q++)
  54403. - if (IS_PATH_SEPARATOR(*q))
  54404. - break;
  54405. - p_len = q - p;
  54406. - p_next = (*q == '\0' ? q : q + 1);
  54407. - if (p_len == 0)
  54408. - {
  54409. - /* empty path: current directory */
  54410. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  54411. - lt_fatal ("getcwd failed");
  54412. - tmp_len = strlen(tmp);
  54413. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  54414. - memcpy (concat_name, tmp, tmp_len);
  54415. - concat_name[tmp_len] = '/';
  54416. - strcpy (concat_name + tmp_len + 1, wrapper);
  54417. - }
  54418. - else
  54419. - {
  54420. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  54421. - memcpy (concat_name, p, p_len);
  54422. - concat_name[p_len] = '/';
  54423. - strcpy (concat_name + p_len + 1, wrapper);
  54424. - }
  54425. - if (check_executable(concat_name))
  54426. - return concat_name;
  54427. - XFREE(concat_name);
  54428. - }
  54429. - }
  54430. - /* not found in PATH; assume curdir */
  54431. - }
  54432. - /* Relative path | not found in path: prepend cwd */
  54433. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  54434. - lt_fatal ("getcwd failed");
  54435. - tmp_len = strlen(tmp);
  54436. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  54437. - memcpy (concat_name, tmp, tmp_len);
  54438. - concat_name[tmp_len] = '/';
  54439. - strcpy (concat_name + tmp_len + 1, wrapper);
  54440. + # A standard non-PIC object
  54441. + func_append non_pic_objects " $non_pic_object"
  54442. + if test -z "$pic_object" || test "$pic_object" = none ; then
  54443. + arg="$non_pic_object"
  54444. + fi
  54445. + else
  54446. + # If the PIC object exists, use it instead.
  54447. + # $xdir was prepended to $pic_object above.
  54448. + non_pic_object="$pic_object"
  54449. + func_append non_pic_objects " $non_pic_object"
  54450. + fi
  54451. + else
  54452. + # Only an error if not doing a dry-run.
  54453. + if $opt_dry_run; then
  54454. + # Extract subdirectory from the argument.
  54455. + func_dirname "$arg" "/" ""
  54456. + xdir="$func_dirname_result"
  54457. - if (check_executable(concat_name))
  54458. - return concat_name;
  54459. - XFREE(concat_name);
  54460. - return NULL;
  54461. -}
  54462. + func_lo2o "$arg"
  54463. + pic_object=$xdir$objdir/$func_lo2o_result
  54464. + non_pic_object=$xdir$func_lo2o_result
  54465. + func_append libobjs " $pic_object"
  54466. + func_append non_pic_objects " $non_pic_object"
  54467. + else
  54468. + func_fatal_error "\`$arg' is not a valid libtool object"
  54469. + fi
  54470. + fi
  54471. + ;;
  54472. -char *
  54473. -strendzap(char *str, const char *pat)
  54474. -{
  54475. - size_t len, patlen;
  54476. + *.$libext)
  54477. + # An archive.
  54478. + deplibs="$deplibs $arg"
  54479. + old_deplibs="$old_deplibs $arg"
  54480. + continue
  54481. + ;;
  54482. - assert(str != NULL);
  54483. - assert(pat != NULL);
  54484. + *.la)
  54485. + # A libtool-controlled library.
  54486. - len = strlen(str);
  54487. - patlen = strlen(pat);
  54488. + if test "$prev" = dlfiles; then
  54489. + # This library was specified with -dlopen.
  54490. + dlfiles="$dlfiles $arg"
  54491. + prev=
  54492. + elif test "$prev" = dlprefiles; then
  54493. + # The library was specified with -dlpreopen.
  54494. + dlprefiles="$dlprefiles $arg"
  54495. + prev=
  54496. + else
  54497. + deplibs="$deplibs $arg"
  54498. + fi
  54499. + continue
  54500. + ;;
  54501. - if (patlen <= len)
  54502. - {
  54503. - str += len - patlen;
  54504. - if (strcmp(str, pat) == 0)
  54505. - *str = '\0';
  54506. - }
  54507. - return str;
  54508. -}
  54509. + # Some other compiler argument.
  54510. + *)
  54511. + # Unknown arguments in both finalize_command and compile_command need
  54512. + # to be aesthetically quoted because they are evaled later.
  54513. + func_quote_for_eval "$arg"
  54514. + arg="$func_quote_for_eval_result"
  54515. + ;;
  54516. + esac # arg
  54517. -static void
  54518. -lt_error_core (int exit_status, const char * mode,
  54519. - const char * message, va_list ap)
  54520. -{
  54521. - fprintf (stderr, "%s: %s: ", program_name, mode);
  54522. - vfprintf (stderr, message, ap);
  54523. - fprintf (stderr, ".\n");
  54524. + # Now actually substitute the argument into the commands.
  54525. + if test -n "$arg"; then
  54526. + func_append compile_command " $arg"
  54527. + func_append finalize_command " $arg"
  54528. + fi
  54529. + done # argument parsing loop
  54530. - if (exit_status >= 0)
  54531. - exit (exit_status);
  54532. -}
  54533. + test -n "$prev" && \
  54534. + func_fatal_help "the \`$prevarg' option requires an argument"
  54535. -void
  54536. -lt_fatal (const char *message, ...)
  54537. -{
  54538. - va_list ap;
  54539. - va_start (ap, message);
  54540. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  54541. - va_end (ap);
  54542. -}
  54543. -EOF
  54544. - # we should really use a build-platform specific compiler
  54545. - # here, but OTOH, the wrappers (shell script and this C one)
  54546. - # are only useful if you want to execute the "real" binary.
  54547. - # Since the "real" binary is built for $host, then this
  54548. - # wrapper might as well be built for $host, too.
  54549. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  54550. - ;;
  54551. - esac
  54552. - $rm $output
  54553. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  54554. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  54555. + eval arg=\"$export_dynamic_flag_spec\"
  54556. + func_append compile_command " $arg"
  54557. + func_append finalize_command " $arg"
  54558. + fi
  54559. - $echo > $output "\
  54560. -#! $SHELL
  54561. + oldlibs=
  54562. + # calculate the name of the file, without its directory
  54563. + func_basename "$output"
  54564. + outputname="$func_basename_result"
  54565. + libobjs_save="$libobjs"
  54566. -# $output - temporary wrapper script for $objdir/$outputname
  54567. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54568. -#
  54569. -# The $output program cannot be directly executed until all the libtool
  54570. -# libraries that it depends on are installed.
  54571. -#
  54572. -# This wrapper script should never be moved out of the build directory.
  54573. -# If it is, it will not operate correctly.
  54574. + if test -n "$shlibpath_var"; then
  54575. + # get the directories listed in $shlibpath_var
  54576. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  54577. + else
  54578. + shlib_search_path=
  54579. + fi
  54580. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  54581. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  54582. -# Sed substitution that helps us do robust quoting. It backslashifies
  54583. -# metacharacters that are still active within double-quoted strings.
  54584. -Xsed='${SED} -e 1s/^X//'
  54585. -sed_quote_subst='$sed_quote_subst'
  54586. + func_dirname "$output" "/" ""
  54587. + output_objdir="$func_dirname_result$objdir"
  54588. + # Create the object directory.
  54589. + func_mkdir_p "$output_objdir"
  54590. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  54591. -# if CDPATH is set.
  54592. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  54593. + # Determine the type of output
  54594. + case $output in
  54595. + "")
  54596. + func_fatal_help "you must specify an output file"
  54597. + ;;
  54598. + *.$libext) linkmode=oldlib ;;
  54599. + *.lo | *.$objext) linkmode=obj ;;
  54600. + *.la) linkmode=lib ;;
  54601. + *) linkmode=prog ;; # Anything else should be a program.
  54602. + esac
  54603. -relink_command=\"$relink_command\"
  54604. + specialdeplibs=
  54605. -# This environment variable determines our operation mode.
  54606. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  54607. - # install mode needs the following variable:
  54608. - notinst_deplibs='$notinst_deplibs'
  54609. -else
  54610. - # When we are sourced in execute mode, \$file and \$echo are already set.
  54611. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  54612. - echo=\"$qecho\"
  54613. - file=\"\$0\"
  54614. - # Make sure echo works.
  54615. - if test \"X\$1\" = X--no-reexec; then
  54616. - # Discard the --no-reexec flag, and continue.
  54617. - shift
  54618. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  54619. - # Yippee, \$echo works!
  54620. - :
  54621. - else
  54622. - # Restart under the correct shell, and then maybe \$echo will work.
  54623. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  54624. + libs=
  54625. + # Find all interdependent deplibs by searching for libraries
  54626. + # that are linked more than once (e.g. -la -lb -la)
  54627. + for deplib in $deplibs; do
  54628. + if $opt_duplicate_deps ; then
  54629. + case "$libs " in
  54630. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54631. + esac
  54632. + fi
  54633. + libs="$libs $deplib"
  54634. + done
  54635. +
  54636. + if test "$linkmode" = lib; then
  54637. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  54638. +
  54639. + # Compute libraries that are listed more than once in $predeps
  54640. + # $postdeps and mark them as special (i.e., whose duplicates are
  54641. + # not to be eliminated).
  54642. + pre_post_deps=
  54643. + if $opt_duplicate_compiler_generated_deps; then
  54644. + for pre_post_dep in $predeps $postdeps; do
  54645. + case "$pre_post_deps " in
  54646. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  54647. + esac
  54648. + pre_post_deps="$pre_post_deps $pre_post_dep"
  54649. + done
  54650. + fi
  54651. + pre_post_deps=
  54652. fi
  54653. - fi\
  54654. -"
  54655. - $echo >> $output "\
  54656. - # Find the directory that this script lives in.
  54657. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  54658. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  54659. + deplibs=
  54660. + newdependency_libs=
  54661. + newlib_search_path=
  54662. + need_relink=no # whether we're linking any uninstalled libtool libraries
  54663. + notinst_deplibs= # not-installed libtool libraries
  54664. + notinst_path= # paths that contain not-installed libtool libraries
  54665. - # Follow symbolic links until we get to the real thisdir.
  54666. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  54667. - while test -n \"\$file\"; do
  54668. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  54669. + case $linkmode in
  54670. + lib)
  54671. + passes="conv dlpreopen link"
  54672. + for file in $dlfiles $dlprefiles; do
  54673. + case $file in
  54674. + *.la) ;;
  54675. + *)
  54676. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  54677. + ;;
  54678. + esac
  54679. + done
  54680. + ;;
  54681. + prog)
  54682. + compile_deplibs=
  54683. + finalize_deplibs=
  54684. + alldeplibs=no
  54685. + newdlfiles=
  54686. + newdlprefiles=
  54687. + passes="conv scan dlopen dlpreopen link"
  54688. + ;;
  54689. + *) passes="conv"
  54690. + ;;
  54691. + esac
  54692. - # If there was a directory component, then change thisdir.
  54693. - if test \"x\$destdir\" != \"x\$file\"; then
  54694. - case \"\$destdir\" in
  54695. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  54696. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  54697. - esac
  54698. - fi
  54699. + for pass in $passes; do
  54700. + # The preopen pass in lib mode reverses $deplibs; put it back here
  54701. + # so that -L comes before libs that need it for instance...
  54702. + if test "$linkmode,$pass" = "lib,link"; then
  54703. + ## FIXME: Find the place where the list is rebuilt in the wrong
  54704. + ## order, and fix it there properly
  54705. + tmp_deplibs=
  54706. + for deplib in $deplibs; do
  54707. + tmp_deplibs="$deplib $tmp_deplibs"
  54708. + done
  54709. + deplibs="$tmp_deplibs"
  54710. + fi
  54711. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  54712. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  54713. - done
  54714. + if test "$linkmode,$pass" = "lib,link" ||
  54715. + test "$linkmode,$pass" = "prog,scan"; then
  54716. + libs="$deplibs"
  54717. + deplibs=
  54718. + fi
  54719. + if test "$linkmode" = prog; then
  54720. + case $pass in
  54721. + dlopen) libs="$dlfiles" ;;
  54722. + dlpreopen) libs="$dlprefiles" ;;
  54723. + link)
  54724. + libs="$deplibs %DEPLIBS%"
  54725. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  54726. + ;;
  54727. + esac
  54728. + fi
  54729. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  54730. + # Collect and forward deplibs of preopened libtool libs
  54731. + for lib in $dlprefiles; do
  54732. + # Ignore non-libtool-libs
  54733. + dependency_libs=
  54734. + case $lib in
  54735. + *.la) func_source "$lib" ;;
  54736. + esac
  54737. +
  54738. + # Collect preopened libtool deplibs, except any this library
  54739. + # has declared as weak libs
  54740. + for deplib in $dependency_libs; do
  54741. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  54742. + case " $weak_libs " in
  54743. + *" $deplib_base "*) ;;
  54744. + *) deplibs="$deplibs $deplib" ;;
  54745. + esac
  54746. + done
  54747. + done
  54748. + libs="$dlprefiles"
  54749. + fi
  54750. + if test "$pass" = dlopen; then
  54751. + # Collect dlpreopened libraries
  54752. + save_deplibs="$deplibs"
  54753. + deplibs=
  54754. + fi
  54755. +
  54756. + for deplib in $libs; do
  54757. + lib=
  54758. + found=no
  54759. + case $deplib in
  54760. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  54761. + if test "$linkmode,$pass" = "prog,link"; then
  54762. + compile_deplibs="$deplib $compile_deplibs"
  54763. + finalize_deplibs="$deplib $finalize_deplibs"
  54764. + else
  54765. + compiler_flags="$compiler_flags $deplib"
  54766. + if test "$linkmode" = lib ; then
  54767. + case "$new_inherited_linker_flags " in
  54768. + *" $deplib "*) ;;
  54769. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  54770. + esac
  54771. + fi
  54772. + fi
  54773. + continue
  54774. + ;;
  54775. + -l*)
  54776. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  54777. + func_warning "\`-l' is ignored for archives/objects"
  54778. + continue
  54779. + fi
  54780. + func_stripname '-l' '' "$deplib"
  54781. + name=$func_stripname_result
  54782. + if test "$linkmode" = lib; then
  54783. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  54784. + else
  54785. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  54786. + fi
  54787. + for searchdir in $searchdirs; do
  54788. + for search_ext in .la $std_shrext .so .a; do
  54789. + # Search the libtool library
  54790. + lib="$searchdir/lib${name}${search_ext}"
  54791. + if test -f "$lib"; then
  54792. + if test "$search_ext" = ".la"; then
  54793. + found=yes
  54794. + else
  54795. + found=no
  54796. + fi
  54797. + break 2
  54798. + fi
  54799. + done
  54800. + done
  54801. + if test "$found" != yes; then
  54802. + # deplib doesn't seem to be a libtool library
  54803. + if test "$linkmode,$pass" = "prog,link"; then
  54804. + compile_deplibs="$deplib $compile_deplibs"
  54805. + finalize_deplibs="$deplib $finalize_deplibs"
  54806. + else
  54807. + deplibs="$deplib $deplibs"
  54808. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  54809. + fi
  54810. + continue
  54811. + else # deplib is a libtool library
  54812. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  54813. + # We need to do some special things here, and not later.
  54814. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  54815. + case " $predeps $postdeps " in
  54816. + *" $deplib "*)
  54817. + if func_lalib_p "$lib"; then
  54818. + library_names=
  54819. + old_library=
  54820. + func_source "$lib"
  54821. + for l in $old_library $library_names; do
  54822. + ll="$l"
  54823. + done
  54824. + if test "X$ll" = "X$old_library" ; then # only static version available
  54825. + found=no
  54826. + func_dirname "$lib" "" "."
  54827. + ladir="$func_dirname_result"
  54828. + lib=$ladir/$old_library
  54829. + if test "$linkmode,$pass" = "prog,link"; then
  54830. + compile_deplibs="$deplib $compile_deplibs"
  54831. + finalize_deplibs="$deplib $finalize_deplibs"
  54832. + else
  54833. + deplibs="$deplib $deplibs"
  54834. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  54835. + fi
  54836. + continue
  54837. + fi
  54838. + fi
  54839. + ;;
  54840. + *) ;;
  54841. + esac
  54842. + fi
  54843. + fi
  54844. + ;; # -l
  54845. + *.ltframework)
  54846. + if test "$linkmode,$pass" = "prog,link"; then
  54847. + compile_deplibs="$deplib $compile_deplibs"
  54848. + finalize_deplibs="$deplib $finalize_deplibs"
  54849. + else
  54850. + deplibs="$deplib $deplibs"
  54851. + if test "$linkmode" = lib ; then
  54852. + case "$new_inherited_linker_flags " in
  54853. + *" $deplib "*) ;;
  54854. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  54855. + esac
  54856. + fi
  54857. + fi
  54858. + continue
  54859. + ;;
  54860. + -L*)
  54861. + case $linkmode in
  54862. + lib)
  54863. + deplibs="$deplib $deplibs"
  54864. + test "$pass" = conv && continue
  54865. + newdependency_libs="$deplib $newdependency_libs"
  54866. + func_stripname '-L' '' "$deplib"
  54867. + newlib_search_path="$newlib_search_path $func_stripname_result"
  54868. + ;;
  54869. + prog)
  54870. + if test "$pass" = conv; then
  54871. + deplibs="$deplib $deplibs"
  54872. + continue
  54873. + fi
  54874. + if test "$pass" = scan; then
  54875. + deplibs="$deplib $deplibs"
  54876. + else
  54877. + compile_deplibs="$deplib $compile_deplibs"
  54878. + finalize_deplibs="$deplib $finalize_deplibs"
  54879. + fi
  54880. + func_stripname '-L' '' "$deplib"
  54881. + newlib_search_path="$newlib_search_path $func_stripname_result"
  54882. + ;;
  54883. + *)
  54884. + func_warning "\`-L' is ignored for archives/objects"
  54885. + ;;
  54886. + esac # linkmode
  54887. + continue
  54888. + ;; # -L
  54889. + -R*)
  54890. + if test "$pass" = link; then
  54891. + func_stripname '-R' '' "$deplib"
  54892. + dir=$func_stripname_result
  54893. + # Make sure the xrpath contains only unique directories.
  54894. + case "$xrpath " in
  54895. + *" $dir "*) ;;
  54896. + *) xrpath="$xrpath $dir" ;;
  54897. + esac
  54898. + fi
  54899. + deplibs="$deplib $deplibs"
  54900. + continue
  54901. + ;;
  54902. + *.la) lib="$deplib" ;;
  54903. + *.$libext)
  54904. + if test "$pass" = conv; then
  54905. + deplibs="$deplib $deplibs"
  54906. + continue
  54907. + fi
  54908. + case $linkmode in
  54909. + lib)
  54910. + # Linking convenience modules into shared libraries is allowed,
  54911. + # but linking other static libraries is non-portable.
  54912. + case " $dlpreconveniencelibs " in
  54913. + *" $deplib "*) ;;
  54914. + *)
  54915. + valid_a_lib=no
  54916. + case $deplibs_check_method in
  54917. + match_pattern*)
  54918. + set dummy $deplibs_check_method; shift
  54919. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  54920. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  54921. + | $EGREP "$match_pattern_regex" > /dev/null; then
  54922. + valid_a_lib=yes
  54923. + fi
  54924. + ;;
  54925. + pass_all)
  54926. + valid_a_lib=yes
  54927. + ;;
  54928. + esac
  54929. + if test "$valid_a_lib" != yes; then
  54930. + $ECHO
  54931. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  54932. + $ECHO "*** I have the capability to make that library automatically link in when"
  54933. + $ECHO "*** you link to this library. But I can only do this if you have a"
  54934. + $ECHO "*** shared version of the library, which you do not appear to have"
  54935. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  54936. + $ECHO "*** that it is just a static archive that I should not use here."
  54937. + else
  54938. + $ECHO
  54939. + $ECHO "*** Warning: Linking the shared library $output against the"
  54940. + $ECHO "*** static library $deplib is not portable!"
  54941. + deplibs="$deplib $deplibs"
  54942. + fi
  54943. + ;;
  54944. + esac
  54945. + continue
  54946. + ;;
  54947. + prog)
  54948. + if test "$pass" != link; then
  54949. + deplibs="$deplib $deplibs"
  54950. + else
  54951. + compile_deplibs="$deplib $compile_deplibs"
  54952. + finalize_deplibs="$deplib $finalize_deplibs"
  54953. + fi
  54954. + continue
  54955. + ;;
  54956. + esac # linkmode
  54957. + ;; # *.$libext
  54958. + *.lo | *.$objext)
  54959. + if test "$pass" = conv; then
  54960. + deplibs="$deplib $deplibs"
  54961. + elif test "$linkmode" = prog; then
  54962. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  54963. + # If there is no dlopen support or we're linking statically,
  54964. + # we need to preload.
  54965. + newdlprefiles="$newdlprefiles $deplib"
  54966. + compile_deplibs="$deplib $compile_deplibs"
  54967. + finalize_deplibs="$deplib $finalize_deplibs"
  54968. + else
  54969. + newdlfiles="$newdlfiles $deplib"
  54970. + fi
  54971. + fi
  54972. + continue
  54973. + ;;
  54974. + %DEPLIBS%)
  54975. + alldeplibs=yes
  54976. + continue
  54977. + ;;
  54978. + esac # case $deplib
  54979. +
  54980. + if test "$found" = yes || test -f "$lib"; then :
  54981. + else
  54982. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  54983. + fi
  54984. +
  54985. + # Check to see that this really is a libtool archive.
  54986. + func_lalib_unsafe_p "$lib" \
  54987. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  54988. +
  54989. + func_dirname "$lib" "" "."
  54990. + ladir="$func_dirname_result"
  54991. +
  54992. + dlname=
  54993. + dlopen=
  54994. + dlpreopen=
  54995. + libdir=
  54996. + library_names=
  54997. + old_library=
  54998. + inherited_linker_flags=
  54999. + # If the library was installed with an old release of libtool,
  55000. + # it will not redefine variables installed, or shouldnotlink
  55001. + installed=yes
  55002. + shouldnotlink=no
  55003. + avoidtemprpath=
  55004. +
  55005. +
  55006. + # Read the .la file
  55007. + func_source "$lib"
  55008. +
  55009. + # Convert "-framework foo" to "foo.ltframework"
  55010. + if test -n "$inherited_linker_flags"; then
  55011. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  55012. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  55013. + case " $new_inherited_linker_flags " in
  55014. + *" $tmp_inherited_linker_flag "*) ;;
  55015. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  55016. + esac
  55017. + done
  55018. + fi
  55019. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55020. + if test "$linkmode,$pass" = "lib,link" ||
  55021. + test "$linkmode,$pass" = "prog,scan" ||
  55022. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  55023. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  55024. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  55025. + fi
  55026. +
  55027. + if test "$pass" = conv; then
  55028. + # Only check for convenience libraries
  55029. + deplibs="$lib $deplibs"
  55030. + if test -z "$libdir"; then
  55031. + if test -z "$old_library"; then
  55032. + func_fatal_error "cannot find name of link library for \`$lib'"
  55033. + fi
  55034. + # It is a libtool convenience library, so add in its objects.
  55035. + convenience="$convenience $ladir/$objdir/$old_library"
  55036. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  55037. + tmp_libs=
  55038. + for deplib in $dependency_libs; do
  55039. + deplibs="$deplib $deplibs"
  55040. + if $opt_duplicate_deps ; then
  55041. + case "$tmp_libs " in
  55042. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55043. + esac
  55044. + fi
  55045. + tmp_libs="$tmp_libs $deplib"
  55046. + done
  55047. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  55048. + func_fatal_error "\`$lib' is not a convenience library"
  55049. + fi
  55050. + continue
  55051. + fi # $pass = conv
  55052. +
  55053. +
  55054. + # Get the name of the library we link against.
  55055. + linklib=
  55056. + for l in $old_library $library_names; do
  55057. + linklib="$l"
  55058. + done
  55059. + if test -z "$linklib"; then
  55060. + func_fatal_error "cannot find name of link library for \`$lib'"
  55061. + fi
  55062. +
  55063. + # This library was specified with -dlopen.
  55064. + if test "$pass" = dlopen; then
  55065. + if test -z "$libdir"; then
  55066. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  55067. + fi
  55068. + if test -z "$dlname" ||
  55069. + test "$dlopen_support" != yes ||
  55070. + test "$build_libtool_libs" = no; then
  55071. + # If there is no dlname, no dlopen support or we're linking
  55072. + # statically, we need to preload. We also need to preload any
  55073. + # dependent libraries so libltdl's deplib preloader doesn't
  55074. + # bomb out in the load deplibs phase.
  55075. + dlprefiles="$dlprefiles $lib $dependency_libs"
  55076. + else
  55077. + newdlfiles="$newdlfiles $lib"
  55078. + fi
  55079. + continue
  55080. + fi # $pass = dlopen
  55081. +
  55082. + # We need an absolute path.
  55083. + case $ladir in
  55084. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  55085. + *)
  55086. + abs_ladir=`cd "$ladir" && pwd`
  55087. + if test -z "$abs_ladir"; then
  55088. + func_warning "cannot determine absolute directory name of \`$ladir'"
  55089. + func_warning "passing it literally to the linker, although it might fail"
  55090. + abs_ladir="$ladir"
  55091. + fi
  55092. + ;;
  55093. + esac
  55094. + func_basename "$lib"
  55095. + laname="$func_basename_result"
  55096. +
  55097. + # Find the relevant object directory and library name.
  55098. + if test "X$installed" = Xyes; then
  55099. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  55100. + func_warning "library \`$lib' was moved."
  55101. + dir="$ladir"
  55102. + absdir="$abs_ladir"
  55103. + libdir="$abs_ladir"
  55104. + else
  55105. + dir="$libdir"
  55106. + absdir="$libdir"
  55107. + fi
  55108. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  55109. + else
  55110. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  55111. + dir="$ladir"
  55112. + absdir="$abs_ladir"
  55113. + # Remove this search path later
  55114. + notinst_path="$notinst_path $abs_ladir"
  55115. + else
  55116. + dir="$ladir/$objdir"
  55117. + absdir="$abs_ladir/$objdir"
  55118. + # Remove this search path later
  55119. + notinst_path="$notinst_path $abs_ladir"
  55120. + fi
  55121. + fi # $installed = yes
  55122. + func_stripname 'lib' '.la' "$laname"
  55123. + name=$func_stripname_result
  55124. +
  55125. + # This library was specified with -dlpreopen.
  55126. + if test "$pass" = dlpreopen; then
  55127. + if test -z "$libdir" && test "$linkmode" = prog; then
  55128. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  55129. + fi
  55130. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  55131. + # are required to link).
  55132. + if test -n "$old_library"; then
  55133. + newdlprefiles="$newdlprefiles $dir/$old_library"
  55134. + # Keep a list of preopened convenience libraries to check
  55135. + # that they are being used correctly in the link pass.
  55136. + test -z "$libdir" && \
  55137. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  55138. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  55139. + elif test -n "$dlname"; then
  55140. + newdlprefiles="$newdlprefiles $dir/$dlname"
  55141. + else
  55142. + newdlprefiles="$newdlprefiles $dir/$linklib"
  55143. + fi
  55144. + fi # $pass = dlpreopen
  55145. +
  55146. + if test -z "$libdir"; then
  55147. + # Link the convenience library
  55148. + if test "$linkmode" = lib; then
  55149. + deplibs="$dir/$old_library $deplibs"
  55150. + elif test "$linkmode,$pass" = "prog,link"; then
  55151. + compile_deplibs="$dir/$old_library $compile_deplibs"
  55152. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  55153. + else
  55154. + deplibs="$lib $deplibs" # used for prog,scan pass
  55155. + fi
  55156. + continue
  55157. + fi
  55158. +
  55159. +
  55160. + if test "$linkmode" = prog && test "$pass" != link; then
  55161. + newlib_search_path="$newlib_search_path $ladir"
  55162. + deplibs="$lib $deplibs"
  55163. +
  55164. + linkalldeplibs=no
  55165. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  55166. + test "$build_libtool_libs" = no; then
  55167. + linkalldeplibs=yes
  55168. + fi
  55169. +
  55170. + tmp_libs=
  55171. + for deplib in $dependency_libs; do
  55172. + case $deplib in
  55173. + -L*) func_stripname '-L' '' "$deplib"
  55174. + newlib_search_path="$newlib_search_path $func_stripname_result"
  55175. + ;;
  55176. + esac
  55177. + # Need to link against all dependency_libs?
  55178. + if test "$linkalldeplibs" = yes; then
  55179. + deplibs="$deplib $deplibs"
  55180. + else
  55181. + # Need to hardcode shared library paths
  55182. + # or/and link against static libraries
  55183. + newdependency_libs="$deplib $newdependency_libs"
  55184. + fi
  55185. + if $opt_duplicate_deps ; then
  55186. + case "$tmp_libs " in
  55187. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55188. + esac
  55189. + fi
  55190. + tmp_libs="$tmp_libs $deplib"
  55191. + done # for deplib
  55192. + continue
  55193. + fi # $linkmode = prog...
  55194. +
  55195. + if test "$linkmode,$pass" = "prog,link"; then
  55196. + if test -n "$library_names" &&
  55197. + { { test "$prefer_static_libs" = no ||
  55198. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  55199. + test -z "$old_library"; }; then
  55200. + # We need to hardcode the library path
  55201. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  55202. + # Make sure the rpath contains only unique directories.
  55203. + case "$temp_rpath:" in
  55204. + *"$absdir:"*) ;;
  55205. + *) temp_rpath="$temp_rpath$absdir:" ;;
  55206. + esac
  55207. + fi
  55208. +
  55209. + # Hardcode the library path.
  55210. + # Skip directories that are in the system default run-time
  55211. + # search path.
  55212. + case " $sys_lib_dlsearch_path " in
  55213. + *" $absdir "*) ;;
  55214. + *)
  55215. + case "$compile_rpath " in
  55216. + *" $absdir "*) ;;
  55217. + *) compile_rpath="$compile_rpath $absdir"
  55218. + esac
  55219. + ;;
  55220. + esac
  55221. + case " $sys_lib_dlsearch_path " in
  55222. + *" $libdir "*) ;;
  55223. + *)
  55224. + case "$finalize_rpath " in
  55225. + *" $libdir "*) ;;
  55226. + *) finalize_rpath="$finalize_rpath $libdir"
  55227. + esac
  55228. + ;;
  55229. + esac
  55230. + fi # $linkmode,$pass = prog,link...
  55231. +
  55232. + if test "$alldeplibs" = yes &&
  55233. + { test "$deplibs_check_method" = pass_all ||
  55234. + { test "$build_libtool_libs" = yes &&
  55235. + test -n "$library_names"; }; }; then
  55236. + # We only need to search for static libraries
  55237. + continue
  55238. + fi
  55239. + fi
  55240. +
  55241. + link_static=no # Whether the deplib will be linked statically
  55242. + use_static_libs=$prefer_static_libs
  55243. + if test "$use_static_libs" = built && test "$installed" = yes; then
  55244. + use_static_libs=no
  55245. + fi
  55246. + if test -n "$library_names" &&
  55247. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  55248. + case $host in
  55249. + *cygwin* | *mingw* | *cegcc*)
  55250. + # No point in relinking DLLs because paths are not encoded
  55251. + notinst_deplibs="$notinst_deplibs $lib"
  55252. + need_relink=no
  55253. + ;;
  55254. + *)
  55255. + if test "$installed" = no; then
  55256. + notinst_deplibs="$notinst_deplibs $lib"
  55257. + need_relink=yes
  55258. + fi
  55259. + ;;
  55260. + esac
  55261. + # This is a shared library
  55262. +
  55263. + # Warn about portability, can't link against -module's on some
  55264. + # systems (darwin). Don't bleat about dlopened modules though!
  55265. + dlopenmodule=""
  55266. + for dlpremoduletest in $dlprefiles; do
  55267. + if test "X$dlpremoduletest" = "X$lib"; then
  55268. + dlopenmodule="$dlpremoduletest"
  55269. + break
  55270. + fi
  55271. + done
  55272. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  55273. + $ECHO
  55274. + if test "$linkmode" = prog; then
  55275. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  55276. + else
  55277. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  55278. + fi
  55279. + $ECHO "*** $linklib is not portable!"
  55280. + fi
  55281. + if test "$linkmode" = lib &&
  55282. + test "$hardcode_into_libs" = yes; then
  55283. + # Hardcode the library path.
  55284. + # Skip directories that are in the system default run-time
  55285. + # search path.
  55286. + case " $sys_lib_dlsearch_path " in
  55287. + *" $absdir "*) ;;
  55288. + *)
  55289. + case "$compile_rpath " in
  55290. + *" $absdir "*) ;;
  55291. + *) compile_rpath="$compile_rpath $absdir"
  55292. + esac
  55293. + ;;
  55294. + esac
  55295. + case " $sys_lib_dlsearch_path " in
  55296. + *" $libdir "*) ;;
  55297. + *)
  55298. + case "$finalize_rpath " in
  55299. + *" $libdir "*) ;;
  55300. + *) finalize_rpath="$finalize_rpath $libdir"
  55301. + esac
  55302. + ;;
  55303. + esac
  55304. + fi
  55305. +
  55306. + if test -n "$old_archive_from_expsyms_cmds"; then
  55307. + # figure out the soname
  55308. + set dummy $library_names
  55309. + shift
  55310. + realname="$1"
  55311. + shift
  55312. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55313. + # use dlname if we got it. it's perfectly good, no?
  55314. + if test -n "$dlname"; then
  55315. + soname="$dlname"
  55316. + elif test -n "$soname_spec"; then
  55317. + # bleh windows
  55318. + case $host in
  55319. + *cygwin* | mingw* | *cegcc*)
  55320. + func_arith $current - $age
  55321. + major=$func_arith_result
  55322. + versuffix="-$major"
  55323. + ;;
  55324. + esac
  55325. + eval soname=\"$soname_spec\"
  55326. + else
  55327. + soname="$realname"
  55328. + fi
  55329. +
  55330. + # Make a new name for the extract_expsyms_cmds to use
  55331. + soroot="$soname"
  55332. + func_basename "$soroot"
  55333. + soname="$func_basename_result"
  55334. + func_stripname 'lib' '.dll' "$soname"
  55335. + newlib=libimp-$func_stripname_result.a
  55336. +
  55337. + # If the library has no export list, then create one now
  55338. + if test -f "$output_objdir/$soname-def"; then :
  55339. + else
  55340. + func_verbose "extracting exported symbol list from \`$soname'"
  55341. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  55342. + fi
  55343. +
  55344. + # Create $newlib
  55345. + if test -f "$output_objdir/$newlib"; then :; else
  55346. + func_verbose "generating import library for \`$soname'"
  55347. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  55348. + fi
  55349. + # make sure the library variables are pointing to the new library
  55350. + dir=$output_objdir
  55351. + linklib=$newlib
  55352. + fi # test -n "$old_archive_from_expsyms_cmds"
  55353. +
  55354. + if test "$linkmode" = prog || test "$mode" != relink; then
  55355. + add_shlibpath=
  55356. + add_dir=
  55357. + add=
  55358. + lib_linked=yes
  55359. + case $hardcode_action in
  55360. + immediate | unsupported)
  55361. + if test "$hardcode_direct" = no; then
  55362. + add="$dir/$linklib"
  55363. + case $host in
  55364. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  55365. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  55366. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  55367. + *-*-unixware7*) add_dir="-L$dir" ;;
  55368. + *-*-darwin* )
  55369. + # if the lib is a (non-dlopened) module then we can not
  55370. + # link against it, someone is ignoring the earlier warnings
  55371. + if /usr/bin/file -L $add 2> /dev/null |
  55372. + $GREP ": [^:]* bundle" >/dev/null ; then
  55373. + if test "X$dlopenmodule" != "X$lib"; then
  55374. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  55375. + if test -z "$old_library" ; then
  55376. + $ECHO
  55377. + $ECHO "*** And there doesn't seem to be a static archive available"
  55378. + $ECHO "*** The link will probably fail, sorry"
  55379. + else
  55380. + add="$dir/$old_library"
  55381. + fi
  55382. + elif test -n "$old_library"; then
  55383. + add="$dir/$old_library"
  55384. + fi
  55385. + fi
  55386. + esac
  55387. + elif test "$hardcode_minus_L" = no; then
  55388. + case $host in
  55389. + *-*-sunos*) add_shlibpath="$dir" ;;
  55390. + esac
  55391. + add_dir="-L$dir"
  55392. + add="-l$name"
  55393. + elif test "$hardcode_shlibpath_var" = no; then
  55394. + add_shlibpath="$dir"
  55395. + add="-l$name"
  55396. + else
  55397. + lib_linked=no
  55398. + fi
  55399. + ;;
  55400. + relink)
  55401. + if test "$hardcode_direct" = yes &&
  55402. + test "$hardcode_direct_absolute" = no; then
  55403. + add="$dir/$linklib"
  55404. + elif test "$hardcode_minus_L" = yes; then
  55405. + add_dir="-L$dir"
  55406. + # Try looking first in the location we're being installed to.
  55407. + if test -n "$inst_prefix_dir"; then
  55408. + case $libdir in
  55409. + [\\/]*)
  55410. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  55411. + ;;
  55412. + esac
  55413. + fi
  55414. + add="-l$name"
  55415. + elif test "$hardcode_shlibpath_var" = yes; then
  55416. + add_shlibpath="$dir"
  55417. + add="-l$name"
  55418. + else
  55419. + lib_linked=no
  55420. + fi
  55421. + ;;
  55422. + *) lib_linked=no ;;
  55423. + esac
  55424. +
  55425. + if test "$lib_linked" != yes; then
  55426. + func_fatal_configuration "unsupported hardcode properties"
  55427. + fi
  55428. +
  55429. + if test -n "$add_shlibpath"; then
  55430. + case :$compile_shlibpath: in
  55431. + *":$add_shlibpath:"*) ;;
  55432. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  55433. + esac
  55434. + fi
  55435. + if test "$linkmode" = prog; then
  55436. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  55437. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  55438. + else
  55439. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  55440. + test -n "$add" && deplibs="$add $deplibs"
  55441. + if test "$hardcode_direct" != yes &&
  55442. + test "$hardcode_minus_L" != yes &&
  55443. + test "$hardcode_shlibpath_var" = yes; then
  55444. + case :$finalize_shlibpath: in
  55445. + *":$libdir:"*) ;;
  55446. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  55447. + esac
  55448. + fi
  55449. + fi
  55450. + fi
  55451. +
  55452. + if test "$linkmode" = prog || test "$mode" = relink; then
  55453. + add_shlibpath=
  55454. + add_dir=
  55455. + add=
  55456. + # Finalize command for both is simple: just hardcode it.
  55457. + if test "$hardcode_direct" = yes &&
  55458. + test "$hardcode_direct_absolute" = no; then
  55459. + add="$libdir/$linklib"
  55460. + elif test "$hardcode_minus_L" = yes; then
  55461. + add_dir="-L$libdir"
  55462. + add="-l$name"
  55463. + elif test "$hardcode_shlibpath_var" = yes; then
  55464. + case :$finalize_shlibpath: in
  55465. + *":$libdir:"*) ;;
  55466. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  55467. + esac
  55468. + add="-l$name"
  55469. + elif test "$hardcode_automatic" = yes; then
  55470. + if test -n "$inst_prefix_dir" &&
  55471. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  55472. + add="$inst_prefix_dir$libdir/$linklib"
  55473. + else
  55474. + add="$libdir/$linklib"
  55475. + fi
  55476. + else
  55477. + # We cannot seem to hardcode it, guess we'll fake it.
  55478. + add_dir="-L$libdir"
  55479. + # Try looking first in the location we're being installed to.
  55480. + if test -n "$inst_prefix_dir"; then
  55481. + case $libdir in
  55482. + [\\/]*)
  55483. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  55484. + ;;
  55485. + esac
  55486. + fi
  55487. + add="-l$name"
  55488. + fi
  55489. +
  55490. + if test "$linkmode" = prog; then
  55491. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  55492. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  55493. + else
  55494. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  55495. + test -n "$add" && deplibs="$add $deplibs"
  55496. + fi
  55497. + fi
  55498. + elif test "$linkmode" = prog; then
  55499. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  55500. + # is not unsupported. This is valid on all known static and
  55501. + # shared platforms.
  55502. + if test "$hardcode_direct" != unsupported; then
  55503. + test -n "$old_library" && linklib="$old_library"
  55504. + compile_deplibs="$dir/$linklib $compile_deplibs"
  55505. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  55506. + else
  55507. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  55508. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  55509. + fi
  55510. + elif test "$build_libtool_libs" = yes; then
  55511. + # Not a shared library
  55512. + if test "$deplibs_check_method" != pass_all; then
  55513. + # We're trying link a shared library against a static one
  55514. + # but the system doesn't support it.
  55515. +
  55516. + # Just print a warning and add the library to dependency_libs so
  55517. + # that the program can be linked against the static library.
  55518. + $ECHO
  55519. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  55520. + $ECHO "*** I have the capability to make that library automatically link in when"
  55521. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55522. + $ECHO "*** shared version of the library, which you do not appear to have."
  55523. + if test "$module" = yes; then
  55524. + $ECHO "*** But as you try to build a module library, libtool will still create "
  55525. + $ECHO "*** a static module, that should work as long as the dlopening application"
  55526. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  55527. + if test -z "$global_symbol_pipe"; then
  55528. + $ECHO
  55529. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  55530. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  55531. + $ECHO "*** not find such a program. So, this module is probably useless."
  55532. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  55533. + fi
  55534. + if test "$build_old_libs" = no; then
  55535. + build_libtool_libs=module
  55536. + build_old_libs=yes
  55537. + else
  55538. + build_libtool_libs=no
  55539. + fi
  55540. + fi
  55541. + else
  55542. + deplibs="$dir/$old_library $deplibs"
  55543. + link_static=yes
  55544. + fi
  55545. + fi # link shared/static library?
  55546. +
  55547. + if test "$linkmode" = lib; then
  55548. + if test -n "$dependency_libs" &&
  55549. + { test "$hardcode_into_libs" != yes ||
  55550. + test "$build_old_libs" = yes ||
  55551. + test "$link_static" = yes; }; then
  55552. + # Extract -R from dependency_libs
  55553. + temp_deplibs=
  55554. + for libdir in $dependency_libs; do
  55555. + case $libdir in
  55556. + -R*) func_stripname '-R' '' "$libdir"
  55557. + temp_xrpath=$func_stripname_result
  55558. + case " $xrpath " in
  55559. + *" $temp_xrpath "*) ;;
  55560. + *) xrpath="$xrpath $temp_xrpath";;
  55561. + esac;;
  55562. + *) temp_deplibs="$temp_deplibs $libdir";;
  55563. + esac
  55564. + done
  55565. + dependency_libs="$temp_deplibs"
  55566. + fi
  55567. +
  55568. + newlib_search_path="$newlib_search_path $absdir"
  55569. + # Link against this library
  55570. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  55571. + # ... and its dependency_libs
  55572. + tmp_libs=
  55573. + for deplib in $dependency_libs; do
  55574. + newdependency_libs="$deplib $newdependency_libs"
  55575. + if $opt_duplicate_deps ; then
  55576. + case "$tmp_libs " in
  55577. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  55578. + esac
  55579. + fi
  55580. + tmp_libs="$tmp_libs $deplib"
  55581. + done
  55582. +
  55583. + if test "$link_all_deplibs" != no; then
  55584. + # Add the search paths of all dependency libraries
  55585. + for deplib in $dependency_libs; do
  55586. + path=
  55587. + case $deplib in
  55588. + -L*) path="$deplib" ;;
  55589. + *.la)
  55590. + func_dirname "$deplib" "" "."
  55591. + dir="$func_dirname_result"
  55592. + # We need an absolute path.
  55593. + case $dir in
  55594. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  55595. + *)
  55596. + absdir=`cd "$dir" && pwd`
  55597. + if test -z "$absdir"; then
  55598. + func_warning "cannot determine absolute directory name of \`$dir'"
  55599. + absdir="$dir"
  55600. + fi
  55601. + ;;
  55602. + esac
  55603. + if $GREP "^installed=no" $deplib > /dev/null; then
  55604. + case $host in
  55605. + *-*-darwin*)
  55606. + depdepl=
  55607. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  55608. + if test -n "$deplibrary_names" ; then
  55609. + for tmp in $deplibrary_names ; do
  55610. + depdepl=$tmp
  55611. + done
  55612. + if test -f "$absdir/$objdir/$depdepl" ; then
  55613. + depdepl="$absdir/$objdir/$depdepl"
  55614. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  55615. + if test -z "$darwin_install_name"; then
  55616. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  55617. + fi
  55618. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  55619. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  55620. + path=
  55621. + fi
  55622. + fi
  55623. + ;;
  55624. + *)
  55625. + path="-L$absdir/$objdir"
  55626. + ;;
  55627. + esac
  55628. + else
  55629. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  55630. + test -z "$libdir" && \
  55631. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  55632. + test "$absdir" != "$libdir" && \
  55633. + func_warning "\`$deplib' seems to be moved"
  55634. +
  55635. + path="-L$absdir"
  55636. + fi
  55637. + ;;
  55638. + esac
  55639. + case " $deplibs " in
  55640. + *" $path "*) ;;
  55641. + *) deplibs="$path $deplibs" ;;
  55642. + esac
  55643. + done
  55644. + fi # link_all_deplibs != no
  55645. + fi # linkmode = lib
  55646. + done # for deplib in $libs
  55647. + if test "$pass" = link; then
  55648. + if test "$linkmode" = "prog"; then
  55649. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  55650. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  55651. + else
  55652. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55653. + fi
  55654. + fi
  55655. + dependency_libs="$newdependency_libs"
  55656. + if test "$pass" = dlpreopen; then
  55657. + # Link the dlpreopened libraries before other libraries
  55658. + for deplib in $save_deplibs; do
  55659. + deplibs="$deplib $deplibs"
  55660. + done
  55661. + fi
  55662. + if test "$pass" != dlopen; then
  55663. + if test "$pass" != conv; then
  55664. + # Make sure lib_search_path contains only unique directories.
  55665. + lib_search_path=
  55666. + for dir in $newlib_search_path; do
  55667. + case "$lib_search_path " in
  55668. + *" $dir "*) ;;
  55669. + *) lib_search_path="$lib_search_path $dir" ;;
  55670. + esac
  55671. + done
  55672. + newlib_search_path=
  55673. + fi
  55674. +
  55675. + if test "$linkmode,$pass" != "prog,link"; then
  55676. + vars="deplibs"
  55677. + else
  55678. + vars="compile_deplibs finalize_deplibs"
  55679. + fi
  55680. + for var in $vars dependency_libs; do
  55681. + # Add libraries to $var in reverse order
  55682. + eval tmp_libs=\"\$$var\"
  55683. + new_libs=
  55684. + for deplib in $tmp_libs; do
  55685. + # FIXME: Pedantically, this is the right thing to do, so
  55686. + # that some nasty dependency loop isn't accidentally
  55687. + # broken:
  55688. + #new_libs="$deplib $new_libs"
  55689. + # Pragmatically, this seems to cause very few problems in
  55690. + # practice:
  55691. + case $deplib in
  55692. + -L*) new_libs="$deplib $new_libs" ;;
  55693. + -R*) ;;
  55694. + *)
  55695. + # And here is the reason: when a library appears more
  55696. + # than once as an explicit dependence of a library, or
  55697. + # is implicitly linked in more than once by the
  55698. + # compiler, it is considered special, and multiple
  55699. + # occurrences thereof are not removed. Compare this
  55700. + # with having the same library being listed as a
  55701. + # dependency of multiple other libraries: in this case,
  55702. + # we know (pedantically, we assume) the library does not
  55703. + # need to be listed more than once, so we keep only the
  55704. + # last copy. This is not always right, but it is rare
  55705. + # enough that we require users that really mean to play
  55706. + # such unportable linking tricks to link the library
  55707. + # using -Wl,-lname, so that libtool does not consider it
  55708. + # for duplicate removal.
  55709. + case " $specialdeplibs " in
  55710. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  55711. + *)
  55712. + case " $new_libs " in
  55713. + *" $deplib "*) ;;
  55714. + *) new_libs="$deplib $new_libs" ;;
  55715. + esac
  55716. + ;;
  55717. + esac
  55718. + ;;
  55719. + esac
  55720. + done
  55721. + tmp_libs=
  55722. + for deplib in $new_libs; do
  55723. + case $deplib in
  55724. + -L*)
  55725. + case " $tmp_libs " in
  55726. + *" $deplib "*) ;;
  55727. + *) tmp_libs="$tmp_libs $deplib" ;;
  55728. + esac
  55729. + ;;
  55730. + *) tmp_libs="$tmp_libs $deplib" ;;
  55731. + esac
  55732. + done
  55733. + eval $var=\"$tmp_libs\"
  55734. + done # for var
  55735. + fi
  55736. + # Last step: remove runtime libs from dependency_libs
  55737. + # (they stay in deplibs)
  55738. + tmp_libs=
  55739. + for i in $dependency_libs ; do
  55740. + case " $predeps $postdeps $compiler_lib_search_path " in
  55741. + *" $i "*)
  55742. + i=""
  55743. + ;;
  55744. + esac
  55745. + if test -n "$i" ; then
  55746. + tmp_libs="$tmp_libs $i"
  55747. + fi
  55748. + done
  55749. + dependency_libs=$tmp_libs
  55750. + done # for pass
  55751. + if test "$linkmode" = prog; then
  55752. + dlfiles="$newdlfiles"
  55753. + fi
  55754. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  55755. + dlprefiles="$newdlprefiles"
  55756. + fi
  55757. +
  55758. + case $linkmode in
  55759. + oldlib)
  55760. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  55761. + func_warning "\`-dlopen' is ignored for archives"
  55762. + fi
  55763. +
  55764. + case " $deplibs" in
  55765. + *\ -l* | *\ -L*)
  55766. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  55767. + esac
  55768. +
  55769. + test -n "$rpath" && \
  55770. + func_warning "\`-rpath' is ignored for archives"
  55771. +
  55772. + test -n "$xrpath" && \
  55773. + func_warning "\`-R' is ignored for archives"
  55774. +
  55775. + test -n "$vinfo" && \
  55776. + func_warning "\`-version-info/-version-number' is ignored for archives"
  55777. +
  55778. + test -n "$release" && \
  55779. + func_warning "\`-release' is ignored for archives"
  55780. +
  55781. + test -n "$export_symbols$export_symbols_regex" && \
  55782. + func_warning "\`-export-symbols' is ignored for archives"
  55783. +
  55784. + # Now set the variables for building old libraries.
  55785. + build_libtool_libs=no
  55786. + oldlibs="$output"
  55787. + objs="$objs$old_deplibs"
  55788. + ;;
  55789. +
  55790. + lib)
  55791. + # Make sure we only generate libraries of the form `libNAME.la'.
  55792. + case $outputname in
  55793. + lib*)
  55794. + func_stripname 'lib' '.la' "$outputname"
  55795. + name=$func_stripname_result
  55796. + eval shared_ext=\"$shrext_cmds\"
  55797. + eval libname=\"$libname_spec\"
  55798. + ;;
  55799. + *)
  55800. + test "$module" = no && \
  55801. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  55802. +
  55803. + if test "$need_lib_prefix" != no; then
  55804. + # Add the "lib" prefix for modules if required
  55805. + func_stripname '' '.la' "$outputname"
  55806. + name=$func_stripname_result
  55807. + eval shared_ext=\"$shrext_cmds\"
  55808. + eval libname=\"$libname_spec\"
  55809. + else
  55810. + func_stripname '' '.la' "$outputname"
  55811. + libname=$func_stripname_result
  55812. + fi
  55813. + ;;
  55814. + esac
  55815. +
  55816. + if test -n "$objs"; then
  55817. + if test "$deplibs_check_method" != pass_all; then
  55818. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  55819. + else
  55820. + $ECHO
  55821. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  55822. + $ECHO "*** objects $objs is not portable!"
  55823. + libobjs="$libobjs $objs"
  55824. + fi
  55825. + fi
  55826. +
  55827. + test "$dlself" != no && \
  55828. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  55829. +
  55830. + set dummy $rpath
  55831. + shift
  55832. + test "$#" -gt 1 && \
  55833. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  55834. +
  55835. + install_libdir="$1"
  55836. +
  55837. + oldlibs=
  55838. + if test -z "$rpath"; then
  55839. + if test "$build_libtool_libs" = yes; then
  55840. + # Building a libtool convenience library.
  55841. + # Some compilers have problems with a `.al' extension so
  55842. + # convenience libraries should have the same extension an
  55843. + # archive normally would.
  55844. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  55845. + build_libtool_libs=convenience
  55846. + build_old_libs=yes
  55847. + fi
  55848. +
  55849. + test -n "$vinfo" && \
  55850. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  55851. +
  55852. + test -n "$release" && \
  55853. + func_warning "\`-release' is ignored for convenience libraries"
  55854. + else
  55855. +
  55856. + # Parse the version information argument.
  55857. + save_ifs="$IFS"; IFS=':'
  55858. + set dummy $vinfo 0 0 0
  55859. + shift
  55860. + IFS="$save_ifs"
  55861. +
  55862. + test -n "$7" && \
  55863. + func_fatal_help "too many parameters to \`-version-info'"
  55864. +
  55865. + # convert absolute version numbers to libtool ages
  55866. + # this retains compatibility with .la files and attempts
  55867. + # to make the code below a bit more comprehensible
  55868. +
  55869. + case $vinfo_number in
  55870. + yes)
  55871. + number_major="$1"
  55872. + number_minor="$2"
  55873. + number_revision="$3"
  55874. + #
  55875. + # There are really only two kinds -- those that
  55876. + # use the current revision as the major version
  55877. + # and those that subtract age and use age as
  55878. + # a minor version. But, then there is irix
  55879. + # which has an extra 1 added just for fun
  55880. + #
  55881. + case $version_type in
  55882. + darwin|linux|osf|windows|none)
  55883. + func_arith $number_major + $number_minor
  55884. + current=$func_arith_result
  55885. + age="$number_minor"
  55886. + revision="$number_revision"
  55887. + ;;
  55888. + freebsd-aout|freebsd-elf|sunos)
  55889. + current="$number_major"
  55890. + revision="$number_minor"
  55891. + age="0"
  55892. + ;;
  55893. + irix|nonstopux)
  55894. + func_arith $number_major + $number_minor
  55895. + current=$func_arith_result
  55896. + age="$number_minor"
  55897. + revision="$number_minor"
  55898. + lt_irix_increment=no
  55899. + ;;
  55900. + *)
  55901. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  55902. + ;;
  55903. + esac
  55904. + ;;
  55905. + no)
  55906. + current="$1"
  55907. + revision="$2"
  55908. + age="$3"
  55909. + ;;
  55910. + esac
  55911. +
  55912. + # Check that each of the things are valid numbers.
  55913. + case $current in
  55914. + 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]) ;;
  55915. + *)
  55916. + func_error "CURRENT \`$current' must be a nonnegative integer"
  55917. + func_fatal_error "\`$vinfo' is not valid version information"
  55918. + ;;
  55919. + esac
  55920. +
  55921. + case $revision in
  55922. + 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]) ;;
  55923. + *)
  55924. + func_error "REVISION \`$revision' must be a nonnegative integer"
  55925. + func_fatal_error "\`$vinfo' is not valid version information"
  55926. + ;;
  55927. + esac
  55928. +
  55929. + case $age in
  55930. + 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]) ;;
  55931. + *)
  55932. + func_error "AGE \`$age' must be a nonnegative integer"
  55933. + func_fatal_error "\`$vinfo' is not valid version information"
  55934. + ;;
  55935. + esac
  55936. +
  55937. + if test "$age" -gt "$current"; then
  55938. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  55939. + func_fatal_error "\`$vinfo' is not valid version information"
  55940. + fi
  55941. +
  55942. + # Calculate the version variables.
  55943. + major=
  55944. + versuffix=
  55945. + verstring=
  55946. + case $version_type in
  55947. + none) ;;
  55948. +
  55949. + darwin)
  55950. + # Like Linux, but with the current version available in
  55951. + # verstring for coding it into the library header
  55952. + func_arith $current - $age
  55953. + major=.$func_arith_result
  55954. + versuffix="$major.$age.$revision"
  55955. + # Darwin ld doesn't like 0 for these options...
  55956. + func_arith $current + 1
  55957. + minor_current=$func_arith_result
  55958. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  55959. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  55960. + ;;
  55961. +
  55962. + freebsd-aout)
  55963. + major=".$current"
  55964. + versuffix=".$current.$revision";
  55965. + ;;
  55966. +
  55967. + freebsd-elf)
  55968. + major=".$current"
  55969. + versuffix=".$current"
  55970. + ;;
  55971. +
  55972. + irix | nonstopux)
  55973. + if test "X$lt_irix_increment" = "Xno"; then
  55974. + func_arith $current - $age
  55975. + else
  55976. + func_arith $current - $age + 1
  55977. + fi
  55978. + major=$func_arith_result
  55979. +
  55980. + case $version_type in
  55981. + nonstopux) verstring_prefix=nonstopux ;;
  55982. + *) verstring_prefix=sgi ;;
  55983. + esac
  55984. + verstring="$verstring_prefix$major.$revision"
  55985. +
  55986. + # Add in all the interfaces that we are compatible with.
  55987. + loop=$revision
  55988. + while test "$loop" -ne 0; do
  55989. + func_arith $revision - $loop
  55990. + iface=$func_arith_result
  55991. + func_arith $loop - 1
  55992. + loop=$func_arith_result
  55993. + verstring="$verstring_prefix$major.$iface:$verstring"
  55994. + done
  55995. +
  55996. + # Before this point, $major must not contain `.'.
  55997. + major=.$major
  55998. + versuffix="$major.$revision"
  55999. + ;;
  56000. +
  56001. + linux)
  56002. + func_arith $current - $age
  56003. + major=.$func_arith_result
  56004. + versuffix="$major.$age.$revision"
  56005. + ;;
  56006. +
  56007. + osf)
  56008. + func_arith $current - $age
  56009. + major=.$func_arith_result
  56010. + versuffix=".$current.$age.$revision"
  56011. + verstring="$current.$age.$revision"
  56012. +
  56013. + # Add in all the interfaces that we are compatible with.
  56014. + loop=$age
  56015. + while test "$loop" -ne 0; do
  56016. + func_arith $current - $loop
  56017. + iface=$func_arith_result
  56018. + func_arith $loop - 1
  56019. + loop=$func_arith_result
  56020. + verstring="$verstring:${iface}.0"
  56021. + done
  56022. +
  56023. + # Make executables depend on our current version.
  56024. + verstring="$verstring:${current}.0"
  56025. + ;;
  56026. +
  56027. + qnx)
  56028. + major=".$current"
  56029. + versuffix=".$current"
  56030. + ;;
  56031. +
  56032. + sunos)
  56033. + major=".$current"
  56034. + versuffix=".$current.$revision"
  56035. + ;;
  56036. +
  56037. + windows)
  56038. + # Use '-' rather than '.', since we only want one
  56039. + # extension on DOS 8.3 filesystems.
  56040. + func_arith $current - $age
  56041. + major=$func_arith_result
  56042. + versuffix="-$major"
  56043. + ;;
  56044. +
  56045. + *)
  56046. + func_fatal_configuration "unknown library version type \`$version_type'"
  56047. + ;;
  56048. + esac
  56049. +
  56050. + # Clear the version info if we defaulted, and they specified a release.
  56051. + if test -z "$vinfo" && test -n "$release"; then
  56052. + major=
  56053. + case $version_type in
  56054. + darwin)
  56055. + # we can't check for "0.0" in archive_cmds due to quoting
  56056. + # problems, so we reset it completely
  56057. + verstring=
  56058. + ;;
  56059. + *)
  56060. + verstring="0.0"
  56061. + ;;
  56062. + esac
  56063. + if test "$need_version" = no; then
  56064. + versuffix=
  56065. + else
  56066. + versuffix=".0.0"
  56067. + fi
  56068. + fi
  56069. +
  56070. + # Remove version info from name if versioning should be avoided
  56071. + if test "$avoid_version" = yes && test "$need_version" = no; then
  56072. + major=
  56073. + versuffix=
  56074. + verstring=""
  56075. + fi
  56076. +
  56077. + # Check to see if the archive will have undefined symbols.
  56078. + if test "$allow_undefined" = yes; then
  56079. + if test "$allow_undefined_flag" = unsupported; then
  56080. + func_warning "undefined symbols not allowed in $host shared libraries"
  56081. + build_libtool_libs=no
  56082. + build_old_libs=yes
  56083. + fi
  56084. + else
  56085. + # Don't allow undefined symbols.
  56086. + allow_undefined_flag="$no_undefined_flag"
  56087. + fi
  56088. +
  56089. + fi
  56090. +
  56091. + func_generate_dlsyms "$libname" "$libname" "yes"
  56092. + libobjs="$libobjs $symfileobj"
  56093. + test "X$libobjs" = "X " && libobjs=
  56094. +
  56095. + if test "$mode" != relink; then
  56096. + # Remove our outputs, but don't remove object files since they
  56097. + # may have been created when compiling PIC objects.
  56098. + removelist=
  56099. + tempremovelist=`$ECHO "$output_objdir/*"`
  56100. + for p in $tempremovelist; do
  56101. + case $p in
  56102. + *.$objext | *.gcno)
  56103. + ;;
  56104. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  56105. + if test "X$precious_files_regex" != "X"; then
  56106. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  56107. + then
  56108. + continue
  56109. + fi
  56110. + fi
  56111. + removelist="$removelist $p"
  56112. + ;;
  56113. + *) ;;
  56114. + esac
  56115. + done
  56116. + test -n "$removelist" && \
  56117. + func_show_eval "${RM}r \$removelist"
  56118. + fi
  56119. +
  56120. + # Now set the variables for building old libraries.
  56121. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  56122. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  56123. +
  56124. + # Transform .lo files to .o files.
  56125. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  56126. + fi
  56127. +
  56128. + # Eliminate all temporary directories.
  56129. + #for path in $notinst_path; do
  56130. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  56131. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  56132. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  56133. + #done
  56134. +
  56135. + if test -n "$xrpath"; then
  56136. + # If the user specified any rpath flags, then add them.
  56137. + temp_xrpath=
  56138. + for libdir in $xrpath; do
  56139. + temp_xrpath="$temp_xrpath -R$libdir"
  56140. + case "$finalize_rpath " in
  56141. + *" $libdir "*) ;;
  56142. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  56143. + esac
  56144. + done
  56145. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  56146. + dependency_libs="$temp_xrpath $dependency_libs"
  56147. + fi
  56148. + fi
  56149. +
  56150. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  56151. + old_dlfiles="$dlfiles"
  56152. + dlfiles=
  56153. + for lib in $old_dlfiles; do
  56154. + case " $dlprefiles $dlfiles " in
  56155. + *" $lib "*) ;;
  56156. + *) dlfiles="$dlfiles $lib" ;;
  56157. + esac
  56158. + done
  56159. +
  56160. + # Make sure dlprefiles contains only unique files
  56161. + old_dlprefiles="$dlprefiles"
  56162. + dlprefiles=
  56163. + for lib in $old_dlprefiles; do
  56164. + case "$dlprefiles " in
  56165. + *" $lib "*) ;;
  56166. + *) dlprefiles="$dlprefiles $lib" ;;
  56167. + esac
  56168. + done
  56169. +
  56170. + if test "$build_libtool_libs" = yes; then
  56171. + if test -n "$rpath"; then
  56172. + case $host in
  56173. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  56174. + # these systems don't actually have a c library (as such)!
  56175. + ;;
  56176. + *-*-rhapsody* | *-*-darwin1.[012])
  56177. + # Rhapsody C library is in the System framework
  56178. + deplibs="$deplibs System.ltframework"
  56179. + ;;
  56180. + *-*-netbsd*)
  56181. + # Don't link with libc until the a.out ld.so is fixed.
  56182. + ;;
  56183. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56184. + # Do not include libc due to us having libc/libc_r.
  56185. + ;;
  56186. + *-*-sco3.2v5* | *-*-sco5v6*)
  56187. + # Causes problems with __ctype
  56188. + ;;
  56189. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  56190. + # Compiler inserts libc in the correct place for threads to work
  56191. + ;;
  56192. + *)
  56193. + # Add libc to deplibs on all other systems if necessary.
  56194. + if test "$build_libtool_need_lc" = "yes"; then
  56195. + deplibs="$deplibs -lc"
  56196. + fi
  56197. + ;;
  56198. + esac
  56199. + fi
  56200. +
  56201. + # Transform deplibs into only deplibs that can be linked in shared.
  56202. + name_save=$name
  56203. + libname_save=$libname
  56204. + release_save=$release
  56205. + versuffix_save=$versuffix
  56206. + major_save=$major
  56207. + # I'm not sure if I'm treating the release correctly. I think
  56208. + # release should show up in the -l (ie -lgmp5) so we don't want to
  56209. + # add it in twice. Is that correct?
  56210. + release=""
  56211. + versuffix=""
  56212. + major=""
  56213. + newdeplibs=
  56214. + droppeddeps=no
  56215. + case $deplibs_check_method in
  56216. + pass_all)
  56217. + # Don't check for shared/static. Everything works.
  56218. + # This might be a little naive. We might want to check
  56219. + # whether the library exists or not. But this is on
  56220. + # osf3 & osf4 and I'm not really sure... Just
  56221. + # implementing what was already the behavior.
  56222. + newdeplibs=$deplibs
  56223. + ;;
  56224. + test_compile)
  56225. + # This code stresses the "libraries are programs" paradigm to its
  56226. + # limits. Maybe even breaks it. We compile a program, linking it
  56227. + # against the deplibs as a proxy for the library. Then we can check
  56228. + # whether they linked in statically or dynamically with ldd.
  56229. + $opt_dry_run || $RM conftest.c
  56230. + cat > conftest.c <<EOF
  56231. + int main() { return 0; }
  56232. +EOF
  56233. + $opt_dry_run || $RM conftest
  56234. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  56235. + ldd_output=`ldd conftest`
  56236. + for i in $deplibs; do
  56237. + case $i in
  56238. + -l*)
  56239. + func_stripname -l '' "$i"
  56240. + name=$func_stripname_result
  56241. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56242. + case " $predeps $postdeps " in
  56243. + *" $i "*)
  56244. + newdeplibs="$newdeplibs $i"
  56245. + i=""
  56246. + ;;
  56247. + esac
  56248. + fi
  56249. + if test -n "$i" ; then
  56250. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56251. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  56252. + set dummy $deplib_matches; shift
  56253. + deplib_match=$1
  56254. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  56255. + newdeplibs="$newdeplibs $i"
  56256. + else
  56257. + droppeddeps=yes
  56258. + $ECHO
  56259. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  56260. + $ECHO "*** I have the capability to make that library automatically link in when"
  56261. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56262. + $ECHO "*** shared version of the library, which I believe you do not have"
  56263. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  56264. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  56265. + fi
  56266. + fi
  56267. + ;;
  56268. + *)
  56269. + newdeplibs="$newdeplibs $i"
  56270. + ;;
  56271. + esac
  56272. + done
  56273. + else
  56274. + # Error occurred in the first compile. Let's try to salvage
  56275. + # the situation: Compile a separate program for each library.
  56276. + for i in $deplibs; do
  56277. + case $i in
  56278. + -l*)
  56279. + func_stripname -l '' "$i"
  56280. + name=$func_stripname_result
  56281. + $opt_dry_run || $RM conftest
  56282. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  56283. + ldd_output=`ldd conftest`
  56284. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56285. + case " $predeps $postdeps " in
  56286. + *" $i "*)
  56287. + newdeplibs="$newdeplibs $i"
  56288. + i=""
  56289. + ;;
  56290. + esac
  56291. + fi
  56292. + if test -n "$i" ; then
  56293. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56294. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  56295. + set dummy $deplib_matches; shift
  56296. + deplib_match=$1
  56297. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  56298. + newdeplibs="$newdeplibs $i"
  56299. + else
  56300. + droppeddeps=yes
  56301. + $ECHO
  56302. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  56303. + $ECHO "*** I have the capability to make that library automatically link in when"
  56304. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56305. + $ECHO "*** shared version of the library, which you do not appear to have"
  56306. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  56307. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  56308. + fi
  56309. + fi
  56310. + else
  56311. + droppeddeps=yes
  56312. + $ECHO
  56313. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  56314. + $ECHO "*** make it link in! You will probably need to install it or some"
  56315. + $ECHO "*** library that it depends on before this library will be fully"
  56316. + $ECHO "*** functional. Installing it before continuing would be even better."
  56317. + fi
  56318. + ;;
  56319. + *)
  56320. + newdeplibs="$newdeplibs $i"
  56321. + ;;
  56322. + esac
  56323. + done
  56324. + fi
  56325. + ;;
  56326. + file_magic*)
  56327. + set dummy $deplibs_check_method; shift
  56328. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56329. + for a_deplib in $deplibs; do
  56330. + case $a_deplib in
  56331. + -l*)
  56332. + func_stripname -l '' "$a_deplib"
  56333. + name=$func_stripname_result
  56334. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56335. + case " $predeps $postdeps " in
  56336. + *" $a_deplib "*)
  56337. + newdeplibs="$newdeplibs $a_deplib"
  56338. + a_deplib=""
  56339. + ;;
  56340. + esac
  56341. + fi
  56342. + if test -n "$a_deplib" ; then
  56343. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56344. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  56345. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  56346. + for potent_lib in $potential_libs; do
  56347. + # Follow soft links.
  56348. + if ls -lLd "$potent_lib" 2>/dev/null |
  56349. + $GREP " -> " >/dev/null; then
  56350. + continue
  56351. + fi
  56352. + # The statement above tries to avoid entering an
  56353. + # endless loop below, in case of cyclic links.
  56354. + # We might still enter an endless loop, since a link
  56355. + # loop can be closed while we follow links,
  56356. + # but so what?
  56357. + potlib="$potent_lib"
  56358. + while test -h "$potlib" 2>/dev/null; do
  56359. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  56360. + case $potliblink in
  56361. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  56362. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  56363. + esac
  56364. + done
  56365. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  56366. + $SED -e 10q |
  56367. + $EGREP "$file_magic_regex" > /dev/null; then
  56368. + newdeplibs="$newdeplibs $a_deplib"
  56369. + a_deplib=""
  56370. + break 2
  56371. + fi
  56372. + done
  56373. + done
  56374. + fi
  56375. + if test -n "$a_deplib" ; then
  56376. + droppeddeps=yes
  56377. + $ECHO
  56378. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  56379. + $ECHO "*** I have the capability to make that library automatically link in when"
  56380. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56381. + $ECHO "*** shared version of the library, which you do not appear to have"
  56382. + $ECHO "*** because I did check the linker path looking for a file starting"
  56383. + if test -z "$potlib" ; then
  56384. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  56385. + else
  56386. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  56387. + $ECHO "*** using a file magic. Last file checked: $potlib"
  56388. + fi
  56389. + fi
  56390. + ;;
  56391. + *)
  56392. + # Add a -L argument.
  56393. + newdeplibs="$newdeplibs $a_deplib"
  56394. + ;;
  56395. + esac
  56396. + done # Gone through all deplibs.
  56397. + ;;
  56398. + match_pattern*)
  56399. + set dummy $deplibs_check_method; shift
  56400. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56401. + for a_deplib in $deplibs; do
  56402. + case $a_deplib in
  56403. + -l*)
  56404. + func_stripname -l '' "$a_deplib"
  56405. + name=$func_stripname_result
  56406. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56407. + case " $predeps $postdeps " in
  56408. + *" $a_deplib "*)
  56409. + newdeplibs="$newdeplibs $a_deplib"
  56410. + a_deplib=""
  56411. + ;;
  56412. + esac
  56413. + fi
  56414. + if test -n "$a_deplib" ; then
  56415. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56416. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  56417. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  56418. + for potent_lib in $potential_libs; do
  56419. + potlib="$potent_lib" # see symlink-check above in file_magic test
  56420. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  56421. + $EGREP "$match_pattern_regex" > /dev/null; then
  56422. + newdeplibs="$newdeplibs $a_deplib"
  56423. + a_deplib=""
  56424. + break 2
  56425. + fi
  56426. + done
  56427. + done
  56428. + fi
  56429. + if test -n "$a_deplib" ; then
  56430. + droppeddeps=yes
  56431. + $ECHO
  56432. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  56433. + $ECHO "*** I have the capability to make that library automatically link in when"
  56434. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56435. + $ECHO "*** shared version of the library, which you do not appear to have"
  56436. + $ECHO "*** because I did check the linker path looking for a file starting"
  56437. + if test -z "$potlib" ; then
  56438. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  56439. + else
  56440. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  56441. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  56442. + fi
  56443. + fi
  56444. + ;;
  56445. + *)
  56446. + # Add a -L argument.
  56447. + newdeplibs="$newdeplibs $a_deplib"
  56448. + ;;
  56449. + esac
  56450. + done # Gone through all deplibs.
  56451. + ;;
  56452. + none | unknown | *)
  56453. + newdeplibs=""
  56454. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  56455. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  56456. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56457. + for i in $predeps $postdeps ; do
  56458. + # can't use Xsed below, because $i might contain '/'
  56459. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  56460. + done
  56461. + fi
  56462. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  56463. + $GREP . >/dev/null; then
  56464. + $ECHO
  56465. + if test "X$deplibs_check_method" = "Xnone"; then
  56466. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  56467. + else
  56468. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  56469. + fi
  56470. + $ECHO "*** All declared inter-library dependencies are being dropped."
  56471. + droppeddeps=yes
  56472. + fi
  56473. + ;;
  56474. + esac
  56475. + versuffix=$versuffix_save
  56476. + major=$major_save
  56477. + release=$release_save
  56478. + libname=$libname_save
  56479. + name=$name_save
  56480. +
  56481. + case $host in
  56482. + *-*-rhapsody* | *-*-darwin1.[012])
  56483. + # On Rhapsody replace the C library with the System framework
  56484. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  56485. + ;;
  56486. + esac
  56487. +
  56488. + if test "$droppeddeps" = yes; then
  56489. + if test "$module" = yes; then
  56490. + $ECHO
  56491. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  56492. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  56493. + $ECHO "*** a static module, that should work as long as the dlopening"
  56494. + $ECHO "*** application is linked with the -dlopen flag."
  56495. + if test -z "$global_symbol_pipe"; then
  56496. + $ECHO
  56497. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  56498. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  56499. + $ECHO "*** not find such a program. So, this module is probably useless."
  56500. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  56501. + fi
  56502. + if test "$build_old_libs" = no; then
  56503. + oldlibs="$output_objdir/$libname.$libext"
  56504. + build_libtool_libs=module
  56505. + build_old_libs=yes
  56506. + else
  56507. + build_libtool_libs=no
  56508. + fi
  56509. + else
  56510. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  56511. + $ECHO "*** automatically added whenever a program is linked with this library"
  56512. + $ECHO "*** or is declared to -dlopen it."
  56513. +
  56514. + if test "$allow_undefined" = no; then
  56515. + $ECHO
  56516. + $ECHO "*** Since this library must not contain undefined symbols,"
  56517. + $ECHO "*** because either the platform does not support them or"
  56518. + $ECHO "*** it was explicitly requested with -no-undefined,"
  56519. + $ECHO "*** libtool will only create a static version of it."
  56520. + if test "$build_old_libs" = no; then
  56521. + oldlibs="$output_objdir/$libname.$libext"
  56522. + build_libtool_libs=module
  56523. + build_old_libs=yes
  56524. + else
  56525. + build_libtool_libs=no
  56526. + fi
  56527. + fi
  56528. + fi
  56529. + fi
  56530. + # Done checking deplibs!
  56531. + deplibs=$newdeplibs
  56532. + fi
  56533. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  56534. + case $host in
  56535. + *-*-darwin*)
  56536. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56537. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56538. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56539. + ;;
  56540. + esac
  56541. +
  56542. + # move library search paths that coincide with paths to not yet
  56543. + # installed libraries to the beginning of the library search list
  56544. + new_libs=
  56545. + for path in $notinst_path; do
  56546. + case " $new_libs " in
  56547. + *" -L$path/$objdir "*) ;;
  56548. + *)
  56549. + case " $deplibs " in
  56550. + *" -L$path/$objdir "*)
  56551. + new_libs="$new_libs -L$path/$objdir" ;;
  56552. + esac
  56553. + ;;
  56554. + esac
  56555. + done
  56556. + for deplib in $deplibs; do
  56557. + case $deplib in
  56558. + -L*)
  56559. + case " $new_libs " in
  56560. + *" $deplib "*) ;;
  56561. + *) new_libs="$new_libs $deplib" ;;
  56562. + esac
  56563. + ;;
  56564. + *) new_libs="$new_libs $deplib" ;;
  56565. + esac
  56566. + done
  56567. + deplibs="$new_libs"
  56568. +
  56569. + # All the library-specific variables (install_libdir is set above).
  56570. + library_names=
  56571. + old_library=
  56572. + dlname=
  56573. +
  56574. + # Test again, we may have decided not to build it any more
  56575. + if test "$build_libtool_libs" = yes; then
  56576. + if test "$hardcode_into_libs" = yes; then
  56577. + # Hardcode the library paths
  56578. + hardcode_libdirs=
  56579. + dep_rpath=
  56580. + rpath="$finalize_rpath"
  56581. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  56582. + for libdir in $rpath; do
  56583. + if test -n "$hardcode_libdir_flag_spec"; then
  56584. + if test -n "$hardcode_libdir_separator"; then
  56585. + if test -z "$hardcode_libdirs"; then
  56586. + hardcode_libdirs="$libdir"
  56587. + else
  56588. + # Just accumulate the unique libdirs.
  56589. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  56590. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  56591. + ;;
  56592. + *)
  56593. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  56594. + ;;
  56595. + esac
  56596. + fi
  56597. + else
  56598. + eval flag=\"$hardcode_libdir_flag_spec\"
  56599. + dep_rpath="$dep_rpath $flag"
  56600. + fi
  56601. + elif test -n "$runpath_var"; then
  56602. + case "$perm_rpath " in
  56603. + *" $libdir "*) ;;
  56604. + *) perm_rpath="$perm_rpath $libdir" ;;
  56605. + esac
  56606. + fi
  56607. + done
  56608. + # Substitute the hardcoded libdirs into the rpath.
  56609. + if test -n "$hardcode_libdir_separator" &&
  56610. + test -n "$hardcode_libdirs"; then
  56611. + libdir="$hardcode_libdirs"
  56612. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  56613. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  56614. + else
  56615. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  56616. + fi
  56617. + fi
  56618. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  56619. + # We should set the runpath_var.
  56620. + rpath=
  56621. + for dir in $perm_rpath; do
  56622. + rpath="$rpath$dir:"
  56623. + done
  56624. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  56625. + fi
  56626. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  56627. + fi
  56628. - # Try to get the absolute directory name.
  56629. - absdir=\`cd \"\$thisdir\" && pwd\`
  56630. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  56631. -"
  56632. + shlibpath="$finalize_shlibpath"
  56633. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  56634. + if test -n "$shlibpath"; then
  56635. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  56636. + fi
  56637. - if test "$fast_install" = yes; then
  56638. - $echo >> $output "\
  56639. - program=lt-'$outputname'$exeext
  56640. - progdir=\"\$thisdir/$objdir\"
  56641. + # Get the real and link names of the library.
  56642. + eval shared_ext=\"$shrext_cmds\"
  56643. + eval library_names=\"$library_names_spec\"
  56644. + set dummy $library_names
  56645. + shift
  56646. + realname="$1"
  56647. + shift
  56648. - if test ! -f \"\$progdir/\$program\" || \\
  56649. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  56650. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  56651. + if test -n "$soname_spec"; then
  56652. + eval soname=\"$soname_spec\"
  56653. + else
  56654. + soname="$realname"
  56655. + fi
  56656. + if test -z "$dlname"; then
  56657. + dlname=$soname
  56658. + fi
  56659. - file=\"\$\$-\$program\"
  56660. + lib="$output_objdir/$realname"
  56661. + linknames=
  56662. + for link
  56663. + do
  56664. + linknames="$linknames $link"
  56665. + done
  56666. - if test ! -d \"\$progdir\"; then
  56667. - $mkdir \"\$progdir\"
  56668. - else
  56669. - $rm \"\$progdir/\$file\"
  56670. - fi"
  56671. + # Use standard objects if they are pic
  56672. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  56673. + test "X$libobjs" = "X " && libobjs=
  56674. - $echo >> $output "\
  56675. + delfiles=
  56676. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  56677. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  56678. + export_symbols="$output_objdir/$libname.uexp"
  56679. + delfiles="$delfiles $export_symbols"
  56680. + fi
  56681. +
  56682. + orig_export_symbols=
  56683. + case $host_os in
  56684. + cygwin* | mingw* | cegcc*)
  56685. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  56686. + # exporting using user supplied symfile
  56687. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  56688. + # and it's NOT already a .def file. Must figure out
  56689. + # which of the given symbols are data symbols and tag
  56690. + # them as such. So, trigger use of export_symbols_cmds.
  56691. + # export_symbols gets reassigned inside the "prepare
  56692. + # the list of exported symbols" if statement, so the
  56693. + # include_expsyms logic still works.
  56694. + orig_export_symbols="$export_symbols"
  56695. + export_symbols=
  56696. + always_export_symbols=yes
  56697. + fi
  56698. + fi
  56699. + ;;
  56700. + esac
  56701. - # relink executable if necessary
  56702. - if test -n \"\$relink_command\"; then
  56703. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  56704. - else
  56705. - $echo \"\$relink_command_output\" >&2
  56706. - $rm \"\$progdir/\$file\"
  56707. - exit $EXIT_FAILURE
  56708. - fi
  56709. - fi
  56710. + # Prepare the list of exported symbols
  56711. + if test -z "$export_symbols"; then
  56712. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  56713. + func_verbose "generating symbol list for \`$libname.la'"
  56714. + export_symbols="$output_objdir/$libname.exp"
  56715. + $opt_dry_run || $RM $export_symbols
  56716. + cmds=$export_symbols_cmds
  56717. + save_ifs="$IFS"; IFS='~'
  56718. + for cmd in $cmds; do
  56719. + IFS="$save_ifs"
  56720. + eval cmd=\"$cmd\"
  56721. + func_len " $cmd"
  56722. + len=$func_len_result
  56723. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56724. + func_show_eval "$cmd" 'exit $?'
  56725. + skipped_export=false
  56726. + else
  56727. + # The command line is too long to execute in one step.
  56728. + func_verbose "using reloadable object file for export list..."
  56729. + skipped_export=:
  56730. + # Break out early, otherwise skipped_export may be
  56731. + # set to false by a later but shorter cmd.
  56732. + break
  56733. + fi
  56734. + done
  56735. + IFS="$save_ifs"
  56736. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  56737. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  56738. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  56739. + fi
  56740. + fi
  56741. + fi
  56742. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  56743. - { $rm \"\$progdir/\$program\";
  56744. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  56745. - $rm \"\$progdir/\$file\"
  56746. - fi"
  56747. - else
  56748. - $echo >> $output "\
  56749. - program='$outputname'
  56750. - progdir=\"\$thisdir/$objdir\"
  56751. -"
  56752. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  56753. + tmp_export_symbols="$export_symbols"
  56754. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  56755. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  56756. + fi
  56757. +
  56758. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  56759. + # The given exports_symbols file has to be filtered, so filter it.
  56760. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  56761. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  56762. + # 's' commands which not all seds can handle. GNU sed should be fine
  56763. + # though. Also, the filter scales superlinearly with the number of
  56764. + # global variables. join(1) would be nice here, but unfortunately
  56765. + # isn't a blessed tool.
  56766. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  56767. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  56768. + export_symbols=$output_objdir/$libname.def
  56769. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  56770. fi
  56771. - $echo >> $output "\
  56772. + tmp_deplibs=
  56773. + for test_deplib in $deplibs; do
  56774. + case " $convenience " in
  56775. + *" $test_deplib "*) ;;
  56776. + *)
  56777. + tmp_deplibs="$tmp_deplibs $test_deplib"
  56778. + ;;
  56779. + esac
  56780. + done
  56781. + deplibs="$tmp_deplibs"
  56782. - if test -f \"\$progdir/\$program\"; then"
  56783. + if test -n "$convenience"; then
  56784. + if test -n "$whole_archive_flag_spec" &&
  56785. + test "$compiler_needs_object" = yes &&
  56786. + test -z "$libobjs"; then
  56787. + # extract the archives, so we have objects to list.
  56788. + # TODO: could optimize this to just extract one archive.
  56789. + whole_archive_flag_spec=
  56790. + fi
  56791. + if test -n "$whole_archive_flag_spec"; then
  56792. + save_libobjs=$libobjs
  56793. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  56794. + test "X$libobjs" = "X " && libobjs=
  56795. + else
  56796. + gentop="$output_objdir/${outputname}x"
  56797. + generated="$generated $gentop"
  56798. - # Export our shlibpath_var if we have one.
  56799. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  56800. - $echo >> $output "\
  56801. - # Add our own library path to $shlibpath_var
  56802. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  56803. + func_extract_archives $gentop $convenience
  56804. + libobjs="$libobjs $func_extract_archives_result"
  56805. + test "X$libobjs" = "X " && libobjs=
  56806. + fi
  56807. + fi
  56808. - # Some systems cannot cope with colon-terminated $shlibpath_var
  56809. - # The second colon is a workaround for a bug in BeOS R4 sed
  56810. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  56811. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  56812. + eval flag=\"$thread_safe_flag_spec\"
  56813. + linker_flags="$linker_flags $flag"
  56814. + fi
  56815. - export $shlibpath_var
  56816. -"
  56817. + # Make a backup of the uninstalled library when relinking
  56818. + if test "$mode" = relink; then
  56819. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  56820. fi
  56821. - # fixup the dll searchpath if we need to.
  56822. - if test -n "$dllsearchpath"; then
  56823. - $echo >> $output "\
  56824. - # Add the dll search path components to the executable PATH
  56825. - PATH=$dllsearchpath:\$PATH
  56826. -"
  56827. + # Do each of the archive commands.
  56828. + if test "$module" = yes && test -n "$module_cmds" ; then
  56829. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  56830. + eval test_cmds=\"$module_expsym_cmds\"
  56831. + cmds=$module_expsym_cmds
  56832. + else
  56833. + eval test_cmds=\"$module_cmds\"
  56834. + cmds=$module_cmds
  56835. + fi
  56836. + else
  56837. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  56838. + eval test_cmds=\"$archive_expsym_cmds\"
  56839. + cmds=$archive_expsym_cmds
  56840. + else
  56841. + eval test_cmds=\"$archive_cmds\"
  56842. + cmds=$archive_cmds
  56843. + fi
  56844. fi
  56845. - $echo >> $output "\
  56846. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  56847. - # Run the actual program with our arguments.
  56848. -"
  56849. - case $host in
  56850. - # Backslashes separate directories on plain windows
  56851. - *-*-mingw | *-*-os2*)
  56852. - $echo >> $output "\
  56853. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  56854. -"
  56855. - ;;
  56856. + if test "X$skipped_export" != "X:" &&
  56857. + func_len " $test_cmds" &&
  56858. + len=$func_len_result &&
  56859. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56860. + :
  56861. + else
  56862. + # The command line is too long to link in one step, link piecewise
  56863. + # or, if using GNU ld and skipped_export is not :, use a linker
  56864. + # script.
  56865. - *)
  56866. - $echo >> $output "\
  56867. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  56868. -"
  56869. - ;;
  56870. - esac
  56871. - $echo >> $output "\
  56872. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  56873. - exit $EXIT_FAILURE
  56874. - fi
  56875. - else
  56876. - # The program doesn't exist.
  56877. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  56878. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  56879. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  56880. - exit $EXIT_FAILURE
  56881. - fi
  56882. -fi\
  56883. -"
  56884. - chmod +x $output
  56885. - fi
  56886. - exit $EXIT_SUCCESS
  56887. - ;;
  56888. - esac
  56889. + # Save the value of $output and $libobjs because we want to
  56890. + # use them later. If we have whole_archive_flag_spec, we
  56891. + # want to use save_libobjs as it was before
  56892. + # whole_archive_flag_spec was expanded, because we can't
  56893. + # assume the linker understands whole_archive_flag_spec.
  56894. + # This may have to be revisited, in case too many
  56895. + # convenience libraries get linked in and end up exceeding
  56896. + # the spec.
  56897. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  56898. + save_libobjs=$libobjs
  56899. + fi
  56900. + save_output=$output
  56901. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  56902. - # See if we need to build an old-fashioned archive.
  56903. - for oldlib in $oldlibs; do
  56904. + # Clear the reloadable object creation command queue and
  56905. + # initialize k to one.
  56906. + test_cmds=
  56907. + concat_cmds=
  56908. + objlist=
  56909. + last_robj=
  56910. + k=1
  56911. - if test "$build_libtool_libs" = convenience; then
  56912. - oldobjs="$libobjs_save"
  56913. - addlibs="$convenience"
  56914. - build_libtool_libs=no
  56915. - else
  56916. - if test "$build_libtool_libs" = module; then
  56917. - oldobjs="$libobjs_save"
  56918. - build_libtool_libs=no
  56919. - else
  56920. - oldobjs="$old_deplibs $non_pic_objects"
  56921. - fi
  56922. - addlibs="$old_convenience"
  56923. - fi
  56924. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  56925. + output=${output_objdir}/${output_la}.lnkscript
  56926. + func_verbose "creating GNU ld script: $output"
  56927. + $ECHO 'INPUT (' > $output
  56928. + for obj in $save_libobjs
  56929. + do
  56930. + $ECHO "$obj" >> $output
  56931. + done
  56932. + $ECHO ')' >> $output
  56933. + delfiles="$delfiles $output"
  56934. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  56935. + output=${output_objdir}/${output_la}.lnk
  56936. + func_verbose "creating linker input file list: $output"
  56937. + : > $output
  56938. + set x $save_libobjs
  56939. + shift
  56940. + firstobj=
  56941. + if test "$compiler_needs_object" = yes; then
  56942. + firstobj="$1 "
  56943. + shift
  56944. + fi
  56945. + for obj
  56946. + do
  56947. + $ECHO "$obj" >> $output
  56948. + done
  56949. + delfiles="$delfiles $output"
  56950. + output=$firstobj\"$file_list_spec$output\"
  56951. + else
  56952. + if test -n "$save_libobjs"; then
  56953. + func_verbose "creating reloadable object files..."
  56954. + output=$output_objdir/$output_la-${k}.$objext
  56955. + eval test_cmds=\"$reload_cmds\"
  56956. + func_len " $test_cmds"
  56957. + len0=$func_len_result
  56958. + len=$len0
  56959. +
  56960. + # Loop over the list of objects to be linked.
  56961. + for obj in $save_libobjs
  56962. + do
  56963. + func_len " $obj"
  56964. + func_arith $len + $func_len_result
  56965. + len=$func_arith_result
  56966. + if test "X$objlist" = X ||
  56967. + test "$len" -lt "$max_cmd_len"; then
  56968. + func_append objlist " $obj"
  56969. + else
  56970. + # The command $test_cmds is almost too long, add a
  56971. + # command to the queue.
  56972. + if test "$k" -eq 1 ; then
  56973. + # The first file doesn't have a previous command to add.
  56974. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  56975. + else
  56976. + # All subsequent reloadable object files will link in
  56977. + # the last one created.
  56978. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  56979. + fi
  56980. + last_robj=$output_objdir/$output_la-${k}.$objext
  56981. + func_arith $k + 1
  56982. + k=$func_arith_result
  56983. + output=$output_objdir/$output_la-${k}.$objext
  56984. + objlist=$obj
  56985. + func_len " $last_robj"
  56986. + func_arith $len0 + $func_len_result
  56987. + len=$func_arith_result
  56988. + fi
  56989. + done
  56990. + # Handle the remaining objects by creating one last
  56991. + # reloadable object file. All subsequent reloadable object
  56992. + # files will link in the last one created.
  56993. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  56994. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  56995. + if test -n "$last_robj"; then
  56996. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  56997. + fi
  56998. + delfiles="$delfiles $output"
  56999. +
  57000. + else
  57001. + output=
  57002. + fi
  57003. - if test -n "$addlibs"; then
  57004. - gentop="$output_objdir/${outputname}x"
  57005. - generated="$generated $gentop"
  57006. + if ${skipped_export-false}; then
  57007. + func_verbose "generating symbol list for \`$libname.la'"
  57008. + export_symbols="$output_objdir/$libname.exp"
  57009. + $opt_dry_run || $RM $export_symbols
  57010. + libobjs=$output
  57011. + # Append the command to create the export file.
  57012. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57013. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  57014. + if test -n "$last_robj"; then
  57015. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  57016. + fi
  57017. + fi
  57018. - func_extract_archives $gentop $addlibs
  57019. - oldobjs="$oldobjs $func_extract_archives_result"
  57020. - fi
  57021. + test -n "$save_libobjs" &&
  57022. + func_verbose "creating a temporary reloadable object file: $output"
  57023. - # Do each command in the archive commands.
  57024. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  57025. - cmds=$old_archive_from_new_cmds
  57026. - else
  57027. - # POSIX demands no paths to be encoded in archives. We have
  57028. - # to avoid creating archives with duplicate basenames if we
  57029. - # might have to extract them afterwards, e.g., when creating a
  57030. - # static archive out of a convenience library, or when linking
  57031. - # the entirety of a libtool archive into another (currently
  57032. - # not supported by libtool).
  57033. - if (for obj in $oldobjs
  57034. - do
  57035. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  57036. - done | sort | sort -uc >/dev/null 2>&1); then
  57037. - :
  57038. - else
  57039. - $echo "copying selected object files to avoid basename conflicts..."
  57040. + # Loop through the commands generated above and execute them.
  57041. + save_ifs="$IFS"; IFS='~'
  57042. + for cmd in $concat_cmds; do
  57043. + IFS="$save_ifs"
  57044. + $opt_silent || {
  57045. + func_quote_for_expand "$cmd"
  57046. + eval "func_echo $func_quote_for_expand_result"
  57047. + }
  57048. + $opt_dry_run || eval "$cmd" || {
  57049. + lt_exit=$?
  57050. +
  57051. + # Restore the uninstalled library and exit
  57052. + if test "$mode" = relink; then
  57053. + ( cd "$output_objdir" && \
  57054. + $RM "${realname}T" && \
  57055. + $MV "${realname}U" "$realname" )
  57056. + fi
  57057. - if test -z "$gentop"; then
  57058. - gentop="$output_objdir/${outputname}x"
  57059. - generated="$generated $gentop"
  57060. + exit $lt_exit
  57061. + }
  57062. + done
  57063. + IFS="$save_ifs"
  57064. - $show "${rm}r $gentop"
  57065. - $run ${rm}r "$gentop"
  57066. - $show "$mkdir $gentop"
  57067. - $run $mkdir "$gentop"
  57068. - exit_status=$?
  57069. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  57070. - exit $exit_status
  57071. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  57072. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  57073. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  57074. fi
  57075. fi
  57076. - save_oldobjs=$oldobjs
  57077. - oldobjs=
  57078. - counter=1
  57079. - for obj in $save_oldobjs
  57080. - do
  57081. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  57082. - case " $oldobjs " in
  57083. - " ") oldobjs=$obj ;;
  57084. - *[\ /]"$objbase "*)
  57085. - while :; do
  57086. - # Make sure we don't pick an alternate name that also
  57087. - # overlaps.
  57088. - newobj=lt$counter-$objbase
  57089. - counter=`expr $counter + 1`
  57090. - case " $oldobjs " in
  57091. - *[\ /]"$newobj "*) ;;
  57092. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  57093. - esac
  57094. - done
  57095. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  57096. - $run ln "$obj" "$gentop/$newobj" ||
  57097. - $run cp "$obj" "$gentop/$newobj"
  57098. - oldobjs="$oldobjs $gentop/$newobj"
  57099. - ;;
  57100. - *) oldobjs="$oldobjs $obj" ;;
  57101. - esac
  57102. - done
  57103. - fi
  57104. + if ${skipped_export-false}; then
  57105. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  57106. + tmp_export_symbols="$export_symbols"
  57107. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  57108. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  57109. + fi
  57110. +
  57111. + if test -n "$orig_export_symbols"; then
  57112. + # The given exports_symbols file has to be filtered, so filter it.
  57113. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  57114. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  57115. + # 's' commands which not all seds can handle. GNU sed should be fine
  57116. + # though. Also, the filter scales superlinearly with the number of
  57117. + # global variables. join(1) would be nice here, but unfortunately
  57118. + # isn't a blessed tool.
  57119. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  57120. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  57121. + export_symbols=$output_objdir/$libname.def
  57122. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  57123. + fi
  57124. + fi
  57125. - eval cmds=\"$old_archive_cmds\"
  57126. + libobjs=$output
  57127. + # Restore the value of output.
  57128. + output=$save_output
  57129. - if len=`expr "X$cmds" : ".*"` &&
  57130. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57131. - cmds=$old_archive_cmds
  57132. - else
  57133. - # the command line is too long to link in one step, link in parts
  57134. - $echo "using piecewise archive linking..."
  57135. - save_RANLIB=$RANLIB
  57136. - RANLIB=:
  57137. - objlist=
  57138. - concat_cmds=
  57139. - save_oldobjs=$oldobjs
  57140. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  57141. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  57142. + test "X$libobjs" = "X " && libobjs=
  57143. + fi
  57144. + # Expand the library linking commands again to reset the
  57145. + # value of $libobjs for piecewise linking.
  57146. - # Is there a better way of finding the last object in the list?
  57147. - for obj in $save_oldobjs
  57148. - do
  57149. - last_oldobj=$obj
  57150. - done
  57151. - for obj in $save_oldobjs
  57152. - do
  57153. - oldobjs="$objlist $obj"
  57154. - objlist="$objlist $obj"
  57155. - eval test_cmds=\"$old_archive_cmds\"
  57156. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  57157. - test "$len" -le "$max_cmd_len"; then
  57158. - :
  57159. + # Do each of the archive commands.
  57160. + if test "$module" = yes && test -n "$module_cmds" ; then
  57161. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  57162. + cmds=$module_expsym_cmds
  57163. else
  57164. - # the above command should be used before it gets too long
  57165. - oldobjs=$objlist
  57166. - if test "$obj" = "$last_oldobj" ; then
  57167. - RANLIB=$save_RANLIB
  57168. - fi
  57169. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57170. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  57171. - objlist=
  57172. + cmds=$module_cmds
  57173. fi
  57174. - done
  57175. - RANLIB=$save_RANLIB
  57176. - oldobjs=$objlist
  57177. - if test "X$oldobjs" = "X" ; then
  57178. - eval cmds=\"\$concat_cmds\"
  57179. else
  57180. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  57181. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  57182. + cmds=$archive_expsym_cmds
  57183. + else
  57184. + cmds=$archive_cmds
  57185. + fi
  57186. fi
  57187. fi
  57188. - fi
  57189. - save_ifs="$IFS"; IFS='~'
  57190. - for cmd in $cmds; do
  57191. - eval cmd=\"$cmd\"
  57192. - IFS="$save_ifs"
  57193. - $show "$cmd"
  57194. - $run eval "$cmd" || exit $?
  57195. - done
  57196. - IFS="$save_ifs"
  57197. - done
  57198. - if test -n "$generated"; then
  57199. - $show "${rm}r$generated"
  57200. - $run ${rm}r$generated
  57201. - fi
  57202. + if test -n "$delfiles"; then
  57203. + # Append the command to remove temporary files to $cmds.
  57204. + eval cmds=\"\$cmds~\$RM $delfiles\"
  57205. + fi
  57206. - # Now create the libtool archive.
  57207. - case $output in
  57208. - *.la)
  57209. - old_library=
  57210. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  57211. - $show "creating $output"
  57212. + # Add any objects from preloaded convenience libraries
  57213. + if test -n "$dlprefiles"; then
  57214. + gentop="$output_objdir/${outputname}x"
  57215. + generated="$generated $gentop"
  57216. - # Preserve any variables that may affect compiler behavior
  57217. - for var in $variables_saved_for_relink; do
  57218. - if eval test -z \"\${$var+set}\"; then
  57219. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  57220. - elif eval var_value=\$$var; test -z "$var_value"; then
  57221. - relink_command="$var=; export $var; $relink_command"
  57222. - else
  57223. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  57224. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  57225. + func_extract_archives $gentop $dlprefiles
  57226. + libobjs="$libobjs $func_extract_archives_result"
  57227. + test "X$libobjs" = "X " && libobjs=
  57228. fi
  57229. - done
  57230. - # Quote the link command for shipping.
  57231. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  57232. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  57233. - if test "$hardcode_automatic" = yes ; then
  57234. - relink_command=
  57235. - fi
  57236. + save_ifs="$IFS"; IFS='~'
  57237. + for cmd in $cmds; do
  57238. + IFS="$save_ifs"
  57239. + eval cmd=\"$cmd\"
  57240. + $opt_silent || {
  57241. + func_quote_for_expand "$cmd"
  57242. + eval "func_echo $func_quote_for_expand_result"
  57243. + }
  57244. + $opt_dry_run || eval "$cmd" || {
  57245. + lt_exit=$?
  57246. - # Only create the output if not a dry run.
  57247. - if test -z "$run"; then
  57248. - for installed in no yes; do
  57249. - if test "$installed" = yes; then
  57250. - if test -z "$install_libdir"; then
  57251. - break
  57252. + # Restore the uninstalled library and exit
  57253. + if test "$mode" = relink; then
  57254. + ( cd "$output_objdir" && \
  57255. + $RM "${realname}T" && \
  57256. + $MV "${realname}U" "$realname" )
  57257. fi
  57258. - output="$output_objdir/$outputname"i
  57259. - # Replace all uninstalled libtool libraries with the installed ones
  57260. - newdependency_libs=
  57261. - for deplib in $dependency_libs; do
  57262. - case $deplib in
  57263. - *.la)
  57264. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  57265. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57266. - if test -z "$libdir"; then
  57267. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  57268. - exit $EXIT_FAILURE
  57269. - fi
  57270. - newdependency_libs="$newdependency_libs $libdir/$name"
  57271. - ;;
  57272. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  57273. - esac
  57274. - done
  57275. - dependency_libs="$newdependency_libs"
  57276. - newdlfiles=
  57277. - for lib in $dlfiles; do
  57278. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  57279. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57280. - if test -z "$libdir"; then
  57281. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57282. - exit $EXIT_FAILURE
  57283. - fi
  57284. - newdlfiles="$newdlfiles $libdir/$name"
  57285. - done
  57286. - dlfiles="$newdlfiles"
  57287. - newdlprefiles=
  57288. - for lib in $dlprefiles; do
  57289. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  57290. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57291. - if test -z "$libdir"; then
  57292. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57293. - exit $EXIT_FAILURE
  57294. - fi
  57295. - newdlprefiles="$newdlprefiles $libdir/$name"
  57296. - done
  57297. - dlprefiles="$newdlprefiles"
  57298. - else
  57299. - newdlfiles=
  57300. - for lib in $dlfiles; do
  57301. - case $lib in
  57302. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57303. - *) abs=`pwd`"/$lib" ;;
  57304. - esac
  57305. - newdlfiles="$newdlfiles $abs"
  57306. - done
  57307. - dlfiles="$newdlfiles"
  57308. - newdlprefiles=
  57309. - for lib in $dlprefiles; do
  57310. - case $lib in
  57311. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57312. - *) abs=`pwd`"/$lib" ;;
  57313. - esac
  57314. - newdlprefiles="$newdlprefiles $abs"
  57315. - done
  57316. - dlprefiles="$newdlprefiles"
  57317. - fi
  57318. - $rm $output
  57319. - # place dlname in correct position for cygwin
  57320. - tdlname=$dlname
  57321. - case $host,$output,$installed,$module,$dlname in
  57322. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  57323. - esac
  57324. - $echo > $output "\
  57325. -# $outputname - a libtool library file
  57326. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  57327. -#
  57328. -# Please DO NOT delete this file!
  57329. -# It is necessary for linking the library.
  57330. -
  57331. -# The name that we can dlopen(3).
  57332. -dlname='$tdlname'
  57333. -# Names of this library.
  57334. -library_names='$library_names'
  57335. -
  57336. -# The name of the static archive.
  57337. -old_library='$old_library'
  57338. -
  57339. -# Libraries that this one depends upon.
  57340. -dependency_libs='$dependency_libs'
  57341. -
  57342. -# Version information for $libname.
  57343. -current=$current
  57344. -age=$age
  57345. -revision=$revision
  57346. + exit $lt_exit
  57347. + }
  57348. + done
  57349. + IFS="$save_ifs"
  57350. -# Is this an already installed library?
  57351. -installed=$installed
  57352. + # Restore the uninstalled library and exit
  57353. + if test "$mode" = relink; then
  57354. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  57355. -# Should we warn about portability when linking against -modules?
  57356. -shouldnotlink=$module
  57357. + if test -n "$convenience"; then
  57358. + if test -z "$whole_archive_flag_spec"; then
  57359. + func_show_eval '${RM}r "$gentop"'
  57360. + fi
  57361. + fi
  57362. -# Files to dlopen/dlpreopen
  57363. -dlopen='$dlfiles'
  57364. -dlpreopen='$dlprefiles'
  57365. + exit $EXIT_SUCCESS
  57366. + fi
  57367. -# Directory that this library needs to be installed in:
  57368. -libdir='$install_libdir'"
  57369. - if test "$installed" = no && test "$need_relink" = yes; then
  57370. - $echo >> $output "\
  57371. -relink_command=\"$relink_command\""
  57372. + # Create links to the real library.
  57373. + for linkname in $linknames; do
  57374. + if test "$realname" != "$linkname"; then
  57375. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  57376. fi
  57377. done
  57378. - fi
  57379. -
  57380. - # Do a symbolic link so that the libtool archive can be found in
  57381. - # LD_LIBRARY_PATH before the program is installed.
  57382. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  57383. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  57384. - ;;
  57385. - esac
  57386. - exit $EXIT_SUCCESS
  57387. - ;;
  57388. -
  57389. - # libtool install mode
  57390. - install)
  57391. - modename="$modename: install"
  57392. -
  57393. - # There may be an optional sh(1) argument at the beginning of
  57394. - # install_prog (especially on Windows NT).
  57395. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  57396. - # Allow the use of GNU shtool's install command.
  57397. - $echo "X$nonopt" | grep shtool > /dev/null; then
  57398. - # Aesthetically quote it.
  57399. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  57400. - case $arg in
  57401. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57402. - arg="\"$arg\""
  57403. - ;;
  57404. - esac
  57405. - install_prog="$arg "
  57406. - arg="$1"
  57407. - shift
  57408. - else
  57409. - install_prog=
  57410. - arg=$nonopt
  57411. - fi
  57412. - # The real first argument should be the name of the installation program.
  57413. - # Aesthetically quote it.
  57414. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  57415. - case $arg in
  57416. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57417. - arg="\"$arg\""
  57418. + # If -module or -export-dynamic was specified, set the dlname.
  57419. + if test "$module" = yes || test "$export_dynamic" = yes; then
  57420. + # On all known operating systems, these are identical.
  57421. + dlname="$soname"
  57422. + fi
  57423. + fi
  57424. ;;
  57425. - esac
  57426. - install_prog="$install_prog$arg"
  57427. - # We need to accept at least all the BSD install flags.
  57428. - dest=
  57429. - files=
  57430. - opts=
  57431. - prev=
  57432. - install_type=
  57433. - isdir=no
  57434. - stripme=
  57435. - for arg
  57436. - do
  57437. - if test -n "$dest"; then
  57438. - files="$files $dest"
  57439. - dest=$arg
  57440. - continue
  57441. + obj)
  57442. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57443. + func_warning "\`-dlopen' is ignored for objects"
  57444. fi
  57445. - case $arg in
  57446. - -d) isdir=yes ;;
  57447. - -f)
  57448. - case " $install_prog " in
  57449. - *[\\\ /]cp\ *) ;;
  57450. - *) prev=$arg ;;
  57451. - esac
  57452. - ;;
  57453. - -g | -m | -o) prev=$arg ;;
  57454. - -s)
  57455. - stripme=" -s"
  57456. - continue
  57457. - ;;
  57458. - -*)
  57459. + case " $deplibs" in
  57460. + *\ -l* | *\ -L*)
  57461. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  57462. + esac
  57463. +
  57464. + test -n "$rpath" && \
  57465. + func_warning "\`-rpath' is ignored for objects"
  57466. +
  57467. + test -n "$xrpath" && \
  57468. + func_warning "\`-R' is ignored for objects"
  57469. +
  57470. + test -n "$vinfo" && \
  57471. + func_warning "\`-version-info' is ignored for objects"
  57472. +
  57473. + test -n "$release" && \
  57474. + func_warning "\`-release' is ignored for objects"
  57475. +
  57476. + case $output in
  57477. + *.lo)
  57478. + test -n "$objs$old_deplibs" && \
  57479. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  57480. +
  57481. + libobj=$output
  57482. + func_lo2o "$libobj"
  57483. + obj=$func_lo2o_result
  57484. ;;
  57485. *)
  57486. - # If the previous option needed an argument, then skip it.
  57487. - if test -n "$prev"; then
  57488. - prev=
  57489. - else
  57490. - dest=$arg
  57491. - continue
  57492. - fi
  57493. + libobj=
  57494. + obj="$output"
  57495. ;;
  57496. esac
  57497. - # Aesthetically quote the argument.
  57498. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  57499. - case $arg in
  57500. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  57501. - arg="\"$arg\""
  57502. - ;;
  57503. - esac
  57504. - install_prog="$install_prog $arg"
  57505. - done
  57506. + # Delete the old objects.
  57507. + $opt_dry_run || $RM $obj $libobj
  57508. - if test -z "$install_prog"; then
  57509. - $echo "$modename: you must specify an install program" 1>&2
  57510. - $echo "$help" 1>&2
  57511. - exit $EXIT_FAILURE
  57512. - fi
  57513. + # Objects from convenience libraries. This assumes
  57514. + # single-version convenience libraries. Whenever we create
  57515. + # different ones for PIC/non-PIC, this we'll have to duplicate
  57516. + # the extraction.
  57517. + reload_conv_objs=
  57518. + gentop=
  57519. + # reload_cmds runs $LD directly, so let us get rid of
  57520. + # -Wl from whole_archive_flag_spec and hope we can get by with
  57521. + # turning comma into space..
  57522. + wl=
  57523. - if test -n "$prev"; then
  57524. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  57525. - $echo "$help" 1>&2
  57526. - exit $EXIT_FAILURE
  57527. - fi
  57528. + if test -n "$convenience"; then
  57529. + if test -n "$whole_archive_flag_spec"; then
  57530. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  57531. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  57532. + else
  57533. + gentop="$output_objdir/${obj}x"
  57534. + generated="$generated $gentop"
  57535. - if test -z "$files"; then
  57536. - if test -z "$dest"; then
  57537. - $echo "$modename: no file or destination specified" 1>&2
  57538. - else
  57539. - $echo "$modename: you must specify a destination" 1>&2
  57540. + func_extract_archives $gentop $convenience
  57541. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  57542. + fi
  57543. fi
  57544. - $echo "$help" 1>&2
  57545. - exit $EXIT_FAILURE
  57546. - fi
  57547. - # Strip any trailing slash from the destination.
  57548. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  57549. + # Create the old-style object.
  57550. + 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
  57551. - # Check to see that the destination is a directory.
  57552. - test -d "$dest" && isdir=yes
  57553. - if test "$isdir" = yes; then
  57554. - destdir="$dest"
  57555. - destname=
  57556. - else
  57557. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  57558. - test "X$destdir" = "X$dest" && destdir=.
  57559. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  57560. + output="$obj"
  57561. + func_execute_cmds "$reload_cmds" 'exit $?'
  57562. - # Not a directory, so check to see that there is only one file specified.
  57563. - set dummy $files
  57564. - if test "$#" -gt 2; then
  57565. - $echo "$modename: \`$dest' is not a directory" 1>&2
  57566. - $echo "$help" 1>&2
  57567. - exit $EXIT_FAILURE
  57568. + # Exit if we aren't doing a library object file.
  57569. + if test -z "$libobj"; then
  57570. + if test -n "$gentop"; then
  57571. + func_show_eval '${RM}r "$gentop"'
  57572. + fi
  57573. +
  57574. + exit $EXIT_SUCCESS
  57575. fi
  57576. - fi
  57577. - case $destdir in
  57578. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  57579. - *)
  57580. - for file in $files; do
  57581. - case $file in
  57582. - *.lo) ;;
  57583. - *)
  57584. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  57585. - $echo "$help" 1>&2
  57586. - exit $EXIT_FAILURE
  57587. - ;;
  57588. - esac
  57589. - done
  57590. +
  57591. + if test "$build_libtool_libs" != yes; then
  57592. + if test -n "$gentop"; then
  57593. + func_show_eval '${RM}r "$gentop"'
  57594. + fi
  57595. +
  57596. + # Create an invalid libtool object if no PIC, so that we don't
  57597. + # accidentally link it into a program.
  57598. + # $show "echo timestamp > $libobj"
  57599. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  57600. + exit $EXIT_SUCCESS
  57601. + fi
  57602. +
  57603. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  57604. + # Only do commands if we really have different PIC objects.
  57605. + reload_objs="$libobjs $reload_conv_objs"
  57606. + output="$libobj"
  57607. + func_execute_cmds "$reload_cmds" 'exit $?'
  57608. + fi
  57609. +
  57610. + if test -n "$gentop"; then
  57611. + func_show_eval '${RM}r "$gentop"'
  57612. + fi
  57613. +
  57614. + exit $EXIT_SUCCESS
  57615. ;;
  57616. - esac
  57617. - # This variable tells wrapper scripts just to set variables rather
  57618. - # than running their programs.
  57619. - libtool_install_magic="$magic"
  57620. + prog)
  57621. + case $host in
  57622. + *cygwin*) func_stripname '' '.exe' "$output"
  57623. + output=$func_stripname_result.exe;;
  57624. + esac
  57625. + test -n "$vinfo" && \
  57626. + func_warning "\`-version-info' is ignored for programs"
  57627. - staticlibs=
  57628. - future_libdirs=
  57629. - current_libdirs=
  57630. - for file in $files; do
  57631. + test -n "$release" && \
  57632. + func_warning "\`-release' is ignored for programs"
  57633. - # Do each installation.
  57634. - case $file in
  57635. - *.$libext)
  57636. - # Do the static libraries later.
  57637. - staticlibs="$staticlibs $file"
  57638. + test "$preload" = yes \
  57639. + && test "$dlopen_support" = unknown \
  57640. + && test "$dlopen_self" = unknown \
  57641. + && test "$dlopen_self_static" = unknown && \
  57642. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  57643. +
  57644. + case $host in
  57645. + *-*-rhapsody* | *-*-darwin1.[012])
  57646. + # On Rhapsody replace the C library is the System framework
  57647. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  57648. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  57649. ;;
  57650. + esac
  57651. - *.la)
  57652. - # Check to see that this really is a libtool archive.
  57653. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  57654. - else
  57655. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  57656. - $echo "$help" 1>&2
  57657. - exit $EXIT_FAILURE
  57658. + case $host in
  57659. + *-*-darwin*)
  57660. + # Don't allow lazy linking, it breaks C++ global constructors
  57661. + # But is supposedly fixed on 10.4 or later (yay!).
  57662. + if test "$tagname" = CXX ; then
  57663. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  57664. + 10.[0123])
  57665. + compile_command="$compile_command ${wl}-bind_at_load"
  57666. + finalize_command="$finalize_command ${wl}-bind_at_load"
  57667. + ;;
  57668. + esac
  57669. fi
  57670. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  57671. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57672. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57673. + ;;
  57674. + esac
  57675. - library_names=
  57676. - old_library=
  57677. - relink_command=
  57678. - # If there is no directory component, then add one.
  57679. - case $file in
  57680. - */* | *\\*) . $file ;;
  57681. - *) . ./$file ;;
  57682. - esac
  57683. - # Add the libdir to current_libdirs if it is the destination.
  57684. - if test "X$destdir" = "X$libdir"; then
  57685. - case "$current_libdirs " in
  57686. - *" $libdir "*) ;;
  57687. - *) current_libdirs="$current_libdirs $libdir" ;;
  57688. + # move library search paths that coincide with paths to not yet
  57689. + # installed libraries to the beginning of the library search list
  57690. + new_libs=
  57691. + for path in $notinst_path; do
  57692. + case " $new_libs " in
  57693. + *" -L$path/$objdir "*) ;;
  57694. + *)
  57695. + case " $compile_deplibs " in
  57696. + *" -L$path/$objdir "*)
  57697. + new_libs="$new_libs -L$path/$objdir" ;;
  57698. esac
  57699. - else
  57700. - # Note the libdir as a future libdir.
  57701. - case "$future_libdirs " in
  57702. - *" $libdir "*) ;;
  57703. - *) future_libdirs="$future_libdirs $libdir" ;;
  57704. + ;;
  57705. + esac
  57706. + done
  57707. + for deplib in $compile_deplibs; do
  57708. + case $deplib in
  57709. + -L*)
  57710. + case " $new_libs " in
  57711. + *" $deplib "*) ;;
  57712. + *) new_libs="$new_libs $deplib" ;;
  57713. esac
  57714. - fi
  57715. + ;;
  57716. + *) new_libs="$new_libs $deplib" ;;
  57717. + esac
  57718. + done
  57719. + compile_deplibs="$new_libs"
  57720. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  57721. - test "X$dir" = "X$file/" && dir=
  57722. - dir="$dir$objdir"
  57723. - if test -n "$relink_command"; then
  57724. - # Determine the prefix the user has applied to our future dir.
  57725. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  57726. + compile_command="$compile_command $compile_deplibs"
  57727. + finalize_command="$finalize_command $finalize_deplibs"
  57728. - # Don't allow the user to place us outside of our expected
  57729. - # location b/c this prevents finding dependent libraries that
  57730. - # are installed to the same prefix.
  57731. - # At present, this check doesn't affect windows .dll's that
  57732. - # are installed into $libdir/../bin (currently, that works fine)
  57733. - # but it's something to keep an eye on.
  57734. - if test "$inst_prefix_dir" = "$destdir"; then
  57735. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  57736. - exit $EXIT_FAILURE
  57737. - fi
  57738. + if test -n "$rpath$xrpath"; then
  57739. + # If the user specified any rpath flags, then add them.
  57740. + for libdir in $rpath $xrpath; do
  57741. + # This is the magic to use -rpath.
  57742. + case "$finalize_rpath " in
  57743. + *" $libdir "*) ;;
  57744. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  57745. + esac
  57746. + done
  57747. + fi
  57748. - if test -n "$inst_prefix_dir"; then
  57749. - # Stick the inst_prefix_dir data into the link command.
  57750. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  57751. + # Now hardcode the library paths
  57752. + rpath=
  57753. + hardcode_libdirs=
  57754. + for libdir in $compile_rpath $finalize_rpath; do
  57755. + if test -n "$hardcode_libdir_flag_spec"; then
  57756. + if test -n "$hardcode_libdir_separator"; then
  57757. + if test -z "$hardcode_libdirs"; then
  57758. + hardcode_libdirs="$libdir"
  57759. + else
  57760. + # Just accumulate the unique libdirs.
  57761. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  57762. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  57763. + ;;
  57764. + *)
  57765. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  57766. + ;;
  57767. + esac
  57768. + fi
  57769. else
  57770. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  57771. + eval flag=\"$hardcode_libdir_flag_spec\"
  57772. + rpath="$rpath $flag"
  57773. fi
  57774. + elif test -n "$runpath_var"; then
  57775. + case "$perm_rpath " in
  57776. + *" $libdir "*) ;;
  57777. + *) perm_rpath="$perm_rpath $libdir" ;;
  57778. + esac
  57779. + fi
  57780. + case $host in
  57781. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  57782. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  57783. + case :$dllsearchpath: in
  57784. + *":$libdir:"*) ;;
  57785. + ::) dllsearchpath=$libdir;;
  57786. + *) dllsearchpath="$dllsearchpath:$libdir";;
  57787. + esac
  57788. + case :$dllsearchpath: in
  57789. + *":$testbindir:"*) ;;
  57790. + ::) dllsearchpath=$testbindir;;
  57791. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  57792. + esac
  57793. + ;;
  57794. + esac
  57795. + done
  57796. + # Substitute the hardcoded libdirs into the rpath.
  57797. + if test -n "$hardcode_libdir_separator" &&
  57798. + test -n "$hardcode_libdirs"; then
  57799. + libdir="$hardcode_libdirs"
  57800. + eval rpath=\" $hardcode_libdir_flag_spec\"
  57801. + fi
  57802. + compile_rpath="$rpath"
  57803. - $echo "$modename: warning: relinking \`$file'" 1>&2
  57804. - $show "$relink_command"
  57805. - if $run eval "$relink_command"; then :
  57806. + rpath=
  57807. + hardcode_libdirs=
  57808. + for libdir in $finalize_rpath; do
  57809. + if test -n "$hardcode_libdir_flag_spec"; then
  57810. + if test -n "$hardcode_libdir_separator"; then
  57811. + if test -z "$hardcode_libdirs"; then
  57812. + hardcode_libdirs="$libdir"
  57813. + else
  57814. + # Just accumulate the unique libdirs.
  57815. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  57816. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  57817. + ;;
  57818. + *)
  57819. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  57820. + ;;
  57821. + esac
  57822. + fi
  57823. else
  57824. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  57825. - exit $EXIT_FAILURE
  57826. + eval flag=\"$hardcode_libdir_flag_spec\"
  57827. + rpath="$rpath $flag"
  57828. fi
  57829. + elif test -n "$runpath_var"; then
  57830. + case "$finalize_perm_rpath " in
  57831. + *" $libdir "*) ;;
  57832. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  57833. + esac
  57834. fi
  57835. + done
  57836. + # Substitute the hardcoded libdirs into the rpath.
  57837. + if test -n "$hardcode_libdir_separator" &&
  57838. + test -n "$hardcode_libdirs"; then
  57839. + libdir="$hardcode_libdirs"
  57840. + eval rpath=\" $hardcode_libdir_flag_spec\"
  57841. + fi
  57842. + finalize_rpath="$rpath"
  57843. - # See the names of the shared library.
  57844. - set dummy $library_names
  57845. - if test -n "$2"; then
  57846. - realname="$2"
  57847. - shift
  57848. - shift
  57849. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  57850. + # Transform all the library objects into standard objects.
  57851. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57852. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57853. + fi
  57854. - srcname="$realname"
  57855. - test -n "$relink_command" && srcname="$realname"T
  57856. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  57857. - # Install the shared library and build the symlinks.
  57858. - $show "$install_prog $dir/$srcname $destdir/$realname"
  57859. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  57860. - if test -n "$stripme" && test -n "$striplib"; then
  57861. - $show "$striplib $destdir/$realname"
  57862. - $run eval "$striplib $destdir/$realname" || exit $?
  57863. - fi
  57864. + # template prelinking step
  57865. + if test -n "$prelink_cmds"; then
  57866. + func_execute_cmds "$prelink_cmds" 'exit $?'
  57867. + fi
  57868. - if test "$#" -gt 0; then
  57869. - # Delete the old symlinks, and create new ones.
  57870. - # Try `ln -sf' first, because the `ln' binary might depend on
  57871. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  57872. - # so we also need to try rm && ln -s.
  57873. - for linkname
  57874. - do
  57875. - if test "$linkname" != "$realname"; then
  57876. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  57877. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  57878. - fi
  57879. - done
  57880. - fi
  57881. + wrappers_required=yes
  57882. + case $host in
  57883. + *cygwin* | *mingw* )
  57884. + if test "$build_libtool_libs" != yes; then
  57885. + wrappers_required=no
  57886. + fi
  57887. + ;;
  57888. + *cegcc)
  57889. + # Disable wrappers for cegcc, we are cross compiling anyway.
  57890. + wrappers_required=no
  57891. + ;;
  57892. + *)
  57893. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  57894. + wrappers_required=no
  57895. + fi
  57896. + ;;
  57897. + esac
  57898. + if test "$wrappers_required" = no; then
  57899. + # Replace the output file specification.
  57900. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  57901. + link_command="$compile_command$compile_rpath"
  57902. - # Do each command in the postinstall commands.
  57903. - lib="$destdir/$realname"
  57904. - cmds=$postinstall_cmds
  57905. - save_ifs="$IFS"; IFS='~'
  57906. - for cmd in $cmds; do
  57907. - IFS="$save_ifs"
  57908. - eval cmd=\"$cmd\"
  57909. - $show "$cmd"
  57910. - $run eval "$cmd" || {
  57911. - lt_exit=$?
  57912. -
  57913. - # Restore the uninstalled library and exit
  57914. - if test "$mode" = relink; then
  57915. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  57916. - fi
  57917. + # We have no uninstalled library dependencies, so finalize right now.
  57918. + exit_status=0
  57919. + func_show_eval "$link_command" 'exit_status=$?'
  57920. - exit $lt_exit
  57921. - }
  57922. - done
  57923. - IFS="$save_ifs"
  57924. + # Delete the generated files.
  57925. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  57926. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  57927. fi
  57928. - # Install the pseudo-library for information purposes.
  57929. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57930. - instname="$dir/$name"i
  57931. - $show "$install_prog $instname $destdir/$name"
  57932. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  57933. -
  57934. - # Maybe install the static library, too.
  57935. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  57936. - ;;
  57937. + exit $exit_status
  57938. + fi
  57939. - *.lo)
  57940. - # Install (i.e. copy) a libtool object.
  57941. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  57942. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  57943. + fi
  57944. + if test -n "$finalize_shlibpath"; then
  57945. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  57946. + fi
  57947. - # Figure out destination file name, if it wasn't already specified.
  57948. - if test -n "$destname"; then
  57949. - destfile="$destdir/$destname"
  57950. - else
  57951. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57952. - destfile="$destdir/$destfile"
  57953. + compile_var=
  57954. + finalize_var=
  57955. + if test -n "$runpath_var"; then
  57956. + if test -n "$perm_rpath"; then
  57957. + # We should set the runpath_var.
  57958. + rpath=
  57959. + for dir in $perm_rpath; do
  57960. + rpath="$rpath$dir:"
  57961. + done
  57962. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  57963. fi
  57964. -
  57965. - # Deduce the name of the destination old-style object file.
  57966. - case $destfile in
  57967. - *.lo)
  57968. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  57969. - ;;
  57970. - *.$objext)
  57971. - staticdest="$destfile"
  57972. - destfile=
  57973. - ;;
  57974. - *)
  57975. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  57976. - $echo "$help" 1>&2
  57977. - exit $EXIT_FAILURE
  57978. - ;;
  57979. - esac
  57980. -
  57981. - # Install the libtool object if requested.
  57982. - if test -n "$destfile"; then
  57983. - $show "$install_prog $file $destfile"
  57984. - $run eval "$install_prog $file $destfile" || exit $?
  57985. + if test -n "$finalize_perm_rpath"; then
  57986. + # We should set the runpath_var.
  57987. + rpath=
  57988. + for dir in $finalize_perm_rpath; do
  57989. + rpath="$rpath$dir:"
  57990. + done
  57991. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  57992. fi
  57993. + fi
  57994. - # Install the old object if enabled.
  57995. - if test "$build_old_libs" = yes; then
  57996. - # Deduce the name of the old-style object file.
  57997. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  57998. -
  57999. - $show "$install_prog $staticobj $staticdest"
  58000. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  58001. - fi
  58002. + if test "$no_install" = yes; then
  58003. + # We don't need to create a wrapper script.
  58004. + link_command="$compile_var$compile_command$compile_rpath"
  58005. + # Replace the output file specification.
  58006. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  58007. + # Delete the old output file.
  58008. + $opt_dry_run || $RM $output
  58009. + # Link the executable and exit
  58010. + func_show_eval "$link_command" 'exit $?'
  58011. exit $EXIT_SUCCESS
  58012. - ;;
  58013. + fi
  58014. - *)
  58015. - # Figure out destination file name, if it wasn't already specified.
  58016. - if test -n "$destname"; then
  58017. - destfile="$destdir/$destname"
  58018. + if test "$hardcode_action" = relink; then
  58019. + # Fast installation is not supported
  58020. + link_command="$compile_var$compile_command$compile_rpath"
  58021. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  58022. +
  58023. + func_warning "this platform does not like uninstalled shared libraries"
  58024. + func_warning "\`$output' will be relinked during installation"
  58025. + else
  58026. + if test "$fast_install" != no; then
  58027. + link_command="$finalize_var$compile_command$finalize_rpath"
  58028. + if test "$fast_install" = yes; then
  58029. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  58030. + else
  58031. + # fast_install is set to needless
  58032. + relink_command=
  58033. + fi
  58034. else
  58035. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58036. - destfile="$destdir/$destfile"
  58037. + link_command="$compile_var$compile_command$compile_rpath"
  58038. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  58039. fi
  58040. + fi
  58041. - # If the file is missing, and there is a .exe on the end, strip it
  58042. - # because it is most likely a libtool script we actually want to
  58043. - # install
  58044. - stripped_ext=""
  58045. - case $file in
  58046. - *.exe)
  58047. - if test ! -f "$file"; then
  58048. - file=`$echo $file|${SED} 's,.exe$,,'`
  58049. - stripped_ext=".exe"
  58050. - fi
  58051. - ;;
  58052. - esac
  58053. -
  58054. - # Do a test to see if this is really a libtool program.
  58055. - case $host in
  58056. - *cygwin*|*mingw*)
  58057. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  58058. - ;;
  58059. - *)
  58060. - wrapper=$file
  58061. - ;;
  58062. - esac
  58063. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  58064. - notinst_deplibs=
  58065. - relink_command=
  58066. -
  58067. - # Note that it is not necessary on cygwin/mingw to append a dot to
  58068. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  58069. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  58070. - # `FILE.' does not work on cygwin managed mounts.
  58071. - #
  58072. - # If there is no directory component, then add one.
  58073. - case $wrapper in
  58074. - */* | *\\*) . ${wrapper} ;;
  58075. - *) . ./${wrapper} ;;
  58076. - esac
  58077. -
  58078. - # Check the variables that should have been set.
  58079. - if test -z "$notinst_deplibs"; then
  58080. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  58081. - exit $EXIT_FAILURE
  58082. - fi
  58083. + # Replace the output file specification.
  58084. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  58085. - finalize=yes
  58086. - for lib in $notinst_deplibs; do
  58087. - # Check to see that each library is installed.
  58088. - libdir=
  58089. - if test -f "$lib"; then
  58090. - # If there is no directory component, then add one.
  58091. - case $lib in
  58092. - */* | *\\*) . $lib ;;
  58093. - *) . ./$lib ;;
  58094. - esac
  58095. - fi
  58096. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  58097. - if test -n "$libdir" && test ! -f "$libfile"; then
  58098. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  58099. - finalize=no
  58100. - fi
  58101. - done
  58102. + # Delete the old output files.
  58103. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  58104. - relink_command=
  58105. - # Note that it is not necessary on cygwin/mingw to append a dot to
  58106. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  58107. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  58108. - # `FILE.' does not work on cygwin managed mounts.
  58109. - #
  58110. - # If there is no directory component, then add one.
  58111. - case $wrapper in
  58112. - */* | *\\*) . ${wrapper} ;;
  58113. - *) . ./${wrapper} ;;
  58114. - esac
  58115. + func_show_eval "$link_command" 'exit $?'
  58116. - outputname=
  58117. - if test "$fast_install" = no && test -n "$relink_command"; then
  58118. - if test "$finalize" = yes && test -z "$run"; then
  58119. - tmpdir=`func_mktempdir`
  58120. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  58121. - outputname="$tmpdir/$file"
  58122. - # Replace the output file specification.
  58123. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  58124. + # Now create the wrapper script.
  58125. + func_verbose "creating $output"
  58126. - $show "$relink_command"
  58127. - if $run eval "$relink_command"; then :
  58128. - else
  58129. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  58130. - ${rm}r "$tmpdir"
  58131. - continue
  58132. - fi
  58133. - file="$outputname"
  58134. - else
  58135. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  58136. - fi
  58137. + # Quote the relink command for shipping.
  58138. + if test -n "$relink_command"; then
  58139. + # Preserve any variables that may affect compiler behavior
  58140. + for var in $variables_saved_for_relink; do
  58141. + if eval test -z \"\${$var+set}\"; then
  58142. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  58143. + elif eval var_value=\$$var; test -z "$var_value"; then
  58144. + relink_command="$var=; export $var; $relink_command"
  58145. else
  58146. - # Install the binary that we compiled earlier.
  58147. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  58148. + func_quote_for_eval "$var_value"
  58149. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  58150. fi
  58151. - fi
  58152. + done
  58153. + relink_command="(cd `pwd`; $relink_command)"
  58154. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  58155. + fi
  58156. - # remove .exe since cygwin /usr/bin/install will append another
  58157. - # one anyway
  58158. - case $install_prog,$host in
  58159. - */usr/bin/install*,*cygwin*)
  58160. - case $file:$destfile in
  58161. - *.exe:*.exe)
  58162. - # this is ok
  58163. - ;;
  58164. - *.exe:*)
  58165. - destfile=$destfile.exe
  58166. - ;;
  58167. - *:*.exe)
  58168. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  58169. - ;;
  58170. - esac
  58171. - ;;
  58172. + # Quote $ECHO for shipping.
  58173. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  58174. + case $progpath in
  58175. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  58176. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  58177. + esac
  58178. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  58179. + else
  58180. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  58181. + fi
  58182. +
  58183. + # Only actually do things if not in dry run mode.
  58184. + $opt_dry_run || {
  58185. + # win32 will think the script is a binary if it has
  58186. + # a .exe suffix, so we strip it off here.
  58187. + case $output in
  58188. + *.exe) func_stripname '' '.exe' "$output"
  58189. + output=$func_stripname_result ;;
  58190. esac
  58191. - $show "$install_prog$stripme $file $destfile"
  58192. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  58193. - test -n "$outputname" && ${rm}r "$tmpdir"
  58194. - ;;
  58195. - esac
  58196. - done
  58197. + # test for cygwin because mv fails w/o .exe extensions
  58198. + case $host in
  58199. + *cygwin*)
  58200. + exeext=.exe
  58201. + func_stripname '' '.exe' "$outputname"
  58202. + outputname=$func_stripname_result ;;
  58203. + *) exeext= ;;
  58204. + esac
  58205. + case $host in
  58206. + *cygwin* | *mingw* )
  58207. + func_dirname_and_basename "$output" "" "."
  58208. + output_name=$func_basename_result
  58209. + output_path=$func_dirname_result
  58210. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  58211. + cwrapper="$output_path/$output_name.exe"
  58212. + $RM $cwrappersource $cwrapper
  58213. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  58214. +
  58215. + func_emit_cwrapperexe_src > $cwrappersource
  58216. +
  58217. + # The wrapper executable is built using the $host compiler,
  58218. + # because it contains $host paths and files. If cross-
  58219. + # compiling, it, like the target executable, must be
  58220. + # executed on the $host or under an emulation environment.
  58221. + $opt_dry_run || {
  58222. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  58223. + $STRIP $cwrapper
  58224. + }
  58225. - for file in $staticlibs; do
  58226. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58227. + # Now, create the wrapper script for func_source use:
  58228. + func_ltwrapper_scriptname $cwrapper
  58229. + $RM $func_ltwrapper_scriptname_result
  58230. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  58231. + $opt_dry_run || {
  58232. + # note: this script will not be executed, so do not chmod.
  58233. + if test "x$build" = "x$host" ; then
  58234. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  58235. + else
  58236. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  58237. + fi
  58238. + }
  58239. + ;;
  58240. + * )
  58241. + $RM $output
  58242. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  58243. - # Set up the ranlib parameters.
  58244. - oldlib="$destdir/$name"
  58245. + func_emit_wrapper no > $output
  58246. + chmod +x $output
  58247. + ;;
  58248. + esac
  58249. + }
  58250. + exit $EXIT_SUCCESS
  58251. + ;;
  58252. + esac
  58253. - $show "$install_prog $file $oldlib"
  58254. - $run eval "$install_prog \$file \$oldlib" || exit $?
  58255. + # See if we need to build an old-fashioned archive.
  58256. + for oldlib in $oldlibs; do
  58257. - if test -n "$stripme" && test -n "$old_striplib"; then
  58258. - $show "$old_striplib $oldlib"
  58259. - $run eval "$old_striplib $oldlib" || exit $?
  58260. + if test "$build_libtool_libs" = convenience; then
  58261. + oldobjs="$libobjs_save $symfileobj"
  58262. + addlibs="$convenience"
  58263. + build_libtool_libs=no
  58264. + else
  58265. + if test "$build_libtool_libs" = module; then
  58266. + oldobjs="$libobjs_save"
  58267. + build_libtool_libs=no
  58268. + else
  58269. + oldobjs="$old_deplibs $non_pic_objects"
  58270. + if test "$preload" = yes && test -f "$symfileobj"; then
  58271. + oldobjs="$oldobjs $symfileobj"
  58272. + fi
  58273. + fi
  58274. + addlibs="$old_convenience"
  58275. fi
  58276. - # Do each command in the postinstall commands.
  58277. - cmds=$old_postinstall_cmds
  58278. - save_ifs="$IFS"; IFS='~'
  58279. - for cmd in $cmds; do
  58280. - IFS="$save_ifs"
  58281. - eval cmd=\"$cmd\"
  58282. - $show "$cmd"
  58283. - $run eval "$cmd" || exit $?
  58284. - done
  58285. - IFS="$save_ifs"
  58286. - done
  58287. + if test -n "$addlibs"; then
  58288. + gentop="$output_objdir/${outputname}x"
  58289. + generated="$generated $gentop"
  58290. - if test -n "$future_libdirs"; then
  58291. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  58292. - fi
  58293. + func_extract_archives $gentop $addlibs
  58294. + oldobjs="$oldobjs $func_extract_archives_result"
  58295. + fi
  58296. - if test -n "$current_libdirs"; then
  58297. - # Maybe just do a dry run.
  58298. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  58299. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  58300. - else
  58301. - exit $EXIT_SUCCESS
  58302. - fi
  58303. - ;;
  58304. + # Do each command in the archive commands.
  58305. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  58306. + cmds=$old_archive_from_new_cmds
  58307. + else
  58308. - # libtool finish mode
  58309. - finish)
  58310. - modename="$modename: finish"
  58311. - libdirs="$nonopt"
  58312. - admincmds=
  58313. + # Add any objects from preloaded convenience libraries
  58314. + if test -n "$dlprefiles"; then
  58315. + gentop="$output_objdir/${outputname}x"
  58316. + generated="$generated $gentop"
  58317. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  58318. - for dir
  58319. - do
  58320. - libdirs="$libdirs $dir"
  58321. - done
  58322. + func_extract_archives $gentop $dlprefiles
  58323. + oldobjs="$oldobjs $func_extract_archives_result"
  58324. + fi
  58325. - for libdir in $libdirs; do
  58326. - if test -n "$finish_cmds"; then
  58327. - # Do each command in the finish commands.
  58328. - cmds=$finish_cmds
  58329. - save_ifs="$IFS"; IFS='~'
  58330. - for cmd in $cmds; do
  58331. - IFS="$save_ifs"
  58332. - eval cmd=\"$cmd\"
  58333. - $show "$cmd"
  58334. - $run eval "$cmd" || admincmds="$admincmds
  58335. - $cmd"
  58336. + # POSIX demands no paths to be encoded in archives. We have
  58337. + # to avoid creating archives with duplicate basenames if we
  58338. + # might have to extract them afterwards, e.g., when creating a
  58339. + # static archive out of a convenience library, or when linking
  58340. + # the entirety of a libtool archive into another (currently
  58341. + # not supported by libtool).
  58342. + if (for obj in $oldobjs
  58343. + do
  58344. + func_basename "$obj"
  58345. + $ECHO "$func_basename_result"
  58346. + done | sort | sort -uc >/dev/null 2>&1); then
  58347. + :
  58348. + else
  58349. + $ECHO "copying selected object files to avoid basename conflicts..."
  58350. + gentop="$output_objdir/${outputname}x"
  58351. + generated="$generated $gentop"
  58352. + func_mkdir_p "$gentop"
  58353. + save_oldobjs=$oldobjs
  58354. + oldobjs=
  58355. + counter=1
  58356. + for obj in $save_oldobjs
  58357. + do
  58358. + func_basename "$obj"
  58359. + objbase="$func_basename_result"
  58360. + case " $oldobjs " in
  58361. + " ") oldobjs=$obj ;;
  58362. + *[\ /]"$objbase "*)
  58363. + while :; do
  58364. + # Make sure we don't pick an alternate name that also
  58365. + # overlaps.
  58366. + newobj=lt$counter-$objbase
  58367. + func_arith $counter + 1
  58368. + counter=$func_arith_result
  58369. + case " $oldobjs " in
  58370. + *[\ /]"$newobj "*) ;;
  58371. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  58372. + esac
  58373. + done
  58374. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  58375. + oldobjs="$oldobjs $gentop/$newobj"
  58376. + ;;
  58377. + *) oldobjs="$oldobjs $obj" ;;
  58378. + esac
  58379. done
  58380. - IFS="$save_ifs"
  58381. - fi
  58382. - if test -n "$finish_eval"; then
  58383. - # Do the single finish_eval.
  58384. - eval cmds=\"$finish_eval\"
  58385. - $run eval "$cmds" || admincmds="$admincmds
  58386. - $cmds"
  58387. fi
  58388. - done
  58389. - fi
  58390. -
  58391. - # Exit here if they wanted silent mode.
  58392. - test "$show" = : && exit $EXIT_SUCCESS
  58393. + eval cmds=\"$old_archive_cmds\"
  58394. - $echo "X----------------------------------------------------------------------" | $Xsed
  58395. - $echo "Libraries have been installed in:"
  58396. - for libdir in $libdirs; do
  58397. - $echo " $libdir"
  58398. + func_len " $cmds"
  58399. + len=$func_len_result
  58400. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58401. + cmds=$old_archive_cmds
  58402. + else
  58403. + # the command line is too long to link in one step, link in parts
  58404. + func_verbose "using piecewise archive linking..."
  58405. + save_RANLIB=$RANLIB
  58406. + RANLIB=:
  58407. + objlist=
  58408. + concat_cmds=
  58409. + save_oldobjs=$oldobjs
  58410. + oldobjs=
  58411. + # Is there a better way of finding the last object in the list?
  58412. + for obj in $save_oldobjs
  58413. + do
  58414. + last_oldobj=$obj
  58415. + done
  58416. + eval test_cmds=\"$old_archive_cmds\"
  58417. + func_len " $test_cmds"
  58418. + len0=$func_len_result
  58419. + len=$len0
  58420. + for obj in $save_oldobjs
  58421. + do
  58422. + func_len " $obj"
  58423. + func_arith $len + $func_len_result
  58424. + len=$func_arith_result
  58425. + func_append objlist " $obj"
  58426. + if test "$len" -lt "$max_cmd_len"; then
  58427. + :
  58428. + else
  58429. + # the above command should be used before it gets too long
  58430. + oldobjs=$objlist
  58431. + if test "$obj" = "$last_oldobj" ; then
  58432. + RANLIB=$save_RANLIB
  58433. + fi
  58434. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58435. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  58436. + objlist=
  58437. + len=$len0
  58438. + fi
  58439. + done
  58440. + RANLIB=$save_RANLIB
  58441. + oldobjs=$objlist
  58442. + if test "X$oldobjs" = "X" ; then
  58443. + eval cmds=\"\$concat_cmds\"
  58444. + else
  58445. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  58446. + fi
  58447. + fi
  58448. + fi
  58449. + func_execute_cmds "$cmds" 'exit $?'
  58450. done
  58451. - $echo
  58452. - $echo "If you ever happen to want to link against installed libraries"
  58453. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  58454. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  58455. - $echo "flag during linking and do at least one of the following:"
  58456. - if test -n "$shlibpath_var"; then
  58457. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  58458. - $echo " during execution"
  58459. - fi
  58460. - if test -n "$runpath_var"; then
  58461. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  58462. - $echo " during linking"
  58463. - fi
  58464. - if test -n "$hardcode_libdir_flag_spec"; then
  58465. - libdir=LIBDIR
  58466. - eval flag=\"$hardcode_libdir_flag_spec\"
  58467. -
  58468. - $echo " - use the \`$flag' linker flag"
  58469. - fi
  58470. - if test -n "$admincmds"; then
  58471. - $echo " - have your system administrator run these commands:$admincmds"
  58472. - fi
  58473. - if test -f /etc/ld.so.conf; then
  58474. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  58475. - fi
  58476. - $echo
  58477. - $echo "See any operating system documentation about shared libraries for"
  58478. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  58479. - $echo "X----------------------------------------------------------------------" | $Xsed
  58480. - exit $EXIT_SUCCESS
  58481. - ;;
  58482. - # libtool execute mode
  58483. - execute)
  58484. - modename="$modename: execute"
  58485. + test -n "$generated" && \
  58486. + func_show_eval "${RM}r$generated"
  58487. - # The first argument is the command name.
  58488. - cmd="$nonopt"
  58489. - if test -z "$cmd"; then
  58490. - $echo "$modename: you must specify a COMMAND" 1>&2
  58491. - $echo "$help"
  58492. - exit $EXIT_FAILURE
  58493. - fi
  58494. -
  58495. - # Handle -dlopen flags immediately.
  58496. - for file in $execute_dlfiles; do
  58497. - if test ! -f "$file"; then
  58498. - $echo "$modename: \`$file' is not a file" 1>&2
  58499. - $echo "$help" 1>&2
  58500. - exit $EXIT_FAILURE
  58501. - fi
  58502. + # Now create the libtool archive.
  58503. + case $output in
  58504. + *.la)
  58505. + old_library=
  58506. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  58507. + func_verbose "creating $output"
  58508. - dir=
  58509. - case $file in
  58510. - *.la)
  58511. - # Check to see that this really is a libtool archive.
  58512. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  58513. + # Preserve any variables that may affect compiler behavior
  58514. + for var in $variables_saved_for_relink; do
  58515. + if eval test -z \"\${$var+set}\"; then
  58516. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  58517. + elif eval var_value=\$$var; test -z "$var_value"; then
  58518. + relink_command="$var=; export $var; $relink_command"
  58519. else
  58520. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  58521. - $echo "$help" 1>&2
  58522. - exit $EXIT_FAILURE
  58523. + func_quote_for_eval "$var_value"
  58524. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  58525. fi
  58526. + done
  58527. + # Quote the link command for shipping.
  58528. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  58529. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  58530. + if test "$hardcode_automatic" = yes ; then
  58531. + relink_command=
  58532. + fi
  58533. - # Read the libtool library.
  58534. - dlname=
  58535. - library_names=
  58536. + # Only create the output if not a dry run.
  58537. + $opt_dry_run || {
  58538. + for installed in no yes; do
  58539. + if test "$installed" = yes; then
  58540. + if test -z "$install_libdir"; then
  58541. + break
  58542. + fi
  58543. + output="$output_objdir/$outputname"i
  58544. + # Replace all uninstalled libtool libraries with the installed ones
  58545. + newdependency_libs=
  58546. + for deplib in $dependency_libs; do
  58547. + case $deplib in
  58548. + *.la)
  58549. + func_basename "$deplib"
  58550. + name="$func_basename_result"
  58551. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  58552. + test -z "$libdir" && \
  58553. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  58554. + newdependency_libs="$newdependency_libs $libdir/$name"
  58555. + ;;
  58556. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  58557. + esac
  58558. + done
  58559. + dependency_libs="$newdependency_libs"
  58560. + newdlfiles=
  58561. +
  58562. + for lib in $dlfiles; do
  58563. + case $lib in
  58564. + *.la)
  58565. + func_basename "$lib"
  58566. + name="$func_basename_result"
  58567. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58568. + test -z "$libdir" && \
  58569. + func_fatal_error "\`$lib' is not a valid libtool archive"
  58570. + newdlfiles="$newdlfiles $libdir/$name"
  58571. + ;;
  58572. + *) newdlfiles="$newdlfiles $lib" ;;
  58573. + esac
  58574. + done
  58575. + dlfiles="$newdlfiles"
  58576. + newdlprefiles=
  58577. + for lib in $dlprefiles; do
  58578. + case $lib in
  58579. + *.la)
  58580. + # Only pass preopened files to the pseudo-archive (for
  58581. + # eventual linking with the app. that links it) if we
  58582. + # didn't already link the preopened objects directly into
  58583. + # the library:
  58584. + func_basename "$lib"
  58585. + name="$func_basename_result"
  58586. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58587. + test -z "$libdir" && \
  58588. + func_fatal_error "\`$lib' is not a valid libtool archive"
  58589. + newdlprefiles="$newdlprefiles $libdir/$name"
  58590. + ;;
  58591. + esac
  58592. + done
  58593. + dlprefiles="$newdlprefiles"
  58594. + else
  58595. + newdlfiles=
  58596. + for lib in $dlfiles; do
  58597. + case $lib in
  58598. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  58599. + *) abs=`pwd`"/$lib" ;;
  58600. + esac
  58601. + newdlfiles="$newdlfiles $abs"
  58602. + done
  58603. + dlfiles="$newdlfiles"
  58604. + newdlprefiles=
  58605. + for lib in $dlprefiles; do
  58606. + case $lib in
  58607. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  58608. + *) abs=`pwd`"/$lib" ;;
  58609. + esac
  58610. + newdlprefiles="$newdlprefiles $abs"
  58611. + done
  58612. + dlprefiles="$newdlprefiles"
  58613. + fi
  58614. + $RM $output
  58615. + # place dlname in correct position for cygwin
  58616. + tdlname=$dlname
  58617. + case $host,$output,$installed,$module,$dlname in
  58618. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  58619. + esac
  58620. + $ECHO > $output "\
  58621. +# $outputname - a libtool library file
  58622. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  58623. +#
  58624. +# Please DO NOT delete this file!
  58625. +# It is necessary for linking the library.
  58626. - # If there is no directory component, then add one.
  58627. - case $file in
  58628. - */* | *\\*) . $file ;;
  58629. - *) . ./$file ;;
  58630. - esac
  58631. +# The name that we can dlopen(3).
  58632. +dlname='$tdlname'
  58633. - # Skip this library if it cannot be dlopened.
  58634. - if test -z "$dlname"; then
  58635. - # Warn if it was a shared library.
  58636. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  58637. - continue
  58638. - fi
  58639. +# Names of this library.
  58640. +library_names='$library_names'
  58641. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  58642. - test "X$dir" = "X$file" && dir=.
  58643. +# The name of the static archive.
  58644. +old_library='$old_library'
  58645. - if test -f "$dir/$objdir/$dlname"; then
  58646. - dir="$dir/$objdir"
  58647. - else
  58648. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  58649. - exit $EXIT_FAILURE
  58650. - fi
  58651. - ;;
  58652. +# Linker flags that can not go in dependency_libs.
  58653. +inherited_linker_flags='$new_inherited_linker_flags'
  58654. - *.lo)
  58655. - # Just add the directory containing the .lo file.
  58656. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  58657. - test "X$dir" = "X$file" && dir=.
  58658. - ;;
  58659. +# Libraries that this one depends upon.
  58660. +dependency_libs='$dependency_libs'
  58661. - *)
  58662. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  58663. - continue
  58664. - ;;
  58665. - esac
  58666. +# Names of additional weak libraries provided by this library
  58667. +weak_library_names='$weak_libs'
  58668. - # Get the absolute pathname.
  58669. - absdir=`cd "$dir" && pwd`
  58670. - test -n "$absdir" && dir="$absdir"
  58671. +# Version information for $libname.
  58672. +current=$current
  58673. +age=$age
  58674. +revision=$revision
  58675. - # Now add the directory to shlibpath_var.
  58676. - if eval "test -z \"\$$shlibpath_var\""; then
  58677. - eval "$shlibpath_var=\"\$dir\""
  58678. - else
  58679. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  58680. - fi
  58681. - done
  58682. +# Is this an already installed library?
  58683. +installed=$installed
  58684. - # This variable tells wrapper scripts just to set shlibpath_var
  58685. - # rather than running their programs.
  58686. - libtool_execute_magic="$magic"
  58687. +# Should we warn about portability when linking against -modules?
  58688. +shouldnotlink=$module
  58689. - # Check if any of the arguments is a wrapper script.
  58690. - args=
  58691. - for file
  58692. - do
  58693. - case $file in
  58694. - -*) ;;
  58695. - *)
  58696. - # Do a test to see if this is really a libtool program.
  58697. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58698. - # If there is no directory component, then add one.
  58699. - case $file in
  58700. - */* | *\\*) . $file ;;
  58701. - *) . ./$file ;;
  58702. - esac
  58703. +# Files to dlopen/dlpreopen
  58704. +dlopen='$dlfiles'
  58705. +dlpreopen='$dlprefiles'
  58706. - # Transform arg to wrapped name.
  58707. - file="$progdir/$program"
  58708. - fi
  58709. - ;;
  58710. - esac
  58711. - # Quote arguments (to preserve shell metacharacters).
  58712. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  58713. - args="$args \"$file\""
  58714. - done
  58715. +# Directory that this library needs to be installed in:
  58716. +libdir='$install_libdir'"
  58717. + if test "$installed" = no && test "$need_relink" = yes; then
  58718. + $ECHO >> $output "\
  58719. +relink_command=\"$relink_command\""
  58720. + fi
  58721. + done
  58722. + }
  58723. - if test -z "$run"; then
  58724. - if test -n "$shlibpath_var"; then
  58725. - # Export the shlibpath_var.
  58726. - eval "export $shlibpath_var"
  58727. - fi
  58728. + # Do a symbolic link so that the libtool archive can be found in
  58729. + # LD_LIBRARY_PATH before the program is installed.
  58730. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  58731. + ;;
  58732. + esac
  58733. + exit $EXIT_SUCCESS
  58734. +}
  58735. - # Restore saved environment variables
  58736. - if test "${save_LC_ALL+set}" = set; then
  58737. - LC_ALL="$save_LC_ALL"; export LC_ALL
  58738. - fi
  58739. - if test "${save_LANG+set}" = set; then
  58740. - LANG="$save_LANG"; export LANG
  58741. - fi
  58742. +{ test "$mode" = link || test "$mode" = relink; } &&
  58743. + func_mode_link ${1+"$@"}
  58744. - # Now prepare to actually exec the command.
  58745. - exec_cmd="\$cmd$args"
  58746. - else
  58747. - # Display what would be done.
  58748. - if test -n "$shlibpath_var"; then
  58749. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  58750. - $echo "export $shlibpath_var"
  58751. - fi
  58752. - $echo "$cmd$args"
  58753. - exit $EXIT_SUCCESS
  58754. - fi
  58755. - ;;
  58756. - # libtool clean and uninstall mode
  58757. - clean | uninstall)
  58758. - modename="$modename: $mode"
  58759. - rm="$nonopt"
  58760. +# func_mode_uninstall arg...
  58761. +func_mode_uninstall ()
  58762. +{
  58763. + $opt_debug
  58764. + RM="$nonopt"
  58765. files=
  58766. rmforce=
  58767. exit_status=0
  58768. @@ -6448,30 +8209,28 @@
  58769. for arg
  58770. do
  58771. case $arg in
  58772. - -f) rm="$rm $arg"; rmforce=yes ;;
  58773. - -*) rm="$rm $arg" ;;
  58774. + -f) RM="$RM $arg"; rmforce=yes ;;
  58775. + -*) RM="$RM $arg" ;;
  58776. *) files="$files $arg" ;;
  58777. esac
  58778. done
  58779. - if test -z "$rm"; then
  58780. - $echo "$modename: you must specify an RM program" 1>&2
  58781. - $echo "$help" 1>&2
  58782. - exit $EXIT_FAILURE
  58783. - fi
  58784. + test -z "$RM" && \
  58785. + func_fatal_help "you must specify an RM program"
  58786. rmdirs=
  58787. origobjdir="$objdir"
  58788. for file in $files; do
  58789. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  58790. - if test "X$dir" = "X$file"; then
  58791. - dir=.
  58792. + func_dirname "$file" "" "."
  58793. + dir="$func_dirname_result"
  58794. + if test "X$dir" = X.; then
  58795. objdir="$origobjdir"
  58796. else
  58797. objdir="$dir/$origobjdir"
  58798. fi
  58799. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58800. + func_basename "$file"
  58801. + name="$func_basename_result"
  58802. test "$mode" = uninstall && objdir="$dir"
  58803. # Remember objdir for removal later, being careful to avoid duplicates
  58804. @@ -6483,9 +8242,9 @@
  58805. fi
  58806. # Don't error if the file doesn't exist and rm -f was used.
  58807. - if (test -L "$file") >/dev/null 2>&1 \
  58808. - || (test -h "$file") >/dev/null 2>&1 \
  58809. - || test -f "$file"; then
  58810. + if { test -L "$file"; } >/dev/null 2>&1 ||
  58811. + { test -h "$file"; } >/dev/null 2>&1 ||
  58812. + test -f "$file"; then
  58813. :
  58814. elif test -d "$file"; then
  58815. exit_status=1
  58816. @@ -6499,8 +8258,8 @@
  58817. case $name in
  58818. *.la)
  58819. # Possibly a libtool archive, so verify it.
  58820. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58821. - . $dir/$name
  58822. + if func_lalib_p "$file"; then
  58823. + func_source $dir/$name
  58824. # Delete the libtool libraries and symlinks.
  58825. for n in $library_names; do
  58826. @@ -6515,39 +8274,17 @@
  58827. *" $dlname "*) ;;
  58828. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  58829. esac
  58830. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  58831. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  58832. ;;
  58833. uninstall)
  58834. if test -n "$library_names"; then
  58835. # Do each command in the postuninstall commands.
  58836. - cmds=$postuninstall_cmds
  58837. - save_ifs="$IFS"; IFS='~'
  58838. - for cmd in $cmds; do
  58839. - IFS="$save_ifs"
  58840. - eval cmd=\"$cmd\"
  58841. - $show "$cmd"
  58842. - $run eval "$cmd"
  58843. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  58844. - exit_status=1
  58845. - fi
  58846. - done
  58847. - IFS="$save_ifs"
  58848. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  58849. fi
  58850. if test -n "$old_library"; then
  58851. # Do each command in the old_postuninstall commands.
  58852. - cmds=$old_postuninstall_cmds
  58853. - save_ifs="$IFS"; IFS='~'
  58854. - for cmd in $cmds; do
  58855. - IFS="$save_ifs"
  58856. - eval cmd=\"$cmd\"
  58857. - $show "$cmd"
  58858. - $run eval "$cmd"
  58859. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  58860. - exit_status=1
  58861. - fi
  58862. - done
  58863. - IFS="$save_ifs"
  58864. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  58865. fi
  58866. # FIXME: should reinstall the best remaining shared library.
  58867. ;;
  58868. @@ -6557,20 +8294,20 @@
  58869. *.lo)
  58870. # Possibly a libtool object, so verify it.
  58871. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58872. + if func_lalib_p "$file"; then
  58873. # Read the .lo file
  58874. - . $dir/$name
  58875. + func_source $dir/$name
  58876. # Add PIC object to the list of files to remove.
  58877. - if test -n "$pic_object" \
  58878. - && test "$pic_object" != none; then
  58879. + if test -n "$pic_object" &&
  58880. + test "$pic_object" != none; then
  58881. rmfiles="$rmfiles $dir/$pic_object"
  58882. fi
  58883. # Add non-PIC object to the list of files to remove.
  58884. - if test -n "$non_pic_object" \
  58885. - && test "$non_pic_object" != none; then
  58886. + if test -n "$non_pic_object" &&
  58887. + test "$non_pic_object" != none; then
  58888. rmfiles="$rmfiles $dir/$non_pic_object"
  58889. fi
  58890. fi
  58891. @@ -6581,17 +8318,26 @@
  58892. noexename=$name
  58893. case $file in
  58894. *.exe)
  58895. - file=`$echo $file|${SED} 's,.exe$,,'`
  58896. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  58897. + func_stripname '' '.exe' "$file"
  58898. + file=$func_stripname_result
  58899. + func_stripname '' '.exe' "$name"
  58900. + noexename=$func_stripname_result
  58901. # $file with .exe has already been added to rmfiles,
  58902. # add $file without .exe
  58903. rmfiles="$rmfiles $file"
  58904. ;;
  58905. esac
  58906. # Do a test to see if this is a libtool program.
  58907. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58908. - relink_command=
  58909. - . $dir/$noexename
  58910. + if func_ltwrapper_p "$file"; then
  58911. + if func_ltwrapper_executable_p "$file"; then
  58912. + func_ltwrapper_scriptname "$file"
  58913. + relink_command=
  58914. + func_source $func_ltwrapper_scriptname_result
  58915. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  58916. + else
  58917. + relink_command=
  58918. + func_source $dir/$noexename
  58919. + fi
  58920. # note $name still contains .exe if it was in $file originally
  58921. # as does the version of $file that was added into $rmfiles
  58922. @@ -6606,237 +8352,38 @@
  58923. fi
  58924. ;;
  58925. esac
  58926. - $show "$rm $rmfiles"
  58927. - $run $rm $rmfiles || exit_status=1
  58928. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  58929. done
  58930. objdir="$origobjdir"
  58931. # Try to remove the ${objdir}s in the directories where we deleted files
  58932. for dir in $rmdirs; do
  58933. if test -d "$dir"; then
  58934. - $show "rmdir $dir"
  58935. - $run rmdir $dir >/dev/null 2>&1
  58936. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  58937. fi
  58938. done
  58939. exit $exit_status
  58940. - ;;
  58941. +}
  58942. - "")
  58943. - $echo "$modename: you must specify a MODE" 1>&2
  58944. - $echo "$generic_help" 1>&2
  58945. - exit $EXIT_FAILURE
  58946. - ;;
  58947. - esac
  58948. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  58949. + func_mode_uninstall ${1+"$@"}
  58950. - if test -z "$exec_cmd"; then
  58951. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  58952. - $echo "$generic_help" 1>&2
  58953. - exit $EXIT_FAILURE
  58954. - fi
  58955. -fi # test -z "$show_help"
  58956. +test -z "$mode" && {
  58957. + help="$generic_help"
  58958. + func_fatal_help "you must specify a MODE"
  58959. +}
  58960. +
  58961. +test -z "$exec_cmd" && \
  58962. + func_fatal_help "invalid operation mode \`$mode'"
  58963. if test -n "$exec_cmd"; then
  58964. - eval exec $exec_cmd
  58965. + eval exec "$exec_cmd"
  58966. exit $EXIT_FAILURE
  58967. fi
  58968. -# We need to display help for each of the modes.
  58969. -case $mode in
  58970. -"") $echo \
  58971. -"Usage: $modename [OPTION]... [MODE-ARG]...
  58972. -
  58973. -Provide generalized library-building support services.
  58974. -
  58975. - --config show all configuration variables
  58976. - --debug enable verbose shell tracing
  58977. --n, --dry-run display commands without modifying any files
  58978. - --features display basic configuration information and exit
  58979. - --finish same as \`--mode=finish'
  58980. - --help display this help message and exit
  58981. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  58982. - --quiet same as \`--silent'
  58983. - --silent don't print informational messages
  58984. - --tag=TAG use configuration variables from tag TAG
  58985. - --version print version information
  58986. -
  58987. -MODE must be one of the following:
  58988. -
  58989. - clean remove files from the build directory
  58990. - compile compile a source file into a libtool object
  58991. - execute automatically set library path, then run a program
  58992. - finish complete the installation of libtool libraries
  58993. - install install libraries or executables
  58994. - link create a library or an executable
  58995. - uninstall remove libraries from an installed directory
  58996. -
  58997. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  58998. -a more detailed description of MODE.
  58999. -
  59000. -Report bugs to <bug-libtool@gnu.org>."
  59001. - exit $EXIT_SUCCESS
  59002. - ;;
  59003. -
  59004. -clean)
  59005. - $echo \
  59006. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  59007. -
  59008. -Remove files from the build directory.
  59009. -
  59010. -RM is the name of the program to use to delete files associated with each FILE
  59011. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  59012. -to RM.
  59013. -
  59014. -If FILE is a libtool library, object or program, all the files associated
  59015. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  59016. - ;;
  59017. -
  59018. -compile)
  59019. - $echo \
  59020. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  59021. -
  59022. -Compile a source file into a libtool library object.
  59023. -
  59024. -This mode accepts the following additional options:
  59025. -
  59026. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  59027. - -prefer-pic try to building PIC objects only
  59028. - -prefer-non-pic try to building non-PIC objects only
  59029. - -static always build a \`.o' file suitable for static linking
  59030. -
  59031. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  59032. -from the given SOURCEFILE.
  59033. -
  59034. -The output file name is determined by removing the directory component from
  59035. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  59036. -library object suffix, \`.lo'."
  59037. - ;;
  59038. -
  59039. -execute)
  59040. - $echo \
  59041. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  59042. -
  59043. -Automatically set library path, then run a program.
  59044. -
  59045. -This mode accepts the following additional options:
  59046. -
  59047. - -dlopen FILE add the directory containing FILE to the library path
  59048. -
  59049. -This mode sets the library path environment variable according to \`-dlopen'
  59050. -flags.
  59051. -
  59052. -If any of the ARGS are libtool executable wrappers, then they are translated
  59053. -into their corresponding uninstalled binary, and any of their required library
  59054. -directories are added to the library path.
  59055. -
  59056. -Then, COMMAND is executed, with ARGS as arguments."
  59057. - ;;
  59058. -
  59059. -finish)
  59060. - $echo \
  59061. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  59062. -
  59063. -Complete the installation of libtool libraries.
  59064. -
  59065. -Each LIBDIR is a directory that contains libtool libraries.
  59066. -
  59067. -The commands that this mode executes may require superuser privileges. Use
  59068. -the \`--dry-run' option if you just want to see what would be executed."
  59069. - ;;
  59070. -
  59071. -install)
  59072. - $echo \
  59073. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  59074. -
  59075. -Install executables or libraries.
  59076. -
  59077. -INSTALL-COMMAND is the installation command. The first component should be
  59078. -either the \`install' or \`cp' program.
  59079. -
  59080. -The rest of the components are interpreted as arguments to that command (only
  59081. -BSD-compatible install options are recognized)."
  59082. - ;;
  59083. -
  59084. -link)
  59085. - $echo \
  59086. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  59087. -
  59088. -Link object files or libraries together to form another library, or to
  59089. -create an executable program.
  59090. -
  59091. -LINK-COMMAND is a command using the C compiler that you would use to create
  59092. -a program from several object files.
  59093. -
  59094. -The following components of LINK-COMMAND are treated specially:
  59095. -
  59096. - -all-static do not do any dynamic linking at all
  59097. - -avoid-version do not add a version suffix if possible
  59098. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  59099. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  59100. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  59101. - -export-symbols SYMFILE
  59102. - try to export only the symbols listed in SYMFILE
  59103. - -export-symbols-regex REGEX
  59104. - try to export only the symbols matching REGEX
  59105. - -LLIBDIR search LIBDIR for required installed libraries
  59106. - -lNAME OUTPUT-FILE requires the installed library libNAME
  59107. - -module build a library that can dlopened
  59108. - -no-fast-install disable the fast-install mode
  59109. - -no-install link a not-installable executable
  59110. - -no-undefined declare that a library does not refer to external symbols
  59111. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  59112. - -objectlist FILE Use a list of object files found in FILE to specify objects
  59113. - -precious-files-regex REGEX
  59114. - don't remove output files matching REGEX
  59115. - -release RELEASE specify package release information
  59116. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  59117. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  59118. - -static do not do any dynamic linking of libtool libraries
  59119. - -version-info CURRENT[:REVISION[:AGE]]
  59120. - specify library version info [each variable defaults to 0]
  59121. -
  59122. -All other options (arguments beginning with \`-') are ignored.
  59123. -
  59124. -Every other argument is treated as a filename. Files ending in \`.la' are
  59125. -treated as uninstalled libtool libraries, other files are standard or library
  59126. -object files.
  59127. -
  59128. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  59129. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  59130. -required, except when creating a convenience library.
  59131. -
  59132. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  59133. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  59134. -
  59135. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  59136. -is created, otherwise an executable program is created."
  59137. - ;;
  59138. -
  59139. -uninstall)
  59140. - $echo \
  59141. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  59142. -
  59143. -Remove libraries from an installation directory.
  59144. -
  59145. -RM is the name of the program to use to delete files associated with each FILE
  59146. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  59147. -to RM.
  59148. +exit $exit_status
  59149. -If FILE is a libtool library, all the files associated with it are deleted.
  59150. -Otherwise, only FILE itself is deleted using RM."
  59151. - ;;
  59152. -
  59153. -*)
  59154. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  59155. - $echo "$help" 1>&2
  59156. - exit $EXIT_FAILURE
  59157. - ;;
  59158. -esac
  59159. -
  59160. -$echo
  59161. -$echo "Try \`$modename --help' for more information about other modes."
  59162. -
  59163. -exit $?
  59164. # The TAGs below are defined such that we never get into a situation
  59165. # in which we disable both kinds of libraries. Given conflicting
  59166. @@ -6850,14 +8397,17 @@
  59167. # configuration. But we'll never go from static-only to shared-only.
  59168. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  59169. -disable_libs=shared
  59170. +build_libtool_libs=no
  59171. +build_old_libs=yes
  59172. # ### END LIBTOOL TAG CONFIG: disable-shared
  59173. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  59174. -disable_libs=static
  59175. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  59176. # ### END LIBTOOL TAG CONFIG: disable-static
  59177. # Local Variables:
  59178. # mode:shell-script
  59179. # sh-indentation:2
  59180. # End:
  59181. +# vi:sw=2
  59182. +
  59183. diff -Nur libevent-1.3.orig/Makefile.am libevent-1.3/Makefile.am
  59184. --- libevent-1.3.orig/Makefile.am 2007-02-16 01:49:50.000000000 +0100
  59185. +++ libevent-1.3/Makefile.am 2011-02-17 17:08:00.754812705 +0100
  59186. @@ -31,7 +31,7 @@
  59187. else
  59188. -SUBDIRS = . sample test
  59189. +SUBDIRS = .
  59190. SYS_LIBS =
  59191. SYS_SRC =
  59192. SYS_INCLUDES =
  59193. diff -Nur libevent-1.3.orig/Makefile.in libevent-1.3/Makefile.in
  59194. --- libevent-1.3.orig/Makefile.in 2007-02-16 01:52:33.000000000 +0100
  59195. +++ libevent-1.3/Makefile.in 2011-02-17 17:08:17.523562934 +0100
  59196. @@ -1,8 +1,9 @@
  59197. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  59198. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  59199. # @configure_input@
  59200. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  59201. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  59202. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  59203. +# Inc.
  59204. # This Makefile.in is free software; the Free Software Foundation
  59205. # gives unlimited permission to copy and/or distribute it,
  59206. # with or without modifications, as long as this notice is preserved.
  59207. @@ -16,15 +17,12 @@
  59208. -srcdir = @srcdir@
  59209. -top_srcdir = @top_srcdir@
  59210. VPATH = @srcdir@
  59211. pkgdatadir = $(datadir)/@PACKAGE@
  59212. -pkglibdir = $(libdir)/@PACKAGE@
  59213. pkgincludedir = $(includedir)/@PACKAGE@
  59214. -top_builddir = .
  59215. +pkglibdir = $(libdir)/@PACKAGE@
  59216. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  59217. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  59218. -INSTALL = @INSTALL@
  59219. install_sh_DATA = $(install_sh) -c -m 644
  59220. install_sh_PROGRAM = $(install_sh) -c
  59221. install_sh_SCRIPT = $(install_sh) -c
  59222. @@ -38,31 +36,46 @@
  59223. POST_UNINSTALL = :
  59224. build_triplet = @build@
  59225. host_triplet = @host@
  59226. +subdir = .
  59227. DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
  59228. $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  59229. $(srcdir)/config.h.in $(top_srcdir)/configure acconfig.h \
  59230. config.guess config.sub devpoll.c epoll.c epoll_sub.c evport.c \
  59231. install-sh kqueue.c ltmain.sh missing mkinstalldirs poll.c \
  59232. rtsig.c select.c signal.c
  59233. -subdir = .
  59234. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  59235. am__aclocal_m4_deps = $(top_srcdir)/configure.in
  59236. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  59237. $(ACLOCAL_M4)
  59238. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  59239. - configure.lineno configure.status.lineno
  59240. + configure.lineno config.status.lineno
  59241. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  59242. CONFIG_HEADER = config.h
  59243. CONFIG_CLEAN_FILES =
  59244. +CONFIG_CLEAN_VPATH_FILES =
  59245. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  59246. am__vpath_adj = case $$p in \
  59247. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  59248. *) f=$$p;; \
  59249. esac;
  59250. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  59251. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  59252. +am__install_max = 40
  59253. +am__nobase_strip_setup = \
  59254. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  59255. +am__nobase_strip = \
  59256. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  59257. +am__nobase_list = $(am__nobase_strip_setup); \
  59258. + for p in $$list; do echo "$$p $$p"; done | \
  59259. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  59260. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  59261. + if (++n[$$2] == $(am__install_max)) \
  59262. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  59263. + END { for (dir in files) print dir, files[dir] }'
  59264. +am__base_list = \
  59265. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  59266. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  59267. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
  59268. "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(includedir)"
  59269. -libLTLIBRARIES_INSTALL = $(INSTALL)
  59270. LTLIBRARIES = $(lib_LTLIBRARIES)
  59271. am__DEPENDENCIES_1 =
  59272. libevent_la_DEPENDENCIES = @LTLIBOBJS@ $(am__DEPENDENCIES_1)
  59273. @@ -74,113 +87,146 @@
  59274. am_libevent_la_OBJECTS = event.lo buffer.lo evbuffer.lo log.lo \
  59275. event_tagging.lo http.lo evdns.lo strlcpy.lo $(am__objects_1)
  59276. libevent_la_OBJECTS = $(am_libevent_la_OBJECTS)
  59277. -binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
  59278. +libevent_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  59279. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  59280. + $(libevent_la_LDFLAGS) $(LDFLAGS) -o $@
  59281. SCRIPTS = $(bin_SCRIPTS)
  59282. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
  59283. +DEFAULT_INCLUDES = -I.@am__isrc@
  59284. depcomp =
  59285. am__depfiles_maybe =
  59286. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  59287. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  59288. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  59289. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  59290. - $(AM_CFLAGS) $(CFLAGS)
  59291. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  59292. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  59293. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  59294. CCLD = $(CC)
  59295. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  59296. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  59297. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  59298. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  59299. + $(LDFLAGS) -o $@
  59300. SOURCES = $(libevent_la_SOURCES)
  59301. DIST_SOURCES = $(am__libevent_la_SOURCES_DIST)
  59302. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  59303. html-recursive info-recursive install-data-recursive \
  59304. - install-exec-recursive install-info-recursive \
  59305. - install-recursive installcheck-recursive installdirs-recursive \
  59306. - pdf-recursive ps-recursive uninstall-info-recursive \
  59307. - uninstall-recursive
  59308. + install-dvi-recursive install-exec-recursive \
  59309. + install-html-recursive install-info-recursive \
  59310. + install-pdf-recursive install-ps-recursive install-recursive \
  59311. + installcheck-recursive installdirs-recursive pdf-recursive \
  59312. + ps-recursive uninstall-recursive
  59313. man3dir = $(mandir)/man3
  59314. NROFF = nroff
  59315. MANS = $(man_MANS)
  59316. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  59317. HEADERS = $(include_HEADERS)
  59318. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  59319. + distclean-recursive maintainer-clean-recursive
  59320. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  59321. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  59322. + distdir dist dist-all distcheck
  59323. ETAGS = etags
  59324. CTAGS = ctags
  59325. -DIST_SUBDIRS = . sample test
  59326. +DIST_SUBDIRS = . sample
  59327. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  59328. distdir = $(PACKAGE)-$(VERSION)
  59329. top_distdir = $(distdir)
  59330. am__remove_distdir = \
  59331. - { test ! -d $(distdir) \
  59332. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  59333. - && rm -fr $(distdir); }; }
  59334. + { test ! -d "$(distdir)" \
  59335. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  59336. + && rm -fr "$(distdir)"; }; }
  59337. +am__relativize = \
  59338. + dir0=`pwd`; \
  59339. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  59340. + sed_rest='s,^[^/]*/*,,'; \
  59341. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  59342. + sed_butlast='s,/*[^/]*$$,,'; \
  59343. + while test -n "$$dir1"; do \
  59344. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  59345. + if test "$$first" != "."; then \
  59346. + if test "$$first" = ".."; then \
  59347. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  59348. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  59349. + else \
  59350. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  59351. + if test "$$first2" = "$$first"; then \
  59352. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  59353. + else \
  59354. + dir2="../$$dir2"; \
  59355. + fi; \
  59356. + dir0="$$dir0"/"$$first"; \
  59357. + fi; \
  59358. + fi; \
  59359. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  59360. + done; \
  59361. + reldir="$$dir2"
  59362. DIST_ARCHIVES = $(distdir).tar.gz
  59363. GZIP_ENV = --best
  59364. distuninstallcheck_listfiles = find . -type f -print
  59365. distcleancheck_listfiles = find . -type f -print
  59366. ACLOCAL = @ACLOCAL@
  59367. -AMDEP_FALSE = @AMDEP_FALSE@
  59368. -AMDEP_TRUE = @AMDEP_TRUE@
  59369. AMTAR = @AMTAR@
  59370. AR = @AR@
  59371. AUTOCONF = @AUTOCONF@
  59372. AUTOHEADER = @AUTOHEADER@
  59373. AUTOMAKE = @AUTOMAKE@
  59374. AWK = @AWK@
  59375. -BUILD_WIN32_FALSE = @BUILD_WIN32_FALSE@
  59376. -BUILD_WIN32_TRUE = @BUILD_WIN32_TRUE@
  59377. CC = @CC@
  59378. CCDEPMODE = @CCDEPMODE@
  59379. CFLAGS = @CFLAGS@
  59380. CPP = @CPP@
  59381. CPPFLAGS = @CPPFLAGS@
  59382. -CXX = @CXX@
  59383. -CXXCPP = @CXXCPP@
  59384. -CXXDEPMODE = @CXXDEPMODE@
  59385. -CXXFLAGS = @CXXFLAGS@
  59386. CYGPATH_W = @CYGPATH_W@
  59387. DEFS = @DEFS@
  59388. DEPDIR = @DEPDIR@
  59389. -ECHO = @ECHO@
  59390. +DSYMUTIL = @DSYMUTIL@
  59391. +DUMPBIN = @DUMPBIN@
  59392. ECHO_C = @ECHO_C@
  59393. ECHO_N = @ECHO_N@
  59394. ECHO_T = @ECHO_T@
  59395. EGREP = @EGREP@
  59396. EXEEXT = @EXEEXT@
  59397. -F77 = @F77@
  59398. -FFLAGS = @FFLAGS@
  59399. +FGREP = @FGREP@
  59400. GREP = @GREP@
  59401. +INSTALL = @INSTALL@
  59402. INSTALL_DATA = @INSTALL_DATA@
  59403. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  59404. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  59405. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  59406. +LD = @LD@
  59407. LDFLAGS = @LDFLAGS@
  59408. LIBOBJS = @LIBOBJS@
  59409. LIBS = @LIBS@
  59410. LIBTOOL = @LIBTOOL@
  59411. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  59412. +LIPO = @LIPO@
  59413. LN_S = @LN_S@
  59414. LTLIBOBJS = @LTLIBOBJS@
  59415. MAINT = @MAINT@
  59416. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  59417. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  59418. MAKEINFO = @MAKEINFO@
  59419. +MKDIR_P = @MKDIR_P@
  59420. +NM = @NM@
  59421. +NMEDIT = @NMEDIT@
  59422. +OBJDUMP = @OBJDUMP@
  59423. OBJEXT = @OBJEXT@
  59424. +OTOOL = @OTOOL@
  59425. +OTOOL64 = @OTOOL64@
  59426. PACKAGE = @PACKAGE@
  59427. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  59428. PACKAGE_NAME = @PACKAGE_NAME@
  59429. PACKAGE_STRING = @PACKAGE_STRING@
  59430. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  59431. +PACKAGE_URL = @PACKAGE_URL@
  59432. PACKAGE_VERSION = @PACKAGE_VERSION@
  59433. PATH_SEPARATOR = @PATH_SEPARATOR@
  59434. RANLIB = @RANLIB@
  59435. +SED = @SED@
  59436. SET_MAKE = @SET_MAKE@
  59437. SHELL = @SHELL@
  59438. STRIP = @STRIP@
  59439. VERSION = @VERSION@
  59440. +abs_builddir = @abs_builddir@
  59441. +abs_srcdir = @abs_srcdir@
  59442. +abs_top_builddir = @abs_top_builddir@
  59443. +abs_top_srcdir = @abs_top_srcdir@
  59444. ac_ct_CC = @ac_ct_CC@
  59445. -ac_ct_CXX = @ac_ct_CXX@
  59446. -ac_ct_F77 = @ac_ct_F77@
  59447. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  59448. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  59449. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  59450. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  59451. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  59452. am__include = @am__include@
  59453. am__leading_dot = @am__leading_dot@
  59454. am__quote = @am__quote@
  59455. @@ -192,6 +238,7 @@
  59456. build_cpu = @build_cpu@
  59457. build_os = @build_os@
  59458. build_vendor = @build_vendor@
  59459. +builddir = @builddir@
  59460. datadir = @datadir@
  59461. datarootdir = @datarootdir@
  59462. docdir = @docdir@
  59463. @@ -210,6 +257,7 @@
  59464. libexecdir = @libexecdir@
  59465. localedir = @localedir@
  59466. localstatedir = @localstatedir@
  59467. +lt_ECHO = @lt_ECHO@
  59468. mandir = @mandir@
  59469. mkdir_p = @mkdir_p@
  59470. oldincludedir = @oldincludedir@
  59471. @@ -219,8 +267,12 @@
  59472. psdir = @psdir@
  59473. sbindir = @sbindir@
  59474. sharedstatedir = @sharedstatedir@
  59475. +srcdir = @srcdir@
  59476. sysconfdir = @sysconfdir@
  59477. target_alias = @target_alias@
  59478. +top_build_prefix = @top_build_prefix@
  59479. +top_builddir = @top_builddir@
  59480. +top_srcdir = @top_srcdir@
  59481. AUTOMAKE_OPTIONS = foreign no-dependencies
  59482. bin_SCRIPTS = event_rpcgen.py
  59483. EXTRA_DIST = acconfig.h event.h event-internal.h log.h evsignal.h evdns.3 \
  59484. @@ -241,7 +293,7 @@
  59485. WIN32-Prj/time_test/time_test.dsp
  59486. lib_LTLIBRARIES = libevent.la
  59487. -@BUILD_WIN32_FALSE@SUBDIRS = . sample test
  59488. +@BUILD_WIN32_FALSE@SUBDIRS = .
  59489. @BUILD_WIN32_TRUE@SUBDIRS = . sample
  59490. @BUILD_WIN32_FALSE@SYS_LIBS =
  59491. @BUILD_WIN32_TRUE@SYS_LIBS = -lws2_32
  59492. @@ -271,15 +323,15 @@
  59493. @for dep in $?; do \
  59494. case '$(am__configure_deps)' in \
  59495. *$$dep*) \
  59496. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  59497. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  59498. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  59499. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  59500. && exit 0; \
  59501. exit 1;; \
  59502. esac; \
  59503. done; \
  59504. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  59505. - cd $(top_srcdir) && \
  59506. - $(AUTOMAKE) --foreign Makefile
  59507. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  59508. + $(am__cd) $(top_srcdir) && \
  59509. + $(AUTOMAKE) --foreign Makefile
  59510. .PRECIOUS: Makefile
  59511. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  59512. @case '$?' in \
  59513. @@ -295,21 +347,22 @@
  59514. $(SHELL) ./config.status --recheck
  59515. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  59516. - cd $(srcdir) && $(AUTOCONF)
  59517. + $(am__cd) $(srcdir) && $(AUTOCONF)
  59518. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  59519. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  59520. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  59521. +$(am__aclocal_m4_deps):
  59522. config.h: stamp-h1
  59523. @if test ! -f $@; then \
  59524. rm -f stamp-h1; \
  59525. - $(MAKE) stamp-h1; \
  59526. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  59527. else :; fi
  59528. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  59529. @rm -f stamp-h1
  59530. cd $(top_builddir) && $(SHELL) ./config.status config.h
  59531. $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(top_srcdir)/acconfig.h
  59532. - cd $(top_srcdir) && $(AUTOHEADER)
  59533. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  59534. rm -f stamp-h1
  59535. touch $@
  59536. @@ -317,21 +370,25 @@
  59537. -rm -f config.h stamp-h1
  59538. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  59539. @$(NORMAL_INSTALL)
  59540. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  59541. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  59542. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  59543. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  59544. + list2=; for p in $$list; do \
  59545. if test -f $$p; then \
  59546. - f=$(am__strip_dir) \
  59547. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  59548. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  59549. + list2="$$list2 $$p"; \
  59550. else :; fi; \
  59551. - done
  59552. + done; \
  59553. + test -z "$$list2" || { \
  59554. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  59555. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  59556. + }
  59557. uninstall-libLTLIBRARIES:
  59558. @$(NORMAL_UNINSTALL)
  59559. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  59560. - p=$(am__strip_dir) \
  59561. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  59562. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  59563. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  59564. + for p in $$list; do \
  59565. + $(am__strip_dir) \
  59566. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  59567. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  59568. done
  59569. clean-libLTLIBRARIES:
  59570. @@ -343,26 +400,41 @@
  59571. rm -f "$${dir}/so_locations"; \
  59572. done
  59573. libevent.la: $(libevent_la_OBJECTS) $(libevent_la_DEPENDENCIES)
  59574. - $(LINK) -rpath $(libdir) $(libevent_la_LDFLAGS) $(libevent_la_OBJECTS) $(libevent_la_LIBADD) $(LIBS)
  59575. + $(libevent_la_LINK) -rpath $(libdir) $(libevent_la_OBJECTS) $(libevent_la_LIBADD) $(LIBS)
  59576. install-binSCRIPTS: $(bin_SCRIPTS)
  59577. @$(NORMAL_INSTALL)
  59578. - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
  59579. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  59580. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  59581. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
  59582. + for p in $$list; do \
  59583. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  59584. - if test -f $$d$$p; then \
  59585. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  59586. - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  59587. - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
  59588. - else :; fi; \
  59589. - done
  59590. + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
  59591. + done | \
  59592. + sed -e 'p;s,.*/,,;n' \
  59593. + -e 'h;s|.*|.|' \
  59594. + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
  59595. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
  59596. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  59597. + if ($$2 == $$4) { files[d] = files[d] " " $$1; \
  59598. + if (++n[d] == $(am__install_max)) { \
  59599. + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
  59600. + else { print "f", d "/" $$4, $$1 } } \
  59601. + END { for (d in files) print "f", d, files[d] }' | \
  59602. + while read type dir files; do \
  59603. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  59604. + test -z "$$files" || { \
  59605. + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  59606. + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  59607. + } \
  59608. + ; done
  59609. uninstall-binSCRIPTS:
  59610. @$(NORMAL_UNINSTALL)
  59611. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  59612. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  59613. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  59614. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  59615. - done
  59616. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
  59617. + files=`for p in $$list; do echo "$$p"; done | \
  59618. + sed -e 's,.*/,,;$(transform)'`; \
  59619. + test -n "$$list" || exit 0; \
  59620. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  59621. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  59622. mostlyclean-compile:
  59623. -rm -f *.$(OBJEXT)
  59624. @@ -380,10 +452,10 @@
  59625. $(LTCOMPILE) -c -o $@ $<
  59626. misc.lo: WIN32-Code/misc.c
  59627. - $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.lo `test -f 'WIN32-Code/misc.c' || echo '$(srcdir)/'`WIN32-Code/misc.c
  59628. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o misc.lo `test -f 'WIN32-Code/misc.c' || echo '$(srcdir)/'`WIN32-Code/misc.c
  59629. win32.lo: WIN32-Code/win32.c
  59630. - $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o win32.lo `test -f 'WIN32-Code/win32.c' || echo '$(srcdir)/'`WIN32-Code/win32.c
  59631. + $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o win32.lo `test -f 'WIN32-Code/win32.c' || echo '$(srcdir)/'`WIN32-Code/win32.c
  59632. mostlyclean-libtool:
  59633. -rm -f *.lo
  59634. @@ -392,70 +464,65 @@
  59635. -rm -rf .libs _libs
  59636. distclean-libtool:
  59637. - -rm -f libtool
  59638. -uninstall-info-am:
  59639. -install-man3: $(man3_MANS) $(man_MANS)
  59640. + -rm -f libtool config.lt
  59641. +install-man3: $(man_MANS)
  59642. @$(NORMAL_INSTALL)
  59643. - test -z "$(man3dir)" || $(mkdir_p) "$(DESTDIR)$(man3dir)"
  59644. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  59645. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  59646. - for i in $$l2; do \
  59647. - case "$$i" in \
  59648. - *.3*) list="$$list $$i" ;; \
  59649. - esac; \
  59650. + test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
  59651. + @list=''; test -n "$(man3dir)" || exit 0; \
  59652. + { for i in $$list; do echo "$$i"; done; \
  59653. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  59654. + sed -n '/\.3[a-z]*$$/p'; \
  59655. + } | while read p; do \
  59656. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  59657. + echo "$$d$$p"; echo "$$p"; \
  59658. + done | \
  59659. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  59660. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  59661. + sed 'N;N;s,\n, ,g' | { \
  59662. + list=; while read file base inst; do \
  59663. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  59664. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  59665. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
  59666. + fi; \
  59667. done; \
  59668. - for i in $$list; do \
  59669. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  59670. - else file=$$i; fi; \
  59671. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  59672. - case "$$ext" in \
  59673. - 3*) ;; \
  59674. - *) ext='3' ;; \
  59675. - esac; \
  59676. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  59677. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  59678. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  59679. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  59680. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
  59681. - done
  59682. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  59683. + while read files; do \
  59684. + test -z "$$files" || { \
  59685. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
  59686. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
  59687. + done; }
  59688. +
  59689. uninstall-man3:
  59690. @$(NORMAL_UNINSTALL)
  59691. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  59692. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  59693. - for i in $$l2; do \
  59694. - case "$$i" in \
  59695. - *.3*) list="$$list $$i" ;; \
  59696. - esac; \
  59697. - done; \
  59698. - for i in $$list; do \
  59699. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  59700. - case "$$ext" in \
  59701. - 3*) ;; \
  59702. - *) ext='3' ;; \
  59703. - esac; \
  59704. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  59705. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  59706. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  59707. - echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
  59708. - rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
  59709. - done
  59710. + @list=''; test -n "$(man3dir)" || exit 0; \
  59711. + files=`{ for i in $$list; do echo "$$i"; done; \
  59712. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  59713. + sed -n '/\.3[a-z]*$$/p'; \
  59714. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  59715. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  59716. + test -z "$$files" || { \
  59717. + echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
  59718. + cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
  59719. install-includeHEADERS: $(include_HEADERS)
  59720. @$(NORMAL_INSTALL)
  59721. - test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  59722. - @list='$(include_HEADERS)'; for p in $$list; do \
  59723. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  59724. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  59725. + for p in $$list; do \
  59726. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  59727. - f=$(am__strip_dir) \
  59728. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  59729. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  59730. + echo "$$d$$p"; \
  59731. + done | $(am__base_list) | \
  59732. + while read files; do \
  59733. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  59734. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  59735. done
  59736. uninstall-includeHEADERS:
  59737. @$(NORMAL_UNINSTALL)
  59738. - @list='$(include_HEADERS)'; for p in $$list; do \
  59739. - f=$(am__strip_dir) \
  59740. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  59741. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  59742. - done
  59743. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  59744. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  59745. + test -n "$$files" || exit 0; \
  59746. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  59747. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  59748. # This directory's subdirectories are mostly independent; you can cd
  59749. # into them and run `make' without going through this Makefile.
  59750. @@ -464,7 +531,7 @@
  59751. # (which will cause the Makefiles to be regenerated when you run `make');
  59752. # (2) otherwise, pass the desired values on the `make' command line.
  59753. $(RECURSIVE_TARGETS):
  59754. - @failcom='exit 1'; \
  59755. + @fail= failcom='exit 1'; \
  59756. for f in x $$MAKEFLAGS; do \
  59757. case $$f in \
  59758. *=* | --[!k]*);; \
  59759. @@ -481,16 +548,15 @@
  59760. else \
  59761. local_target="$$target"; \
  59762. fi; \
  59763. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59764. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59765. || eval $$failcom; \
  59766. done; \
  59767. if test "$$dot_seen" = "no"; then \
  59768. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  59769. fi; test -z "$$fail"
  59770. -mostlyclean-recursive clean-recursive distclean-recursive \
  59771. -maintainer-clean-recursive:
  59772. - @failcom='exit 1'; \
  59773. +$(RECURSIVE_CLEAN_TARGETS):
  59774. + @fail= failcom='exit 1'; \
  59775. for f in x $$MAKEFLAGS; do \
  59776. case $$f in \
  59777. *=* | --[!k]*);; \
  59778. @@ -516,16 +582,16 @@
  59779. else \
  59780. local_target="$$target"; \
  59781. fi; \
  59782. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59783. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  59784. || eval $$failcom; \
  59785. done && test -z "$$fail"
  59786. tags-recursive:
  59787. list='$(SUBDIRS)'; for subdir in $$list; do \
  59788. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  59789. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  59790. done
  59791. ctags-recursive:
  59792. list='$(SUBDIRS)'; for subdir in $$list; do \
  59793. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  59794. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  59795. done
  59796. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  59797. @@ -533,14 +599,14 @@
  59798. unique=`for i in $$list; do \
  59799. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  59800. done | \
  59801. - $(AWK) ' { files[$$0] = 1; } \
  59802. - END { for (i in files) print i; }'`; \
  59803. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59804. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  59805. mkid -fID $$unique
  59806. tags: TAGS
  59807. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  59808. $(TAGS_FILES) $(LISP)
  59809. - tags=; \
  59810. + set x; \
  59811. here=`pwd`; \
  59812. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  59813. include_option=--etags-include; \
  59814. @@ -552,93 +618,127 @@
  59815. list='$(SUBDIRS)'; for subdir in $$list; do \
  59816. if test "$$subdir" = .; then :; else \
  59817. test ! -f $$subdir/TAGS || \
  59818. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  59819. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  59820. fi; \
  59821. done; \
  59822. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  59823. unique=`for i in $$list; do \
  59824. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  59825. done | \
  59826. - $(AWK) ' { files[$$0] = 1; } \
  59827. - END { for (i in files) print i; }'`; \
  59828. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  59829. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59830. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  59831. + shift; \
  59832. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  59833. test -n "$$unique" || unique=$$empty_fix; \
  59834. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59835. - $$tags $$unique; \
  59836. + if test $$# -gt 0; then \
  59837. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59838. + "$$@" $$unique; \
  59839. + else \
  59840. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  59841. + $$unique; \
  59842. + fi; \
  59843. fi
  59844. ctags: CTAGS
  59845. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  59846. $(TAGS_FILES) $(LISP)
  59847. - tags=; \
  59848. - here=`pwd`; \
  59849. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  59850. unique=`for i in $$list; do \
  59851. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  59852. done | \
  59853. - $(AWK) ' { files[$$0] = 1; } \
  59854. - END { for (i in files) print i; }'`; \
  59855. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  59856. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  59857. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  59858. + test -z "$(CTAGS_ARGS)$$unique" \
  59859. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  59860. - $$tags $$unique
  59861. + $$unique
  59862. GTAGS:
  59863. here=`$(am__cd) $(top_builddir) && pwd` \
  59864. - && cd $(top_srcdir) \
  59865. - && gtags -i $(GTAGS_ARGS) $$here
  59866. + && $(am__cd) $(top_srcdir) \
  59867. + && gtags -i $(GTAGS_ARGS) "$$here"
  59868. distclean-tags:
  59869. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  59870. distdir: $(DISTFILES)
  59871. + @list='$(MANS)'; if test -n "$$list"; then \
  59872. + list=`for p in $$list; do \
  59873. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  59874. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  59875. + if test -n "$$list" && \
  59876. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  59877. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  59878. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  59879. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  59880. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  59881. + exit 1; \
  59882. + else :; fi; \
  59883. + else :; fi
  59884. $(am__remove_distdir)
  59885. - mkdir $(distdir)
  59886. - $(mkdir_p) $(distdir)/WIN32-Code $(distdir)/WIN32-Prj $(distdir)/WIN32-Prj/event_test $(distdir)/WIN32-Prj/signal_test $(distdir)/WIN32-Prj/time_test $(distdir)/compat/sys $(distdir)/sample $(distdir)/test
  59887. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  59888. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  59889. - list='$(DISTFILES)'; for file in $$list; do \
  59890. - case $$file in \
  59891. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  59892. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  59893. - esac; \
  59894. + test -d "$(distdir)" || mkdir "$(distdir)"
  59895. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  59896. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  59897. + list='$(DISTFILES)'; \
  59898. + dist_files=`for file in $$list; do echo $$file; done | \
  59899. + sed -e "s|^$$srcdirstrip/||;t" \
  59900. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  59901. + case $$dist_files in \
  59902. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  59903. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  59904. + sort -u` ;; \
  59905. + esac; \
  59906. + for file in $$dist_files; do \
  59907. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  59908. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  59909. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  59910. - dir="/$$dir"; \
  59911. - $(mkdir_p) "$(distdir)$$dir"; \
  59912. - else \
  59913. - dir=''; \
  59914. - fi; \
  59915. if test -d $$d/$$file; then \
  59916. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  59917. + if test -d "$(distdir)/$$file"; then \
  59918. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  59919. + fi; \
  59920. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  59921. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  59922. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  59923. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  59924. fi; \
  59925. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  59926. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  59927. else \
  59928. - test -f $(distdir)/$$file \
  59929. - || cp -p $$d/$$file $(distdir)/$$file \
  59930. + test -f "$(distdir)/$$file" \
  59931. + || cp -p $$d/$$file "$(distdir)/$$file" \
  59932. || exit 1; \
  59933. fi; \
  59934. done
  59935. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59936. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59937. if test "$$subdir" = .; then :; else \
  59938. test -d "$(distdir)/$$subdir" \
  59939. - || $(mkdir_p) "$(distdir)/$$subdir" \
  59940. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  59941. || exit 1; \
  59942. - distdir=`$(am__cd) $(distdir) && pwd`; \
  59943. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  59944. - (cd $$subdir && \
  59945. + fi; \
  59946. + done
  59947. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  59948. + if test "$$subdir" = .; then :; else \
  59949. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  59950. + $(am__relativize); \
  59951. + new_distdir=$$reldir; \
  59952. + dir1=$$subdir; dir2="$(top_distdir)"; \
  59953. + $(am__relativize); \
  59954. + new_top_distdir=$$reldir; \
  59955. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  59956. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  59957. + ($(am__cd) $$subdir && \
  59958. $(MAKE) $(AM_MAKEFLAGS) \
  59959. - top_distdir="$$top_distdir" \
  59960. - distdir="$$distdir/$$subdir" \
  59961. + top_distdir="$$new_top_distdir" \
  59962. + distdir="$$new_distdir" \
  59963. + am__remove_distdir=: \
  59964. + am__skip_length_check=: \
  59965. + am__skip_mode_fix=: \
  59966. distdir) \
  59967. || exit 1; \
  59968. fi; \
  59969. done
  59970. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  59971. + -test -n "$(am__skip_mode_fix)" \
  59972. + || find "$(distdir)" -type d ! -perm -755 \
  59973. + -exec chmod u+rwx,go+rx {} \; -o \
  59974. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  59975. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  59976. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  59977. - || chmod -R a+r $(distdir)
  59978. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  59979. + || chmod -R a+r "$(distdir)"
  59980. dist-gzip: distdir
  59981. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  59982. $(am__remove_distdir)
  59983. @@ -647,6 +747,14 @@
  59984. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  59985. $(am__remove_distdir)
  59986. +dist-lzma: distdir
  59987. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  59988. + $(am__remove_distdir)
  59989. +
  59990. +dist-xz: distdir
  59991. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  59992. + $(am__remove_distdir)
  59993. +
  59994. dist-tarZ: distdir
  59995. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  59996. $(am__remove_distdir)
  59997. @@ -670,13 +778,17 @@
  59998. distcheck: dist
  59999. case '$(DIST_ARCHIVES)' in \
  60000. *.tar.gz*) \
  60001. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  60002. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  60003. *.tar.bz2*) \
  60004. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  60005. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  60006. + *.tar.lzma*) \
  60007. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  60008. + *.tar.xz*) \
  60009. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  60010. *.tar.Z*) \
  60011. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  60012. *.shar.gz*) \
  60013. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  60014. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  60015. *.zip*) \
  60016. unzip $(distdir).zip ;;\
  60017. esac
  60018. @@ -684,9 +796,11 @@
  60019. mkdir $(distdir)/_build
  60020. mkdir $(distdir)/_inst
  60021. chmod a-w $(distdir)
  60022. + test -d $(distdir)/_build || exit 0; \
  60023. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  60024. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  60025. - && cd $(distdir)/_build \
  60026. + && am__cwd=`pwd` \
  60027. + && $(am__cd) $(distdir)/_build \
  60028. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  60029. $(DISTCHECK_CONFIGURE_FLAGS) \
  60030. && $(MAKE) $(AM_MAKEFLAGS) \
  60031. @@ -708,13 +822,15 @@
  60032. && rm -rf "$$dc_destdir" \
  60033. && $(MAKE) $(AM_MAKEFLAGS) dist \
  60034. && rm -rf $(DIST_ARCHIVES) \
  60035. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  60036. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  60037. + && cd "$$am__cwd" \
  60038. + || exit 1
  60039. $(am__remove_distdir)
  60040. @(echo "$(distdir) archives ready for distribution: "; \
  60041. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  60042. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  60043. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  60044. distuninstallcheck:
  60045. - @cd $(distuninstallcheck_dir) \
  60046. + @$(am__cd) '$(distuninstallcheck_dir)' \
  60047. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  60048. || { echo "ERROR: files left after uninstall:" ; \
  60049. if test -n "$(DESTDIR)"; then \
  60050. @@ -737,7 +853,7 @@
  60051. installdirs: installdirs-recursive
  60052. installdirs-am:
  60053. for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(includedir)"; do \
  60054. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  60055. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  60056. done
  60057. install: install-recursive
  60058. install-exec: install-exec-recursive
  60059. @@ -759,6 +875,7 @@
  60060. distclean-generic:
  60061. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  60062. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  60063. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  60064. maintainer-clean-generic:
  60065. @@ -781,18 +898,38 @@
  60066. html: html-recursive
  60067. +html-am:
  60068. +
  60069. info: info-recursive
  60070. info-am:
  60071. install-data-am: install-includeHEADERS install-man
  60072. +install-dvi: install-dvi-recursive
  60073. +
  60074. +install-dvi-am:
  60075. +
  60076. install-exec-am: install-binSCRIPTS install-libLTLIBRARIES
  60077. +install-html: install-html-recursive
  60078. +
  60079. +install-html-am:
  60080. +
  60081. install-info: install-info-recursive
  60082. +install-info-am:
  60083. +
  60084. install-man: install-man3
  60085. +install-pdf: install-pdf-recursive
  60086. +
  60087. +install-pdf-am:
  60088. +
  60089. +install-ps: install-ps-recursive
  60090. +
  60091. +install-ps-am:
  60092. +
  60093. installcheck-am:
  60094. maintainer-clean: maintainer-clean-recursive
  60095. @@ -815,36 +952,38 @@
  60096. ps-am:
  60097. uninstall-am: uninstall-binSCRIPTS uninstall-includeHEADERS \
  60098. - uninstall-info-am uninstall-libLTLIBRARIES uninstall-man
  60099. -
  60100. -uninstall-info: uninstall-info-recursive
  60101. + uninstall-libLTLIBRARIES uninstall-man
  60102. uninstall-man: uninstall-man3
  60103. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  60104. - check-am clean clean-generic clean-libLTLIBRARIES \
  60105. - clean-libtool clean-recursive ctags ctags-recursive dist \
  60106. - dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
  60107. - distcheck distclean distclean-compile distclean-generic \
  60108. - distclean-hdr distclean-libtool distclean-recursive \
  60109. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  60110. + ctags-recursive install-am install-strip tags-recursive
  60111. +
  60112. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  60113. + all all-am am--refresh check check-am clean clean-generic \
  60114. + clean-libLTLIBRARIES clean-libtool ctags ctags-recursive dist \
  60115. + dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
  60116. + dist-xz dist-zip distcheck distclean distclean-compile \
  60117. + distclean-generic distclean-hdr distclean-libtool \
  60118. distclean-tags distcleancheck distdir distuninstallcheck dvi \
  60119. dvi-am html html-am info info-am install install-am \
  60120. - install-binSCRIPTS install-data install-data-am install-exec \
  60121. - install-exec-am install-includeHEADERS install-info \
  60122. + install-binSCRIPTS install-data install-data-am install-dvi \
  60123. + install-dvi-am install-exec install-exec-am install-html \
  60124. + install-html-am install-includeHEADERS install-info \
  60125. install-info-am install-libLTLIBRARIES install-man \
  60126. - install-man3 install-strip installcheck installcheck-am \
  60127. + install-man3 install-pdf install-pdf-am install-ps \
  60128. + install-ps-am install-strip installcheck installcheck-am \
  60129. installdirs installdirs-am maintainer-clean \
  60130. - maintainer-clean-generic maintainer-clean-recursive \
  60131. - mostlyclean mostlyclean-compile mostlyclean-generic \
  60132. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  60133. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  60134. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  60135. tags tags-recursive uninstall uninstall-am \
  60136. uninstall-binSCRIPTS uninstall-includeHEADERS \
  60137. - uninstall-info-am uninstall-libLTLIBRARIES uninstall-man \
  60138. - uninstall-man3
  60139. + uninstall-libLTLIBRARIES uninstall-man uninstall-man3
  60140. verify: libevent.la
  60141. cd $(srcdir)/test && make verify
  60142. +
  60143. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  60144. # Otherwise a system limit (for SysV at least) may be exceeded.
  60145. .NOEXPORT:
  60146. diff -Nur libevent-1.3.orig/missing libevent-1.3/missing
  60147. --- libevent-1.3.orig/missing 2007-02-16 01:48:32.000000000 +0100
  60148. +++ libevent-1.3/missing 2011-02-17 17:08:17.343554823 +0100
  60149. @@ -1,10 +1,10 @@
  60150. #! /bin/sh
  60151. # Common stub for a few missing GNU programs while installing.
  60152. -scriptversion=2003-09-02.23
  60153. +scriptversion=2009-04-28.21; # UTC
  60154. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003
  60155. -# Free Software Foundation, Inc.
  60156. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  60157. +# 2008, 2009 Free Software Foundation, Inc.
  60158. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  60159. # This program is free software; you can redistribute it and/or modify
  60160. @@ -18,9 +18,7 @@
  60161. # GNU General Public License for more details.
  60162. # You should have received a copy of the GNU General Public License
  60163. -# along with this program; if not, write to the Free Software
  60164. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  60165. -# 02111-1307, USA.
  60166. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  60167. # As a special exception to the GNU General Public License, if you
  60168. # distribute this file as part of a program that contains a
  60169. @@ -33,6 +31,8 @@
  60170. fi
  60171. run=:
  60172. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  60173. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  60174. # In the cases where this matters, `missing' is being run in the
  60175. # srcdir already.
  60176. @@ -44,7 +44,7 @@
  60177. msg="missing on your system"
  60178. -case "$1" in
  60179. +case $1 in
  60180. --run)
  60181. # Try to run requested program, and just exit if it succeeds.
  60182. run=
  60183. @@ -60,11 +60,6 @@
  60184. msg="probably too old"
  60185. fi
  60186. ;;
  60187. -esac
  60188. -
  60189. -# If it does not exist, or fails to run (possibly an outdated version),
  60190. -# try to emulate it.
  60191. -case "$1" in
  60192. -h|--h|--he|--hel|--help)
  60193. echo "\
  60194. @@ -82,6 +77,7 @@
  60195. aclocal touch file \`aclocal.m4'
  60196. autoconf touch file \`configure'
  60197. autoheader touch file \`config.h.in'
  60198. + autom4te touch the output file, or create a stub one
  60199. automake touch all \`Makefile.in' files
  60200. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  60201. flex create \`lex.yy.c', if possible, from existing .c
  60202. @@ -91,11 +87,16 @@
  60203. tar try tar, gnutar, gtar, then tar without non-portable flags
  60204. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  60205. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  60206. +\`g' are ignored when checking the name.
  60207. +
  60208. Send bug reports to <bug-automake@gnu.org>."
  60209. + exit $?
  60210. ;;
  60211. -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  60212. echo "missing $scriptversion (GNU Automake)"
  60213. + exit $?
  60214. ;;
  60215. -*)
  60216. @@ -104,12 +105,49 @@
  60217. exit 1
  60218. ;;
  60219. - aclocal*)
  60220. +esac
  60221. +
  60222. +# normalize program name to check for.
  60223. +program=`echo "$1" | sed '
  60224. + s/^gnu-//; t
  60225. + s/^gnu//; t
  60226. + s/^g//; t'`
  60227. +
  60228. +# Now exit if we have it, but it failed. Also exit now if we
  60229. +# don't have it and --version was passed (most likely to detect
  60230. +# the program). This is about non-GNU programs, so use $1 not
  60231. +# $program.
  60232. +case $1 in
  60233. + lex*|yacc*)
  60234. + # Not GNU programs, they don't have --version.
  60235. + ;;
  60236. +
  60237. + tar*)
  60238. + if test -n "$run"; then
  60239. + echo 1>&2 "ERROR: \`tar' requires --run"
  60240. + exit 1
  60241. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  60242. + exit 1
  60243. + fi
  60244. + ;;
  60245. +
  60246. + *)
  60247. if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  60248. # We have it, but it failed.
  60249. exit 1
  60250. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  60251. + # Could not run --version or --help. This is probably someone
  60252. + # running `$TOOL --version' or `$TOOL --help' to check whether
  60253. + # $TOOL exists and not knowing $TOOL uses missing.
  60254. + exit 1
  60255. fi
  60256. + ;;
  60257. +esac
  60258. +# If it does not exist, or fails to run (possibly an outdated version),
  60259. +# try to emulate it.
  60260. +case $program in
  60261. + aclocal*)
  60262. echo 1>&2 "\
  60263. WARNING: \`$1' is $msg. You should only need it if
  60264. you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  60265. @@ -118,12 +156,7 @@
  60266. touch aclocal.m4
  60267. ;;
  60268. - autoconf)
  60269. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  60270. - # We have it, but it failed.
  60271. - exit 1
  60272. - fi
  60273. -
  60274. + autoconf*)
  60275. echo 1>&2 "\
  60276. WARNING: \`$1' is $msg. You should only need it if
  60277. you modified \`${configure_ac}'. You might want to install the
  60278. @@ -132,12 +165,7 @@
  60279. touch configure
  60280. ;;
  60281. - autoheader)
  60282. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  60283. - # We have it, but it failed.
  60284. - exit 1
  60285. - fi
  60286. -
  60287. + autoheader*)
  60288. echo 1>&2 "\
  60289. WARNING: \`$1' is $msg. You should only need it if
  60290. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  60291. @@ -147,7 +175,7 @@
  60292. test -z "$files" && files="config.h"
  60293. touch_files=
  60294. for f in $files; do
  60295. - case "$f" in
  60296. + case $f in
  60297. *:*) touch_files="$touch_files "`echo "$f" |
  60298. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  60299. *) touch_files="$touch_files $f.in";;
  60300. @@ -157,11 +185,6 @@
  60301. ;;
  60302. automake*)
  60303. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  60304. - # We have it, but it failed.
  60305. - exit 1
  60306. - fi
  60307. -
  60308. echo 1>&2 "\
  60309. WARNING: \`$1' is $msg. You should only need it if
  60310. you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  60311. @@ -172,12 +195,7 @@
  60312. while read f; do touch "$f"; done
  60313. ;;
  60314. - autom4te)
  60315. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  60316. - # We have it, but it failed.
  60317. - exit 1
  60318. - fi
  60319. -
  60320. + autom4te*)
  60321. echo 1>&2 "\
  60322. WARNING: \`$1' is needed, but is $msg.
  60323. You might have modified some files without having the
  60324. @@ -185,8 +203,8 @@
  60325. You can get \`$1' as part of \`Autoconf' from any GNU
  60326. archive site."
  60327. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  60328. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  60329. + file=`echo "$*" | sed -n "$sed_output"`
  60330. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  60331. if test -f "$file"; then
  60332. touch $file
  60333. else
  60334. @@ -200,90 +218,78 @@
  60335. fi
  60336. ;;
  60337. - bison|yacc)
  60338. + bison*|yacc*)
  60339. echo 1>&2 "\
  60340. WARNING: \`$1' $msg. You should only need it if
  60341. you modified a \`.y' file. You may need the \`Bison' package
  60342. in order for those modifications to take effect. You can get
  60343. \`Bison' from any GNU archive site."
  60344. rm -f y.tab.c y.tab.h
  60345. - if [ $# -ne 1 ]; then
  60346. + if test $# -ne 1; then
  60347. eval LASTARG="\${$#}"
  60348. - case "$LASTARG" in
  60349. + case $LASTARG in
  60350. *.y)
  60351. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  60352. - if [ -f "$SRCFILE" ]; then
  60353. + if test -f "$SRCFILE"; then
  60354. cp "$SRCFILE" y.tab.c
  60355. fi
  60356. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  60357. - if [ -f "$SRCFILE" ]; then
  60358. + if test -f "$SRCFILE"; then
  60359. cp "$SRCFILE" y.tab.h
  60360. fi
  60361. ;;
  60362. esac
  60363. fi
  60364. - if [ ! -f y.tab.h ]; then
  60365. + if test ! -f y.tab.h; then
  60366. echo >y.tab.h
  60367. fi
  60368. - if [ ! -f y.tab.c ]; then
  60369. + if test ! -f y.tab.c; then
  60370. echo 'main() { return 0; }' >y.tab.c
  60371. fi
  60372. ;;
  60373. - lex|flex)
  60374. + lex*|flex*)
  60375. echo 1>&2 "\
  60376. WARNING: \`$1' is $msg. You should only need it if
  60377. you modified a \`.l' file. You may need the \`Flex' package
  60378. in order for those modifications to take effect. You can get
  60379. \`Flex' from any GNU archive site."
  60380. rm -f lex.yy.c
  60381. - if [ $# -ne 1 ]; then
  60382. + if test $# -ne 1; then
  60383. eval LASTARG="\${$#}"
  60384. - case "$LASTARG" in
  60385. + case $LASTARG in
  60386. *.l)
  60387. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  60388. - if [ -f "$SRCFILE" ]; then
  60389. + if test -f "$SRCFILE"; then
  60390. cp "$SRCFILE" lex.yy.c
  60391. fi
  60392. ;;
  60393. esac
  60394. fi
  60395. - if [ ! -f lex.yy.c ]; then
  60396. + if test ! -f lex.yy.c; then
  60397. echo 'main() { return 0; }' >lex.yy.c
  60398. fi
  60399. ;;
  60400. - help2man)
  60401. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  60402. - # We have it, but it failed.
  60403. - exit 1
  60404. - fi
  60405. -
  60406. + help2man*)
  60407. echo 1>&2 "\
  60408. WARNING: \`$1' is $msg. You should only need it if
  60409. you modified a dependency of a manual page. You may need the
  60410. \`Help2man' package in order for those modifications to take
  60411. effect. You can get \`Help2man' from any GNU archive site."
  60412. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  60413. - if test -z "$file"; then
  60414. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  60415. - fi
  60416. - if [ -f "$file" ]; then
  60417. + file=`echo "$*" | sed -n "$sed_output"`
  60418. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  60419. + if test -f "$file"; then
  60420. touch $file
  60421. else
  60422. test -z "$file" || exec >$file
  60423. echo ".ab help2man is required to generate this page"
  60424. - exit 1
  60425. + exit $?
  60426. fi
  60427. ;;
  60428. - makeinfo)
  60429. - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
  60430. - # We have makeinfo, but it failed.
  60431. - exit 1
  60432. - fi
  60433. -
  60434. + makeinfo*)
  60435. echo 1>&2 "\
  60436. WARNING: \`$1' is $msg. You should only need it if
  60437. you modified a \`.texi' or \`.texinfo' file, or any other file
  60438. @@ -291,20 +297,29 @@
  60439. call might also be the consequence of using a buggy \`make' (AIX,
  60440. DU, IRIX). You might want to install the \`Texinfo' package or
  60441. the \`GNU make' package. Grab either from any GNU archive site."
  60442. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  60443. + # The file to touch is that specified with -o ...
  60444. + file=`echo "$*" | sed -n "$sed_output"`
  60445. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  60446. if test -z "$file"; then
  60447. - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  60448. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
  60449. - fi
  60450. + # ... or it is the one specified with @setfilename ...
  60451. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  60452. + file=`sed -n '
  60453. + /^@setfilename/{
  60454. + s/.* \([^ ]*\) *$/\1/
  60455. + p
  60456. + q
  60457. + }' $infile`
  60458. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  60459. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  60460. + fi
  60461. + # If the file does not exist, the user really needs makeinfo;
  60462. + # let's fail without touching anything.
  60463. + test -f $file || exit 1
  60464. touch $file
  60465. ;;
  60466. - tar)
  60467. + tar*)
  60468. shift
  60469. - if test -n "$run"; then
  60470. - echo 1>&2 "ERROR: \`tar' requires --run"
  60471. - exit 1
  60472. - fi
  60473. # We have already tried tar in the generic part.
  60474. # Look for gnutar/gtar before invocation to avoid ugly error
  60475. @@ -317,13 +332,13 @@
  60476. fi
  60477. firstarg="$1"
  60478. if shift; then
  60479. - case "$firstarg" in
  60480. + case $firstarg in
  60481. *o*)
  60482. firstarg=`echo "$firstarg" | sed s/o//`
  60483. tar "$firstarg" "$@" && exit 0
  60484. ;;
  60485. esac
  60486. - case "$firstarg" in
  60487. + case $firstarg in
  60488. *h*)
  60489. firstarg=`echo "$firstarg" | sed s/h//`
  60490. tar "$firstarg" "$@" && exit 0
  60491. @@ -356,5 +371,6 @@
  60492. # eval: (add-hook 'write-file-hooks 'time-stamp)
  60493. # time-stamp-start: "scriptversion="
  60494. # time-stamp-format: "%:y-%02m-%02d.%02H"
  60495. -# time-stamp-end: "$"
  60496. +# time-stamp-time-zone: "UTC"
  60497. +# time-stamp-end: "; # UTC"
  60498. # End:
  60499. diff -Nur libevent-1.3.orig/mkinstalldirs libevent-1.3/mkinstalldirs
  60500. --- libevent-1.3.orig/mkinstalldirs 2007-02-16 02:02:12.000000000 +0100
  60501. +++ libevent-1.3/mkinstalldirs 2011-02-17 17:08:17.473563090 +0100
  60502. @@ -1,40 +1,162 @@
  60503. #! /bin/sh
  60504. # mkinstalldirs --- make directory hierarchy
  60505. -# Author: Noah Friedman <friedman@prep.ai.mit.edu>
  60506. -# Created: 1993-05-16
  60507. -# Public domain
  60508. -# $Id: mkinstalldirs 331 2007-02-16 00:59:43Z nprovos $
  60509. +scriptversion=2009-04-28.21; # UTC
  60510. +# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
  60511. +# Created: 1993-05-16
  60512. +# Public domain.
  60513. +#
  60514. +# This file is maintained in Automake, please report
  60515. +# bugs to <bug-automake@gnu.org> or send patches to
  60516. +# <automake-patches@gnu.org>.
  60517. +
  60518. +nl='
  60519. +'
  60520. +IFS=" "" $nl"
  60521. errstatus=0
  60522. +dirmode=
  60523. +
  60524. +usage="\
  60525. +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
  60526. +
  60527. +Create each directory DIR (with mode MODE, if specified), including all
  60528. +leading file name components.
  60529. +
  60530. +Report bugs to <bug-automake@gnu.org>."
  60531. +
  60532. +# process command line arguments
  60533. +while test $# -gt 0 ; do
  60534. + case $1 in
  60535. + -h | --help | --h*) # -h for help
  60536. + echo "$usage"
  60537. + exit $?
  60538. + ;;
  60539. + -m) # -m PERM arg
  60540. + shift
  60541. + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
  60542. + dirmode=$1
  60543. + shift
  60544. + ;;
  60545. + --version)
  60546. + echo "$0 $scriptversion"
  60547. + exit $?
  60548. + ;;
  60549. + --) # stop option processing
  60550. + shift
  60551. + break
  60552. + ;;
  60553. + -*) # unknown option
  60554. + echo "$usage" 1>&2
  60555. + exit 1
  60556. + ;;
  60557. + *) # first non-opt arg
  60558. + break
  60559. + ;;
  60560. + esac
  60561. +done
  60562. for file
  60563. do
  60564. - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  60565. - shift
  60566. + if test -d "$file"; then
  60567. + shift
  60568. + else
  60569. + break
  60570. + fi
  60571. +done
  60572. +
  60573. +case $# in
  60574. + 0) exit 0 ;;
  60575. +esac
  60576. +
  60577. +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
  60578. +# mkdir -p a/c at the same time, both will detect that a is missing,
  60579. +# one will create a, then the other will try to create a and die with
  60580. +# a "File exists" error. This is a problem when calling mkinstalldirs
  60581. +# from a parallel make. We use --version in the probe to restrict
  60582. +# ourselves to GNU mkdir, which is thread-safe.
  60583. +case $dirmode in
  60584. + '')
  60585. + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  60586. + echo "mkdir -p -- $*"
  60587. + exec mkdir -p -- "$@"
  60588. + else
  60589. + # On NextStep and OpenStep, the `mkdir' command does not
  60590. + # recognize any option. It will interpret all options as
  60591. + # directories to create, and then abort because `.' already
  60592. + # exists.
  60593. + test -d ./-p && rmdir ./-p
  60594. + test -d ./--version && rmdir ./--version
  60595. + fi
  60596. + ;;
  60597. + *)
  60598. + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
  60599. + test ! -d ./--version; then
  60600. + echo "mkdir -m $dirmode -p -- $*"
  60601. + exec mkdir -m "$dirmode" -p -- "$@"
  60602. + else
  60603. + # Clean up after NextStep and OpenStep mkdir.
  60604. + for d in ./-m ./-p ./--version "./$dirmode";
  60605. + do
  60606. + test -d $d && rmdir $d
  60607. + done
  60608. + fi
  60609. + ;;
  60610. +esac
  60611. - pathcomp=
  60612. - for d
  60613. - do
  60614. - pathcomp="$pathcomp$d"
  60615. - case "$pathcomp" in
  60616. - -* ) pathcomp=./$pathcomp ;;
  60617. - esac
  60618. -
  60619. - if test ! -d "$pathcomp"; then
  60620. - echo "mkdir $pathcomp"
  60621. -
  60622. - mkdir "$pathcomp" || lasterr=$?
  60623. -
  60624. - if test ! -d "$pathcomp"; then
  60625. - errstatus=$lasterr
  60626. - fi
  60627. - fi
  60628. +for file
  60629. +do
  60630. + case $file in
  60631. + /*) pathcomp=/ ;;
  60632. + *) pathcomp= ;;
  60633. + esac
  60634. + oIFS=$IFS
  60635. + IFS=/
  60636. + set fnord $file
  60637. + shift
  60638. + IFS=$oIFS
  60639. +
  60640. + for d
  60641. + do
  60642. + test "x$d" = x && continue
  60643. +
  60644. + pathcomp=$pathcomp$d
  60645. + case $pathcomp in
  60646. + -*) pathcomp=./$pathcomp ;;
  60647. + esac
  60648. +
  60649. + if test ! -d "$pathcomp"; then
  60650. + echo "mkdir $pathcomp"
  60651. +
  60652. + mkdir "$pathcomp" || lasterr=$?
  60653. +
  60654. + if test ! -d "$pathcomp"; then
  60655. + errstatus=$lasterr
  60656. + else
  60657. + if test ! -z "$dirmode"; then
  60658. + echo "chmod $dirmode $pathcomp"
  60659. + lasterr=
  60660. + chmod "$dirmode" "$pathcomp" || lasterr=$?
  60661. +
  60662. + if test ! -z "$lasterr"; then
  60663. + errstatus=$lasterr
  60664. + fi
  60665. + fi
  60666. + fi
  60667. + fi
  60668. - pathcomp="$pathcomp/"
  60669. - done
  60670. + pathcomp=$pathcomp/
  60671. + done
  60672. done
  60673. exit $errstatus
  60674. -# mkinstalldirs ends here
  60675. +# Local Variables:
  60676. +# mode: shell-script
  60677. +# sh-indentation: 2
  60678. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  60679. +# time-stamp-start: "scriptversion="
  60680. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  60681. +# time-stamp-time-zone: "UTC"
  60682. +# time-stamp-end: "; # UTC"
  60683. +# End:
  60684. diff -Nur libevent-1.3.orig/sample/Makefile.in libevent-1.3/sample/Makefile.in
  60685. --- libevent-1.3.orig/sample/Makefile.in 2007-02-16 01:52:33.000000000 +0100
  60686. +++ libevent-1.3/sample/Makefile.in 2011-02-17 17:08:17.403563109 +0100
  60687. @@ -1,8 +1,9 @@
  60688. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  60689. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  60690. # @configure_input@
  60691. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  60692. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  60693. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  60694. +# Inc.
  60695. # This Makefile.in is free software; the Free Software Foundation
  60696. # gives unlimited permission to copy and/or distribute it,
  60697. # with or without modifications, as long as this notice is preserved.
  60698. @@ -14,15 +15,12 @@
  60699. @SET_MAKE@
  60700. -srcdir = @srcdir@
  60701. -top_srcdir = @top_srcdir@
  60702. VPATH = @srcdir@
  60703. pkgdatadir = $(datadir)/@PACKAGE@
  60704. -pkglibdir = $(libdir)/@PACKAGE@
  60705. pkgincludedir = $(includedir)/@PACKAGE@
  60706. -top_builddir = ..
  60707. +pkglibdir = $(libdir)/@PACKAGE@
  60708. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  60709. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  60710. -INSTALL = @INSTALL@
  60711. install_sh_DATA = $(install_sh) -c -m 644
  60712. install_sh_PROGRAM = $(install_sh) -c
  60713. install_sh_SCRIPT = $(install_sh) -c
  60714. @@ -47,6 +45,7 @@
  60715. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  60716. CONFIG_HEADER = $(top_builddir)/config.h
  60717. CONFIG_CLEAN_FILES =
  60718. +CONFIG_CLEAN_VPATH_FILES =
  60719. PROGRAMS = $(noinst_PROGRAMS)
  60720. event_test_SOURCES = event-test.c
  60721. event_test_OBJECTS = event-test.$(OBJEXT)
  60722. @@ -60,89 +59,90 @@
  60723. time_test_OBJECTS = time-test.$(OBJEXT)
  60724. time_test_LDADD = $(LDADD)
  60725. time_test_DEPENDENCIES = ../libevent.la
  60726. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  60727. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  60728. depcomp =
  60729. am__depfiles_maybe =
  60730. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  60731. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  60732. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  60733. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  60734. - $(AM_CFLAGS) $(CFLAGS)
  60735. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60736. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  60737. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  60738. CCLD = $(CC)
  60739. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  60740. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  60741. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  60742. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  60743. + $(LDFLAGS) -o $@
  60744. SOURCES = event-test.c signal-test.c time-test.c
  60745. DIST_SOURCES = event-test.c signal-test.c time-test.c
  60746. ETAGS = etags
  60747. CTAGS = ctags
  60748. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  60749. ACLOCAL = @ACLOCAL@
  60750. -AMDEP_FALSE = @AMDEP_FALSE@
  60751. -AMDEP_TRUE = @AMDEP_TRUE@
  60752. AMTAR = @AMTAR@
  60753. AR = @AR@
  60754. AUTOCONF = @AUTOCONF@
  60755. AUTOHEADER = @AUTOHEADER@
  60756. AUTOMAKE = @AUTOMAKE@
  60757. AWK = @AWK@
  60758. -BUILD_WIN32_FALSE = @BUILD_WIN32_FALSE@
  60759. -BUILD_WIN32_TRUE = @BUILD_WIN32_TRUE@
  60760. CC = @CC@
  60761. CCDEPMODE = @CCDEPMODE@
  60762. CFLAGS = -I../compat
  60763. CPP = @CPP@
  60764. CPPFLAGS = @CPPFLAGS@
  60765. -CXX = @CXX@
  60766. -CXXCPP = @CXXCPP@
  60767. -CXXDEPMODE = @CXXDEPMODE@
  60768. -CXXFLAGS = @CXXFLAGS@
  60769. CYGPATH_W = @CYGPATH_W@
  60770. DEFS = @DEFS@
  60771. DEPDIR = @DEPDIR@
  60772. -ECHO = @ECHO@
  60773. +DSYMUTIL = @DSYMUTIL@
  60774. +DUMPBIN = @DUMPBIN@
  60775. ECHO_C = @ECHO_C@
  60776. ECHO_N = @ECHO_N@
  60777. ECHO_T = @ECHO_T@
  60778. EGREP = @EGREP@
  60779. EXEEXT = @EXEEXT@
  60780. -F77 = @F77@
  60781. -FFLAGS = @FFLAGS@
  60782. +FGREP = @FGREP@
  60783. GREP = @GREP@
  60784. +INSTALL = @INSTALL@
  60785. INSTALL_DATA = @INSTALL_DATA@
  60786. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  60787. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  60788. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  60789. +LD = @LD@
  60790. LDFLAGS = @LDFLAGS@
  60791. LIBOBJS = @LIBOBJS@
  60792. LIBS = @LIBS@
  60793. LIBTOOL = @LIBTOOL@
  60794. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  60795. +LIPO = @LIPO@
  60796. LN_S = @LN_S@
  60797. LTLIBOBJS = @LTLIBOBJS@
  60798. MAINT = @MAINT@
  60799. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  60800. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  60801. MAKEINFO = @MAKEINFO@
  60802. +MKDIR_P = @MKDIR_P@
  60803. +NM = @NM@
  60804. +NMEDIT = @NMEDIT@
  60805. +OBJDUMP = @OBJDUMP@
  60806. OBJEXT = @OBJEXT@
  60807. +OTOOL = @OTOOL@
  60808. +OTOOL64 = @OTOOL64@
  60809. PACKAGE = @PACKAGE@
  60810. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  60811. PACKAGE_NAME = @PACKAGE_NAME@
  60812. PACKAGE_STRING = @PACKAGE_STRING@
  60813. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  60814. +PACKAGE_URL = @PACKAGE_URL@
  60815. PACKAGE_VERSION = @PACKAGE_VERSION@
  60816. PATH_SEPARATOR = @PATH_SEPARATOR@
  60817. RANLIB = @RANLIB@
  60818. +SED = @SED@
  60819. SET_MAKE = @SET_MAKE@
  60820. SHELL = @SHELL@
  60821. STRIP = @STRIP@
  60822. VERSION = @VERSION@
  60823. +abs_builddir = @abs_builddir@
  60824. +abs_srcdir = @abs_srcdir@
  60825. +abs_top_builddir = @abs_top_builddir@
  60826. +abs_top_srcdir = @abs_top_srcdir@
  60827. ac_ct_CC = @ac_ct_CC@
  60828. -ac_ct_CXX = @ac_ct_CXX@
  60829. -ac_ct_F77 = @ac_ct_F77@
  60830. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  60831. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  60832. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  60833. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  60834. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  60835. am__include = @am__include@
  60836. am__leading_dot = @am__leading_dot@
  60837. am__quote = @am__quote@
  60838. @@ -154,6 +154,7 @@
  60839. build_cpu = @build_cpu@
  60840. build_os = @build_os@
  60841. build_vendor = @build_vendor@
  60842. +builddir = @builddir@
  60843. datadir = @datadir@
  60844. datarootdir = @datarootdir@
  60845. docdir = @docdir@
  60846. @@ -172,6 +173,7 @@
  60847. libexecdir = @libexecdir@
  60848. localedir = @localedir@
  60849. localstatedir = @localstatedir@
  60850. +lt_ECHO = @lt_ECHO@
  60851. mandir = @mandir@
  60852. mkdir_p = @mkdir_p@
  60853. oldincludedir = @oldincludedir@
  60854. @@ -181,8 +183,12 @@
  60855. psdir = @psdir@
  60856. sbindir = @sbindir@
  60857. sharedstatedir = @sharedstatedir@
  60858. +srcdir = @srcdir@
  60859. sysconfdir = @sysconfdir@
  60860. target_alias = @target_alias@
  60861. +top_build_prefix = @top_build_prefix@
  60862. +top_builddir = @top_builddir@
  60863. +top_srcdir = @top_srcdir@
  60864. AUTOMAKE_OPTIONS = foreign no-dependencies
  60865. LDADD = ../libevent.la
  60866. CPPFPLAGS = -I..
  60867. @@ -198,14 +204,14 @@
  60868. @for dep in $?; do \
  60869. case '$(am__configure_deps)' in \
  60870. *$$dep*) \
  60871. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  60872. - && exit 0; \
  60873. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  60874. + && { if test -f $@; then exit 0; else break; fi; }; \
  60875. exit 1;; \
  60876. esac; \
  60877. done; \
  60878. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sample/Makefile'; \
  60879. - cd $(top_srcdir) && \
  60880. - $(AUTOMAKE) --foreign sample/Makefile
  60881. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sample/Makefile'; \
  60882. + $(am__cd) $(top_srcdir) && \
  60883. + $(AUTOMAKE) --foreign sample/Makefile
  60884. .PRECIOUS: Makefile
  60885. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  60886. @case '$?' in \
  60887. @@ -223,22 +229,25 @@
  60888. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  60889. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  60890. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  60891. +$(am__aclocal_m4_deps):
  60892. clean-noinstPROGRAMS:
  60893. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  60894. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  60895. - echo " rm -f $$p $$f"; \
  60896. - rm -f $$p $$f ; \
  60897. - done
  60898. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  60899. + echo " rm -f" $$list; \
  60900. + rm -f $$list || exit $$?; \
  60901. + test -n "$(EXEEXT)" || exit 0; \
  60902. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  60903. + echo " rm -f" $$list; \
  60904. + rm -f $$list
  60905. event-test$(EXEEXT): $(event_test_OBJECTS) $(event_test_DEPENDENCIES)
  60906. @rm -f event-test$(EXEEXT)
  60907. - $(LINK) $(event_test_LDFLAGS) $(event_test_OBJECTS) $(event_test_LDADD) $(LIBS)
  60908. + $(LINK) $(event_test_OBJECTS) $(event_test_LDADD) $(LIBS)
  60909. signal-test$(EXEEXT): $(signal_test_OBJECTS) $(signal_test_DEPENDENCIES)
  60910. @rm -f signal-test$(EXEEXT)
  60911. - $(LINK) $(signal_test_LDFLAGS) $(signal_test_OBJECTS) $(signal_test_LDADD) $(LIBS)
  60912. + $(LINK) $(signal_test_OBJECTS) $(signal_test_LDADD) $(LIBS)
  60913. time-test$(EXEEXT): $(time_test_OBJECTS) $(time_test_DEPENDENCIES)
  60914. @rm -f time-test$(EXEEXT)
  60915. - $(LINK) $(time_test_LDFLAGS) $(time_test_OBJECTS) $(time_test_LDADD) $(LIBS)
  60916. + $(LINK) $(time_test_OBJECTS) $(time_test_LDADD) $(LIBS)
  60917. mostlyclean-compile:
  60918. -rm -f *.$(OBJEXT)
  60919. @@ -261,82 +270,85 @@
  60920. clean-libtool:
  60921. -rm -rf .libs _libs
  60922. -distclean-libtool:
  60923. - -rm -f libtool
  60924. -uninstall-info-am:
  60925. -
  60926. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  60927. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60928. unique=`for i in $$list; do \
  60929. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60930. done | \
  60931. - $(AWK) ' { files[$$0] = 1; } \
  60932. - END { for (i in files) print i; }'`; \
  60933. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60934. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60935. mkid -fID $$unique
  60936. tags: TAGS
  60937. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  60938. $(TAGS_FILES) $(LISP)
  60939. - tags=; \
  60940. + set x; \
  60941. here=`pwd`; \
  60942. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60943. unique=`for i in $$list; do \
  60944. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60945. done | \
  60946. - $(AWK) ' { files[$$0] = 1; } \
  60947. - END { for (i in files) print i; }'`; \
  60948. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  60949. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60950. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60951. + shift; \
  60952. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  60953. test -n "$$unique" || unique=$$empty_fix; \
  60954. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60955. - $$tags $$unique; \
  60956. + if test $$# -gt 0; then \
  60957. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60958. + "$$@" $$unique; \
  60959. + else \
  60960. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  60961. + $$unique; \
  60962. + fi; \
  60963. fi
  60964. ctags: CTAGS
  60965. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  60966. $(TAGS_FILES) $(LISP)
  60967. - tags=; \
  60968. - here=`pwd`; \
  60969. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  60970. unique=`for i in $$list; do \
  60971. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  60972. done | \
  60973. - $(AWK) ' { files[$$0] = 1; } \
  60974. - END { for (i in files) print i; }'`; \
  60975. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  60976. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  60977. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  60978. + test -z "$(CTAGS_ARGS)$$unique" \
  60979. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  60980. - $$tags $$unique
  60981. + $$unique
  60982. GTAGS:
  60983. here=`$(am__cd) $(top_builddir) && pwd` \
  60984. - && cd $(top_srcdir) \
  60985. - && gtags -i $(GTAGS_ARGS) $$here
  60986. + && $(am__cd) $(top_srcdir) \
  60987. + && gtags -i $(GTAGS_ARGS) "$$here"
  60988. distclean-tags:
  60989. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  60990. distdir: $(DISTFILES)
  60991. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  60992. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  60993. - list='$(DISTFILES)'; for file in $$list; do \
  60994. - case $$file in \
  60995. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  60996. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  60997. - esac; \
  60998. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  60999. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61000. + list='$(DISTFILES)'; \
  61001. + dist_files=`for file in $$list; do echo $$file; done | \
  61002. + sed -e "s|^$$srcdirstrip/||;t" \
  61003. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  61004. + case $$dist_files in \
  61005. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  61006. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  61007. + sort -u` ;; \
  61008. + esac; \
  61009. + for file in $$dist_files; do \
  61010. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61011. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  61012. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  61013. - dir="/$$dir"; \
  61014. - $(mkdir_p) "$(distdir)$$dir"; \
  61015. - else \
  61016. - dir=''; \
  61017. - fi; \
  61018. if test -d $$d/$$file; then \
  61019. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61020. + if test -d "$(distdir)/$$file"; then \
  61021. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61022. + fi; \
  61023. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61024. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61025. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61026. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61027. fi; \
  61028. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61029. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61030. else \
  61031. - test -f $(distdir)/$$file \
  61032. - || cp -p $$d/$$file $(distdir)/$$file \
  61033. + test -f "$(distdir)/$$file" \
  61034. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61035. || exit 1; \
  61036. fi; \
  61037. done
  61038. @@ -364,6 +376,7 @@
  61039. distclean-generic:
  61040. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61041. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61042. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  61043. maintainer-clean-generic:
  61044. @@ -377,7 +390,7 @@
  61045. distclean: distclean-am
  61046. -rm -f Makefile
  61047. distclean-am: clean-am distclean-compile distclean-generic \
  61048. - distclean-libtool distclean-tags
  61049. + distclean-tags
  61050. dvi: dvi-am
  61051. @@ -385,18 +398,38 @@
  61052. html: html-am
  61053. +html-am:
  61054. +
  61055. info: info-am
  61056. info-am:
  61057. install-data-am:
  61058. +install-dvi: install-dvi-am
  61059. +
  61060. +install-dvi-am:
  61061. +
  61062. install-exec-am:
  61063. +install-html: install-html-am
  61064. +
  61065. +install-html-am:
  61066. +
  61067. install-info: install-info-am
  61068. +install-info-am:
  61069. +
  61070. install-man:
  61071. +install-pdf: install-pdf-am
  61072. +
  61073. +install-pdf-am:
  61074. +
  61075. +install-ps: install-ps-am
  61076. +
  61077. +install-ps-am:
  61078. +
  61079. installcheck-am:
  61080. maintainer-clean: maintainer-clean-am
  61081. @@ -416,22 +449,26 @@
  61082. ps-am:
  61083. -uninstall-am: uninstall-info-am
  61084. +uninstall-am:
  61085. +
  61086. +.MAKE: install-am install-strip
  61087. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  61088. clean-libtool clean-noinstPROGRAMS ctags distclean \
  61089. distclean-compile distclean-generic distclean-libtool \
  61090. distclean-tags distdir dvi dvi-am html html-am info info-am \
  61091. - install install-am install-data install-data-am install-exec \
  61092. - install-exec-am install-info install-info-am install-man \
  61093. + install install-am install-data install-data-am install-dvi \
  61094. + install-dvi-am install-exec install-exec-am install-html \
  61095. + install-html-am install-info install-info-am install-man \
  61096. + install-pdf install-pdf-am install-ps install-ps-am \
  61097. install-strip installcheck installcheck-am installdirs \
  61098. maintainer-clean maintainer-clean-generic mostlyclean \
  61099. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  61100. - pdf pdf-am ps ps-am tags uninstall uninstall-am \
  61101. - uninstall-info-am
  61102. + pdf pdf-am ps ps-am tags uninstall uninstall-am
  61103. verify:
  61104. +
  61105. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61106. # Otherwise a system limit (for SysV at least) may be exceeded.
  61107. .NOEXPORT:
  61108. diff -Nur libevent-1.3.orig/test/Makefile.in libevent-1.3/test/Makefile.in
  61109. --- libevent-1.3.orig/test/Makefile.in 2007-02-16 01:52:33.000000000 +0100
  61110. +++ libevent-1.3/test/Makefile.in 2011-02-17 17:08:17.463562942 +0100
  61111. @@ -1,8 +1,9 @@
  61112. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  61113. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61114. # @configure_input@
  61115. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61116. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  61117. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61118. +# Inc.
  61119. # This Makefile.in is free software; the Free Software Foundation
  61120. # gives unlimited permission to copy and/or distribute it,
  61121. # with or without modifications, as long as this notice is preserved.
  61122. @@ -14,15 +15,12 @@
  61123. @SET_MAKE@
  61124. -srcdir = @srcdir@
  61125. -top_srcdir = @top_srcdir@
  61126. VPATH = @srcdir@
  61127. pkgdatadir = $(datadir)/@PACKAGE@
  61128. -pkglibdir = $(libdir)/@PACKAGE@
  61129. pkgincludedir = $(includedir)/@PACKAGE@
  61130. -top_builddir = ..
  61131. +pkglibdir = $(libdir)/@PACKAGE@
  61132. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61133. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61134. -INSTALL = @INSTALL@
  61135. install_sh_DATA = $(install_sh) -c -m 644
  61136. install_sh_PROGRAM = $(install_sh) -c
  61137. install_sh_SCRIPT = $(install_sh) -c
  61138. @@ -48,6 +46,7 @@
  61139. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  61140. CONFIG_HEADER = $(top_builddir)/config.h
  61141. CONFIG_CLEAN_FILES =
  61142. +CONFIG_CLEAN_VPATH_FILES =
  61143. PROGRAMS = $(noinst_PROGRAMS)
  61144. am_bench_OBJECTS = bench.$(OBJEXT)
  61145. bench_OBJECTS = $(am_bench_OBJECTS)
  61146. @@ -74,17 +73,18 @@
  61147. test_weof_OBJECTS = $(am_test_weof_OBJECTS)
  61148. test_weof_LDADD = $(LDADD)
  61149. test_weof_DEPENDENCIES = ../libevent.la
  61150. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  61151. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  61152. depcomp =
  61153. am__depfiles_maybe =
  61154. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  61155. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61156. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  61157. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  61158. - $(AM_CFLAGS) $(CFLAGS)
  61159. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61160. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  61161. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61162. CCLD = $(CC)
  61163. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  61164. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  61165. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61166. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  61167. + $(LDFLAGS) -o $@
  61168. SOURCES = $(bench_SOURCES) $(regress_SOURCES) $(test_eof_SOURCES) \
  61169. $(test_init_SOURCES) $(test_time_SOURCES) $(test_weof_SOURCES)
  61170. DIST_SOURCES = $(bench_SOURCES) $(regress_SOURCES) $(test_eof_SOURCES) \
  61171. @@ -93,72 +93,72 @@
  61172. CTAGS = ctags
  61173. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  61174. ACLOCAL = @ACLOCAL@
  61175. -AMDEP_FALSE = @AMDEP_FALSE@
  61176. -AMDEP_TRUE = @AMDEP_TRUE@
  61177. AMTAR = @AMTAR@
  61178. AR = @AR@
  61179. AUTOCONF = @AUTOCONF@
  61180. AUTOHEADER = @AUTOHEADER@
  61181. AUTOMAKE = @AUTOMAKE@
  61182. AWK = @AWK@
  61183. -BUILD_WIN32_FALSE = @BUILD_WIN32_FALSE@
  61184. -BUILD_WIN32_TRUE = @BUILD_WIN32_TRUE@
  61185. CC = @CC@
  61186. CCDEPMODE = @CCDEPMODE@
  61187. CFLAGS = -I../compat @CFLAGS@
  61188. CPP = @CPP@
  61189. CPPFLAGS = @CPPFLAGS@
  61190. -CXX = @CXX@
  61191. -CXXCPP = @CXXCPP@
  61192. -CXXDEPMODE = @CXXDEPMODE@
  61193. -CXXFLAGS = @CXXFLAGS@
  61194. CYGPATH_W = @CYGPATH_W@
  61195. DEFS = @DEFS@
  61196. DEPDIR = @DEPDIR@
  61197. -ECHO = @ECHO@
  61198. +DSYMUTIL = @DSYMUTIL@
  61199. +DUMPBIN = @DUMPBIN@
  61200. ECHO_C = @ECHO_C@
  61201. ECHO_N = @ECHO_N@
  61202. ECHO_T = @ECHO_T@
  61203. EGREP = @EGREP@
  61204. EXEEXT = @EXEEXT@
  61205. -F77 = @F77@
  61206. -FFLAGS = @FFLAGS@
  61207. +FGREP = @FGREP@
  61208. GREP = @GREP@
  61209. +INSTALL = @INSTALL@
  61210. INSTALL_DATA = @INSTALL_DATA@
  61211. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61212. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61213. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61214. +LD = @LD@
  61215. LDFLAGS = @LDFLAGS@
  61216. LIBOBJS = @LIBOBJS@
  61217. LIBS = @LIBS@
  61218. LIBTOOL = @LIBTOOL@
  61219. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  61220. +LIPO = @LIPO@
  61221. LN_S = @LN_S@
  61222. LTLIBOBJS = @LTLIBOBJS@
  61223. MAINT = @MAINT@
  61224. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  61225. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  61226. MAKEINFO = @MAKEINFO@
  61227. +MKDIR_P = @MKDIR_P@
  61228. +NM = @NM@
  61229. +NMEDIT = @NMEDIT@
  61230. +OBJDUMP = @OBJDUMP@
  61231. OBJEXT = @OBJEXT@
  61232. +OTOOL = @OTOOL@
  61233. +OTOOL64 = @OTOOL64@
  61234. PACKAGE = @PACKAGE@
  61235. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61236. PACKAGE_NAME = @PACKAGE_NAME@
  61237. PACKAGE_STRING = @PACKAGE_STRING@
  61238. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61239. +PACKAGE_URL = @PACKAGE_URL@
  61240. PACKAGE_VERSION = @PACKAGE_VERSION@
  61241. PATH_SEPARATOR = @PATH_SEPARATOR@
  61242. RANLIB = @RANLIB@
  61243. +SED = @SED@
  61244. SET_MAKE = @SET_MAKE@
  61245. SHELL = @SHELL@
  61246. STRIP = @STRIP@
  61247. VERSION = @VERSION@
  61248. +abs_builddir = @abs_builddir@
  61249. +abs_srcdir = @abs_srcdir@
  61250. +abs_top_builddir = @abs_top_builddir@
  61251. +abs_top_srcdir = @abs_top_srcdir@
  61252. ac_ct_CC = @ac_ct_CC@
  61253. -ac_ct_CXX = @ac_ct_CXX@
  61254. -ac_ct_F77 = @ac_ct_F77@
  61255. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  61256. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  61257. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  61258. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  61259. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61260. am__include = @am__include@
  61261. am__leading_dot = @am__leading_dot@
  61262. am__quote = @am__quote@
  61263. @@ -170,6 +170,7 @@
  61264. build_cpu = @build_cpu@
  61265. build_os = @build_os@
  61266. build_vendor = @build_vendor@
  61267. +builddir = @builddir@
  61268. datadir = @datadir@
  61269. datarootdir = @datarootdir@
  61270. docdir = @docdir@
  61271. @@ -188,6 +189,7 @@
  61272. libexecdir = @libexecdir@
  61273. localedir = @localedir@
  61274. localstatedir = @localstatedir@
  61275. +lt_ECHO = @lt_ECHO@
  61276. mandir = @mandir@
  61277. mkdir_p = @mkdir_p@
  61278. oldincludedir = @oldincludedir@
  61279. @@ -197,8 +199,12 @@
  61280. psdir = @psdir@
  61281. sbindir = @sbindir@
  61282. sharedstatedir = @sharedstatedir@
  61283. +srcdir = @srcdir@
  61284. sysconfdir = @sysconfdir@
  61285. target_alias = @target_alias@
  61286. +top_build_prefix = @top_build_prefix@
  61287. +top_builddir = @top_builddir@
  61288. +top_srcdir = @top_srcdir@
  61289. AUTOMAKE_OPTIONS = foreign no-dependencies
  61290. LDADD = ../libevent.la
  61291. CPPFPLAGS = -I..
  61292. @@ -223,14 +229,14 @@
  61293. @for dep in $?; do \
  61294. case '$(am__configure_deps)' in \
  61295. *$$dep*) \
  61296. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  61297. - && exit 0; \
  61298. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  61299. + && { if test -f $@; then exit 0; else break; fi; }; \
  61300. exit 1;; \
  61301. esac; \
  61302. done; \
  61303. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
  61304. - cd $(top_srcdir) && \
  61305. - $(AUTOMAKE) --foreign test/Makefile
  61306. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
  61307. + $(am__cd) $(top_srcdir) && \
  61308. + $(AUTOMAKE) --foreign test/Makefile
  61309. .PRECIOUS: Makefile
  61310. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61311. @case '$?' in \
  61312. @@ -248,31 +254,34 @@
  61313. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61314. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  61315. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61316. +$(am__aclocal_m4_deps):
  61317. clean-noinstPROGRAMS:
  61318. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  61319. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  61320. - echo " rm -f $$p $$f"; \
  61321. - rm -f $$p $$f ; \
  61322. - done
  61323. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  61324. + echo " rm -f" $$list; \
  61325. + rm -f $$list || exit $$?; \
  61326. + test -n "$(EXEEXT)" || exit 0; \
  61327. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  61328. + echo " rm -f" $$list; \
  61329. + rm -f $$list
  61330. bench$(EXEEXT): $(bench_OBJECTS) $(bench_DEPENDENCIES)
  61331. @rm -f bench$(EXEEXT)
  61332. - $(LINK) $(bench_LDFLAGS) $(bench_OBJECTS) $(bench_LDADD) $(LIBS)
  61333. + $(LINK) $(bench_OBJECTS) $(bench_LDADD) $(LIBS)
  61334. regress$(EXEEXT): $(regress_OBJECTS) $(regress_DEPENDENCIES)
  61335. @rm -f regress$(EXEEXT)
  61336. - $(LINK) $(regress_LDFLAGS) $(regress_OBJECTS) $(regress_LDADD) $(LIBS)
  61337. + $(LINK) $(regress_OBJECTS) $(regress_LDADD) $(LIBS)
  61338. test-eof$(EXEEXT): $(test_eof_OBJECTS) $(test_eof_DEPENDENCIES)
  61339. @rm -f test-eof$(EXEEXT)
  61340. - $(LINK) $(test_eof_LDFLAGS) $(test_eof_OBJECTS) $(test_eof_LDADD) $(LIBS)
  61341. + $(LINK) $(test_eof_OBJECTS) $(test_eof_LDADD) $(LIBS)
  61342. test-init$(EXEEXT): $(test_init_OBJECTS) $(test_init_DEPENDENCIES)
  61343. @rm -f test-init$(EXEEXT)
  61344. - $(LINK) $(test_init_LDFLAGS) $(test_init_OBJECTS) $(test_init_LDADD) $(LIBS)
  61345. + $(LINK) $(test_init_OBJECTS) $(test_init_LDADD) $(LIBS)
  61346. test-time$(EXEEXT): $(test_time_OBJECTS) $(test_time_DEPENDENCIES)
  61347. @rm -f test-time$(EXEEXT)
  61348. - $(LINK) $(test_time_LDFLAGS) $(test_time_OBJECTS) $(test_time_LDADD) $(LIBS)
  61349. + $(LINK) $(test_time_OBJECTS) $(test_time_LDADD) $(LIBS)
  61350. test-weof$(EXEEXT): $(test_weof_OBJECTS) $(test_weof_DEPENDENCIES)
  61351. @rm -f test-weof$(EXEEXT)
  61352. - $(LINK) $(test_weof_LDFLAGS) $(test_weof_OBJECTS) $(test_weof_LDADD) $(LIBS)
  61353. + $(LINK) $(test_weof_OBJECTS) $(test_weof_LDADD) $(LIBS)
  61354. mostlyclean-compile:
  61355. -rm -f *.$(OBJEXT)
  61356. @@ -295,82 +304,85 @@
  61357. clean-libtool:
  61358. -rm -rf .libs _libs
  61359. -distclean-libtool:
  61360. - -rm -f libtool
  61361. -uninstall-info-am:
  61362. -
  61363. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  61364. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61365. unique=`for i in $$list; do \
  61366. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61367. done | \
  61368. - $(AWK) ' { files[$$0] = 1; } \
  61369. - END { for (i in files) print i; }'`; \
  61370. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61371. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61372. mkid -fID $$unique
  61373. tags: TAGS
  61374. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  61375. $(TAGS_FILES) $(LISP)
  61376. - tags=; \
  61377. + set x; \
  61378. here=`pwd`; \
  61379. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61380. unique=`for i in $$list; do \
  61381. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61382. done | \
  61383. - $(AWK) ' { files[$$0] = 1; } \
  61384. - END { for (i in files) print i; }'`; \
  61385. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61386. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61387. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61388. + shift; \
  61389. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61390. test -n "$$unique" || unique=$$empty_fix; \
  61391. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61392. - $$tags $$unique; \
  61393. + if test $$# -gt 0; then \
  61394. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61395. + "$$@" $$unique; \
  61396. + else \
  61397. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61398. + $$unique; \
  61399. + fi; \
  61400. fi
  61401. ctags: CTAGS
  61402. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  61403. $(TAGS_FILES) $(LISP)
  61404. - tags=; \
  61405. - here=`pwd`; \
  61406. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61407. unique=`for i in $$list; do \
  61408. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61409. done | \
  61410. - $(AWK) ' { files[$$0] = 1; } \
  61411. - END { for (i in files) print i; }'`; \
  61412. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61413. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61414. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61415. + test -z "$(CTAGS_ARGS)$$unique" \
  61416. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61417. - $$tags $$unique
  61418. + $$unique
  61419. GTAGS:
  61420. here=`$(am__cd) $(top_builddir) && pwd` \
  61421. - && cd $(top_srcdir) \
  61422. - && gtags -i $(GTAGS_ARGS) $$here
  61423. + && $(am__cd) $(top_srcdir) \
  61424. + && gtags -i $(GTAGS_ARGS) "$$here"
  61425. distclean-tags:
  61426. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61427. distdir: $(DISTFILES)
  61428. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  61429. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  61430. - list='$(DISTFILES)'; for file in $$list; do \
  61431. - case $$file in \
  61432. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  61433. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  61434. - esac; \
  61435. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61436. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61437. + list='$(DISTFILES)'; \
  61438. + dist_files=`for file in $$list; do echo $$file; done | \
  61439. + sed -e "s|^$$srcdirstrip/||;t" \
  61440. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  61441. + case $$dist_files in \
  61442. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  61443. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  61444. + sort -u` ;; \
  61445. + esac; \
  61446. + for file in $$dist_files; do \
  61447. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61448. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  61449. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  61450. - dir="/$$dir"; \
  61451. - $(mkdir_p) "$(distdir)$$dir"; \
  61452. - else \
  61453. - dir=''; \
  61454. - fi; \
  61455. if test -d $$d/$$file; then \
  61456. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61457. + if test -d "$(distdir)/$$file"; then \
  61458. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61459. + fi; \
  61460. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61461. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61462. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61463. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61464. fi; \
  61465. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61466. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61467. else \
  61468. - test -f $(distdir)/$$file \
  61469. - || cp -p $$d/$$file $(distdir)/$$file \
  61470. + test -f "$(distdir)/$$file" \
  61471. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61472. || exit 1; \
  61473. fi; \
  61474. done
  61475. @@ -401,6 +413,7 @@
  61476. distclean-generic:
  61477. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61478. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61479. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  61480. maintainer-clean-generic:
  61481. @@ -415,7 +428,7 @@
  61482. distclean: distclean-am
  61483. -rm -f Makefile
  61484. distclean-am: clean-am distclean-compile distclean-generic \
  61485. - distclean-libtool distclean-tags
  61486. + distclean-tags
  61487. dvi: dvi-am
  61488. @@ -423,18 +436,38 @@
  61489. html: html-am
  61490. +html-am:
  61491. +
  61492. info: info-am
  61493. info-am:
  61494. install-data-am:
  61495. +install-dvi: install-dvi-am
  61496. +
  61497. +install-dvi-am:
  61498. +
  61499. install-exec-am:
  61500. +install-html: install-html-am
  61501. +
  61502. +install-html-am:
  61503. +
  61504. install-info: install-info-am
  61505. +install-info-am:
  61506. +
  61507. install-man:
  61508. +install-pdf: install-pdf-am
  61509. +
  61510. +install-pdf-am:
  61511. +
  61512. +install-ps: install-ps-am
  61513. +
  61514. +install-ps-am:
  61515. +
  61516. installcheck-am:
  61517. maintainer-clean: maintainer-clean-am
  61518. @@ -454,19 +487,22 @@
  61519. ps-am:
  61520. -uninstall-am: uninstall-info-am
  61521. +uninstall-am:
  61522. +
  61523. +.MAKE: all check install install-am install-strip
  61524. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  61525. clean-libtool clean-noinstPROGRAMS ctags distclean \
  61526. distclean-compile distclean-generic distclean-libtool \
  61527. distclean-tags distdir dvi dvi-am html html-am info info-am \
  61528. - install install-am install-data install-data-am install-exec \
  61529. - install-exec-am install-info install-info-am install-man \
  61530. + install install-am install-data install-data-am install-dvi \
  61531. + install-dvi-am install-exec install-exec-am install-html \
  61532. + install-html-am install-info install-info-am install-man \
  61533. + install-pdf install-pdf-am install-ps install-ps-am \
  61534. install-strip installcheck installcheck-am installdirs \
  61535. maintainer-clean maintainer-clean-generic mostlyclean \
  61536. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  61537. - pdf pdf-am ps ps-am tags uninstall uninstall-am \
  61538. - uninstall-info-am
  61539. + pdf pdf-am ps ps-am tags uninstall uninstall-am
  61540. regress.gen.c regress.gen.h: regress.rpc
  61541. @@ -478,6 +514,7 @@
  61542. @./test.sh
  61543. bench test-init test-eof test-weof test-time: ../libevent.la
  61544. +
  61545. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61546. # Otherwise a system limit (for SysV at least) may be exceeded.
  61547. .NOEXPORT: