autotool.patch 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701
  1. diff -Nur file-5.04.orig/aclocal.m4 file-5.04/aclocal.m4
  2. --- file-5.04.orig/aclocal.m4 2010-01-22 22:09:20.000000000 +0100
  3. +++ file-5.04/aclocal.m4 2011-02-24 20:54:40.083551736 +0100
  4. @@ -1,7 +1,7 @@
  5. -# generated automatically by aclocal 1.10 -*- Autoconf -*-
  6. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  7. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8. -# 2005, 2006 Free Software Foundation, Inc.
  9. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  10. # This file is free software; the Free Software Foundation
  11. # gives unlimited permission to copy and/or distribute it,
  12. # with or without modifications, as long as this notice is preserved.
  13. @@ -11,107 +11,196 @@
  14. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  15. # PARTICULAR PURPOSE.
  16. -m4_if(m4_PACKAGE_VERSION, [2.61],,
  17. -[m4_fatal([this file was generated for autoconf 2.61.
  18. -You have another version of autoconf. If you want to use that,
  19. -you should regenerate the build system entirely.], [63])])
  20. +m4_ifndef([AC_AUTOCONF_VERSION],
  21. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. +You have another version of autoconf. It may work, but is not guaranteed to.
  25. +If you have problems, you may need to regenerate the build system entirely.
  26. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  28. +#
  29. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  31. +# Written by Gordon Matzigkeit, 1996
  32. +#
  33. +# This file is free software; the Free Software Foundation gives
  34. +# unlimited permission to copy and/or distribute it, with or without
  35. +# modifications, as long as this notice is preserved.
  36. +
  37. +m4_define([_LT_COPYING], [dnl
  38. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  39. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  40. +# Written by Gordon Matzigkeit, 1996
  41. +#
  42. +# This file is part of GNU Libtool.
  43. +#
  44. +# GNU Libtool is free software; you can redistribute it and/or
  45. +# modify it under the terms of the GNU General Public License as
  46. +# published by the Free Software Foundation; either version 2 of
  47. +# the License, or (at your option) any later version.
  48. +#
  49. +# As a special exception to the GNU General Public License,
  50. +# if you distribute this file as part of a program or library that
  51. +# is built using GNU Libtool, you may include this file under the
  52. +# same distribution terms that you use for the rest of that program.
  53. +#
  54. +# GNU Libtool is distributed in the hope that it will be useful,
  55. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  56. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  57. +# GNU General Public License for more details.
  58. +#
  59. +# You should have received a copy of the GNU General Public License
  60. +# along with GNU Libtool; see the file COPYING. If not, a copy
  61. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  62. +# obtained by writing to the Free Software Foundation, Inc.,
  63. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  64. +])
  65. -# serial 52 AC_PROG_LIBTOOL
  66. +# serial 56 LT_INIT
  67. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  68. -# -----------------------------------------------------------
  69. -# If this macro is not defined by Autoconf, define it here.
  70. -m4_ifdef([AC_PROVIDE_IFELSE],
  71. - [],
  72. - [m4_define([AC_PROVIDE_IFELSE],
  73. - [m4_ifdef([AC_PROVIDE_$1],
  74. - [$2], [$3])])])
  75. +# LT_PREREQ(VERSION)
  76. +# ------------------
  77. +# Complain and exit if this libtool version is less that VERSION.
  78. +m4_defun([LT_PREREQ],
  79. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  80. + [m4_default([$3],
  81. + [m4_fatal([Libtool version $1 or higher is required],
  82. + 63)])],
  83. + [$2])])
  84. -# AC_PROG_LIBTOOL
  85. -# ---------------
  86. -AC_DEFUN([AC_PROG_LIBTOOL],
  87. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  88. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  89. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  90. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  91. - [AC_LIBTOOL_CXX],
  92. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  93. - ])])
  94. -dnl And a similar setup for Fortran 77 support
  95. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  96. - [AC_LIBTOOL_F77],
  97. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  98. -])])
  99. -
  100. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  101. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  102. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  103. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  104. - [AC_LIBTOOL_GCJ],
  105. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  106. - [AC_LIBTOOL_GCJ],
  107. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  108. - [AC_LIBTOOL_GCJ],
  109. - [ifdef([AC_PROG_GCJ],
  110. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  111. - ifdef([A][M_PROG_GCJ],
  112. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  113. - ifdef([LT_AC_PROG_GCJ],
  114. - [define([LT_AC_PROG_GCJ],
  115. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  116. -])])# AC_PROG_LIBTOOL
  117. +# _LT_CHECK_BUILDDIR
  118. +# ------------------
  119. +# Complain if the absolute build directory name contains unusual characters
  120. +m4_defun([_LT_CHECK_BUILDDIR],
  121. +[case `pwd` in
  122. + *\ * | *\ *)
  123. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  124. +esac
  125. +])
  126. -# _AC_PROG_LIBTOOL
  127. -# ----------------
  128. -AC_DEFUN([_AC_PROG_LIBTOOL],
  129. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  130. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  131. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  133. +# LT_INIT([OPTIONS])
  134. +# ------------------
  135. +AC_DEFUN([LT_INIT],
  136. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  137. +AC_BEFORE([$0], [LT_LANG])dnl
  138. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  139. +AC_BEFORE([$0], [LTDL_INIT])dnl
  140. +m4_require([_LT_CHECK_BUILDDIR])dnl
  141. +
  142. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  143. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  144. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  145. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  146. +dnl unless we require an AC_DEFUNed macro:
  147. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  148. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  149. +AC_REQUIRE([LTVERSION_VERSION])dnl
  150. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  151. +m4_require([_LT_PROG_LTMAIN])dnl
  152. +
  153. +dnl Parse OPTIONS
  154. +_LT_SET_OPTIONS([$0], [$1])
  155. # This can be used to rebuild libtool when needed
  156. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  157. +LIBTOOL_DEPS="$ltmain"
  158. # Always use our own libtool.
  159. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  160. AC_SUBST(LIBTOOL)dnl
  161. -# Prevent multiple expansion
  162. -define([AC_PROG_LIBTOOL], [])
  163. -])# _AC_PROG_LIBTOOL
  164. +_LT_SETUP
  165. +# Only expand once:
  166. +m4_define([LT_INIT])
  167. +])# LT_INIT
  168. +
  169. +# Old names:
  170. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  171. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  172. +dnl aclocal-1.4 backwards compatibility:
  173. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  174. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  175. -# AC_LIBTOOL_SETUP
  176. -# ----------------
  177. -AC_DEFUN([AC_LIBTOOL_SETUP],
  178. -[AC_PREREQ(2.50)dnl
  179. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  180. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  181. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  182. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  183. +
  184. +# _LT_CC_BASENAME(CC)
  185. +# -------------------
  186. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  187. +m4_defun([_LT_CC_BASENAME],
  188. +[for cc_temp in $1""; do
  189. + case $cc_temp in
  190. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  191. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  192. + \-*) ;;
  193. + *) break;;
  194. + esac
  195. +done
  196. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  197. +])
  198. +
  199. +
  200. +# _LT_FILEUTILS_DEFAULTS
  201. +# ----------------------
  202. +# It is okay to use these file commands and assume they have been set
  203. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  204. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  205. +[: ${CP="cp -f"}
  206. +: ${MV="mv -f"}
  207. +: ${RM="rm -f"}
  208. +])# _LT_FILEUTILS_DEFAULTS
  209. +
  210. +
  211. +# _LT_SETUP
  212. +# ---------
  213. +m4_defun([_LT_SETUP],
  214. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  215. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  216. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  217. +_LT_DECL([], [host], [0])dnl
  218. +_LT_DECL([], [host_os], [0])dnl
  219. +dnl
  220. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  221. +_LT_DECL([], [build], [0])dnl
  222. +_LT_DECL([], [build_os], [0])dnl
  223. +dnl
  224. AC_REQUIRE([AC_PROG_CC])dnl
  225. -AC_REQUIRE([AC_PROG_LD])dnl
  226. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  227. -AC_REQUIRE([AC_PROG_NM])dnl
  228. -
  229. +AC_REQUIRE([LT_PATH_LD])dnl
  230. +AC_REQUIRE([LT_PATH_NM])dnl
  231. +dnl
  232. AC_REQUIRE([AC_PROG_LN_S])dnl
  233. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  234. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  235. -AC_REQUIRE([AC_OBJEXT])dnl
  236. -AC_REQUIRE([AC_EXEEXT])dnl
  237. +test -z "$LN_S" && LN_S="ln -s"
  238. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  239. dnl
  240. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  241. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  242. -AC_LIBTOOL_OBJDIR
  243. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  244. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  245. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  246. +dnl
  247. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  248. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  249. +m4_require([_LT_CMD_RELOAD])dnl
  250. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  251. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  252. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  253. +
  254. +_LT_CONFIG_LIBTOOL_INIT([
  255. +# See if we are running on zsh, and set the options which allow our
  256. +# commands through without removal of \ escapes INIT.
  257. +if test -n "\${ZSH_VERSION+set}" ; then
  258. + setopt NO_GLOB_SUBST
  259. +fi
  260. +])
  261. +if test -n "${ZSH_VERSION+set}" ; then
  262. + setopt NO_GLOB_SUBST
  263. +fi
  264. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  265. -_LT_AC_PROG_ECHO_BACKSLASH
  266. +_LT_CHECK_OBJDIR
  267. +
  268. +m4_require([_LT_TAG_COMPILER])dnl
  269. +_LT_PROG_ECHO_BACKSLASH
  270. case $host_os in
  271. aix3*)
  272. @@ -127,116 +216,653 @@
  273. # Sed substitution that helps us do robust quoting. It backslashifies
  274. # metacharacters that are still active within double-quoted strings.
  275. -Xsed='sed -e 1s/^X//'
  276. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  278. # Same as above, but do not quote variable references.
  279. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  281. # Sed substitution to delay expansion of an escaped shell variable in a
  282. # double_quote_subst'ed string.
  283. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  284. +# Sed substitution to delay expansion of an escaped single quote.
  285. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  286. +
  287. # Sed substitution to avoid accidental globbing in evaled expressions
  288. no_glob_subst='s/\*/\\\*/g'
  289. -# Constants:
  290. -rm="rm -f"
  291. -
  292. # Global variables:
  293. -default_ofile=libtool
  294. +ofile=libtool
  295. can_build_shared=yes
  296. # All known linkers require a `.a' archive for static linking (except MSVC,
  297. # which needs '.lib').
  298. libext=a
  299. -ltmain="$ac_aux_dir/ltmain.sh"
  300. -ofile="$default_ofile"
  301. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  302. -AC_CHECK_TOOL(AR, ar, false)
  303. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  304. -AC_CHECK_TOOL(STRIP, strip, :)
  305. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  306. old_CC="$CC"
  307. old_CFLAGS="$CFLAGS"
  308. # Set sane defaults for various variables
  309. -test -z "$AR" && AR=ar
  310. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  311. -test -z "$AS" && AS=as
  312. test -z "$CC" && CC=cc
  313. test -z "$LTCC" && LTCC=$CC
  314. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  315. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  316. test -z "$LD" && LD=ld
  317. -test -z "$LN_S" && LN_S="ln -s"
  318. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  319. -test -z "$NM" && NM=nm
  320. -test -z "$SED" && SED=sed
  321. -test -z "$OBJDUMP" && OBJDUMP=objdump
  322. -test -z "$RANLIB" && RANLIB=:
  323. -test -z "$STRIP" && STRIP=:
  324. test -z "$ac_objext" && ac_objext=o
  325. -# Determine commands to create old-style static archives.
  326. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  327. -old_postinstall_cmds='chmod 644 $oldlib'
  328. -old_postuninstall_cmds=
  329. -
  330. -if test -n "$RANLIB"; then
  331. - case $host_os in
  332. - openbsd*)
  333. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  334. - ;;
  335. - *)
  336. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  337. - ;;
  338. - esac
  339. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  340. -fi
  341. -
  342. _LT_CC_BASENAME([$compiler])
  343. # Only perform the check for file, if the check method requires it
  344. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  345. case $deplibs_check_method in
  346. file_magic*)
  347. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  348. - AC_PATH_MAGIC
  349. + _LT_PATH_MAGIC
  350. fi
  351. ;;
  352. esac
  353. -_LT_REQUIRED_DARWIN_CHECKS
  354. +# Use C for the default configuration in the libtool script
  355. +LT_SUPPORTED_TAG([CC])
  356. +_LT_LANG_C_CONFIG
  357. +_LT_LANG_DEFAULT_CONFIG
  358. +_LT_CONFIG_COMMANDS
  359. +])# _LT_SETUP
  360. +
  361. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  362. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  363. -enable_win32_dll=yes, enable_win32_dll=no)
  364. -
  365. -AC_ARG_ENABLE([libtool-lock],
  366. - [AC_HELP_STRING([--disable-libtool-lock],
  367. - [avoid locking (might break parallel builds)])])
  368. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  369. +# _LT_PROG_LTMAIN
  370. +# ---------------
  371. +# Note that this code is called both from `configure', and `config.status'
  372. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  373. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  374. +# so we pass a copy along to make sure it has a sensible value anyway.
  375. +m4_defun([_LT_PROG_LTMAIN],
  376. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  377. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  378. +ltmain="$ac_aux_dir/ltmain.sh"
  379. +])# _LT_PROG_LTMAIN
  380. -AC_ARG_WITH([pic],
  381. - [AC_HELP_STRING([--with-pic],
  382. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  383. - [pic_mode="$withval"],
  384. - [pic_mode=default])
  385. -test -z "$pic_mode" && pic_mode=default
  386. -# Use C for the default configuration in the libtool script
  387. -tagname=
  388. -AC_LIBTOOL_LANG_C_CONFIG
  389. -_LT_AC_TAGCONFIG
  390. -])# AC_LIBTOOL_SETUP
  391. +
  392. +# So that we can recreate a full libtool script including additional
  393. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  394. +# in macros and then make a single call at the end using the `libtool'
  395. +# label.
  396. +
  397. +
  398. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  399. +# ----------------------------------------
  400. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  401. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  402. +[m4_ifval([$1],
  403. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  404. + [$1
  405. +])])])
  406. +
  407. +# Initialize.
  408. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  409. +
  410. +
  411. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  412. +# ------------------------------
  413. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  414. +m4_define([_LT_CONFIG_LIBTOOL],
  415. +[m4_ifval([$1],
  416. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  417. + [$1
  418. +])])])
  419. +
  420. +# Initialize.
  421. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  422. +
  423. +
  424. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  425. +# -----------------------------------------------------
  426. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  427. +[_LT_CONFIG_LIBTOOL([$1])
  428. +_LT_CONFIG_LIBTOOL_INIT([$2])
  429. +])
  430. +
  431. +
  432. +# _LT_FORMAT_COMMENT([COMMENT])
  433. +# -----------------------------
  434. +# Add leading comment marks to the start of each line, and a trailing
  435. +# full-stop to the whole comment if one is not present already.
  436. +m4_define([_LT_FORMAT_COMMENT],
  437. +[m4_ifval([$1], [
  438. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  439. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  440. +)])
  441. +
  442. +
  443. +
  444. +
  445. +
  446. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  447. +# -------------------------------------------------------------------
  448. +# CONFIGNAME is the name given to the value in the libtool script.
  449. +# VARNAME is the (base) name used in the configure script.
  450. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  451. +# VARNAME. Any other value will be used directly.
  452. +m4_define([_LT_DECL],
  453. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  454. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  455. + [m4_ifval([$1], [$1], [$2])])
  456. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  457. + m4_ifval([$4],
  458. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  459. + lt_dict_add_subkey([lt_decl_dict], [$2],
  460. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  461. +])
  462. +
  463. +
  464. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  465. +# --------------------------------------------------------
  466. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  467. +
  468. +
  469. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  470. +# ------------------------------------------------
  471. +m4_define([lt_decl_tag_varnames],
  472. +[_lt_decl_filter([tagged?], [yes], $@)])
  473. +
  474. +
  475. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  476. +# ---------------------------------------------------------
  477. +m4_define([_lt_decl_filter],
  478. +[m4_case([$#],
  479. + [0], [m4_fatal([$0: too few arguments: $#])],
  480. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  481. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  482. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  483. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  484. +])
  485. +
  486. +
  487. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  488. +# --------------------------------------------------
  489. +m4_define([lt_decl_quote_varnames],
  490. +[_lt_decl_filter([value], [1], $@)])
  491. +
  492. +
  493. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  494. +# ---------------------------------------------------
  495. +m4_define([lt_decl_dquote_varnames],
  496. +[_lt_decl_filter([value], [2], $@)])
  497. +
  498. +
  499. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  500. +# ---------------------------------------------------
  501. +m4_define([lt_decl_varnames_tagged],
  502. +[m4_assert([$# <= 2])dnl
  503. +_$0(m4_quote(m4_default([$1], [[, ]])),
  504. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  505. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  506. +m4_define([_lt_decl_varnames_tagged],
  507. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  508. +
  509. +
  510. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  511. +# ------------------------------------------------
  512. +m4_define([lt_decl_all_varnames],
  513. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  514. + m4_if([$2], [],
  515. + m4_quote(lt_decl_varnames),
  516. + m4_quote(m4_shift($@))))[]dnl
  517. +])
  518. +m4_define([_lt_decl_all_varnames],
  519. +[lt_join($@, lt_decl_varnames_tagged([$1],
  520. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  521. +])
  522. +
  523. +
  524. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  525. +# ------------------------------------
  526. +# Quote a variable value, and forward it to `config.status' so that its
  527. +# declaration there will have the same value as in `configure'. VARNAME
  528. +# must have a single quote delimited value for this to work.
  529. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  530. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  531. +
  532. +
  533. +# _LT_CONFIG_STATUS_DECLARATIONS
  534. +# ------------------------------
  535. +# We delimit libtool config variables with single quotes, so when
  536. +# we write them to config.status, we have to be sure to quote all
  537. +# embedded single quotes properly. In configure, this macro expands
  538. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  539. +#
  540. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  541. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  542. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  543. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  544. +
  545. +
  546. +# _LT_LIBTOOL_TAGS
  547. +# ----------------
  548. +# Output comment and list of tags supported by the script
  549. +m4_defun([_LT_LIBTOOL_TAGS],
  550. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  551. +available_tags="_LT_TAGS"dnl
  552. +])
  553. +
  554. +
  555. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  556. +# -----------------------------------
  557. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  558. +# expand to a commented shell variable setting:
  559. +#
  560. +# # Some comment about what VAR is for.
  561. +# visible_name=$lt_internal_name
  562. +m4_define([_LT_LIBTOOL_DECLARE],
  563. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  564. + [description])))[]dnl
  565. +m4_pushdef([_libtool_name],
  566. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  567. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  568. + [0], [_libtool_name=[$]$1],
  569. + [1], [_libtool_name=$lt_[]$1],
  570. + [2], [_libtool_name=$lt_[]$1],
  571. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  572. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  573. +])
  574. +
  575. +
  576. +# _LT_LIBTOOL_CONFIG_VARS
  577. +# -----------------------
  578. +# Produce commented declarations of non-tagged libtool config variables
  579. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  580. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  581. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  582. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  583. +[m4_foreach([_lt_var],
  584. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  585. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  586. +
  587. +
  588. +# _LT_LIBTOOL_TAG_VARS(TAG)
  589. +# -------------------------
  590. +m4_define([_LT_LIBTOOL_TAG_VARS],
  591. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  592. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  593. +
  594. +
  595. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  596. +# ------------------------------
  597. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  598. -# _LT_AC_SYS_COMPILER
  599. +# _LT_CONFIG_COMMANDS
  600. # -------------------
  601. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  602. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  603. +# variables for single and double quote escaping we saved from calls
  604. +# to _LT_DECL, we can put quote escaped variables declarations
  605. +# into `config.status', and then the shell code to quote escape them in
  606. +# for loops in `config.status'. Finally, any additional code accumulated
  607. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  608. +m4_defun([_LT_CONFIG_COMMANDS],
  609. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  610. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  611. + dnl instead of duplicating it all over again into config.status,
  612. + dnl then we will have config.status run $CONFIG_LT later, so it
  613. + dnl needs to know what name is stored there:
  614. + [AC_CONFIG_COMMANDS([libtool],
  615. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  616. + dnl If the libtool generation code is destined for config.status,
  617. + dnl expand the accumulated commands and init code now:
  618. + [AC_CONFIG_COMMANDS([libtool],
  619. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  620. +])#_LT_CONFIG_COMMANDS
  621. +
  622. +
  623. +# Initialize.
  624. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  625. +[
  626. +
  627. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  628. +# if CDPATH is set.
  629. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  630. +
  631. +sed_quote_subst='$sed_quote_subst'
  632. +double_quote_subst='$double_quote_subst'
  633. +delay_variable_subst='$delay_variable_subst'
  634. +_LT_CONFIG_STATUS_DECLARATIONS
  635. +LTCC='$LTCC'
  636. +LTCFLAGS='$LTCFLAGS'
  637. +compiler='$compiler_DEFAULT'
  638. +
  639. +# Quote evaled strings.
  640. +for var in lt_decl_all_varnames([[ \
  641. +]], lt_decl_quote_varnames); do
  642. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  643. + *[[\\\\\\\`\\"\\\$]]*)
  644. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  645. + ;;
  646. + *)
  647. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  648. + ;;
  649. + esac
  650. +done
  651. +
  652. +# Double-quote double-evaled strings.
  653. +for var in lt_decl_all_varnames([[ \
  654. +]], lt_decl_dquote_varnames); do
  655. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  656. + *[[\\\\\\\`\\"\\\$]]*)
  657. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  658. + ;;
  659. + *)
  660. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  661. + ;;
  662. + esac
  663. +done
  664. +
  665. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  666. +case \$lt_ECHO in
  667. +*'\\\[$]0 --fallback-echo"')dnl "
  668. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  669. + ;;
  670. +esac
  671. +
  672. +_LT_OUTPUT_LIBTOOL_INIT
  673. +])
  674. +
  675. +
  676. +# LT_OUTPUT
  677. +# ---------
  678. +# This macro allows early generation of the libtool script (before
  679. +# AC_OUTPUT is called), incase it is used in configure for compilation
  680. +# tests.
  681. +AC_DEFUN([LT_OUTPUT],
  682. +[: ${CONFIG_LT=./config.lt}
  683. +AC_MSG_NOTICE([creating $CONFIG_LT])
  684. +cat >"$CONFIG_LT" <<_LTEOF
  685. +#! $SHELL
  686. +# Generated by $as_me.
  687. +# Run this file to recreate a libtool stub with the current configuration.
  688. +
  689. +lt_cl_silent=false
  690. +SHELL=\${CONFIG_SHELL-$SHELL}
  691. +_LTEOF
  692. +
  693. +cat >>"$CONFIG_LT" <<\_LTEOF
  694. +AS_SHELL_SANITIZE
  695. +_AS_PREPARE
  696. +
  697. +exec AS_MESSAGE_FD>&1
  698. +exec AS_MESSAGE_LOG_FD>>config.log
  699. +{
  700. + echo
  701. + AS_BOX([Running $as_me.])
  702. +} >&AS_MESSAGE_LOG_FD
  703. +
  704. +lt_cl_help="\
  705. +\`$as_me' creates a local libtool stub from the current configuration,
  706. +for use in further configure time tests before the real libtool is
  707. +generated.
  708. +
  709. +Usage: $[0] [[OPTIONS]]
  710. +
  711. + -h, --help print this help, then exit
  712. + -V, --version print version number, then exit
  713. + -q, --quiet do not print progress messages
  714. + -d, --debug don't remove temporary files
  715. +
  716. +Report bugs to <bug-libtool@gnu.org>."
  717. +
  718. +lt_cl_version="\
  719. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  720. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  721. +configured by $[0], generated by m4_PACKAGE_STRING.
  722. +
  723. +Copyright (C) 2008 Free Software Foundation, Inc.
  724. +This config.lt script is free software; the Free Software Foundation
  725. +gives unlimited permision to copy, distribute and modify it."
  726. +
  727. +while test $[#] != 0
  728. +do
  729. + case $[1] in
  730. + --version | --v* | -V )
  731. + echo "$lt_cl_version"; exit 0 ;;
  732. + --help | --h* | -h )
  733. + echo "$lt_cl_help"; exit 0 ;;
  734. + --debug | --d* | -d )
  735. + debug=: ;;
  736. + --quiet | --q* | --silent | --s* | -q )
  737. + lt_cl_silent=: ;;
  738. +
  739. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  740. +Try \`$[0] --help' for more information.]) ;;
  741. +
  742. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  743. +Try \`$[0] --help' for more information.]) ;;
  744. + esac
  745. + shift
  746. +done
  747. +
  748. +if $lt_cl_silent; then
  749. + exec AS_MESSAGE_FD>/dev/null
  750. +fi
  751. +_LTEOF
  752. +
  753. +cat >>"$CONFIG_LT" <<_LTEOF
  754. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  755. +_LTEOF
  756. +
  757. +cat >>"$CONFIG_LT" <<\_LTEOF
  758. +AC_MSG_NOTICE([creating $ofile])
  759. +_LT_OUTPUT_LIBTOOL_COMMANDS
  760. +AS_EXIT(0)
  761. +_LTEOF
  762. +chmod +x "$CONFIG_LT"
  763. +
  764. +# configure is writing to config.log, but config.lt does its own redirection,
  765. +# appending to config.log, which fails on DOS, as config.log is still kept
  766. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  767. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  768. +if test "$no_create" != yes; then
  769. + lt_cl_success=:
  770. + test "$silent" = yes &&
  771. + lt_config_lt_args="$lt_config_lt_args --quiet"
  772. + exec AS_MESSAGE_LOG_FD>/dev/null
  773. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  774. + exec AS_MESSAGE_LOG_FD>>config.log
  775. + $lt_cl_success || AS_EXIT(1)
  776. +fi
  777. +])# LT_OUTPUT
  778. +
  779. +
  780. +# _LT_CONFIG(TAG)
  781. +# ---------------
  782. +# If TAG is the built-in tag, create an initial libtool script with a
  783. +# default configuration from the untagged config vars. Otherwise add code
  784. +# to config.status for appending the configuration named by TAG from the
  785. +# matching tagged config vars.
  786. +m4_defun([_LT_CONFIG],
  787. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  788. +_LT_CONFIG_SAVE_COMMANDS([
  789. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  790. + m4_if(_LT_TAG, [C], [
  791. + # See if we are running on zsh, and set the options which allow our
  792. + # commands through without removal of \ escapes.
  793. + if test -n "${ZSH_VERSION+set}" ; then
  794. + setopt NO_GLOB_SUBST
  795. + fi
  796. +
  797. + cfgfile="${ofile}T"
  798. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  799. + $RM "$cfgfile"
  800. +
  801. + cat <<_LT_EOF >> "$cfgfile"
  802. +#! $SHELL
  803. +
  804. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  805. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  806. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  807. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  808. +#
  809. +_LT_COPYING
  810. +_LT_LIBTOOL_TAGS
  811. +
  812. +# ### BEGIN LIBTOOL CONFIG
  813. +_LT_LIBTOOL_CONFIG_VARS
  814. +_LT_LIBTOOL_TAG_VARS
  815. +# ### END LIBTOOL CONFIG
  816. +
  817. +_LT_EOF
  818. +
  819. + case $host_os in
  820. + aix3*)
  821. + cat <<\_LT_EOF >> "$cfgfile"
  822. +# AIX sometimes has problems with the GCC collect2 program. For some
  823. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  824. +# vanish in a puff of smoke.
  825. +if test "X${COLLECT_NAMES+set}" != Xset; then
  826. + COLLECT_NAMES=
  827. + export COLLECT_NAMES
  828. +fi
  829. +_LT_EOF
  830. + ;;
  831. + esac
  832. +
  833. + _LT_PROG_LTMAIN
  834. +
  835. + # We use sed instead of cat because bash on DJGPP gets confused if
  836. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  837. + # text mode, it properly converts lines to CR/LF. This bash problem
  838. + # is reportedly fixed, but why not run on old versions too?
  839. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  840. + || (rm -f "$cfgfile"; exit 1)
  841. +
  842. + _LT_PROG_XSI_SHELLFNS
  843. +
  844. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  845. + || (rm -f "$cfgfile"; exit 1)
  846. +
  847. + mv -f "$cfgfile" "$ofile" ||
  848. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  849. + chmod +x "$ofile"
  850. +],
  851. +[cat <<_LT_EOF >> "$ofile"
  852. +
  853. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  854. +dnl in a comment (ie after a #).
  855. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  856. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  857. +# ### END LIBTOOL TAG CONFIG: $1
  858. +_LT_EOF
  859. +])dnl /m4_if
  860. +],
  861. +[m4_if([$1], [], [
  862. + PACKAGE='$PACKAGE'
  863. + VERSION='$VERSION'
  864. + TIMESTAMP='$TIMESTAMP'
  865. + RM='$RM'
  866. + ofile='$ofile'], [])
  867. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  868. +])# _LT_CONFIG
  869. +
  870. +
  871. +# LT_SUPPORTED_TAG(TAG)
  872. +# ---------------------
  873. +# Trace this macro to discover what tags are supported by the libtool
  874. +# --tag option, using:
  875. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  876. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  877. +
  878. +
  879. +# C support is built-in for now
  880. +m4_define([_LT_LANG_C_enabled], [])
  881. +m4_define([_LT_TAGS], [])
  882. +
  883. +
  884. +# LT_LANG(LANG)
  885. +# -------------
  886. +# Enable libtool support for the given language if not already enabled.
  887. +AC_DEFUN([LT_LANG],
  888. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  889. +m4_case([$1],
  890. + [C], [_LT_LANG(C)],
  891. + [C++], [_LT_LANG(CXX)],
  892. + [Java], [_LT_LANG(GCJ)],
  893. + [Fortran 77], [_LT_LANG(F77)],
  894. + [Fortran], [_LT_LANG(FC)],
  895. + [Windows Resource], [_LT_LANG(RC)],
  896. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  897. + [_LT_LANG($1)],
  898. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  899. +])# LT_LANG
  900. +
  901. +
  902. +# _LT_LANG(LANGNAME)
  903. +# ------------------
  904. +m4_defun([_LT_LANG],
  905. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  906. + [LT_SUPPORTED_TAG([$1])dnl
  907. + m4_append([_LT_TAGS], [$1 ])dnl
  908. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  909. + _LT_LANG_$1_CONFIG($1)])dnl
  910. +])# _LT_LANG
  911. +
  912. +
  913. +# _LT_LANG_DEFAULT_CONFIG
  914. +# -----------------------
  915. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  916. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  917. + [LT_LANG(CXX)],
  918. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  919. +
  920. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  921. + [LT_LANG(F77)],
  922. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  923. +
  924. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  925. + [LT_LANG(FC)],
  926. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  927. +
  928. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  929. +dnl pulling things in needlessly.
  930. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  931. + [LT_LANG(GCJ)],
  932. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  933. + [LT_LANG(GCJ)],
  934. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  935. + [LT_LANG(GCJ)],
  936. + [m4_ifdef([AC_PROG_GCJ],
  937. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  938. + m4_ifdef([A][M_PROG_GCJ],
  939. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  940. + m4_ifdef([LT_PROG_GCJ],
  941. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  942. +
  943. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  944. + [LT_LANG(RC)],
  945. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  946. +])# _LT_LANG_DEFAULT_CONFIG
  947. +
  948. +# Obsolete macros:
  949. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  950. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  951. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  952. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  953. +dnl aclocal-1.4 backwards compatibility:
  954. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  955. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  956. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  957. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  958. +
  959. +
  960. +# _LT_TAG_COMPILER
  961. +# ----------------
  962. +m4_defun([_LT_TAG_COMPILER],
  963. [AC_REQUIRE([AC_PROG_CC])dnl
  964. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  965. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  966. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  967. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  968. +
  969. # If no C compiler was specified, use CC.
  970. LTCC=${LTCC-"$CC"}
  971. @@ -245,36 +871,20 @@
  972. # Allow CC to be a program name with arguments.
  973. compiler=$CC
  974. -])# _LT_AC_SYS_COMPILER
  975. -
  976. -
  977. -# _LT_CC_BASENAME(CC)
  978. -# -------------------
  979. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  980. -AC_DEFUN([_LT_CC_BASENAME],
  981. -[for cc_temp in $1""; do
  982. - case $cc_temp in
  983. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  984. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  985. - \-*) ;;
  986. - *) break;;
  987. - esac
  988. -done
  989. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  990. -])
  991. +])# _LT_TAG_COMPILER
  992. # _LT_COMPILER_BOILERPLATE
  993. # ------------------------
  994. # Check for compiler boilerplate output or warnings with
  995. # the simple compiler test code.
  996. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  997. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  998. +m4_defun([_LT_COMPILER_BOILERPLATE],
  999. +[m4_require([_LT_DECL_SED])dnl
  1000. ac_outfile=conftest.$ac_objext
  1001. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1002. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1003. _lt_compiler_boilerplate=`cat conftest.err`
  1004. -$rm conftest*
  1005. +$RM conftest*
  1006. ])# _LT_COMPILER_BOILERPLATE
  1007. @@ -282,39 +892,57 @@
  1008. # ----------------------
  1009. # Check for linker boilerplate output or warnings with
  1010. # the simple link test code.
  1011. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1012. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1013. +m4_defun([_LT_LINKER_BOILERPLATE],
  1014. +[m4_require([_LT_DECL_SED])dnl
  1015. ac_outfile=conftest.$ac_objext
  1016. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1017. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1018. _lt_linker_boilerplate=`cat conftest.err`
  1019. -$rm -r conftest*
  1020. +$RM -r conftest*
  1021. ])# _LT_LINKER_BOILERPLATE
  1022. # _LT_REQUIRED_DARWIN_CHECKS
  1023. -# --------------------------
  1024. -# Check for some things on darwin
  1025. -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1026. +# -------------------------
  1027. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1028. case $host_os in
  1029. rhapsody* | darwin*)
  1030. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1031. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1032. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1033. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1034. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1035. + _LT_DECL([], [DSYMUTIL], [1],
  1036. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1037. + _LT_DECL([], [NMEDIT], [1],
  1038. + [Tool to change global to local symbols on Mac OS X])
  1039. + _LT_DECL([], [LIPO], [1],
  1040. + [Tool to manipulate fat objects and archives on Mac OS X])
  1041. + _LT_DECL([], [OTOOL], [1],
  1042. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1043. + _LT_DECL([], [OTOOL64], [1],
  1044. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1045. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1046. [lt_cv_apple_cc_single_mod=no
  1047. if test -z "${LT_MULTI_MODULE}"; then
  1048. - # By default we will add the -single_module flag. You can override
  1049. - # by either setting the environment variable LT_MULTI_MODULE
  1050. - # non-empty at configure time, or by adding -multi_module to the
  1051. - # link flags.
  1052. - echo "int foo(void){return 1;}" > conftest.c
  1053. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1054. - -dynamiclib ${wl}-single_module conftest.c
  1055. - if test -f libconftest.dylib; then
  1056. - lt_cv_apple_cc_single_mod=yes
  1057. - rm -rf libconftest.dylib*
  1058. - fi
  1059. - rm conftest.c
  1060. + # By default we will add the -single_module flag. You can override
  1061. + # by either setting the environment variable LT_MULTI_MODULE
  1062. + # non-empty at configure time, or by adding -multi_module to the
  1063. + # link flags.
  1064. + rm -rf libconftest.dylib*
  1065. + echo "int foo(void){return 1;}" > conftest.c
  1066. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1067. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1068. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1069. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1070. + _lt_result=$?
  1071. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1072. + lt_cv_apple_cc_single_mod=yes
  1073. + else
  1074. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1075. + fi
  1076. + rm -rf libconftest.dylib*
  1077. + rm -f conftest.*
  1078. fi])
  1079. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1080. [lt_cv_ld_exported_symbols_list],
  1081. @@ -323,26 +951,26 @@
  1082. echo "_main" > conftest.sym
  1083. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1084. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1085. - [lt_cv_ld_exported_symbols_list=yes],
  1086. - [lt_cv_ld_exported_symbols_list=no])
  1087. - LDFLAGS="$save_LDFLAGS"
  1088. + [lt_cv_ld_exported_symbols_list=yes],
  1089. + [lt_cv_ld_exported_symbols_list=no])
  1090. + LDFLAGS="$save_LDFLAGS"
  1091. ])
  1092. case $host_os in
  1093. - rhapsody* | darwin1.[[0123]])
  1094. + rhapsody* | darwin1.[[012]])
  1095. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1096. darwin1.*)
  1097. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1098. - darwin*)
  1099. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1100. + darwin*) # darwin 5.x on
  1101. # if running on 10.5 or later, the deployment target defaults
  1102. # to the OS version, if on x86, and 10.4, the deployment
  1103. # target defaults to 10.4. Don't you love it?
  1104. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1105. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1106. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1107. - 10.[[012]]*)
  1108. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1109. - 10.*)
  1110. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1111. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1112. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1113. + 10.[[012]]*)
  1114. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1115. + 10.*)
  1116. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1117. esac
  1118. ;;
  1119. esac
  1120. @@ -352,10 +980,10 @@
  1121. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1122. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1123. else
  1124. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  1125. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1126. fi
  1127. if test "$DSYMUTIL" != ":"; then
  1128. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  1129. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1130. else
  1131. _lt_dsymutil=
  1132. fi
  1133. @@ -363,16 +991,51 @@
  1134. esac
  1135. ])
  1136. -# _LT_AC_SYS_LIBPATH_AIX
  1137. -# ----------------------
  1138. -# Links a minimal program and checks the executable
  1139. +
  1140. +# _LT_DARWIN_LINKER_FEATURES
  1141. +# --------------------------
  1142. +# Checks for linker and compiler features on darwin
  1143. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1144. +[
  1145. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1146. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1147. + _LT_TAGVAR(hardcode_direct, $1)=no
  1148. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1149. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1150. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1151. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1152. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1153. + case $cc_basename in
  1154. + ifort*) _lt_dar_can_shared=yes ;;
  1155. + *) _lt_dar_can_shared=$GCC ;;
  1156. + esac
  1157. + if test "$_lt_dar_can_shared" = "yes"; then
  1158. + output_verbose_link_cmd=echo
  1159. + _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}"
  1160. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1161. + _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}"
  1162. + _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}"
  1163. + m4_if([$1], [CXX],
  1164. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1165. + _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}"
  1166. + _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}"
  1167. + fi
  1168. +],[])
  1169. + else
  1170. + _LT_TAGVAR(ld_shlibs, $1)=no
  1171. + fi
  1172. +])
  1173. +
  1174. +# _LT_SYS_MODULE_PATH_AIX
  1175. +# -----------------------
  1176. +# Links a minimal program and checks the executable
  1177. # for the system default hardcoded library path. In most cases,
  1178. # this is /usr/lib:/lib, but when the MPI compilers are used
  1179. # the location of the communication and MPI libs are included too.
  1180. # If we don't find anything, use the default library path according
  1181. # to the aix ld manual.
  1182. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1183. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1184. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1185. +[m4_require([_LT_DECL_SED])dnl
  1186. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1187. lt_aix_libpath_sed='
  1188. /Import File Strings/,/^$/ {
  1189. @@ -387,45 +1050,45 @@
  1190. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1191. fi],[])
  1192. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1193. -])# _LT_AC_SYS_LIBPATH_AIX
  1194. +])# _LT_SYS_MODULE_PATH_AIX
  1195. -# _LT_AC_SHELL_INIT(ARG)
  1196. -# ----------------------
  1197. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1198. +# _LT_SHELL_INIT(ARG)
  1199. +# -------------------
  1200. +m4_define([_LT_SHELL_INIT],
  1201. [ifdef([AC_DIVERSION_NOTICE],
  1202. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1203. [AC_DIVERT_PUSH(NOTICE)])
  1204. $1
  1205. AC_DIVERT_POP
  1206. -])# _LT_AC_SHELL_INIT
  1207. +])# _LT_SHELL_INIT
  1208. -# _LT_AC_PROG_ECHO_BACKSLASH
  1209. -# --------------------------
  1210. +# _LT_PROG_ECHO_BACKSLASH
  1211. +# -----------------------
  1212. # Add some code to the start of the generated configure script which
  1213. # will find an echo command which doesn't interpret backslashes.
  1214. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1215. -[_LT_AC_SHELL_INIT([
  1216. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1217. +[_LT_SHELL_INIT([
  1218. # Check that we are running under the correct shell.
  1219. SHELL=${CONFIG_SHELL-/bin/sh}
  1220. -case X$ECHO in
  1221. +case X$lt_ECHO in
  1222. X*--fallback-echo)
  1223. # Remove one level of quotation (which was required for Make).
  1224. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1225. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1226. ;;
  1227. esac
  1228. -echo=${ECHO-echo}
  1229. +ECHO=${lt_ECHO-echo}
  1230. if test "X[$]1" = X--no-reexec; then
  1231. # Discard the --no-reexec flag, and continue.
  1232. shift
  1233. elif test "X[$]1" = X--fallback-echo; then
  1234. # Avoid inline document here, it may be left over
  1235. :
  1236. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1237. - # Yippee, $echo works!
  1238. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1239. + # Yippee, $ECHO works!
  1240. :
  1241. else
  1242. # Restart under the correct shell.
  1243. @@ -435,9 +1098,9 @@
  1244. if test "X[$]1" = X--fallback-echo; then
  1245. # used as fallback echo
  1246. shift
  1247. - cat <<EOF
  1248. + cat <<_LT_EOF
  1249. [$]*
  1250. -EOF
  1251. +_LT_EOF
  1252. exit 0
  1253. fi
  1254. @@ -445,124 +1108,127 @@
  1255. # if CDPATH is set.
  1256. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1257. -if test -z "$ECHO"; then
  1258. -if test "X${echo_test_string+set}" != Xset; then
  1259. -# find a string as large as possible, as long as the shell can cope with it
  1260. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1261. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1262. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1263. - echo_test_string=`eval $cmd` &&
  1264. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1265. - then
  1266. - break
  1267. - fi
  1268. - done
  1269. -fi
  1270. +if test -z "$lt_ECHO"; then
  1271. + if test "X${echo_test_string+set}" != Xset; then
  1272. + # find a string as large as possible, as long as the shell can cope with it
  1273. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1274. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1275. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1276. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1277. + then
  1278. + break
  1279. + fi
  1280. + done
  1281. + fi
  1282. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1283. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1284. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1285. - :
  1286. -else
  1287. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1288. - # backslashes. This makes it impossible to quote backslashes using
  1289. - # echo "$something" | sed 's/\\/\\\\/g'
  1290. - #
  1291. - # So, first we look for a working echo in the user's PATH.
  1292. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1293. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1294. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1295. + :
  1296. + else
  1297. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1298. + # backslashes. This makes it impossible to quote backslashes using
  1299. + # echo "$something" | sed 's/\\/\\\\/g'
  1300. + #
  1301. + # So, first we look for a working echo in the user's PATH.
  1302. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1303. - for dir in $PATH /usr/ucb; do
  1304. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1305. + for dir in $PATH /usr/ucb; do
  1306. + IFS="$lt_save_ifs"
  1307. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1308. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1309. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1310. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1311. + ECHO="$dir/echo"
  1312. + break
  1313. + fi
  1314. + done
  1315. IFS="$lt_save_ifs"
  1316. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1317. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1318. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1319. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1320. - echo="$dir/echo"
  1321. - break
  1322. - fi
  1323. - done
  1324. - IFS="$lt_save_ifs"
  1325. - if test "X$echo" = Xecho; then
  1326. - # We didn't find a better echo, so look for alternatives.
  1327. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1328. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1329. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1330. - # This shell has a builtin print -r that does the trick.
  1331. - echo='print -r'
  1332. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1333. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1334. - # If we have ksh, try running configure again with it.
  1335. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1336. - export ORIGINAL_CONFIG_SHELL
  1337. - CONFIG_SHELL=/bin/ksh
  1338. - export CONFIG_SHELL
  1339. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1340. - else
  1341. - # Try using printf.
  1342. - echo='printf %s\n'
  1343. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1344. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1345. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1346. - # Cool, printf works
  1347. - :
  1348. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1349. - test "X$echo_testing_string" = 'X\t' &&
  1350. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1351. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1352. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1353. - export CONFIG_SHELL
  1354. - SHELL="$CONFIG_SHELL"
  1355. - export SHELL
  1356. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1357. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1358. - test "X$echo_testing_string" = 'X\t' &&
  1359. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1360. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1361. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1362. + if test "X$ECHO" = Xecho; then
  1363. + # We didn't find a better echo, so look for alternatives.
  1364. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1365. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1366. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1367. + # This shell has a builtin print -r that does the trick.
  1368. + ECHO='print -r'
  1369. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1370. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1371. + # If we have ksh, try running configure again with it.
  1372. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1373. + export ORIGINAL_CONFIG_SHELL
  1374. + CONFIG_SHELL=/bin/ksh
  1375. + export CONFIG_SHELL
  1376. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1377. else
  1378. - # maybe with a smaller string...
  1379. - prev=:
  1380. + # Try using printf.
  1381. + ECHO='printf %s\n'
  1382. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1383. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1384. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1385. + # Cool, printf works
  1386. + :
  1387. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1388. + test "X$echo_testing_string" = 'X\t' &&
  1389. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1390. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1391. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1392. + export CONFIG_SHELL
  1393. + SHELL="$CONFIG_SHELL"
  1394. + export SHELL
  1395. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1396. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1397. + test "X$echo_testing_string" = 'X\t' &&
  1398. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1399. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1400. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1401. + else
  1402. + # maybe with a smaller string...
  1403. + prev=:
  1404. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1405. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1406. - then
  1407. - break
  1408. - fi
  1409. - prev="$cmd"
  1410. - done
  1411. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1412. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1413. + then
  1414. + break
  1415. + fi
  1416. + prev="$cmd"
  1417. + done
  1418. - if test "$prev" != 'sed 50q "[$]0"'; then
  1419. - echo_test_string=`eval $prev`
  1420. - export echo_test_string
  1421. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1422. - else
  1423. - # Oops. We lost completely, so just stick with echo.
  1424. - echo=echo
  1425. - fi
  1426. + if test "$prev" != 'sed 50q "[$]0"'; then
  1427. + echo_test_string=`eval $prev`
  1428. + export echo_test_string
  1429. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1430. + else
  1431. + # Oops. We lost completely, so just stick with echo.
  1432. + ECHO=echo
  1433. + fi
  1434. + fi
  1435. fi
  1436. fi
  1437. fi
  1438. fi
  1439. -fi
  1440. # Copy echo and quote the copy suitably for passing to libtool from
  1441. # the Makefile, instead of quoting the original, which is used later.
  1442. -ECHO=$echo
  1443. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1444. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1445. +lt_ECHO=$ECHO
  1446. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1447. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1448. fi
  1449. -AC_SUBST(ECHO)
  1450. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1451. +AC_SUBST(lt_ECHO)
  1452. +])
  1453. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1454. +_LT_DECL([], [ECHO], [1],
  1455. + [An echo program that does not interpret backslashes])
  1456. +])# _LT_PROG_ECHO_BACKSLASH
  1457. -# _LT_AC_LOCK
  1458. -# -----------
  1459. -AC_DEFUN([_LT_AC_LOCK],
  1460. +# _LT_ENABLE_LOCK
  1461. +# ---------------
  1462. +m4_defun([_LT_ENABLE_LOCK],
  1463. [AC_ARG_ENABLE([libtool-lock],
  1464. - [AC_HELP_STRING([--disable-libtool-lock],
  1465. - [avoid locking (might break parallel builds)])])
  1466. + [AS_HELP_STRING([--disable-libtool-lock],
  1467. + [avoid locking (might break parallel builds)])])
  1468. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1469. # Some flags need to be propagated to the compiler or linker for good
  1470. @@ -573,12 +1239,12 @@
  1471. echo 'int i;' > conftest.$ac_ext
  1472. if AC_TRY_EVAL(ac_compile); then
  1473. case `/usr/bin/file conftest.$ac_objext` in
  1474. - *ELF-32*)
  1475. - HPUX_IA64_MODE="32"
  1476. - ;;
  1477. - *ELF-64*)
  1478. - HPUX_IA64_MODE="64"
  1479. - ;;
  1480. + *ELF-32*)
  1481. + HPUX_IA64_MODE="32"
  1482. + ;;
  1483. + *ELF-64*)
  1484. + HPUX_IA64_MODE="64"
  1485. + ;;
  1486. esac
  1487. fi
  1488. rm -rf conftest*
  1489. @@ -587,79 +1253,79 @@
  1490. # Find out which ABI we are using.
  1491. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1492. if AC_TRY_EVAL(ac_compile); then
  1493. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1494. - case `/usr/bin/file conftest.$ac_objext` in
  1495. - *32-bit*)
  1496. - LD="${LD-ld} -melf32bsmip"
  1497. - ;;
  1498. - *N32*)
  1499. - LD="${LD-ld} -melf32bmipn32"
  1500. - ;;
  1501. - *64-bit*)
  1502. - LD="${LD-ld} -melf64bmip"
  1503. - ;;
  1504. - esac
  1505. - else
  1506. - case `/usr/bin/file conftest.$ac_objext` in
  1507. - *32-bit*)
  1508. - LD="${LD-ld} -32"
  1509. - ;;
  1510. - *N32*)
  1511. - LD="${LD-ld} -n32"
  1512. - ;;
  1513. - *64-bit*)
  1514. - LD="${LD-ld} -64"
  1515. - ;;
  1516. - esac
  1517. - fi
  1518. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1519. + case `/usr/bin/file conftest.$ac_objext` in
  1520. + *32-bit*)
  1521. + LD="${LD-ld} -melf32bsmip"
  1522. + ;;
  1523. + *N32*)
  1524. + LD="${LD-ld} -melf32bmipn32"
  1525. + ;;
  1526. + *64-bit*)
  1527. + LD="${LD-ld} -melf64bmip"
  1528. + ;;
  1529. + esac
  1530. + else
  1531. + case `/usr/bin/file conftest.$ac_objext` in
  1532. + *32-bit*)
  1533. + LD="${LD-ld} -32"
  1534. + ;;
  1535. + *N32*)
  1536. + LD="${LD-ld} -n32"
  1537. + ;;
  1538. + *64-bit*)
  1539. + LD="${LD-ld} -64"
  1540. + ;;
  1541. + esac
  1542. + fi
  1543. fi
  1544. rm -rf conftest*
  1545. ;;
  1546. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1547. -s390*-*linux*|sparc*-*linux*)
  1548. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1549. # Find out which ABI we are using.
  1550. echo 'int i;' > conftest.$ac_ext
  1551. if AC_TRY_EVAL(ac_compile); then
  1552. case `/usr/bin/file conftest.o` in
  1553. - *32-bit*)
  1554. - case $host in
  1555. - x86_64-*kfreebsd*-gnu)
  1556. - LD="${LD-ld} -m elf_i386_fbsd"
  1557. - ;;
  1558. - x86_64-*linux*)
  1559. - LD="${LD-ld} -m elf_i386"
  1560. - ;;
  1561. - ppc64-*linux*|powerpc64-*linux*)
  1562. - LD="${LD-ld} -m elf32ppclinux"
  1563. - ;;
  1564. - s390x-*linux*)
  1565. - LD="${LD-ld} -m elf_s390"
  1566. - ;;
  1567. - sparc64-*linux*)
  1568. - LD="${LD-ld} -m elf32_sparc"
  1569. - ;;
  1570. - esac
  1571. - ;;
  1572. - *64-bit*)
  1573. - case $host in
  1574. - x86_64-*kfreebsd*-gnu)
  1575. - LD="${LD-ld} -m elf_x86_64_fbsd"
  1576. - ;;
  1577. - x86_64-*linux*)
  1578. - LD="${LD-ld} -m elf_x86_64"
  1579. - ;;
  1580. - ppc*-*linux*|powerpc*-*linux*)
  1581. - LD="${LD-ld} -m elf64ppc"
  1582. - ;;
  1583. - s390*-*linux*)
  1584. - LD="${LD-ld} -m elf64_s390"
  1585. - ;;
  1586. - sparc*-*linux*)
  1587. - LD="${LD-ld} -m elf64_sparc"
  1588. - ;;
  1589. - esac
  1590. - ;;
  1591. + *32-bit*)
  1592. + case $host in
  1593. + x86_64-*kfreebsd*-gnu)
  1594. + LD="${LD-ld} -m elf_i386_fbsd"
  1595. + ;;
  1596. + x86_64-*linux*)
  1597. + LD="${LD-ld} -m elf_i386"
  1598. + ;;
  1599. + ppc64-*linux*|powerpc64-*linux*)
  1600. + LD="${LD-ld} -m elf32ppclinux"
  1601. + ;;
  1602. + s390x-*linux*)
  1603. + LD="${LD-ld} -m elf_s390"
  1604. + ;;
  1605. + sparc64-*linux*)
  1606. + LD="${LD-ld} -m elf32_sparc"
  1607. + ;;
  1608. + esac
  1609. + ;;
  1610. + *64-bit*)
  1611. + case $host in
  1612. + x86_64-*kfreebsd*-gnu)
  1613. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1614. + ;;
  1615. + x86_64-*linux*)
  1616. + LD="${LD-ld} -m elf_x86_64"
  1617. + ;;
  1618. + ppc*-*linux*|powerpc*-*linux*)
  1619. + LD="${LD-ld} -m elf64ppc"
  1620. + ;;
  1621. + s390*-*linux*|s390*-*tpf*)
  1622. + LD="${LD-ld} -m elf64_s390"
  1623. + ;;
  1624. + sparc*-*linux*)
  1625. + LD="${LD-ld} -m elf64_sparc"
  1626. + ;;
  1627. + esac
  1628. + ;;
  1629. esac
  1630. fi
  1631. rm -rf conftest*
  1632. @@ -671,7 +1337,7 @@
  1633. CFLAGS="$CFLAGS -belf"
  1634. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1635. [AC_LANG_PUSH(C)
  1636. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1637. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1638. AC_LANG_POP])
  1639. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1640. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1641. @@ -687,7 +1353,7 @@
  1642. case $lt_cv_prog_gnu_ld in
  1643. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1644. *)
  1645. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1646. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1647. LD="${LD-ld} -64"
  1648. fi
  1649. ;;
  1650. @@ -697,30 +1363,63 @@
  1651. fi
  1652. rm -rf conftest*
  1653. ;;
  1654. -
  1655. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1656. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1657. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1658. - AC_CHECK_TOOL(AS, as, false)
  1659. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1660. - ;;
  1661. - ])
  1662. esac
  1663. need_locks="$enable_libtool_lock"
  1664. +])# _LT_ENABLE_LOCK
  1665. +
  1666. +
  1667. +# _LT_CMD_OLD_ARCHIVE
  1668. +# -------------------
  1669. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1670. +[AC_CHECK_TOOL(AR, ar, false)
  1671. +test -z "$AR" && AR=ar
  1672. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1673. +_LT_DECL([], [AR], [1], [The archiver])
  1674. +_LT_DECL([], [AR_FLAGS], [1])
  1675. +
  1676. +AC_CHECK_TOOL(STRIP, strip, :)
  1677. +test -z "$STRIP" && STRIP=:
  1678. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1679. +
  1680. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1681. +test -z "$RANLIB" && RANLIB=:
  1682. +_LT_DECL([], [RANLIB], [1],
  1683. + [Commands used to install an old-style archive])
  1684. +
  1685. +# Determine commands to create old-style static archives.
  1686. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1687. +old_postinstall_cmds='chmod 644 $oldlib'
  1688. +old_postuninstall_cmds=
  1689. -])# _LT_AC_LOCK
  1690. +if test -n "$RANLIB"; then
  1691. + case $host_os in
  1692. + openbsd*)
  1693. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1694. + ;;
  1695. + *)
  1696. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1697. + ;;
  1698. + esac
  1699. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1700. +fi
  1701. +_LT_DECL([], [old_postinstall_cmds], [2])
  1702. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1703. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1704. + [Commands used to build an old-style archive])
  1705. +])# _LT_CMD_OLD_ARCHIVE
  1706. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1707. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1708. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1709. # ----------------------------------------------------------------
  1710. # Check whether the given compiler option works
  1711. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1712. -[AC_REQUIRE([LT_AC_PROG_SED])
  1713. +AC_DEFUN([_LT_COMPILER_OPTION],
  1714. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1715. +m4_require([_LT_DECL_SED])dnl
  1716. AC_CACHE_CHECK([$1], [$2],
  1717. [$2=no
  1718. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1719. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1720. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1721. lt_compiler_flag="$3"
  1722. # Insert the option either (1) after the last *FLAGS variable, or
  1723. @@ -740,29 +1439,35 @@
  1724. if (exit $ac_status) && test -s "$ac_outfile"; then
  1725. # The compiler can only warn and ignore the option if not recognized
  1726. # So say no if there are warnings other than the usual output.
  1727. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1728. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1729. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1730. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1731. $2=yes
  1732. fi
  1733. fi
  1734. - $rm conftest*
  1735. + $RM conftest*
  1736. ])
  1737. if test x"[$]$2" = xyes; then
  1738. - ifelse([$5], , :, [$5])
  1739. + m4_if([$5], , :, [$5])
  1740. else
  1741. - ifelse([$6], , :, [$6])
  1742. + m4_if([$6], , :, [$6])
  1743. fi
  1744. -])# AC_LIBTOOL_COMPILER_OPTION
  1745. +])# _LT_COMPILER_OPTION
  1746. -
  1747. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1748. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1749. -# ------------------------------------------------------------
  1750. -# Check whether the given compiler option works
  1751. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1752. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1753. +# Old name:
  1754. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1755. +dnl aclocal-1.4 backwards compatibility:
  1756. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1757. +
  1758. +
  1759. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1760. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1761. +# ----------------------------------------------------
  1762. +# Check whether the given linker option works
  1763. +AC_DEFUN([_LT_LINKER_OPTION],
  1764. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1765. +m4_require([_LT_DECL_SED])dnl
  1766. AC_CACHE_CHECK([$1], [$2],
  1767. [$2=no
  1768. save_LDFLAGS="$LDFLAGS"
  1769. @@ -774,7 +1479,7 @@
  1770. if test -s conftest.err; then
  1771. # Append any errors to the config.log.
  1772. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1773. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1774. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1775. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1776. if diff conftest.exp conftest.er2 >/dev/null; then
  1777. $2=yes
  1778. @@ -783,22 +1488,28 @@
  1779. $2=yes
  1780. fi
  1781. fi
  1782. - $rm -r conftest*
  1783. + $RM -r conftest*
  1784. LDFLAGS="$save_LDFLAGS"
  1785. ])
  1786. if test x"[$]$2" = xyes; then
  1787. - ifelse([$4], , :, [$4])
  1788. + m4_if([$4], , :, [$4])
  1789. else
  1790. - ifelse([$5], , :, [$5])
  1791. + m4_if([$5], , :, [$5])
  1792. fi
  1793. -])# AC_LIBTOOL_LINKER_OPTION
  1794. +])# _LT_LINKER_OPTION
  1795. +# Old name:
  1796. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1797. +dnl aclocal-1.4 backwards compatibility:
  1798. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1799. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1800. -# --------------------------
  1801. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1802. -[# find the maximum length of command line arguments
  1803. +
  1804. +# LT_CMD_MAX_LEN
  1805. +#---------------
  1806. +AC_DEFUN([LT_CMD_MAX_LEN],
  1807. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1808. +# find the maximum length of command line arguments
  1809. AC_MSG_CHECKING([the maximum length of command line arguments])
  1810. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1811. i=0
  1812. @@ -820,7 +1531,7 @@
  1813. lt_cv_sys_max_cmd_len=-1;
  1814. ;;
  1815. - cygwin* | mingw*)
  1816. + cygwin* | mingw* | cegcc*)
  1817. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1818. # about 5 minutes as the teststring grows exponentially.
  1819. # Worse, since 9x/ME are not pre-emptively multitasking,
  1820. @@ -875,7 +1586,7 @@
  1821. sysv5* | sco5v6* | sysv4.2uw2*)
  1822. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1823. if test -n "$kargmax"; then
  1824. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1825. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1826. else
  1827. lt_cv_sys_max_cmd_len=32768
  1828. fi
  1829. @@ -886,20 +1597,28 @@
  1830. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1831. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1832. else
  1833. + # Make teststring a little bigger before we do anything with it.
  1834. + # a 1K string should be a reasonable start.
  1835. + for i in 1 2 3 4 5 6 7 8 ; do
  1836. + teststring=$teststring$teststring
  1837. + done
  1838. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1839. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1840. - = "XX$teststring") >/dev/null 2>&1 &&
  1841. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1842. - lt_cv_sys_max_cmd_len=$new_result &&
  1843. + # If test is not a shell built-in, we'll probably end up computing a
  1844. + # maximum length that is only half of the actual maximum length, but
  1845. + # we can't tell.
  1846. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1847. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1848. test $i != 17 # 1/2 MB should be enough
  1849. do
  1850. i=`expr $i + 1`
  1851. teststring=$teststring$teststring
  1852. done
  1853. + # Only check the string length outside the loop.
  1854. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1855. teststring=
  1856. - # Add a significant safety factor because C++ compilers can tack on massive
  1857. - # amounts of additional arguments before passing them to the linker.
  1858. - # It appears as though 1/2 is a usable value.
  1859. + # Add a significant safety factor because C++ compilers can tack on
  1860. + # massive amounts of additional arguments before passing them to the
  1861. + # linker. It appears as though 1/2 is a usable value.
  1862. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1863. fi
  1864. ;;
  1865. @@ -910,27 +1629,35 @@
  1866. else
  1867. AC_MSG_RESULT(none)
  1868. fi
  1869. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1870. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1871. +_LT_DECL([], [max_cmd_len], [0],
  1872. + [What is the maximum length of a command?])
  1873. +])# LT_CMD_MAX_LEN
  1874. +# Old name:
  1875. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1876. +dnl aclocal-1.4 backwards compatibility:
  1877. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1878. -# _LT_AC_CHECK_DLFCN
  1879. -# ------------------
  1880. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1881. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1882. -])# _LT_AC_CHECK_DLFCN
  1883. +
  1884. +# _LT_HEADER_DLFCN
  1885. +# ----------------
  1886. +m4_defun([_LT_HEADER_DLFCN],
  1887. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1888. +])# _LT_HEADER_DLFCN
  1889. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1890. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1891. -# ---------------------------------------------------------------------
  1892. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1893. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1894. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1895. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1896. +# ----------------------------------------------------------------
  1897. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1898. +[m4_require([_LT_HEADER_DLFCN])dnl
  1899. if test "$cross_compiling" = yes; then :
  1900. [$4]
  1901. else
  1902. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1903. lt_status=$lt_dlunknown
  1904. - cat > conftest.$ac_ext <<EOF
  1905. + cat > conftest.$ac_ext <<_LT_EOF
  1906. [#line __oline__ "configure"
  1907. #include "confdefs.h"
  1908. @@ -972,10 +1699,6 @@
  1909. # endif
  1910. #endif
  1911. -#ifdef __cplusplus
  1912. -extern "C" void exit (int);
  1913. -#endif
  1914. -
  1915. void fnord() { int i=42;}
  1916. int main ()
  1917. {
  1918. @@ -991,9 +1714,9 @@
  1919. else
  1920. puts (dlerror ());
  1921. - exit (status);
  1922. + return status;
  1923. }]
  1924. -EOF
  1925. +_LT_EOF
  1926. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1927. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1928. lt_status=$?
  1929. @@ -1008,13 +1731,13 @@
  1930. fi
  1931. fi
  1932. rm -fr conftest*
  1933. -])# _LT_AC_TRY_DLOPEN_SELF
  1934. +])# _LT_TRY_DLOPEN_SELF
  1935. -# AC_LIBTOOL_DLOPEN_SELF
  1936. -# ----------------------
  1937. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1938. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1939. +# LT_SYS_DLOPEN_SELF
  1940. +# ------------------
  1941. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1942. +[m4_require([_LT_HEADER_DLFCN])dnl
  1943. if test "x$enable_dlopen" != xyes; then
  1944. enable_dlopen=unknown
  1945. enable_dlopen_self=unknown
  1946. @@ -1030,15 +1753,15 @@
  1947. lt_cv_dlopen_self=yes
  1948. ;;
  1949. - mingw* | pw32*)
  1950. + mingw* | pw32* | cegcc*)
  1951. lt_cv_dlopen="LoadLibrary"
  1952. lt_cv_dlopen_libs=
  1953. - ;;
  1954. + ;;
  1955. cygwin*)
  1956. lt_cv_dlopen="dlopen"
  1957. lt_cv_dlopen_libs=
  1958. - ;;
  1959. + ;;
  1960. darwin*)
  1961. # if libdl is installed we need to link against it
  1962. @@ -1048,7 +1771,7 @@
  1963. lt_cv_dlopen_libs=
  1964. lt_cv_dlopen_self=yes
  1965. ])
  1966. - ;;
  1967. + ;;
  1968. *)
  1969. AC_CHECK_FUNC([shl_load],
  1970. @@ -1090,7 +1813,7 @@
  1971. AC_CACHE_CHECK([whether a program can dlopen itself],
  1972. lt_cv_dlopen_self, [dnl
  1973. - _LT_AC_TRY_DLOPEN_SELF(
  1974. + _LT_TRY_DLOPEN_SELF(
  1975. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1976. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1977. ])
  1978. @@ -1098,8 +1821,8 @@
  1979. if test "x$lt_cv_dlopen_self" = xyes; then
  1980. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1981. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1982. - lt_cv_dlopen_self_static, [dnl
  1983. - _LT_AC_TRY_DLOPEN_SELF(
  1984. + lt_cv_dlopen_self_static, [dnl
  1985. + _LT_TRY_DLOPEN_SELF(
  1986. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1987. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1988. ])
  1989. @@ -1121,19 +1844,32 @@
  1990. *) enable_dlopen_self_static=unknown ;;
  1991. esac
  1992. fi
  1993. -])# AC_LIBTOOL_DLOPEN_SELF
  1994. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1995. + [Whether dlopen is supported])
  1996. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1997. + [Whether dlopen of programs is supported])
  1998. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1999. + [Whether dlopen of statically linked programs is supported])
  2000. +])# LT_SYS_DLOPEN_SELF
  2001. +
  2002. +# Old name:
  2003. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2004. +dnl aclocal-1.4 backwards compatibility:
  2005. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2006. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  2007. -# ---------------------------------
  2008. -# Check to see if options -c and -o are simultaneously supported by compiler
  2009. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2010. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2011. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2012. +# _LT_COMPILER_C_O([TAGNAME])
  2013. +# ---------------------------
  2014. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2015. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2016. +m4_defun([_LT_COMPILER_C_O],
  2017. +[m4_require([_LT_DECL_SED])dnl
  2018. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2019. +m4_require([_LT_TAG_COMPILER])dnl
  2020. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2021. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2022. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2023. - $rm -r conftest 2>/dev/null
  2024. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2025. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2026. + $RM -r conftest 2>/dev/null
  2027. mkdir conftest
  2028. cd conftest
  2029. mkdir out
  2030. @@ -1157,37 +1893,41 @@
  2031. then
  2032. # The compiler can only warn and ignore the option if not recognized
  2033. # So say no if there are warnings
  2034. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2035. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2036. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2037. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2038. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2039. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2040. fi
  2041. fi
  2042. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2043. - $rm conftest*
  2044. + $RM conftest*
  2045. # SGI C++ compiler will create directory out/ii_files/ for
  2046. # template instantiation
  2047. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2048. - $rm out/* && rmdir out
  2049. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2050. + $RM out/* && rmdir out
  2051. cd ..
  2052. - rmdir conftest
  2053. - $rm conftest*
  2054. + $RM -r conftest
  2055. + $RM conftest*
  2056. ])
  2057. -])# AC_LIBTOOL_PROG_CC_C_O
  2058. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2059. + [Does compiler simultaneously support -c and -o options?])
  2060. +])# _LT_COMPILER_C_O
  2061. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2062. -# -----------------------------------------
  2063. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2064. +# ----------------------------------
  2065. # Check to see if we can do hard links to lock some files if needed
  2066. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2067. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2068. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2069. +[m4_require([_LT_ENABLE_LOCK])dnl
  2070. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2071. +_LT_COMPILER_C_O([$1])
  2072. hard_links="nottested"
  2073. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2074. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2075. # do not overwrite the value of need_locks provided by the user
  2076. AC_MSG_CHECKING([if we can lock with hard links])
  2077. hard_links=yes
  2078. - $rm conftest*
  2079. + $RM conftest*
  2080. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2081. touch conftest.a
  2082. ln conftest.a conftest.b 2>&5 || hard_links=no
  2083. @@ -1200,12 +1940,13 @@
  2084. else
  2085. need_locks=no
  2086. fi
  2087. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2088. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2089. +])# _LT_COMPILER_FILE_LOCKS
  2090. -# AC_LIBTOOL_OBJDIR
  2091. -# -----------------
  2092. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2093. +# _LT_CHECK_OBJDIR
  2094. +# ----------------
  2095. +m4_defun([_LT_CHECK_OBJDIR],
  2096. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2097. [rm -f .libs 2>/dev/null
  2098. mkdir .libs 2>/dev/null
  2099. @@ -1217,40 +1958,46 @@
  2100. fi
  2101. rmdir .libs 2>/dev/null])
  2102. objdir=$lt_cv_objdir
  2103. -])# AC_LIBTOOL_OBJDIR
  2104. +_LT_DECL([], [objdir], [0],
  2105. + [The name of the directory that contains temporary libtool files])dnl
  2106. +m4_pattern_allow([LT_OBJDIR])dnl
  2107. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2108. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2109. +])# _LT_CHECK_OBJDIR
  2110. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2111. -# ----------------------------------------------
  2112. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2113. +# --------------------------------------
  2114. # Check hardcoding attributes.
  2115. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2116. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2117. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2118. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2119. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2120. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2121. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2122. +_LT_TAGVAR(hardcode_action, $1)=
  2123. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2124. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2125. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2126. - # We can hardcode non-existant directories.
  2127. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2128. + # We can hardcode non-existent directories.
  2129. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2130. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2131. # have to relink, otherwise we might link with an installed library
  2132. # when we should be linking with a yet-to-be-installed one
  2133. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2134. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2135. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2136. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2137. # Linking always hardcodes the temporary library directory.
  2138. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2139. + _LT_TAGVAR(hardcode_action, $1)=relink
  2140. else
  2141. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2142. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2143. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2144. fi
  2145. else
  2146. # We cannot hardcode anything, or else we can only hardcode existing
  2147. # directories.
  2148. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2149. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2150. fi
  2151. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2152. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2153. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2154. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2155. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2156. # Fast installation is not supported
  2157. enable_fast_install=no
  2158. elif test "$shlibpath_overrides_runpath" = yes ||
  2159. @@ -1258,73 +2005,70 @@
  2160. # Fast installation is not necessary
  2161. enable_fast_install=needless
  2162. fi
  2163. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2164. +_LT_TAGDECL([], [hardcode_action], [0],
  2165. + [How to hardcode a shared library path into an executable])
  2166. +])# _LT_LINKER_HARDCODE_LIBPATH
  2167. -# AC_LIBTOOL_SYS_LIB_STRIP
  2168. -# ------------------------
  2169. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2170. -[striplib=
  2171. +# _LT_CMD_STRIPLIB
  2172. +# ----------------
  2173. +m4_defun([_LT_CMD_STRIPLIB],
  2174. +[m4_require([_LT_DECL_EGREP])
  2175. +striplib=
  2176. old_striplib=
  2177. AC_MSG_CHECKING([whether stripping libraries is possible])
  2178. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2179. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2180. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2181. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2182. AC_MSG_RESULT([yes])
  2183. else
  2184. # FIXME - insert some real tests, host_os isn't really good enough
  2185. case $host_os in
  2186. - darwin*)
  2187. - if test -n "$STRIP" ; then
  2188. - striplib="$STRIP -x"
  2189. - old_striplib="$STRIP -S"
  2190. - AC_MSG_RESULT([yes])
  2191. - else
  2192. - AC_MSG_RESULT([no])
  2193. -fi
  2194. - ;;
  2195. - *)
  2196. - AC_MSG_RESULT([no])
  2197. + darwin*)
  2198. + if test -n "$STRIP" ; then
  2199. + striplib="$STRIP -x"
  2200. + old_striplib="$STRIP -S"
  2201. + AC_MSG_RESULT([yes])
  2202. + else
  2203. + AC_MSG_RESULT([no])
  2204. + fi
  2205. + ;;
  2206. + *)
  2207. + AC_MSG_RESULT([no])
  2208. ;;
  2209. esac
  2210. fi
  2211. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2212. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2213. +_LT_DECL([], [striplib], [1])
  2214. +])# _LT_CMD_STRIPLIB
  2215. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2216. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2217. # -----------------------------
  2218. # PORTME Fill in your ld.so characteristics
  2219. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2220. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2221. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2222. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2223. +m4_require([_LT_DECL_EGREP])dnl
  2224. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2225. +m4_require([_LT_DECL_OBJDUMP])dnl
  2226. +m4_require([_LT_DECL_SED])dnl
  2227. AC_MSG_CHECKING([dynamic linker characteristics])
  2228. -library_names_spec=
  2229. -libname_spec='lib$name'
  2230. -soname_spec=
  2231. -shrext_cmds=".so"
  2232. -postinstall_cmds=
  2233. -postuninstall_cmds=
  2234. -finish_cmds=
  2235. -finish_eval=
  2236. -shlibpath_var=
  2237. -shlibpath_overrides_runpath=unknown
  2238. -version_type=none
  2239. -dynamic_linker="$host_os ld.so"
  2240. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2241. -m4_if($1,[],[
  2242. +m4_if([$1],
  2243. + [], [
  2244. if test "$GCC" = yes; then
  2245. case $host_os in
  2246. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2247. *) lt_awk_arg="/^libraries:/" ;;
  2248. esac
  2249. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2250. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  2251. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2252. # if the path contains ";" then we assume it to be the separator
  2253. # otherwise default to the standard path separator (i.e. ":") - it is
  2254. # assumed that no part of a normal pathname contains ";" but that should
  2255. # okay in the real world where ";" in dirpaths is itself problematic.
  2256. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2257. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2258. else
  2259. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2260. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2261. fi
  2262. # Ok, now we have the path, separated by spaces, we can step through it
  2263. # and add multilib dir if necessary.
  2264. @@ -1338,7 +2082,7 @@
  2265. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2266. fi
  2267. done
  2268. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  2269. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2270. BEGIN {RS=" "; FS="/|\n";} {
  2271. lt_foo="";
  2272. lt_count=0;
  2273. @@ -1358,10 +2102,23 @@
  2274. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2275. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2276. }'`
  2277. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  2278. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2279. else
  2280. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2281. fi])
  2282. +library_names_spec=
  2283. +libname_spec='lib$name'
  2284. +soname_spec=
  2285. +shrext_cmds=".so"
  2286. +postinstall_cmds=
  2287. +postuninstall_cmds=
  2288. +finish_cmds=
  2289. +finish_eval=
  2290. +shlibpath_var=
  2291. +shlibpath_overrides_runpath=unknown
  2292. +version_type=none
  2293. +dynamic_linker="$host_os ld.so"
  2294. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2295. need_lib_prefix=unknown
  2296. hardcode_into_libs=no
  2297. @@ -1398,7 +2155,7 @@
  2298. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2299. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2300. echo ' yes '
  2301. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2302. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2303. :
  2304. else
  2305. can_build_shared=no
  2306. @@ -1424,9 +2181,18 @@
  2307. ;;
  2308. amigaos*)
  2309. - library_names_spec='$libname.ixlibrary $libname.a'
  2310. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2311. - 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'
  2312. + case $host_cpu in
  2313. + powerpc)
  2314. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2315. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2316. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2317. + ;;
  2318. + m68k)
  2319. + library_names_spec='$libname.ixlibrary $libname.a'
  2320. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2321. + 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'
  2322. + ;;
  2323. + esac
  2324. ;;
  2325. beos*)
  2326. @@ -1449,25 +2215,28 @@
  2327. # libtool to hard-code these into programs
  2328. ;;
  2329. -cygwin* | mingw* | pw32*)
  2330. +cygwin* | mingw* | pw32* | cegcc*)
  2331. version_type=windows
  2332. shrext_cmds=".dll"
  2333. need_version=no
  2334. need_lib_prefix=no
  2335. case $GCC,$host_os in
  2336. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2337. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2338. library_names_spec='$libname.dll.a'
  2339. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2340. postinstall_cmds='base_file=`basename \${file}`~
  2341. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2342. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2343. dldir=$destdir/`dirname \$dlpath`~
  2344. test -d \$dldir || mkdir -p \$dldir~
  2345. $install_prog $dir/$dlname \$dldir/$dlname~
  2346. - chmod a+x \$dldir/$dlname'
  2347. + chmod a+x \$dldir/$dlname~
  2348. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2349. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2350. + fi'
  2351. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2352. dlpath=$dir/\$dldll~
  2353. - $rm \$dlpath'
  2354. + $RM \$dlpath'
  2355. shlibpath_overrides_runpath=yes
  2356. case $host_os in
  2357. @@ -1476,20 +2245,20 @@
  2358. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2359. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2360. ;;
  2361. - mingw*)
  2362. + mingw* | cegcc*)
  2363. # MinGW DLLs use traditional 'lib' prefix
  2364. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2365. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2366. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2367. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2368. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2369. # It is most probably a Windows format PATH printed by
  2370. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2371. # path with ; separators, and with drive letters. We can handle the
  2372. # drive letters (cygwin fileutils understands them), so leave them,
  2373. # especially as we might pass files found there to a mingw objdump,
  2374. # which wouldn't understand a cygwinified path. Ahh.
  2375. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2376. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2377. else
  2378. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2379. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2380. fi
  2381. ;;
  2382. pw32*)
  2383. @@ -1513,13 +2282,13 @@
  2384. version_type=darwin
  2385. need_lib_prefix=no
  2386. need_version=no
  2387. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2388. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2389. soname_spec='${libname}${release}${major}$shared_ext'
  2390. shlibpath_overrides_runpath=yes
  2391. shlibpath_var=DYLD_LIBRARY_PATH
  2392. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2393. - m4_if([$1], [],[
  2394. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2395. +m4_if([$1], [],[
  2396. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2397. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2398. ;;
  2399. @@ -1612,18 +2381,18 @@
  2400. fi
  2401. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2402. ;;
  2403. - hppa*64*)
  2404. - shrext_cmds='.sl'
  2405. - hardcode_into_libs=yes
  2406. - dynamic_linker="$host_os dld.sl"
  2407. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2408. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2409. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2410. - soname_spec='${libname}${release}${shared_ext}$major'
  2411. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2412. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2413. - ;;
  2414. - *)
  2415. + hppa*64*)
  2416. + shrext_cmds='.sl'
  2417. + hardcode_into_libs=yes
  2418. + dynamic_linker="$host_os dld.sl"
  2419. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2420. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2421. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2422. + soname_spec='${libname}${release}${shared_ext}$major'
  2423. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2424. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2425. + ;;
  2426. + *)
  2427. shrext_cmds='.sl'
  2428. dynamic_linker="$host_os dld.sl"
  2429. shlibpath_var=SHLIB_PATH
  2430. @@ -1691,7 +2460,7 @@
  2431. ;;
  2432. # This must be Linux ELF.
  2433. -linux* | k*bsd*-gnu)
  2434. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2435. version_type=linux
  2436. need_lib_prefix=no
  2437. need_version=no
  2438. @@ -1700,6 +2469,17 @@
  2439. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2440. shlibpath_var=LD_LIBRARY_PATH
  2441. shlibpath_overrides_runpath=no
  2442. + # Some binutils ld are patched to set DT_RUNPATH
  2443. + save_LDFLAGS=$LDFLAGS
  2444. + save_libdir=$libdir
  2445. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2446. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2447. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2448. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2449. + [shlibpath_overrides_runpath=yes])])
  2450. + LDFLAGS=$save_LDFLAGS
  2451. + libdir=$save_libdir
  2452. +
  2453. # This implies no fast_install, which is unacceptable.
  2454. # Some rework will be needed to allow for fast_install
  2455. # before this can be enabled.
  2456. @@ -1707,7 +2487,7 @@
  2457. # Append ld.so.conf contents to the search path
  2458. if test -f /etc/ld.so.conf; then
  2459. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2460. + 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' ' '`
  2461. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2462. fi
  2463. @@ -1720,11 +2500,23 @@
  2464. dynamic_linker='GNU/Linux ld.so'
  2465. ;;
  2466. +netbsdelf*-gnu)
  2467. + version_type=linux
  2468. + need_lib_prefix=no
  2469. + need_version=no
  2470. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2471. + soname_spec='${libname}${release}${shared_ext}$major'
  2472. + shlibpath_var=LD_LIBRARY_PATH
  2473. + shlibpath_overrides_runpath=no
  2474. + hardcode_into_libs=yes
  2475. + dynamic_linker='NetBSD ld.elf_so'
  2476. + ;;
  2477. +
  2478. netbsd*)
  2479. version_type=sunos
  2480. need_lib_prefix=no
  2481. need_version=no
  2482. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2483. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2485. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2486. dynamic_linker='NetBSD (a.out) ld.so'
  2487. @@ -1745,14 +2537,16 @@
  2488. shlibpath_overrides_runpath=yes
  2489. ;;
  2490. -nto-qnx*)
  2491. - version_type=linux
  2492. +*nto* | *qnx*)
  2493. + version_type=qnx
  2494. need_lib_prefix=no
  2495. need_version=no
  2496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2497. soname_spec='${libname}${release}${shared_ext}$major'
  2498. shlibpath_var=LD_LIBRARY_PATH
  2499. - shlibpath_overrides_runpath=yes
  2500. + shlibpath_overrides_runpath=no
  2501. + hardcode_into_libs=yes
  2502. + dynamic_linker='ldqnx.so'
  2503. ;;
  2504. openbsd*)
  2505. @@ -1761,13 +2555,13 @@
  2506. need_lib_prefix=no
  2507. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2508. case $host_os in
  2509. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2510. - *) need_version=no ;;
  2511. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2512. + *) need_version=no ;;
  2513. esac
  2514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2515. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2516. shlibpath_var=LD_LIBRARY_PATH
  2517. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2518. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2519. case $host_os in
  2520. openbsd2.[[89]] | openbsd2.[[89]].*)
  2521. shlibpath_overrides_runpath=no
  2522. @@ -1839,7 +2633,6 @@
  2523. sni)
  2524. shlibpath_overrides_runpath=no
  2525. need_lib_prefix=no
  2526. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2527. runpath_var=LD_RUN_PATH
  2528. ;;
  2529. siemens)
  2530. @@ -1870,13 +2663,12 @@
  2531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2532. soname_spec='${libname}${release}${shared_ext}$major'
  2533. shlibpath_var=LD_LIBRARY_PATH
  2534. + shlibpath_overrides_runpath=yes
  2535. hardcode_into_libs=yes
  2536. if test "$with_gnu_ld" = yes; then
  2537. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2538. - shlibpath_overrides_runpath=no
  2539. else
  2540. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2541. - shlibpath_overrides_runpath=yes
  2542. case $host_os in
  2543. sco3.2v5*)
  2544. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2545. @@ -1886,6 +2678,17 @@
  2546. sys_lib_dlsearch_path_spec='/usr/lib'
  2547. ;;
  2548. +tpf*)
  2549. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2550. + version_type=linux
  2551. + need_lib_prefix=no
  2552. + need_version=no
  2553. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2554. + shlibpath_var=LD_LIBRARY_PATH
  2555. + shlibpath_overrides_runpath=no
  2556. + hardcode_into_libs=yes
  2557. + ;;
  2558. +
  2559. uts4*)
  2560. version_type=linux
  2561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2562. @@ -1900,288 +2703,58 @@
  2563. AC_MSG_RESULT([$dynamic_linker])
  2564. test "$dynamic_linker" = no && can_build_shared=no
  2565. -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  2566. -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  2567. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2568. -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  2569. -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  2570. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2571. -
  2572. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2573. if test "$GCC" = yes; then
  2574. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2575. fi
  2576. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2577. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2578. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2579. +fi
  2580. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2581. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2582. +fi
  2583. -# _LT_AC_TAGCONFIG
  2584. -# ----------------
  2585. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2586. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2587. -AC_ARG_WITH([tags],
  2588. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2589. - [include additional configurations @<:@automatic@:>@])],
  2590. - [tagnames="$withval"])
  2591. -
  2592. -if test -f "$ltmain" && test -n "$tagnames"; then
  2593. - if test ! -f "${ofile}"; then
  2594. - AC_MSG_WARN([output file `$ofile' does not exist])
  2595. - fi
  2596. -
  2597. - if test -z "$LTCC"; then
  2598. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  2599. - if test -z "$LTCC"; then
  2600. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  2601. - else
  2602. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  2603. - fi
  2604. - fi
  2605. - if test -z "$LTCFLAGS"; then
  2606. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  2607. - fi
  2608. -
  2609. - # Extract list of available tagged configurations in $ofile.
  2610. - # Note that this assumes the entire list is on one line.
  2611. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  2612. -
  2613. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2614. - for tagname in $tagnames; do
  2615. - IFS="$lt_save_ifs"
  2616. - # Check whether tagname contains only valid characters
  2617. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2618. - "") ;;
  2619. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  2620. - ;;
  2621. - esac
  2622. -
  2623. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2624. - then
  2625. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2626. - fi
  2627. -
  2628. - # Update the list of available tags.
  2629. - if test -n "$tagname"; then
  2630. - echo appending configuration tag \"$tagname\" to $ofile
  2631. -
  2632. - case $tagname in
  2633. - CXX)
  2634. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2635. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2636. - (test "X$CXX" != "Xg++"))) ; then
  2637. - AC_LIBTOOL_LANG_CXX_CONFIG
  2638. - else
  2639. - tagname=""
  2640. - fi
  2641. - ;;
  2642. -
  2643. - F77)
  2644. - if test -n "$F77" && test "X$F77" != "Xno"; then
  2645. - AC_LIBTOOL_LANG_F77_CONFIG
  2646. - else
  2647. - tagname=""
  2648. - fi
  2649. - ;;
  2650. -
  2651. - GCJ)
  2652. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2653. - AC_LIBTOOL_LANG_GCJ_CONFIG
  2654. - else
  2655. - tagname=""
  2656. - fi
  2657. - ;;
  2658. -
  2659. - RC)
  2660. - AC_LIBTOOL_LANG_RC_CONFIG
  2661. - ;;
  2662. -
  2663. - *)
  2664. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2665. - ;;
  2666. - esac
  2667. -
  2668. - # Append the new tag name to the list of available tags.
  2669. - if test -n "$tagname" ; then
  2670. - available_tags="$available_tags $tagname"
  2671. - fi
  2672. - fi
  2673. - done
  2674. - IFS="$lt_save_ifs"
  2675. -
  2676. - # Now substitute the updated list of available tags.
  2677. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2678. - mv "${ofile}T" "$ofile"
  2679. - chmod +x "$ofile"
  2680. - else
  2681. - rm -f "${ofile}T"
  2682. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2683. - fi
  2684. -fi
  2685. -])# _LT_AC_TAGCONFIG
  2686. -
  2687. -
  2688. -# AC_LIBTOOL_DLOPEN
  2689. -# -----------------
  2690. -# enable checks for dlopen support
  2691. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2692. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2693. -])# AC_LIBTOOL_DLOPEN
  2694. -
  2695. -
  2696. -# AC_LIBTOOL_WIN32_DLL
  2697. -# --------------------
  2698. -# declare package support for building win32 DLLs
  2699. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2700. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2701. -])# AC_LIBTOOL_WIN32_DLL
  2702. -
  2703. -
  2704. -# AC_ENABLE_SHARED([DEFAULT])
  2705. -# ---------------------------
  2706. -# implement the --enable-shared flag
  2707. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2708. -AC_DEFUN([AC_ENABLE_SHARED],
  2709. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2710. -AC_ARG_ENABLE([shared],
  2711. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2712. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2713. - [p=${PACKAGE-default}
  2714. - case $enableval in
  2715. - yes) enable_shared=yes ;;
  2716. - no) enable_shared=no ;;
  2717. - *)
  2718. - enable_shared=no
  2719. - # Look at the argument we got. We use all the common list separators.
  2720. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2721. - for pkg in $enableval; do
  2722. - IFS="$lt_save_ifs"
  2723. - if test "X$pkg" = "X$p"; then
  2724. - enable_shared=yes
  2725. - fi
  2726. - done
  2727. - IFS="$lt_save_ifs"
  2728. - ;;
  2729. - esac],
  2730. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2731. -])# AC_ENABLE_SHARED
  2732. -
  2733. -
  2734. -# AC_DISABLE_SHARED
  2735. -# -----------------
  2736. -# set the default shared flag to --disable-shared
  2737. -AC_DEFUN([AC_DISABLE_SHARED],
  2738. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2739. -AC_ENABLE_SHARED(no)
  2740. -])# AC_DISABLE_SHARED
  2741. -
  2742. -
  2743. -# AC_ENABLE_STATIC([DEFAULT])
  2744. -# ---------------------------
  2745. -# implement the --enable-static flag
  2746. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2747. -AC_DEFUN([AC_ENABLE_STATIC],
  2748. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2749. -AC_ARG_ENABLE([static],
  2750. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2751. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2752. - [p=${PACKAGE-default}
  2753. - case $enableval in
  2754. - yes) enable_static=yes ;;
  2755. - no) enable_static=no ;;
  2756. - *)
  2757. - enable_static=no
  2758. - # Look at the argument we got. We use all the common list separators.
  2759. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2760. - for pkg in $enableval; do
  2761. - IFS="$lt_save_ifs"
  2762. - if test "X$pkg" = "X$p"; then
  2763. - enable_static=yes
  2764. - fi
  2765. - done
  2766. - IFS="$lt_save_ifs"
  2767. - ;;
  2768. - esac],
  2769. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2770. -])# AC_ENABLE_STATIC
  2771. -
  2772. -
  2773. -# AC_DISABLE_STATIC
  2774. -# -----------------
  2775. -# set the default static flag to --disable-static
  2776. -AC_DEFUN([AC_DISABLE_STATIC],
  2777. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2778. -AC_ENABLE_STATIC(no)
  2779. -])# AC_DISABLE_STATIC
  2780. +_LT_DECL([], [variables_saved_for_relink], [1],
  2781. + [Variables whose values should be saved in libtool wrapper scripts and
  2782. + restored at link time])
  2783. +_LT_DECL([], [need_lib_prefix], [0],
  2784. + [Do we need the "lib" prefix for modules?])
  2785. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2786. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2787. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2788. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2789. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2790. + [Is shlibpath searched before the hard-coded library search path?])
  2791. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2792. +_LT_DECL([], [library_names_spec], [1],
  2793. + [[List of archive names. First name is the real one, the rest are links.
  2794. + The last name is the one that the linker finds with -lNAME]])
  2795. +_LT_DECL([], [soname_spec], [1],
  2796. + [[The coded name of the library, if different from the real name]])
  2797. +_LT_DECL([], [postinstall_cmds], [2],
  2798. + [Command to use after installation of a shared archive])
  2799. +_LT_DECL([], [postuninstall_cmds], [2],
  2800. + [Command to use after uninstallation of a shared archive])
  2801. +_LT_DECL([], [finish_cmds], [2],
  2802. + [Commands used to finish a libtool library installation in a directory])
  2803. +_LT_DECL([], [finish_eval], [1],
  2804. + [[As "finish_cmds", except a single script fragment to be evaled but
  2805. + not shown]])
  2806. +_LT_DECL([], [hardcode_into_libs], [0],
  2807. + [Whether we should hardcode library paths into libraries])
  2808. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2809. + [Compile-time system search path for libraries])
  2810. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2811. + [Run-time system search path for libraries])
  2812. +])# _LT_SYS_DYNAMIC_LINKER
  2813. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2814. -# ---------------------------------
  2815. -# implement the --enable-fast-install flag
  2816. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2817. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2818. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2819. -AC_ARG_ENABLE([fast-install],
  2820. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2821. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2822. - [p=${PACKAGE-default}
  2823. - case $enableval in
  2824. - yes) enable_fast_install=yes ;;
  2825. - no) enable_fast_install=no ;;
  2826. - *)
  2827. - enable_fast_install=no
  2828. - # Look at the argument we got. We use all the common list separators.
  2829. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2830. - for pkg in $enableval; do
  2831. - IFS="$lt_save_ifs"
  2832. - if test "X$pkg" = "X$p"; then
  2833. - enable_fast_install=yes
  2834. - fi
  2835. - done
  2836. - IFS="$lt_save_ifs"
  2837. - ;;
  2838. - esac],
  2839. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2840. -])# AC_ENABLE_FAST_INSTALL
  2841. -
  2842. -
  2843. -# AC_DISABLE_FAST_INSTALL
  2844. -# -----------------------
  2845. -# set the default to --disable-fast-install
  2846. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2847. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2848. -AC_ENABLE_FAST_INSTALL(no)
  2849. -])# AC_DISABLE_FAST_INSTALL
  2850. -
  2851. -
  2852. -# AC_LIBTOOL_PICMODE([MODE])
  2853. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2854. # --------------------------
  2855. -# implement the --with-pic flag
  2856. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2857. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2858. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2859. -pic_mode=ifelse($#,1,$1,default)
  2860. -])# AC_LIBTOOL_PICMODE
  2861. -
  2862. -
  2863. -# AC_PROG_EGREP
  2864. -# -------------
  2865. -# This is predefined starting with Autoconf 2.54, so this conditional
  2866. -# definition can be removed once we require Autoconf 2.54 or later.
  2867. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2868. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2869. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2870. - then ac_cv_prog_egrep='grep -E'
  2871. - else ac_cv_prog_egrep='egrep'
  2872. - fi])
  2873. - EGREP=$ac_cv_prog_egrep
  2874. - AC_SUBST([EGREP])
  2875. -])])
  2876. -
  2877. -
  2878. -# AC_PATH_TOOL_PREFIX
  2879. -# -------------------
  2880. # find a file program which can recognize shared library
  2881. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2882. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2883. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2884. +[m4_require([_LT_DECL_EGREP])dnl
  2885. AC_MSG_CHECKING([for $1])
  2886. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2887. [case $MAGIC_CMD in
  2888. @@ -2194,7 +2767,7 @@
  2889. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2890. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2891. dnl not every word. This closes a longstanding sh security hole.
  2892. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2893. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2894. for ac_dir in $ac_dummy; do
  2895. IFS="$lt_save_ifs"
  2896. test -z "$ac_dir" && ac_dir=.
  2897. @@ -2209,7 +2782,7 @@
  2898. $EGREP "$file_magic_regex" > /dev/null; then
  2899. :
  2900. else
  2901. - cat <<EOF 1>&2
  2902. + cat <<_LT_EOF 1>&2
  2903. *** Warning: the command libtool uses to detect shared libraries,
  2904. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2905. @@ -2220,7 +2793,7 @@
  2906. *** may want to report the problem to your system manager and/or to
  2907. *** bug-libtool@gnu.org
  2908. -EOF
  2909. +_LT_EOF
  2910. fi ;;
  2911. esac
  2912. fi
  2913. @@ -2237,37 +2810,47 @@
  2914. else
  2915. AC_MSG_RESULT(no)
  2916. fi
  2917. -])# AC_PATH_TOOL_PREFIX
  2918. +_LT_DECL([], [MAGIC_CMD], [0],
  2919. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2920. +])# _LT_PATH_TOOL_PREFIX
  2921. +# Old name:
  2922. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2923. +dnl aclocal-1.4 backwards compatibility:
  2924. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2925. -# AC_PATH_MAGIC
  2926. -# -------------
  2927. +
  2928. +# _LT_PATH_MAGIC
  2929. +# --------------
  2930. # find a file program which can recognize a shared library
  2931. -AC_DEFUN([AC_PATH_MAGIC],
  2932. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2933. +m4_defun([_LT_PATH_MAGIC],
  2934. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2935. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2936. if test -n "$ac_tool_prefix"; then
  2937. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2938. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2939. else
  2940. MAGIC_CMD=:
  2941. fi
  2942. fi
  2943. -])# AC_PATH_MAGIC
  2944. +])# _LT_PATH_MAGIC
  2945. -# AC_PROG_LD
  2946. +# LT_PATH_LD
  2947. # ----------
  2948. # find the pathname to the GNU or non-GNU linker
  2949. -AC_DEFUN([AC_PROG_LD],
  2950. -[AC_ARG_WITH([gnu-ld],
  2951. - [AC_HELP_STRING([--with-gnu-ld],
  2952. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2953. - [test "$withval" = no || with_gnu_ld=yes],
  2954. - [with_gnu_ld=no])
  2955. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2956. -AC_REQUIRE([AC_PROG_CC])dnl
  2957. +AC_DEFUN([LT_PATH_LD],
  2958. +[AC_REQUIRE([AC_PROG_CC])dnl
  2959. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2960. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2961. +m4_require([_LT_DECL_SED])dnl
  2962. +m4_require([_LT_DECL_EGREP])dnl
  2963. +
  2964. +AC_ARG_WITH([gnu-ld],
  2965. + [AS_HELP_STRING([--with-gnu-ld],
  2966. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2967. + [test "$withval" = no || with_gnu_ld=yes],
  2968. + [with_gnu_ld=no])dnl
  2969. +
  2970. ac_prog=ld
  2971. if test "$GCC" = yes; then
  2972. # Check if gcc -print-prog-name=ld gives a path.
  2973. @@ -2284,9 +2867,9 @@
  2974. [[\\/]]* | ?:[[\\/]]*)
  2975. re_direlt='/[[^/]][[^/]]*/\.\./'
  2976. # Canonicalize the pathname of ld
  2977. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2978. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2979. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2980. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2981. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2982. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2983. done
  2984. test -z "$LD" && LD="$ac_prog"
  2985. ;;
  2986. @@ -2336,15 +2919,24 @@
  2987. AC_MSG_RESULT(no)
  2988. fi
  2989. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2990. -AC_PROG_LD_GNU
  2991. -])# AC_PROG_LD
  2992. +_LT_PATH_LD_GNU
  2993. +AC_SUBST([LD])
  2994. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2995. +])# LT_PATH_LD
  2996. -# AC_PROG_LD_GNU
  2997. -# --------------
  2998. -AC_DEFUN([AC_PROG_LD_GNU],
  2999. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3000. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3001. +# Old names:
  3002. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3003. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3004. +dnl aclocal-1.4 backwards compatibility:
  3005. +dnl AC_DEFUN([AM_PROG_LD], [])
  3006. +dnl AC_DEFUN([AC_PROG_LD], [])
  3007. +
  3008. +
  3009. +# _LT_PATH_LD_GNU
  3010. +#- --------------
  3011. +m4_defun([_LT_PATH_LD_GNU],
  3012. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3013. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3014. case `$LD -v 2>&1 </dev/null` in
  3015. *GNU* | *'with BFD'*)
  3016. @@ -2355,14 +2947,14 @@
  3017. ;;
  3018. esac])
  3019. with_gnu_ld=$lt_cv_prog_gnu_ld
  3020. -])# AC_PROG_LD_GNU
  3021. +])# _LT_PATH_LD_GNU
  3022. -# AC_PROG_LD_RELOAD_FLAG
  3023. -# ----------------------
  3024. +# _LT_CMD_RELOAD
  3025. +# --------------
  3026. # find reload flag for linker
  3027. # -- PORTME Some linkers may need a different reload flag.
  3028. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3029. +m4_defun([_LT_CMD_RELOAD],
  3030. [AC_CACHE_CHECK([for $LD option to reload object files],
  3031. lt_cv_ld_reload_flag,
  3032. [lt_cv_ld_reload_flag='-r'])
  3033. @@ -2381,15 +2973,19 @@
  3034. fi
  3035. ;;
  3036. esac
  3037. -])# AC_PROG_LD_RELOAD_FLAG
  3038. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3039. +_LT_DECL([], [reload_cmds], [2])dnl
  3040. +])# _LT_CMD_RELOAD
  3041. -# AC_DEPLIBS_CHECK_METHOD
  3042. -# -----------------------
  3043. +# _LT_CHECK_MAGIC_METHOD
  3044. +# ----------------------
  3045. # how to check for library dependencies
  3046. # -- PORTME fill in with the dynamic library characteristics
  3047. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3048. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  3049. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3050. +[m4_require([_LT_DECL_EGREP])
  3051. +m4_require([_LT_DECL_OBJDUMP])
  3052. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3053. lt_cv_deplibs_check_method,
  3054. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3055. lt_cv_file_magic_test_file=
  3056. @@ -2439,12 +3035,18 @@
  3057. fi
  3058. ;;
  3059. +cegcc)
  3060. + # use the weaker test based on 'objdump'. See mingw*.
  3061. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3062. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3063. + ;;
  3064. +
  3065. darwin* | rhapsody*)
  3066. lt_cv_deplibs_check_method=pass_all
  3067. ;;
  3068. freebsd* | dragonfly*)
  3069. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3070. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3071. case $host_cpu in
  3072. i*86 )
  3073. # Not sure whether the presence of OpenBSD here was a mistake.
  3074. @@ -2497,12 +3099,12 @@
  3075. ;;
  3076. # This must be Linux ELF.
  3077. -linux* | k*bsd*-gnu)
  3078. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3079. lt_cv_deplibs_check_method=pass_all
  3080. ;;
  3081. -netbsd*)
  3082. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3083. +netbsd* | netbsdelf*-gnu)
  3084. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3085. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3086. else
  3087. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3088. @@ -2515,12 +3117,12 @@
  3089. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3090. ;;
  3091. -nto-qnx*)
  3092. - lt_cv_deplibs_check_method=unknown
  3093. +*nto* | *qnx*)
  3094. + lt_cv_deplibs_check_method=pass_all
  3095. ;;
  3096. openbsd*)
  3097. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3098. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3099. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3100. else
  3101. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3102. @@ -2539,6 +3141,10 @@
  3103. lt_cv_deplibs_check_method=pass_all
  3104. ;;
  3105. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3106. + lt_cv_deplibs_check_method=pass_all
  3107. + ;;
  3108. +
  3109. sysv4 | sysv4.3*)
  3110. case $host_vendor in
  3111. motorola)
  3112. @@ -2566,7 +3172,7 @@
  3113. esac
  3114. ;;
  3115. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3116. +tpf*)
  3117. lt_cv_deplibs_check_method=pass_all
  3118. ;;
  3119. esac
  3120. @@ -2574,14 +3180,20 @@
  3121. file_magic_cmd=$lt_cv_file_magic_cmd
  3122. deplibs_check_method=$lt_cv_deplibs_check_method
  3123. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3124. -])# AC_DEPLIBS_CHECK_METHOD
  3125. +_LT_DECL([], [deplibs_check_method], [1],
  3126. + [Method to check whether dependent libraries are shared objects])
  3127. +_LT_DECL([], [file_magic_cmd], [1],
  3128. + [Command to use when deplibs_check_method == "file_magic"])
  3129. +])# _LT_CHECK_MAGIC_METHOD
  3130. -# AC_PROG_NM
  3131. +
  3132. +# LT_PATH_NM
  3133. # ----------
  3134. -# find the pathname to a BSD-compatible name lister
  3135. -AC_DEFUN([AC_PROG_NM],
  3136. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3137. +# find the pathname to a BSD- or MS-compatible name lister
  3138. +AC_DEFUN([LT_PATH_NM],
  3139. +[AC_REQUIRE([AC_PROG_CC])dnl
  3140. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3141. [if test -n "$NM"; then
  3142. # Let the user override the test.
  3143. lt_cv_path_NM="$NM"
  3144. @@ -2623,16 +3235,51 @@
  3145. done
  3146. IFS="$lt_save_ifs"
  3147. done
  3148. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3149. + : ${lt_cv_path_NM=no}
  3150. fi])
  3151. -NM="$lt_cv_path_NM"
  3152. -])# AC_PROG_NM
  3153. +if test "$lt_cv_path_NM" != "no"; then
  3154. + NM="$lt_cv_path_NM"
  3155. +else
  3156. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3157. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3158. + AC_SUBST([DUMPBIN])
  3159. + if test "$DUMPBIN" != ":"; then
  3160. + NM="$DUMPBIN"
  3161. + fi
  3162. +fi
  3163. +test -z "$NM" && NM=nm
  3164. +AC_SUBST([NM])
  3165. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3166. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3167. + [lt_cv_nm_interface="BSD nm"
  3168. + echo "int some_variable = 0;" > conftest.$ac_ext
  3169. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3170. + (eval "$ac_compile" 2>conftest.err)
  3171. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3172. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3173. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3174. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3175. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3176. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3177. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3178. + lt_cv_nm_interface="MS dumpbin"
  3179. + fi
  3180. + rm -f conftest*])
  3181. +])# LT_PATH_NM
  3182. +
  3183. +# Old names:
  3184. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3185. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3186. +dnl aclocal-1.4 backwards compatibility:
  3187. +dnl AC_DEFUN([AM_PROG_NM], [])
  3188. +dnl AC_DEFUN([AC_PROG_NM], [])
  3189. -# AC_CHECK_LIBM
  3190. -# -------------
  3191. +
  3192. +# LT_LIB_M
  3193. +# --------
  3194. # check for math library
  3195. -AC_DEFUN([AC_CHECK_LIBM],
  3196. +AC_DEFUN([LT_LIB_M],
  3197. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3198. LIBM=
  3199. case $host in
  3200. @@ -2647,4012 +3294,4698 @@
  3201. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3202. ;;
  3203. esac
  3204. -])# AC_CHECK_LIBM
  3205. +AC_SUBST([LIBM])
  3206. +])# LT_LIB_M
  3207. +# Old name:
  3208. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3209. +dnl aclocal-1.4 backwards compatibility:
  3210. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3211. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3212. -# -----------------------------------
  3213. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  3214. -# LTDLINCL to the include flags for the libltdl header and adds
  3215. -# --enable-ltdl-convenience to the configure arguments. Note that
  3216. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3217. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  3218. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  3219. -# (note the single quotes!). If your package is not flat and you're not
  3220. -# using automake, define top_builddir and top_srcdir appropriately in
  3221. -# the Makefiles.
  3222. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3223. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3224. - case $enable_ltdl_convenience in
  3225. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3226. - "") enable_ltdl_convenience=yes
  3227. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3228. - esac
  3229. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3230. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3231. - # For backwards non-gettext consistent compatibility...
  3232. - INCLTDL="$LTDLINCL"
  3233. -])# AC_LIBLTDL_CONVENIENCE
  3234. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3235. +# -------------------------------
  3236. +m4_defun([_LT_COMPILER_NO_RTTI],
  3237. +[m4_require([_LT_TAG_COMPILER])dnl
  3238. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3239. -# -----------------------------------
  3240. -# sets LIBLTDL to the link flags for the libltdl installable library and
  3241. -# LTDLINCL to the include flags for the libltdl header and adds
  3242. -# --enable-ltdl-install to the configure arguments. Note that
  3243. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3244. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  3245. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  3246. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  3247. -# flat and you're not using automake, define top_builddir and top_srcdir
  3248. -# appropriately in the Makefiles.
  3249. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3250. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3251. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3252. - AC_CHECK_LIB(ltdl, lt_dlinit,
  3253. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3254. - [if test x"$enable_ltdl_install" = xno; then
  3255. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  3256. - else
  3257. - enable_ltdl_install=yes
  3258. - fi
  3259. - ])
  3260. - if test x"$enable_ltdl_install" = x"yes"; then
  3261. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3262. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3263. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3264. - else
  3265. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3266. - LIBLTDL="-lltdl"
  3267. - LTDLINCL=
  3268. - fi
  3269. - # For backwards non-gettext consistent compatibility...
  3270. - INCLTDL="$LTDLINCL"
  3271. -])# AC_LIBLTDL_INSTALLABLE
  3272. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3273. +if test "$GCC" = yes; then
  3274. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3275. -# AC_LIBTOOL_CXX
  3276. -# --------------
  3277. -# enable support for C++ libraries
  3278. -AC_DEFUN([AC_LIBTOOL_CXX],
  3279. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  3280. -])# AC_LIBTOOL_CXX
  3281. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3282. + lt_cv_prog_compiler_rtti_exceptions,
  3283. + [-fno-rtti -fno-exceptions], [],
  3284. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3285. +fi
  3286. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3287. + [Compiler flag to turn off builtin functions])
  3288. +])# _LT_COMPILER_NO_RTTI
  3289. -# _LT_AC_LANG_CXX
  3290. -# ---------------
  3291. -AC_DEFUN([_LT_AC_LANG_CXX],
  3292. -[AC_REQUIRE([AC_PROG_CXX])
  3293. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3294. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3295. -])# _LT_AC_LANG_CXX
  3296. +# _LT_CMD_GLOBAL_SYMBOLS
  3297. +# ----------------------
  3298. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3299. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3300. +AC_REQUIRE([AC_PROG_CC])dnl
  3301. +AC_REQUIRE([LT_PATH_NM])dnl
  3302. +AC_REQUIRE([LT_PATH_LD])dnl
  3303. +m4_require([_LT_DECL_SED])dnl
  3304. +m4_require([_LT_DECL_EGREP])dnl
  3305. +m4_require([_LT_TAG_COMPILER])dnl
  3306. -# _LT_AC_PROG_CXXCPP
  3307. -# ------------------
  3308. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  3309. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3310. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3311. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3312. [
  3313. -AC_REQUIRE([AC_PROG_CXX])
  3314. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3315. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3316. - (test "X$CXX" != "Xg++"))) ; then
  3317. - AC_PROG_CXXCPP
  3318. -fi
  3319. -])# _LT_AC_PROG_CXXCPP
  3320. +# These are sane defaults that work on at least a few old systems.
  3321. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3322. -# AC_LIBTOOL_F77
  3323. -# --------------
  3324. -# enable support for Fortran 77 libraries
  3325. -AC_DEFUN([AC_LIBTOOL_F77],
  3326. -[AC_REQUIRE([_LT_AC_LANG_F77])
  3327. -])# AC_LIBTOOL_F77
  3328. +# Character class describing NM global symbol codes.
  3329. +symcode='[[BCDEGRST]]'
  3330. +# Regexp to match symbols that can be accessed directly from C.
  3331. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3332. -# _LT_AC_LANG_F77
  3333. -# ---------------
  3334. -AC_DEFUN([_LT_AC_LANG_F77],
  3335. -[AC_REQUIRE([AC_PROG_F77])
  3336. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3337. -])# _LT_AC_LANG_F77
  3338. +# Define system-specific variables.
  3339. +case $host_os in
  3340. +aix*)
  3341. + symcode='[[BCDT]]'
  3342. + ;;
  3343. +cygwin* | mingw* | pw32* | cegcc*)
  3344. + symcode='[[ABCDGISTW]]'
  3345. + ;;
  3346. +hpux*)
  3347. + if test "$host_cpu" = ia64; then
  3348. + symcode='[[ABCDEGRST]]'
  3349. + fi
  3350. + ;;
  3351. +irix* | nonstopux*)
  3352. + symcode='[[BCDEGRST]]'
  3353. + ;;
  3354. +osf*)
  3355. + symcode='[[BCDEGQRST]]'
  3356. + ;;
  3357. +solaris*)
  3358. + symcode='[[BDRT]]'
  3359. + ;;
  3360. +sco3.2v5*)
  3361. + symcode='[[DT]]'
  3362. + ;;
  3363. +sysv4.2uw2*)
  3364. + symcode='[[DT]]'
  3365. + ;;
  3366. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3367. + symcode='[[ABDT]]'
  3368. + ;;
  3369. +sysv4)
  3370. + symcode='[[DFNSTU]]'
  3371. + ;;
  3372. +esac
  3373. +# If we're using GNU nm, then use its standard symbol codes.
  3374. +case `$NM -V 2>&1` in
  3375. +*GNU* | *'with BFD'*)
  3376. + symcode='[[ABCDGIRSTW]]' ;;
  3377. +esac
  3378. -# AC_LIBTOOL_GCJ
  3379. -# --------------
  3380. -# enable support for GCJ libraries
  3381. -AC_DEFUN([AC_LIBTOOL_GCJ],
  3382. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3383. -])# AC_LIBTOOL_GCJ
  3384. +# Transform an extracted symbol line into a proper C declaration.
  3385. +# Some systems (esp. on ia64) link data and code symbols differently,
  3386. +# so use this general approach.
  3387. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3388. +# Transform an extracted symbol line into symbol name and symbol address
  3389. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3390. +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'"
  3391. -# _LT_AC_LANG_GCJ
  3392. -# ---------------
  3393. -AC_DEFUN([_LT_AC_LANG_GCJ],
  3394. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3395. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3396. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3397. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3398. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3399. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3400. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3401. -])# _LT_AC_LANG_GCJ
  3402. +# Handle CRLF in mingw tool chain
  3403. +opt_cr=
  3404. +case $build_os in
  3405. +mingw*)
  3406. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3407. + ;;
  3408. +esac
  3409. +# Try without a prefix underscore, then with it.
  3410. +for ac_symprfx in "" "_"; do
  3411. -# AC_LIBTOOL_RC
  3412. -# -------------
  3413. -# enable support for Windows resource files
  3414. -AC_DEFUN([AC_LIBTOOL_RC],
  3415. -[AC_REQUIRE([LT_AC_PROG_RC])
  3416. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3417. -])# AC_LIBTOOL_RC
  3418. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3419. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3420. + # Write the raw and C identifiers.
  3421. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3422. + # Fake it for dumpbin and say T for any non-static function
  3423. + # and D for any global variable.
  3424. + # Also find C++ and __fastcall symbols from MSVC++,
  3425. + # which start with @ or ?.
  3426. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3427. +" {last_section=section; section=\$ 3};"\
  3428. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3429. +" \$ 0!~/External *\|/{next};"\
  3430. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3431. +" {if(hide[section]) next};"\
  3432. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3433. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3434. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3435. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3436. +" ' prfx=^$ac_symprfx]"
  3437. + else
  3438. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3439. + fi
  3440. -# AC_LIBTOOL_LANG_C_CONFIG
  3441. -# ------------------------
  3442. -# Ensure that the configuration vars for the C compiler are
  3443. -# suitably defined. Those variables are subsequently used by
  3444. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3445. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3446. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3447. -[lt_save_CC="$CC"
  3448. -AC_LANG_PUSH(C)
  3449. + # Check to see that the pipe works correctly.
  3450. + pipe_works=no
  3451. -# Source file extension for C test sources.
  3452. -ac_ext=c
  3453. -
  3454. -# Object file extension for compiled C test sources.
  3455. -objext=o
  3456. -_LT_AC_TAGVAR(objext, $1)=$objext
  3457. -
  3458. -# Code to be used in simple compile tests
  3459. -lt_simple_compile_test_code="int some_variable = 0;"
  3460. -
  3461. -# Code to be used in simple link tests
  3462. -lt_simple_link_test_code='int main(){return(0);}'
  3463. -
  3464. -_LT_AC_SYS_COMPILER
  3465. -
  3466. -# save warnings/boilerplate of simple test code
  3467. -_LT_COMPILER_BOILERPLATE
  3468. -_LT_LINKER_BOILERPLATE
  3469. -
  3470. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3471. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3472. -AC_LIBTOOL_PROG_CC_C_O($1)
  3473. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3474. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3475. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3476. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3477. -AC_LIBTOOL_SYS_LIB_STRIP
  3478. -AC_LIBTOOL_DLOPEN_SELF
  3479. -
  3480. -# Report which library types will actually be built
  3481. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3482. -AC_MSG_RESULT([$can_build_shared])
  3483. -
  3484. -AC_MSG_CHECKING([whether to build shared libraries])
  3485. -test "$can_build_shared" = "no" && enable_shared=no
  3486. -
  3487. -# On AIX, shared libraries and static libraries use the same namespace, and
  3488. -# are all built from PIC.
  3489. -case $host_os in
  3490. -aix3*)
  3491. - test "$enable_shared" = yes && enable_static=no
  3492. - if test -n "$RANLIB"; then
  3493. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3494. - postinstall_cmds='$RANLIB $lib'
  3495. - fi
  3496. - ;;
  3497. -
  3498. -aix[[4-9]]*)
  3499. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3500. - test "$enable_shared" = yes && enable_static=no
  3501. - fi
  3502. - ;;
  3503. -esac
  3504. -AC_MSG_RESULT([$enable_shared])
  3505. -
  3506. -AC_MSG_CHECKING([whether to build static libraries])
  3507. -# Make sure either enable_shared or enable_static is yes.
  3508. -test "$enable_shared" = yes || enable_static=yes
  3509. -AC_MSG_RESULT([$enable_static])
  3510. -
  3511. -AC_LIBTOOL_CONFIG($1)
  3512. -
  3513. -AC_LANG_POP
  3514. -CC="$lt_save_CC"
  3515. -])# AC_LIBTOOL_LANG_C_CONFIG
  3516. -
  3517. -
  3518. -# AC_LIBTOOL_LANG_CXX_CONFIG
  3519. -# --------------------------
  3520. -# Ensure that the configuration vars for the C compiler are
  3521. -# suitably defined. Those variables are subsequently used by
  3522. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3523. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3524. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3525. -[AC_LANG_PUSH(C++)
  3526. -AC_REQUIRE([AC_PROG_CXX])
  3527. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3528. -
  3529. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3530. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3531. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3532. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3533. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3534. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3535. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3536. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3537. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3538. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3539. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3540. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3541. -_LT_AC_TAGVAR(module_cmds, $1)=
  3542. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3543. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3544. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3545. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3546. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3547. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3548. -
  3549. -# Dependencies to place before and after the object being linked:
  3550. -_LT_AC_TAGVAR(predep_objects, $1)=
  3551. -_LT_AC_TAGVAR(postdep_objects, $1)=
  3552. -_LT_AC_TAGVAR(predeps, $1)=
  3553. -_LT_AC_TAGVAR(postdeps, $1)=
  3554. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3555. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  3556. -
  3557. -# Source file extension for C++ test sources.
  3558. -ac_ext=cpp
  3559. -
  3560. -# Object file extension for compiled C++ test sources.
  3561. -objext=o
  3562. -_LT_AC_TAGVAR(objext, $1)=$objext
  3563. -
  3564. -# Code to be used in simple compile tests
  3565. -lt_simple_compile_test_code="int some_variable = 0;"
  3566. -
  3567. -# Code to be used in simple link tests
  3568. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  3569. -
  3570. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3571. -_LT_AC_SYS_COMPILER
  3572. -
  3573. -# save warnings/boilerplate of simple test code
  3574. -_LT_COMPILER_BOILERPLATE
  3575. -_LT_LINKER_BOILERPLATE
  3576. -
  3577. -# Allow CC to be a program name with arguments.
  3578. -lt_save_CC=$CC
  3579. -lt_save_LD=$LD
  3580. -lt_save_GCC=$GCC
  3581. -GCC=$GXX
  3582. -lt_save_with_gnu_ld=$with_gnu_ld
  3583. -lt_save_path_LD=$lt_cv_path_LD
  3584. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  3585. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  3586. -else
  3587. - $as_unset lt_cv_prog_gnu_ld
  3588. -fi
  3589. -if test -n "${lt_cv_path_LDCXX+set}"; then
  3590. - lt_cv_path_LD=$lt_cv_path_LDCXX
  3591. -else
  3592. - $as_unset lt_cv_path_LD
  3593. -fi
  3594. -test -z "${LDCXX+set}" || LD=$LDCXX
  3595. -CC=${CXX-"c++"}
  3596. -compiler=$CC
  3597. -_LT_AC_TAGVAR(compiler, $1)=$CC
  3598. -_LT_CC_BASENAME([$compiler])
  3599. + rm -f conftest*
  3600. + cat > conftest.$ac_ext <<_LT_EOF
  3601. +#ifdef __cplusplus
  3602. +extern "C" {
  3603. +#endif
  3604. +char nm_test_var;
  3605. +void nm_test_func(void);
  3606. +void nm_test_func(void){}
  3607. +#ifdef __cplusplus
  3608. +}
  3609. +#endif
  3610. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3611. +_LT_EOF
  3612. -# We don't want -fno-exception wen compiling C++ code, so set the
  3613. -# no_builtin_flag separately
  3614. -if test "$GXX" = yes; then
  3615. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3616. -else
  3617. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3618. -fi
  3619. + if AC_TRY_EVAL(ac_compile); then
  3620. + # Now try to grab the symbols.
  3621. + nlist=conftest.nm
  3622. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3623. + # Try sorting and uniquifying the output.
  3624. + if sort "$nlist" | uniq > "$nlist"T; then
  3625. + mv -f "$nlist"T "$nlist"
  3626. + else
  3627. + rm -f "$nlist"T
  3628. + fi
  3629. -if test "$GXX" = yes; then
  3630. - # Set up default GNU C++ configuration
  3631. + # Make sure that we snagged all the symbols we need.
  3632. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3633. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3634. + cat <<_LT_EOF > conftest.$ac_ext
  3635. +#ifdef __cplusplus
  3636. +extern "C" {
  3637. +#endif
  3638. - AC_PROG_LD
  3639. +_LT_EOF
  3640. + # Now generate the symbol file.
  3641. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3642. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3643. - # archiving commands below assume that GNU ld is being used.
  3644. - if test "$with_gnu_ld" = yes; then
  3645. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3646. - _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'
  3647. + cat <<_LT_EOF >> conftest.$ac_ext
  3648. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3649. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3650. +/* The mapping between symbol names and symbols. */
  3651. +const struct {
  3652. + const char *name;
  3653. + void *address;
  3654. +}
  3655. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3656. +{
  3657. + { "@PROGRAM@", (void *) 0 },
  3658. +_LT_EOF
  3659. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3660. + cat <<\_LT_EOF >> conftest.$ac_ext
  3661. + {0, (void *) 0}
  3662. +};
  3663. - # If archive_cmds runs LD, not CC, wlarc should be empty
  3664. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3665. - # investigate it a little bit more. (MM)
  3666. - wlarc='${wl}'
  3667. +/* This works around a problem in FreeBSD linker */
  3668. +#ifdef FREEBSD_WORKAROUND
  3669. +static const void *lt_preloaded_setup() {
  3670. + return lt__PROGRAM__LTX_preloaded_symbols;
  3671. +}
  3672. +#endif
  3673. - # ancient GNU ld didn't support --whole-archive et. al.
  3674. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3675. - grep 'no-whole-archive' > /dev/null; then
  3676. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3677. +#ifdef __cplusplus
  3678. +}
  3679. +#endif
  3680. +_LT_EOF
  3681. + # Now try linking the two files.
  3682. + mv conftest.$ac_objext conftstm.$ac_objext
  3683. + lt_save_LIBS="$LIBS"
  3684. + lt_save_CFLAGS="$CFLAGS"
  3685. + LIBS="conftstm.$ac_objext"
  3686. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3687. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3688. + pipe_works=yes
  3689. + fi
  3690. + LIBS="$lt_save_LIBS"
  3691. + CFLAGS="$lt_save_CFLAGS"
  3692. + else
  3693. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3694. + fi
  3695. + else
  3696. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3697. + fi
  3698. else
  3699. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3700. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3701. fi
  3702. else
  3703. - with_gnu_ld=no
  3704. - wlarc=
  3705. -
  3706. - # A generic and very simple default shared library creation
  3707. - # command for GNU C++ for the case where it uses the native
  3708. - # linker, instead of GNU ld. If possible, this setting should
  3709. - # overridden to take advantage of the native linker features on
  3710. - # the platform it is being used on.
  3711. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3712. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3713. + cat conftest.$ac_ext >&5
  3714. fi
  3715. + rm -rf conftest* conftst*
  3716. - # Commands to make compiler produce verbose output that lists
  3717. - # what "hidden" libraries, object files and flags are used when
  3718. - # linking a shared library.
  3719. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3720. -
  3721. + # Do not use the global_symbol_pipe unless it works.
  3722. + if test "$pipe_works" = yes; then
  3723. + break
  3724. + else
  3725. + lt_cv_sys_global_symbol_pipe=
  3726. + fi
  3727. +done
  3728. +])
  3729. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3730. + lt_cv_sys_global_symbol_to_cdecl=
  3731. +fi
  3732. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3733. + AC_MSG_RESULT(failed)
  3734. else
  3735. - GXX=no
  3736. - with_gnu_ld=no
  3737. - wlarc=
  3738. + AC_MSG_RESULT(ok)
  3739. fi
  3740. -# PORTME: fill in a description of your system's C++ link characteristics
  3741. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3742. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3743. -case $host_os in
  3744. - aix3*)
  3745. - # FIXME: insert proper C++ library support
  3746. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3747. - ;;
  3748. - aix[[4-9]]*)
  3749. - if test "$host_cpu" = ia64; then
  3750. - # On IA64, the linker does run time linking by default, so we don't
  3751. - # have to do anything special.
  3752. - aix_use_runtimelinking=no
  3753. - exp_sym_flag='-Bexport'
  3754. - no_entry_flag=""
  3755. - else
  3756. - aix_use_runtimelinking=no
  3757. -
  3758. - # Test if we are trying to use run time linking or normal
  3759. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3760. - # need to do runtime linking.
  3761. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  3762. - for ld_flag in $LDFLAGS; do
  3763. - case $ld_flag in
  3764. - *-brtl*)
  3765. - aix_use_runtimelinking=yes
  3766. - break
  3767. - ;;
  3768. - esac
  3769. - done
  3770. - ;;
  3771. - esac
  3772. -
  3773. - exp_sym_flag='-bexport'
  3774. - no_entry_flag='-bnoentry'
  3775. - fi
  3776. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3777. + [Take the output of nm and produce a listing of raw symbols and C names])
  3778. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3779. + [Transform the output of nm in a proper C declaration])
  3780. +_LT_DECL([global_symbol_to_c_name_address],
  3781. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3782. + [Transform the output of nm in a C name address pair])
  3783. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3784. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3785. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3786. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3787. - # When large executables or shared objects are built, AIX ld can
  3788. - # have problems creating the table of contents. If linking a library
  3789. - # or program results in "error TOC overflow" add -mminimal-toc to
  3790. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3791. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3792. -
  3793. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  3794. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3795. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3796. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3797. - if test "$GXX" = yes; then
  3798. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3799. - # We only want to do this on AIX 4.2 and lower, the check
  3800. - # below for broken collect2 doesn't work under 4.3+
  3801. - collect2name=`${CC} -print-prog-name=collect2`
  3802. - if test -f "$collect2name" && \
  3803. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  3804. - then
  3805. - # We have reworked collect2
  3806. - :
  3807. - else
  3808. - # We have old collect2
  3809. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3810. - # It fails to find uninstalled libraries when the uninstalled
  3811. - # path is not listed in the libpath. Setting hardcode_minus_L
  3812. - # to unsupported forces relinking
  3813. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3814. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3815. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3816. - fi
  3817. - ;;
  3818. - esac
  3819. - shared_flag='-shared'
  3820. - if test "$aix_use_runtimelinking" = yes; then
  3821. - shared_flag="$shared_flag "'${wl}-G'
  3822. - fi
  3823. - else
  3824. - # not using gcc
  3825. - if test "$host_cpu" = ia64; then
  3826. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3827. - # chokes on -Wl,-G. The following line is correct:
  3828. - shared_flag='-G'
  3829. - else
  3830. - if test "$aix_use_runtimelinking" = yes; then
  3831. - shared_flag='${wl}-G'
  3832. - else
  3833. - shared_flag='${wl}-bM:SRE'
  3834. - fi
  3835. - fi
  3836. - fi
  3837. +# _LT_COMPILER_PIC([TAGNAME])
  3838. +# ---------------------------
  3839. +m4_defun([_LT_COMPILER_PIC],
  3840. +[m4_require([_LT_TAG_COMPILER])dnl
  3841. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3842. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3843. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3844. - # It seems that -bexpall does not export symbols beginning with
  3845. - # underscore (_), so it is better to generate a list of symbols to export.
  3846. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3847. - if test "$aix_use_runtimelinking" = yes; then
  3848. - # Warning - without using the other runtime loading flags (-brtl),
  3849. - # -berok will link without error, but may produce a broken library.
  3850. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3851. - # Determine the default libpath from the value encoded in an empty executable.
  3852. - _LT_AC_SYS_LIBPATH_AIX
  3853. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3854. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3855. +m4_if([$1], [CXX], [
  3856. + # C++ specific cases for pic, static, wl, etc.
  3857. + if test "$GXX" = yes; then
  3858. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3859. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3860. - _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"
  3861. - else
  3862. + case $host_os in
  3863. + aix*)
  3864. + # All AIX code is PIC.
  3865. if test "$host_cpu" = ia64; then
  3866. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3867. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3868. - _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"
  3869. - else
  3870. - # Determine the default libpath from the value encoded in an empty executable.
  3871. - _LT_AC_SYS_LIBPATH_AIX
  3872. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3873. - # Warning - without using the other run time loading flags,
  3874. - # -berok will link without error, but may produce a broken library.
  3875. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3876. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3877. - # Exported symbols can be pulled into shared objects from archives
  3878. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3879. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3880. - # This is similar to how AIX traditionally builds its shared libraries.
  3881. - _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'
  3882. - fi
  3883. - fi
  3884. - ;;
  3885. -
  3886. - beos*)
  3887. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3888. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3889. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3890. - # support --undefined. This deserves some investigation. FIXME
  3891. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3892. - else
  3893. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3894. - fi
  3895. - ;;
  3896. -
  3897. - chorus*)
  3898. - case $cc_basename in
  3899. - *)
  3900. - # FIXME: insert proper C++ library support
  3901. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3902. - ;;
  3903. - esac
  3904. - ;;
  3905. -
  3906. - cygwin* | mingw* | pw32*)
  3907. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3908. - # as there is no search path for DLLs.
  3909. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3910. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3911. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3912. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3913. -
  3914. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3915. - _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'
  3916. - # If the export-symbols file already is a .def file (1st line
  3917. - # is EXPORTS), use it as is; otherwise, prepend...
  3918. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3919. - cp $export_symbols $output_objdir/$soname.def;
  3920. - else
  3921. - echo EXPORTS > $output_objdir/$soname.def;
  3922. - cat $export_symbols >> $output_objdir/$soname.def;
  3923. - fi~
  3924. - $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'
  3925. - else
  3926. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3927. - fi
  3928. - ;;
  3929. - darwin* | rhapsody*)
  3930. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3931. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3932. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3933. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3934. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3935. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3936. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  3937. - if test "$GXX" = yes ; then
  3938. - output_verbose_link_cmd='echo'
  3939. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  3940. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  3941. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  3942. - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  3943. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  3944. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  3945. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  3946. - fi
  3947. - else
  3948. - case $cc_basename in
  3949. - xlc*)
  3950. - output_verbose_link_cmd='echo'
  3951. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  3952. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3953. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3954. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3955. - _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}'
  3956. - ;;
  3957. - *)
  3958. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3959. - ;;
  3960. - esac
  3961. - fi
  3962. - ;;
  3963. -
  3964. - dgux*)
  3965. - case $cc_basename in
  3966. - ec++*)
  3967. - # FIXME: insert proper C++ library support
  3968. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3969. - ;;
  3970. - ghcx*)
  3971. - # Green Hills C++ Compiler
  3972. - # FIXME: insert proper C++ library support
  3973. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3974. - ;;
  3975. - *)
  3976. - # FIXME: insert proper C++ library support
  3977. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3978. - ;;
  3979. - esac
  3980. - ;;
  3981. - freebsd[[12]]*)
  3982. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3983. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3984. - ;;
  3985. - freebsd-elf*)
  3986. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3987. - ;;
  3988. - freebsd* | dragonfly*)
  3989. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3990. - # conventions
  3991. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3992. - ;;
  3993. - gnu*)
  3994. - ;;
  3995. - hpux9*)
  3996. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3997. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3998. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3999. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4000. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4001. - # but as the default
  4002. - # location of the library.
  4003. -
  4004. - case $cc_basename in
  4005. - CC*)
  4006. - # FIXME: insert proper C++ library support
  4007. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4008. - ;;
  4009. - aCC*)
  4010. - _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'
  4011. - # Commands to make compiler produce verbose output that lists
  4012. - # what "hidden" libraries, object files and flags are used when
  4013. - # linking a shared library.
  4014. - #
  4015. - # There doesn't appear to be a way to prevent this compiler from
  4016. - # explicitly linking system object files so we need to strip them
  4017. - # from the output so that they don't get included in the library
  4018. - # dependencies.
  4019. - 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'
  4020. - ;;
  4021. - *)
  4022. - if test "$GXX" = yes; then
  4023. - _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'
  4024. - else
  4025. - # FIXME: insert proper C++ library support
  4026. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4027. + # AIX 5 now supports IA64 processor
  4028. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4029. fi
  4030. ;;
  4031. - esac
  4032. - ;;
  4033. - hpux10*|hpux11*)
  4034. - if test $with_gnu_ld = no; then
  4035. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4036. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4037. + amigaos*)
  4038. case $host_cpu in
  4039. - hppa*64*|ia64*) ;;
  4040. - *)
  4041. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4042. + powerpc)
  4043. + # see comment about AmigaOS4 .so support
  4044. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4045. + ;;
  4046. + m68k)
  4047. + # FIXME: we need at least 68020 code to build shared libraries, but
  4048. + # adding the `-m68020' flag to GCC prevents building anything better,
  4049. + # like `-m68040'.
  4050. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4051. ;;
  4052. esac
  4053. - fi
  4054. - case $host_cpu in
  4055. - hppa*64*|ia64*)
  4056. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4057. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4058. ;;
  4059. - *)
  4060. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4061. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4062. - # but as the default
  4063. - # location of the library.
  4064. - ;;
  4065. - esac
  4066. - case $cc_basename in
  4067. - CC*)
  4068. - # FIXME: insert proper C++ library support
  4069. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4070. - ;;
  4071. - aCC*)
  4072. - case $host_cpu in
  4073. - hppa*64*)
  4074. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4075. - ;;
  4076. - ia64*)
  4077. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4078. - ;;
  4079. - *)
  4080. - _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'
  4081. - ;;
  4082. - esac
  4083. - # Commands to make compiler produce verbose output that lists
  4084. - # what "hidden" libraries, object files and flags are used when
  4085. - # linking a shared library.
  4086. - #
  4087. - # There doesn't appear to be a way to prevent this compiler from
  4088. - # explicitly linking system object files so we need to strip them
  4089. - # from the output so that they don't get included in the library
  4090. - # dependencies.
  4091. - 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'
  4092. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4093. + # PIC is the default for these OSes.
  4094. + ;;
  4095. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  4096. + # This hack is so that the source file can tell whether it is being
  4097. + # built for inclusion in a dll (and should export symbols for example).
  4098. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4099. + # (--disable-auto-import) libraries
  4100. + m4_if([$1], [GCJ], [],
  4101. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4102. + ;;
  4103. + darwin* | rhapsody*)
  4104. + # PIC is the default on this platform
  4105. + # Common symbols not allowed in MH_DYLIB files
  4106. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4107. + ;;
  4108. + *djgpp*)
  4109. + # DJGPP does not support shared libraries at all
  4110. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4111. + ;;
  4112. + interix[[3-9]]*)
  4113. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4114. + # Instead, we relocate shared libraries at runtime.
  4115. + ;;
  4116. + sysv4*MP*)
  4117. + if test -d /usr/nec; then
  4118. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4119. + fi
  4120. + ;;
  4121. + hpux*)
  4122. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4123. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4124. + # sets the default TLS model and affects inlining.
  4125. + case $host_cpu in
  4126. + hppa*64*)
  4127. ;;
  4128. *)
  4129. - if test "$GXX" = yes; then
  4130. - if test $with_gnu_ld = no; then
  4131. - case $host_cpu in
  4132. - hppa*64*)
  4133. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4134. - ;;
  4135. - ia64*)
  4136. - _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'
  4137. - ;;
  4138. - *)
  4139. - _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'
  4140. - ;;
  4141. - esac
  4142. - fi
  4143. - else
  4144. - # FIXME: insert proper C++ library support
  4145. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4146. - fi
  4147. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4148. ;;
  4149. + esac
  4150. + ;;
  4151. + *qnx* | *nto*)
  4152. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4153. + # it will coredump.
  4154. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4155. + ;;
  4156. + *)
  4157. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4158. + ;;
  4159. esac
  4160. - ;;
  4161. - interix[[3-9]]*)
  4162. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4163. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4164. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4165. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4166. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4167. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  4168. - # default) and relocated if they conflict, which is a slow very memory
  4169. - # consuming and fragmenting process. To avoid this, we pick a random,
  4170. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4171. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4172. - _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'
  4173. - _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'
  4174. - ;;
  4175. - irix5* | irix6*)
  4176. - case $cc_basename in
  4177. - CC*)
  4178. - # SGI C++
  4179. - _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'
  4180. -
  4181. - # Archives containing C++ object files must be created using
  4182. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4183. - # necessary to make sure instantiated templates are included
  4184. - # in the archive.
  4185. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4186. - ;;
  4187. - *)
  4188. - if test "$GXX" = yes; then
  4189. - if test "$with_gnu_ld" = no; then
  4190. - _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'
  4191. - else
  4192. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  4193. - fi
  4194. + else
  4195. + case $host_os in
  4196. + aix[[4-9]]*)
  4197. + # All AIX code is PIC.
  4198. + if test "$host_cpu" = ia64; then
  4199. + # AIX 5 now supports IA64 processor
  4200. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4201. + else
  4202. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4203. fi
  4204. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4205. ;;
  4206. - esac
  4207. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4208. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4209. - ;;
  4210. - linux* | k*bsd*-gnu)
  4211. - case $cc_basename in
  4212. - KCC*)
  4213. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4214. -
  4215. - # KCC will only create a shared library if the output file
  4216. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4217. - # to its proper name (with version) after linking.
  4218. - _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'
  4219. - _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'
  4220. - # Commands to make compiler produce verbose output that lists
  4221. - # what "hidden" libraries, object files and flags are used when
  4222. - # linking a shared library.
  4223. - #
  4224. - # There doesn't appear to be a way to prevent this compiler from
  4225. - # explicitly linking system object files so we need to strip them
  4226. - # from the output so that they don't get included in the library
  4227. - # dependencies.
  4228. - 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'
  4229. -
  4230. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4231. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4232. -
  4233. - # Archives containing C++ object files must be created using
  4234. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4235. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4236. - ;;
  4237. - icpc*)
  4238. - # Intel C++
  4239. - with_gnu_ld=yes
  4240. - # version 8.0 and above of icpc choke on multiply defined symbols
  4241. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  4242. - # earlier do not add the objects themselves.
  4243. - case `$CC -V 2>&1` in
  4244. - *"Version 7."*)
  4245. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4246. - _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'
  4247. - ;;
  4248. - *) # Version 8.0 or newer
  4249. - tmp_idyn=
  4250. - case $host_cpu in
  4251. - ia64*) tmp_idyn=' -i_dynamic';;
  4252. - esac
  4253. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4254. - _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'
  4255. + chorus*)
  4256. + case $cc_basename in
  4257. + cxch68*)
  4258. + # Green Hills C++ Compiler
  4259. + # _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"
  4260. ;;
  4261. esac
  4262. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4263. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4264. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4265. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4266. - ;;
  4267. - pgCC* | pgcpp*)
  4268. - # Portland Group C++ compiler
  4269. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  4270. - _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'
  4271. -
  4272. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4273. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4274. - _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'
  4275. - ;;
  4276. - cxx*)
  4277. - # Compaq C++
  4278. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4279. - _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'
  4280. -
  4281. - runpath_var=LD_RUN_PATH
  4282. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4283. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4284. -
  4285. - # Commands to make compiler produce verbose output that lists
  4286. - # what "hidden" libraries, object files and flags are used when
  4287. - # linking a shared library.
  4288. - #
  4289. - # There doesn't appear to be a way to prevent this compiler from
  4290. - # explicitly linking system object files so we need to strip them
  4291. - # from the output so that they don't get included in the library
  4292. - # dependencies.
  4293. - 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'
  4294. ;;
  4295. - *)
  4296. - case `$CC -V 2>&1 | sed 5q` in
  4297. - *Sun\ C*)
  4298. - # Sun C++ 5.9
  4299. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4300. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4301. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  4302. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4303. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4304. -
  4305. - # Not sure whether something based on
  4306. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  4307. - # would be better.
  4308. - output_verbose_link_cmd='echo'
  4309. -
  4310. - # Archives containing C++ object files must be created using
  4311. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4312. - # necessary to make sure instantiated templates are included
  4313. - # in the archive.
  4314. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4315. - ;;
  4316. + dgux*)
  4317. + case $cc_basename in
  4318. + ec++*)
  4319. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4320. + ;;
  4321. + ghcx*)
  4322. + # Green Hills C++ Compiler
  4323. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4324. + ;;
  4325. + *)
  4326. + ;;
  4327. esac
  4328. ;;
  4329. - esac
  4330. - ;;
  4331. - lynxos*)
  4332. - # FIXME: insert proper C++ library support
  4333. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4334. - ;;
  4335. - m88k*)
  4336. - # FIXME: insert proper C++ library support
  4337. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4338. - ;;
  4339. - mvs*)
  4340. - case $cc_basename in
  4341. - cxx*)
  4342. - # FIXME: insert proper C++ library support
  4343. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4344. - ;;
  4345. - *)
  4346. - # FIXME: insert proper C++ library support
  4347. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4348. + freebsd* | dragonfly*)
  4349. + # FreeBSD uses GNU C++
  4350. ;;
  4351. - esac
  4352. - ;;
  4353. - netbsd*)
  4354. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4355. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4356. - wlarc=
  4357. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4358. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4359. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4360. - fi
  4361. - # Workaround some broken pre-1.5 toolchains
  4362. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  4363. - ;;
  4364. - openbsd2*)
  4365. - # C++ shared libraries are fairly broken
  4366. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4367. - ;;
  4368. - openbsd*)
  4369. - if test -f /usr/libexec/ld.so; then
  4370. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4371. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4372. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4373. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4374. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4375. - _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'
  4376. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4377. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4378. - fi
  4379. - output_verbose_link_cmd='echo'
  4380. - else
  4381. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4382. - fi
  4383. - ;;
  4384. - osf3*)
  4385. - case $cc_basename in
  4386. - KCC*)
  4387. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4388. -
  4389. - # KCC will only create a shared library if the output file
  4390. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4391. - # to its proper name (with version) after linking.
  4392. - _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'
  4393. -
  4394. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4395. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4396. -
  4397. - # Archives containing C++ object files must be created using
  4398. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4399. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4400. -
  4401. - ;;
  4402. - RCC*)
  4403. - # Rational C++ 2.4.1
  4404. - # FIXME: insert proper C++ library support
  4405. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4406. - ;;
  4407. - cxx*)
  4408. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4409. - _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'
  4410. -
  4411. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4412. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4413. -
  4414. - # Commands to make compiler produce verbose output that lists
  4415. - # what "hidden" libraries, object files and flags are used when
  4416. - # linking a shared library.
  4417. - #
  4418. - # There doesn't appear to be a way to prevent this compiler from
  4419. - # explicitly linking system object files so we need to strip them
  4420. - # from the output so that they don't get included in the library
  4421. - # dependencies.
  4422. - 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'
  4423. + hpux9* | hpux10* | hpux11*)
  4424. + case $cc_basename in
  4425. + CC*)
  4426. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4427. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4428. + if test "$host_cpu" != ia64; then
  4429. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4430. + fi
  4431. + ;;
  4432. + aCC*)
  4433. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4434. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4435. + case $host_cpu in
  4436. + hppa*64*|ia64*)
  4437. + # +Z the default
  4438. + ;;
  4439. + *)
  4440. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4441. + ;;
  4442. + esac
  4443. + ;;
  4444. + *)
  4445. + ;;
  4446. + esac
  4447. ;;
  4448. - *)
  4449. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4450. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4451. - _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'
  4452. -
  4453. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4454. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4455. -
  4456. - # Commands to make compiler produce verbose output that lists
  4457. - # what "hidden" libraries, object files and flags are used when
  4458. - # linking a shared library.
  4459. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4460. -
  4461. - else
  4462. - # FIXME: insert proper C++ library support
  4463. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4464. - fi
  4465. + interix*)
  4466. + # This is c89, which is MS Visual C++ (no shared libs)
  4467. + # Anyone wants to do a port?
  4468. ;;
  4469. - esac
  4470. - ;;
  4471. - osf4* | osf5*)
  4472. - case $cc_basename in
  4473. - KCC*)
  4474. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4475. -
  4476. - # KCC will only create a shared library if the output file
  4477. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4478. - # to its proper name (with version) after linking.
  4479. - _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'
  4480. -
  4481. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4482. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4483. -
  4484. - # Archives containing C++ object files must be created using
  4485. - # the KAI C++ compiler.
  4486. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4487. - ;;
  4488. - RCC*)
  4489. - # Rational C++ 2.4.1
  4490. - # FIXME: insert proper C++ library support
  4491. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4492. - ;;
  4493. - cxx*)
  4494. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4495. - _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'
  4496. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4497. - echo "-hidden">> $lib.exp~
  4498. - $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~
  4499. - $rm $lib.exp'
  4500. -
  4501. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4502. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4503. -
  4504. - # Commands to make compiler produce verbose output that lists
  4505. - # what "hidden" libraries, object files and flags are used when
  4506. - # linking a shared library.
  4507. - #
  4508. - # There doesn't appear to be a way to prevent this compiler from
  4509. - # explicitly linking system object files so we need to strip them
  4510. - # from the output so that they don't get included in the library
  4511. - # dependencies.
  4512. - 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'
  4513. + irix5* | irix6* | nonstopux*)
  4514. + case $cc_basename in
  4515. + CC*)
  4516. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4517. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4518. + # CC pic flag -KPIC is the default.
  4519. + ;;
  4520. + *)
  4521. + ;;
  4522. + esac
  4523. ;;
  4524. - *)
  4525. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4526. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4527. - _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'
  4528. -
  4529. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4530. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4531. -
  4532. - # Commands to make compiler produce verbose output that lists
  4533. - # what "hidden" libraries, object files and flags are used when
  4534. - # linking a shared library.
  4535. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4536. -
  4537. - else
  4538. - # FIXME: insert proper C++ library support
  4539. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4540. - fi
  4541. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4542. + case $cc_basename in
  4543. + KCC*)
  4544. + # KAI C++ Compiler
  4545. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4546. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4547. + ;;
  4548. + ecpc* )
  4549. + # old Intel C++ for x86_64 which still supported -KPIC.
  4550. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4551. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4552. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4553. + ;;
  4554. + icpc* )
  4555. + # Intel C++, used to be incompatible with GCC.
  4556. + # ICC 10 doesn't accept -KPIC any more.
  4557. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4558. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4559. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4560. + ;;
  4561. + pgCC* | pgcpp*)
  4562. + # Portland Group C++ compiler
  4563. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4564. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4565. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4566. + ;;
  4567. + cxx*)
  4568. + # Compaq C++
  4569. + # Make sure the PIC flag is empty. It appears that all Alpha
  4570. + # Linux and Compaq Tru64 Unix objects are PIC.
  4571. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4572. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4573. + ;;
  4574. + xlc* | xlC*)
  4575. + # IBM XL 8.0 on PPC
  4576. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4577. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4578. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4579. + ;;
  4580. + *)
  4581. + case `$CC -V 2>&1 | sed 5q` in
  4582. + *Sun\ C*)
  4583. + # Sun C++ 5.9
  4584. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4585. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4586. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4587. + ;;
  4588. + esac
  4589. + ;;
  4590. + esac
  4591. ;;
  4592. - esac
  4593. - ;;
  4594. - psos*)
  4595. - # FIXME: insert proper C++ library support
  4596. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4597. - ;;
  4598. - sunos4*)
  4599. - case $cc_basename in
  4600. - CC*)
  4601. - # Sun C++ 4.x
  4602. - # FIXME: insert proper C++ library support
  4603. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4604. - ;;
  4605. - lcc*)
  4606. - # Lucid
  4607. - # FIXME: insert proper C++ library support
  4608. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4609. + lynxos*)
  4610. ;;
  4611. - *)
  4612. - # FIXME: insert proper C++ library support
  4613. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4614. + m88k*)
  4615. ;;
  4616. - esac
  4617. - ;;
  4618. - solaris*)
  4619. - case $cc_basename in
  4620. - CC*)
  4621. - # Sun C++ 4.2, 5.x and Centerline C++
  4622. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  4623. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4624. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4625. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4626. - $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'
  4627. -
  4628. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4629. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4630. - case $host_os in
  4631. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4632. + mvs*)
  4633. + case $cc_basename in
  4634. + cxx*)
  4635. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4636. + ;;
  4637. *)
  4638. - # The compiler driver will combine and reorder linker options,
  4639. - # but understands `-z linker_flag'.
  4640. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  4641. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4642. ;;
  4643. esac
  4644. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4645. -
  4646. - output_verbose_link_cmd='echo'
  4647. -
  4648. - # Archives containing C++ object files must be created using
  4649. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4650. - # necessary to make sure instantiated templates are included
  4651. - # in the archive.
  4652. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4653. - ;;
  4654. - gcx*)
  4655. - # Green Hills C++ Compiler
  4656. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4657. -
  4658. - # The C++ compiler must be used to create the archive.
  4659. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  4660. ;;
  4661. - *)
  4662. - # GNU C++ compiler with Solaris linker
  4663. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4664. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  4665. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  4666. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4667. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4668. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4669. -
  4670. - # Commands to make compiler produce verbose output that lists
  4671. - # what "hidden" libraries, object files and flags are used when
  4672. - # linking a shared library.
  4673. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4674. - else
  4675. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  4676. - # platform.
  4677. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4678. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4679. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4680. -
  4681. - # Commands to make compiler produce verbose output that lists
  4682. - # what "hidden" libraries, object files and flags are used when
  4683. - # linking a shared library.
  4684. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4685. - fi
  4686. -
  4687. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  4688. - case $host_os in
  4689. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4690. + netbsd* | netbsdelf*-gnu)
  4691. + ;;
  4692. + *qnx* | *nto*)
  4693. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4694. + # it will coredump.
  4695. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4696. + ;;
  4697. + osf3* | osf4* | osf5*)
  4698. + case $cc_basename in
  4699. + KCC*)
  4700. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4701. + ;;
  4702. + RCC*)
  4703. + # Rational C++ 2.4.1
  4704. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4705. + ;;
  4706. + cxx*)
  4707. + # Digital/Compaq C++
  4708. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4709. + # Make sure the PIC flag is empty. It appears that all Alpha
  4710. + # Linux and Compaq Tru64 Unix objects are PIC.
  4711. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4712. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4713. + ;;
  4714. *)
  4715. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4716. ;;
  4717. - esac
  4718. - fi
  4719. + esac
  4720. ;;
  4721. - esac
  4722. - ;;
  4723. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4724. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4725. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4726. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4727. - runpath_var='LD_RUN_PATH'
  4728. -
  4729. - case $cc_basename in
  4730. - CC*)
  4731. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4732. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4733. + psos*)
  4734. ;;
  4735. - *)
  4736. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4737. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4738. + solaris*)
  4739. + case $cc_basename in
  4740. + CC*)
  4741. + # Sun C++ 4.2, 5.x and Centerline C++
  4742. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4743. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4744. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4745. + ;;
  4746. + gcx*)
  4747. + # Green Hills C++ Compiler
  4748. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4749. + ;;
  4750. + *)
  4751. + ;;
  4752. + esac
  4753. ;;
  4754. - esac
  4755. - ;;
  4756. - sysv5* | sco3.2v5* | sco5v6*)
  4757. - # Note: We can NOT use -z defs as we might desire, because we do not
  4758. - # link with -lc, and that would cause any symbols used from libc to
  4759. - # always be unresolved, which means just about no library would
  4760. - # ever link correctly. If we're not using GNU ld we use -z text
  4761. - # though, which does catch some bad symbols but isn't as heavy-handed
  4762. - # as -z defs.
  4763. - # For security reasons, it is highly recommended that you always
  4764. - # use absolute paths for naming shared libraries, and exclude the
  4765. - # DT_RUNPATH tag from executables and libraries. But doing so
  4766. - # requires that you compile everything twice, which is a pain.
  4767. - # So that behaviour is only enabled if SCOABSPATH is set to a
  4768. - # non-empty value in the environment. Most likely only useful for
  4769. - # creating official distributions of packages.
  4770. - # This is a hack until libtool officially supports absolute path
  4771. - # names for shared libraries.
  4772. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4773. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4774. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4775. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4776. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4777. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4778. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4779. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4780. - runpath_var='LD_RUN_PATH'
  4781. -
  4782. - case $cc_basename in
  4783. - CC*)
  4784. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4785. - _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'
  4786. + sunos4*)
  4787. + case $cc_basename in
  4788. + CC*)
  4789. + # Sun C++ 4.x
  4790. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4791. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4792. + ;;
  4793. + lcc*)
  4794. + # Lucid
  4795. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4796. + ;;
  4797. + *)
  4798. + ;;
  4799. + esac
  4800. ;;
  4801. - *)
  4802. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4803. - _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'
  4804. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4805. + case $cc_basename in
  4806. + CC*)
  4807. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4808. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4809. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4810. + ;;
  4811. + esac
  4812. ;;
  4813. - esac
  4814. - ;;
  4815. - tandem*)
  4816. - case $cc_basename in
  4817. - NCC*)
  4818. - # NonStop-UX NCC 3.20
  4819. - # FIXME: insert proper C++ library support
  4820. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4821. + tandem*)
  4822. + case $cc_basename in
  4823. + NCC*)
  4824. + # NonStop-UX NCC 3.20
  4825. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4826. + ;;
  4827. + *)
  4828. + ;;
  4829. + esac
  4830. + ;;
  4831. + vxworks*)
  4832. ;;
  4833. *)
  4834. - # FIXME: insert proper C++ library support
  4835. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4836. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4837. ;;
  4838. esac
  4839. - ;;
  4840. - vxworks*)
  4841. - # FIXME: insert proper C++ library support
  4842. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4843. - ;;
  4844. - *)
  4845. - # FIXME: insert proper C++ library support
  4846. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4847. - ;;
  4848. -esac
  4849. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4850. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4851. -
  4852. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  4853. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4854. -
  4855. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  4856. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4857. -AC_LIBTOOL_PROG_CC_C_O($1)
  4858. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4859. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4860. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4861. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4862. -
  4863. -AC_LIBTOOL_CONFIG($1)
  4864. + fi
  4865. +],
  4866. +[
  4867. + if test "$GCC" = yes; then
  4868. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4869. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4870. -AC_LANG_POP
  4871. -CC=$lt_save_CC
  4872. -LDCXX=$LD
  4873. -LD=$lt_save_LD
  4874. -GCC=$lt_save_GCC
  4875. -with_gnu_ldcxx=$with_gnu_ld
  4876. -with_gnu_ld=$lt_save_with_gnu_ld
  4877. -lt_cv_path_LDCXX=$lt_cv_path_LD
  4878. -lt_cv_path_LD=$lt_save_path_LD
  4879. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  4880. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  4881. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  4882. + case $host_os in
  4883. + aix*)
  4884. + # All AIX code is PIC.
  4885. + if test "$host_cpu" = ia64; then
  4886. + # AIX 5 now supports IA64 processor
  4887. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4888. + fi
  4889. + ;;
  4890. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  4891. -# ------------------------------------
  4892. -# Figure out "hidden" library dependencies from verbose
  4893. -# compiler output when linking a shared library.
  4894. -# Parse the compiler output and extract the necessary
  4895. -# objects, libraries and library flags.
  4896. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  4897. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4898. -dnl we can't use the lt_simple_compile_test_code here,
  4899. -dnl because it contains code intended for an executable,
  4900. -dnl not a library. It's possible we should let each
  4901. -dnl tag define a new lt_????_link_test_code variable,
  4902. -dnl but it's only used here...
  4903. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  4904. -int a;
  4905. -void foo (void) { a = 0; }
  4906. -EOF
  4907. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  4908. -class Foo
  4909. -{
  4910. -public:
  4911. - Foo (void) { a = 0; }
  4912. -private:
  4913. - int a;
  4914. -};
  4915. -EOF
  4916. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  4917. - subroutine foo
  4918. - implicit none
  4919. - integer*4 a
  4920. - a=0
  4921. - return
  4922. - end
  4923. -EOF
  4924. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  4925. -public class foo {
  4926. - private int a;
  4927. - public void bar (void) {
  4928. - a = 0;
  4929. - }
  4930. -};
  4931. -EOF
  4932. -])
  4933. -dnl Parse the compiler output and extract the necessary
  4934. -dnl objects, libraries and library flags.
  4935. -if AC_TRY_EVAL(ac_compile); then
  4936. - # Parse the compiler output and extract the necessary
  4937. - # objects, libraries and library flags.
  4938. + amigaos*)
  4939. + case $host_cpu in
  4940. + powerpc)
  4941. + # see comment about AmigaOS4 .so support
  4942. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4943. + ;;
  4944. + m68k)
  4945. + # FIXME: we need at least 68020 code to build shared libraries, but
  4946. + # adding the `-m68020' flag to GCC prevents building anything better,
  4947. + # like `-m68040'.
  4948. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4949. + ;;
  4950. + esac
  4951. + ;;
  4952. - # Sentinel used to keep track of whether or not we are before
  4953. - # the conftest object file.
  4954. - pre_test_object_deps_done=no
  4955. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4956. + # PIC is the default for these OSes.
  4957. + ;;
  4958. - # The `*' in the case matches for architectures that use `case' in
  4959. - # $output_verbose_cmd can trigger glob expansion during the loop
  4960. - # eval without this substitution.
  4961. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  4962. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4963. + # This hack is so that the source file can tell whether it is being
  4964. + # built for inclusion in a dll (and should export symbols for example).
  4965. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4966. + # (--disable-auto-import) libraries
  4967. + m4_if([$1], [GCJ], [],
  4968. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4969. + ;;
  4970. - for p in `eval $output_verbose_link_cmd`; do
  4971. - case $p in
  4972. + darwin* | rhapsody*)
  4973. + # PIC is the default on this platform
  4974. + # Common symbols not allowed in MH_DYLIB files
  4975. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4976. + ;;
  4977. - -L* | -R* | -l*)
  4978. - # Some compilers place space between "-{L,R}" and the path.
  4979. - # Remove the space.
  4980. - if test $p = "-L" \
  4981. - || test $p = "-R"; then
  4982. - prev=$p
  4983. - continue
  4984. - else
  4985. - prev=
  4986. - fi
  4987. + hpux*)
  4988. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4989. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4990. + # sets the default TLS model and affects inlining.
  4991. + case $host_cpu in
  4992. + hppa*64*)
  4993. + # +Z the default
  4994. + ;;
  4995. + *)
  4996. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4997. + ;;
  4998. + esac
  4999. + ;;
  5000. - if test "$pre_test_object_deps_done" = no; then
  5001. - case $p in
  5002. - -L* | -R*)
  5003. - # Internal compiler library paths should come after those
  5004. - # provided the user. The postdeps already come after the
  5005. - # user supplied libs so there is no need to process them.
  5006. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5007. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5008. - else
  5009. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5010. - fi
  5011. - ;;
  5012. - # The "-l" case would never come before the object being
  5013. - # linked, so don't bother handling this case.
  5014. - esac
  5015. - else
  5016. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5017. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5018. - else
  5019. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5020. - fi
  5021. - fi
  5022. - ;;
  5023. + interix[[3-9]]*)
  5024. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5025. + # Instead, we relocate shared libraries at runtime.
  5026. + ;;
  5027. - *.$objext)
  5028. - # This assumes that the test object file only shows up
  5029. - # once in the compiler output.
  5030. - if test "$p" = "conftest.$objext"; then
  5031. - pre_test_object_deps_done=yes
  5032. - continue
  5033. - fi
  5034. + msdosdjgpp*)
  5035. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  5036. + # on systems that don't support them.
  5037. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5038. + enable_shared=no
  5039. + ;;
  5040. - if test "$pre_test_object_deps_done" = no; then
  5041. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5042. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5043. - else
  5044. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5045. - fi
  5046. - else
  5047. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5048. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5049. - else
  5050. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5051. - fi
  5052. - fi
  5053. - ;;
  5054. + *nto* | *qnx*)
  5055. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5056. + # it will coredump.
  5057. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5058. + ;;
  5059. - *) ;; # Ignore the rest.
  5060. + sysv4*MP*)
  5061. + if test -d /usr/nec; then
  5062. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5063. + fi
  5064. + ;;
  5065. + *)
  5066. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5067. + ;;
  5068. esac
  5069. - done
  5070. -
  5071. - # Clean up.
  5072. - rm -f a.out a.exe
  5073. -else
  5074. - echo "libtool.m4: error: problem compiling $1 test program"
  5075. -fi
  5076. + else
  5077. + # PORTME Check for flag to pass linker flags through the system compiler.
  5078. + case $host_os in
  5079. + aix*)
  5080. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5081. + if test "$host_cpu" = ia64; then
  5082. + # AIX 5 now supports IA64 processor
  5083. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5084. + else
  5085. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5086. + fi
  5087. + ;;
  5088. -$rm -f confest.$objext
  5089. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5090. + # This hack is so that the source file can tell whether it is being
  5091. + # built for inclusion in a dll (and should export symbols for example).
  5092. + m4_if([$1], [GCJ], [],
  5093. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5094. + ;;
  5095. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  5096. -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5097. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  5098. -fi
  5099. + hpux9* | hpux10* | hpux11*)
  5100. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5101. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5102. + # not for PA HP-UX.
  5103. + case $host_cpu in
  5104. + hppa*64*|ia64*)
  5105. + # +Z the default
  5106. + ;;
  5107. + *)
  5108. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5109. + ;;
  5110. + esac
  5111. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5112. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5113. + ;;
  5114. -# PORTME: override above test on systems where it is broken
  5115. -ifelse([$1],[CXX],
  5116. -[case $host_os in
  5117. -interix[[3-9]]*)
  5118. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  5119. - # hack all around it, let's just trust "g++" to DTRT.
  5120. - _LT_AC_TAGVAR(predep_objects,$1)=
  5121. - _LT_AC_TAGVAR(postdep_objects,$1)=
  5122. - _LT_AC_TAGVAR(postdeps,$1)=
  5123. - ;;
  5124. + irix5* | irix6* | nonstopux*)
  5125. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5126. + # PIC (with -KPIC) is the default.
  5127. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5128. + ;;
  5129. -linux*)
  5130. - case `$CC -V 2>&1 | sed 5q` in
  5131. - *Sun\ C*)
  5132. - # Sun C++ 5.9
  5133. - #
  5134. - # The more standards-conforming stlport4 library is
  5135. - # incompatible with the Cstd library. Avoid specifying
  5136. - # it if it's in CXXFLAGS. Ignore libCrun as
  5137. - # -library=stlport4 depends on it.
  5138. - case " $CXX $CXXFLAGS " in
  5139. - *" -library=stlport4 "*)
  5140. - solaris_use_stlport4=yes
  5141. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5142. + case $cc_basename in
  5143. + # old Intel for x86_64 which still supported -KPIC.
  5144. + ecc*)
  5145. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5146. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5147. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5148. + ;;
  5149. + # icc used to be incompatible with GCC.
  5150. + # ICC 10 doesn't accept -KPIC any more.
  5151. + icc* | ifort*)
  5152. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5153. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5154. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5155. + ;;
  5156. + # Lahey Fortran 8.1.
  5157. + lf95*)
  5158. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5159. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  5160. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  5161. + ;;
  5162. + pgcc* | pgf77* | pgf90* | pgf95*)
  5163. + # Portland Group compilers (*not* the Pentium gcc compiler,
  5164. + # which looks to be a dead project)
  5165. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5166. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5167. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5168. + ;;
  5169. + ccc*)
  5170. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5171. + # All Alpha code is PIC.
  5172. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5173. + ;;
  5174. + xl*)
  5175. + # IBM XL C 8.0/Fortran 10.1 on PPC
  5176. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5177. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5178. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5179. + ;;
  5180. + *)
  5181. + case `$CC -V 2>&1 | sed 5q` in
  5182. + *Sun\ C*)
  5183. + # Sun C 5.9
  5184. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5185. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5186. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5187. + ;;
  5188. + *Sun\ F*)
  5189. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5190. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5191. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5192. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  5193. + ;;
  5194. + esac
  5195. + ;;
  5196. + esac
  5197. ;;
  5198. - esac
  5199. - if test "$solaris_use_stlport4" != yes; then
  5200. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5201. - fi
  5202. - ;;
  5203. - esac
  5204. - ;;
  5205. -solaris*)
  5206. - case $cc_basename in
  5207. - CC*)
  5208. - # The more standards-conforming stlport4 library is
  5209. - # incompatible with the Cstd library. Avoid specifying
  5210. - # it if it's in CXXFLAGS. Ignore libCrun as
  5211. - # -library=stlport4 depends on it.
  5212. - case " $CXX $CXXFLAGS " in
  5213. - *" -library=stlport4 "*)
  5214. - solaris_use_stlport4=yes
  5215. + newsos6)
  5216. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5217. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5218. ;;
  5219. - esac
  5220. - # Adding this requires a known-good setup of shared libraries for
  5221. - # Sun compiler versions before 5.6, else PIC objects from an old
  5222. - # archive will be linked into the output, leading to subtle bugs.
  5223. - if test "$solaris_use_stlport4" != yes; then
  5224. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5225. - fi
  5226. - ;;
  5227. - esac
  5228. - ;;
  5229. -esac
  5230. -])
  5231. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5232. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5233. -esac
  5234. -])# AC_LIBTOOL_POSTDEP_PREDEP
  5235. + *nto* | *qnx*)
  5236. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5237. + # it will coredump.
  5238. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5239. + ;;
  5240. -# AC_LIBTOOL_LANG_F77_CONFIG
  5241. -# --------------------------
  5242. -# Ensure that the configuration vars for the C compiler are
  5243. -# suitably defined. Those variables are subsequently used by
  5244. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5245. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5246. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5247. -[AC_REQUIRE([AC_PROG_F77])
  5248. -AC_LANG_PUSH(Fortran 77)
  5249. + osf3* | osf4* | osf5*)
  5250. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5251. + # All OSF/1 code is PIC.
  5252. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5253. + ;;
  5254. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5255. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5256. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5257. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5258. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5259. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5260. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5261. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5262. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5263. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5264. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5265. -_LT_AC_TAGVAR(module_cmds, $1)=
  5266. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5267. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5268. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5269. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5270. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5271. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5272. + rdos*)
  5273. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5274. + ;;
  5275. -# Source file extension for f77 test sources.
  5276. -ac_ext=f
  5277. -
  5278. -# Object file extension for compiled f77 test sources.
  5279. -objext=o
  5280. -_LT_AC_TAGVAR(objext, $1)=$objext
  5281. -
  5282. -# Code to be used in simple compile tests
  5283. -lt_simple_compile_test_code="\
  5284. - subroutine t
  5285. - return
  5286. - end
  5287. -"
  5288. + solaris*)
  5289. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5290. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5291. + case $cc_basename in
  5292. + f77* | f90* | f95*)
  5293. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5294. + *)
  5295. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5296. + esac
  5297. + ;;
  5298. -# Code to be used in simple link tests
  5299. -lt_simple_link_test_code="\
  5300. - program t
  5301. - end
  5302. -"
  5303. + sunos4*)
  5304. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5305. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5306. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5307. + ;;
  5308. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5309. -_LT_AC_SYS_COMPILER
  5310. + sysv4 | sysv4.2uw2* | sysv4.3*)
  5311. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5312. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5313. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5314. + ;;
  5315. -# save warnings/boilerplate of simple test code
  5316. -_LT_COMPILER_BOILERPLATE
  5317. -_LT_LINKER_BOILERPLATE
  5318. + sysv4*MP*)
  5319. + if test -d /usr/nec ;then
  5320. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5321. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5322. + fi
  5323. + ;;
  5324. -# Allow CC to be a program name with arguments.
  5325. -lt_save_CC="$CC"
  5326. -CC=${F77-"f77"}
  5327. -compiler=$CC
  5328. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5329. -_LT_CC_BASENAME([$compiler])
  5330. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5331. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5332. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5333. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5334. + ;;
  5335. -AC_MSG_CHECKING([if libtool supports shared libraries])
  5336. -AC_MSG_RESULT([$can_build_shared])
  5337. + unicos*)
  5338. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5339. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5340. + ;;
  5341. -AC_MSG_CHECKING([whether to build shared libraries])
  5342. -test "$can_build_shared" = "no" && enable_shared=no
  5343. + uts4*)
  5344. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5345. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5346. + ;;
  5347. -# On AIX, shared libraries and static libraries use the same namespace, and
  5348. -# are all built from PIC.
  5349. -case $host_os in
  5350. -aix3*)
  5351. - test "$enable_shared" = yes && enable_static=no
  5352. - if test -n "$RANLIB"; then
  5353. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5354. - postinstall_cmds='$RANLIB $lib'
  5355. - fi
  5356. - ;;
  5357. -aix[[4-9]]*)
  5358. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5359. - test "$enable_shared" = yes && enable_static=no
  5360. + *)
  5361. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5362. + ;;
  5363. + esac
  5364. fi
  5365. - ;;
  5366. +])
  5367. +case $host_os in
  5368. + # For platforms which do not support PIC, -DPIC is meaningless:
  5369. + *djgpp*)
  5370. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5371. + ;;
  5372. + *)
  5373. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  5374. + ;;
  5375. esac
  5376. -AC_MSG_RESULT([$enable_shared])
  5377. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  5378. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  5379. + [How to pass a linker flag through the compiler])
  5380. -AC_MSG_CHECKING([whether to build static libraries])
  5381. -# Make sure either enable_shared or enable_static is yes.
  5382. -test "$enable_shared" = yes || enable_static=yes
  5383. -AC_MSG_RESULT([$enable_static])
  5384. -
  5385. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  5386. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5387. -
  5388. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5389. -AC_LIBTOOL_PROG_CC_C_O($1)
  5390. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5391. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5392. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5393. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5394. -
  5395. -AC_LIBTOOL_CONFIG($1)
  5396. +#
  5397. +# Check to make sure the PIC flag actually works.
  5398. +#
  5399. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5400. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  5401. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  5402. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  5403. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  5404. + "" | " "*) ;;
  5405. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5406. + esac],
  5407. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5408. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5409. +fi
  5410. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  5411. + [Additional compiler flags for building library objects])
  5412. -AC_LANG_POP
  5413. -CC="$lt_save_CC"
  5414. -])# AC_LIBTOOL_LANG_F77_CONFIG
  5415. +#
  5416. +# Check to make sure the static flag actually works.
  5417. +#
  5418. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  5419. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5420. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5421. + $lt_tmp_static_flag,
  5422. + [],
  5423. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  5424. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  5425. + [Compiler flag to prevent dynamic linking])
  5426. +])# _LT_COMPILER_PIC
  5427. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  5428. -# --------------------------
  5429. -# Ensure that the configuration vars for the C compiler are
  5430. -# suitably defined. Those variables are subsequently used by
  5431. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5432. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5433. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5434. -[AC_LANG_SAVE
  5435. +# _LT_LINKER_SHLIBS([TAGNAME])
  5436. +# ----------------------------
  5437. +# See if the linker supports building shared libraries.
  5438. +m4_defun([_LT_LINKER_SHLIBS],
  5439. +[AC_REQUIRE([LT_PATH_LD])dnl
  5440. +AC_REQUIRE([LT_PATH_NM])dnl
  5441. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5442. +m4_require([_LT_DECL_EGREP])dnl
  5443. +m4_require([_LT_DECL_SED])dnl
  5444. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  5445. +m4_require([_LT_TAG_COMPILER])dnl
  5446. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5447. +m4_if([$1], [CXX], [
  5448. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5449. + case $host_os in
  5450. + aix[[4-9]]*)
  5451. + # If we're using GNU nm, then we don't want the "-C" option.
  5452. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5453. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5454. + _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'
  5455. + else
  5456. + _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'
  5457. + fi
  5458. + ;;
  5459. + pw32*)
  5460. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5461. + ;;
  5462. + cygwin* | mingw* | cegcc*)
  5463. + _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'
  5464. + ;;
  5465. + linux* | k*bsd*-gnu)
  5466. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5467. + ;;
  5468. + *)
  5469. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5470. + ;;
  5471. + esac
  5472. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5473. +], [
  5474. + runpath_var=
  5475. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5476. + _LT_TAGVAR(always_export_symbols, $1)=no
  5477. + _LT_TAGVAR(archive_cmds, $1)=
  5478. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  5479. + _LT_TAGVAR(compiler_needs_object, $1)=no
  5480. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5481. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5482. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5483. + _LT_TAGVAR(hardcode_automatic, $1)=no
  5484. + _LT_TAGVAR(hardcode_direct, $1)=no
  5485. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5486. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5487. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5488. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5489. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  5490. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5491. + _LT_TAGVAR(inherit_rpath, $1)=no
  5492. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5493. + _LT_TAGVAR(module_cmds, $1)=
  5494. + _LT_TAGVAR(module_expsym_cmds, $1)=
  5495. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  5496. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5497. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  5498. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5499. + # include_expsyms should be a list of space-separated symbols to be *always*
  5500. + # included in the symbol list
  5501. + _LT_TAGVAR(include_expsyms, $1)=
  5502. + # exclude_expsyms can be an extended regexp of symbols to exclude
  5503. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5504. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5505. + # as well as any symbol that contains `d'.
  5506. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5507. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5508. + # platforms (ab)use it in PIC code, but their linkers get confused if
  5509. + # the symbol is explicitly referenced. Since portable code cannot
  5510. + # rely on this symbol name, it's probably fine to never include it in
  5511. + # preloaded symbol tables.
  5512. + # Exclude shared library initialization/finalization symbols.
  5513. +dnl Note also adjust exclude_expsyms for C++ above.
  5514. + extract_expsyms_cmds=
  5515. -# Source file extension for Java test sources.
  5516. -ac_ext=java
  5517. + case $host_os in
  5518. + cygwin* | mingw* | pw32* | cegcc*)
  5519. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5520. + # When not using gcc, we currently assume that we are using
  5521. + # Microsoft Visual C++.
  5522. + if test "$GCC" != yes; then
  5523. + with_gnu_ld=no
  5524. + fi
  5525. + ;;
  5526. + interix*)
  5527. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  5528. + with_gnu_ld=yes
  5529. + ;;
  5530. + openbsd*)
  5531. + with_gnu_ld=no
  5532. + ;;
  5533. + linux* | k*bsd*-gnu)
  5534. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5535. + ;;
  5536. + esac
  5537. -# Object file extension for compiled Java test sources.
  5538. -objext=o
  5539. -_LT_AC_TAGVAR(objext, $1)=$objext
  5540. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5541. + if test "$with_gnu_ld" = yes; then
  5542. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5543. + wlarc='${wl}'
  5544. -# Code to be used in simple compile tests
  5545. -lt_simple_compile_test_code="class foo {}"
  5546. + # Set some defaults for GNU ld with shared library support. These
  5547. + # are reset later if shared libraries are not supported. Putting them
  5548. + # here allows them to be overridden if necessary.
  5549. + runpath_var=LD_RUN_PATH
  5550. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5551. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5552. + # ancient GNU ld didn't support --whole-archive et. al.
  5553. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5554. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5555. + else
  5556. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5557. + fi
  5558. + supports_anon_versioning=no
  5559. + case `$LD -v 2>&1` in
  5560. + *GNU\ gold*) supports_anon_versioning=yes ;;
  5561. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5562. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5563. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5564. + *\ 2.11.*) ;; # other 2.11 versions
  5565. + *) supports_anon_versioning=yes ;;
  5566. + esac
  5567. -# Code to be used in simple link tests
  5568. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  5569. + # See if GNU ld supports shared libraries.
  5570. + case $host_os in
  5571. + aix[[3-9]]*)
  5572. + # On AIX/PPC, the GNU linker is very broken
  5573. + if test "$host_cpu" != ia64; then
  5574. + _LT_TAGVAR(ld_shlibs, $1)=no
  5575. + cat <<_LT_EOF 1>&2
  5576. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5577. -_LT_AC_SYS_COMPILER
  5578. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5579. +*** to be unable to reliably create shared libraries on AIX.
  5580. +*** Therefore, libtool is disabling shared libraries support. If you
  5581. +*** really care for shared libraries, you may want to modify your PATH
  5582. +*** so that a non-GNU linker is found, and then restart.
  5583. -# save warnings/boilerplate of simple test code
  5584. -_LT_COMPILER_BOILERPLATE
  5585. -_LT_LINKER_BOILERPLATE
  5586. +_LT_EOF
  5587. + fi
  5588. + ;;
  5589. -# Allow CC to be a program name with arguments.
  5590. -lt_save_CC="$CC"
  5591. -CC=${GCJ-"gcj"}
  5592. -compiler=$CC
  5593. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5594. -_LT_CC_BASENAME([$compiler])
  5595. + amigaos*)
  5596. + case $host_cpu in
  5597. + powerpc)
  5598. + # see comment about AmigaOS4 .so support
  5599. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5600. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5601. + ;;
  5602. + m68k)
  5603. + _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)'
  5604. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5605. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5606. + ;;
  5607. + esac
  5608. + ;;
  5609. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5610. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5611. + beos*)
  5612. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5613. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5614. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5615. + # support --undefined. This deserves some investigation. FIXME
  5616. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5617. + else
  5618. + _LT_TAGVAR(ld_shlibs, $1)=no
  5619. + fi
  5620. + ;;
  5621. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5622. + cygwin* | mingw* | pw32* | cegcc*)
  5623. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5624. + # as there is no search path for DLLs.
  5625. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5626. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5627. + _LT_TAGVAR(always_export_symbols, $1)=no
  5628. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5629. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5630. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5631. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5632. -AC_LIBTOOL_PROG_CC_C_O($1)
  5633. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5634. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5635. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5636. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5637. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5638. + _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'
  5639. + # If the export-symbols file already is a .def file (1st line
  5640. + # is EXPORTS), use it as is; otherwise, prepend...
  5641. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5642. + cp $export_symbols $output_objdir/$soname.def;
  5643. + else
  5644. + echo EXPORTS > $output_objdir/$soname.def;
  5645. + cat $export_symbols >> $output_objdir/$soname.def;
  5646. + fi~
  5647. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5648. + else
  5649. + _LT_TAGVAR(ld_shlibs, $1)=no
  5650. + fi
  5651. + ;;
  5652. -AC_LIBTOOL_CONFIG($1)
  5653. + interix[[3-9]]*)
  5654. + _LT_TAGVAR(hardcode_direct, $1)=no
  5655. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5656. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5657. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5658. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5659. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5660. + # default) and relocated if they conflict, which is a slow very memory
  5661. + # consuming and fragmenting process. To avoid this, we pick a random,
  5662. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5663. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5664. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5665. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5666. + ;;
  5667. -AC_LANG_RESTORE
  5668. -CC="$lt_save_CC"
  5669. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  5670. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5671. + tmp_diet=no
  5672. + if test "$host_os" = linux-dietlibc; then
  5673. + case $cc_basename in
  5674. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5675. + esac
  5676. + fi
  5677. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5678. + && test "$tmp_diet" = no
  5679. + then
  5680. + tmp_addflag=
  5681. + tmp_sharedflag='-shared'
  5682. + case $cc_basename,$host_cpu in
  5683. + pgcc*) # Portland Group C compiler
  5684. + _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'
  5685. + tmp_addflag=' $pic_flag'
  5686. + ;;
  5687. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5688. + _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'
  5689. + tmp_addflag=' $pic_flag -Mnomain' ;;
  5690. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5691. + tmp_addflag=' -i_dynamic' ;;
  5692. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5693. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  5694. + ifc* | ifort*) # Intel Fortran compiler
  5695. + tmp_addflag=' -nofor_main' ;;
  5696. + lf95*) # Lahey Fortran 8.1
  5697. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5698. + tmp_sharedflag='--shared' ;;
  5699. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5700. + tmp_sharedflag='-qmkshrobj'
  5701. + tmp_addflag= ;;
  5702. + esac
  5703. + case `$CC -V 2>&1 | sed 5q` in
  5704. + *Sun\ C*) # Sun C 5.9
  5705. + _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'
  5706. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  5707. + tmp_sharedflag='-G' ;;
  5708. + *Sun\ F*) # Sun Fortran 8.3
  5709. + tmp_sharedflag='-G' ;;
  5710. + esac
  5711. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5712. + if test "x$supports_anon_versioning" = xyes; then
  5713. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5714. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5715. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5716. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5717. + fi
  5718. -# AC_LIBTOOL_LANG_RC_CONFIG
  5719. -# -------------------------
  5720. -# Ensure that the configuration vars for the Windows resource compiler are
  5721. -# suitably defined. Those variables are subsequently used by
  5722. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5723. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  5724. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  5725. -[AC_LANG_SAVE
  5726. + case $cc_basename in
  5727. + xlf*)
  5728. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5729. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5730. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5731. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5732. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  5733. + if test "x$supports_anon_versioning" = xyes; then
  5734. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5735. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5736. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5737. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5738. + fi
  5739. + ;;
  5740. + esac
  5741. + else
  5742. + _LT_TAGVAR(ld_shlibs, $1)=no
  5743. + fi
  5744. + ;;
  5745. -# Source file extension for RC test sources.
  5746. -ac_ext=rc
  5747. + netbsd* | netbsdelf*-gnu)
  5748. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5749. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5750. + wlarc=
  5751. + else
  5752. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5753. + _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'
  5754. + fi
  5755. + ;;
  5756. -# Object file extension for compiled RC test sources.
  5757. -objext=o
  5758. -_LT_AC_TAGVAR(objext, $1)=$objext
  5759. + solaris*)
  5760. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5761. + _LT_TAGVAR(ld_shlibs, $1)=no
  5762. + cat <<_LT_EOF 1>&2
  5763. -# Code to be used in simple compile tests
  5764. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  5765. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5766. +*** create shared libraries on Solaris systems. Therefore, libtool
  5767. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5768. +*** binutils to release 2.9.1 or newer. Another option is to modify
  5769. +*** your PATH or compiler configuration so that the native linker is
  5770. +*** used, and then restart.
  5771. -# Code to be used in simple link tests
  5772. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  5773. -
  5774. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5775. -_LT_AC_SYS_COMPILER
  5776. -
  5777. -# save warnings/boilerplate of simple test code
  5778. -_LT_COMPILER_BOILERPLATE
  5779. -_LT_LINKER_BOILERPLATE
  5780. -
  5781. -# Allow CC to be a program name with arguments.
  5782. -lt_save_CC="$CC"
  5783. -CC=${RC-"windres"}
  5784. -compiler=$CC
  5785. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5786. -_LT_CC_BASENAME([$compiler])
  5787. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5788. +_LT_EOF
  5789. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5790. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5791. + _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'
  5792. + else
  5793. + _LT_TAGVAR(ld_shlibs, $1)=no
  5794. + fi
  5795. + ;;
  5796. -AC_LIBTOOL_CONFIG($1)
  5797. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5798. + case `$LD -v 2>&1` in
  5799. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5800. + _LT_TAGVAR(ld_shlibs, $1)=no
  5801. + cat <<_LT_EOF 1>&2
  5802. -AC_LANG_RESTORE
  5803. -CC="$lt_save_CC"
  5804. -])# AC_LIBTOOL_LANG_RC_CONFIG
  5805. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5806. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  5807. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5808. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5809. +*** your PATH or compiler configuration so that the native linker is
  5810. +*** used, and then restart.
  5811. +_LT_EOF
  5812. + ;;
  5813. + *)
  5814. + # For security reasons, it is highly recommended that you always
  5815. + # use absolute paths for naming shared libraries, and exclude the
  5816. + # DT_RUNPATH tag from executables and libraries. But doing so
  5817. + # requires that you compile everything twice, which is a pain.
  5818. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5819. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5820. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5821. + _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'
  5822. + else
  5823. + _LT_TAGVAR(ld_shlibs, $1)=no
  5824. + fi
  5825. + ;;
  5826. + esac
  5827. + ;;
  5828. -# AC_LIBTOOL_CONFIG([TAGNAME])
  5829. -# ----------------------------
  5830. -# If TAGNAME is not passed, then create an initial libtool script
  5831. -# with a default configuration from the untagged config vars. Otherwise
  5832. -# add code to config.status for appending the configuration named by
  5833. -# TAGNAME from the matching tagged config vars.
  5834. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  5835. -[# The else clause should only fire when bootstrapping the
  5836. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  5837. -# with your package, and you will get complaints that there are
  5838. -# no rules to generate ltmain.sh.
  5839. -if test -f "$ltmain"; then
  5840. - # See if we are running on zsh, and set the options which allow our commands through
  5841. - # without removal of \ escapes.
  5842. - if test -n "${ZSH_VERSION+set}" ; then
  5843. - setopt NO_GLOB_SUBST
  5844. - fi
  5845. - # Now quote all the things that may contain metacharacters while being
  5846. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  5847. - # variables and quote the copies for generation of the libtool script.
  5848. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  5849. - SED SHELL STRIP \
  5850. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  5851. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  5852. - deplibs_check_method reload_flag reload_cmds need_locks \
  5853. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  5854. - lt_cv_sys_global_symbol_to_c_name_address \
  5855. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  5856. - old_postinstall_cmds old_postuninstall_cmds \
  5857. - _LT_AC_TAGVAR(compiler, $1) \
  5858. - _LT_AC_TAGVAR(CC, $1) \
  5859. - _LT_AC_TAGVAR(LD, $1) \
  5860. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  5861. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  5862. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  5863. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  5864. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  5865. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  5866. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  5867. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  5868. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  5869. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  5870. - _LT_AC_TAGVAR(predep_objects, $1) \
  5871. - _LT_AC_TAGVAR(postdep_objects, $1) \
  5872. - _LT_AC_TAGVAR(predeps, $1) \
  5873. - _LT_AC_TAGVAR(postdeps, $1) \
  5874. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  5875. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  5876. - _LT_AC_TAGVAR(archive_cmds, $1) \
  5877. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  5878. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  5879. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  5880. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  5881. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  5882. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  5883. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  5884. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  5885. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  5886. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  5887. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  5888. - _LT_AC_TAGVAR(module_cmds, $1) \
  5889. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  5890. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  5891. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  5892. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  5893. - _LT_AC_TAGVAR(include_expsyms, $1); do
  5894. -
  5895. - case $var in
  5896. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  5897. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  5898. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  5899. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  5900. - _LT_AC_TAGVAR(module_cmds, $1) | \
  5901. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  5902. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  5903. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  5904. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  5905. - postinstall_cmds | postuninstall_cmds | \
  5906. - old_postinstall_cmds | old_postuninstall_cmds | \
  5907. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  5908. - # Double-quote double-evaled strings.
  5909. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  5910. + sunos4*)
  5911. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5912. + wlarc=
  5913. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5914. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5915. ;;
  5916. +
  5917. *)
  5918. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  5919. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5920. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5921. + _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'
  5922. + else
  5923. + _LT_TAGVAR(ld_shlibs, $1)=no
  5924. + fi
  5925. ;;
  5926. esac
  5927. - done
  5928. -
  5929. - case $lt_echo in
  5930. - *'\[$]0 --fallback-echo"')
  5931. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  5932. - ;;
  5933. - esac
  5934. -
  5935. -ifelse([$1], [],
  5936. - [cfgfile="${ofile}T"
  5937. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  5938. - $rm -f "$cfgfile"
  5939. - AC_MSG_NOTICE([creating $ofile])],
  5940. - [cfgfile="$ofile"])
  5941. -
  5942. - cat <<__EOF__ >> "$cfgfile"
  5943. -ifelse([$1], [],
  5944. -[#! $SHELL
  5945. -
  5946. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  5947. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  5948. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  5949. -#
  5950. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  5951. -# Free Software Foundation, Inc.
  5952. -#
  5953. -# This file is part of GNU Libtool:
  5954. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  5955. -#
  5956. -# This program is free software; you can redistribute it and/or modify
  5957. -# it under the terms of the GNU General Public License as published by
  5958. -# the Free Software Foundation; either version 2 of the License, or
  5959. -# (at your option) any later version.
  5960. -#
  5961. -# This program is distributed in the hope that it will be useful, but
  5962. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  5963. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  5964. -# General Public License for more details.
  5965. -#
  5966. -# You should have received a copy of the GNU General Public License
  5967. -# along with this program; if not, write to the Free Software
  5968. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  5969. -#
  5970. -# As a special exception to the GNU General Public License, if you
  5971. -# distribute this file as part of a program that contains a
  5972. -# configuration script generated by Autoconf, you may include it under
  5973. -# the same distribution terms that you use for the rest of that program.
  5974. -
  5975. -# A sed program that does not truncate output.
  5976. -SED=$lt_SED
  5977. -
  5978. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  5979. -Xsed="$SED -e 1s/^X//"
  5980. -
  5981. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  5982. -# if CDPATH is set.
  5983. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5984. -# The names of the tagged configurations supported by this script.
  5985. -available_tags=
  5986. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  5987. + runpath_var=
  5988. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5989. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5990. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5991. + fi
  5992. + else
  5993. + # PORTME fill in a description of your system's linker (not GNU ld)
  5994. + case $host_os in
  5995. + aix3*)
  5996. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5997. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5998. + _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'
  5999. + # Note: this linker hardcodes the directories in LIBPATH if there
  6000. + # are no directories specified by -L.
  6001. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6002. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6003. + # Neither direct hardcoding nor static linking is supported with a
  6004. + # broken collect2.
  6005. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6006. + fi
  6007. + ;;
  6008. -# ### BEGIN LIBTOOL CONFIG],
  6009. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6010. + aix[[4-9]]*)
  6011. + if test "$host_cpu" = ia64; then
  6012. + # On IA64, the linker does run time linking by default, so we don't
  6013. + # have to do anything special.
  6014. + aix_use_runtimelinking=no
  6015. + exp_sym_flag='-Bexport'
  6016. + no_entry_flag=""
  6017. + else
  6018. + # If we're using GNU nm, then we don't want the "-C" option.
  6019. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6020. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6021. + _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'
  6022. + else
  6023. + _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'
  6024. + fi
  6025. + aix_use_runtimelinking=no
  6026. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6027. + # Test if we are trying to use run time linking or normal
  6028. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6029. + # need to do runtime linking.
  6030. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6031. + for ld_flag in $LDFLAGS; do
  6032. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6033. + aix_use_runtimelinking=yes
  6034. + break
  6035. + fi
  6036. + done
  6037. + ;;
  6038. + esac
  6039. -# Shell to use when invoking shell scripts.
  6040. -SHELL=$lt_SHELL
  6041. + exp_sym_flag='-bexport'
  6042. + no_entry_flag='-bnoentry'
  6043. + fi
  6044. -# Whether or not to build shared libraries.
  6045. -build_libtool_libs=$enable_shared
  6046. + # When large executables or shared objects are built, AIX ld can
  6047. + # have problems creating the table of contents. If linking a library
  6048. + # or program results in "error TOC overflow" add -mminimal-toc to
  6049. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6050. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6051. -# Whether or not to build static libraries.
  6052. -build_old_libs=$enable_static
  6053. + _LT_TAGVAR(archive_cmds, $1)=''
  6054. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6055. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6056. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6057. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6058. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6059. -# Whether or not to add -lc for building shared libraries.
  6060. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6061. + if test "$GCC" = yes; then
  6062. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6063. + # We only want to do this on AIX 4.2 and lower, the check
  6064. + # below for broken collect2 doesn't work under 4.3+
  6065. + collect2name=`${CC} -print-prog-name=collect2`
  6066. + if test -f "$collect2name" &&
  6067. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6068. + then
  6069. + # We have reworked collect2
  6070. + :
  6071. + else
  6072. + # We have old collect2
  6073. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6074. + # It fails to find uninstalled libraries when the uninstalled
  6075. + # path is not listed in the libpath. Setting hardcode_minus_L
  6076. + # to unsupported forces relinking
  6077. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6078. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6079. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6080. + fi
  6081. + ;;
  6082. + esac
  6083. + shared_flag='-shared'
  6084. + if test "$aix_use_runtimelinking" = yes; then
  6085. + shared_flag="$shared_flag "'${wl}-G'
  6086. + fi
  6087. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6088. + else
  6089. + # not using gcc
  6090. + if test "$host_cpu" = ia64; then
  6091. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6092. + # chokes on -Wl,-G. The following line is correct:
  6093. + shared_flag='-G'
  6094. + else
  6095. + if test "$aix_use_runtimelinking" = yes; then
  6096. + shared_flag='${wl}-G'
  6097. + else
  6098. + shared_flag='${wl}-bM:SRE'
  6099. + fi
  6100. + fi
  6101. + fi
  6102. -# Whether or not to disallow shared libs when runtime libs are static
  6103. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6104. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6105. + # It seems that -bexpall does not export symbols beginning with
  6106. + # underscore (_), so it is better to generate a list of symbols to export.
  6107. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6108. + if test "$aix_use_runtimelinking" = yes; then
  6109. + # Warning - without using the other runtime loading flags (-brtl),
  6110. + # -berok will link without error, but may produce a broken library.
  6111. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6112. + # Determine the default libpath from the value encoded in an
  6113. + # empty executable.
  6114. + _LT_SYS_MODULE_PATH_AIX
  6115. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6116. + _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"
  6117. + else
  6118. + if test "$host_cpu" = ia64; then
  6119. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6120. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6121. + _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"
  6122. + else
  6123. + # Determine the default libpath from the value encoded in an
  6124. + # empty executable.
  6125. + _LT_SYS_MODULE_PATH_AIX
  6126. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6127. + # Warning - without using the other run time loading flags,
  6128. + # -berok will link without error, but may produce a broken library.
  6129. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6130. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6131. + # Exported symbols can be pulled into shared objects from archives
  6132. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6133. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6134. + # This is similar to how AIX traditionally builds its shared libraries.
  6135. + _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'
  6136. + fi
  6137. + fi
  6138. + ;;
  6139. -# Whether or not to optimize for fast installation.
  6140. -fast_install=$enable_fast_install
  6141. + amigaos*)
  6142. + case $host_cpu in
  6143. + powerpc)
  6144. + # see comment about AmigaOS4 .so support
  6145. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6146. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6147. + ;;
  6148. + m68k)
  6149. + _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)'
  6150. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6151. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6152. + ;;
  6153. + esac
  6154. + ;;
  6155. -# The host system.
  6156. -host_alias=$host_alias
  6157. -host=$host
  6158. -host_os=$host_os
  6159. + bsdi[[45]]*)
  6160. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6161. + ;;
  6162. -# The build system.
  6163. -build_alias=$build_alias
  6164. -build=$build
  6165. -build_os=$build_os
  6166. + cygwin* | mingw* | pw32* | cegcc*)
  6167. + # When not using gcc, we currently assume that we are using
  6168. + # Microsoft Visual C++.
  6169. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6170. + # no search path for DLLs.
  6171. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6172. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6173. + # Tell ltmain to make .lib files, not .a files.
  6174. + libext=lib
  6175. + # Tell ltmain to make .dll files, not .so files.
  6176. + shrext_cmds=".dll"
  6177. + # FIXME: Setting linknames here is a bad hack.
  6178. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6179. + # The linker will automatically build a .lib file if we build a DLL.
  6180. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6181. + # FIXME: Should let the user specify the lib program.
  6182. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6183. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6184. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6185. + ;;
  6186. -# An echo program that does not interpret backslashes.
  6187. -echo=$lt_echo
  6188. + darwin* | rhapsody*)
  6189. + _LT_DARWIN_LINKER_FEATURES($1)
  6190. + ;;
  6191. -# The archiver.
  6192. -AR=$lt_AR
  6193. -AR_FLAGS=$lt_AR_FLAGS
  6194. + dgux*)
  6195. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6196. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6197. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6198. + ;;
  6199. -# A C compiler.
  6200. -LTCC=$lt_LTCC
  6201. + freebsd1*)
  6202. + _LT_TAGVAR(ld_shlibs, $1)=no
  6203. + ;;
  6204. -# LTCC compiler flags.
  6205. -LTCFLAGS=$lt_LTCFLAGS
  6206. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6207. + # support. Future versions do this automatically, but an explicit c++rt0.o
  6208. + # does not break anything, and helps significantly (at the cost of a little
  6209. + # extra space).
  6210. + freebsd2.2*)
  6211. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6212. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6213. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6214. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6215. + ;;
  6216. -# A language-specific compiler.
  6217. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6218. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6219. + freebsd2*)
  6220. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6221. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6222. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6223. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6224. + ;;
  6225. -# Is the compiler the GNU C compiler?
  6226. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6227. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6228. + freebsd* | dragonfly*)
  6229. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6230. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6231. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6232. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6233. + ;;
  6234. -# An ERE matcher.
  6235. -EGREP=$lt_EGREP
  6236. + hpux9*)
  6237. + if test "$GCC" = yes; then
  6238. + _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'
  6239. + else
  6240. + _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'
  6241. + fi
  6242. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6243. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6244. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6245. -# The linker used to build libraries.
  6246. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6247. + # hardcode_minus_L: Not really in the search PATH,
  6248. + # but as the default location of the library.
  6249. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6250. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6251. + ;;
  6252. -# Whether we need hard or soft links.
  6253. -LN_S=$lt_LN_S
  6254. + hpux10*)
  6255. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6256. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6257. + else
  6258. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6259. + fi
  6260. + if test "$with_gnu_ld" = no; then
  6261. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6262. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6263. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6264. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6265. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6266. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6267. + # hardcode_minus_L: Not really in the search PATH,
  6268. + # but as the default location of the library.
  6269. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6270. + fi
  6271. + ;;
  6272. -# A BSD-compatible nm program.
  6273. -NM=$lt_NM
  6274. + hpux11*)
  6275. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6276. + case $host_cpu in
  6277. + hppa*64*)
  6278. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6279. + ;;
  6280. + ia64*)
  6281. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6282. + ;;
  6283. + *)
  6284. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6285. + ;;
  6286. + esac
  6287. + else
  6288. + case $host_cpu in
  6289. + hppa*64*)
  6290. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6291. + ;;
  6292. + ia64*)
  6293. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6294. + ;;
  6295. + *)
  6296. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6297. + ;;
  6298. + esac
  6299. + fi
  6300. + if test "$with_gnu_ld" = no; then
  6301. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6302. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6303. -# A symbol stripping program
  6304. -STRIP=$lt_STRIP
  6305. + case $host_cpu in
  6306. + hppa*64*|ia64*)
  6307. + _LT_TAGVAR(hardcode_direct, $1)=no
  6308. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6309. + ;;
  6310. + *)
  6311. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6312. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6313. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6314. -# Used to examine libraries when file_magic_cmd begins "file"
  6315. -MAGIC_CMD=$MAGIC_CMD
  6316. + # hardcode_minus_L: Not really in the search PATH,
  6317. + # but as the default location of the library.
  6318. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6319. + ;;
  6320. + esac
  6321. + fi
  6322. + ;;
  6323. -# Used on cygwin: DLL creation program.
  6324. -DLLTOOL="$DLLTOOL"
  6325. + irix5* | irix6* | nonstopux*)
  6326. + if test "$GCC" = yes; then
  6327. + _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'
  6328. + # Try to use the -exported_symbol ld option, if it does not
  6329. + # work, assume that -exports_file does not work either and
  6330. + # implicitly export all symbols.
  6331. + save_LDFLAGS="$LDFLAGS"
  6332. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6333. + AC_LINK_IFELSE(int foo(void) {},
  6334. + _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'
  6335. + )
  6336. + LDFLAGS="$save_LDFLAGS"
  6337. + else
  6338. + _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'
  6339. + _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'
  6340. + fi
  6341. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6342. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6343. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6344. + _LT_TAGVAR(inherit_rpath, $1)=yes
  6345. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6346. + ;;
  6347. -# Used on cygwin: object dumper.
  6348. -OBJDUMP="$OBJDUMP"
  6349. + netbsd* | netbsdelf*-gnu)
  6350. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6351. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6352. + else
  6353. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6354. + fi
  6355. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6356. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6357. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6358. + ;;
  6359. -# Used on cygwin: assembler.
  6360. -AS="$AS"
  6361. + newsos6)
  6362. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6363. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6364. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6365. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6366. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6367. + ;;
  6368. -# The name of the directory that contains temporary libtool files.
  6369. -objdir=$objdir
  6370. + *nto* | *qnx*)
  6371. + ;;
  6372. -# How to create reloadable object files.
  6373. -reload_flag=$lt_reload_flag
  6374. -reload_cmds=$lt_reload_cmds
  6375. -
  6376. -# How to pass a linker flag through the compiler.
  6377. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6378. -
  6379. -# Object file suffix (normally "o").
  6380. -objext="$ac_objext"
  6381. -
  6382. -# Old archive suffix (normally "a").
  6383. -libext="$libext"
  6384. + openbsd*)
  6385. + if test -f /usr/libexec/ld.so; then
  6386. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6387. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6388. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6389. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6390. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6391. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6392. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6393. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6394. + else
  6395. + case $host_os in
  6396. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6397. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6398. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6399. + ;;
  6400. + *)
  6401. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6402. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6403. + ;;
  6404. + esac
  6405. + fi
  6406. + else
  6407. + _LT_TAGVAR(ld_shlibs, $1)=no
  6408. + fi
  6409. + ;;
  6410. -# Shared library suffix (normally ".so").
  6411. -shrext_cmds='$shrext_cmds'
  6412. + os2*)
  6413. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6414. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6415. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6416. + _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'
  6417. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6418. + ;;
  6419. -# Executable file suffix (normally "").
  6420. -exeext="$exeext"
  6421. + osf3*)
  6422. + if test "$GCC" = yes; then
  6423. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6424. + _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'
  6425. + else
  6426. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6427. + _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'
  6428. + fi
  6429. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6430. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6431. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6432. + ;;
  6433. -# Additional compiler flags for building library objects.
  6434. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6435. -pic_mode=$pic_mode
  6436. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  6437. + if test "$GCC" = yes; then
  6438. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6439. + _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'
  6440. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6441. + else
  6442. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6443. + _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'
  6444. + _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~
  6445. + $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'
  6446. -# What is the maximum length of a command?
  6447. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6448. + # Both c and cxx compiler support -rpath directly
  6449. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6450. + fi
  6451. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6452. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6453. + ;;
  6454. -# Does compiler simultaneously support -c and -o options?
  6455. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6456. + solaris*)
  6457. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6458. + if test "$GCC" = yes; then
  6459. + wlarc='${wl}'
  6460. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6461. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6462. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6463. + else
  6464. + case `$CC -V 2>&1` in
  6465. + *"Compilers 5.0"*)
  6466. + wlarc=''
  6467. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6468. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6469. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6470. + ;;
  6471. + *)
  6472. + wlarc='${wl}'
  6473. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6474. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6475. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6476. + ;;
  6477. + esac
  6478. + fi
  6479. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6480. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6481. + case $host_os in
  6482. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6483. + *)
  6484. + # The compiler driver will combine and reorder linker options,
  6485. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  6486. + # but is careful enough not to reorder.
  6487. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6488. + if test "$GCC" = yes; then
  6489. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6490. + else
  6491. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6492. + fi
  6493. + ;;
  6494. + esac
  6495. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6496. + ;;
  6497. -# Must we lock files when doing compilation?
  6498. -need_locks=$lt_need_locks
  6499. + sunos4*)
  6500. + if test "x$host_vendor" = xsequent; then
  6501. + # Use $CC to link under sequent, because it throws in some extra .o
  6502. + # files that make .init and .fini sections work.
  6503. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6504. + else
  6505. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6506. + fi
  6507. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6508. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6509. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6510. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6511. + ;;
  6512. -# Do we need the lib prefix for modules?
  6513. -need_lib_prefix=$need_lib_prefix
  6514. + sysv4)
  6515. + case $host_vendor in
  6516. + sni)
  6517. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6518. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6519. + ;;
  6520. + siemens)
  6521. + ## LD is ld it makes a PLAMLIB
  6522. + ## CC just makes a GrossModule.
  6523. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6524. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6525. + _LT_TAGVAR(hardcode_direct, $1)=no
  6526. + ;;
  6527. + motorola)
  6528. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6529. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6530. + ;;
  6531. + esac
  6532. + runpath_var='LD_RUN_PATH'
  6533. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6534. + ;;
  6535. -# Do we need a version for libraries?
  6536. -need_version=$need_version
  6537. + sysv4.3*)
  6538. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6539. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6540. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6541. + ;;
  6542. -# Whether dlopen is supported.
  6543. -dlopen_support=$enable_dlopen
  6544. + sysv4*MP*)
  6545. + if test -d /usr/nec; then
  6546. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6547. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6548. + runpath_var=LD_RUN_PATH
  6549. + hardcode_runpath_var=yes
  6550. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6551. + fi
  6552. + ;;
  6553. -# Whether dlopen of programs is supported.
  6554. -dlopen_self=$enable_dlopen_self
  6555. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6556. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6557. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6558. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6559. + runpath_var='LD_RUN_PATH'
  6560. -# Whether dlopen of statically linked programs is supported.
  6561. -dlopen_self_static=$enable_dlopen_self_static
  6562. + if test "$GCC" = yes; then
  6563. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6564. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6565. + else
  6566. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6567. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6568. + fi
  6569. + ;;
  6570. -# Compiler flag to prevent dynamic linking.
  6571. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6572. + sysv5* | sco3.2v5* | sco5v6*)
  6573. + # Note: We can NOT use -z defs as we might desire, because we do not
  6574. + # link with -lc, and that would cause any symbols used from libc to
  6575. + # always be unresolved, which means just about no library would
  6576. + # ever link correctly. If we're not using GNU ld we use -z text
  6577. + # though, which does catch some bad symbols but isn't as heavy-handed
  6578. + # as -z defs.
  6579. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6580. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6581. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6582. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6583. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6584. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6585. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6586. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6587. + runpath_var='LD_RUN_PATH'
  6588. -# Compiler flag to turn off builtin functions.
  6589. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6590. + if test "$GCC" = yes; then
  6591. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6592. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6593. + else
  6594. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6595. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6596. + fi
  6597. + ;;
  6598. -# Compiler flag to allow reflexive dlopens.
  6599. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6600. + uts4*)
  6601. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6602. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6603. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6604. + ;;
  6605. -# Compiler flag to generate shared objects directly from archives.
  6606. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6607. + *)
  6608. + _LT_TAGVAR(ld_shlibs, $1)=no
  6609. + ;;
  6610. + esac
  6611. -# Compiler flag to generate thread-safe objects.
  6612. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6613. + if test x$host_vendor = xsni; then
  6614. + case $host in
  6615. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6616. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  6617. + ;;
  6618. + esac
  6619. + fi
  6620. + fi
  6621. +])
  6622. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6623. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6624. -# Library versioning type.
  6625. -version_type=$version_type
  6626. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6627. -# Format of library name prefix.
  6628. -libname_spec=$lt_libname_spec
  6629. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6630. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6631. +_LT_DECL([], [extract_expsyms_cmds], [2],
  6632. + [The commands to extract the exported symbol list from a shared archive])
  6633. -# List of archive names. First name is the real one, the rest are links.
  6634. -# The last name is the one that the linker finds with -lNAME.
  6635. -library_names_spec=$lt_library_names_spec
  6636. +#
  6637. +# Do we need to explicitly link libc?
  6638. +#
  6639. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6640. +x|xyes)
  6641. + # Assume -lc should be added
  6642. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6643. -# The coded name of the library, if different from the real name.
  6644. -soname_spec=$lt_soname_spec
  6645. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  6646. + case $_LT_TAGVAR(archive_cmds, $1) in
  6647. + *'~'*)
  6648. + # FIXME: we may have to deal with multi-command sequences.
  6649. + ;;
  6650. + '$CC '*)
  6651. + # Test whether the compiler implicitly links with -lc since on some
  6652. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6653. + # to ld, don't add -lc before -lgcc.
  6654. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6655. + $RM conftest*
  6656. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6657. -# Commands used to build and install an old-style archive.
  6658. -RANLIB=$lt_RANLIB
  6659. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6660. -old_postinstall_cmds=$lt_old_postinstall_cmds
  6661. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6662. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6663. + soname=conftest
  6664. + lib=conftest
  6665. + libobjs=conftest.$ac_objext
  6666. + deplibs=
  6667. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6668. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6669. + compiler_flags=-v
  6670. + linker_flags=-v
  6671. + verstring=
  6672. + output_objdir=.
  6673. + libname=conftest
  6674. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6675. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6676. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6677. + then
  6678. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6679. + else
  6680. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6681. + fi
  6682. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6683. + else
  6684. + cat conftest.err 1>&5
  6685. + fi
  6686. + $RM conftest*
  6687. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  6688. + ;;
  6689. + esac
  6690. + fi
  6691. + ;;
  6692. +esac
  6693. -# Create an old-style archive from a shared archive.
  6694. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6695. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  6696. + [Whether or not to add -lc for building shared libraries])
  6697. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  6698. + [enable_shared_with_static_runtimes], [0],
  6699. + [Whether or not to disallow shared libs when runtime libs are static])
  6700. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  6701. + [Compiler flag to allow reflexive dlopens])
  6702. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  6703. + [Compiler flag to generate shared objects directly from archives])
  6704. +_LT_TAGDECL([], [compiler_needs_object], [1],
  6705. + [Whether the compiler copes with passing no objects directly])
  6706. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  6707. + [Create an old-style archive from a shared archive])
  6708. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  6709. + [Create a temporary old-style archive to link instead of a shared archive])
  6710. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  6711. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  6712. +_LT_TAGDECL([], [module_cmds], [2],
  6713. + [Commands used to build a loadable module if different from building
  6714. + a shared archive.])
  6715. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  6716. +_LT_TAGDECL([], [with_gnu_ld], [1],
  6717. + [Whether we are building with GNU ld or not])
  6718. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  6719. + [Flag that allows shared libraries with undefined symbols to be built])
  6720. +_LT_TAGDECL([], [no_undefined_flag], [1],
  6721. + [Flag that enforces no undefined symbols])
  6722. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6723. + [Flag to hardcode $libdir into a binary during linking.
  6724. + This must work even if $libdir does not exist])
  6725. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  6726. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  6727. + during linking. This must work even if $libdir does not exist]])
  6728. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6729. + [Whether we need a single "-rpath" flag with a separated argument])
  6730. +_LT_TAGDECL([], [hardcode_direct], [0],
  6731. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6732. + DIR into the resulting binary])
  6733. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6734. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6735. + DIR into the resulting binary and the resulting library dependency is
  6736. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  6737. + library is relocated])
  6738. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  6739. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6740. + into the resulting binary])
  6741. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6742. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  6743. + into the resulting binary])
  6744. +_LT_TAGDECL([], [hardcode_automatic], [0],
  6745. + [Set to "yes" if building a shared library automatically hardcodes DIR
  6746. + into the library and all subsequent libraries and executables linked
  6747. + against it])
  6748. +_LT_TAGDECL([], [inherit_rpath], [0],
  6749. + [Set to yes if linker adds runtime paths of dependent libraries
  6750. + to runtime path list])
  6751. +_LT_TAGDECL([], [link_all_deplibs], [0],
  6752. + [Whether libtool must link a program against all its dependency libraries])
  6753. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  6754. + [Fix the shell variable $srcfile for the compiler])
  6755. +_LT_TAGDECL([], [always_export_symbols], [0],
  6756. + [Set to "yes" if exported symbols are required])
  6757. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  6758. + [The commands to list exported symbols])
  6759. +_LT_TAGDECL([], [exclude_expsyms], [1],
  6760. + [Symbols that should not be listed in the preloaded symbols])
  6761. +_LT_TAGDECL([], [include_expsyms], [1],
  6762. + [Symbols that must always be exported])
  6763. +_LT_TAGDECL([], [prelink_cmds], [2],
  6764. + [Commands necessary for linking programs (against libraries) with templates])
  6765. +_LT_TAGDECL([], [file_list_spec], [1],
  6766. + [Specify filename containing input files])
  6767. +dnl FIXME: Not yet implemented
  6768. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  6769. +dnl [Compiler flag to generate thread safe objects])
  6770. +])# _LT_LINKER_SHLIBS
  6771. -# Create a temporary old-style archive to link instead of a shared archive.
  6772. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6773. -# Commands used to build and install a shared archive.
  6774. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6775. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6776. -postinstall_cmds=$lt_postinstall_cmds
  6777. -postuninstall_cmds=$lt_postuninstall_cmds
  6778. +# _LT_LANG_C_CONFIG([TAG])
  6779. +# ------------------------
  6780. +# Ensure that the configuration variables for a C compiler are suitably
  6781. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6782. +# the compiler configuration to `libtool'.
  6783. +m4_defun([_LT_LANG_C_CONFIG],
  6784. +[m4_require([_LT_DECL_EGREP])dnl
  6785. +lt_save_CC="$CC"
  6786. +AC_LANG_PUSH(C)
  6787. -# Commands used to build a loadable module (assumed same as above if empty)
  6788. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6789. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6790. +# Source file extension for C test sources.
  6791. +ac_ext=c
  6792. -# Commands to strip libraries.
  6793. -old_striplib=$lt_old_striplib
  6794. -striplib=$lt_striplib
  6795. +# Object file extension for compiled C test sources.
  6796. +objext=o
  6797. +_LT_TAGVAR(objext, $1)=$objext
  6798. -# Dependencies to place before the objects being linked to create a
  6799. -# shared library.
  6800. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6801. +# Code to be used in simple compile tests
  6802. +lt_simple_compile_test_code="int some_variable = 0;"
  6803. -# Dependencies to place after the objects being linked to create a
  6804. -# shared library.
  6805. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6806. +# Code to be used in simple link tests
  6807. +lt_simple_link_test_code='int main(){return(0);}'
  6808. -# Dependencies to place before the objects being linked to create a
  6809. -# shared library.
  6810. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6811. +_LT_TAG_COMPILER
  6812. +# Save the default compiler, since it gets overwritten when the other
  6813. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6814. +compiler_DEFAULT=$CC
  6815. -# Dependencies to place after the objects being linked to create a
  6816. -# shared library.
  6817. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6818. +# save warnings/boilerplate of simple test code
  6819. +_LT_COMPILER_BOILERPLATE
  6820. +_LT_LINKER_BOILERPLATE
  6821. -# The directories searched by this compiler when creating a shared
  6822. -# library
  6823. -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  6824. +if test -n "$compiler"; then
  6825. + _LT_COMPILER_NO_RTTI($1)
  6826. + _LT_COMPILER_PIC($1)
  6827. + _LT_COMPILER_C_O($1)
  6828. + _LT_COMPILER_FILE_LOCKS($1)
  6829. + _LT_LINKER_SHLIBS($1)
  6830. + _LT_SYS_DYNAMIC_LINKER($1)
  6831. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6832. + LT_SYS_DLOPEN_SELF
  6833. + _LT_CMD_STRIPLIB
  6834. +
  6835. + # Report which library types will actually be built
  6836. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6837. + AC_MSG_RESULT([$can_build_shared])
  6838. -# The library search path used internally by the compiler when linking
  6839. -# a shared library.
  6840. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6841. + AC_MSG_CHECKING([whether to build shared libraries])
  6842. + test "$can_build_shared" = "no" && enable_shared=no
  6843. -# Method to check whether dependent libraries are shared objects.
  6844. -deplibs_check_method=$lt_deplibs_check_method
  6845. + # On AIX, shared libraries and static libraries use the same namespace, and
  6846. + # are all built from PIC.
  6847. + case $host_os in
  6848. + aix3*)
  6849. + test "$enable_shared" = yes && enable_static=no
  6850. + if test -n "$RANLIB"; then
  6851. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6852. + postinstall_cmds='$RANLIB $lib'
  6853. + fi
  6854. + ;;
  6855. -# Command to use when deplibs_check_method == file_magic.
  6856. -file_magic_cmd=$lt_file_magic_cmd
  6857. + aix[[4-9]]*)
  6858. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6859. + test "$enable_shared" = yes && enable_static=no
  6860. + fi
  6861. + ;;
  6862. + esac
  6863. + AC_MSG_RESULT([$enable_shared])
  6864. -# Flag that allows shared libraries with undefined symbols to be built.
  6865. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6866. + AC_MSG_CHECKING([whether to build static libraries])
  6867. + # Make sure either enable_shared or enable_static is yes.
  6868. + test "$enable_shared" = yes || enable_static=yes
  6869. + AC_MSG_RESULT([$enable_static])
  6870. -# Flag that forces no undefined symbols.
  6871. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6872. + _LT_CONFIG($1)
  6873. +fi
  6874. +AC_LANG_POP
  6875. +CC="$lt_save_CC"
  6876. +])# _LT_LANG_C_CONFIG
  6877. -# Commands used to finish a libtool library installation in a directory.
  6878. -finish_cmds=$lt_finish_cmds
  6879. -# Same as above, but a single script fragment to be evaled but not shown.
  6880. -finish_eval=$lt_finish_eval
  6881. +# _LT_PROG_CXX
  6882. +# ------------
  6883. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  6884. +# compiler, we have our own version here.
  6885. +m4_defun([_LT_PROG_CXX],
  6886. +[
  6887. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  6888. +AC_PROG_CXX
  6889. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6890. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6891. + (test "X$CXX" != "Xg++"))) ; then
  6892. + AC_PROG_CXXCPP
  6893. +else
  6894. + _lt_caught_CXX_error=yes
  6895. +fi
  6896. +popdef([AC_MSG_ERROR])
  6897. +])# _LT_PROG_CXX
  6898. -# Take the output of nm and produce a listing of raw symbols and C names.
  6899. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6900. +dnl aclocal-1.4 backwards compatibility:
  6901. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  6902. -# Transform the output of nm in a proper C declaration
  6903. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  6904. -# Transform the output of nm in a C name address pair
  6905. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  6906. +# _LT_LANG_CXX_CONFIG([TAG])
  6907. +# --------------------------
  6908. +# Ensure that the configuration variables for a C++ compiler are suitably
  6909. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6910. +# the compiler configuration to `libtool'.
  6911. +m4_defun([_LT_LANG_CXX_CONFIG],
  6912. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  6913. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6914. +m4_require([_LT_DECL_EGREP])dnl
  6915. +
  6916. +AC_LANG_PUSH(C++)
  6917. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6918. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6919. +_LT_TAGVAR(always_export_symbols, $1)=no
  6920. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6921. +_LT_TAGVAR(compiler_needs_object, $1)=no
  6922. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6923. +_LT_TAGVAR(hardcode_direct, $1)=no
  6924. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6925. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6926. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6927. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6928. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6929. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6930. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6931. +_LT_TAGVAR(inherit_rpath, $1)=no
  6932. +_LT_TAGVAR(module_cmds, $1)=
  6933. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6934. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6935. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6936. +_LT_TAGVAR(no_undefined_flag, $1)=
  6937. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6938. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6939. -# This is the shared library runtime path variable.
  6940. -runpath_var=$runpath_var
  6941. +# Source file extension for C++ test sources.
  6942. +ac_ext=cpp
  6943. -# This is the shared library path variable.
  6944. -shlibpath_var=$shlibpath_var
  6945. +# Object file extension for compiled C++ test sources.
  6946. +objext=o
  6947. +_LT_TAGVAR(objext, $1)=$objext
  6948. -# Is shlibpath searched before the hard-coded library search path?
  6949. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6950. +# No sense in running all these tests if we already determined that
  6951. +# the CXX compiler isn't working. Some variables (like enable_shared)
  6952. +# are currently assumed to apply to all compilers on this platform,
  6953. +# and will be corrupted by setting them based on a non-working compiler.
  6954. +if test "$_lt_caught_CXX_error" != yes; then
  6955. + # Code to be used in simple compile tests
  6956. + lt_simple_compile_test_code="int some_variable = 0;"
  6957. +
  6958. + # Code to be used in simple link tests
  6959. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  6960. +
  6961. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6962. + _LT_TAG_COMPILER
  6963. +
  6964. + # save warnings/boilerplate of simple test code
  6965. + _LT_COMPILER_BOILERPLATE
  6966. + _LT_LINKER_BOILERPLATE
  6967. +
  6968. + # Allow CC to be a program name with arguments.
  6969. + lt_save_CC=$CC
  6970. + lt_save_LD=$LD
  6971. + lt_save_GCC=$GCC
  6972. + GCC=$GXX
  6973. + lt_save_with_gnu_ld=$with_gnu_ld
  6974. + lt_save_path_LD=$lt_cv_path_LD
  6975. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  6976. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  6977. + else
  6978. + $as_unset lt_cv_prog_gnu_ld
  6979. + fi
  6980. + if test -n "${lt_cv_path_LDCXX+set}"; then
  6981. + lt_cv_path_LD=$lt_cv_path_LDCXX
  6982. + else
  6983. + $as_unset lt_cv_path_LD
  6984. + fi
  6985. + test -z "${LDCXX+set}" || LD=$LDCXX
  6986. + CC=${CXX-"c++"}
  6987. + compiler=$CC
  6988. + _LT_TAGVAR(compiler, $1)=$CC
  6989. + _LT_CC_BASENAME([$compiler])
  6990. -# How to hardcode a shared library path into an executable.
  6991. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  6992. + if test -n "$compiler"; then
  6993. + # We don't want -fno-exception when compiling C++ code, so set the
  6994. + # no_builtin_flag separately
  6995. + if test "$GXX" = yes; then
  6996. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6997. + else
  6998. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6999. + fi
  7000. -# Whether we should hardcode library paths into libraries.
  7001. -hardcode_into_libs=$hardcode_into_libs
  7002. + if test "$GXX" = yes; then
  7003. + # Set up default GNU C++ configuration
  7004. -# Flag to hardcode \$libdir into a binary during linking.
  7005. -# This must work even if \$libdir does not exist.
  7006. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7007. + LT_PATH_LD
  7008. -# If ld is used when linking, flag to hardcode \$libdir into
  7009. -# a binary during linking. This must work even if \$libdir does
  7010. -# not exist.
  7011. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7012. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  7013. + # archiving commands below assume that GNU ld is being used.
  7014. + if test "$with_gnu_ld" = yes; then
  7015. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7016. + _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'
  7017. +
  7018. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7019. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7020. +
  7021. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7022. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  7023. + # investigate it a little bit more. (MM)
  7024. + wlarc='${wl}'
  7025. +
  7026. + # ancient GNU ld didn't support --whole-archive et. al.
  7027. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  7028. + $GREP 'no-whole-archive' > /dev/null; then
  7029. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7030. + else
  7031. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7032. + fi
  7033. + else
  7034. + with_gnu_ld=no
  7035. + wlarc=
  7036. -# Whether we need a single -rpath flag with a separated argument.
  7037. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7038. + # A generic and very simple default shared library creation
  7039. + # command for GNU C++ for the case where it uses the native
  7040. + # linker, instead of GNU ld. If possible, this setting should
  7041. + # overridden to take advantage of the native linker features on
  7042. + # the platform it is being used on.
  7043. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7044. + fi
  7045. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7046. -# resulting binary.
  7047. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7048. + # Commands to make compiler produce verbose output that lists
  7049. + # what "hidden" libraries, object files and flags are used when
  7050. + # linking a shared library.
  7051. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7052. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7053. -# resulting binary.
  7054. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7055. + else
  7056. + GXX=no
  7057. + with_gnu_ld=no
  7058. + wlarc=
  7059. + fi
  7060. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7061. -# the resulting binary.
  7062. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7063. + # PORTME: fill in a description of your system's C++ link characteristics
  7064. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7065. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7066. + case $host_os in
  7067. + aix3*)
  7068. + # FIXME: insert proper C++ library support
  7069. + _LT_TAGVAR(ld_shlibs, $1)=no
  7070. + ;;
  7071. + aix[[4-9]]*)
  7072. + if test "$host_cpu" = ia64; then
  7073. + # On IA64, the linker does run time linking by default, so we don't
  7074. + # have to do anything special.
  7075. + aix_use_runtimelinking=no
  7076. + exp_sym_flag='-Bexport'
  7077. + no_entry_flag=""
  7078. + else
  7079. + aix_use_runtimelinking=no
  7080. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7081. -# and all subsequent libraries and executables linked against it.
  7082. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7083. + # Test if we are trying to use run time linking or normal
  7084. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7085. + # need to do runtime linking.
  7086. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7087. + for ld_flag in $LDFLAGS; do
  7088. + case $ld_flag in
  7089. + *-brtl*)
  7090. + aix_use_runtimelinking=yes
  7091. + break
  7092. + ;;
  7093. + esac
  7094. + done
  7095. + ;;
  7096. + esac
  7097. -# Variables whose values should be saved in libtool wrapper scripts and
  7098. -# restored at relink time.
  7099. -variables_saved_for_relink="$variables_saved_for_relink"
  7100. + exp_sym_flag='-bexport'
  7101. + no_entry_flag='-bnoentry'
  7102. + fi
  7103. -# Whether libtool must link a program against all its dependency libraries.
  7104. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7105. + # When large executables or shared objects are built, AIX ld can
  7106. + # have problems creating the table of contents. If linking a library
  7107. + # or program results in "error TOC overflow" add -mminimal-toc to
  7108. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7109. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7110. +
  7111. + _LT_TAGVAR(archive_cmds, $1)=''
  7112. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7113. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7114. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7115. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7116. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7117. +
  7118. + if test "$GXX" = yes; then
  7119. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7120. + # We only want to do this on AIX 4.2 and lower, the check
  7121. + # below for broken collect2 doesn't work under 4.3+
  7122. + collect2name=`${CC} -print-prog-name=collect2`
  7123. + if test -f "$collect2name" &&
  7124. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7125. + then
  7126. + # We have reworked collect2
  7127. + :
  7128. + else
  7129. + # We have old collect2
  7130. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7131. + # It fails to find uninstalled libraries when the uninstalled
  7132. + # path is not listed in the libpath. Setting hardcode_minus_L
  7133. + # to unsupported forces relinking
  7134. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7135. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7136. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7137. + fi
  7138. + esac
  7139. + shared_flag='-shared'
  7140. + if test "$aix_use_runtimelinking" = yes; then
  7141. + shared_flag="$shared_flag "'${wl}-G'
  7142. + fi
  7143. + else
  7144. + # not using gcc
  7145. + if test "$host_cpu" = ia64; then
  7146. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7147. + # chokes on -Wl,-G. The following line is correct:
  7148. + shared_flag='-G'
  7149. + else
  7150. + if test "$aix_use_runtimelinking" = yes; then
  7151. + shared_flag='${wl}-G'
  7152. + else
  7153. + shared_flag='${wl}-bM:SRE'
  7154. + fi
  7155. + fi
  7156. + fi
  7157. -# Compile-time system search path for libraries
  7158. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7159. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7160. + # It seems that -bexpall does not export symbols beginning with
  7161. + # underscore (_), so it is better to generate a list of symbols to
  7162. + # export.
  7163. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7164. + if test "$aix_use_runtimelinking" = yes; then
  7165. + # Warning - without using the other runtime loading flags (-brtl),
  7166. + # -berok will link without error, but may produce a broken library.
  7167. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7168. + # Determine the default libpath from the value encoded in an empty
  7169. + # executable.
  7170. + _LT_SYS_MODULE_PATH_AIX
  7171. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7172. -# Run-time system search path for libraries
  7173. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7174. + _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"
  7175. + else
  7176. + if test "$host_cpu" = ia64; then
  7177. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7178. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7179. + _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"
  7180. + else
  7181. + # Determine the default libpath from the value encoded in an
  7182. + # empty executable.
  7183. + _LT_SYS_MODULE_PATH_AIX
  7184. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7185. + # Warning - without using the other run time loading flags,
  7186. + # -berok will link without error, but may produce a broken library.
  7187. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7188. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7189. + # Exported symbols can be pulled into shared objects from archives
  7190. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7191. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7192. + # This is similar to how AIX traditionally builds its shared
  7193. + # libraries.
  7194. + _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'
  7195. + fi
  7196. + fi
  7197. + ;;
  7198. -# Fix the shell variable \$srcfile for the compiler.
  7199. -fix_srcfile_path=$lt_fix_srcfile_path
  7200. + beos*)
  7201. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7202. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7203. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7204. + # support --undefined. This deserves some investigation. FIXME
  7205. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7206. + else
  7207. + _LT_TAGVAR(ld_shlibs, $1)=no
  7208. + fi
  7209. + ;;
  7210. -# Set to yes if exported symbols are required.
  7211. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7212. + chorus*)
  7213. + case $cc_basename in
  7214. + *)
  7215. + # FIXME: insert proper C++ library support
  7216. + _LT_TAGVAR(ld_shlibs, $1)=no
  7217. + ;;
  7218. + esac
  7219. + ;;
  7220. -# The commands to list exported symbols.
  7221. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7222. + cygwin* | mingw* | pw32* | cegcc*)
  7223. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7224. + # as there is no search path for DLLs.
  7225. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7226. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7227. + _LT_TAGVAR(always_export_symbols, $1)=no
  7228. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7229. +
  7230. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7231. + _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'
  7232. + # If the export-symbols file already is a .def file (1st line
  7233. + # is EXPORTS), use it as is; otherwise, prepend...
  7234. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7235. + cp $export_symbols $output_objdir/$soname.def;
  7236. + else
  7237. + echo EXPORTS > $output_objdir/$soname.def;
  7238. + cat $export_symbols >> $output_objdir/$soname.def;
  7239. + fi~
  7240. + $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'
  7241. + else
  7242. + _LT_TAGVAR(ld_shlibs, $1)=no
  7243. + fi
  7244. + ;;
  7245. + darwin* | rhapsody*)
  7246. + _LT_DARWIN_LINKER_FEATURES($1)
  7247. + ;;
  7248. -# The commands to extract the exported symbol list from a shared archive.
  7249. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7250. + dgux*)
  7251. + case $cc_basename in
  7252. + ec++*)
  7253. + # FIXME: insert proper C++ library support
  7254. + _LT_TAGVAR(ld_shlibs, $1)=no
  7255. + ;;
  7256. + ghcx*)
  7257. + # Green Hills C++ Compiler
  7258. + # FIXME: insert proper C++ library support
  7259. + _LT_TAGVAR(ld_shlibs, $1)=no
  7260. + ;;
  7261. + *)
  7262. + # FIXME: insert proper C++ library support
  7263. + _LT_TAGVAR(ld_shlibs, $1)=no
  7264. + ;;
  7265. + esac
  7266. + ;;
  7267. -# Symbols that should not be listed in the preloaded symbols.
  7268. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7269. + freebsd[[12]]*)
  7270. + # C++ shared libraries reported to be fairly broken before
  7271. + # switch to ELF
  7272. + _LT_TAGVAR(ld_shlibs, $1)=no
  7273. + ;;
  7274. -# Symbols that must always be exported.
  7275. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7276. + freebsd-elf*)
  7277. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7278. + ;;
  7279. -ifelse([$1],[],
  7280. -[# ### END LIBTOOL CONFIG],
  7281. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7282. + freebsd* | dragonfly*)
  7283. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  7284. + # conventions
  7285. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7286. + ;;
  7287. -__EOF__
  7288. + gnu*)
  7289. + ;;
  7290. -ifelse([$1],[], [
  7291. - case $host_os in
  7292. - aix3*)
  7293. - cat <<\EOF >> "$cfgfile"
  7294. + hpux9*)
  7295. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7296. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7297. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7298. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7299. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7300. + # but as the default
  7301. + # location of the library.
  7302. +
  7303. + case $cc_basename in
  7304. + CC*)
  7305. + # FIXME: insert proper C++ library support
  7306. + _LT_TAGVAR(ld_shlibs, $1)=no
  7307. + ;;
  7308. + aCC*)
  7309. + _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'
  7310. + # Commands to make compiler produce verbose output that lists
  7311. + # what "hidden" libraries, object files and flags are used when
  7312. + # linking a shared library.
  7313. + #
  7314. + # There doesn't appear to be a way to prevent this compiler from
  7315. + # explicitly linking system object files so we need to strip them
  7316. + # from the output so that they don't get included in the library
  7317. + # dependencies.
  7318. + 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'
  7319. + ;;
  7320. + *)
  7321. + if test "$GXX" = yes; then
  7322. + _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'
  7323. + else
  7324. + # FIXME: insert proper C++ library support
  7325. + _LT_TAGVAR(ld_shlibs, $1)=no
  7326. + fi
  7327. + ;;
  7328. + esac
  7329. + ;;
  7330. -# AIX sometimes has problems with the GCC collect2 program. For some
  7331. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7332. -# vanish in a puff of smoke.
  7333. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7334. - COLLECT_NAMES=
  7335. - export COLLECT_NAMES
  7336. -fi
  7337. -EOF
  7338. - ;;
  7339. - esac
  7340. + hpux10*|hpux11*)
  7341. + if test $with_gnu_ld = no; then
  7342. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7343. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7344. +
  7345. + case $host_cpu in
  7346. + hppa*64*|ia64*)
  7347. + ;;
  7348. + *)
  7349. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7350. + ;;
  7351. + esac
  7352. + fi
  7353. + case $host_cpu in
  7354. + hppa*64*|ia64*)
  7355. + _LT_TAGVAR(hardcode_direct, $1)=no
  7356. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7357. + ;;
  7358. + *)
  7359. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7360. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7361. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7362. + # but as the default
  7363. + # location of the library.
  7364. + ;;
  7365. + esac
  7366. +
  7367. + case $cc_basename in
  7368. + CC*)
  7369. + # FIXME: insert proper C++ library support
  7370. + _LT_TAGVAR(ld_shlibs, $1)=no
  7371. + ;;
  7372. + aCC*)
  7373. + case $host_cpu in
  7374. + hppa*64*)
  7375. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7376. + ;;
  7377. + ia64*)
  7378. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7379. + ;;
  7380. + *)
  7381. + _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'
  7382. + ;;
  7383. + esac
  7384. + # Commands to make compiler produce verbose output that lists
  7385. + # what "hidden" libraries, object files and flags are used when
  7386. + # linking a shared library.
  7387. + #
  7388. + # There doesn't appear to be a way to prevent this compiler from
  7389. + # explicitly linking system object files so we need to strip them
  7390. + # from the output so that they don't get included in the library
  7391. + # dependencies.
  7392. + 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'
  7393. + ;;
  7394. + *)
  7395. + if test "$GXX" = yes; then
  7396. + if test $with_gnu_ld = no; then
  7397. + case $host_cpu in
  7398. + hppa*64*)
  7399. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7400. + ;;
  7401. + ia64*)
  7402. + _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'
  7403. + ;;
  7404. + *)
  7405. + _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'
  7406. + ;;
  7407. + esac
  7408. + fi
  7409. + else
  7410. + # FIXME: insert proper C++ library support
  7411. + _LT_TAGVAR(ld_shlibs, $1)=no
  7412. + fi
  7413. + ;;
  7414. + esac
  7415. + ;;
  7416. - # We use sed instead of cat because bash on DJGPP gets confused if
  7417. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7418. - # text mode, it properly converts lines to CR/LF. This bash problem
  7419. - # is reportedly fixed, but why not run on old versions too?
  7420. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7421. + interix[[3-9]]*)
  7422. + _LT_TAGVAR(hardcode_direct, $1)=no
  7423. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7424. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7425. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7426. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7427. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7428. + # default) and relocated if they conflict, which is a slow very memory
  7429. + # consuming and fragmenting process. To avoid this, we pick a random,
  7430. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7431. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7432. + _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'
  7433. + _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'
  7434. + ;;
  7435. + irix5* | irix6*)
  7436. + case $cc_basename in
  7437. + CC*)
  7438. + # SGI C++
  7439. + _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'
  7440. +
  7441. + # Archives containing C++ object files must be created using
  7442. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  7443. + # necessary to make sure instantiated templates are included
  7444. + # in the archive.
  7445. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  7446. + ;;
  7447. + *)
  7448. + if test "$GXX" = yes; then
  7449. + if test "$with_gnu_ld" = no; then
  7450. + _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'
  7451. + else
  7452. + _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'
  7453. + fi
  7454. + fi
  7455. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7456. + ;;
  7457. + esac
  7458. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7459. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7460. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7461. + ;;
  7462. - mv -f "$cfgfile" "$ofile" || \
  7463. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7464. - chmod +x "$ofile"
  7465. -])
  7466. -else
  7467. - # If there is no Makefile yet, we rely on a make rule to execute
  7468. - # `config.status --recheck' to rerun these tests and create the
  7469. - # libtool script then.
  7470. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7471. - if test -f "$ltmain_in"; then
  7472. - test -f Makefile && make "$ltmain"
  7473. - fi
  7474. -fi
  7475. -])# AC_LIBTOOL_CONFIG
  7476. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7477. + case $cc_basename in
  7478. + KCC*)
  7479. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7480. +
  7481. + # KCC will only create a shared library if the output file
  7482. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7483. + # to its proper name (with version) after linking.
  7484. + _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'
  7485. + _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'
  7486. + # Commands to make compiler produce verbose output that lists
  7487. + # what "hidden" libraries, object files and flags are used when
  7488. + # linking a shared library.
  7489. + #
  7490. + # There doesn't appear to be a way to prevent this compiler from
  7491. + # explicitly linking system object files so we need to strip them
  7492. + # from the output so that they don't get included in the library
  7493. + # dependencies.
  7494. + 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'
  7495. +
  7496. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7497. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7498. +
  7499. + # Archives containing C++ object files must be created using
  7500. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7501. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7502. + ;;
  7503. + icpc* | ecpc* )
  7504. + # Intel C++
  7505. + with_gnu_ld=yes
  7506. + # version 8.0 and above of icpc choke on multiply defined symbols
  7507. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  7508. + # earlier do not add the objects themselves.
  7509. + case `$CC -V 2>&1` in
  7510. + *"Version 7."*)
  7511. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7512. + _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'
  7513. + ;;
  7514. + *) # Version 8.0 or newer
  7515. + tmp_idyn=
  7516. + case $host_cpu in
  7517. + ia64*) tmp_idyn=' -i_dynamic';;
  7518. + esac
  7519. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7520. + _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'
  7521. + ;;
  7522. + esac
  7523. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7524. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7525. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7526. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7527. + ;;
  7528. + pgCC* | pgcpp*)
  7529. + # Portland Group C++ compiler
  7530. + case `$CC -V` in
  7531. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  7532. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7533. + rm -rf $tpldir~
  7534. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7535. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  7536. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7537. + rm -rf $tpldir~
  7538. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7539. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  7540. + $RANLIB $oldlib'
  7541. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7542. + rm -rf $tpldir~
  7543. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7544. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7545. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7546. + rm -rf $tpldir~
  7547. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7548. + $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'
  7549. + ;;
  7550. + *) # Version 6 will use weak symbols
  7551. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7552. + _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'
  7553. + ;;
  7554. + esac
  7555. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7556. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7557. + _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'
  7558. + ;;
  7559. + cxx*)
  7560. + # Compaq C++
  7561. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7562. + _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'
  7563. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7564. -# -------------------------------------------
  7565. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7566. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7567. + runpath_var=LD_RUN_PATH
  7568. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7569. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7570. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7571. + # Commands to make compiler produce verbose output that lists
  7572. + # what "hidden" libraries, object files and flags are used when
  7573. + # linking a shared library.
  7574. + #
  7575. + # There doesn't appear to be a way to prevent this compiler from
  7576. + # explicitly linking system object files so we need to strip them
  7577. + # from the output so that they don't get included in the library
  7578. + # dependencies.
  7579. + 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'
  7580. + ;;
  7581. + xl*)
  7582. + # IBM XL 8.0 on PPC, with GNU ld
  7583. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7584. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7585. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7586. + if test "x$supports_anon_versioning" = xyes; then
  7587. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7588. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7589. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7590. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7591. + fi
  7592. + ;;
  7593. + *)
  7594. + case `$CC -V 2>&1 | sed 5q` in
  7595. + *Sun\ C*)
  7596. + # Sun C++ 5.9
  7597. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7598. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7599. + _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'
  7600. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7601. + _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'
  7602. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7603. +
  7604. + # Not sure whether something based on
  7605. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7606. + # would be better.
  7607. + output_verbose_link_cmd='echo'
  7608. +
  7609. + # Archives containing C++ object files must be created using
  7610. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7611. + # necessary to make sure instantiated templates are included
  7612. + # in the archive.
  7613. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7614. + ;;
  7615. + esac
  7616. + ;;
  7617. + esac
  7618. + ;;
  7619. -if test "$GCC" = yes; then
  7620. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7621. + lynxos*)
  7622. + # FIXME: insert proper C++ library support
  7623. + _LT_TAGVAR(ld_shlibs, $1)=no
  7624. + ;;
  7625. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7626. - lt_cv_prog_compiler_rtti_exceptions,
  7627. - [-fno-rtti -fno-exceptions], [],
  7628. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7629. -fi
  7630. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7631. + m88k*)
  7632. + # FIXME: insert proper C++ library support
  7633. + _LT_TAGVAR(ld_shlibs, $1)=no
  7634. + ;;
  7635. + mvs*)
  7636. + case $cc_basename in
  7637. + cxx*)
  7638. + # FIXME: insert proper C++ library support
  7639. + _LT_TAGVAR(ld_shlibs, $1)=no
  7640. + ;;
  7641. + *)
  7642. + # FIXME: insert proper C++ library support
  7643. + _LT_TAGVAR(ld_shlibs, $1)=no
  7644. + ;;
  7645. + esac
  7646. + ;;
  7647. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7648. -# ---------------------------------
  7649. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7650. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7651. -AC_REQUIRE([LT_AC_PROG_SED])
  7652. -AC_REQUIRE([AC_PROG_NM])
  7653. -AC_REQUIRE([AC_OBJEXT])
  7654. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7655. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7656. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7657. -[
  7658. -# These are sane defaults that work on at least a few old systems.
  7659. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7660. + netbsd*)
  7661. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7662. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7663. + wlarc=
  7664. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7665. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7666. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7667. + fi
  7668. + # Workaround some broken pre-1.5 toolchains
  7669. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7670. + ;;
  7671. -# Character class describing NM global symbol codes.
  7672. -symcode='[[BCDEGRST]]'
  7673. + *nto* | *qnx*)
  7674. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7675. + ;;
  7676. -# Regexp to match symbols that can be accessed directly from C.
  7677. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7678. + openbsd2*)
  7679. + # C++ shared libraries are fairly broken
  7680. + _LT_TAGVAR(ld_shlibs, $1)=no
  7681. + ;;
  7682. +
  7683. + openbsd*)
  7684. + if test -f /usr/libexec/ld.so; then
  7685. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7686. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7687. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7688. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7689. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7690. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7691. + _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'
  7692. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7693. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7694. + fi
  7695. + output_verbose_link_cmd=echo
  7696. + else
  7697. + _LT_TAGVAR(ld_shlibs, $1)=no
  7698. + fi
  7699. + ;;
  7700. -# Transform an extracted symbol line into a proper C declaration
  7701. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7702. + osf3* | osf4* | osf5*)
  7703. + case $cc_basename in
  7704. + KCC*)
  7705. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7706. +
  7707. + # KCC will only create a shared library if the output file
  7708. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7709. + # to its proper name (with version) after linking.
  7710. + _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'
  7711. +
  7712. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7713. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7714. +
  7715. + # Archives containing C++ object files must be created using
  7716. + # the KAI C++ compiler.
  7717. + case $host in
  7718. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7719. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7720. + esac
  7721. + ;;
  7722. + RCC*)
  7723. + # Rational C++ 2.4.1
  7724. + # FIXME: insert proper C++ library support
  7725. + _LT_TAGVAR(ld_shlibs, $1)=no
  7726. + ;;
  7727. + cxx*)
  7728. + case $host in
  7729. + osf3*)
  7730. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7731. + _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'
  7732. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7733. + ;;
  7734. + *)
  7735. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7736. + _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'
  7737. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7738. + echo "-hidden">> $lib.exp~
  7739. + $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~
  7740. + $RM $lib.exp'
  7741. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7742. + ;;
  7743. + esac
  7744. -# Transform an extracted symbol line into symbol name and symbol address
  7745. -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'"
  7746. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7747. -# Define system-specific variables.
  7748. -case $host_os in
  7749. -aix*)
  7750. - symcode='[[BCDT]]'
  7751. - ;;
  7752. -cygwin* | mingw* | pw32*)
  7753. - symcode='[[ABCDGISTW]]'
  7754. - ;;
  7755. -hpux*) # Its linker distinguishes data from code symbols
  7756. - if test "$host_cpu" = ia64; then
  7757. - symcode='[[ABCDEGRST]]'
  7758. - fi
  7759. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7760. - 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'"
  7761. - ;;
  7762. -linux* | k*bsd*-gnu)
  7763. - if test "$host_cpu" = ia64; then
  7764. - symcode='[[ABCDGIRSTW]]'
  7765. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7766. - 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'"
  7767. - fi
  7768. - ;;
  7769. -irix* | nonstopux*)
  7770. - symcode='[[BCDEGRST]]'
  7771. - ;;
  7772. -osf*)
  7773. - symcode='[[BCDEGQRST]]'
  7774. - ;;
  7775. -solaris*)
  7776. - symcode='[[BDRT]]'
  7777. - ;;
  7778. -sco3.2v5*)
  7779. - symcode='[[DT]]'
  7780. - ;;
  7781. -sysv4.2uw2*)
  7782. - symcode='[[DT]]'
  7783. - ;;
  7784. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7785. - symcode='[[ABDT]]'
  7786. - ;;
  7787. -sysv4)
  7788. - symcode='[[DFNSTU]]'
  7789. - ;;
  7790. -esac
  7791. + # Commands to make compiler produce verbose output that lists
  7792. + # what "hidden" libraries, object files and flags are used when
  7793. + # linking a shared library.
  7794. + #
  7795. + # There doesn't appear to be a way to prevent this compiler from
  7796. + # explicitly linking system object files so we need to strip them
  7797. + # from the output so that they don't get included in the library
  7798. + # dependencies.
  7799. + 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'
  7800. + ;;
  7801. + *)
  7802. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7803. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7804. + case $host in
  7805. + osf3*)
  7806. + _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'
  7807. + ;;
  7808. + *)
  7809. + _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'
  7810. + ;;
  7811. + esac
  7812. +
  7813. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7814. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7815. +
  7816. + # Commands to make compiler produce verbose output that lists
  7817. + # what "hidden" libraries, object files and flags are used when
  7818. + # linking a shared library.
  7819. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7820. +
  7821. + else
  7822. + # FIXME: insert proper C++ library support
  7823. + _LT_TAGVAR(ld_shlibs, $1)=no
  7824. + fi
  7825. + ;;
  7826. + esac
  7827. + ;;
  7828. -# Handle CRLF in mingw tool chain
  7829. -opt_cr=
  7830. -case $build_os in
  7831. -mingw*)
  7832. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7833. - ;;
  7834. -esac
  7835. + psos*)
  7836. + # FIXME: insert proper C++ library support
  7837. + _LT_TAGVAR(ld_shlibs, $1)=no
  7838. + ;;
  7839. -# If we're using GNU nm, then use its standard symbol codes.
  7840. -case `$NM -V 2>&1` in
  7841. -*GNU* | *'with BFD'*)
  7842. - symcode='[[ABCDGIRSTW]]' ;;
  7843. -esac
  7844. + sunos4*)
  7845. + case $cc_basename in
  7846. + CC*)
  7847. + # Sun C++ 4.x
  7848. + # FIXME: insert proper C++ library support
  7849. + _LT_TAGVAR(ld_shlibs, $1)=no
  7850. + ;;
  7851. + lcc*)
  7852. + # Lucid
  7853. + # FIXME: insert proper C++ library support
  7854. + _LT_TAGVAR(ld_shlibs, $1)=no
  7855. + ;;
  7856. + *)
  7857. + # FIXME: insert proper C++ library support
  7858. + _LT_TAGVAR(ld_shlibs, $1)=no
  7859. + ;;
  7860. + esac
  7861. + ;;
  7862. -# Try without a prefix undercore, then with it.
  7863. -for ac_symprfx in "" "_"; do
  7864. + solaris*)
  7865. + case $cc_basename in
  7866. + CC*)
  7867. + # Sun C++ 4.2, 5.x and Centerline C++
  7868. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  7869. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7870. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7871. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7872. + $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'
  7873. +
  7874. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7875. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7876. + case $host_os in
  7877. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7878. + *)
  7879. + # The compiler driver will combine and reorder linker options,
  7880. + # but understands `-z linker_flag'.
  7881. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7882. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7883. + ;;
  7884. + esac
  7885. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7886. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7887. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  7888. + output_verbose_link_cmd='echo'
  7889. - # Write the raw and C identifiers.
  7890. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7891. + # Archives containing C++ object files must be created using
  7892. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7893. + # necessary to make sure instantiated templates are included
  7894. + # in the archive.
  7895. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7896. + ;;
  7897. + gcx*)
  7898. + # Green Hills C++ Compiler
  7899. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7900. - # Check to see that the pipe works correctly.
  7901. - pipe_works=no
  7902. + # The C++ compiler must be used to create the archive.
  7903. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7904. + ;;
  7905. + *)
  7906. + # GNU C++ compiler with Solaris linker
  7907. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7908. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  7909. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  7910. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7911. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7912. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7913. +
  7914. + # Commands to make compiler produce verbose output that lists
  7915. + # what "hidden" libraries, object files and flags are used when
  7916. + # linking a shared library.
  7917. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7918. + else
  7919. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  7920. + # platform.
  7921. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7922. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7923. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7924. +
  7925. + # Commands to make compiler produce verbose output that lists
  7926. + # what "hidden" libraries, object files and flags are used when
  7927. + # linking a shared library.
  7928. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7929. + fi
  7930. +
  7931. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  7932. + case $host_os in
  7933. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7934. + *)
  7935. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7936. + ;;
  7937. + esac
  7938. + fi
  7939. + ;;
  7940. + esac
  7941. + ;;
  7942. - rm -f conftest*
  7943. - cat > conftest.$ac_ext <<EOF
  7944. -#ifdef __cplusplus
  7945. -extern "C" {
  7946. -#endif
  7947. -char nm_test_var;
  7948. -void nm_test_func(){}
  7949. -#ifdef __cplusplus
  7950. -}
  7951. -#endif
  7952. -int main(){nm_test_var='a';nm_test_func();return(0);}
  7953. -EOF
  7954. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7955. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7956. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7957. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7958. + runpath_var='LD_RUN_PATH'
  7959. - if AC_TRY_EVAL(ac_compile); then
  7960. - # Now try to grab the symbols.
  7961. - nlist=conftest.nm
  7962. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  7963. - # Try sorting and uniquifying the output.
  7964. - if sort "$nlist" | uniq > "$nlist"T; then
  7965. - mv -f "$nlist"T "$nlist"
  7966. - else
  7967. - rm -f "$nlist"T
  7968. - fi
  7969. + case $cc_basename in
  7970. + CC*)
  7971. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7972. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7973. + ;;
  7974. + *)
  7975. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7976. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7977. + ;;
  7978. + esac
  7979. + ;;
  7980. - # Make sure that we snagged all the symbols we need.
  7981. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  7982. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  7983. - cat <<EOF > conftest.$ac_ext
  7984. -#ifdef __cplusplus
  7985. -extern "C" {
  7986. -#endif
  7987. + sysv5* | sco3.2v5* | sco5v6*)
  7988. + # Note: We can NOT use -z defs as we might desire, because we do not
  7989. + # link with -lc, and that would cause any symbols used from libc to
  7990. + # always be unresolved, which means just about no library would
  7991. + # ever link correctly. If we're not using GNU ld we use -z text
  7992. + # though, which does catch some bad symbols but isn't as heavy-handed
  7993. + # as -z defs.
  7994. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7995. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7996. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7997. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7998. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  7999. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8000. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8001. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8002. + runpath_var='LD_RUN_PATH'
  8003. -EOF
  8004. - # Now generate the symbol file.
  8005. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8006. + case $cc_basename in
  8007. + CC*)
  8008. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8009. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8010. + ;;
  8011. + *)
  8012. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8013. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8014. + ;;
  8015. + esac
  8016. + ;;
  8017. - cat <<EOF >> conftest.$ac_ext
  8018. -#if defined (__STDC__) && __STDC__
  8019. -# define lt_ptr_t void *
  8020. -#else
  8021. -# define lt_ptr_t char *
  8022. -# define const
  8023. -#endif
  8024. + tandem*)
  8025. + case $cc_basename in
  8026. + NCC*)
  8027. + # NonStop-UX NCC 3.20
  8028. + # FIXME: insert proper C++ library support
  8029. + _LT_TAGVAR(ld_shlibs, $1)=no
  8030. + ;;
  8031. + *)
  8032. + # FIXME: insert proper C++ library support
  8033. + _LT_TAGVAR(ld_shlibs, $1)=no
  8034. + ;;
  8035. + esac
  8036. + ;;
  8037. -/* The mapping between symbol names and symbols. */
  8038. -const struct {
  8039. - const char *name;
  8040. - lt_ptr_t address;
  8041. -}
  8042. -lt_preloaded_symbols[[]] =
  8043. -{
  8044. -EOF
  8045. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8046. - cat <<\EOF >> conftest.$ac_ext
  8047. - {0, (lt_ptr_t) 0}
  8048. -};
  8049. + vxworks*)
  8050. + # FIXME: insert proper C++ library support
  8051. + _LT_TAGVAR(ld_shlibs, $1)=no
  8052. + ;;
  8053. -#ifdef __cplusplus
  8054. -}
  8055. -#endif
  8056. -EOF
  8057. - # Now try linking the two files.
  8058. - mv conftest.$ac_objext conftstm.$ac_objext
  8059. - lt_save_LIBS="$LIBS"
  8060. - lt_save_CFLAGS="$CFLAGS"
  8061. - LIBS="conftstm.$ac_objext"
  8062. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8063. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8064. - pipe_works=yes
  8065. - fi
  8066. - LIBS="$lt_save_LIBS"
  8067. - CFLAGS="$lt_save_CFLAGS"
  8068. - else
  8069. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8070. - fi
  8071. - else
  8072. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8073. - fi
  8074. - else
  8075. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8076. - fi
  8077. - else
  8078. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8079. - cat conftest.$ac_ext >&5
  8080. - fi
  8081. - rm -rf conftest* conftst*
  8082. + *)
  8083. + # FIXME: insert proper C++ library support
  8084. + _LT_TAGVAR(ld_shlibs, $1)=no
  8085. + ;;
  8086. + esac
  8087. - # Do not use the global_symbol_pipe unless it works.
  8088. - if test "$pipe_works" = yes; then
  8089. - break
  8090. - else
  8091. - lt_cv_sys_global_symbol_pipe=
  8092. - fi
  8093. -done
  8094. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8095. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8096. +
  8097. + _LT_TAGVAR(GCC, $1)="$GXX"
  8098. + _LT_TAGVAR(LD, $1)="$LD"
  8099. +
  8100. + ## CAVEAT EMPTOR:
  8101. + ## There is no encapsulation within the following macros, do not change
  8102. + ## the running order or otherwise move them around unless you know exactly
  8103. + ## what you are doing...
  8104. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8105. + _LT_COMPILER_PIC($1)
  8106. + _LT_COMPILER_C_O($1)
  8107. + _LT_COMPILER_FILE_LOCKS($1)
  8108. + _LT_LINKER_SHLIBS($1)
  8109. + _LT_SYS_DYNAMIC_LINKER($1)
  8110. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8111. +
  8112. + _LT_CONFIG($1)
  8113. + fi # test -n "$compiler"
  8114. +
  8115. + CC=$lt_save_CC
  8116. + LDCXX=$LD
  8117. + LD=$lt_save_LD
  8118. + GCC=$lt_save_GCC
  8119. + with_gnu_ld=$lt_save_with_gnu_ld
  8120. + lt_cv_path_LDCXX=$lt_cv_path_LD
  8121. + lt_cv_path_LD=$lt_save_path_LD
  8122. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8123. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8124. +fi # test "$_lt_caught_CXX_error" != yes
  8125. +
  8126. +AC_LANG_POP
  8127. +])# _LT_LANG_CXX_CONFIG
  8128. +
  8129. +
  8130. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8131. +# ---------------------------------
  8132. +# Figure out "hidden" library dependencies from verbose
  8133. +# compiler output when linking a shared library.
  8134. +# Parse the compiler output and extract the necessary
  8135. +# objects, libraries and library flags.
  8136. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8137. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8138. +# Dependencies to place before and after the object being linked:
  8139. +_LT_TAGVAR(predep_objects, $1)=
  8140. +_LT_TAGVAR(postdep_objects, $1)=
  8141. +_LT_TAGVAR(predeps, $1)=
  8142. +_LT_TAGVAR(postdeps, $1)=
  8143. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  8144. +
  8145. +dnl we can't use the lt_simple_compile_test_code here,
  8146. +dnl because it contains code intended for an executable,
  8147. +dnl not a library. It's possible we should let each
  8148. +dnl tag define a new lt_????_link_test_code variable,
  8149. +dnl but it's only used here...
  8150. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8151. +int a;
  8152. +void foo (void) { a = 0; }
  8153. +_LT_EOF
  8154. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8155. +class Foo
  8156. +{
  8157. +public:
  8158. + Foo (void) { a = 0; }
  8159. +private:
  8160. + int a;
  8161. +};
  8162. +_LT_EOF
  8163. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8164. + subroutine foo
  8165. + implicit none
  8166. + integer*4 a
  8167. + a=0
  8168. + return
  8169. + end
  8170. +_LT_EOF
  8171. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8172. + subroutine foo
  8173. + implicit none
  8174. + integer a
  8175. + a=0
  8176. + return
  8177. + end
  8178. +_LT_EOF
  8179. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8180. +public class foo {
  8181. + private int a;
  8182. + public void bar (void) {
  8183. + a = 0;
  8184. + }
  8185. +};
  8186. +_LT_EOF
  8187. ])
  8188. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8189. - lt_cv_sys_global_symbol_to_cdecl=
  8190. -fi
  8191. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8192. - AC_MSG_RESULT(failed)
  8193. +dnl Parse the compiler output and extract the necessary
  8194. +dnl objects, libraries and library flags.
  8195. +if AC_TRY_EVAL(ac_compile); then
  8196. + # Parse the compiler output and extract the necessary
  8197. + # objects, libraries and library flags.
  8198. +
  8199. + # Sentinel used to keep track of whether or not we are before
  8200. + # the conftest object file.
  8201. + pre_test_object_deps_done=no
  8202. +
  8203. + for p in `eval "$output_verbose_link_cmd"`; do
  8204. + case $p in
  8205. +
  8206. + -L* | -R* | -l*)
  8207. + # Some compilers place space between "-{L,R}" and the path.
  8208. + # Remove the space.
  8209. + if test $p = "-L" ||
  8210. + test $p = "-R"; then
  8211. + prev=$p
  8212. + continue
  8213. + else
  8214. + prev=
  8215. + fi
  8216. +
  8217. + if test "$pre_test_object_deps_done" = no; then
  8218. + case $p in
  8219. + -L* | -R*)
  8220. + # Internal compiler library paths should come after those
  8221. + # provided the user. The postdeps already come after the
  8222. + # user supplied libs so there is no need to process them.
  8223. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8224. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8225. + else
  8226. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8227. + fi
  8228. + ;;
  8229. + # The "-l" case would never come before the object being
  8230. + # linked, so don't bother handling this case.
  8231. + esac
  8232. + else
  8233. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8234. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8235. + else
  8236. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8237. + fi
  8238. + fi
  8239. + ;;
  8240. +
  8241. + *.$objext)
  8242. + # This assumes that the test object file only shows up
  8243. + # once in the compiler output.
  8244. + if test "$p" = "conftest.$objext"; then
  8245. + pre_test_object_deps_done=yes
  8246. + continue
  8247. + fi
  8248. +
  8249. + if test "$pre_test_object_deps_done" = no; then
  8250. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8251. + _LT_TAGVAR(predep_objects, $1)="$p"
  8252. + else
  8253. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8254. + fi
  8255. + else
  8256. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8257. + _LT_TAGVAR(postdep_objects, $1)="$p"
  8258. + else
  8259. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8260. + fi
  8261. + fi
  8262. + ;;
  8263. +
  8264. + *) ;; # Ignore the rest.
  8265. +
  8266. + esac
  8267. + done
  8268. +
  8269. + # Clean up.
  8270. + rm -f a.out a.exe
  8271. else
  8272. - AC_MSG_RESULT(ok)
  8273. + echo "libtool.m4: error: problem compiling $1 test program"
  8274. fi
  8275. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8276. +$RM -f confest.$objext
  8277. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8278. -# ---------------------------------------
  8279. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8280. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8281. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8282. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8283. +# PORTME: override above test on systems where it is broken
  8284. +m4_if([$1], [CXX],
  8285. +[case $host_os in
  8286. +interix[[3-9]]*)
  8287. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8288. + # hack all around it, let's just trust "g++" to DTRT.
  8289. + _LT_TAGVAR(predep_objects,$1)=
  8290. + _LT_TAGVAR(postdep_objects,$1)=
  8291. + _LT_TAGVAR(postdeps,$1)=
  8292. + ;;
  8293. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8294. - ifelse([$1],[CXX],[
  8295. - # C++ specific cases for pic, static, wl, etc.
  8296. - if test "$GXX" = yes; then
  8297. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8298. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8299. +linux*)
  8300. + case `$CC -V 2>&1 | sed 5q` in
  8301. + *Sun\ C*)
  8302. + # Sun C++ 5.9
  8303. - case $host_os in
  8304. - aix*)
  8305. - # All AIX code is PIC.
  8306. - if test "$host_cpu" = ia64; then
  8307. - # AIX 5 now supports IA64 processor
  8308. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8309. - fi
  8310. - ;;
  8311. - amigaos*)
  8312. - # FIXME: we need at least 68020 code to build shared libraries, but
  8313. - # adding the `-m68020' flag to GCC prevents building anything better,
  8314. - # like `-m68040'.
  8315. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8316. - ;;
  8317. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8318. - # PIC is the default for these OSes.
  8319. - ;;
  8320. - mingw* | cygwin* | os2* | pw32*)
  8321. - # This hack is so that the source file can tell whether it is being
  8322. - # built for inclusion in a dll (and should export symbols for example).
  8323. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8324. - # (--disable-auto-import) libraries
  8325. - m4_if([$1], [GCJ], [],
  8326. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  8327. - ;;
  8328. - darwin* | rhapsody*)
  8329. - # PIC is the default on this platform
  8330. - # Common symbols not allowed in MH_DYLIB files
  8331. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8332. - ;;
  8333. - *djgpp*)
  8334. - # DJGPP does not support shared libraries at all
  8335. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8336. - ;;
  8337. - interix[[3-9]]*)
  8338. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8339. - # Instead, we relocate shared libraries at runtime.
  8340. - ;;
  8341. - sysv4*MP*)
  8342. - if test -d /usr/nec; then
  8343. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8344. - fi
  8345. - ;;
  8346. - hpux*)
  8347. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8348. - # not for PA HP-UX.
  8349. - case $host_cpu in
  8350. - hppa*64*|ia64*)
  8351. - ;;
  8352. - *)
  8353. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8354. - ;;
  8355. - esac
  8356. + # The more standards-conforming stlport4 library is
  8357. + # incompatible with the Cstd library. Avoid specifying
  8358. + # it if it's in CXXFLAGS. Ignore libCrun as
  8359. + # -library=stlport4 depends on it.
  8360. + case " $CXX $CXXFLAGS " in
  8361. + *" -library=stlport4 "*)
  8362. + solaris_use_stlport4=yes
  8363. ;;
  8364. - *)
  8365. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8366. + esac
  8367. +
  8368. + if test "$solaris_use_stlport4" != yes; then
  8369. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8370. + fi
  8371. + ;;
  8372. + esac
  8373. + ;;
  8374. +
  8375. +solaris*)
  8376. + case $cc_basename in
  8377. + CC*)
  8378. + # The more standards-conforming stlport4 library is
  8379. + # incompatible with the Cstd library. Avoid specifying
  8380. + # it if it's in CXXFLAGS. Ignore libCrun as
  8381. + # -library=stlport4 depends on it.
  8382. + case " $CXX $CXXFLAGS " in
  8383. + *" -library=stlport4 "*)
  8384. + solaris_use_stlport4=yes
  8385. ;;
  8386. esac
  8387. - else
  8388. +
  8389. + # Adding this requires a known-good setup of shared libraries for
  8390. + # Sun compiler versions before 5.6, else PIC objects from an old
  8391. + # archive will be linked into the output, leading to subtle bugs.
  8392. + if test "$solaris_use_stlport4" != yes; then
  8393. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8394. + fi
  8395. + ;;
  8396. + esac
  8397. + ;;
  8398. +esac
  8399. +])
  8400. +
  8401. +case " $_LT_TAGVAR(postdeps, $1) " in
  8402. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  8403. +esac
  8404. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  8405. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  8406. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8407. +fi
  8408. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  8409. + [The directories searched by this compiler when creating a shared library])
  8410. +_LT_TAGDECL([], [predep_objects], [1],
  8411. + [Dependencies to place before and after the objects being linked to
  8412. + create a shared library])
  8413. +_LT_TAGDECL([], [postdep_objects], [1])
  8414. +_LT_TAGDECL([], [predeps], [1])
  8415. +_LT_TAGDECL([], [postdeps], [1])
  8416. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  8417. + [The library search path used internally by the compiler when linking
  8418. + a shared library])
  8419. +])# _LT_SYS_HIDDEN_LIBDEPS
  8420. +
  8421. +
  8422. +# _LT_PROG_F77
  8423. +# ------------
  8424. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  8425. +# if there is no fortran compiler, we have our own version here.
  8426. +m4_defun([_LT_PROG_F77],
  8427. +[
  8428. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  8429. +AC_PROG_F77
  8430. +if test -z "$F77" || test "X$F77" = "Xno"; then
  8431. + _lt_disable_F77=yes
  8432. +fi
  8433. +popdef([AC_MSG_ERROR])
  8434. +])# _LT_PROG_F77
  8435. +
  8436. +dnl aclocal-1.4 backwards compatibility:
  8437. +dnl AC_DEFUN([_LT_PROG_F77], [])
  8438. +
  8439. +
  8440. +# _LT_LANG_F77_CONFIG([TAG])
  8441. +# --------------------------
  8442. +# Ensure that the configuration variables for a Fortran 77 compiler are
  8443. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8444. +# to write the compiler configuration to `libtool'.
  8445. +m4_defun([_LT_LANG_F77_CONFIG],
  8446. +[AC_REQUIRE([_LT_PROG_F77])dnl
  8447. +AC_LANG_PUSH(Fortran 77)
  8448. +
  8449. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8450. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8451. +_LT_TAGVAR(always_export_symbols, $1)=no
  8452. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8453. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8454. +_LT_TAGVAR(hardcode_direct, $1)=no
  8455. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8456. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8457. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8458. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8459. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8460. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8461. +_LT_TAGVAR(inherit_rpath, $1)=no
  8462. +_LT_TAGVAR(module_cmds, $1)=
  8463. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8464. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8465. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8466. +_LT_TAGVAR(no_undefined_flag, $1)=
  8467. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8468. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8469. +
  8470. +# Source file extension for f77 test sources.
  8471. +ac_ext=f
  8472. +
  8473. +# Object file extension for compiled f77 test sources.
  8474. +objext=o
  8475. +_LT_TAGVAR(objext, $1)=$objext
  8476. +
  8477. +# No sense in running all these tests if we already determined that
  8478. +# the F77 compiler isn't working. Some variables (like enable_shared)
  8479. +# are currently assumed to apply to all compilers on this platform,
  8480. +# and will be corrupted by setting them based on a non-working compiler.
  8481. +if test "$_lt_disable_F77" != yes; then
  8482. + # Code to be used in simple compile tests
  8483. + lt_simple_compile_test_code="\
  8484. + subroutine t
  8485. + return
  8486. + end
  8487. +"
  8488. +
  8489. + # Code to be used in simple link tests
  8490. + lt_simple_link_test_code="\
  8491. + program t
  8492. + end
  8493. +"
  8494. +
  8495. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8496. + _LT_TAG_COMPILER
  8497. +
  8498. + # save warnings/boilerplate of simple test code
  8499. + _LT_COMPILER_BOILERPLATE
  8500. + _LT_LINKER_BOILERPLATE
  8501. +
  8502. + # Allow CC to be a program name with arguments.
  8503. + lt_save_CC="$CC"
  8504. + lt_save_GCC=$GCC
  8505. + CC=${F77-"f77"}
  8506. + compiler=$CC
  8507. + _LT_TAGVAR(compiler, $1)=$CC
  8508. + _LT_CC_BASENAME([$compiler])
  8509. + GCC=$G77
  8510. + if test -n "$compiler"; then
  8511. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8512. + AC_MSG_RESULT([$can_build_shared])
  8513. +
  8514. + AC_MSG_CHECKING([whether to build shared libraries])
  8515. + test "$can_build_shared" = "no" && enable_shared=no
  8516. +
  8517. + # On AIX, shared libraries and static libraries use the same namespace, and
  8518. + # are all built from PIC.
  8519. case $host_os in
  8520. + aix3*)
  8521. + test "$enable_shared" = yes && enable_static=no
  8522. + if test -n "$RANLIB"; then
  8523. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8524. + postinstall_cmds='$RANLIB $lib'
  8525. + fi
  8526. + ;;
  8527. aix[[4-9]]*)
  8528. - # All AIX code is PIC.
  8529. - if test "$host_cpu" = ia64; then
  8530. - # AIX 5 now supports IA64 processor
  8531. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8532. - else
  8533. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  8534. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8535. + test "$enable_shared" = yes && enable_static=no
  8536. fi
  8537. - ;;
  8538. - chorus*)
  8539. - case $cc_basename in
  8540. - cxch68*)
  8541. - # Green Hills C++ Compiler
  8542. - # _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"
  8543. - ;;
  8544. - esac
  8545. - ;;
  8546. - darwin*)
  8547. - # PIC is the default on this platform
  8548. - # Common symbols not allowed in MH_DYLIB files
  8549. - case $cc_basename in
  8550. - xlc*)
  8551. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  8552. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8553. - ;;
  8554. - esac
  8555. - ;;
  8556. - dgux*)
  8557. - case $cc_basename in
  8558. - ec++*)
  8559. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8560. - ;;
  8561. - ghcx*)
  8562. - # Green Hills C++ Compiler
  8563. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8564. - ;;
  8565. - *)
  8566. - ;;
  8567. - esac
  8568. - ;;
  8569. - freebsd* | dragonfly*)
  8570. - # FreeBSD uses GNU C++
  8571. - ;;
  8572. - hpux9* | hpux10* | hpux11*)
  8573. - case $cc_basename in
  8574. - CC*)
  8575. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8576. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8577. - if test "$host_cpu" != ia64; then
  8578. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8579. - fi
  8580. - ;;
  8581. - aCC*)
  8582. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8583. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8584. - case $host_cpu in
  8585. - hppa*64*|ia64*)
  8586. - # +Z the default
  8587. - ;;
  8588. - *)
  8589. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8590. - ;;
  8591. - esac
  8592. - ;;
  8593. - *)
  8594. - ;;
  8595. - esac
  8596. - ;;
  8597. - interix*)
  8598. - # This is c89, which is MS Visual C++ (no shared libs)
  8599. - # Anyone wants to do a port?
  8600. - ;;
  8601. - irix5* | irix6* | nonstopux*)
  8602. - case $cc_basename in
  8603. - CC*)
  8604. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8605. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8606. - # CC pic flag -KPIC is the default.
  8607. - ;;
  8608. - *)
  8609. - ;;
  8610. - esac
  8611. - ;;
  8612. - linux* | k*bsd*-gnu)
  8613. - case $cc_basename in
  8614. - KCC*)
  8615. - # KAI C++ Compiler
  8616. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8617. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8618. - ;;
  8619. - icpc* | ecpc*)
  8620. - # Intel C++
  8621. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8622. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8623. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8624. - ;;
  8625. - pgCC* | pgcpp*)
  8626. - # Portland Group C++ compiler.
  8627. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8628. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8629. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8630. - ;;
  8631. - cxx*)
  8632. - # Compaq C++
  8633. - # Make sure the PIC flag is empty. It appears that all Alpha
  8634. - # Linux and Compaq Tru64 Unix objects are PIC.
  8635. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8636. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8637. - ;;
  8638. - *)
  8639. - case `$CC -V 2>&1 | sed 5q` in
  8640. - *Sun\ C*)
  8641. - # Sun C++ 5.9
  8642. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8643. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8644. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8645. - ;;
  8646. - esac
  8647. - ;;
  8648. - esac
  8649. - ;;
  8650. - lynxos*)
  8651. - ;;
  8652. - m88k*)
  8653. - ;;
  8654. - mvs*)
  8655. - case $cc_basename in
  8656. - cxx*)
  8657. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  8658. - ;;
  8659. - *)
  8660. - ;;
  8661. - esac
  8662. - ;;
  8663. - netbsd*)
  8664. - ;;
  8665. - osf3* | osf4* | osf5*)
  8666. - case $cc_basename in
  8667. - KCC*)
  8668. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8669. - ;;
  8670. - RCC*)
  8671. - # Rational C++ 2.4.1
  8672. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8673. - ;;
  8674. - cxx*)
  8675. - # Digital/Compaq C++
  8676. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8677. - # Make sure the PIC flag is empty. It appears that all Alpha
  8678. - # Linux and Compaq Tru64 Unix objects are PIC.
  8679. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8680. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8681. - ;;
  8682. - *)
  8683. - ;;
  8684. - esac
  8685. - ;;
  8686. - psos*)
  8687. - ;;
  8688. - solaris*)
  8689. - case $cc_basename in
  8690. - CC*)
  8691. - # Sun C++ 4.2, 5.x and Centerline C++
  8692. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8693. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8694. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8695. - ;;
  8696. - gcx*)
  8697. - # Green Hills C++ Compiler
  8698. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8699. - ;;
  8700. - *)
  8701. - ;;
  8702. - esac
  8703. - ;;
  8704. - sunos4*)
  8705. - case $cc_basename in
  8706. - CC*)
  8707. - # Sun C++ 4.x
  8708. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8709. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8710. - ;;
  8711. - lcc*)
  8712. - # Lucid
  8713. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8714. - ;;
  8715. - *)
  8716. - ;;
  8717. - esac
  8718. - ;;
  8719. - tandem*)
  8720. - case $cc_basename in
  8721. - NCC*)
  8722. - # NonStop-UX NCC 3.20
  8723. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8724. - ;;
  8725. - *)
  8726. - ;;
  8727. - esac
  8728. - ;;
  8729. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8730. - case $cc_basename in
  8731. - CC*)
  8732. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8733. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8734. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8735. - ;;
  8736. - esac
  8737. - ;;
  8738. - vxworks*)
  8739. - ;;
  8740. - *)
  8741. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8742. - ;;
  8743. + ;;
  8744. esac
  8745. - fi
  8746. -],
  8747. + AC_MSG_RESULT([$enable_shared])
  8748. +
  8749. + AC_MSG_CHECKING([whether to build static libraries])
  8750. + # Make sure either enable_shared or enable_static is yes.
  8751. + test "$enable_shared" = yes || enable_static=yes
  8752. + AC_MSG_RESULT([$enable_static])
  8753. +
  8754. + _LT_TAGVAR(GCC, $1)="$G77"
  8755. + _LT_TAGVAR(LD, $1)="$LD"
  8756. +
  8757. + ## CAVEAT EMPTOR:
  8758. + ## There is no encapsulation within the following macros, do not change
  8759. + ## the running order or otherwise move them around unless you know exactly
  8760. + ## what you are doing...
  8761. + _LT_COMPILER_PIC($1)
  8762. + _LT_COMPILER_C_O($1)
  8763. + _LT_COMPILER_FILE_LOCKS($1)
  8764. + _LT_LINKER_SHLIBS($1)
  8765. + _LT_SYS_DYNAMIC_LINKER($1)
  8766. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8767. +
  8768. + _LT_CONFIG($1)
  8769. + fi # test -n "$compiler"
  8770. +
  8771. + GCC=$lt_save_GCC
  8772. + CC="$lt_save_CC"
  8773. +fi # test "$_lt_disable_F77" != yes
  8774. +
  8775. +AC_LANG_POP
  8776. +])# _LT_LANG_F77_CONFIG
  8777. +
  8778. +
  8779. +# _LT_PROG_FC
  8780. +# -----------
  8781. +# Since AC_PROG_FC is broken, in that it returns the empty string
  8782. +# if there is no fortran compiler, we have our own version here.
  8783. +m4_defun([_LT_PROG_FC],
  8784. [
  8785. - if test "$GCC" = yes; then
  8786. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8787. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8788. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  8789. +AC_PROG_FC
  8790. +if test -z "$FC" || test "X$FC" = "Xno"; then
  8791. + _lt_disable_FC=yes
  8792. +fi
  8793. +popdef([AC_MSG_ERROR])
  8794. +])# _LT_PROG_FC
  8795. +
  8796. +dnl aclocal-1.4 backwards compatibility:
  8797. +dnl AC_DEFUN([_LT_PROG_FC], [])
  8798. +
  8799. +
  8800. +# _LT_LANG_FC_CONFIG([TAG])
  8801. +# -------------------------
  8802. +# Ensure that the configuration variables for a Fortran compiler are
  8803. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8804. +# to write the compiler configuration to `libtool'.
  8805. +m4_defun([_LT_LANG_FC_CONFIG],
  8806. +[AC_REQUIRE([_LT_PROG_FC])dnl
  8807. +AC_LANG_PUSH(Fortran)
  8808. +
  8809. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8810. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8811. +_LT_TAGVAR(always_export_symbols, $1)=no
  8812. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8813. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8814. +_LT_TAGVAR(hardcode_direct, $1)=no
  8815. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8816. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8817. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8818. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8819. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8820. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8821. +_LT_TAGVAR(inherit_rpath, $1)=no
  8822. +_LT_TAGVAR(module_cmds, $1)=
  8823. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8824. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8825. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8826. +_LT_TAGVAR(no_undefined_flag, $1)=
  8827. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8828. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8829. +
  8830. +# Source file extension for fc test sources.
  8831. +ac_ext=${ac_fc_srcext-f}
  8832. +
  8833. +# Object file extension for compiled fc test sources.
  8834. +objext=o
  8835. +_LT_TAGVAR(objext, $1)=$objext
  8836. +
  8837. +# No sense in running all these tests if we already determined that
  8838. +# the FC compiler isn't working. Some variables (like enable_shared)
  8839. +# are currently assumed to apply to all compilers on this platform,
  8840. +# and will be corrupted by setting them based on a non-working compiler.
  8841. +if test "$_lt_disable_FC" != yes; then
  8842. + # Code to be used in simple compile tests
  8843. + lt_simple_compile_test_code="\
  8844. + subroutine t
  8845. + return
  8846. + end
  8847. +"
  8848. +
  8849. + # Code to be used in simple link tests
  8850. + lt_simple_link_test_code="\
  8851. + program t
  8852. + end
  8853. +"
  8854. +
  8855. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8856. + _LT_TAG_COMPILER
  8857. +
  8858. + # save warnings/boilerplate of simple test code
  8859. + _LT_COMPILER_BOILERPLATE
  8860. + _LT_LINKER_BOILERPLATE
  8861. +
  8862. + # Allow CC to be a program name with arguments.
  8863. + lt_save_CC="$CC"
  8864. + lt_save_GCC=$GCC
  8865. + CC=${FC-"f95"}
  8866. + compiler=$CC
  8867. + GCC=$ac_cv_fc_compiler_gnu
  8868. +
  8869. + _LT_TAGVAR(compiler, $1)=$CC
  8870. + _LT_CC_BASENAME([$compiler])
  8871. +
  8872. + if test -n "$compiler"; then
  8873. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8874. + AC_MSG_RESULT([$can_build_shared])
  8875. +
  8876. + AC_MSG_CHECKING([whether to build shared libraries])
  8877. + test "$can_build_shared" = "no" && enable_shared=no
  8878. +
  8879. + # On AIX, shared libraries and static libraries use the same namespace, and
  8880. + # are all built from PIC.
  8881. + case $host_os in
  8882. + aix3*)
  8883. + test "$enable_shared" = yes && enable_static=no
  8884. + if test -n "$RANLIB"; then
  8885. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8886. + postinstall_cmds='$RANLIB $lib'
  8887. + fi
  8888. + ;;
  8889. + aix[[4-9]]*)
  8890. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8891. + test "$enable_shared" = yes && enable_static=no
  8892. + fi
  8893. + ;;
  8894. + esac
  8895. + AC_MSG_RESULT([$enable_shared])
  8896. +
  8897. + AC_MSG_CHECKING([whether to build static libraries])
  8898. + # Make sure either enable_shared or enable_static is yes.
  8899. + test "$enable_shared" = yes || enable_static=yes
  8900. + AC_MSG_RESULT([$enable_static])
  8901. +
  8902. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  8903. + _LT_TAGVAR(LD, $1)="$LD"
  8904. +
  8905. + ## CAVEAT EMPTOR:
  8906. + ## There is no encapsulation within the following macros, do not change
  8907. + ## the running order or otherwise move them around unless you know exactly
  8908. + ## what you are doing...
  8909. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8910. + _LT_COMPILER_PIC($1)
  8911. + _LT_COMPILER_C_O($1)
  8912. + _LT_COMPILER_FILE_LOCKS($1)
  8913. + _LT_LINKER_SHLIBS($1)
  8914. + _LT_SYS_DYNAMIC_LINKER($1)
  8915. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8916. +
  8917. + _LT_CONFIG($1)
  8918. + fi # test -n "$compiler"
  8919. +
  8920. + GCC=$lt_save_GCC
  8921. + CC="$lt_save_CC"
  8922. +fi # test "$_lt_disable_FC" != yes
  8923. +
  8924. +AC_LANG_POP
  8925. +])# _LT_LANG_FC_CONFIG
  8926. +
  8927. +
  8928. +# _LT_LANG_GCJ_CONFIG([TAG])
  8929. +# --------------------------
  8930. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  8931. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  8932. +# to write the compiler configuration to `libtool'.
  8933. +m4_defun([_LT_LANG_GCJ_CONFIG],
  8934. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  8935. +AC_LANG_SAVE
  8936. +
  8937. +# Source file extension for Java test sources.
  8938. +ac_ext=java
  8939. +
  8940. +# Object file extension for compiled Java test sources.
  8941. +objext=o
  8942. +_LT_TAGVAR(objext, $1)=$objext
  8943. +
  8944. +# Code to be used in simple compile tests
  8945. +lt_simple_compile_test_code="class foo {}"
  8946. +
  8947. +# Code to be used in simple link tests
  8948. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  8949. +
  8950. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8951. +_LT_TAG_COMPILER
  8952. +
  8953. +# save warnings/boilerplate of simple test code
  8954. +_LT_COMPILER_BOILERPLATE
  8955. +_LT_LINKER_BOILERPLATE
  8956. +
  8957. +# Allow CC to be a program name with arguments.
  8958. +lt_save_CC="$CC"
  8959. +lt_save_GCC=$GCC
  8960. +GCC=yes
  8961. +CC=${GCJ-"gcj"}
  8962. +compiler=$CC
  8963. +_LT_TAGVAR(compiler, $1)=$CC
  8964. +_LT_TAGVAR(LD, $1)="$LD"
  8965. +_LT_CC_BASENAME([$compiler])
  8966. +
  8967. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  8968. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8969. +
  8970. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8971. +
  8972. +if test -n "$compiler"; then
  8973. + _LT_COMPILER_NO_RTTI($1)
  8974. + _LT_COMPILER_PIC($1)
  8975. + _LT_COMPILER_C_O($1)
  8976. + _LT_COMPILER_FILE_LOCKS($1)
  8977. + _LT_LINKER_SHLIBS($1)
  8978. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8979. +
  8980. + _LT_CONFIG($1)
  8981. +fi
  8982. +
  8983. +AC_LANG_RESTORE
  8984. - case $host_os in
  8985. - aix*)
  8986. - # All AIX code is PIC.
  8987. - if test "$host_cpu" = ia64; then
  8988. - # AIX 5 now supports IA64 processor
  8989. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8990. - fi
  8991. - ;;
  8992. +GCC=$lt_save_GCC
  8993. +CC="$lt_save_CC"
  8994. +])# _LT_LANG_GCJ_CONFIG
  8995. - amigaos*)
  8996. - # FIXME: we need at least 68020 code to build shared libraries, but
  8997. - # adding the `-m68020' flag to GCC prevents building anything better,
  8998. - # like `-m68040'.
  8999. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9000. - ;;
  9001. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9002. - # PIC is the default for these OSes.
  9003. - ;;
  9004. +# _LT_LANG_RC_CONFIG([TAG])
  9005. +# -------------------------
  9006. +# Ensure that the configuration variables for the Windows resource compiler
  9007. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9008. +# to write the compiler configuration to `libtool'.
  9009. +m4_defun([_LT_LANG_RC_CONFIG],
  9010. +[AC_REQUIRE([LT_PROG_RC])dnl
  9011. +AC_LANG_SAVE
  9012. - mingw* | cygwin* | pw32* | os2*)
  9013. - # This hack is so that the source file can tell whether it is being
  9014. - # built for inclusion in a dll (and should export symbols for example).
  9015. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9016. - # (--disable-auto-import) libraries
  9017. - m4_if([$1], [GCJ], [],
  9018. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  9019. - ;;
  9020. +# Source file extension for RC test sources.
  9021. +ac_ext=rc
  9022. - darwin* | rhapsody*)
  9023. - # PIC is the default on this platform
  9024. - # Common symbols not allowed in MH_DYLIB files
  9025. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9026. - ;;
  9027. +# Object file extension for compiled RC test sources.
  9028. +objext=o
  9029. +_LT_TAGVAR(objext, $1)=$objext
  9030. - interix[[3-9]]*)
  9031. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9032. - # Instead, we relocate shared libraries at runtime.
  9033. - ;;
  9034. +# Code to be used in simple compile tests
  9035. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9036. - msdosdjgpp*)
  9037. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  9038. - # on systems that don't support them.
  9039. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9040. - enable_shared=no
  9041. - ;;
  9042. +# Code to be used in simple link tests
  9043. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9044. - sysv4*MP*)
  9045. - if test -d /usr/nec; then
  9046. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9047. - fi
  9048. - ;;
  9049. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9050. +_LT_TAG_COMPILER
  9051. - hpux*)
  9052. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9053. - # not for PA HP-UX.
  9054. - case $host_cpu in
  9055. - hppa*64*|ia64*)
  9056. - # +Z the default
  9057. - ;;
  9058. - *)
  9059. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9060. - ;;
  9061. - esac
  9062. - ;;
  9063. +# save warnings/boilerplate of simple test code
  9064. +_LT_COMPILER_BOILERPLATE
  9065. +_LT_LINKER_BOILERPLATE
  9066. - *)
  9067. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9068. - ;;
  9069. - esac
  9070. - else
  9071. - # PORTME Check for flag to pass linker flags through the system compiler.
  9072. - case $host_os in
  9073. - aix*)
  9074. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9075. - if test "$host_cpu" = ia64; then
  9076. - # AIX 5 now supports IA64 processor
  9077. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9078. - else
  9079. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9080. - fi
  9081. - ;;
  9082. - darwin*)
  9083. - # PIC is the default on this platform
  9084. - # Common symbols not allowed in MH_DYLIB files
  9085. - case $cc_basename in
  9086. - xlc*)
  9087. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9088. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9089. - ;;
  9090. - esac
  9091. - ;;
  9092. +# Allow CC to be a program name with arguments.
  9093. +lt_save_CC="$CC"
  9094. +lt_save_GCC=$GCC
  9095. +GCC=
  9096. +CC=${RC-"windres"}
  9097. +compiler=$CC
  9098. +_LT_TAGVAR(compiler, $1)=$CC
  9099. +_LT_CC_BASENAME([$compiler])
  9100. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9101. - mingw* | cygwin* | pw32* | os2*)
  9102. - # This hack is so that the source file can tell whether it is being
  9103. - # built for inclusion in a dll (and should export symbols for example).
  9104. - m4_if([$1], [GCJ], [],
  9105. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  9106. - ;;
  9107. +if test -n "$compiler"; then
  9108. + :
  9109. + _LT_CONFIG($1)
  9110. +fi
  9111. - hpux9* | hpux10* | hpux11*)
  9112. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9113. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9114. - # not for PA HP-UX.
  9115. - case $host_cpu in
  9116. - hppa*64*|ia64*)
  9117. - # +Z the default
  9118. - ;;
  9119. - *)
  9120. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9121. - ;;
  9122. - esac
  9123. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9124. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9125. - ;;
  9126. +GCC=$lt_save_GCC
  9127. +AC_LANG_RESTORE
  9128. +CC="$lt_save_CC"
  9129. +])# _LT_LANG_RC_CONFIG
  9130. - irix5* | irix6* | nonstopux*)
  9131. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9132. - # PIC (with -KPIC) is the default.
  9133. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9134. - ;;
  9135. - newsos6)
  9136. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9137. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9138. - ;;
  9139. +# LT_PROG_GCJ
  9140. +# -----------
  9141. +AC_DEFUN([LT_PROG_GCJ],
  9142. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9143. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9144. + [AC_CHECK_TOOL(GCJ, gcj,)
  9145. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9146. + AC_SUBST(GCJFLAGS)])])[]dnl
  9147. +])
  9148. - linux* | k*bsd*-gnu)
  9149. - case $cc_basename in
  9150. - icc* | ecc*)
  9151. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9152. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9153. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9154. - ;;
  9155. - pgcc* | pgf77* | pgf90* | pgf95*)
  9156. - # Portland Group compilers (*not* the Pentium gcc compiler,
  9157. - # which looks to be a dead project)
  9158. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9159. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9160. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9161. - ;;
  9162. - ccc*)
  9163. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9164. - # All Alpha code is PIC.
  9165. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9166. - ;;
  9167. - *)
  9168. - case `$CC -V 2>&1 | sed 5q` in
  9169. - *Sun\ C*)
  9170. - # Sun C 5.9
  9171. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9172. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9173. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9174. - ;;
  9175. - *Sun\ F*)
  9176. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9177. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9178. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9179. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  9180. - ;;
  9181. - esac
  9182. - ;;
  9183. - esac
  9184. - ;;
  9185. +# Old name:
  9186. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9187. +dnl aclocal-1.4 backwards compatibility:
  9188. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9189. - osf3* | osf4* | osf5*)
  9190. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9191. - # All OSF/1 code is PIC.
  9192. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9193. - ;;
  9194. - rdos*)
  9195. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9196. - ;;
  9197. +# LT_PROG_RC
  9198. +# ----------
  9199. +AC_DEFUN([LT_PROG_RC],
  9200. +[AC_CHECK_TOOL(RC, windres,)
  9201. +])
  9202. - solaris*)
  9203. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9204. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9205. - case $cc_basename in
  9206. - f77* | f90* | f95*)
  9207. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  9208. - *)
  9209. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  9210. - esac
  9211. - ;;
  9212. +# Old name:
  9213. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9214. +dnl aclocal-1.4 backwards compatibility:
  9215. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9216. - sunos4*)
  9217. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9218. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9219. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9220. - ;;
  9221. - sysv4 | sysv4.2uw2* | sysv4.3*)
  9222. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9223. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9224. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9225. - ;;
  9226. +# _LT_DECL_EGREP
  9227. +# --------------
  9228. +# If we don't have a new enough Autoconf to choose the best grep
  9229. +# available, choose the one first in the user's PATH.
  9230. +m4_defun([_LT_DECL_EGREP],
  9231. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9232. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9233. +test -z "$GREP" && GREP=grep
  9234. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9235. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9236. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9237. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9238. +AC_SUBST([GREP])
  9239. +])
  9240. - sysv4*MP*)
  9241. - if test -d /usr/nec ;then
  9242. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  9243. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9244. +
  9245. +# _LT_DECL_OBJDUMP
  9246. +# --------------
  9247. +# If we don't have a new enough Autoconf to choose the best objdump
  9248. +# available, choose the one first in the user's PATH.
  9249. +m4_defun([_LT_DECL_OBJDUMP],
  9250. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9251. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9252. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9253. +AC_SUBST([OBJDUMP])
  9254. +])
  9255. +
  9256. +
  9257. +# _LT_DECL_SED
  9258. +# ------------
  9259. +# Check for a fully-functional sed program, that truncates
  9260. +# as few characters as possible. Prefer GNU sed if found.
  9261. +m4_defun([_LT_DECL_SED],
  9262. +[AC_PROG_SED
  9263. +test -z "$SED" && SED=sed
  9264. +Xsed="$SED -e 1s/^X//"
  9265. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9266. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9267. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9268. +])# _LT_DECL_SED
  9269. +
  9270. +m4_ifndef([AC_PROG_SED], [
  9271. +# NOTE: This macro has been submitted for inclusion into #
  9272. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  9273. +# a released version of Autoconf we should remove this #
  9274. +# macro and use it instead. #
  9275. +
  9276. +m4_defun([AC_PROG_SED],
  9277. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  9278. +AC_CACHE_VAL(lt_cv_path_SED,
  9279. +[# Loop through the user's path and test for sed and gsed.
  9280. +# Then use that list of sed's as ones to test for truncation.
  9281. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9282. +for as_dir in $PATH
  9283. +do
  9284. + IFS=$as_save_IFS
  9285. + test -z "$as_dir" && as_dir=.
  9286. + for lt_ac_prog in sed gsed; do
  9287. + for ac_exec_ext in '' $ac_executable_extensions; do
  9288. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9289. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9290. fi
  9291. - ;;
  9292. + done
  9293. + done
  9294. +done
  9295. +IFS=$as_save_IFS
  9296. +lt_ac_max=0
  9297. +lt_ac_count=0
  9298. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9299. +# along with /bin/sed that truncates output.
  9300. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9301. + test ! -f $lt_ac_sed && continue
  9302. + cat /dev/null > conftest.in
  9303. + lt_ac_count=0
  9304. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9305. + # Check for GNU sed and select it if it is found.
  9306. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9307. + lt_cv_path_SED=$lt_ac_sed
  9308. + break
  9309. + fi
  9310. + while true; do
  9311. + cat conftest.in conftest.in >conftest.tmp
  9312. + mv conftest.tmp conftest.in
  9313. + cp conftest.in conftest.nl
  9314. + echo >>conftest.nl
  9315. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9316. + cmp -s conftest.out conftest.nl || break
  9317. + # 10000 chars as input seems more than enough
  9318. + test $lt_ac_count -gt 10 && break
  9319. + lt_ac_count=`expr $lt_ac_count + 1`
  9320. + if test $lt_ac_count -gt $lt_ac_max; then
  9321. + lt_ac_max=$lt_ac_count
  9322. + lt_cv_path_SED=$lt_ac_sed
  9323. + fi
  9324. + done
  9325. +done
  9326. +])
  9327. +SED=$lt_cv_path_SED
  9328. +AC_SUBST([SED])
  9329. +AC_MSG_RESULT([$SED])
  9330. +])#AC_PROG_SED
  9331. +])#m4_ifndef
  9332. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9333. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9334. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9335. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9336. - ;;
  9337. +# Old name:
  9338. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9339. +dnl aclocal-1.4 backwards compatibility:
  9340. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9341. - unicos*)
  9342. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9343. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9344. - ;;
  9345. - uts4*)
  9346. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9347. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9348. - ;;
  9349. +# _LT_CHECK_SHELL_FEATURES
  9350. +# ------------------------
  9351. +# Find out whether the shell is Bourne or XSI compatible,
  9352. +# or has some other useful features.
  9353. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9354. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9355. +# Try some XSI features
  9356. +xsi_shell=no
  9357. +( _lt_dummy="a/b/c"
  9358. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9359. + = c,a/b,, \
  9360. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9361. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9362. + && xsi_shell=yes
  9363. +AC_MSG_RESULT([$xsi_shell])
  9364. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9365. +
  9366. +AC_MSG_CHECKING([whether the shell understands "+="])
  9367. +lt_shell_append=no
  9368. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9369. + >/dev/null 2>&1 \
  9370. + && lt_shell_append=yes
  9371. +AC_MSG_RESULT([$lt_shell_append])
  9372. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9373. +
  9374. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9375. + lt_unset=unset
  9376. +else
  9377. + lt_unset=false
  9378. +fi
  9379. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9380. +
  9381. +# test EBCDIC or ASCII
  9382. +case `echo X|tr X '\101'` in
  9383. + A) # ASCII based system
  9384. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9385. + lt_SP2NL='tr \040 \012'
  9386. + lt_NL2SP='tr \015\012 \040\040'
  9387. + ;;
  9388. + *) # EBCDIC based system
  9389. + lt_SP2NL='tr \100 \n'
  9390. + lt_NL2SP='tr \r\n \100\100'
  9391. + ;;
  9392. +esac
  9393. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9394. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9395. +])# _LT_CHECK_SHELL_FEATURES
  9396. +
  9397. +
  9398. +# _LT_PROG_XSI_SHELLFNS
  9399. +# ---------------------
  9400. +# Bourne and XSI compatible variants of some useful shell functions.
  9401. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9402. +[case $xsi_shell in
  9403. + yes)
  9404. + cat << \_LT_EOF >> "$cfgfile"
  9405. +
  9406. +# func_dirname file append nondir_replacement
  9407. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9408. +# otherwise set result to NONDIR_REPLACEMENT.
  9409. +func_dirname ()
  9410. +{
  9411. + case ${1} in
  9412. + */*) func_dirname_result="${1%/*}${2}" ;;
  9413. + * ) func_dirname_result="${3}" ;;
  9414. + esac
  9415. +}
  9416. +
  9417. +# func_basename file
  9418. +func_basename ()
  9419. +{
  9420. + func_basename_result="${1##*/}"
  9421. +}
  9422. +
  9423. +# func_dirname_and_basename file append nondir_replacement
  9424. +# perform func_basename and func_dirname in a single function
  9425. +# call:
  9426. +# dirname: Compute the dirname of FILE. If nonempty,
  9427. +# add APPEND to the result, otherwise set result
  9428. +# to NONDIR_REPLACEMENT.
  9429. +# value returned in "$func_dirname_result"
  9430. +# basename: Compute filename of FILE.
  9431. +# value retuned in "$func_basename_result"
  9432. +# Implementation must be kept synchronized with func_dirname
  9433. +# and func_basename. For efficiency, we do not delegate to
  9434. +# those functions but instead duplicate the functionality here.
  9435. +func_dirname_and_basename ()
  9436. +{
  9437. + case ${1} in
  9438. + */*) func_dirname_result="${1%/*}${2}" ;;
  9439. + * ) func_dirname_result="${3}" ;;
  9440. + esac
  9441. + func_basename_result="${1##*/}"
  9442. +}
  9443. +
  9444. +# func_stripname prefix suffix name
  9445. +# strip PREFIX and SUFFIX off of NAME.
  9446. +# PREFIX and SUFFIX must not contain globbing or regex special
  9447. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9448. +# dot (in which case that matches only a dot).
  9449. +func_stripname ()
  9450. +{
  9451. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  9452. + # positional parameters, so assign one to ordinary parameter first.
  9453. + func_stripname_result=${3}
  9454. + func_stripname_result=${func_stripname_result#"${1}"}
  9455. + func_stripname_result=${func_stripname_result%"${2}"}
  9456. +}
  9457. +
  9458. +# func_opt_split
  9459. +func_opt_split ()
  9460. +{
  9461. + func_opt_split_opt=${1%%=*}
  9462. + func_opt_split_arg=${1#*=}
  9463. +}
  9464. +
  9465. +# func_lo2o object
  9466. +func_lo2o ()
  9467. +{
  9468. + case ${1} in
  9469. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  9470. + *) func_lo2o_result=${1} ;;
  9471. + esac
  9472. +}
  9473. +
  9474. +# func_xform libobj-or-source
  9475. +func_xform ()
  9476. +{
  9477. + func_xform_result=${1%.*}.lo
  9478. +}
  9479. +
  9480. +# func_arith arithmetic-term...
  9481. +func_arith ()
  9482. +{
  9483. + func_arith_result=$(( $[*] ))
  9484. +}
  9485. - *)
  9486. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9487. - ;;
  9488. - esac
  9489. - fi
  9490. -])
  9491. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  9492. +# func_len string
  9493. +# STRING may not start with a hyphen.
  9494. +func_len ()
  9495. +{
  9496. + func_len_result=${#1}
  9497. +}
  9498. -#
  9499. -# Check to make sure the PIC flag actually works.
  9500. -#
  9501. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  9502. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  9503. - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  9504. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  9505. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  9506. - "" | " "*) ;;
  9507. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  9508. - esac],
  9509. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9510. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  9511. -fi
  9512. -case $host_os in
  9513. - # For platforms which do not support PIC, -DPIC is meaningless:
  9514. - *djgpp*)
  9515. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9516. - ;;
  9517. - *)
  9518. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  9519. +_LT_EOF
  9520. ;;
  9521. -esac
  9522. + *) # Bourne compatible functions.
  9523. + cat << \_LT_EOF >> "$cfgfile"
  9524. -#
  9525. -# Check to make sure the static flag actually works.
  9526. -#
  9527. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  9528. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  9529. - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  9530. - $lt_tmp_static_flag,
  9531. - [],
  9532. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  9533. -])
  9534. +# func_dirname file append nondir_replacement
  9535. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9536. +# otherwise set result to NONDIR_REPLACEMENT.
  9537. +func_dirname ()
  9538. +{
  9539. + # Extract subdirectory from the argument.
  9540. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9541. + if test "X$func_dirname_result" = "X${1}"; then
  9542. + func_dirname_result="${3}"
  9543. + else
  9544. + func_dirname_result="$func_dirname_result${2}"
  9545. + fi
  9546. +}
  9547. +# func_basename file
  9548. +func_basename ()
  9549. +{
  9550. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9551. +}
  9552. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  9553. -# ------------------------------------
  9554. -# See if the linker supports building shared libraries.
  9555. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  9556. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  9557. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9558. -ifelse([$1],[CXX],[
  9559. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9560. - case $host_os in
  9561. - aix[[4-9]]*)
  9562. - # If we're using GNU nm, then we don't want the "-C" option.
  9563. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9564. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9565. - _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'
  9566. - else
  9567. - _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'
  9568. - fi
  9569. - ;;
  9570. - pw32*)
  9571. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  9572. - ;;
  9573. - cygwin* | mingw*)
  9574. - _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'
  9575. - ;;
  9576. - *)
  9577. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9578. - ;;
  9579. - esac
  9580. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9581. -],[
  9582. - runpath_var=
  9583. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  9584. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9585. - _LT_AC_TAGVAR(archive_cmds, $1)=
  9586. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  9587. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  9588. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  9589. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9590. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9591. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  9592. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9593. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9594. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9595. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9596. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  9597. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9598. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  9599. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  9600. - _LT_AC_TAGVAR(module_cmds, $1)=
  9601. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  9602. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9603. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9604. - # include_expsyms should be a list of space-separated symbols to be *always*
  9605. - # included in the symbol list
  9606. - _LT_AC_TAGVAR(include_expsyms, $1)=
  9607. - # exclude_expsyms can be an extended regexp of symbols to exclude
  9608. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9609. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9610. - # as well as any symbol that contains `d'.
  9611. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9612. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9613. - # platforms (ab)use it in PIC code, but their linkers get confused if
  9614. - # the symbol is explicitly referenced. Since portable code cannot
  9615. - # rely on this symbol name, it's probably fine to never include it in
  9616. - # preloaded symbol tables.
  9617. - # Exclude shared library initialization/finalization symbols.
  9618. -dnl Note also adjust exclude_expsyms for C++ above.
  9619. - extract_expsyms_cmds=
  9620. - # Just being paranoid about ensuring that cc_basename is set.
  9621. - _LT_CC_BASENAME([$compiler])
  9622. - case $host_os in
  9623. - cygwin* | mingw* | pw32*)
  9624. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9625. - # When not using gcc, we currently assume that we are using
  9626. - # Microsoft Visual C++.
  9627. - if test "$GCC" != yes; then
  9628. - with_gnu_ld=no
  9629. - fi
  9630. - ;;
  9631. - interix*)
  9632. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  9633. - with_gnu_ld=yes
  9634. - ;;
  9635. - openbsd*)
  9636. - with_gnu_ld=no
  9637. - ;;
  9638. +dnl func_dirname_and_basename
  9639. +dnl A portable version of this function is already defined in general.m4sh
  9640. +dnl so there is no need for it here.
  9641. +
  9642. +# func_stripname prefix suffix name
  9643. +# strip PREFIX and SUFFIX off of NAME.
  9644. +# PREFIX and SUFFIX must not contain globbing or regex special
  9645. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9646. +# dot (in which case that matches only a dot).
  9647. +# func_strip_suffix prefix name
  9648. +func_stripname ()
  9649. +{
  9650. + case ${2} in
  9651. + .*) func_stripname_result=`$ECHO "X${3}" \
  9652. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9653. + *) func_stripname_result=`$ECHO "X${3}" \
  9654. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9655. esac
  9656. +}
  9657. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9658. - if test "$with_gnu_ld" = yes; then
  9659. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9660. - wlarc='${wl}'
  9661. +# sed scripts:
  9662. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9663. +my_sed_long_arg='1s/^-[[^=]]*=//'
  9664. - # Set some defaults for GNU ld with shared library support. These
  9665. - # are reset later if shared libraries are not supported. Putting them
  9666. - # here allows them to be overridden if necessary.
  9667. - runpath_var=LD_RUN_PATH
  9668. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9669. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9670. - # ancient GNU ld didn't support --whole-archive et. al.
  9671. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9672. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9673. - else
  9674. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9675. - fi
  9676. - supports_anon_versioning=no
  9677. - case `$LD -v 2>/dev/null` in
  9678. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  9679. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9680. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9681. - *\ 2.11.*) ;; # other 2.11 versions
  9682. - *) supports_anon_versioning=yes ;;
  9683. - esac
  9684. +# func_opt_split
  9685. +func_opt_split ()
  9686. +{
  9687. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9688. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9689. +}
  9690. - # See if GNU ld supports shared libraries.
  9691. - case $host_os in
  9692. - aix[[3-9]]*)
  9693. - # On AIX/PPC, the GNU linker is very broken
  9694. - if test "$host_cpu" != ia64; then
  9695. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9696. - cat <<EOF 1>&2
  9697. +# func_lo2o object
  9698. +func_lo2o ()
  9699. +{
  9700. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9701. +}
  9702. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9703. -*** to be unable to reliably create shared libraries on AIX.
  9704. -*** Therefore, libtool is disabling shared libraries support. If you
  9705. -*** really care for shared libraries, you may want to modify your PATH
  9706. -*** so that a non-GNU linker is found, and then restart.
  9707. +# func_xform libobj-or-source
  9708. +func_xform ()
  9709. +{
  9710. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9711. +}
  9712. -EOF
  9713. - fi
  9714. - ;;
  9715. +# func_arith arithmetic-term...
  9716. +func_arith ()
  9717. +{
  9718. + func_arith_result=`expr "$[@]"`
  9719. +}
  9720. - amigaos*)
  9721. - _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)'
  9722. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9723. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9724. -
  9725. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9726. - # that the semantics of dynamic libraries on AmigaOS, at least up
  9727. - # to version 4, is to share data among multiple programs linked
  9728. - # with the same dynamic library. Since this doesn't match the
  9729. - # behavior of shared libraries on other platforms, we can't use
  9730. - # them.
  9731. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9732. - ;;
  9733. +# func_len string
  9734. +# STRING may not start with a hyphen.
  9735. +func_len ()
  9736. +{
  9737. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9738. +}
  9739. - beos*)
  9740. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9741. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9742. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9743. - # support --undefined. This deserves some investigation. FIXME
  9744. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9745. - else
  9746. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9747. - fi
  9748. - ;;
  9749. +_LT_EOF
  9750. +esac
  9751. - cygwin* | mingw* | pw32*)
  9752. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9753. - # as there is no search path for DLLs.
  9754. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9755. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9756. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9757. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9758. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  9759. +case $lt_shell_append in
  9760. + yes)
  9761. + cat << \_LT_EOF >> "$cfgfile"
  9762. +
  9763. +# func_append var value
  9764. +# Append VALUE to the end of shell variable VAR.
  9765. +func_append ()
  9766. +{
  9767. + eval "$[1]+=\$[2]"
  9768. +}
  9769. +_LT_EOF
  9770. + ;;
  9771. + *)
  9772. + cat << \_LT_EOF >> "$cfgfile"
  9773. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9774. - _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'
  9775. - # If the export-symbols file already is a .def file (1st line
  9776. - # is EXPORTS), use it as is; otherwise, prepend...
  9777. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9778. - cp $export_symbols $output_objdir/$soname.def;
  9779. - else
  9780. - echo EXPORTS > $output_objdir/$soname.def;
  9781. - cat $export_symbols >> $output_objdir/$soname.def;
  9782. - fi~
  9783. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9784. - else
  9785. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9786. - fi
  9787. - ;;
  9788. +# func_append var value
  9789. +# Append VALUE to the end of shell variable VAR.
  9790. +func_append ()
  9791. +{
  9792. + eval "$[1]=\$$[1]\$[2]"
  9793. +}
  9794. - interix[[3-9]]*)
  9795. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9796. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9797. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9798. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9799. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9800. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  9801. - # default) and relocated if they conflict, which is a slow very memory
  9802. - # consuming and fragmenting process. To avoid this, we pick a random,
  9803. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9804. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9805. - _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'
  9806. - _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'
  9807. - ;;
  9808. +_LT_EOF
  9809. + ;;
  9810. + esac
  9811. +])
  9812. - gnu* | linux* | k*bsd*-gnu)
  9813. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9814. - tmp_addflag=
  9815. - case $cc_basename,$host_cpu in
  9816. - pgcc*) # Portland Group C compiler
  9817. - _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'
  9818. - tmp_addflag=' $pic_flag'
  9819. - ;;
  9820. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9821. - _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'
  9822. - tmp_addflag=' $pic_flag -Mnomain' ;;
  9823. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9824. - tmp_addflag=' -i_dynamic' ;;
  9825. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9826. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  9827. - ifc* | ifort*) # Intel Fortran compiler
  9828. - tmp_addflag=' -nofor_main' ;;
  9829. - esac
  9830. - case `$CC -V 2>&1 | sed 5q` in
  9831. - *Sun\ C*) # Sun C 5.9
  9832. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9833. - tmp_sharedflag='-G' ;;
  9834. - *Sun\ F*) # Sun Fortran 8.3
  9835. - tmp_sharedflag='-G' ;;
  9836. - *)
  9837. - tmp_sharedflag='-shared' ;;
  9838. - esac
  9839. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9840. +# Helper functions for option handling. -*- Autoconf -*-
  9841. +#
  9842. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9843. +# Written by Gary V. Vaughan, 2004
  9844. +#
  9845. +# This file is free software; the Free Software Foundation gives
  9846. +# unlimited permission to copy and/or distribute it, with or without
  9847. +# modifications, as long as this notice is preserved.
  9848. - if test $supports_anon_versioning = yes; then
  9849. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  9850. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9851. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  9852. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9853. - fi
  9854. - else
  9855. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9856. - fi
  9857. - ;;
  9858. +# serial 6 ltoptions.m4
  9859. - netbsd*)
  9860. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9861. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9862. - wlarc=
  9863. - else
  9864. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9865. - _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'
  9866. - fi
  9867. - ;;
  9868. +# This is to help aclocal find these macros, as it can't see m4_define.
  9869. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9870. - solaris*)
  9871. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9872. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9873. - cat <<EOF 1>&2
  9874. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9875. -*** create shared libraries on Solaris systems. Therefore, libtool
  9876. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9877. -*** binutils to release 2.9.1 or newer. Another option is to modify
  9878. -*** your PATH or compiler configuration so that the native linker is
  9879. -*** used, and then restart.
  9880. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9881. +# ------------------------------------------
  9882. +m4_define([_LT_MANGLE_OPTION],
  9883. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9884. -EOF
  9885. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9886. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9887. - _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'
  9888. - else
  9889. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9890. - fi
  9891. - ;;
  9892. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9893. - case `$LD -v 2>&1` in
  9894. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  9895. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9896. - cat <<_LT_EOF 1>&2
  9897. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9898. +# ---------------------------------------
  9899. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9900. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9901. +# saved as a flag.
  9902. +m4_define([_LT_SET_OPTION],
  9903. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9904. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9905. + _LT_MANGLE_DEFUN([$1], [$2]),
  9906. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  9907. +])
  9908. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9909. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  9910. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9911. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9912. -*** your PATH or compiler configuration so that the native linker is
  9913. -*** used, and then restart.
  9914. -_LT_EOF
  9915. - ;;
  9916. - *)
  9917. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9918. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  9919. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  9920. - _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'
  9921. - else
  9922. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9923. - fi
  9924. - ;;
  9925. - esac
  9926. - ;;
  9927. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9928. +# ------------------------------------------------------------
  9929. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9930. +m4_define([_LT_IF_OPTION],
  9931. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  9932. - sunos4*)
  9933. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9934. - wlarc=
  9935. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9936. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9937. - ;;
  9938. - *)
  9939. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9940. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9941. - _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'
  9942. - else
  9943. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9944. - fi
  9945. - ;;
  9946. - esac
  9947. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  9948. +# -------------------------------------------------------
  9949. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  9950. +# are set.
  9951. +m4_define([_LT_UNLESS_OPTIONS],
  9952. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9953. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  9954. + [m4_define([$0_found])])])[]dnl
  9955. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  9956. +])[]dnl
  9957. +])
  9958. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  9959. - runpath_var=
  9960. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9961. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9962. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9963. - fi
  9964. - else
  9965. - # PORTME fill in a description of your system's linker (not GNU ld)
  9966. - case $host_os in
  9967. - aix3*)
  9968. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9969. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  9970. - _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'
  9971. - # Note: this linker hardcodes the directories in LIBPATH if there
  9972. - # are no directories specified by -L.
  9973. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9974. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9975. - # Neither direct hardcoding nor static linking is supported with a
  9976. - # broken collect2.
  9977. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  9978. - fi
  9979. - ;;
  9980. - aix[[4-9]]*)
  9981. - if test "$host_cpu" = ia64; then
  9982. - # On IA64, the linker does run time linking by default, so we don't
  9983. - # have to do anything special.
  9984. - aix_use_runtimelinking=no
  9985. - exp_sym_flag='-Bexport'
  9986. - no_entry_flag=""
  9987. - else
  9988. - # If we're using GNU nm, then we don't want the "-C" option.
  9989. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9990. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9991. - _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'
  9992. - else
  9993. - _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'
  9994. - fi
  9995. - aix_use_runtimelinking=no
  9996. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  9997. +# ----------------------------------------
  9998. +# OPTION-LIST is a space-separated list of Libtool options associated
  9999. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  10000. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  10001. +# the unknown option and exit.
  10002. +m4_defun([_LT_SET_OPTIONS],
  10003. +[# Set options
  10004. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  10005. + [_LT_SET_OPTION([$1], _LT_Option)])
  10006. +
  10007. +m4_if([$1],[LT_INIT],[
  10008. + dnl
  10009. + dnl Simply set some default values (i.e off) if boolean options were not
  10010. + dnl specified:
  10011. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  10012. + ])
  10013. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  10014. + ])
  10015. + dnl
  10016. + dnl If no reference was made to various pairs of opposing options, then
  10017. + dnl we run the default mode handler for the pair. For example, if neither
  10018. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  10019. + dnl archives by default:
  10020. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  10021. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  10022. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  10023. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  10024. + [_LT_ENABLE_FAST_INSTALL])
  10025. + ])
  10026. +])# _LT_SET_OPTIONS
  10027. +
  10028. +
  10029. +
  10030. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  10031. +# -----------------------------------------
  10032. +m4_define([_LT_MANGLE_DEFUN],
  10033. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  10034. +
  10035. - # Test if we are trying to use run time linking or normal
  10036. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10037. - # need to do runtime linking.
  10038. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  10039. - for ld_flag in $LDFLAGS; do
  10040. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10041. - aix_use_runtimelinking=yes
  10042. - break
  10043. - fi
  10044. - done
  10045. - ;;
  10046. - esac
  10047. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  10048. +# -----------------------------------------------
  10049. +m4_define([LT_OPTION_DEFINE],
  10050. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  10051. +])# LT_OPTION_DEFINE
  10052. - exp_sym_flag='-bexport'
  10053. - no_entry_flag='-bnoentry'
  10054. - fi
  10055. - # When large executables or shared objects are built, AIX ld can
  10056. - # have problems creating the table of contents. If linking a library
  10057. - # or program results in "error TOC overflow" add -mminimal-toc to
  10058. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10059. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10060. +# dlopen
  10061. +# ------
  10062. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  10063. +])
  10064. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  10065. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10066. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10067. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10068. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  10069. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  10070. +AC_DIAGNOSE([obsolete],
  10071. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10072. +put the `dlopen' option into LT_INIT's first parameter.])
  10073. +])
  10074. - if test "$GCC" = yes; then
  10075. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  10076. - # We only want to do this on AIX 4.2 and lower, the check
  10077. - # below for broken collect2 doesn't work under 4.3+
  10078. - collect2name=`${CC} -print-prog-name=collect2`
  10079. - if test -f "$collect2name" && \
  10080. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  10081. - then
  10082. - # We have reworked collect2
  10083. - :
  10084. - else
  10085. - # We have old collect2
  10086. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10087. - # It fails to find uninstalled libraries when the uninstalled
  10088. - # path is not listed in the libpath. Setting hardcode_minus_L
  10089. - # to unsupported forces relinking
  10090. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10091. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10092. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  10093. - fi
  10094. - ;;
  10095. - esac
  10096. - shared_flag='-shared'
  10097. - if test "$aix_use_runtimelinking" = yes; then
  10098. - shared_flag="$shared_flag "'${wl}-G'
  10099. - fi
  10100. - else
  10101. - # not using gcc
  10102. - if test "$host_cpu" = ia64; then
  10103. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10104. - # chokes on -Wl,-G. The following line is correct:
  10105. - shared_flag='-G'
  10106. - else
  10107. - if test "$aix_use_runtimelinking" = yes; then
  10108. - shared_flag='${wl}-G'
  10109. - else
  10110. - shared_flag='${wl}-bM:SRE'
  10111. - fi
  10112. - fi
  10113. - fi
  10114. +dnl aclocal-1.4 backwards compatibility:
  10115. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  10116. - # It seems that -bexpall does not export symbols beginning with
  10117. - # underscore (_), so it is better to generate a list of symbols to export.
  10118. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10119. - if test "$aix_use_runtimelinking" = yes; then
  10120. - # Warning - without using the other runtime loading flags (-brtl),
  10121. - # -berok will link without error, but may produce a broken library.
  10122. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  10123. - # Determine the default libpath from the value encoded in an empty executable.
  10124. - _LT_AC_SYS_LIBPATH_AIX
  10125. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10126. - _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"
  10127. - else
  10128. - if test "$host_cpu" = ia64; then
  10129. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  10130. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  10131. - _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"
  10132. - else
  10133. - # Determine the default libpath from the value encoded in an empty executable.
  10134. - _LT_AC_SYS_LIBPATH_AIX
  10135. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10136. - # Warning - without using the other run time loading flags,
  10137. - # -berok will link without error, but may produce a broken library.
  10138. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  10139. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  10140. - # Exported symbols can be pulled into shared objects from archives
  10141. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  10142. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10143. - # This is similar to how AIX traditionally builds its shared libraries.
  10144. - _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'
  10145. - fi
  10146. - fi
  10147. - ;;
  10148. - amigaos*)
  10149. - _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)'
  10150. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10151. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10152. - # see comment about different semantics on the GNU ld section
  10153. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10154. - ;;
  10155. +# win32-dll
  10156. +# ---------
  10157. +# Declare package support for building win32 dll's.
  10158. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  10159. +[enable_win32_dll=yes
  10160. - bsdi[[45]]*)
  10161. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  10162. - ;;
  10163. +case $host in
  10164. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  10165. + AC_CHECK_TOOL(AS, as, false)
  10166. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  10167. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10168. + ;;
  10169. +esac
  10170. - cygwin* | mingw* | pw32*)
  10171. - # When not using gcc, we currently assume that we are using
  10172. - # Microsoft Visual C++.
  10173. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  10174. - # no search path for DLLs.
  10175. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  10176. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10177. - # Tell ltmain to make .lib files, not .a files.
  10178. - libext=lib
  10179. - # Tell ltmain to make .dll files, not .so files.
  10180. - shrext_cmds=".dll"
  10181. - # FIXME: Setting linknames here is a bad hack.
  10182. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10183. - # The linker will automatically build a .lib file if we build a DLL.
  10184. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  10185. - # FIXME: Should let the user specify the lib program.
  10186. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10187. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  10188. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  10189. - ;;
  10190. +test -z "$AS" && AS=as
  10191. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  10192. - darwin* | rhapsody*)
  10193. - case $host_os in
  10194. - rhapsody* | darwin1.[[012]])
  10195. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  10196. - ;;
  10197. - *) # Darwin 1.3 on
  10198. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10199. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10200. - else
  10201. - case ${MACOSX_DEPLOYMENT_TARGET} in
  10202. - 10.[[012]])
  10203. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10204. - ;;
  10205. - 10.*)
  10206. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  10207. - ;;
  10208. - esac
  10209. - fi
  10210. - ;;
  10211. - esac
  10212. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10213. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10214. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  10215. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  10216. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  10217. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10218. - if test "$GCC" = yes ; then
  10219. - output_verbose_link_cmd='echo'
  10220. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10221. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10222. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10223. - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10224. - else
  10225. - case $cc_basename in
  10226. - xlc*)
  10227. - output_verbose_link_cmd='echo'
  10228. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10229. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10230. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10231. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10232. - _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}'
  10233. - ;;
  10234. - *)
  10235. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10236. - ;;
  10237. - esac
  10238. - fi
  10239. - ;;
  10240. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  10241. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  10242. - dgux*)
  10243. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10244. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10245. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10246. - ;;
  10247. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10248. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  10249. +])# win32-dll
  10250. - freebsd1*)
  10251. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10252. - ;;
  10253. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  10254. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  10255. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  10256. +AC_DIAGNOSE([obsolete],
  10257. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10258. +put the `win32-dll' option into LT_INIT's first parameter.])
  10259. +])
  10260. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10261. - # support. Future versions do this automatically, but an explicit c++rt0.o
  10262. - # does not break anything, and helps significantly (at the cost of a little
  10263. - # extra space).
  10264. - freebsd2.2*)
  10265. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10266. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10267. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10268. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10269. - ;;
  10270. +dnl aclocal-1.4 backwards compatibility:
  10271. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10272. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10273. - freebsd2*)
  10274. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10275. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10276. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10277. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10278. - ;;
  10279. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10280. - freebsd* | dragonfly*)
  10281. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10282. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10283. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10284. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10285. +# _LT_ENABLE_SHARED([DEFAULT])
  10286. +# ----------------------------
  10287. +# implement the --enable-shared flag, and supports the `shared' and
  10288. +# `disable-shared' LT_INIT options.
  10289. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10290. +m4_define([_LT_ENABLE_SHARED],
  10291. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10292. +AC_ARG_ENABLE([shared],
  10293. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10294. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10295. + [p=${PACKAGE-default}
  10296. + case $enableval in
  10297. + yes) enable_shared=yes ;;
  10298. + no) enable_shared=no ;;
  10299. + *)
  10300. + enable_shared=no
  10301. + # Look at the argument we got. We use all the common list separators.
  10302. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10303. + for pkg in $enableval; do
  10304. + IFS="$lt_save_ifs"
  10305. + if test "X$pkg" = "X$p"; then
  10306. + enable_shared=yes
  10307. + fi
  10308. + done
  10309. + IFS="$lt_save_ifs"
  10310. ;;
  10311. + esac],
  10312. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10313. - hpux9*)
  10314. - if test "$GCC" = yes; then
  10315. - _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'
  10316. - else
  10317. - _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'
  10318. - fi
  10319. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10320. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10321. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10322. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10323. + [Whether or not to build shared libraries])
  10324. +])# _LT_ENABLE_SHARED
  10325. - # hardcode_minus_L: Not really in the search PATH,
  10326. - # but as the default location of the library.
  10327. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10328. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10329. - ;;
  10330. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10331. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10332. - hpux10*)
  10333. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10334. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10335. - else
  10336. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10337. - fi
  10338. - if test "$with_gnu_ld" = no; then
  10339. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10340. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10341. +# Old names:
  10342. +AC_DEFUN([AC_ENABLE_SHARED],
  10343. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10344. +])
  10345. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10346. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10347. +AC_DEFUN([AC_DISABLE_SHARED],
  10348. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10349. +])
  10350. - # hardcode_minus_L: Not really in the search PATH,
  10351. - # but as the default location of the library.
  10352. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10353. - fi
  10354. - ;;
  10355. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10356. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10357. - hpux11*)
  10358. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10359. - case $host_cpu in
  10360. - hppa*64*)
  10361. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10362. - ;;
  10363. - ia64*)
  10364. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10365. - ;;
  10366. - *)
  10367. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10368. - ;;
  10369. - esac
  10370. - else
  10371. - case $host_cpu in
  10372. - hppa*64*)
  10373. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10374. - ;;
  10375. - ia64*)
  10376. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10377. - ;;
  10378. - *)
  10379. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10380. - ;;
  10381. - esac
  10382. - fi
  10383. - if test "$with_gnu_ld" = no; then
  10384. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10385. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10386. +dnl aclocal-1.4 backwards compatibility:
  10387. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10388. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10389. - case $host_cpu in
  10390. - hppa*64*|ia64*)
  10391. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  10392. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10393. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10394. - ;;
  10395. - *)
  10396. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10397. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10398. - # hardcode_minus_L: Not really in the search PATH,
  10399. - # but as the default location of the library.
  10400. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10401. - ;;
  10402. - esac
  10403. - fi
  10404. - ;;
  10405. - irix5* | irix6* | nonstopux*)
  10406. - if test "$GCC" = yes; then
  10407. - _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'
  10408. - else
  10409. - _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'
  10410. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  10411. - fi
  10412. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10413. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10414. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10415. +# _LT_ENABLE_STATIC([DEFAULT])
  10416. +# ----------------------------
  10417. +# implement the --enable-static flag, and support the `static' and
  10418. +# `disable-static' LT_INIT options.
  10419. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10420. +m4_define([_LT_ENABLE_STATIC],
  10421. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10422. +AC_ARG_ENABLE([static],
  10423. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10424. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10425. + [p=${PACKAGE-default}
  10426. + case $enableval in
  10427. + yes) enable_static=yes ;;
  10428. + no) enable_static=no ;;
  10429. + *)
  10430. + enable_static=no
  10431. + # Look at the argument we got. We use all the common list separators.
  10432. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10433. + for pkg in $enableval; do
  10434. + IFS="$lt_save_ifs"
  10435. + if test "X$pkg" = "X$p"; then
  10436. + enable_static=yes
  10437. + fi
  10438. + done
  10439. + IFS="$lt_save_ifs"
  10440. ;;
  10441. + esac],
  10442. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10443. - netbsd*)
  10444. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10445. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10446. - else
  10447. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10448. - fi
  10449. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10450. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10451. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10452. - ;;
  10453. + _LT_DECL([build_old_libs], [enable_static], [0],
  10454. + [Whether or not to build static libraries])
  10455. +])# _LT_ENABLE_STATIC
  10456. - newsos6)
  10457. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10458. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10459. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10460. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10461. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10462. - ;;
  10463. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10464. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10465. - openbsd*)
  10466. - if test -f /usr/libexec/ld.so; then
  10467. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10468. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10469. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10470. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10471. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10472. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10473. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10474. - else
  10475. - case $host_os in
  10476. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  10477. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10478. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10479. - ;;
  10480. - *)
  10481. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10482. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10483. - ;;
  10484. - esac
  10485. - fi
  10486. - else
  10487. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10488. - fi
  10489. - ;;
  10490. +# Old names:
  10491. +AC_DEFUN([AC_ENABLE_STATIC],
  10492. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10493. +])
  10494. - os2*)
  10495. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10496. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10497. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10498. - _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'
  10499. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10500. - ;;
  10501. +AC_DEFUN([AC_DISABLE_STATIC],
  10502. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10503. +])
  10504. - osf3*)
  10505. - if test "$GCC" = yes; then
  10506. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10507. - _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'
  10508. - else
  10509. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10510. - _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'
  10511. - fi
  10512. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10513. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10514. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10515. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10516. +
  10517. +dnl aclocal-1.4 backwards compatibility:
  10518. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10519. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10520. +
  10521. +
  10522. +
  10523. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10524. +# ----------------------------------
  10525. +# implement the --enable-fast-install flag, and support the `fast-install'
  10526. +# and `disable-fast-install' LT_INIT options.
  10527. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10528. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10529. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10530. +AC_ARG_ENABLE([fast-install],
  10531. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10532. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10533. + [p=${PACKAGE-default}
  10534. + case $enableval in
  10535. + yes) enable_fast_install=yes ;;
  10536. + no) enable_fast_install=no ;;
  10537. + *)
  10538. + enable_fast_install=no
  10539. + # Look at the argument we got. We use all the common list separators.
  10540. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10541. + for pkg in $enableval; do
  10542. + IFS="$lt_save_ifs"
  10543. + if test "X$pkg" = "X$p"; then
  10544. + enable_fast_install=yes
  10545. + fi
  10546. + done
  10547. + IFS="$lt_save_ifs"
  10548. ;;
  10549. + esac],
  10550. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10551. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  10552. - if test "$GCC" = yes; then
  10553. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10554. - _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'
  10555. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10556. - else
  10557. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10558. - _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'
  10559. - _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~
  10560. - $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'
  10561. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10562. + [Whether or not to optimize for fast installation])dnl
  10563. +])# _LT_ENABLE_FAST_INSTALL
  10564. +
  10565. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10566. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10567. +
  10568. +# Old names:
  10569. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10570. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10571. +AC_DIAGNOSE([obsolete],
  10572. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10573. +the `fast-install' option into LT_INIT's first parameter.])
  10574. +])
  10575. - # Both c and cxx compiler support -rpath directly
  10576. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10577. - fi
  10578. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10579. - ;;
  10580. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10581. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10582. +AC_DIAGNOSE([obsolete],
  10583. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10584. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10585. +])
  10586. - solaris*)
  10587. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  10588. - if test "$GCC" = yes; then
  10589. - wlarc='${wl}'
  10590. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10591. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10592. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10593. - else
  10594. - wlarc=''
  10595. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10596. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10597. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10598. - fi
  10599. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10600. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10601. - case $host_os in
  10602. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10603. - *)
  10604. - # The compiler driver will combine and reorder linker options,
  10605. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  10606. - # but is careful enough not to reorder.
  10607. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10608. - if test "$GCC" = yes; then
  10609. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10610. - else
  10611. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10612. - fi
  10613. - ;;
  10614. - esac
  10615. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10616. - ;;
  10617. +dnl aclocal-1.4 backwards compatibility:
  10618. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10619. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10620. - sunos4*)
  10621. - if test "x$host_vendor" = xsequent; then
  10622. - # Use $CC to link under sequent, because it throws in some extra .o
  10623. - # files that make .init and .fini sections work.
  10624. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10625. - else
  10626. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10627. - fi
  10628. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10629. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10630. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10631. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10632. - ;;
  10633. - sysv4)
  10634. - case $host_vendor in
  10635. - sni)
  10636. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10637. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  10638. - ;;
  10639. - siemens)
  10640. - ## LD is ld it makes a PLAMLIB
  10641. - ## CC just makes a GrossModule.
  10642. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10643. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  10644. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10645. - ;;
  10646. - motorola)
  10647. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10648. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  10649. - ;;
  10650. - esac
  10651. - runpath_var='LD_RUN_PATH'
  10652. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10653. - ;;
  10654. +# _LT_WITH_PIC([MODE])
  10655. +# --------------------
  10656. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10657. +# LT_INIT options.
  10658. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10659. +m4_define([_LT_WITH_PIC],
  10660. +[AC_ARG_WITH([pic],
  10661. + [AS_HELP_STRING([--with-pic],
  10662. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10663. + [pic_mode="$withval"],
  10664. + [pic_mode=default])
  10665. - sysv4.3*)
  10666. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10667. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10668. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  10669. - ;;
  10670. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10671. - sysv4*MP*)
  10672. - if test -d /usr/nec; then
  10673. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10674. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10675. - runpath_var=LD_RUN_PATH
  10676. - hardcode_runpath_var=yes
  10677. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  10678. - fi
  10679. - ;;
  10680. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10681. +])# _LT_WITH_PIC
  10682. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10683. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10684. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10685. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10686. - runpath_var='LD_RUN_PATH'
  10687. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10688. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10689. - if test "$GCC" = yes; then
  10690. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10691. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10692. - else
  10693. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10694. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10695. - fi
  10696. - ;;
  10697. +# Old name:
  10698. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10699. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10700. +AC_DIAGNOSE([obsolete],
  10701. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10702. +put the `pic-only' option into LT_INIT's first parameter.])
  10703. +])
  10704. - sysv5* | sco3.2v5* | sco5v6*)
  10705. - # Note: We can NOT use -z defs as we might desire, because we do not
  10706. - # link with -lc, and that would cause any symbols used from libc to
  10707. - # always be unresolved, which means just about no library would
  10708. - # ever link correctly. If we're not using GNU ld we use -z text
  10709. - # though, which does catch some bad symbols but isn't as heavy-handed
  10710. - # as -z defs.
  10711. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10712. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10713. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10714. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10715. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10716. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10717. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10718. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10719. - runpath_var='LD_RUN_PATH'
  10720. +dnl aclocal-1.4 backwards compatibility:
  10721. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10722. - if test "$GCC" = yes; then
  10723. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10724. - _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'
  10725. - else
  10726. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10727. - _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'
  10728. - fi
  10729. - ;;
  10730. - uts4*)
  10731. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10732. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10733. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10734. - ;;
  10735. +m4_define([_LTDL_MODE], [])
  10736. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10737. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10738. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10739. + [m4_define([_LTDL_MODE], [recursive])])
  10740. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10741. + [m4_define([_LTDL_MODE], [subproject])])
  10742. - *)
  10743. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10744. - ;;
  10745. - esac
  10746. - fi
  10747. -])
  10748. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  10749. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10750. +m4_define([_LTDL_TYPE], [])
  10751. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10752. + [m4_define([_LTDL_TYPE], [installable])])
  10753. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10754. + [m4_define([_LTDL_TYPE], [convenience])])
  10755. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10756. #
  10757. -# Do we need to explicitly link libc?
  10758. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10759. +# Written by Gary V. Vaughan, 2004
  10760. #
  10761. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  10762. -x|xyes)
  10763. - # Assume -lc should be added
  10764. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10765. +# This file is free software; the Free Software Foundation gives
  10766. +# unlimited permission to copy and/or distribute it, with or without
  10767. +# modifications, as long as this notice is preserved.
  10768. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  10769. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  10770. - *'~'*)
  10771. - # FIXME: we may have to deal with multi-command sequences.
  10772. - ;;
  10773. - '$CC '*)
  10774. - # Test whether the compiler implicitly links with -lc since on some
  10775. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10776. - # to ld, don't add -lc before -lgcc.
  10777. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  10778. - $rm conftest*
  10779. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10780. +# serial 6 ltsugar.m4
  10781. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  10782. - soname=conftest
  10783. - lib=conftest
  10784. - libobjs=conftest.$ac_objext
  10785. - deplibs=
  10786. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  10787. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  10788. - compiler_flags=-v
  10789. - linker_flags=-v
  10790. - verstring=
  10791. - output_objdir=.
  10792. - libname=conftest
  10793. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  10794. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  10795. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  10796. - then
  10797. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10798. - else
  10799. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10800. - fi
  10801. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  10802. - else
  10803. - cat conftest.err 1>&5
  10804. - fi
  10805. - $rm conftest*
  10806. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  10807. - ;;
  10808. - esac
  10809. - fi
  10810. - ;;
  10811. -esac
  10812. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  10813. +# This is to help aclocal find these macros, as it can't see m4_define.
  10814. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10815. -# _LT_AC_FILE_LTDLL_C
  10816. -# -------------------
  10817. -# Be careful that the start marker always follows a newline.
  10818. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  10819. -# /* ltdll.c starts here */
  10820. -# #define WIN32_LEAN_AND_MEAN
  10821. -# #include <windows.h>
  10822. -# #undef WIN32_LEAN_AND_MEAN
  10823. -# #include <stdio.h>
  10824. -#
  10825. -# #ifndef __CYGWIN__
  10826. -# # ifdef __CYGWIN32__
  10827. -# # define __CYGWIN__ __CYGWIN32__
  10828. -# # endif
  10829. -# #endif
  10830. -#
  10831. -# #ifdef __cplusplus
  10832. -# extern "C" {
  10833. -# #endif
  10834. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  10835. -# #ifdef __cplusplus
  10836. -# }
  10837. -# #endif
  10838. -#
  10839. -# #ifdef __CYGWIN__
  10840. -# #include <cygwin/cygwin_dll.h>
  10841. -# DECLARE_CYGWIN_DLL( DllMain );
  10842. -# #endif
  10843. -# HINSTANCE __hDllInstance_base;
  10844. -#
  10845. -# BOOL APIENTRY
  10846. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  10847. -# {
  10848. -# __hDllInstance_base = hInst;
  10849. -# return TRUE;
  10850. -# }
  10851. -# /* ltdll.c ends here */
  10852. -])# _LT_AC_FILE_LTDLL_C
  10853. +# lt_join(SEP, ARG1, [ARG2...])
  10854. +# -----------------------------
  10855. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10856. +# associated separator.
  10857. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10858. +# versions in m4sugar had bugs.
  10859. +m4_define([lt_join],
  10860. +[m4_if([$#], [1], [],
  10861. + [$#], [2], [[$2]],
  10862. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10863. +m4_define([_lt_join],
  10864. +[m4_if([$#$2], [2], [],
  10865. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10866. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  10867. -# ---------------------------------
  10868. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  10869. +# lt_car(LIST)
  10870. +# lt_cdr(LIST)
  10871. +# ------------
  10872. +# Manipulate m4 lists.
  10873. +# These macros are necessary as long as will still need to support
  10874. +# Autoconf-2.59 which quotes differently.
  10875. +m4_define([lt_car], [[$1]])
  10876. +m4_define([lt_cdr],
  10877. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10878. + [$#], 1, [],
  10879. + [m4_dquote(m4_shift($@))])])
  10880. +m4_define([lt_unquote], $1)
  10881. +
  10882. +
  10883. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10884. +# ------------------------------------------
  10885. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10886. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10887. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10888. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10889. +# than defined and empty).
  10890. +#
  10891. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10892. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10893. +m4_define([lt_append],
  10894. +[m4_define([$1],
  10895. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10896. -# old names
  10897. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  10898. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10899. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10900. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10901. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10902. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  10903. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  10904. -# This is just to silence aclocal about the macro not being used
  10905. -ifelse([AC_DISABLE_FAST_INSTALL])
  10906. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10907. +# ----------------------------------------------------------
  10908. +# Produce a SEP delimited list of all paired combinations of elements of
  10909. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10910. +# has the form PREFIXmINFIXSUFFIXn.
  10911. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10912. +m4_define([lt_combine],
  10913. +[m4_if(m4_eval([$# > 3]), [1],
  10914. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10915. +[[m4_foreach([_Lt_prefix], [$2],
  10916. + [m4_foreach([_Lt_suffix],
  10917. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10918. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10919. +
  10920. +
  10921. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10922. +# -----------------------------------------------------------------------
  10923. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10924. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10925. +m4_define([lt_if_append_uniq],
  10926. +[m4_ifdef([$1],
  10927. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10928. + [lt_append([$1], [$2], [$3])$4],
  10929. + [$5])],
  10930. + [lt_append([$1], [$2], [$3])$4])])
  10931. +
  10932. +
  10933. +# lt_dict_add(DICT, KEY, VALUE)
  10934. +# -----------------------------
  10935. +m4_define([lt_dict_add],
  10936. +[m4_define([$1($2)], [$3])])
  10937. +
  10938. +
  10939. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  10940. +# --------------------------------------------
  10941. +m4_define([lt_dict_add_subkey],
  10942. +[m4_define([$1($2:$3)], [$4])])
  10943. -AC_DEFUN([LT_AC_PROG_GCJ],
  10944. -[AC_CHECK_TOOL(GCJ, gcj, no)
  10945. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10946. - AC_SUBST(GCJFLAGS)
  10947. -])
  10948. -AC_DEFUN([LT_AC_PROG_RC],
  10949. -[AC_CHECK_TOOL(RC, windres, no)
  10950. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  10951. +# ----------------------------------
  10952. +m4_define([lt_dict_fetch],
  10953. +[m4_ifval([$3],
  10954. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  10955. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  10956. +
  10957. +
  10958. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  10959. +# -----------------------------------------------------------------
  10960. +m4_define([lt_if_dict_fetch],
  10961. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  10962. + [$5],
  10963. + [$6])])
  10964. +
  10965. +
  10966. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  10967. +# --------------------------------------------------------------
  10968. +m4_define([lt_dict_filter],
  10969. +[m4_if([$5], [], [],
  10970. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  10971. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  10972. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  10973. ])
  10974. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  10975. +#
  10976. +# Copyright (C) 2004 Free Software Foundation, Inc.
  10977. +# Written by Scott James Remnant, 2004
  10978. +#
  10979. +# This file is free software; the Free Software Foundation gives
  10980. +# unlimited permission to copy and/or distribute it, with or without
  10981. +# modifications, as long as this notice is preserved.
  10982. -# Cheap backport of AS_EXECUTABLE_P and required macros
  10983. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  10984. +# Generated from ltversion.in.
  10985. -# _AS_TEST_PREPARE
  10986. -# ----------------
  10987. -m4_ifndef([_AS_TEST_PREPARE],
  10988. -[m4_defun([_AS_TEST_PREPARE],
  10989. -[if test -x / >/dev/null 2>&1; then
  10990. - as_executable_p='test -x'
  10991. -else
  10992. - as_executable_p='test -f'
  10993. -fi
  10994. -])])# _AS_TEST_PREPARE
  10995. +# serial 3017 ltversion.m4
  10996. +# This file is part of GNU Libtool
  10997. -# AS_EXECUTABLE_P
  10998. -# ---------------
  10999. -# Check whether a file is executable.
  11000. -m4_ifndef([AS_EXECUTABLE_P],
  11001. -[m4_defun([AS_EXECUTABLE_P],
  11002. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  11003. -$as_executable_p $1[]dnl
  11004. -])])# AS_EXECUTABLE_P
  11005. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  11006. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  11007. -# NOTE: This macro has been submitted for inclusion into #
  11008. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  11009. -# a released version of Autoconf we should remove this #
  11010. -# macro and use it instead. #
  11011. -# LT_AC_PROG_SED
  11012. -# --------------
  11013. -# Check for a fully-functional sed program, that truncates
  11014. -# as few characters as possible. Prefer GNU sed if found.
  11015. -AC_DEFUN([LT_AC_PROG_SED],
  11016. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  11017. -AC_CACHE_VAL(lt_cv_path_SED,
  11018. -[# Loop through the user's path and test for sed and gsed.
  11019. -# Then use that list of sed's as ones to test for truncation.
  11020. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11021. -for as_dir in $PATH
  11022. -do
  11023. - IFS=$as_save_IFS
  11024. - test -z "$as_dir" && as_dir=.
  11025. - for lt_ac_prog in sed gsed; do
  11026. - for ac_exec_ext in '' $ac_executable_extensions; do
  11027. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  11028. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11029. - fi
  11030. - done
  11031. - done
  11032. -done
  11033. -IFS=$as_save_IFS
  11034. -lt_ac_max=0
  11035. -lt_ac_count=0
  11036. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11037. -# along with /bin/sed that truncates output.
  11038. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11039. - test ! -f $lt_ac_sed && continue
  11040. - cat /dev/null > conftest.in
  11041. - lt_ac_count=0
  11042. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11043. - # Check for GNU sed and select it if it is found.
  11044. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11045. - lt_cv_path_SED=$lt_ac_sed
  11046. - break
  11047. - fi
  11048. - while true; do
  11049. - cat conftest.in conftest.in >conftest.tmp
  11050. - mv conftest.tmp conftest.in
  11051. - cp conftest.in conftest.nl
  11052. - echo >>conftest.nl
  11053. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11054. - cmp -s conftest.out conftest.nl || break
  11055. - # 10000 chars as input seems more than enough
  11056. - test $lt_ac_count -gt 10 && break
  11057. - lt_ac_count=`expr $lt_ac_count + 1`
  11058. - if test $lt_ac_count -gt $lt_ac_max; then
  11059. - lt_ac_max=$lt_ac_count
  11060. - lt_cv_path_SED=$lt_ac_sed
  11061. - fi
  11062. - done
  11063. -done
  11064. -])
  11065. -SED=$lt_cv_path_SED
  11066. -AC_SUBST([SED])
  11067. -AC_MSG_RESULT([$SED])
  11068. +AC_DEFUN([LTVERSION_VERSION],
  11069. +[macro_version='2.2.6b'
  11070. +macro_revision='1.3017'
  11071. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  11072. +_LT_DECL(, macro_revision, 0)
  11073. ])
  11074. -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
  11075. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  11076. +#
  11077. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  11078. +# Written by Scott James Remnant, 2004.
  11079. +#
  11080. +# This file is free software; the Free Software Foundation gives
  11081. +# unlimited permission to copy and/or distribute it, with or without
  11082. +# modifications, as long as this notice is preserved.
  11083. +
  11084. +# serial 4 lt~obsolete.m4
  11085. +
  11086. +# These exist entirely to fool aclocal when bootstrapping libtool.
  11087. +#
  11088. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  11089. +# which have later been changed to m4_define as they aren't part of the
  11090. +# exported API, or moved to Autoconf or Automake where they belong.
  11091. +#
  11092. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  11093. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  11094. +# using a macro with the same name in our local m4/libtool.m4 it'll
  11095. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  11096. +# and doesn't know about Autoconf macros at all.)
  11097. +#
  11098. +# So we provide this file, which has a silly filename so it's always
  11099. +# included after everything else. This provides aclocal with the
  11100. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  11101. +# because those macros already exist, or will be overwritten later.
  11102. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  11103. +#
  11104. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  11105. +# Yes, that means every name once taken will need to remain here until
  11106. +# we give up compatibility with versions before 1.7, at which point
  11107. +# we need to keep only those names which we still refer to.
  11108. +
  11109. +# This is to help aclocal find these macros, as it can't see m4_define.
  11110. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  11111. +
  11112. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  11113. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  11114. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  11115. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  11116. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  11117. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  11118. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  11119. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  11120. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  11121. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  11122. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  11123. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  11124. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  11125. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  11126. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  11127. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  11128. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  11129. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  11130. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  11131. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  11132. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  11133. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  11134. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  11135. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  11136. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  11137. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  11138. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  11139. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  11140. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  11141. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  11142. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  11143. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  11144. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  11145. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  11146. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  11147. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  11148. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  11149. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  11150. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  11151. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  11152. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  11153. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  11154. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  11155. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  11156. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  11157. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  11158. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  11159. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  11160. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  11161. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  11162. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  11163. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  11164. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  11165. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  11166. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  11167. +
  11168. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11169. #
  11170. # This file is free software; the Free Software Foundation
  11171. # gives unlimited permission to copy and/or distribute it,
  11172. @@ -6664,10 +7997,10 @@
  11173. # generated from the m4 files accompanying Automake X.Y.
  11174. # (This private macro should not be called outside this file.)
  11175. AC_DEFUN([AM_AUTOMAKE_VERSION],
  11176. -[am__api_version='1.10'
  11177. +[am__api_version='1.11'
  11178. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11179. dnl require some minimum version. Point them to the right macro.
  11180. -m4_if([$1], [1.10], [],
  11181. +m4_if([$1], [1.11.1], [],
  11182. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11183. ])
  11184. @@ -6681,10 +8014,12 @@
  11185. # AM_SET_CURRENT_AUTOMAKE_VERSION
  11186. # -------------------------------
  11187. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11188. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  11189. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11190. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11191. -[AM_AUTOMAKE_VERSION([1.10])dnl
  11192. -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
  11193. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  11194. +m4_ifndef([AC_AUTOCONF_VERSION],
  11195. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11196. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11197. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  11198. @@ -6741,14 +8076,14 @@
  11199. # AM_CONDITIONAL -*- Autoconf -*-
  11200. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  11201. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  11202. # Free Software Foundation, Inc.
  11203. #
  11204. # This file is free software; the Free Software Foundation
  11205. # gives unlimited permission to copy and/or distribute it,
  11206. # with or without modifications, as long as this notice is preserved.
  11207. -# serial 8
  11208. +# serial 9
  11209. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  11210. # -------------------------------------
  11211. @@ -6761,6 +8096,7 @@
  11212. AC_SUBST([$1_FALSE])dnl
  11213. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  11214. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  11215. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  11216. if $2; then
  11217. $1_TRUE=
  11218. $1_FALSE='#'
  11219. @@ -6774,14 +8110,14 @@
  11220. Usually this means the macro was only invoked conditionally.]])
  11221. fi])])
  11222. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  11223. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  11224. # Free Software Foundation, Inc.
  11225. #
  11226. # This file is free software; the Free Software Foundation
  11227. # gives unlimited permission to copy and/or distribute it,
  11228. # with or without modifications, as long as this notice is preserved.
  11229. -# serial 9
  11230. +# serial 10
  11231. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  11232. # written in clear, in which case automake, when reading aclocal.m4,
  11233. @@ -6838,6 +8174,16 @@
  11234. if test "$am_compiler_list" = ""; then
  11235. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  11236. fi
  11237. + am__universal=false
  11238. + m4_case([$1], [CC],
  11239. + [case " $depcc " in #(
  11240. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11241. + esac],
  11242. + [CXX],
  11243. + [case " $depcc " in #(
  11244. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11245. + esac])
  11246. +
  11247. for depmode in $am_compiler_list; do
  11248. # Setup a source with many dependencies, because some compilers
  11249. # like to wrap large dependency lists on column 80 (with \), and
  11250. @@ -6855,7 +8201,17 @@
  11251. done
  11252. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11253. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11254. + # mode. It turns out that the SunPro C++ compiler does not properly
  11255. + # handle `-M -o', and we need to detect this. Also, some Intel
  11256. + # versions had trouble with output in subdirs
  11257. + am__obj=sub/conftest.${OBJEXT-o}
  11258. + am__minus_obj="-o $am__obj"
  11259. case $depmode in
  11260. + gcc)
  11261. + # This depmode causes a compiler race in universal mode.
  11262. + test "$am__universal" = false || continue
  11263. + ;;
  11264. nosideeffect)
  11265. # after this tag, mechanisms are not by side-effect, so they'll
  11266. # only be used when explicitly requested
  11267. @@ -6865,19 +8221,23 @@
  11268. break
  11269. fi
  11270. ;;
  11271. + msvisualcpp | msvcmsys)
  11272. + # This compiler won't grok `-c -o', but also, the minuso test has
  11273. + # not run yet. These depmodes are late enough in the game, and
  11274. + # so weak that their functioning should not be impacted.
  11275. + am__obj=conftest.${OBJEXT-o}
  11276. + am__minus_obj=
  11277. + ;;
  11278. none) break ;;
  11279. esac
  11280. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11281. - # mode. It turns out that the SunPro C++ compiler does not properly
  11282. - # handle `-M -o', and we need to detect this.
  11283. if depmode=$depmode \
  11284. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  11285. + source=sub/conftest.c object=$am__obj \
  11286. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11287. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  11288. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11289. >/dev/null 2>conftest.err &&
  11290. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11291. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11292. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  11293. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11294. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11295. # icc doesn't choke on unknown options, it will just issue warnings
  11296. # or remarks (even with -Werror). So we grep stderr for any message
  11297. @@ -6934,57 +8294,68 @@
  11298. # Generate code to set up dependency tracking. -*- Autoconf -*-
  11299. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11300. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  11301. # Free Software Foundation, Inc.
  11302. #
  11303. # This file is free software; the Free Software Foundation
  11304. # gives unlimited permission to copy and/or distribute it,
  11305. # with or without modifications, as long as this notice is preserved.
  11306. -#serial 3
  11307. +#serial 5
  11308. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  11309. # ------------------------------
  11310. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  11311. -[for mf in $CONFIG_FILES; do
  11312. - # Strip MF so we end up with the name of the file.
  11313. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  11314. - # Check whether this is an Automake generated Makefile or not.
  11315. - # We used to match only the files named `Makefile.in', but
  11316. - # some people rename them; so instead we look at the file content.
  11317. - # Grep'ing the first line is not enough: some people post-process
  11318. - # each Makefile.in and add a new line on top of each file to say so.
  11319. - # Grep'ing the whole file is not good either: AIX grep has a line
  11320. - # limit of 2048, but all sed's we know have understand at least 4000.
  11321. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  11322. - dirpart=`AS_DIRNAME("$mf")`
  11323. - else
  11324. - continue
  11325. - fi
  11326. - # Extract the definition of DEPDIR, am__include, and am__quote
  11327. - # from the Makefile without running `make'.
  11328. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11329. - test -z "$DEPDIR" && continue
  11330. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11331. - test -z "am__include" && continue
  11332. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11333. - # When using ansi2knr, U may be empty or an underscore; expand it
  11334. - U=`sed -n 's/^U = //p' < "$mf"`
  11335. - # Find all dependency output files, they are included files with
  11336. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  11337. - # simplest approach to changing $(DEPDIR) to its actual value in the
  11338. - # expansion.
  11339. - for file in `sed -n "
  11340. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11341. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11342. - # Make sure the directory exists.
  11343. - test -f "$dirpart/$file" && continue
  11344. - fdir=`AS_DIRNAME(["$file"])`
  11345. - AS_MKDIR_P([$dirpart/$fdir])
  11346. - # echo "creating $dirpart/$file"
  11347. - echo '# dummy' > "$dirpart/$file"
  11348. +[{
  11349. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11350. + # are listed without --file. Let's play safe and only enable the eval
  11351. + # if we detect the quoting.
  11352. + case $CONFIG_FILES in
  11353. + *\'*) eval set x "$CONFIG_FILES" ;;
  11354. + *) set x $CONFIG_FILES ;;
  11355. + esac
  11356. + shift
  11357. + for mf
  11358. + do
  11359. + # Strip MF so we end up with the name of the file.
  11360. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  11361. + # Check whether this is an Automake generated Makefile or not.
  11362. + # We used to match only the files named `Makefile.in', but
  11363. + # some people rename them; so instead we look at the file content.
  11364. + # Grep'ing the first line is not enough: some people post-process
  11365. + # each Makefile.in and add a new line on top of each file to say so.
  11366. + # Grep'ing the whole file is not good either: AIX grep has a line
  11367. + # limit of 2048, but all sed's we know have understand at least 4000.
  11368. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11369. + dirpart=`AS_DIRNAME("$mf")`
  11370. + else
  11371. + continue
  11372. + fi
  11373. + # Extract the definition of DEPDIR, am__include, and am__quote
  11374. + # from the Makefile without running `make'.
  11375. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11376. + test -z "$DEPDIR" && continue
  11377. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11378. + test -z "am__include" && continue
  11379. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11380. + # When using ansi2knr, U may be empty or an underscore; expand it
  11381. + U=`sed -n 's/^U = //p' < "$mf"`
  11382. + # Find all dependency output files, they are included files with
  11383. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  11384. + # simplest approach to changing $(DEPDIR) to its actual value in the
  11385. + # expansion.
  11386. + for file in `sed -n "
  11387. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11388. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11389. + # Make sure the directory exists.
  11390. + test -f "$dirpart/$file" && continue
  11391. + fdir=`AS_DIRNAME(["$file"])`
  11392. + AS_MKDIR_P([$dirpart/$fdir])
  11393. + # echo "creating $dirpart/$file"
  11394. + echo '# dummy' > "$dirpart/$file"
  11395. + done
  11396. done
  11397. -done
  11398. +}
  11399. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  11400. @@ -7016,13 +8387,13 @@
  11401. # Do all the work for Automake. -*- Autoconf -*-
  11402. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  11403. -# 2005, 2006 Free Software Foundation, Inc.
  11404. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  11405. #
  11406. # This file is free software; the Free Software Foundation
  11407. # gives unlimited permission to copy and/or distribute it,
  11408. # with or without modifications, as long as this notice is preserved.
  11409. -# serial 12
  11410. +# serial 16
  11411. # This macro actually does too much. Some checks are only needed if
  11412. # your package does certain things. But this isn't really a big deal.
  11413. @@ -7039,7 +8410,7 @@
  11414. # arguments mandatory, and then we can depend on a new Autoconf
  11415. # release and drop the old call support.
  11416. AC_DEFUN([AM_INIT_AUTOMAKE],
  11417. -[AC_PREREQ([2.60])dnl
  11418. +[AC_PREREQ([2.62])dnl
  11419. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  11420. dnl the ones we care about.
  11421. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  11422. @@ -7090,8 +8461,8 @@
  11423. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  11424. AM_MISSING_PROG(AUTOHEADER, autoheader)
  11425. AM_MISSING_PROG(MAKEINFO, makeinfo)
  11426. -AM_PROG_INSTALL_SH
  11427. -AM_PROG_INSTALL_STRIP
  11428. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  11429. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  11430. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  11431. # We need awk for the "check" target. The system "awk" is bad on
  11432. # some platforms.
  11433. @@ -7099,24 +8470,37 @@
  11434. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  11435. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  11436. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  11437. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11438. - [_AM_PROG_TAR([v7])])])
  11439. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11440. + [_AM_PROG_TAR([v7])])])
  11441. _AM_IF_OPTION([no-dependencies],,
  11442. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  11443. - [_AM_DEPENDENCIES(CC)],
  11444. - [define([AC_PROG_CC],
  11445. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11446. + [_AM_DEPENDENCIES(CC)],
  11447. + [define([AC_PROG_CC],
  11448. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11449. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  11450. - [_AM_DEPENDENCIES(CXX)],
  11451. - [define([AC_PROG_CXX],
  11452. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11453. + [_AM_DEPENDENCIES(CXX)],
  11454. + [define([AC_PROG_CXX],
  11455. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11456. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  11457. - [_AM_DEPENDENCIES(OBJC)],
  11458. - [define([AC_PROG_OBJC],
  11459. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11460. + [_AM_DEPENDENCIES(OBJC)],
  11461. + [define([AC_PROG_OBJC],
  11462. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11463. ])
  11464. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  11465. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  11466. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  11467. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  11468. +AC_CONFIG_COMMANDS_PRE(dnl
  11469. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  11470. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  11471. ])
  11472. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  11473. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  11474. +dnl mangled by Autoconf and run in a shell conditional statement.
  11475. +m4_define([_AC_COMPILER_EXEEXT],
  11476. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  11477. +
  11478. # When config.status generates a header, we must update the stamp-h file.
  11479. # This file resides in the same directory as the config header
  11480. @@ -7127,18 +8511,19 @@
  11481. # our stamp files there.
  11482. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  11483. [# Compute $1's index in $config_headers.
  11484. +_am_arg=$1
  11485. _am_stamp_count=1
  11486. for _am_header in $config_headers :; do
  11487. case $_am_header in
  11488. - $1 | $1:* )
  11489. + $_am_arg | $_am_arg:* )
  11490. break ;;
  11491. * )
  11492. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11493. esac
  11494. done
  11495. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  11496. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  11497. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11498. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  11499. #
  11500. # This file is free software; the Free Software Foundation
  11501. # gives unlimited permission to copy and/or distribute it,
  11502. @@ -7149,7 +8534,14 @@
  11503. # Define $install_sh.
  11504. AC_DEFUN([AM_PROG_INSTALL_SH],
  11505. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11506. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  11507. +if test x"${install_sh}" != xset; then
  11508. + case $am_aux_dir in
  11509. + *\ * | *\ *)
  11510. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  11511. + *)
  11512. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  11513. + esac
  11514. +fi
  11515. AC_SUBST(install_sh)])
  11516. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  11517. @@ -7175,13 +8567,13 @@
  11518. # Check to see how 'make' treats includes. -*- Autoconf -*-
  11519. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11520. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  11521. #
  11522. # This file is free software; the Free Software Foundation
  11523. # gives unlimited permission to copy and/or distribute it,
  11524. # with or without modifications, as long as this notice is preserved.
  11525. -# serial 3
  11526. +# serial 4
  11527. # AM_MAKE_INCLUDE()
  11528. # -----------------
  11529. @@ -7190,7 +8582,7 @@
  11530. [am_make=${MAKE-make}
  11531. cat > confinc << 'END'
  11532. am__doit:
  11533. - @echo done
  11534. + @echo this is the am__doit target
  11535. .PHONY: am__doit
  11536. END
  11537. # If we don't find an include directive, just comment out the code.
  11538. @@ -7200,24 +8592,24 @@
  11539. _am_result=none
  11540. # First try GNU make style include.
  11541. echo "include confinc" > confmf
  11542. -# We grep out `Entering directory' and `Leaving directory'
  11543. -# messages which can occur if `w' ends up in MAKEFLAGS.
  11544. -# In particular we don't look at `^make:' because GNU make might
  11545. -# be invoked under some other name (usually "gmake"), in which
  11546. -# case it prints its new name instead of `make'.
  11547. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  11548. - am__include=include
  11549. - am__quote=
  11550. - _am_result=GNU
  11551. -fi
  11552. +# Ignore all kinds of additional output from `make'.
  11553. +case `$am_make -s -f confmf 2> /dev/null` in #(
  11554. +*the\ am__doit\ target*)
  11555. + am__include=include
  11556. + am__quote=
  11557. + _am_result=GNU
  11558. + ;;
  11559. +esac
  11560. # Now try BSD make style include.
  11561. if test "$am__include" = "#"; then
  11562. echo '.include "confinc"' > confmf
  11563. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  11564. - am__include=.include
  11565. - am__quote="\""
  11566. - _am_result=BSD
  11567. - fi
  11568. + case `$am_make -s -f confmf 2> /dev/null` in #(
  11569. + *the\ am__doit\ target*)
  11570. + am__include=.include
  11571. + am__quote="\""
  11572. + _am_result=BSD
  11573. + ;;
  11574. + esac
  11575. fi
  11576. AC_SUBST([am__include])
  11577. AC_SUBST([am__quote])
  11578. @@ -7225,14 +8617,14 @@
  11579. rm -f confinc confmf
  11580. ])
  11581. -# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
  11582. +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  11583. # Free Software Foundation, Inc.
  11584. #
  11585. # This file is free software; the Free Software Foundation
  11586. # gives unlimited permission to copy and/or distribute it,
  11587. # with or without modifications, as long as this notice is preserved.
  11588. -# serial 5
  11589. +# serial 6
  11590. # AM_PROG_CC_C_O
  11591. # --------------
  11592. @@ -7244,8 +8636,9 @@
  11593. # FIXME: we rely on the cache variable name because
  11594. # there is no other way.
  11595. set dummy $CC
  11596. -ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  11597. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  11598. +am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  11599. +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  11600. +if test "$am_t" != yes; then
  11601. # Losing compiler, so override with the script.
  11602. # FIXME: It is wrong to rewrite CC.
  11603. # But if we don't then we get into trouble of one sort or another.
  11604. @@ -7261,14 +8654,14 @@
  11605. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  11606. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  11607. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  11608. # Free Software Foundation, Inc.
  11609. #
  11610. # This file is free software; the Free Software Foundation
  11611. # gives unlimited permission to copy and/or distribute it,
  11612. # with or without modifications, as long as this notice is preserved.
  11613. -# serial 5
  11614. +# serial 6
  11615. # AM_MISSING_PROG(NAME, PROGRAM)
  11616. # ------------------------------
  11617. @@ -7285,7 +8678,14 @@
  11618. AC_DEFUN([AM_MISSING_HAS_RUN],
  11619. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11620. AC_REQUIRE_AUX_FILE([missing])dnl
  11621. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  11622. +if test x"${MISSING+set}" != xset; then
  11623. + case $am_aux_dir in
  11624. + *\ * | *\ *)
  11625. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11626. + *)
  11627. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11628. + esac
  11629. +fi
  11630. # Use eval to expand $SHELL
  11631. if eval "$MISSING --run true"; then
  11632. am_missing_run="$MISSING --run "
  11633. @@ -7323,13 +8723,13 @@
  11634. # Helper functions for option handling. -*- Autoconf -*-
  11635. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11636. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  11637. #
  11638. # This file is free software; the Free Software Foundation
  11639. # gives unlimited permission to copy and/or distribute it,
  11640. # with or without modifications, as long as this notice is preserved.
  11641. -# serial 3
  11642. +# serial 4
  11643. # _AM_MANGLE_OPTION(NAME)
  11644. # -----------------------
  11645. @@ -7346,7 +8746,7 @@
  11646. # ----------------------------------
  11647. # OPTIONS is a space-separated list of Automake options.
  11648. AC_DEFUN([_AM_SET_OPTIONS],
  11649. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11650. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11651. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  11652. # -------------------------------------------
  11653. @@ -7356,14 +8756,14 @@
  11654. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  11655. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  11656. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  11657. # Free Software Foundation, Inc.
  11658. #
  11659. # This file is free software; the Free Software Foundation
  11660. # gives unlimited permission to copy and/or distribute it,
  11661. # with or without modifications, as long as this notice is preserved.
  11662. -# serial 4
  11663. +# serial 5
  11664. # AM_SANITY_CHECK
  11665. # ---------------
  11666. @@ -7372,16 +8772,29 @@
  11667. # Just in case
  11668. sleep 1
  11669. echo timestamp > conftest.file
  11670. +# Reject unsafe characters in $srcdir or the absolute working directory
  11671. +# name. Accept space and tab only in the latter.
  11672. +am_lf='
  11673. +'
  11674. +case `pwd` in
  11675. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  11676. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  11677. +esac
  11678. +case $srcdir in
  11679. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  11680. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  11681. +esac
  11682. +
  11683. # Do `set' in a subshell so we don't clobber the current shell's
  11684. # arguments. Must try -L first in case configure is actually a
  11685. # symlink; some systems play weird games with the mod time of symlinks
  11686. # (eg FreeBSD returns the mod time of the symlink's containing
  11687. # directory).
  11688. if (
  11689. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  11690. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11691. if test "$[*]" = "X"; then
  11692. # -L didn't work.
  11693. - set X `ls -t $srcdir/configure conftest.file`
  11694. + set X `ls -t "$srcdir/configure" conftest.file`
  11695. fi
  11696. rm -f conftest.file
  11697. if test "$[*]" != "X $srcdir/configure conftest.file" \
  11698. @@ -7434,18 +8847,25 @@
  11699. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11700. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  11701. -# Copyright (C) 2006 Free Software Foundation, Inc.
  11702. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  11703. #
  11704. # This file is free software; the Free Software Foundation
  11705. # gives unlimited permission to copy and/or distribute it,
  11706. # with or without modifications, as long as this notice is preserved.
  11707. +# serial 2
  11708. +
  11709. # _AM_SUBST_NOTMAKE(VARIABLE)
  11710. # ---------------------------
  11711. -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
  11712. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  11713. # This macro is traced by Automake.
  11714. AC_DEFUN([_AM_SUBST_NOTMAKE])
  11715. +# AM_SUBST_NOTMAKE(VARIABLE)
  11716. +# ---------------------------
  11717. +# Public sister of _AM_SUBST_NOTMAKE.
  11718. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  11719. +
  11720. # Check how to create a tarball. -*- Autoconf -*-
  11721. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  11722. diff -Nur file-5.04.orig/compile file-5.04/compile
  11723. --- file-5.04.orig/compile 2010-01-22 22:09:33.000000000 +0100
  11724. +++ file-5.04/compile 2011-02-24 20:54:42.034804180 +0100
  11725. @@ -1,9 +1,10 @@
  11726. #! /bin/sh
  11727. # Wrapper for compilers which do not understand `-c -o'.
  11728. -scriptversion=2005-05-14.22
  11729. +scriptversion=2009-10-06.20; # UTC
  11730. -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
  11731. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
  11732. +# Foundation, Inc.
  11733. # Written by Tom Tromey <tromey@cygnus.com>.
  11734. #
  11735. # This program is free software; you can redistribute it and/or modify
  11736. @@ -17,8 +18,7 @@
  11737. # GNU General Public License for more details.
  11738. #
  11739. # You should have received a copy of the GNU General Public License
  11740. -# along with this program; if not, write to the Free Software
  11741. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11742. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  11743. # As a special exception to the GNU General Public License, if you
  11744. # distribute this file as part of a program that contains a
  11745. @@ -103,13 +103,13 @@
  11746. fi
  11747. # Name of file we expect compiler to create.
  11748. -cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
  11749. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
  11750. # Create the lock directory.
  11751. -# Note: use `[/.-]' here to ensure that we don't use the same name
  11752. +# Note: use `[/\\:.-]' here to ensure that we don't use the same name
  11753. # that we are using for the .o file. Also, base the name on the expected
  11754. # object file name, since that is what matters with a parallel build.
  11755. -lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
  11756. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
  11757. while true; do
  11758. if mkdir "$lockdir" >/dev/null 2>&1; then
  11759. break
  11760. @@ -124,9 +124,9 @@
  11761. ret=$?
  11762. if test -f "$cofile"; then
  11763. - mv "$cofile" "$ofile"
  11764. + test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
  11765. elif test -f "${cofile}bj"; then
  11766. - mv "${cofile}bj" "$ofile"
  11767. + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
  11768. fi
  11769. rmdir "$lockdir"
  11770. @@ -138,5 +138,6 @@
  11771. # eval: (add-hook 'write-file-hooks 'time-stamp)
  11772. # time-stamp-start: "scriptversion="
  11773. # time-stamp-format: "%:y-%02m-%02d.%02H"
  11774. -# time-stamp-end: "$"
  11775. +# time-stamp-time-zone: "UTC"
  11776. +# time-stamp-end: "; # UTC"
  11777. # End:
  11778. diff -Nur file-5.04.orig/config.guess file-5.04/config.guess
  11779. --- file-5.04.orig/config.guess 2010-01-22 22:09:34.000000000 +0100
  11780. +++ file-5.04/config.guess 2011-02-24 20:54:42.044803197 +0100
  11781. @@ -1,13 +1,10 @@
  11782. #! /bin/sh
  11783. -#
  11784. -# $NetBSD: config.guess,v 1.9 2006/10/29 23:50:54 wiz Exp $
  11785. -#
  11786. # Attempt to guess a canonical system name.
  11787. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  11788. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  11789. -# Inc.
  11790. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  11791. +# Free Software Foundation, Inc.
  11792. -timestamp='2006-07-02'
  11793. +timestamp='2009-06-10'
  11794. # This file is free software; you can redistribute it and/or modify it
  11795. # under the terms of the GNU General Public License as published by
  11796. @@ -59,8 +56,8 @@
  11797. GNU config.guess ($timestamp)
  11798. Originally written by Per Bothner.
  11799. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11800. -Free Software Foundation, Inc.
  11801. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  11802. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11803. This is free software; see the source for copying conditions. There is NO
  11804. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  11805. @@ -173,7 +170,7 @@
  11806. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  11807. eval $set_cc_for_build
  11808. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  11809. - | grep __ELF__ >/dev/null
  11810. + | grep -q __ELF__
  11811. then
  11812. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  11813. # Return netbsd for either. FIX?
  11814. @@ -327,14 +324,30 @@
  11815. case `/usr/bin/uname -p` in
  11816. sparc) echo sparc-icl-nx7; exit ;;
  11817. esac ;;
  11818. + s390x:SunOS:*:*)
  11819. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11820. + exit ;;
  11821. sun4H:SunOS:5.*:*)
  11822. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11823. exit ;;
  11824. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  11825. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11826. exit ;;
  11827. - i86pc:SunOS:5.*:*)
  11828. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11829. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  11830. + eval $set_cc_for_build
  11831. + SUN_ARCH="i386"
  11832. + # If there is a compiler, see if it is configured for 64-bit objects.
  11833. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  11834. + # This test works for both compilers.
  11835. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  11836. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  11837. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  11838. + grep IS_64BIT_ARCH >/dev/null
  11839. + then
  11840. + SUN_ARCH="x86_64"
  11841. + fi
  11842. + fi
  11843. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11844. exit ;;
  11845. sun4*:SunOS:6*:*)
  11846. # According to config.sub, this is the proper way to canonicalize
  11847. @@ -535,7 +548,7 @@
  11848. echo rs6000-ibm-aix3.2
  11849. fi
  11850. exit ;;
  11851. - *:AIX:*:[45])
  11852. + *:AIX:*:[456])
  11853. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  11854. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  11855. IBM_ARCH=rs6000
  11856. @@ -643,7 +656,7 @@
  11857. # => hppa64-hp-hpux11.23
  11858. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  11859. - grep __LP64__ >/dev/null
  11860. + grep -q __LP64__
  11861. then
  11862. HP_ARCH="hppa2.0w"
  11863. else
  11864. @@ -784,7 +797,7 @@
  11865. i*:CYGWIN*:*)
  11866. echo ${UNAME_MACHINE}-pc-cygwin
  11867. exit ;;
  11868. - i*:MINGW*:*)
  11869. + *:MINGW*:*)
  11870. echo ${UNAME_MACHINE}-pc-mingw32
  11871. exit ;;
  11872. i*:windows32*:*)
  11873. @@ -794,15 +807,24 @@
  11874. i*:PW*:*)
  11875. echo ${UNAME_MACHINE}-pc-pw32
  11876. exit ;;
  11877. - x86:Interix*:[3456]*)
  11878. - echo i586-pc-interix${UNAME_RELEASE}
  11879. - exit ;;
  11880. - EM64T:Interix*:[3456]*)
  11881. - echo x86_64-unknown-interix${UNAME_RELEASE}
  11882. - exit ;;
  11883. + *:Interix*:[3456]*)
  11884. + case ${UNAME_MACHINE} in
  11885. + x86)
  11886. + echo i586-pc-interix${UNAME_RELEASE}
  11887. + exit ;;
  11888. + EM64T | authenticamd | genuineintel)
  11889. + echo x86_64-unknown-interix${UNAME_RELEASE}
  11890. + exit ;;
  11891. + IA64)
  11892. + echo ia64-unknown-interix${UNAME_RELEASE}
  11893. + exit ;;
  11894. + esac ;;
  11895. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  11896. echo i${UNAME_MACHINE}-pc-mks
  11897. exit ;;
  11898. + 8664:Windows_NT:*)
  11899. + echo x86_64-pc-mks
  11900. + exit ;;
  11901. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  11902. # How do we know it's Interix rather than the generic POSIX subsystem?
  11903. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  11904. @@ -833,7 +855,14 @@
  11905. echo ${UNAME_MACHINE}-pc-minix
  11906. exit ;;
  11907. arm*:Linux:*:*)
  11908. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  11909. + eval $set_cc_for_build
  11910. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  11911. + | grep -q __ARM_EABI__
  11912. + then
  11913. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  11914. + else
  11915. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  11916. + fi
  11917. exit ;;
  11918. avr32*:Linux:*:*)
  11919. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11920. @@ -856,40 +885,17 @@
  11921. m68*:Linux:*:*)
  11922. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11923. exit ;;
  11924. - mips:Linux:*:*)
  11925. + mips:Linux:*:* | mips64:Linux:*:*)
  11926. eval $set_cc_for_build
  11927. sed 's/^ //' << EOF >$dummy.c
  11928. #undef CPU
  11929. - #undef mips
  11930. - #undef mipsel
  11931. + #undef ${UNAME_MACHINE}
  11932. + #undef ${UNAME_MACHINE}el
  11933. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  11934. - CPU=mipsel
  11935. + CPU=${UNAME_MACHINE}el
  11936. #else
  11937. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  11938. - CPU=mips
  11939. - #else
  11940. - CPU=
  11941. - #endif
  11942. - #endif
  11943. -EOF
  11944. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  11945. - /^CPU/{
  11946. - s: ::g
  11947. - p
  11948. - }'`"
  11949. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  11950. - ;;
  11951. - mips64:Linux:*:*)
  11952. - eval $set_cc_for_build
  11953. - sed 's/^ //' << EOF >$dummy.c
  11954. - #undef CPU
  11955. - #undef mips64
  11956. - #undef mips64el
  11957. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  11958. - CPU=mips64el
  11959. - #else
  11960. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  11961. - CPU=mips64
  11962. + CPU=${UNAME_MACHINE}
  11963. #else
  11964. CPU=
  11965. #endif
  11966. @@ -921,10 +927,13 @@
  11967. EV67) UNAME_MACHINE=alphaev67 ;;
  11968. EV68*) UNAME_MACHINE=alphaev68 ;;
  11969. esac
  11970. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  11971. + objdump --private-headers /bin/sh | grep -q ld.so.1
  11972. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  11973. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  11974. exit ;;
  11975. + padre:Linux:*:*)
  11976. + echo sparc-unknown-linux-gnu
  11977. + exit ;;
  11978. parisc:Linux:*:* | hppa:Linux:*:*)
  11979. # Look for CPU level
  11980. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  11981. @@ -954,6 +963,9 @@
  11982. x86_64:Linux:*:*)
  11983. echo x86_64-unknown-linux-gnu
  11984. exit ;;
  11985. + xtensa*:Linux:*:*)
  11986. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  11987. + exit ;;
  11988. i*86:Linux:*:*)
  11989. # The BFD linker knows what the default object file format is, so
  11990. # first see if it will tell us. cd to the root directory to prevent
  11991. @@ -969,17 +981,6 @@
  11992. elf32-i386)
  11993. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  11994. ;;
  11995. - a.out-i386-linux)
  11996. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  11997. - exit ;;
  11998. - coff-i386)
  11999. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  12000. - exit ;;
  12001. - "")
  12002. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  12003. - # one that does not give us useful --help.
  12004. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  12005. - exit ;;
  12006. esac
  12007. # Determine whether the default compiler is a.out or elf
  12008. eval $set_cc_for_build
  12009. @@ -1045,7 +1046,7 @@
  12010. i*86:syllable:*:*)
  12011. echo ${UNAME_MACHINE}-pc-syllable
  12012. exit ;;
  12013. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  12014. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  12015. echo i386-unknown-lynxos${UNAME_RELEASE}
  12016. exit ;;
  12017. i*86:*DOS:*:*)
  12018. @@ -1089,8 +1090,11 @@
  12019. pc:*:*:*)
  12020. # Left here for compatibility:
  12021. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  12022. - # the processor, so we play safe by assuming i386.
  12023. - echo i386-pc-msdosdjgpp
  12024. + # the processor, so we play safe by assuming i586.
  12025. + # Note: whatever this is, it MUST be the same as what config.sub
  12026. + # prints for the "djgpp" host, or else GDB configury will decide that
  12027. + # this is a cross-build.
  12028. + echo i586-pc-msdosdjgpp
  12029. exit ;;
  12030. Intel:Mach:3*:*)
  12031. echo i386-pc-mach3
  12032. @@ -1128,6 +1132,16 @@
  12033. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  12034. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  12035. && { echo i486-ncr-sysv4; exit; } ;;
  12036. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  12037. + OS_REL='.3'
  12038. + test -r /etc/.relid \
  12039. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  12040. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  12041. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  12042. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  12043. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  12044. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  12045. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  12046. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  12047. echo m68k-unknown-lynxos${UNAME_RELEASE}
  12048. exit ;;
  12049. @@ -1140,7 +1154,7 @@
  12050. rs6000:LynxOS:2.*:*)
  12051. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  12052. exit ;;
  12053. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  12054. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  12055. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  12056. exit ;;
  12057. SM[BE]S:UNIX_SV:*:*)
  12058. @@ -1203,6 +1217,9 @@
  12059. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  12060. echo i586-pc-beos
  12061. exit ;;
  12062. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  12063. + echo i586-pc-haiku
  12064. + exit ;;
  12065. SX-4:SUPER-UX:*:*)
  12066. echo sx4-nec-superux${UNAME_RELEASE}
  12067. exit ;;
  12068. @@ -1212,6 +1229,15 @@
  12069. SX-6:SUPER-UX:*:*)
  12070. echo sx6-nec-superux${UNAME_RELEASE}
  12071. exit ;;
  12072. + SX-7:SUPER-UX:*:*)
  12073. + echo sx7-nec-superux${UNAME_RELEASE}
  12074. + exit ;;
  12075. + SX-8:SUPER-UX:*:*)
  12076. + echo sx8-nec-superux${UNAME_RELEASE}
  12077. + exit ;;
  12078. + SX-8R:SUPER-UX:*:*)
  12079. + echo sx8r-nec-superux${UNAME_RELEASE}
  12080. + exit ;;
  12081. Power*:Rhapsody:*:*)
  12082. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  12083. exit ;;
  12084. @@ -1302,6 +1328,9 @@
  12085. i*86:rdos:*:*)
  12086. echo ${UNAME_MACHINE}-pc-rdos
  12087. exit ;;
  12088. + i*86:AROS:*:*)
  12089. + echo ${UNAME_MACHINE}-pc-aros
  12090. + exit ;;
  12091. esac
  12092. #echo '(No uname command or uname output not recognized.)' 1>&2
  12093. @@ -1462,9 +1491,9 @@
  12094. the operating system you are using. It is advised that you
  12095. download the most up to date version of the config scripts from
  12096. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  12097. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  12098. and
  12099. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  12100. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  12101. If the version you run ($0) is already up to date, please
  12102. send the following data and any information you think might be
  12103. diff -Nur file-5.04.orig/config.h.in file-5.04/config.h.in
  12104. --- file-5.04.orig/config.h.in 2010-01-22 22:09:31.000000000 +0100
  12105. +++ file-5.04/config.h.in 2011-02-24 20:54:41.464804318 +0100
  12106. @@ -96,13 +96,13 @@
  12107. /* HAVE_STRUCT_OPTION */
  12108. #undef HAVE_STRUCT_OPTION
  12109. -/* Define to 1 if `st_rdev' is member of `struct stat'. */
  12110. +/* Define to 1 if `st_rdev' is a member of `struct stat'. */
  12111. #undef HAVE_STRUCT_STAT_ST_RDEV
  12112. -/* Define to 1 if `tm_gmtoff' is member of `struct tm'. */
  12113. +/* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  12114. #undef HAVE_STRUCT_TM_TM_GMTOFF
  12115. -/* Define to 1 if `tm_zone' is member of `struct tm'. */
  12116. +/* Define to 1 if `tm_zone' is a member of `struct tm'. */
  12117. #undef HAVE_STRUCT_TM_TM_ZONE
  12118. /* Define to 1 if you have the <sys/mman.h> header file. */
  12119. @@ -171,6 +171,10 @@
  12120. /* Define to 1 if you have the <zlib.h> header file. */
  12121. #undef HAVE_ZLIB_H
  12122. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  12123. + */
  12124. +#undef LT_OBJDIR
  12125. +
  12126. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  12127. */
  12128. #undef MAJOR_IN_MKDEV
  12129. @@ -197,6 +201,9 @@
  12130. /* Define to the one symbol short name of this package. */
  12131. #undef PACKAGE_TARNAME
  12132. +/* Define to the home page for this package. */
  12133. +#undef PACKAGE_URL
  12134. +
  12135. /* Define to the version of this package. */
  12136. #undef PACKAGE_VERSION
  12137. @@ -209,23 +216,50 @@
  12138. /* Define to 1 if your <sys/time.h> declares `struct tm'. */
  12139. #undef TM_IN_SYS_TIME
  12140. +/* Enable extensions on AIX 3, Interix. */
  12141. +#ifndef _ALL_SOURCE
  12142. +# undef _ALL_SOURCE
  12143. +#endif
  12144. +/* Enable GNU extensions on systems that have them. */
  12145. +#ifndef _GNU_SOURCE
  12146. +# undef _GNU_SOURCE
  12147. +#endif
  12148. +/* Enable threading extensions on Solaris. */
  12149. +#ifndef _POSIX_PTHREAD_SEMANTICS
  12150. +# undef _POSIX_PTHREAD_SEMANTICS
  12151. +#endif
  12152. +/* Enable extensions on HP NonStop. */
  12153. +#ifndef _TANDEM_SOURCE
  12154. +# undef _TANDEM_SOURCE
  12155. +#endif
  12156. +/* Enable general extensions on Solaris. */
  12157. +#ifndef __EXTENSIONS__
  12158. +# undef __EXTENSIONS__
  12159. +#endif
  12160. +
  12161. +
  12162. /* Version number of package */
  12163. #undef VERSION
  12164. /* Number of bits in a file offset, on hosts where this is settable. */
  12165. #undef _FILE_OFFSET_BITS
  12166. -/* Enable GNU extensions on systems that have them. */
  12167. -#ifndef _GNU_SOURCE
  12168. -# undef _GNU_SOURCE
  12169. -#endif
  12170. -
  12171. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  12172. #undef _LARGEFILE_SOURCE
  12173. /* Define for large files, on AIX-style hosts. */
  12174. #undef _LARGE_FILES
  12175. +/* Define to 1 if on MINIX. */
  12176. +#undef _MINIX
  12177. +
  12178. +/* Define to 2 if the system does not provide POSIX.1 features except with
  12179. + this defined. */
  12180. +#undef _POSIX_1_SOURCE
  12181. +
  12182. +/* Define to 1 if you need to in order for `stat' and other things to work. */
  12183. +#undef _POSIX_SOURCE
  12184. +
  12185. /* Define to empty if `const' does not conform to ANSI C. */
  12186. #undef const
  12187. diff -Nur file-5.04.orig/config.h.in~ file-5.04/config.h.in~
  12188. --- file-5.04.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  12189. +++ file-5.04/config.h.in~ 2011-02-24 20:16:22.853556426 +0100
  12190. @@ -0,0 +1,302 @@
  12191. +/* config.h.in. Generated from configure.ac by autoheader. */
  12192. +
  12193. +/* Define in built-in ELF support is used */
  12194. +#undef BUILTIN_ELF
  12195. +
  12196. +/* Define for ELF core file support */
  12197. +#undef ELFCORE
  12198. +
  12199. +/* Define to 1 if you have the `asprintf' function. */
  12200. +#undef HAVE_ASPRINTF
  12201. +
  12202. +/* HAVE_DAYLIGHT */
  12203. +#undef HAVE_DAYLIGHT
  12204. +
  12205. +/* Define to 1 if you have the <dlfcn.h> header file. */
  12206. +#undef HAVE_DLFCN_H
  12207. +
  12208. +/* Define to 1 if you have the <err.h> header file. */
  12209. +#undef HAVE_ERR_H
  12210. +
  12211. +/* Define to 1 if you have the <fcntl.h> header file. */
  12212. +#undef HAVE_FCNTL_H
  12213. +
  12214. +/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  12215. +#undef HAVE_FSEEKO
  12216. +
  12217. +/* Define to 1 if you have the <getopt.h> header file. */
  12218. +#undef HAVE_GETOPT_H
  12219. +
  12220. +/* Define to 1 if you have the `getopt_long' function. */
  12221. +#undef HAVE_GETOPT_LONG
  12222. +
  12223. +/* Define to 1 if the system has the type `int32_t'. */
  12224. +#undef HAVE_INT32_T
  12225. +
  12226. +/* Define to 1 if the system has the type `int64_t'. */
  12227. +#undef HAVE_INT64_T
  12228. +
  12229. +/* Define to 1 if you have the <inttypes.h> header file. */
  12230. +#undef HAVE_INTTYPES_H
  12231. +
  12232. +/* Define to 1 if you have the `z' library (-lz). */
  12233. +#undef HAVE_LIBZ
  12234. +
  12235. +/* Define to 1 if you have the <limits.h> header file. */
  12236. +#undef HAVE_LIMITS_H
  12237. +
  12238. +/* Define to 1 if you have the <locale.h> header file. */
  12239. +#undef HAVE_LOCALE_H
  12240. +
  12241. +/* Define to 1 if you have the `mbrtowc' function. */
  12242. +#undef HAVE_MBRTOWC
  12243. +
  12244. +/* Define to 1 if <wchar.h> declares mbstate_t. */
  12245. +#undef HAVE_MBSTATE_T
  12246. +
  12247. +/* Define to 1 if you have the <memory.h> header file. */
  12248. +#undef HAVE_MEMORY_H
  12249. +
  12250. +/* Define to 1 if you have the `mkstemp' function. */
  12251. +#undef HAVE_MKSTEMP
  12252. +
  12253. +/* Define to 1 if you have the `mmap' function. */
  12254. +#undef HAVE_MMAP
  12255. +
  12256. +/* Define to 1 if you have the <stdint.h> header file. */
  12257. +#undef HAVE_STDINT_H
  12258. +
  12259. +/* Define to 1 if you have the <stdlib.h> header file. */
  12260. +#undef HAVE_STDLIB_H
  12261. +
  12262. +/* Define to 1 if you have the `strerror' function. */
  12263. +#undef HAVE_STRERROR
  12264. +
  12265. +/* Define to 1 if you have the <strings.h> header file. */
  12266. +#undef HAVE_STRINGS_H
  12267. +
  12268. +/* Define to 1 if you have the <string.h> header file. */
  12269. +#undef HAVE_STRING_H
  12270. +
  12271. +/* Define to 1 if you have the `strlcat' function. */
  12272. +#undef HAVE_STRLCAT
  12273. +
  12274. +/* Define to 1 if you have the `strlcpy' function. */
  12275. +#undef HAVE_STRLCPY
  12276. +
  12277. +/* Define to 1 if you have the `strndup' function. */
  12278. +#undef HAVE_STRNDUP
  12279. +
  12280. +/* Define to 1 if you have the `strtof' function. */
  12281. +#undef HAVE_STRTOF
  12282. +
  12283. +/* Define to 1 if you have the `strtoul' function. */
  12284. +#undef HAVE_STRTOUL
  12285. +
  12286. +/* HAVE_STRUCT_OPTION */
  12287. +#undef HAVE_STRUCT_OPTION
  12288. +
  12289. +/* Define to 1 if `st_rdev' is a member of `struct stat'. */
  12290. +#undef HAVE_STRUCT_STAT_ST_RDEV
  12291. +
  12292. +/* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  12293. +#undef HAVE_STRUCT_TM_TM_GMTOFF
  12294. +
  12295. +/* Define to 1 if `tm_zone' is a member of `struct tm'. */
  12296. +#undef HAVE_STRUCT_TM_TM_ZONE
  12297. +
  12298. +/* Define to 1 if you have the <sys/mman.h> header file. */
  12299. +#undef HAVE_SYS_MMAN_H
  12300. +
  12301. +/* Define to 1 if you have the <sys/stat.h> header file. */
  12302. +#undef HAVE_SYS_STAT_H
  12303. +
  12304. +/* Define to 1 if you have the <sys/time.h> header file. */
  12305. +#undef HAVE_SYS_TIME_H
  12306. +
  12307. +/* Define to 1 if you have the <sys/types.h> header file. */
  12308. +#undef HAVE_SYS_TYPES_H
  12309. +
  12310. +/* Define to 1 if you have the <sys/utime.h> header file. */
  12311. +#undef HAVE_SYS_UTIME_H
  12312. +
  12313. +/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  12314. +#undef HAVE_SYS_WAIT_H
  12315. +
  12316. +/* HAVE_TM_ISDST */
  12317. +#undef HAVE_TM_ISDST
  12318. +
  12319. +/* HAVE_TM_ZONE */
  12320. +#undef HAVE_TM_ZONE
  12321. +
  12322. +/* HAVE_TZNAME */
  12323. +#undef HAVE_TZNAME
  12324. +
  12325. +/* Define to 1 if the system has the type `uint16_t'. */
  12326. +#undef HAVE_UINT16_T
  12327. +
  12328. +/* Define to 1 if the system has the type `uint32_t'. */
  12329. +#undef HAVE_UINT32_T
  12330. +
  12331. +/* Define to 1 if the system has the type `uint64_t'. */
  12332. +#undef HAVE_UINT64_T
  12333. +
  12334. +/* Define to 1 if the system has the type `uint8_t'. */
  12335. +#undef HAVE_UINT8_T
  12336. +
  12337. +/* Define to 1 if you have the <unistd.h> header file. */
  12338. +#undef HAVE_UNISTD_H
  12339. +
  12340. +/* Define to 1 if you have the `utime' function. */
  12341. +#undef HAVE_UTIME
  12342. +
  12343. +/* Define to 1 if you have the `utimes' function. */
  12344. +#undef HAVE_UTIMES
  12345. +
  12346. +/* Define to 1 if you have the <utime.h> header file. */
  12347. +#undef HAVE_UTIME_H
  12348. +
  12349. +/* Define to 1 if you have the `vasprintf' function. */
  12350. +#undef HAVE_VASPRINTF
  12351. +
  12352. +/* Define to 1 if you have the <wchar.h> header file. */
  12353. +#undef HAVE_WCHAR_H
  12354. +
  12355. +/* Define to 1 if you have the <wctype.h> header file. */
  12356. +#undef HAVE_WCTYPE_H
  12357. +
  12358. +/* Define to 1 if you have the `wcwidth' function. */
  12359. +#undef HAVE_WCWIDTH
  12360. +
  12361. +/* Define to 1 if you have the <zlib.h> header file. */
  12362. +#undef HAVE_ZLIB_H
  12363. +
  12364. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  12365. + */
  12366. +#undef LT_OBJDIR
  12367. +
  12368. +/* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  12369. + */
  12370. +#undef MAJOR_IN_MKDEV
  12371. +
  12372. +/* Define to 1 if `major', `minor', and `makedev' are declared in
  12373. + <sysmacros.h>. */
  12374. +#undef MAJOR_IN_SYSMACROS
  12375. +
  12376. +/* Define to 1 if your C compiler doesn't accept -c and -o together. */
  12377. +#undef NO_MINUS_C_MINUS_O
  12378. +
  12379. +/* Name of package */
  12380. +#undef PACKAGE
  12381. +
  12382. +/* Define to the address where bug reports for this package should be sent. */
  12383. +#undef PACKAGE_BUGREPORT
  12384. +
  12385. +/* Define to the full name of this package. */
  12386. +#undef PACKAGE_NAME
  12387. +
  12388. +/* Define to the full name and version of this package. */
  12389. +#undef PACKAGE_STRING
  12390. +
  12391. +/* Define to the one symbol short name of this package. */
  12392. +#undef PACKAGE_TARNAME
  12393. +
  12394. +/* Define to the home page for this package. */
  12395. +#undef PACKAGE_URL
  12396. +
  12397. +/* Define to the version of this package. */
  12398. +#undef PACKAGE_VERSION
  12399. +
  12400. +/* The size of `long long', as computed by sizeof. */
  12401. +#undef SIZEOF_LONG_LONG
  12402. +
  12403. +/* Define to 1 if you have the ANSI C header files. */
  12404. +#undef STDC_HEADERS
  12405. +
  12406. +/* Define to 1 if your <sys/time.h> declares `struct tm'. */
  12407. +#undef TM_IN_SYS_TIME
  12408. +
  12409. +/* Enable extensions on AIX 3, Interix. */
  12410. +#ifndef _ALL_SOURCE
  12411. +# undef _ALL_SOURCE
  12412. +#endif
  12413. +/* Enable GNU extensions on systems that have them. */
  12414. +#ifndef _GNU_SOURCE
  12415. +# undef _GNU_SOURCE
  12416. +#endif
  12417. +/* Enable threading extensions on Solaris. */
  12418. +#ifndef _POSIX_PTHREAD_SEMANTICS
  12419. +# undef _POSIX_PTHREAD_SEMANTICS
  12420. +#endif
  12421. +/* Enable extensions on HP NonStop. */
  12422. +#ifndef _TANDEM_SOURCE
  12423. +# undef _TANDEM_SOURCE
  12424. +#endif
  12425. +/* Enable general extensions on Solaris. */
  12426. +#ifndef __EXTENSIONS__
  12427. +# undef __EXTENSIONS__
  12428. +#endif
  12429. +
  12430. +
  12431. +/* Version number of package */
  12432. +#undef VERSION
  12433. +
  12434. +/* Number of bits in a file offset, on hosts where this is settable. */
  12435. +#undef _FILE_OFFSET_BITS
  12436. +
  12437. +/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  12438. +#undef _LARGEFILE_SOURCE
  12439. +
  12440. +/* Define for large files, on AIX-style hosts. */
  12441. +#undef _LARGE_FILES
  12442. +
  12443. +/* Define to 1 if on MINIX. */
  12444. +#undef _MINIX
  12445. +
  12446. +/* Define to 2 if the system does not provide POSIX.1 features except with
  12447. + this defined. */
  12448. +#undef _POSIX_1_SOURCE
  12449. +
  12450. +/* Define to 1 if you need to in order for `stat' and other things to work. */
  12451. +#undef _POSIX_SOURCE
  12452. +
  12453. +/* Define to empty if `const' does not conform to ANSI C. */
  12454. +#undef const
  12455. +
  12456. +/* Define to a type if <wchar.h> does not define. */
  12457. +#undef mbstate_t
  12458. +
  12459. +/* Define to `long int' if <sys/types.h> does not define. */
  12460. +#undef off_t
  12461. +
  12462. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  12463. +#undef size_t
  12464. +
  12465. +
  12466. +#ifndef HAVE_UINT8_T
  12467. +typedef unsigned char uint8_t;
  12468. +#endif
  12469. +#ifndef HAVE_UINT16_T
  12470. +typedef unsigned short uint16_t;
  12471. +#endif
  12472. +#ifndef HAVE_UINT32_T
  12473. +typedef unsigned int uint32_t;
  12474. +#endif
  12475. +#ifndef HAVE_INT32_T
  12476. +typedef int int32_t;
  12477. +#endif
  12478. +#ifndef HAVE_UINT64_T
  12479. +#if SIZEOF_LONG_LONG == 8
  12480. +typedef unsigned long long uint64_t;
  12481. +#else
  12482. +typedef unsigned long uint64_t;
  12483. +#endif
  12484. +#endif
  12485. +#ifndef HAVE_INT64_T
  12486. +#if SIZEOF_LONG_LONG == 8
  12487. +typedef long long int64_t;
  12488. +#else
  12489. +typedef long int64_t;
  12490. +#endif
  12491. +#endif
  12492. +
  12493. diff -Nur file-5.04.orig/config.sub file-5.04/config.sub
  12494. --- file-5.04.orig/config.sub 2010-01-22 22:09:34.000000000 +0100
  12495. +++ file-5.04/config.sub 2011-02-24 20:54:42.054813774 +0100
  12496. @@ -1,13 +1,10 @@
  12497. #! /bin/sh
  12498. -#
  12499. -# $NetBSD: config.sub,v 1.8 2006/10/29 23:52:55 wiz Exp $
  12500. -#
  12501. # Configuration validation subroutine script.
  12502. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  12503. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  12504. -# Inc.
  12505. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  12506. +# Free Software Foundation, Inc.
  12507. -timestamp='2006-09-20'
  12508. +timestamp='2009-06-11'
  12509. # This file is (in principle) common to ALL GNU software.
  12510. # The presence of a machine in this file suggests that SOME GNU software
  12511. @@ -75,8 +72,8 @@
  12512. version="\
  12513. GNU config.sub ($timestamp)
  12514. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  12515. -Free Software Foundation, Inc.
  12516. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  12517. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12518. This is free software; see the source for copying conditions. There is NO
  12519. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  12520. @@ -125,6 +122,7 @@
  12521. case $maybe_os in
  12522. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  12523. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  12524. + kopensolaris*-gnu* | \
  12525. storm-chaos* | os2-emx* | rtmk-nova*)
  12526. os=-$maybe_os
  12527. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  12528. @@ -155,6 +153,9 @@
  12529. os=
  12530. basic_machine=$1
  12531. ;;
  12532. + -bluegene*)
  12533. + os=-cnk
  12534. + ;;
  12535. -sim | -cisco | -oki | -wec | -winbond)
  12536. os=
  12537. basic_machine=$1
  12538. @@ -248,17 +249,20 @@
  12539. | bfin \
  12540. | c4x | clipper \
  12541. | d10v | d30v | dlx | dsp16xx \
  12542. - | fr30 | frv \
  12543. + | fido | fr30 | frv \
  12544. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  12545. | i370 | i860 | i960 | ia64 \
  12546. | ip2k | iq2000 \
  12547. + | lm32 \
  12548. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  12549. - | maxq | mb | microblaze | mcore \
  12550. + | maxq | mb | microblaze | mcore | mep | metag \
  12551. | mips | mipsbe | mipseb | mipsel | mipsle \
  12552. | mips16 \
  12553. | mips64 | mips64el \
  12554. - | mips64vr | mips64vrel \
  12555. + | mips64octeon | mips64octeonel \
  12556. | mips64orion | mips64orionel \
  12557. + | mips64r5900 | mips64r5900el \
  12558. + | mips64vr | mips64vrel \
  12559. | mips64vr4100 | mips64vr4100el \
  12560. | mips64vr4300 | mips64vr4300el \
  12561. | mips64vr5000 | mips64vr5000el \
  12562. @@ -271,6 +275,7 @@
  12563. | mipsisa64sr71k | mipsisa64sr71kel \
  12564. | mipstx39 | mipstx39el \
  12565. | mn10200 | mn10300 \
  12566. + | moxie \
  12567. | mt \
  12568. | msp430 \
  12569. | nios | nios2 \
  12570. @@ -280,7 +285,7 @@
  12571. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  12572. | pyramid \
  12573. | score \
  12574. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  12575. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  12576. | sh64 | sh64le \
  12577. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  12578. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  12579. @@ -289,7 +294,7 @@
  12580. | v850 | v850e \
  12581. | we32k \
  12582. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  12583. - | z8k)
  12584. + | z8k | z80)
  12585. basic_machine=$basic_machine-unknown
  12586. ;;
  12587. m6811 | m68hc11 | m6812 | m68hc12)
  12588. @@ -327,19 +332,22 @@
  12589. | clipper-* | craynv-* | cydra-* \
  12590. | d10v-* | d30v-* | dlx-* \
  12591. | elxsi-* \
  12592. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  12593. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  12594. | h8300-* | h8500-* \
  12595. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  12596. | i*86-* | i860-* | i960-* | ia64-* \
  12597. | ip2k-* | iq2000-* \
  12598. + | lm32-* \
  12599. | m32c-* | m32r-* | m32rle-* \
  12600. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  12601. - | m88110-* | m88k-* | maxq-* | mcore-* \
  12602. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  12603. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  12604. | mips16-* \
  12605. | mips64-* | mips64el-* \
  12606. - | mips64vr-* | mips64vrel-* \
  12607. + | mips64octeon-* | mips64octeonel-* \
  12608. | mips64orion-* | mips64orionel-* \
  12609. + | mips64r5900-* | mips64r5900el-* \
  12610. + | mips64vr-* | mips64vrel-* \
  12611. | mips64vr4100-* | mips64vr4100el-* \
  12612. | mips64vr4300-* | mips64vr4300el-* \
  12613. | mips64vr5000-* | mips64vr5000el-* \
  12614. @@ -361,20 +369,24 @@
  12615. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  12616. | pyramid-* \
  12617. | romp-* | rs6000-* \
  12618. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  12619. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  12620. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  12621. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  12622. | sparclite-* \
  12623. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  12624. | tahoe-* | thumb-* \
  12625. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  12626. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  12627. | tron-* \
  12628. | v850-* | v850e-* | vax-* \
  12629. | we32k-* \
  12630. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  12631. - | xstormy16-* | xtensa-* \
  12632. + | xstormy16-* | xtensa*-* \
  12633. | ymp-* \
  12634. - | z8k-*)
  12635. + | z8k-* | z80-*)
  12636. + ;;
  12637. + # Recognize the basic CPU types without company name, with glob match.
  12638. + xtensa*)
  12639. + basic_machine=$basic_machine-unknown
  12640. ;;
  12641. # Recognize the various machine names and aliases which stand
  12642. # for a CPU type and a company and sometimes even an OS.
  12643. @@ -438,6 +450,10 @@
  12644. basic_machine=m68k-apollo
  12645. os=-bsd
  12646. ;;
  12647. + aros)
  12648. + basic_machine=i386-pc
  12649. + os=-aros
  12650. + ;;
  12651. aux)
  12652. basic_machine=m68k-apple
  12653. os=-aux
  12654. @@ -446,10 +462,26 @@
  12655. basic_machine=ns32k-sequent
  12656. os=-dynix
  12657. ;;
  12658. + blackfin)
  12659. + basic_machine=bfin-unknown
  12660. + os=-linux
  12661. + ;;
  12662. + blackfin-*)
  12663. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  12664. + os=-linux
  12665. + ;;
  12666. + bluegene*)
  12667. + basic_machine=powerpc-ibm
  12668. + os=-cnk
  12669. + ;;
  12670. c90)
  12671. basic_machine=c90-cray
  12672. os=-unicos
  12673. ;;
  12674. + cegcc)
  12675. + basic_machine=arm-unknown
  12676. + os=-cegcc
  12677. + ;;
  12678. convex-c1)
  12679. basic_machine=c1-convex
  12680. os=-bsd
  12681. @@ -478,8 +510,8 @@
  12682. basic_machine=craynv-cray
  12683. os=-unicosmp
  12684. ;;
  12685. - cr16c)
  12686. - basic_machine=cr16c-unknown
  12687. + cr16)
  12688. + basic_machine=cr16-unknown
  12689. os=-elf
  12690. ;;
  12691. crds | unos)
  12692. @@ -517,6 +549,10 @@
  12693. basic_machine=m88k-motorola
  12694. os=-sysv3
  12695. ;;
  12696. + dicos)
  12697. + basic_machine=i686-pc
  12698. + os=-dicos
  12699. + ;;
  12700. djgpp)
  12701. basic_machine=i586-pc
  12702. os=-msdosdjgpp
  12703. @@ -671,6 +707,14 @@
  12704. basic_machine=m68k-isi
  12705. os=-sysv
  12706. ;;
  12707. + m68knommu)
  12708. + basic_machine=m68k-unknown
  12709. + os=-linux
  12710. + ;;
  12711. + m68knommu-*)
  12712. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  12713. + os=-linux
  12714. + ;;
  12715. m88k-omron*)
  12716. basic_machine=m88k-omron
  12717. ;;
  12718. @@ -686,6 +730,10 @@
  12719. basic_machine=i386-pc
  12720. os=-mingw32
  12721. ;;
  12722. + mingw32ce)
  12723. + basic_machine=arm-unknown
  12724. + os=-mingw32ce
  12725. + ;;
  12726. miniframe)
  12727. basic_machine=m68000-convergent
  12728. ;;
  12729. @@ -812,6 +860,14 @@
  12730. basic_machine=i860-intel
  12731. os=-osf
  12732. ;;
  12733. + parisc)
  12734. + basic_machine=hppa-unknown
  12735. + os=-linux
  12736. + ;;
  12737. + parisc-*)
  12738. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  12739. + os=-linux
  12740. + ;;
  12741. pbd)
  12742. basic_machine=sparc-tti
  12743. ;;
  12744. @@ -1020,6 +1076,10 @@
  12745. basic_machine=tic6x-unknown
  12746. os=-coff
  12747. ;;
  12748. + tile*)
  12749. + basic_machine=tile-unknown
  12750. + os=-linux-gnu
  12751. + ;;
  12752. tx39)
  12753. basic_machine=mipstx39-unknown
  12754. ;;
  12755. @@ -1095,6 +1155,10 @@
  12756. basic_machine=z8k-unknown
  12757. os=-sim
  12758. ;;
  12759. + z80-*-coff)
  12760. + basic_machine=z80-unknown
  12761. + os=-sim
  12762. + ;;
  12763. none)
  12764. basic_machine=none-none
  12765. os=-none
  12766. @@ -1133,7 +1197,7 @@
  12767. we32k)
  12768. basic_machine=we32k-att
  12769. ;;
  12770. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  12771. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  12772. basic_machine=sh-unknown
  12773. ;;
  12774. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  12775. @@ -1203,10 +1267,11 @@
  12776. # Each alternative MUST END IN A *, to match a version number.
  12777. # -sysv* is not here because it comes later, after sysvr4.
  12778. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  12779. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  12780. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  12781. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  12782. + | -kopensolaris* \
  12783. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  12784. - | -aos* \
  12785. + | -aos* | -aros* \
  12786. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  12787. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  12788. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  12789. @@ -1215,7 +1280,7 @@
  12790. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  12791. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  12792. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  12793. - | -chorusos* | -chorusrdb* \
  12794. + | -chorusos* | -chorusrdb* | -cegcc* \
  12795. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  12796. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  12797. | -uxpv* | -beos* | -mpeix* | -udk* \
  12798. @@ -1225,7 +1290,7 @@
  12799. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  12800. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  12801. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  12802. - | -skyos* | -haiku* | -rdos* | -toppers*)
  12803. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  12804. # Remember, each alternative MUST END IN *, to match a version number.
  12805. ;;
  12806. -qnx*)
  12807. @@ -1355,6 +1420,9 @@
  12808. -zvmoe)
  12809. os=-zvmoe
  12810. ;;
  12811. + -dicos*)
  12812. + os=-dicos
  12813. + ;;
  12814. -none)
  12815. ;;
  12816. *)
  12817. @@ -1420,6 +1488,9 @@
  12818. m68*-cisco)
  12819. os=-aout
  12820. ;;
  12821. + mep-*)
  12822. + os=-elf
  12823. + ;;
  12824. mips*-cisco)
  12825. os=-elf
  12826. ;;
  12827. @@ -1549,7 +1620,7 @@
  12828. -sunos*)
  12829. vendor=sun
  12830. ;;
  12831. - -aix*)
  12832. + -cnk*|-aix*)
  12833. vendor=ibm
  12834. ;;
  12835. -beos*)
  12836. diff -Nur file-5.04.orig/configure file-5.04/configure
  12837. --- file-5.04.orig/configure 2010-01-22 22:09:26.000000000 +0100
  12838. +++ file-5.04/configure 2011-02-24 20:54:40.843551208 +0100
  12839. @@ -1,62 +1,85 @@
  12840. #! /bin/sh
  12841. # Guess values for system-dependent variables and create Makefiles.
  12842. -# Generated by GNU Autoconf 2.61 for file 5.04.
  12843. +# Generated by GNU Autoconf 2.65 for file 5.04.
  12844. #
  12845. # Report bugs to <christos@astron.com>.
  12846. #
  12847. +#
  12848. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  12849. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  12850. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  12851. +# Inc.
  12852. +#
  12853. +#
  12854. # This configure script is free software; the Free Software Foundation
  12855. # gives unlimited permission to copy, distribute and modify it.
  12856. -## --------------------- ##
  12857. -## M4sh Initialization. ##
  12858. -## --------------------- ##
  12859. +## -------------------- ##
  12860. +## M4sh Initialization. ##
  12861. +## -------------------- ##
  12862. # Be more Bourne compatible
  12863. DUALCASE=1; export DUALCASE # for MKS sh
  12864. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12865. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12866. emulate sh
  12867. NULLCMD=:
  12868. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12869. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12870. # is contrary to our usage. Disable this feature.
  12871. alias -g '${1+"$@"}'='"$@"'
  12872. setopt NO_GLOB_SUBST
  12873. else
  12874. - case `(set -o) 2>/dev/null` in
  12875. - *posix*) set -o posix ;;
  12876. + case `(set -o) 2>/dev/null` in #(
  12877. + *posix*) :
  12878. + set -o posix ;; #(
  12879. + *) :
  12880. + ;;
  12881. esac
  12882. -
  12883. fi
  12884. -
  12885. -
  12886. -# PATH needs CR
  12887. -# Avoid depending upon Character Ranges.
  12888. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12889. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12890. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12891. -as_cr_digits='0123456789'
  12892. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  12893. -
  12894. -# The user is always right.
  12895. -if test "${PATH_SEPARATOR+set}" != set; then
  12896. - echo "#! /bin/sh" >conf$$.sh
  12897. - echo "exit 0" >>conf$$.sh
  12898. - chmod +x conf$$.sh
  12899. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12900. - PATH_SEPARATOR=';'
  12901. - else
  12902. - PATH_SEPARATOR=:
  12903. +as_nl='
  12904. +'
  12905. +export as_nl
  12906. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  12907. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12908. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12909. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12910. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  12911. +# but without wasting forks for bash or zsh.
  12912. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  12913. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12914. + as_echo='print -r --'
  12915. + as_echo_n='print -rn --'
  12916. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12917. + as_echo='printf %s\n'
  12918. + as_echo_n='printf %s'
  12919. +else
  12920. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12921. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12922. + as_echo_n='/usr/ucb/echo -n'
  12923. + else
  12924. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12925. + as_echo_n_body='eval
  12926. + arg=$1;
  12927. + case $arg in #(
  12928. + *"$as_nl"*)
  12929. + expr "X$arg" : "X\\(.*\\)$as_nl";
  12930. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12931. + esac;
  12932. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12933. + '
  12934. + export as_echo_n_body
  12935. + as_echo_n='sh -c $as_echo_n_body as_echo'
  12936. fi
  12937. - rm -f conf$$.sh
  12938. + export as_echo_body
  12939. + as_echo='sh -c $as_echo_body as_echo'
  12940. fi
  12941. -# Support unset when possible.
  12942. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12943. - as_unset=unset
  12944. -else
  12945. - as_unset=false
  12946. +# The user is always right.
  12947. +if test "${PATH_SEPARATOR+set}" != set; then
  12948. + PATH_SEPARATOR=:
  12949. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12950. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12951. + PATH_SEPARATOR=';'
  12952. + }
  12953. fi
  12954. @@ -65,20 +88,18 @@
  12955. # there to prevent editors from complaining about space-tab.
  12956. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12957. # splitting by setting IFS to empty value.)
  12958. -as_nl='
  12959. -'
  12960. IFS=" "" $as_nl"
  12961. # Find who we are. Look in the path if we contain no directory separator.
  12962. -case $0 in
  12963. +case $0 in #((
  12964. *[\\/]* ) as_myself=$0 ;;
  12965. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12966. for as_dir in $PATH
  12967. do
  12968. IFS=$as_save_IFS
  12969. test -z "$as_dir" && as_dir=.
  12970. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12971. -done
  12972. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12973. + done
  12974. IFS=$as_save_IFS
  12975. ;;
  12976. @@ -89,32 +110,271 @@
  12977. as_myself=$0
  12978. fi
  12979. if test ! -f "$as_myself"; then
  12980. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12981. - { (exit 1); exit 1; }
  12982. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12983. + exit 1
  12984. fi
  12985. -# Work around bugs in pre-3.0 UWIN ksh.
  12986. -for as_var in ENV MAIL MAILPATH
  12987. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12988. +# Unset variables that we do not need and which cause bugs (e.g. in
  12989. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12990. +# suppresses any "Segmentation fault" message there. '((' could
  12991. +# trigger a bug in pdksh 5.2.14.
  12992. +for as_var in BASH_ENV ENV MAIL MAILPATH
  12993. +do eval test x\${$as_var+set} = xset \
  12994. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12995. done
  12996. PS1='$ '
  12997. PS2='> '
  12998. PS4='+ '
  12999. # NLS nuisances.
  13000. -for as_var in \
  13001. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  13002. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  13003. - LC_TELEPHONE LC_TIME
  13004. +LC_ALL=C
  13005. +export LC_ALL
  13006. +LANGUAGE=C
  13007. +export LANGUAGE
  13008. +
  13009. +# CDPATH.
  13010. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13011. +
  13012. +if test "x$CONFIG_SHELL" = x; then
  13013. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  13014. + emulate sh
  13015. + NULLCMD=:
  13016. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  13017. + # is contrary to our usage. Disable this feature.
  13018. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  13019. + setopt NO_GLOB_SUBST
  13020. +else
  13021. + case \`(set -o) 2>/dev/null\` in #(
  13022. + *posix*) :
  13023. + set -o posix ;; #(
  13024. + *) :
  13025. + ;;
  13026. +esac
  13027. +fi
  13028. +"
  13029. + as_required="as_fn_return () { (exit \$1); }
  13030. +as_fn_success () { as_fn_return 0; }
  13031. +as_fn_failure () { as_fn_return 1; }
  13032. +as_fn_ret_success () { return 0; }
  13033. +as_fn_ret_failure () { return 1; }
  13034. +
  13035. +exitcode=0
  13036. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  13037. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  13038. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  13039. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  13040. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  13041. +
  13042. +else
  13043. + exitcode=1; echo positional parameters were not saved.
  13044. +fi
  13045. +test x\$exitcode = x0 || exit 1"
  13046. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  13047. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  13048. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  13049. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  13050. +test \$(( 1 + 1 )) = 2 || exit 1"
  13051. + if (eval "$as_required") 2>/dev/null; then :
  13052. + as_have_required=yes
  13053. +else
  13054. + as_have_required=no
  13055. +fi
  13056. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  13057. +
  13058. +else
  13059. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13060. +as_found=false
  13061. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  13062. do
  13063. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  13064. - eval $as_var=C; export $as_var
  13065. - else
  13066. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  13067. - fi
  13068. + IFS=$as_save_IFS
  13069. + test -z "$as_dir" && as_dir=.
  13070. + as_found=:
  13071. + case $as_dir in #(
  13072. + /*)
  13073. + for as_base in sh bash ksh sh5; do
  13074. + # Try only shells that exist, to save several forks.
  13075. + as_shell=$as_dir/$as_base
  13076. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  13077. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  13078. + CONFIG_SHELL=$as_shell as_have_required=yes
  13079. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  13080. + break 2
  13081. +fi
  13082. +fi
  13083. + done;;
  13084. + esac
  13085. + as_found=false
  13086. done
  13087. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  13088. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  13089. + CONFIG_SHELL=$SHELL as_have_required=yes
  13090. +fi; }
  13091. +IFS=$as_save_IFS
  13092. +
  13093. +
  13094. + if test "x$CONFIG_SHELL" != x; then :
  13095. + # We cannot yet assume a decent shell, so we have to provide a
  13096. + # neutralization value for shells without unset; and this also
  13097. + # works around shells that cannot unset nonexistent variables.
  13098. + BASH_ENV=/dev/null
  13099. + ENV=/dev/null
  13100. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  13101. + export CONFIG_SHELL
  13102. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  13103. +fi
  13104. +
  13105. + if test x$as_have_required = xno; then :
  13106. + $as_echo "$0: This script requires a shell more modern than all"
  13107. + $as_echo "$0: the shells that I found on your system."
  13108. + if test x${ZSH_VERSION+set} = xset ; then
  13109. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  13110. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  13111. + else
  13112. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  13113. +$0: christos@astron.com about your system, including any
  13114. +$0: error possibly output before this message. Then install
  13115. +$0: a modern shell, or manually run the script under such a
  13116. +$0: shell if you do have one."
  13117. + fi
  13118. + exit 1
  13119. +fi
  13120. +fi
  13121. +fi
  13122. +SHELL=${CONFIG_SHELL-/bin/sh}
  13123. +export SHELL
  13124. +# Unset more variables known to interfere with behavior of common tools.
  13125. +CLICOLOR_FORCE= GREP_OPTIONS=
  13126. +unset CLICOLOR_FORCE GREP_OPTIONS
  13127. +
  13128. +## --------------------- ##
  13129. +## M4sh Shell Functions. ##
  13130. +## --------------------- ##
  13131. +# as_fn_unset VAR
  13132. +# ---------------
  13133. +# Portably unset VAR.
  13134. +as_fn_unset ()
  13135. +{
  13136. + { eval $1=; unset $1;}
  13137. +}
  13138. +as_unset=as_fn_unset
  13139. +
  13140. +# as_fn_set_status STATUS
  13141. +# -----------------------
  13142. +# Set $? to STATUS, without forking.
  13143. +as_fn_set_status ()
  13144. +{
  13145. + return $1
  13146. +} # as_fn_set_status
  13147. +
  13148. +# as_fn_exit STATUS
  13149. +# -----------------
  13150. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13151. +as_fn_exit ()
  13152. +{
  13153. + set +e
  13154. + as_fn_set_status $1
  13155. + exit $1
  13156. +} # as_fn_exit
  13157. +
  13158. +# as_fn_mkdir_p
  13159. +# -------------
  13160. +# Create "$as_dir" as a directory, including parents if necessary.
  13161. +as_fn_mkdir_p ()
  13162. +{
  13163. +
  13164. + case $as_dir in #(
  13165. + -*) as_dir=./$as_dir;;
  13166. + esac
  13167. + test -d "$as_dir" || eval $as_mkdir_p || {
  13168. + as_dirs=
  13169. + while :; do
  13170. + case $as_dir in #(
  13171. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13172. + *) as_qdir=$as_dir;;
  13173. + esac
  13174. + as_dirs="'$as_qdir' $as_dirs"
  13175. + as_dir=`$as_dirname -- "$as_dir" ||
  13176. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13177. + X"$as_dir" : 'X\(//\)[^/]' \| \
  13178. + X"$as_dir" : 'X\(//\)$' \| \
  13179. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13180. +$as_echo X"$as_dir" |
  13181. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13182. + s//\1/
  13183. + q
  13184. + }
  13185. + /^X\(\/\/\)[^/].*/{
  13186. + s//\1/
  13187. + q
  13188. + }
  13189. + /^X\(\/\/\)$/{
  13190. + s//\1/
  13191. + q
  13192. + }
  13193. + /^X\(\/\).*/{
  13194. + s//\1/
  13195. + q
  13196. + }
  13197. + s/.*/./; q'`
  13198. + test -d "$as_dir" && break
  13199. + done
  13200. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  13201. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13202. +
  13203. +
  13204. +} # as_fn_mkdir_p
  13205. +# as_fn_append VAR VALUE
  13206. +# ----------------------
  13207. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  13208. +# advantage of any shell optimizations that allow amortized linear growth over
  13209. +# repeated appends, instead of the typical quadratic growth present in naive
  13210. +# implementations.
  13211. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13212. + eval 'as_fn_append ()
  13213. + {
  13214. + eval $1+=\$2
  13215. + }'
  13216. +else
  13217. + as_fn_append ()
  13218. + {
  13219. + eval $1=\$$1\$2
  13220. + }
  13221. +fi # as_fn_append
  13222. +
  13223. +# as_fn_arith ARG...
  13224. +# ------------------
  13225. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  13226. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  13227. +# must be portable across $(()) and expr.
  13228. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13229. + eval 'as_fn_arith ()
  13230. + {
  13231. + as_val=$(( $* ))
  13232. + }'
  13233. +else
  13234. + as_fn_arith ()
  13235. + {
  13236. + as_val=`expr "$@" || test $? -eq 1`
  13237. + }
  13238. +fi # as_fn_arith
  13239. +
  13240. +
  13241. +# as_fn_error ERROR [LINENO LOG_FD]
  13242. +# ---------------------------------
  13243. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13244. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13245. +# script with status $?, using 1 if that was 0.
  13246. +as_fn_error ()
  13247. +{
  13248. + as_status=$?; test $as_status -eq 0 && as_status=1
  13249. + if test "$3"; then
  13250. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13251. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13252. + fi
  13253. + $as_echo "$as_me: error: $1" >&2
  13254. + as_fn_exit $as_status
  13255. +} # as_fn_error
  13256. -# Required to use basename.
  13257. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13258. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13259. as_expr=expr
  13260. @@ -128,13 +388,17 @@
  13261. as_basename=false
  13262. fi
  13263. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13264. + as_dirname=dirname
  13265. +else
  13266. + as_dirname=false
  13267. +fi
  13268. -# Name of the executable.
  13269. as_me=`$as_basename -- "$0" ||
  13270. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13271. X"$0" : 'X\(//\)$' \| \
  13272. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13273. -echo X/"$0" |
  13274. +$as_echo X/"$0" |
  13275. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13276. s//\1/
  13277. q
  13278. @@ -149,428 +413,142 @@
  13279. }
  13280. s/.*/./; q'`
  13281. -# CDPATH.
  13282. -$as_unset CDPATH
  13283. +# Avoid depending upon Character Ranges.
  13284. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13285. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13286. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13287. +as_cr_digits='0123456789'
  13288. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  13289. -if test "x$CONFIG_SHELL" = x; then
  13290. - if (eval ":") 2>/dev/null; then
  13291. - as_have_required=yes
  13292. -else
  13293. - as_have_required=no
  13294. -fi
  13295. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  13296. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  13297. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  13298. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  13299. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  13300. + sed -n '
  13301. + p
  13302. + /[$]LINENO/=
  13303. + ' <$as_myself |
  13304. + sed '
  13305. + s/[$]LINENO.*/&-/
  13306. + t lineno
  13307. + b
  13308. + :lineno
  13309. + N
  13310. + :loop
  13311. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  13312. + t loop
  13313. + s/-\n.*//
  13314. + ' >$as_me.lineno &&
  13315. + chmod +x "$as_me.lineno" ||
  13316. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  13317. - if test $as_have_required = yes && (eval ":
  13318. -(as_func_return () {
  13319. - (exit \$1)
  13320. -}
  13321. -as_func_success () {
  13322. - as_func_return 0
  13323. -}
  13324. -as_func_failure () {
  13325. - as_func_return 1
  13326. -}
  13327. -as_func_ret_success () {
  13328. - return 0
  13329. -}
  13330. -as_func_ret_failure () {
  13331. - return 1
  13332. + # Don't try to exec as it changes $[0], causing all sort of problems
  13333. + # (the dirname of $[0] is not the place where we might find the
  13334. + # original and so on. Autoconf is especially sensitive to this).
  13335. + . "./$as_me.lineno"
  13336. + # Exit status is that of the last command.
  13337. + exit
  13338. }
  13339. -exitcode=0
  13340. -if as_func_success; then
  13341. - :
  13342. -else
  13343. - exitcode=1
  13344. - echo as_func_success failed.
  13345. -fi
  13346. +ECHO_C= ECHO_N= ECHO_T=
  13347. +case `echo -n x` in #(((((
  13348. +-n*)
  13349. + case `echo 'xy\c'` in
  13350. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13351. + xy) ECHO_C='\c';;
  13352. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13353. + ECHO_T=' ';;
  13354. + esac;;
  13355. +*)
  13356. + ECHO_N='-n';;
  13357. +esac
  13358. -if as_func_failure; then
  13359. - exitcode=1
  13360. - echo as_func_failure succeeded.
  13361. +rm -f conf$$ conf$$.exe conf$$.file
  13362. +if test -d conf$$.dir; then
  13363. + rm -f conf$$.dir/conf$$.file
  13364. +else
  13365. + rm -f conf$$.dir
  13366. + mkdir conf$$.dir 2>/dev/null
  13367. fi
  13368. -
  13369. -if as_func_ret_success; then
  13370. - :
  13371. +if (echo >conf$$.file) 2>/dev/null; then
  13372. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  13373. + as_ln_s='ln -s'
  13374. + # ... but there are two gotchas:
  13375. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13376. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13377. + # In both cases, we have to default to `cp -p'.
  13378. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13379. + as_ln_s='cp -p'
  13380. + elif ln conf$$.file conf$$ 2>/dev/null; then
  13381. + as_ln_s=ln
  13382. + else
  13383. + as_ln_s='cp -p'
  13384. + fi
  13385. else
  13386. - exitcode=1
  13387. - echo as_func_ret_success failed.
  13388. + as_ln_s='cp -p'
  13389. fi
  13390. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13391. +rmdir conf$$.dir 2>/dev/null
  13392. -if as_func_ret_failure; then
  13393. - exitcode=1
  13394. - echo as_func_ret_failure succeeded.
  13395. +if mkdir -p . 2>/dev/null; then
  13396. + as_mkdir_p='mkdir -p "$as_dir"'
  13397. +else
  13398. + test -d ./-p && rmdir ./-p
  13399. + as_mkdir_p=false
  13400. fi
  13401. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  13402. - :
  13403. +if test -x / >/dev/null 2>&1; then
  13404. + as_test_x='test -x'
  13405. else
  13406. - exitcode=1
  13407. - echo positional parameters were not saved.
  13408. + if ls -dL / >/dev/null 2>&1; then
  13409. + as_ls_L_option=L
  13410. + else
  13411. + as_ls_L_option=
  13412. + fi
  13413. + as_test_x='
  13414. + eval sh -c '\''
  13415. + if test -d "$1"; then
  13416. + test -d "$1/.";
  13417. + else
  13418. + case $1 in #(
  13419. + -*)set "./$1";;
  13420. + esac;
  13421. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13422. + ???[sx]*):;;*)false;;esac;fi
  13423. + '\'' sh
  13424. + '
  13425. fi
  13426. +as_executable_p=$as_test_x
  13427. -test \$exitcode = 0) || { (exit 1); exit 1; }
  13428. -
  13429. -(
  13430. - as_lineno_1=\$LINENO
  13431. - as_lineno_2=\$LINENO
  13432. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  13433. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  13434. -") 2> /dev/null; then
  13435. - :
  13436. -else
  13437. - as_candidate_shells=
  13438. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13439. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  13440. -do
  13441. - IFS=$as_save_IFS
  13442. - test -z "$as_dir" && as_dir=.
  13443. - case $as_dir in
  13444. - /*)
  13445. - for as_base in sh bash ksh sh5; do
  13446. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  13447. - done;;
  13448. - esac
  13449. -done
  13450. -IFS=$as_save_IFS
  13451. +# Sed expression to map a string onto a valid CPP name.
  13452. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13453. +# Sed expression to map a string onto a valid variable name.
  13454. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13455. - for as_shell in $as_candidate_shells $SHELL; do
  13456. - # Try only shells that exist, to save several forks.
  13457. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  13458. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  13459. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13460. - emulate sh
  13461. - NULLCMD=:
  13462. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  13463. - # is contrary to our usage. Disable this feature.
  13464. - alias -g '${1+"$@"}'='"$@"'
  13465. - setopt NO_GLOB_SUBST
  13466. -else
  13467. - case `(set -o) 2>/dev/null` in
  13468. - *posix*) set -o posix ;;
  13469. -esac
  13470. -fi
  13471. +# Check that we are running under the correct shell.
  13472. +SHELL=${CONFIG_SHELL-/bin/sh}
  13473. -:
  13474. -_ASEOF
  13475. -}; then
  13476. - CONFIG_SHELL=$as_shell
  13477. - as_have_required=yes
  13478. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  13479. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13480. - emulate sh
  13481. - NULLCMD=:
  13482. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  13483. - # is contrary to our usage. Disable this feature.
  13484. - alias -g '${1+"$@"}'='"$@"'
  13485. - setopt NO_GLOB_SUBST
  13486. -else
  13487. - case `(set -o) 2>/dev/null` in
  13488. - *posix*) set -o posix ;;
  13489. +case X$lt_ECHO in
  13490. +X*--fallback-echo)
  13491. + # Remove one level of quotation (which was required for Make).
  13492. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13493. + ;;
  13494. esac
  13495. -fi
  13496. -
  13497. -
  13498. -:
  13499. -(as_func_return () {
  13500. - (exit $1)
  13501. -}
  13502. -as_func_success () {
  13503. - as_func_return 0
  13504. -}
  13505. -as_func_failure () {
  13506. - as_func_return 1
  13507. -}
  13508. -as_func_ret_success () {
  13509. - return 0
  13510. -}
  13511. -as_func_ret_failure () {
  13512. - return 1
  13513. -}
  13514. -
  13515. -exitcode=0
  13516. -if as_func_success; then
  13517. - :
  13518. -else
  13519. - exitcode=1
  13520. - echo as_func_success failed.
  13521. -fi
  13522. -
  13523. -if as_func_failure; then
  13524. - exitcode=1
  13525. - echo as_func_failure succeeded.
  13526. -fi
  13527. -
  13528. -if as_func_ret_success; then
  13529. - :
  13530. -else
  13531. - exitcode=1
  13532. - echo as_func_ret_success failed.
  13533. -fi
  13534. -
  13535. -if as_func_ret_failure; then
  13536. - exitcode=1
  13537. - echo as_func_ret_failure succeeded.
  13538. -fi
  13539. -
  13540. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  13541. - :
  13542. -else
  13543. - exitcode=1
  13544. - echo positional parameters were not saved.
  13545. -fi
  13546. -
  13547. -test $exitcode = 0) || { (exit 1); exit 1; }
  13548. -
  13549. -(
  13550. - as_lineno_1=$LINENO
  13551. - as_lineno_2=$LINENO
  13552. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  13553. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  13554. -
  13555. -_ASEOF
  13556. -}; then
  13557. - break
  13558. -fi
  13559. -
  13560. -fi
  13561. -
  13562. - done
  13563. -
  13564. - if test "x$CONFIG_SHELL" != x; then
  13565. - for as_var in BASH_ENV ENV
  13566. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  13567. - done
  13568. - export CONFIG_SHELL
  13569. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  13570. -fi
  13571. -
  13572. -
  13573. - if test $as_have_required = no; then
  13574. - echo This script requires a shell more modern than all the
  13575. - echo shells that I found on your system. Please install a
  13576. - echo modern shell, or manually run the script under such a
  13577. - echo shell if you do have one.
  13578. - { (exit 1); exit 1; }
  13579. -fi
  13580. -
  13581. -
  13582. -fi
  13583. -
  13584. -fi
  13585. -
  13586. -
  13587. -
  13588. -(eval "as_func_return () {
  13589. - (exit \$1)
  13590. -}
  13591. -as_func_success () {
  13592. - as_func_return 0
  13593. -}
  13594. -as_func_failure () {
  13595. - as_func_return 1
  13596. -}
  13597. -as_func_ret_success () {
  13598. - return 0
  13599. -}
  13600. -as_func_ret_failure () {
  13601. - return 1
  13602. -}
  13603. -
  13604. -exitcode=0
  13605. -if as_func_success; then
  13606. - :
  13607. -else
  13608. - exitcode=1
  13609. - echo as_func_success failed.
  13610. -fi
  13611. -
  13612. -if as_func_failure; then
  13613. - exitcode=1
  13614. - echo as_func_failure succeeded.
  13615. -fi
  13616. -
  13617. -if as_func_ret_success; then
  13618. - :
  13619. -else
  13620. - exitcode=1
  13621. - echo as_func_ret_success failed.
  13622. -fi
  13623. -
  13624. -if as_func_ret_failure; then
  13625. - exitcode=1
  13626. - echo as_func_ret_failure succeeded.
  13627. -fi
  13628. -
  13629. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  13630. - :
  13631. -else
  13632. - exitcode=1
  13633. - echo positional parameters were not saved.
  13634. -fi
  13635. -
  13636. -test \$exitcode = 0") || {
  13637. - echo No shell found that supports shell functions.
  13638. - echo Please tell autoconf@gnu.org about your system,
  13639. - echo including any error possibly output before this
  13640. - echo message
  13641. -}
  13642. -
  13643. -
  13644. -
  13645. - as_lineno_1=$LINENO
  13646. - as_lineno_2=$LINENO
  13647. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  13648. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  13649. -
  13650. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  13651. - # uniformly replaced by the line number. The first 'sed' inserts a
  13652. - # line-number line after each line using $LINENO; the second 'sed'
  13653. - # does the real work. The second script uses 'N' to pair each
  13654. - # line-number line with the line containing $LINENO, and appends
  13655. - # trailing '-' during substitution so that $LINENO is not a special
  13656. - # case at line end.
  13657. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  13658. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  13659. - # E. McMahon (1931-1989) for sed's syntax. :-)
  13660. - sed -n '
  13661. - p
  13662. - /[$]LINENO/=
  13663. - ' <$as_myself |
  13664. - sed '
  13665. - s/[$]LINENO.*/&-/
  13666. - t lineno
  13667. - b
  13668. - :lineno
  13669. - N
  13670. - :loop
  13671. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  13672. - t loop
  13673. - s/-\n.*//
  13674. - ' >$as_me.lineno &&
  13675. - chmod +x "$as_me.lineno" ||
  13676. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  13677. - { (exit 1); exit 1; }; }
  13678. -
  13679. - # Don't try to exec as it changes $[0], causing all sort of problems
  13680. - # (the dirname of $[0] is not the place where we might find the
  13681. - # original and so on. Autoconf is especially sensitive to this).
  13682. - . "./$as_me.lineno"
  13683. - # Exit status is that of the last command.
  13684. - exit
  13685. -}
  13686. -
  13687. -
  13688. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13689. - as_dirname=dirname
  13690. -else
  13691. - as_dirname=false
  13692. -fi
  13693. -
  13694. -ECHO_C= ECHO_N= ECHO_T=
  13695. -case `echo -n x` in
  13696. --n*)
  13697. - case `echo 'x\c'` in
  13698. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13699. - *) ECHO_C='\c';;
  13700. - esac;;
  13701. -*)
  13702. - ECHO_N='-n';;
  13703. -esac
  13704. -
  13705. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  13706. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13707. - as_expr=expr
  13708. -else
  13709. - as_expr=false
  13710. -fi
  13711. -
  13712. -rm -f conf$$ conf$$.exe conf$$.file
  13713. -if test -d conf$$.dir; then
  13714. - rm -f conf$$.dir/conf$$.file
  13715. -else
  13716. - rm -f conf$$.dir
  13717. - mkdir conf$$.dir
  13718. -fi
  13719. -echo >conf$$.file
  13720. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  13721. - as_ln_s='ln -s'
  13722. - # ... but there are two gotchas:
  13723. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13724. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13725. - # In both cases, we have to default to `cp -p'.
  13726. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13727. - as_ln_s='cp -p'
  13728. -elif ln conf$$.file conf$$ 2>/dev/null; then
  13729. - as_ln_s=ln
  13730. -else
  13731. - as_ln_s='cp -p'
  13732. -fi
  13733. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13734. -rmdir conf$$.dir 2>/dev/null
  13735. -
  13736. -if mkdir -p . 2>/dev/null; then
  13737. - as_mkdir_p=:
  13738. -else
  13739. - test -d ./-p && rmdir ./-p
  13740. - as_mkdir_p=false
  13741. -fi
  13742. -
  13743. -if test -x / >/dev/null 2>&1; then
  13744. - as_test_x='test -x'
  13745. -else
  13746. - if ls -dL / >/dev/null 2>&1; then
  13747. - as_ls_L_option=L
  13748. - else
  13749. - as_ls_L_option=
  13750. - fi
  13751. - as_test_x='
  13752. - eval sh -c '\''
  13753. - if test -d "$1"; then
  13754. - test -d "$1/.";
  13755. - else
  13756. - case $1 in
  13757. - -*)set "./$1";;
  13758. - esac;
  13759. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  13760. - ???[sx]*):;;*)false;;esac;fi
  13761. - '\'' sh
  13762. - '
  13763. -fi
  13764. -as_executable_p=$as_test_x
  13765. -
  13766. -# Sed expression to map a string onto a valid CPP name.
  13767. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13768. -
  13769. -# Sed expression to map a string onto a valid variable name.
  13770. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13771. -
  13772. -
  13773. -
  13774. -
  13775. -# Check that we are running under the correct shell.
  13776. -SHELL=${CONFIG_SHELL-/bin/sh}
  13777. -
  13778. -case X$ECHO in
  13779. -X*--fallback-echo)
  13780. - # Remove one level of quotation (which was required for Make).
  13781. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13782. - ;;
  13783. -esac
  13784. -
  13785. -echo=${ECHO-echo}
  13786. +ECHO=${lt_ECHO-echo}
  13787. if test "X$1" = X--no-reexec; then
  13788. # Discard the --no-reexec flag, and continue.
  13789. shift
  13790. elif test "X$1" = X--fallback-echo; then
  13791. # Avoid inline document here, it may be left over
  13792. :
  13793. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  13794. - # Yippee, $echo works!
  13795. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  13796. + # Yippee, $ECHO works!
  13797. :
  13798. else
  13799. # Restart under the correct shell.
  13800. @@ -580,9 +558,9 @@
  13801. if test "X$1" = X--fallback-echo; then
  13802. # used as fallback echo
  13803. shift
  13804. - cat <<EOF
  13805. + cat <<_LT_EOF
  13806. $*
  13807. -EOF
  13808. +_LT_EOF
  13809. exit 0
  13810. fi
  13811. @@ -590,122 +568,118 @@
  13812. # if CDPATH is set.
  13813. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13814. -if test -z "$ECHO"; then
  13815. -if test "X${echo_test_string+set}" != Xset; then
  13816. -# find a string as large as possible, as long as the shell can cope with it
  13817. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13818. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13819. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  13820. - echo_test_string=`eval $cmd` &&
  13821. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  13822. - then
  13823. - break
  13824. - fi
  13825. - done
  13826. -fi
  13827. +if test -z "$lt_ECHO"; then
  13828. + if test "X${echo_test_string+set}" != Xset; then
  13829. + # find a string as large as possible, as long as the shell can cope with it
  13830. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13831. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13832. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  13833. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  13834. + then
  13835. + break
  13836. + fi
  13837. + done
  13838. + fi
  13839. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13840. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13841. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13842. - :
  13843. -else
  13844. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  13845. - # backslashes. This makes it impossible to quote backslashes using
  13846. - # echo "$something" | sed 's/\\/\\\\/g'
  13847. - #
  13848. - # So, first we look for a working echo in the user's PATH.
  13849. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13850. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13851. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13852. + :
  13853. + else
  13854. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  13855. + # backslashes. This makes it impossible to quote backslashes using
  13856. + # echo "$something" | sed 's/\\/\\\\/g'
  13857. + #
  13858. + # So, first we look for a working echo in the user's PATH.
  13859. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13860. - for dir in $PATH /usr/ucb; do
  13861. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13862. + for dir in $PATH /usr/ucb; do
  13863. + IFS="$lt_save_ifs"
  13864. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13865. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13866. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13867. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13868. + ECHO="$dir/echo"
  13869. + break
  13870. + fi
  13871. + done
  13872. IFS="$lt_save_ifs"
  13873. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13874. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13875. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13876. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13877. - echo="$dir/echo"
  13878. - break
  13879. - fi
  13880. - done
  13881. - IFS="$lt_save_ifs"
  13882. - if test "X$echo" = Xecho; then
  13883. - # We didn't find a better echo, so look for alternatives.
  13884. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  13885. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  13886. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13887. - # This shell has a builtin print -r that does the trick.
  13888. - echo='print -r'
  13889. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  13890. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  13891. - # If we have ksh, try running configure again with it.
  13892. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13893. - export ORIGINAL_CONFIG_SHELL
  13894. - CONFIG_SHELL=/bin/ksh
  13895. - export CONFIG_SHELL
  13896. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13897. - else
  13898. - # Try using printf.
  13899. - echo='printf %s\n'
  13900. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13901. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13902. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13903. - # Cool, printf works
  13904. - :
  13905. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13906. - test "X$echo_testing_string" = 'X\t' &&
  13907. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13908. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13909. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13910. - export CONFIG_SHELL
  13911. - SHELL="$CONFIG_SHELL"
  13912. - export SHELL
  13913. - echo="$CONFIG_SHELL $0 --fallback-echo"
  13914. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13915. - test "X$echo_testing_string" = 'X\t' &&
  13916. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13917. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13918. - echo="$CONFIG_SHELL $0 --fallback-echo"
  13919. + if test "X$ECHO" = Xecho; then
  13920. + # We didn't find a better echo, so look for alternatives.
  13921. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  13922. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  13923. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13924. + # This shell has a builtin print -r that does the trick.
  13925. + ECHO='print -r'
  13926. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  13927. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  13928. + # If we have ksh, try running configure again with it.
  13929. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13930. + export ORIGINAL_CONFIG_SHELL
  13931. + CONFIG_SHELL=/bin/ksh
  13932. + export CONFIG_SHELL
  13933. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13934. else
  13935. - # maybe with a smaller string...
  13936. - prev=:
  13937. + # Try using printf.
  13938. + ECHO='printf %s\n'
  13939. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13940. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13941. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13942. + # Cool, printf works
  13943. + :
  13944. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13945. + test "X$echo_testing_string" = 'X\t' &&
  13946. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13947. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13948. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13949. + export CONFIG_SHELL
  13950. + SHELL="$CONFIG_SHELL"
  13951. + export SHELL
  13952. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13953. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13954. + test "X$echo_testing_string" = 'X\t' &&
  13955. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13956. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13957. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13958. + else
  13959. + # maybe with a smaller string...
  13960. + prev=:
  13961. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13962. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  13963. - then
  13964. - break
  13965. - fi
  13966. - prev="$cmd"
  13967. - done
  13968. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13969. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  13970. + then
  13971. + break
  13972. + fi
  13973. + prev="$cmd"
  13974. + done
  13975. - if test "$prev" != 'sed 50q "$0"'; then
  13976. - echo_test_string=`eval $prev`
  13977. - export echo_test_string
  13978. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13979. - else
  13980. - # Oops. We lost completely, so just stick with echo.
  13981. - echo=echo
  13982. - fi
  13983. + if test "$prev" != 'sed 50q "$0"'; then
  13984. + echo_test_string=`eval $prev`
  13985. + export echo_test_string
  13986. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13987. + else
  13988. + # Oops. We lost completely, so just stick with echo.
  13989. + ECHO=echo
  13990. + fi
  13991. + fi
  13992. fi
  13993. fi
  13994. fi
  13995. fi
  13996. -fi
  13997. # Copy echo and quote the copy suitably for passing to libtool from
  13998. # the Makefile, instead of quoting the original, which is used later.
  13999. -ECHO=$echo
  14000. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  14001. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  14002. +lt_ECHO=$ECHO
  14003. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  14004. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  14005. fi
  14006. -tagnames=${tagnames+${tagnames},}CXX
  14007. -
  14008. -tagnames=${tagnames+${tagnames},}F77
  14009. -
  14010. -exec 7<&0 </dev/null 6>&1
  14011. +test -n "$DJDIR" || exec 7<&0 </dev/null
  14012. +exec 6>&1
  14013. # Name of the host.
  14014. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  14015. @@ -723,7 +697,6 @@
  14016. subdirs=
  14017. MFLAGS=
  14018. MAKEFLAGS=
  14019. -SHELL=${CONFIG_SHELL-/bin/sh}
  14020. # Identity of this package.
  14021. PACKAGE_NAME='file'
  14022. @@ -731,6 +704,7 @@
  14023. PACKAGE_VERSION='5.04'
  14024. PACKAGE_STRING='file 5.04'
  14025. PACKAGE_BUGREPORT='christos@astron.com'
  14026. +PACKAGE_URL=''
  14027. # Factoring default headers for most tests.
  14028. ac_includes_default="\
  14029. @@ -768,120 +742,138 @@
  14030. # include <unistd.h>
  14031. #endif"
  14032. -ac_subst_vars='SHELL
  14033. -PATH_SEPARATOR
  14034. -PACKAGE_NAME
  14035. -PACKAGE_TARNAME
  14036. -PACKAGE_VERSION
  14037. -PACKAGE_STRING
  14038. -PACKAGE_BUGREPORT
  14039. -exec_prefix
  14040. -prefix
  14041. -program_transform_name
  14042. -bindir
  14043. -sbindir
  14044. -libexecdir
  14045. -datarootdir
  14046. -datadir
  14047. -sysconfdir
  14048. -sharedstatedir
  14049. -localstatedir
  14050. -includedir
  14051. -oldincludedir
  14052. -docdir
  14053. -infodir
  14054. -htmldir
  14055. -dvidir
  14056. -pdfdir
  14057. -psdir
  14058. -libdir
  14059. -localedir
  14060. -mandir
  14061. -DEFS
  14062. -ECHO_C
  14063. -ECHO_N
  14064. -ECHO_T
  14065. -LIBS
  14066. -build_alias
  14067. -host_alias
  14068. -target_alias
  14069. -INSTALL_PROGRAM
  14070. -INSTALL_SCRIPT
  14071. -INSTALL_DATA
  14072. -am__isrc
  14073. -CYGPATH_W
  14074. -PACKAGE
  14075. -VERSION
  14076. -ACLOCAL
  14077. -AUTOCONF
  14078. -AUTOMAKE
  14079. -AUTOHEADER
  14080. -MAKEINFO
  14081. -install_sh
  14082. -STRIP
  14083. -INSTALL_STRIP_PROGRAM
  14084. -mkdir_p
  14085. -AWK
  14086. -SET_MAKE
  14087. -am__leading_dot
  14088. -AMTAR
  14089. -am__tar
  14090. -am__untar
  14091. -pkgdatadir
  14092. -fsect
  14093. -FSECT5_TRUE
  14094. -FSECT5_FALSE
  14095. -WARNINGS
  14096. -CC
  14097. -CFLAGS
  14098. -LDFLAGS
  14099. -CPPFLAGS
  14100. -ac_ct_CC
  14101. -EXEEXT
  14102. -OBJEXT
  14103. -DEPDIR
  14104. -am__include
  14105. -am__quote
  14106. -AMDEP_TRUE
  14107. -AMDEP_FALSE
  14108. -AMDEPBACKSLASH
  14109. -CCDEPMODE
  14110. -am__fastdepCC_TRUE
  14111. -am__fastdepCC_FALSE
  14112. -LN_S
  14113. -build
  14114. -build_cpu
  14115. -build_vendor
  14116. -build_os
  14117. -host
  14118. -host_cpu
  14119. -host_vendor
  14120. -host_os
  14121. +ac_subst_vars='am__EXEEXT_FALSE
  14122. +am__EXEEXT_TRUE
  14123. +LTLIBOBJS
  14124. +IS_CROSS_COMPILE_FALSE
  14125. +IS_CROSS_COMPILE_TRUE
  14126. +LIBOBJS
  14127. +OTOOL64
  14128. +OTOOL
  14129. +LIPO
  14130. +NMEDIT
  14131. +DSYMUTIL
  14132. +lt_ECHO
  14133. +RANLIB
  14134. +AR
  14135. +OBJDUMP
  14136. +NM
  14137. +ac_ct_DUMPBIN
  14138. +DUMPBIN
  14139. +LD
  14140. +FGREP
  14141. SED
  14142. -GREP
  14143. +host_os
  14144. +host_vendor
  14145. +host_cpu
  14146. +host
  14147. +build_os
  14148. +build_vendor
  14149. +build_cpu
  14150. +build
  14151. +LIBTOOL
  14152. +LN_S
  14153. EGREP
  14154. -ECHO
  14155. -AR
  14156. -RANLIB
  14157. -DSYMUTIL
  14158. -NMEDIT
  14159. +GREP
  14160. CPP
  14161. -CXX
  14162. -CXXFLAGS
  14163. -ac_ct_CXX
  14164. -CXXDEPMODE
  14165. -am__fastdepCXX_TRUE
  14166. -am__fastdepCXX_FALSE
  14167. -CXXCPP
  14168. -F77
  14169. -FFLAGS
  14170. -ac_ct_F77
  14171. -LIBTOOL
  14172. -LIBOBJS
  14173. -IS_CROSS_COMPILE_TRUE
  14174. -IS_CROSS_COMPILE_FALSE
  14175. -LTLIBOBJS'
  14176. +am__fastdepCC_FALSE
  14177. +am__fastdepCC_TRUE
  14178. +CCDEPMODE
  14179. +AMDEPBACKSLASH
  14180. +AMDEP_FALSE
  14181. +AMDEP_TRUE
  14182. +am__quote
  14183. +am__include
  14184. +DEPDIR
  14185. +OBJEXT
  14186. +EXEEXT
  14187. +ac_ct_CC
  14188. +CPPFLAGS
  14189. +LDFLAGS
  14190. +CFLAGS
  14191. +CC
  14192. +WARNINGS
  14193. +FSECT5_FALSE
  14194. +FSECT5_TRUE
  14195. +fsect
  14196. +pkgdatadir
  14197. +am__untar
  14198. +am__tar
  14199. +AMTAR
  14200. +am__leading_dot
  14201. +SET_MAKE
  14202. +AWK
  14203. +mkdir_p
  14204. +MKDIR_P
  14205. +INSTALL_STRIP_PROGRAM
  14206. +STRIP
  14207. +install_sh
  14208. +MAKEINFO
  14209. +AUTOHEADER
  14210. +AUTOMAKE
  14211. +AUTOCONF
  14212. +ACLOCAL
  14213. +VERSION
  14214. +PACKAGE
  14215. +CYGPATH_W
  14216. +am__isrc
  14217. +INSTALL_DATA
  14218. +INSTALL_SCRIPT
  14219. +INSTALL_PROGRAM
  14220. +target_alias
  14221. +host_alias
  14222. +build_alias
  14223. +LIBS
  14224. +ECHO_T
  14225. +ECHO_N
  14226. +ECHO_C
  14227. +DEFS
  14228. +mandir
  14229. +localedir
  14230. +libdir
  14231. +psdir
  14232. +pdfdir
  14233. +dvidir
  14234. +htmldir
  14235. +infodir
  14236. +docdir
  14237. +oldincludedir
  14238. +includedir
  14239. +localstatedir
  14240. +sharedstatedir
  14241. +sysconfdir
  14242. +datadir
  14243. +datarootdir
  14244. +libexecdir
  14245. +sbindir
  14246. +bindir
  14247. +program_transform_name
  14248. +prefix
  14249. +exec_prefix
  14250. +PACKAGE_URL
  14251. +PACKAGE_BUGREPORT
  14252. +PACKAGE_STRING
  14253. +PACKAGE_VERSION
  14254. +PACKAGE_TARNAME
  14255. +PACKAGE_NAME
  14256. +PATH_SEPARATOR
  14257. +SHELL'
  14258. ac_subst_files=''
  14259. +ac_user_opts='
  14260. +enable_option_checking
  14261. +enable_elf
  14262. +enable_elf_core
  14263. +enable_fsect_man5
  14264. +enable_dependency_tracking
  14265. +enable_shared
  14266. +enable_static
  14267. +with_pic
  14268. +enable_fast_install
  14269. +with_gnu_ld
  14270. +enable_libtool_lock
  14271. +enable_largefile
  14272. +enable_warnings
  14273. +'
  14274. ac_precious_vars='build_alias
  14275. host_alias
  14276. target_alias
  14277. @@ -890,18 +882,14 @@
  14278. LDFLAGS
  14279. LIBS
  14280. CPPFLAGS
  14281. -CPP
  14282. -CXX
  14283. -CXXFLAGS
  14284. -CCC
  14285. -CXXCPP
  14286. -F77
  14287. -FFLAGS'
  14288. +CPP'
  14289. # Initialize some variables set by options.
  14290. ac_init_help=
  14291. ac_init_version=false
  14292. +ac_unrecognized_opts=
  14293. +ac_unrecognized_sep=
  14294. # The variables have the same names as the options, with
  14295. # dashes changed to underlines.
  14296. cache_file=/dev/null
  14297. @@ -1000,13 +988,20 @@
  14298. datarootdir=$ac_optarg ;;
  14299. -disable-* | --disable-*)
  14300. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  14301. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  14302. # Reject names that are not valid shell variable names.
  14303. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  14304. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  14305. - { (exit 1); exit 1; }; }
  14306. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  14307. - eval enable_$ac_feature=no ;;
  14308. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  14309. + as_fn_error "invalid feature name: $ac_useropt"
  14310. + ac_useropt_orig=$ac_useropt
  14311. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  14312. + case $ac_user_opts in
  14313. + *"
  14314. +"enable_$ac_useropt"
  14315. +"*) ;;
  14316. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  14317. + ac_unrecognized_sep=', ';;
  14318. + esac
  14319. + eval enable_$ac_useropt=no ;;
  14320. -docdir | --docdir | --docdi | --doc | --do)
  14321. ac_prev=docdir ;;
  14322. @@ -1019,13 +1014,20 @@
  14323. dvidir=$ac_optarg ;;
  14324. -enable-* | --enable-*)
  14325. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  14326. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  14327. # Reject names that are not valid shell variable names.
  14328. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  14329. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  14330. - { (exit 1); exit 1; }; }
  14331. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  14332. - eval enable_$ac_feature=\$ac_optarg ;;
  14333. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  14334. + as_fn_error "invalid feature name: $ac_useropt"
  14335. + ac_useropt_orig=$ac_useropt
  14336. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  14337. + case $ac_user_opts in
  14338. + *"
  14339. +"enable_$ac_useropt"
  14340. +"*) ;;
  14341. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  14342. + ac_unrecognized_sep=', ';;
  14343. + esac
  14344. + eval enable_$ac_useropt=\$ac_optarg ;;
  14345. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  14346. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  14347. @@ -1216,22 +1218,36 @@
  14348. ac_init_version=: ;;
  14349. -with-* | --with-*)
  14350. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  14351. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  14352. # Reject names that are not valid shell variable names.
  14353. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  14354. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  14355. - { (exit 1); exit 1; }; }
  14356. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  14357. - eval with_$ac_package=\$ac_optarg ;;
  14358. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  14359. + as_fn_error "invalid package name: $ac_useropt"
  14360. + ac_useropt_orig=$ac_useropt
  14361. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  14362. + case $ac_user_opts in
  14363. + *"
  14364. +"with_$ac_useropt"
  14365. +"*) ;;
  14366. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  14367. + ac_unrecognized_sep=', ';;
  14368. + esac
  14369. + eval with_$ac_useropt=\$ac_optarg ;;
  14370. -without-* | --without-*)
  14371. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  14372. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  14373. # Reject names that are not valid shell variable names.
  14374. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  14375. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  14376. - { (exit 1); exit 1; }; }
  14377. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  14378. - eval with_$ac_package=no ;;
  14379. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  14380. + as_fn_error "invalid package name: $ac_useropt"
  14381. + ac_useropt_orig=$ac_useropt
  14382. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  14383. + case $ac_user_opts in
  14384. + *"
  14385. +"with_$ac_useropt"
  14386. +"*) ;;
  14387. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  14388. + ac_unrecognized_sep=', ';;
  14389. + esac
  14390. + eval with_$ac_useropt=no ;;
  14391. --x)
  14392. # Obsolete; use --with-x.
  14393. @@ -1251,25 +1267,25 @@
  14394. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  14395. x_libraries=$ac_optarg ;;
  14396. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  14397. -Try \`$0 --help' for more information." >&2
  14398. - { (exit 1); exit 1; }; }
  14399. + -*) as_fn_error "unrecognized option: \`$ac_option'
  14400. +Try \`$0 --help' for more information."
  14401. ;;
  14402. *=*)
  14403. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  14404. # Reject names that are not valid shell variable names.
  14405. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  14406. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  14407. - { (exit 1); exit 1; }; }
  14408. + case $ac_envvar in #(
  14409. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  14410. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  14411. + esac
  14412. eval $ac_envvar=\$ac_optarg
  14413. export $ac_envvar ;;
  14414. *)
  14415. # FIXME: should be removed in autoconf 3.0.
  14416. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  14417. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  14418. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  14419. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  14420. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  14421. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  14422. ;;
  14423. @@ -1278,23 +1294,36 @@
  14424. if test -n "$ac_prev"; then
  14425. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  14426. - { echo "$as_me: error: missing argument to $ac_option" >&2
  14427. - { (exit 1); exit 1; }; }
  14428. + as_fn_error "missing argument to $ac_option"
  14429. fi
  14430. -# Be sure to have absolute directory names.
  14431. +if test -n "$ac_unrecognized_opts"; then
  14432. + case $enable_option_checking in
  14433. + no) ;;
  14434. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  14435. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  14436. + esac
  14437. +fi
  14438. +
  14439. +# Check all directory arguments for consistency.
  14440. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  14441. datadir sysconfdir sharedstatedir localstatedir includedir \
  14442. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  14443. libdir localedir mandir
  14444. do
  14445. eval ac_val=\$$ac_var
  14446. + # Remove trailing slashes.
  14447. + case $ac_val in
  14448. + */ )
  14449. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  14450. + eval $ac_var=\$ac_val;;
  14451. + esac
  14452. + # Be sure to have absolute directory names.
  14453. case $ac_val in
  14454. [\\/$]* | ?:[\\/]* ) continue;;
  14455. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  14456. esac
  14457. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  14458. - { (exit 1); exit 1; }; }
  14459. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  14460. done
  14461. # There might be people who depend on the old broken behavior: `$host'
  14462. @@ -1308,7 +1337,7 @@
  14463. if test "x$host_alias" != x; then
  14464. if test "x$build_alias" = x; then
  14465. cross_compiling=maybe
  14466. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  14467. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  14468. If a cross compiler is detected then cross compile mode will be used." >&2
  14469. elif test "x$build_alias" != "x$host_alias"; then
  14470. cross_compiling=yes
  14471. @@ -1324,23 +1353,21 @@
  14472. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  14473. ac_ls_di=`ls -di .` &&
  14474. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  14475. - { echo "$as_me: error: Working directory cannot be determined" >&2
  14476. - { (exit 1); exit 1; }; }
  14477. + as_fn_error "working directory cannot be determined"
  14478. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  14479. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  14480. - { (exit 1); exit 1; }; }
  14481. + as_fn_error "pwd does not report name of working directory"
  14482. # Find the source files, if location was not specified.
  14483. if test -z "$srcdir"; then
  14484. ac_srcdir_defaulted=yes
  14485. # Try the directory containing this script, then the parent directory.
  14486. - ac_confdir=`$as_dirname -- "$0" ||
  14487. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14488. - X"$0" : 'X\(//\)[^/]' \| \
  14489. - X"$0" : 'X\(//\)$' \| \
  14490. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14491. -echo X"$0" |
  14492. + ac_confdir=`$as_dirname -- "$as_myself" ||
  14493. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14494. + X"$as_myself" : 'X\(//\)[^/]' \| \
  14495. + X"$as_myself" : 'X\(//\)$' \| \
  14496. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  14497. +$as_echo X"$as_myself" |
  14498. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14499. s//\1/
  14500. q
  14501. @@ -1367,13 +1394,11 @@
  14502. fi
  14503. if test ! -r "$srcdir/$ac_unique_file"; then
  14504. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  14505. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  14506. - { (exit 1); exit 1; }; }
  14507. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  14508. fi
  14509. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  14510. ac_abs_confdir=`(
  14511. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  14512. - { (exit 1); exit 1; }; }
  14513. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  14514. pwd)`
  14515. # When building in place, set srcdir=.
  14516. if test "$ac_abs_confdir" = "$ac_pwd"; then
  14517. @@ -1421,9 +1446,9 @@
  14518. Installation directories:
  14519. --prefix=PREFIX install architecture-independent files in PREFIX
  14520. - [$ac_default_prefix]
  14521. + [$ac_default_prefix]
  14522. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  14523. - [PREFIX]
  14524. + [PREFIX]
  14525. By default, \`make install' will install all the files in
  14526. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  14527. @@ -1433,25 +1458,25 @@
  14528. For better control, use the options below.
  14529. Fine tuning of the installation directories:
  14530. - --bindir=DIR user executables [EPREFIX/bin]
  14531. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  14532. - --libexecdir=DIR program executables [EPREFIX/libexec]
  14533. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  14534. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  14535. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  14536. - --libdir=DIR object code libraries [EPREFIX/lib]
  14537. - --includedir=DIR C header files [PREFIX/include]
  14538. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  14539. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  14540. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  14541. - --infodir=DIR info documentation [DATAROOTDIR/info]
  14542. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  14543. - --mandir=DIR man documentation [DATAROOTDIR/man]
  14544. - --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  14545. - --htmldir=DIR html documentation [DOCDIR]
  14546. - --dvidir=DIR dvi documentation [DOCDIR]
  14547. - --pdfdir=DIR pdf documentation [DOCDIR]
  14548. - --psdir=DIR ps documentation [DOCDIR]
  14549. + --bindir=DIR user executables [EPREFIX/bin]
  14550. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  14551. + --libexecdir=DIR program executables [EPREFIX/libexec]
  14552. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  14553. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  14554. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  14555. + --libdir=DIR object code libraries [EPREFIX/lib]
  14556. + --includedir=DIR C header files [PREFIX/include]
  14557. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  14558. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  14559. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  14560. + --infodir=DIR info documentation [DATAROOTDIR/info]
  14561. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  14562. + --mandir=DIR man documentation [DATAROOTDIR/man]
  14563. + --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  14564. + --htmldir=DIR html documentation [DOCDIR]
  14565. + --dvidir=DIR dvi documentation [DOCDIR]
  14566. + --pdfdir=DIR pdf documentation [DOCDIR]
  14567. + --psdir=DIR ps documentation [DOCDIR]
  14568. _ACEOF
  14569. cat <<\_ACEOF
  14570. @@ -1474,6 +1499,7 @@
  14571. cat <<\_ACEOF
  14572. Optional Features:
  14573. + --disable-option-checking ignore unrecognized --enable/--with options
  14574. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  14575. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  14576. --disable-elf disable builtin ELF support
  14577. @@ -1492,10 +1518,9 @@
  14578. Optional Packages:
  14579. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  14580. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  14581. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  14582. --with-pic try to use only PIC/non-PIC objects [default=use
  14583. both]
  14584. - --with-tags[=TAGS] include additional configurations [automatic]
  14585. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  14586. Some influential environment variables:
  14587. CC C compiler command
  14588. @@ -1503,14 +1528,9 @@
  14589. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  14590. nonstandard directory <lib dir>
  14591. LIBS libraries to pass to the linker, e.g. -l<library>
  14592. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  14593. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  14594. you have headers in a nonstandard directory <include dir>
  14595. CPP C preprocessor
  14596. - CXX C++ compiler command
  14597. - CXXFLAGS C++ compiler flags
  14598. - CXXCPP C++ preprocessor
  14599. - F77 Fortran 77 compiler command
  14600. - FFLAGS Fortran 77 compiler flags
  14601. Use these variables to override the choices made by `configure' or to help
  14602. it to find libraries and programs with nonstandard names/locations.
  14603. @@ -1523,15 +1543,17 @@
  14604. if test "$ac_init_help" = "recursive"; then
  14605. # If there are subdirs, report their specific --help.
  14606. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  14607. - test -d "$ac_dir" || continue
  14608. + test -d "$ac_dir" ||
  14609. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  14610. + continue
  14611. ac_builddir=.
  14612. case "$ac_dir" in
  14613. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14614. *)
  14615. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  14616. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14617. # A ".." for each directory in $ac_dir_suffix.
  14618. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  14619. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14620. case $ac_top_builddir_sub in
  14621. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14622. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14623. @@ -1567,7 +1589,7 @@
  14624. echo &&
  14625. $SHELL "$ac_srcdir/configure" --help=recursive
  14626. else
  14627. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  14628. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  14629. fi || ac_status=$?
  14630. cd "$ac_pwd" || { ac_status=$?; break; }
  14631. done
  14632. @@ -1577,409 +1599,1041 @@
  14633. if $ac_init_version; then
  14634. cat <<\_ACEOF
  14635. file configure 5.04
  14636. -generated by GNU Autoconf 2.61
  14637. +generated by GNU Autoconf 2.65
  14638. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  14639. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  14640. +Copyright (C) 2009 Free Software Foundation, Inc.
  14641. This configure script is free software; the Free Software Foundation
  14642. gives unlimited permission to copy, distribute and modify it.
  14643. _ACEOF
  14644. exit
  14645. fi
  14646. -cat >config.log <<_ACEOF
  14647. -This file contains any messages produced by compilers while
  14648. -running configure, to aid debugging if configure makes a mistake.
  14649. -It was created by file $as_me 5.04, which was
  14650. -generated by GNU Autoconf 2.61. Invocation command line was
  14651. -
  14652. - $ $0 $@
  14653. -
  14654. -_ACEOF
  14655. -exec 5>>config.log
  14656. +## ------------------------ ##
  14657. +## Autoconf initialization. ##
  14658. +## ------------------------ ##
  14659. +
  14660. +# ac_fn_c_try_compile LINENO
  14661. +# --------------------------
  14662. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  14663. +ac_fn_c_try_compile ()
  14664. {
  14665. -cat <<_ASUNAME
  14666. -## --------- ##
  14667. -## Platform. ##
  14668. -## --------- ##
  14669. -
  14670. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  14671. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  14672. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  14673. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  14674. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  14675. -
  14676. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  14677. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  14678. -
  14679. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  14680. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  14681. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  14682. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  14683. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  14684. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  14685. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  14686. -
  14687. -_ASUNAME
  14688. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14689. + rm -f conftest.$ac_objext
  14690. + if { { ac_try="$ac_compile"
  14691. +case "(($ac_try" in
  14692. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14693. + *) ac_try_echo=$ac_try;;
  14694. +esac
  14695. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14696. +$as_echo "$ac_try_echo"; } >&5
  14697. + (eval "$ac_compile") 2>conftest.err
  14698. + ac_status=$?
  14699. + if test -s conftest.err; then
  14700. + grep -v '^ *+' conftest.err >conftest.er1
  14701. + cat conftest.er1 >&5
  14702. + mv -f conftest.er1 conftest.err
  14703. + fi
  14704. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14705. + test $ac_status = 0; } && {
  14706. + test -z "$ac_c_werror_flag" ||
  14707. + test ! -s conftest.err
  14708. + } && test -s conftest.$ac_objext; then :
  14709. + ac_retval=0
  14710. +else
  14711. + $as_echo "$as_me: failed program was:" >&5
  14712. +sed 's/^/| /' conftest.$ac_ext >&5
  14713. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14714. -for as_dir in $PATH
  14715. -do
  14716. - IFS=$as_save_IFS
  14717. - test -z "$as_dir" && as_dir=.
  14718. - echo "PATH: $as_dir"
  14719. -done
  14720. -IFS=$as_save_IFS
  14721. + ac_retval=1
  14722. +fi
  14723. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14724. + as_fn_set_status $ac_retval
  14725. -} >&5
  14726. +} # ac_fn_c_try_compile
  14727. -cat >&5 <<_ACEOF
  14728. +# ac_fn_c_try_cpp LINENO
  14729. +# ----------------------
  14730. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  14731. +ac_fn_c_try_cpp ()
  14732. +{
  14733. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14734. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  14735. +case "(($ac_try" in
  14736. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14737. + *) ac_try_echo=$ac_try;;
  14738. +esac
  14739. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14740. +$as_echo "$ac_try_echo"; } >&5
  14741. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  14742. + ac_status=$?
  14743. + if test -s conftest.err; then
  14744. + grep -v '^ *+' conftest.err >conftest.er1
  14745. + cat conftest.er1 >&5
  14746. + mv -f conftest.er1 conftest.err
  14747. + fi
  14748. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14749. + test $ac_status = 0; } >/dev/null && {
  14750. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14751. + test ! -s conftest.err
  14752. + }; then :
  14753. + ac_retval=0
  14754. +else
  14755. + $as_echo "$as_me: failed program was:" >&5
  14756. +sed 's/^/| /' conftest.$ac_ext >&5
  14757. + ac_retval=1
  14758. +fi
  14759. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14760. + as_fn_set_status $ac_retval
  14761. -## ----------- ##
  14762. -## Core tests. ##
  14763. -## ----------- ##
  14764. +} # ac_fn_c_try_cpp
  14765. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  14766. +# -------------------------------------------------------
  14767. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  14768. +# the include files in INCLUDES and setting the cache variable VAR
  14769. +# accordingly.
  14770. +ac_fn_c_check_header_mongrel ()
  14771. +{
  14772. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14773. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14774. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14775. +$as_echo_n "checking for $2... " >&6; }
  14776. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14777. + $as_echo_n "(cached) " >&6
  14778. +fi
  14779. +eval ac_res=\$$3
  14780. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14781. +$as_echo "$ac_res" >&6; }
  14782. +else
  14783. + # Is the header compilable?
  14784. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  14785. +$as_echo_n "checking $2 usability... " >&6; }
  14786. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14787. +/* end confdefs.h. */
  14788. +$4
  14789. +#include <$2>
  14790. _ACEOF
  14791. +if ac_fn_c_try_compile "$LINENO"; then :
  14792. + ac_header_compiler=yes
  14793. +else
  14794. + ac_header_compiler=no
  14795. +fi
  14796. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14797. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  14798. +$as_echo "$ac_header_compiler" >&6; }
  14799. +# Is the header present?
  14800. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  14801. +$as_echo_n "checking $2 presence... " >&6; }
  14802. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14803. +/* end confdefs.h. */
  14804. +#include <$2>
  14805. +_ACEOF
  14806. +if ac_fn_c_try_cpp "$LINENO"; then :
  14807. + ac_header_preproc=yes
  14808. +else
  14809. + ac_header_preproc=no
  14810. +fi
  14811. +rm -f conftest.err conftest.$ac_ext
  14812. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  14813. +$as_echo "$ac_header_preproc" >&6; }
  14814. -# Keep a trace of the command line.
  14815. -# Strip out --no-create and --no-recursion so they do not pile up.
  14816. -# Strip out --silent because we don't want to record it for future runs.
  14817. -# Also quote any args containing shell meta-characters.
  14818. -# Make two passes to allow for proper duplicate-argument suppression.
  14819. -ac_configure_args=
  14820. -ac_configure_args0=
  14821. -ac_configure_args1=
  14822. -ac_must_keep_next=false
  14823. -for ac_pass in 1 2
  14824. -do
  14825. - for ac_arg
  14826. - do
  14827. - case $ac_arg in
  14828. - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  14829. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14830. - | -silent | --silent | --silen | --sile | --sil)
  14831. - continue ;;
  14832. - *\'*)
  14833. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14834. - esac
  14835. - case $ac_pass in
  14836. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  14837. - 2)
  14838. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  14839. - if test $ac_must_keep_next = true; then
  14840. - ac_must_keep_next=false # Got value, back to normal.
  14841. - else
  14842. - case $ac_arg in
  14843. - *=* | --config-cache | -C | -disable-* | --disable-* \
  14844. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  14845. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  14846. - | -with-* | --with-* | -without-* | --without-* | --x)
  14847. - case "$ac_configure_args0 " in
  14848. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  14849. - esac
  14850. - ;;
  14851. - -* ) ac_must_keep_next=true ;;
  14852. - esac
  14853. - fi
  14854. - ac_configure_args="$ac_configure_args '$ac_arg'"
  14855. - ;;
  14856. - esac
  14857. - done
  14858. -done
  14859. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  14860. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  14861. -
  14862. -# When interrupted or exit'd, cleanup temporary files, and complete
  14863. -# config.log. We remove comments because anyway the quotes in there
  14864. -# would cause problems or look ugly.
  14865. -# WARNING: Use '\'' to represent an apostrophe within the trap.
  14866. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  14867. -trap 'exit_status=$?
  14868. - # Save into config.log some information that might help in debugging.
  14869. - {
  14870. - echo
  14871. -
  14872. - cat <<\_ASBOX
  14873. -## ---------------- ##
  14874. -## Cache variables. ##
  14875. -## ---------------- ##
  14876. -_ASBOX
  14877. - echo
  14878. - # The following way of writing the cache mishandles newlines in values,
  14879. -(
  14880. - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  14881. - eval ac_val=\$$ac_var
  14882. - case $ac_val in #(
  14883. - *${as_nl}*)
  14884. - case $ac_var in #(
  14885. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  14886. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  14887. - esac
  14888. - case $ac_var in #(
  14889. - _ | IFS | as_nl) ;; #(
  14890. - *) $as_unset $ac_var ;;
  14891. - esac ;;
  14892. - esac
  14893. - done
  14894. - (set) 2>&1 |
  14895. - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  14896. - *${as_nl}ac_space=\ *)
  14897. - sed -n \
  14898. - "s/'\''/'\''\\\\'\'''\''/g;
  14899. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  14900. - ;; #(
  14901. - *)
  14902. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14903. - ;;
  14904. - esac |
  14905. - sort
  14906. -)
  14907. - echo
  14908. -
  14909. - cat <<\_ASBOX
  14910. -## ----------------- ##
  14911. -## Output variables. ##
  14912. -## ----------------- ##
  14913. +# So? What about this header?
  14914. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  14915. + yes:no: )
  14916. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  14917. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14918. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  14919. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  14920. + ;;
  14921. + no:yes:* )
  14922. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  14923. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  14924. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  14925. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  14926. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  14927. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  14928. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  14929. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  14930. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  14931. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  14932. +( cat <<\_ASBOX
  14933. +## ---------------------------------- ##
  14934. +## Report this to christos@astron.com ##
  14935. +## ---------------------------------- ##
  14936. _ASBOX
  14937. - echo
  14938. - for ac_var in $ac_subst_vars
  14939. - do
  14940. - eval ac_val=\$$ac_var
  14941. - case $ac_val in
  14942. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  14943. - esac
  14944. - echo "$ac_var='\''$ac_val'\''"
  14945. - done | sort
  14946. - echo
  14947. + ) | sed "s/^/$as_me: WARNING: /" >&2
  14948. + ;;
  14949. +esac
  14950. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  14951. +$as_echo_n "checking for $2... " >&6; }
  14952. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  14953. + $as_echo_n "(cached) " >&6
  14954. +else
  14955. + eval "$3=\$ac_header_compiler"
  14956. +fi
  14957. +eval ac_res=\$$3
  14958. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14959. +$as_echo "$ac_res" >&6; }
  14960. +fi
  14961. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  14962. - if test -n "$ac_subst_files"; then
  14963. - cat <<\_ASBOX
  14964. -## ------------------- ##
  14965. -## File substitutions. ##
  14966. -## ------------------- ##
  14967. -_ASBOX
  14968. - echo
  14969. - for ac_var in $ac_subst_files
  14970. - do
  14971. - eval ac_val=\$$ac_var
  14972. - case $ac_val in
  14973. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  14974. - esac
  14975. - echo "$ac_var='\''$ac_val'\''"
  14976. - done | sort
  14977. - echo
  14978. - fi
  14979. +} # ac_fn_c_check_header_mongrel
  14980. - if test -s confdefs.h; then
  14981. - cat <<\_ASBOX
  14982. -## ----------- ##
  14983. -## confdefs.h. ##
  14984. -## ----------- ##
  14985. -_ASBOX
  14986. - echo
  14987. - cat confdefs.h
  14988. - echo
  14989. - fi
  14990. - test "$ac_signal" != 0 &&
  14991. - echo "$as_me: caught signal $ac_signal"
  14992. - echo "$as_me: exit $exit_status"
  14993. - } >&5
  14994. - rm -f core *.core core.conftest.* &&
  14995. - rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  14996. - exit $exit_status
  14997. -' 0
  14998. -for ac_signal in 1 2 13 15; do
  14999. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  15000. -done
  15001. -ac_signal=0
  15002. +# ac_fn_c_try_run LINENO
  15003. +# ----------------------
  15004. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  15005. +# that executables *can* be run.
  15006. +ac_fn_c_try_run ()
  15007. +{
  15008. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15009. + if { { ac_try="$ac_link"
  15010. +case "(($ac_try" in
  15011. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15012. + *) ac_try_echo=$ac_try;;
  15013. +esac
  15014. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15015. +$as_echo "$ac_try_echo"; } >&5
  15016. + (eval "$ac_link") 2>&5
  15017. + ac_status=$?
  15018. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15019. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  15020. + { { case "(($ac_try" in
  15021. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15022. + *) ac_try_echo=$ac_try;;
  15023. +esac
  15024. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15025. +$as_echo "$ac_try_echo"; } >&5
  15026. + (eval "$ac_try") 2>&5
  15027. + ac_status=$?
  15028. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15029. + test $ac_status = 0; }; }; then :
  15030. + ac_retval=0
  15031. +else
  15032. + $as_echo "$as_me: program exited with status $ac_status" >&5
  15033. + $as_echo "$as_me: failed program was:" >&5
  15034. +sed 's/^/| /' conftest.$ac_ext >&5
  15035. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  15036. -rm -f -r conftest* confdefs.h
  15037. + ac_retval=$ac_status
  15038. +fi
  15039. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  15040. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15041. + as_fn_set_status $ac_retval
  15042. -# Predefined preprocessor variables.
  15043. +} # ac_fn_c_try_run
  15044. -cat >>confdefs.h <<_ACEOF
  15045. -#define PACKAGE_NAME "$PACKAGE_NAME"
  15046. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  15047. +# -------------------------------------------------------
  15048. +# Tests whether HEADER exists and can be compiled using the include files in
  15049. +# INCLUDES, setting the cache variable VAR accordingly.
  15050. +ac_fn_c_check_header_compile ()
  15051. +{
  15052. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15053. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  15054. +$as_echo_n "checking for $2... " >&6; }
  15055. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15056. + $as_echo_n "(cached) " >&6
  15057. +else
  15058. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15059. +/* end confdefs.h. */
  15060. +$4
  15061. +#include <$2>
  15062. _ACEOF
  15063. +if ac_fn_c_try_compile "$LINENO"; then :
  15064. + eval "$3=yes"
  15065. +else
  15066. + eval "$3=no"
  15067. +fi
  15068. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15069. +fi
  15070. +eval ac_res=\$$3
  15071. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15072. +$as_echo "$ac_res" >&6; }
  15073. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15074. +} # ac_fn_c_check_header_compile
  15075. -cat >>confdefs.h <<_ACEOF
  15076. -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  15077. -_ACEOF
  15078. +# ac_fn_c_try_link LINENO
  15079. +# -----------------------
  15080. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  15081. +ac_fn_c_try_link ()
  15082. +{
  15083. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15084. + rm -f conftest.$ac_objext conftest$ac_exeext
  15085. + if { { ac_try="$ac_link"
  15086. +case "(($ac_try" in
  15087. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15088. + *) ac_try_echo=$ac_try;;
  15089. +esac
  15090. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15091. +$as_echo "$ac_try_echo"; } >&5
  15092. + (eval "$ac_link") 2>conftest.err
  15093. + ac_status=$?
  15094. + if test -s conftest.err; then
  15095. + grep -v '^ *+' conftest.err >conftest.er1
  15096. + cat conftest.er1 >&5
  15097. + mv -f conftest.er1 conftest.err
  15098. + fi
  15099. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15100. + test $ac_status = 0; } && {
  15101. + test -z "$ac_c_werror_flag" ||
  15102. + test ! -s conftest.err
  15103. + } && test -s conftest$ac_exeext && {
  15104. + test "$cross_compiling" = yes ||
  15105. + $as_test_x conftest$ac_exeext
  15106. + }; then :
  15107. + ac_retval=0
  15108. +else
  15109. + $as_echo "$as_me: failed program was:" >&5
  15110. +sed 's/^/| /' conftest.$ac_ext >&5
  15111. + ac_retval=1
  15112. +fi
  15113. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  15114. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  15115. + # interfere with the next link command; also delete a directory that is
  15116. + # left behind by Apple's compiler. We do this before executing the actions.
  15117. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  15118. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15119. + as_fn_set_status $ac_retval
  15120. -cat >>confdefs.h <<_ACEOF
  15121. -#define PACKAGE_VERSION "$PACKAGE_VERSION"
  15122. -_ACEOF
  15123. +} # ac_fn_c_try_link
  15124. +# ac_fn_c_check_func LINENO FUNC VAR
  15125. +# ----------------------------------
  15126. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  15127. +ac_fn_c_check_func ()
  15128. +{
  15129. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15130. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  15131. +$as_echo_n "checking for $2... " >&6; }
  15132. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15133. + $as_echo_n "(cached) " >&6
  15134. +else
  15135. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15136. +/* end confdefs.h. */
  15137. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  15138. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15139. +#define $2 innocuous_$2
  15140. -cat >>confdefs.h <<_ACEOF
  15141. -#define PACKAGE_STRING "$PACKAGE_STRING"
  15142. -_ACEOF
  15143. +/* System header to define __stub macros and hopefully few prototypes,
  15144. + which can conflict with char $2 (); below.
  15145. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15146. + <limits.h> exists even on freestanding compilers. */
  15147. +#ifdef __STDC__
  15148. +# include <limits.h>
  15149. +#else
  15150. +# include <assert.h>
  15151. +#endif
  15152. -cat >>confdefs.h <<_ACEOF
  15153. -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  15154. -_ACEOF
  15155. +#undef $2
  15156. +/* Override any GCC internal prototype to avoid an error.
  15157. + Use char because int might match the return type of a GCC
  15158. + builtin and then its argument prototype would still apply. */
  15159. +#ifdef __cplusplus
  15160. +extern "C"
  15161. +#endif
  15162. +char $2 ();
  15163. +/* The GNU C library defines this for functions which it implements
  15164. + to always fail with ENOSYS. Some functions are actually named
  15165. + something starting with __ and the normal name is an alias. */
  15166. +#if defined __stub_$2 || defined __stub___$2
  15167. +choke me
  15168. +#endif
  15169. -# Let the site file select an alternate cache file if it wants to.
  15170. -# Prefer explicitly selected file to automatically selected ones.
  15171. -if test -n "$CONFIG_SITE"; then
  15172. - set x "$CONFIG_SITE"
  15173. -elif test "x$prefix" != xNONE; then
  15174. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  15175. +int
  15176. +main ()
  15177. +{
  15178. +return $2 ();
  15179. + ;
  15180. + return 0;
  15181. +}
  15182. +_ACEOF
  15183. +if ac_fn_c_try_link "$LINENO"; then :
  15184. + eval "$3=yes"
  15185. else
  15186. - set x "$ac_default_prefix/share/config.site" \
  15187. - "$ac_default_prefix/etc/config.site"
  15188. + eval "$3=no"
  15189. fi
  15190. -shift
  15191. -for ac_site_file
  15192. -do
  15193. - if test -r "$ac_site_file"; then
  15194. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  15195. -echo "$as_me: loading site script $ac_site_file" >&6;}
  15196. - sed 's/^/| /' "$ac_site_file" >&5
  15197. - . "$ac_site_file"
  15198. - fi
  15199. -done
  15200. -
  15201. -if test -r "$cache_file"; then
  15202. - # Some versions of bash will fail to source /dev/null (special
  15203. - # files actually), so we avoid doing that.
  15204. - if test -f "$cache_file"; then
  15205. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  15206. -echo "$as_me: loading cache $cache_file" >&6;}
  15207. - case $cache_file in
  15208. - [\\/]* | ?:[\\/]* ) . "$cache_file";;
  15209. - *) . "./$cache_file";;
  15210. - esac
  15211. - fi
  15212. -else
  15213. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  15214. -echo "$as_me: creating cache $cache_file" >&6;}
  15215. - >$cache_file
  15216. -fi
  15217. -
  15218. -# Check that the precious variables saved in the cache have kept the same
  15219. -# value.
  15220. -ac_cache_corrupted=false
  15221. -for ac_var in $ac_precious_vars; do
  15222. - eval ac_old_set=\$ac_cv_env_${ac_var}_set
  15223. - eval ac_new_set=\$ac_env_${ac_var}_set
  15224. - eval ac_old_val=\$ac_cv_env_${ac_var}_value
  15225. - eval ac_new_val=\$ac_env_${ac_var}_value
  15226. - case $ac_old_set,$ac_new_set in
  15227. - set,)
  15228. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  15229. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  15230. - ac_cache_corrupted=: ;;
  15231. - ,set)
  15232. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  15233. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  15234. - ac_cache_corrupted=: ;;
  15235. - ,);;
  15236. - *)
  15237. - if test "x$ac_old_val" != "x$ac_new_val"; then
  15238. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  15239. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  15240. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  15241. -echo "$as_me: former value: $ac_old_val" >&2;}
  15242. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  15243. -echo "$as_me: current value: $ac_new_val" >&2;}
  15244. - ac_cache_corrupted=:
  15245. - fi;;
  15246. - esac
  15247. - # Pass precious variables to config.status.
  15248. - if test "$ac_new_set" = set; then
  15249. - case $ac_new_val in
  15250. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  15251. - *) ac_arg=$ac_var=$ac_new_val ;;
  15252. - esac
  15253. - case " $ac_configure_args " in
  15254. - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  15255. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  15256. - esac
  15257. - fi
  15258. -done
  15259. -if $ac_cache_corrupted; then
  15260. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  15261. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  15262. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  15263. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  15264. - { (exit 1); exit 1; }; }
  15265. +rm -f core conftest.err conftest.$ac_objext \
  15266. + conftest$ac_exeext conftest.$ac_ext
  15267. fi
  15268. +eval ac_res=\$$3
  15269. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15270. +$as_echo "$ac_res" >&6; }
  15271. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15272. +} # ac_fn_c_check_func
  15273. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  15274. +# -------------------------------------------
  15275. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  15276. +# variable VAR accordingly.
  15277. +ac_fn_c_check_type ()
  15278. +{
  15279. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15280. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  15281. +$as_echo_n "checking for $2... " >&6; }
  15282. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15283. + $as_echo_n "(cached) " >&6
  15284. +else
  15285. + eval "$3=no"
  15286. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15287. +/* end confdefs.h. */
  15288. +$4
  15289. +int
  15290. +main ()
  15291. +{
  15292. +if (sizeof ($2))
  15293. + return 0;
  15294. + ;
  15295. + return 0;
  15296. +}
  15297. +_ACEOF
  15298. +if ac_fn_c_try_compile "$LINENO"; then :
  15299. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15300. +/* end confdefs.h. */
  15301. +$4
  15302. +int
  15303. +main ()
  15304. +{
  15305. +if (sizeof (($2)))
  15306. + return 0;
  15307. + ;
  15308. + return 0;
  15309. +}
  15310. +_ACEOF
  15311. +if ac_fn_c_try_compile "$LINENO"; then :
  15312. +else
  15313. + eval "$3=yes"
  15314. +fi
  15315. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15316. +fi
  15317. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15318. +fi
  15319. +eval ac_res=\$$3
  15320. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15321. +$as_echo "$ac_res" >&6; }
  15322. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15323. +} # ac_fn_c_check_type
  15324. +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  15325. +# ----------------------------------------------------
  15326. +# Tries to find if the field MEMBER exists in type AGGR, after including
  15327. +# INCLUDES, setting cache variable VAR accordingly.
  15328. +ac_fn_c_check_member ()
  15329. +{
  15330. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15331. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  15332. +$as_echo_n "checking for $2.$3... " >&6; }
  15333. +if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  15334. + $as_echo_n "(cached) " >&6
  15335. +else
  15336. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15337. +/* end confdefs.h. */
  15338. +$5
  15339. +int
  15340. +main ()
  15341. +{
  15342. +static $2 ac_aggr;
  15343. +if (ac_aggr.$3)
  15344. +return 0;
  15345. + ;
  15346. + return 0;
  15347. +}
  15348. +_ACEOF
  15349. +if ac_fn_c_try_compile "$LINENO"; then :
  15350. + eval "$4=yes"
  15351. +else
  15352. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15353. +/* end confdefs.h. */
  15354. +$5
  15355. +int
  15356. +main ()
  15357. +{
  15358. +static $2 ac_aggr;
  15359. +if (sizeof ac_aggr.$3)
  15360. +return 0;
  15361. + ;
  15362. + return 0;
  15363. +}
  15364. +_ACEOF
  15365. +if ac_fn_c_try_compile "$LINENO"; then :
  15366. + eval "$4=yes"
  15367. +else
  15368. + eval "$4=no"
  15369. +fi
  15370. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15371. +fi
  15372. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15373. +fi
  15374. +eval ac_res=\$$4
  15375. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15376. +$as_echo "$ac_res" >&6; }
  15377. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15378. +} # ac_fn_c_check_member
  15379. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  15380. +# --------------------------------------------
  15381. +# Tries to find the compile-time value of EXPR in a program that includes
  15382. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  15383. +# computed
  15384. +ac_fn_c_compute_int ()
  15385. +{
  15386. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15387. + if test "$cross_compiling" = yes; then
  15388. + # Depending upon the size, compute the lo and hi bounds.
  15389. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15390. +/* end confdefs.h. */
  15391. +$4
  15392. +int
  15393. +main ()
  15394. +{
  15395. +static int test_array [1 - 2 * !(($2) >= 0)];
  15396. +test_array [0] = 0
  15397. + ;
  15398. + return 0;
  15399. +}
  15400. +_ACEOF
  15401. +if ac_fn_c_try_compile "$LINENO"; then :
  15402. + ac_lo=0 ac_mid=0
  15403. + while :; do
  15404. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15405. +/* end confdefs.h. */
  15406. +$4
  15407. +int
  15408. +main ()
  15409. +{
  15410. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  15411. +test_array [0] = 0
  15412. + ;
  15413. + return 0;
  15414. +}
  15415. +_ACEOF
  15416. +if ac_fn_c_try_compile "$LINENO"; then :
  15417. + ac_hi=$ac_mid; break
  15418. +else
  15419. + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  15420. + if test $ac_lo -le $ac_mid; then
  15421. + ac_lo= ac_hi=
  15422. + break
  15423. + fi
  15424. + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  15425. +fi
  15426. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15427. + done
  15428. +else
  15429. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15430. +/* end confdefs.h. */
  15431. +$4
  15432. +int
  15433. +main ()
  15434. +{
  15435. +static int test_array [1 - 2 * !(($2) < 0)];
  15436. +test_array [0] = 0
  15437. + ;
  15438. + return 0;
  15439. +}
  15440. +_ACEOF
  15441. +if ac_fn_c_try_compile "$LINENO"; then :
  15442. + ac_hi=-1 ac_mid=-1
  15443. + while :; do
  15444. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15445. +/* end confdefs.h. */
  15446. +$4
  15447. +int
  15448. +main ()
  15449. +{
  15450. +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  15451. +test_array [0] = 0
  15452. + ;
  15453. + return 0;
  15454. +}
  15455. +_ACEOF
  15456. +if ac_fn_c_try_compile "$LINENO"; then :
  15457. + ac_lo=$ac_mid; break
  15458. +else
  15459. + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  15460. + if test $ac_mid -le $ac_hi; then
  15461. + ac_lo= ac_hi=
  15462. + break
  15463. + fi
  15464. + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  15465. +fi
  15466. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15467. + done
  15468. +else
  15469. + ac_lo= ac_hi=
  15470. +fi
  15471. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15472. +fi
  15473. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15474. +# Binary search between lo and hi bounds.
  15475. +while test "x$ac_lo" != "x$ac_hi"; do
  15476. + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  15477. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15478. +/* end confdefs.h. */
  15479. +$4
  15480. +int
  15481. +main ()
  15482. +{
  15483. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  15484. +test_array [0] = 0
  15485. + ;
  15486. + return 0;
  15487. +}
  15488. +_ACEOF
  15489. +if ac_fn_c_try_compile "$LINENO"; then :
  15490. + ac_hi=$ac_mid
  15491. +else
  15492. + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  15493. +fi
  15494. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15495. +done
  15496. +case $ac_lo in #((
  15497. +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  15498. +'') ac_retval=1 ;;
  15499. +esac
  15500. + else
  15501. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15502. +/* end confdefs.h. */
  15503. +$4
  15504. +static long int longval () { return $2; }
  15505. +static unsigned long int ulongval () { return $2; }
  15506. +#include <stdio.h>
  15507. +#include <stdlib.h>
  15508. +int
  15509. +main ()
  15510. +{
  15511. + FILE *f = fopen ("conftest.val", "w");
  15512. + if (! f)
  15513. + return 1;
  15514. + if (($2) < 0)
  15515. + {
  15516. + long int i = longval ();
  15517. + if (i != ($2))
  15518. + return 1;
  15519. + fprintf (f, "%ld", i);
  15520. + }
  15521. + else
  15522. + {
  15523. + unsigned long int i = ulongval ();
  15524. + if (i != ($2))
  15525. + return 1;
  15526. + fprintf (f, "%lu", i);
  15527. + }
  15528. + /* Do not output a trailing newline, as this causes \r\n confusion
  15529. + on some platforms. */
  15530. + return ferror (f) || fclose (f) != 0;
  15531. + ;
  15532. + return 0;
  15533. +}
  15534. +_ACEOF
  15535. +if ac_fn_c_try_run "$LINENO"; then :
  15536. + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  15537. +else
  15538. + ac_retval=1
  15539. +fi
  15540. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15541. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  15542. +rm -f conftest.val
  15543. + fi
  15544. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15545. + as_fn_set_status $ac_retval
  15546. +} # ac_fn_c_compute_int
  15547. +cat >config.log <<_ACEOF
  15548. +This file contains any messages produced by compilers while
  15549. +running configure, to aid debugging if configure makes a mistake.
  15550. +It was created by file $as_me 5.04, which was
  15551. +generated by GNU Autoconf 2.65. Invocation command line was
  15552. + $ $0 $@
  15553. +_ACEOF
  15554. +exec 5>>config.log
  15555. +{
  15556. +cat <<_ASUNAME
  15557. +## --------- ##
  15558. +## Platform. ##
  15559. +## --------- ##
  15560. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  15561. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  15562. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  15563. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  15564. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  15565. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  15566. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  15567. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  15568. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  15569. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  15570. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  15571. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  15572. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  15573. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  15574. +_ASUNAME
  15575. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15576. +for as_dir in $PATH
  15577. +do
  15578. + IFS=$as_save_IFS
  15579. + test -z "$as_dir" && as_dir=.
  15580. + $as_echo "PATH: $as_dir"
  15581. + done
  15582. +IFS=$as_save_IFS
  15583. -ac_ext=c
  15584. -ac_cpp='$CPP $CPPFLAGS'
  15585. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15586. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15587. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15588. +} >&5
  15589. +cat >&5 <<_ACEOF
  15590. -am__api_version='1.10'
  15591. -ac_aux_dir=
  15592. -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  15593. - if test -f "$ac_dir/install-sh"; then
  15594. - ac_aux_dir=$ac_dir
  15595. - ac_install_sh="$ac_aux_dir/install-sh -c"
  15596. - break
  15597. - elif test -f "$ac_dir/install.sh"; then
  15598. - ac_aux_dir=$ac_dir
  15599. - ac_install_sh="$ac_aux_dir/install.sh -c"
  15600. - break
  15601. - elif test -f "$ac_dir/shtool"; then
  15602. - ac_aux_dir=$ac_dir
  15603. - ac_install_sh="$ac_aux_dir/shtool install -c"
  15604. - break
  15605. - fi
  15606. -done
  15607. -if test -z "$ac_aux_dir"; then
  15608. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  15609. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  15610. - { (exit 1); exit 1; }; }
  15611. -fi
  15612. +## ----------- ##
  15613. +## Core tests. ##
  15614. +## ----------- ##
  15615. -# These three variables are undocumented and unsupported,
  15616. -# and are intended to be withdrawn in a future Autoconf release.
  15617. -# They can cause serious problems if a builder's source tree is in a directory
  15618. -# whose full name contains unusual characters.
  15619. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  15620. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  15621. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  15622. +_ACEOF
  15623. -# Find a good install program. We prefer a C program (faster),
  15624. -# so one script is as good as another. But avoid the broken or
  15625. -# incompatible versions:
  15626. -# SysV /etc/install, /usr/sbin/install
  15627. +# Keep a trace of the command line.
  15628. +# Strip out --no-create and --no-recursion so they do not pile up.
  15629. +# Strip out --silent because we don't want to record it for future runs.
  15630. +# Also quote any args containing shell meta-characters.
  15631. +# Make two passes to allow for proper duplicate-argument suppression.
  15632. +ac_configure_args=
  15633. +ac_configure_args0=
  15634. +ac_configure_args1=
  15635. +ac_must_keep_next=false
  15636. +for ac_pass in 1 2
  15637. +do
  15638. + for ac_arg
  15639. + do
  15640. + case $ac_arg in
  15641. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  15642. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15643. + | -silent | --silent | --silen | --sile | --sil)
  15644. + continue ;;
  15645. + *\'*)
  15646. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15647. + esac
  15648. + case $ac_pass in
  15649. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  15650. + 2)
  15651. + as_fn_append ac_configure_args1 " '$ac_arg'"
  15652. + if test $ac_must_keep_next = true; then
  15653. + ac_must_keep_next=false # Got value, back to normal.
  15654. + else
  15655. + case $ac_arg in
  15656. + *=* | --config-cache | -C | -disable-* | --disable-* \
  15657. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  15658. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  15659. + | -with-* | --with-* | -without-* | --without-* | --x)
  15660. + case "$ac_configure_args0 " in
  15661. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  15662. + esac
  15663. + ;;
  15664. + -* ) ac_must_keep_next=true ;;
  15665. + esac
  15666. + fi
  15667. + as_fn_append ac_configure_args " '$ac_arg'"
  15668. + ;;
  15669. + esac
  15670. + done
  15671. +done
  15672. +{ ac_configure_args0=; unset ac_configure_args0;}
  15673. +{ ac_configure_args1=; unset ac_configure_args1;}
  15674. +
  15675. +# When interrupted or exit'd, cleanup temporary files, and complete
  15676. +# config.log. We remove comments because anyway the quotes in there
  15677. +# would cause problems or look ugly.
  15678. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  15679. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  15680. +trap 'exit_status=$?
  15681. + # Save into config.log some information that might help in debugging.
  15682. + {
  15683. + echo
  15684. +
  15685. + cat <<\_ASBOX
  15686. +## ---------------- ##
  15687. +## Cache variables. ##
  15688. +## ---------------- ##
  15689. +_ASBOX
  15690. + echo
  15691. + # The following way of writing the cache mishandles newlines in values,
  15692. +(
  15693. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  15694. + eval ac_val=\$$ac_var
  15695. + case $ac_val in #(
  15696. + *${as_nl}*)
  15697. + case $ac_var in #(
  15698. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15699. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15700. + esac
  15701. + case $ac_var in #(
  15702. + _ | IFS | as_nl) ;; #(
  15703. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15704. + *) { eval $ac_var=; unset $ac_var;} ;;
  15705. + esac ;;
  15706. + esac
  15707. + done
  15708. + (set) 2>&1 |
  15709. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  15710. + *${as_nl}ac_space=\ *)
  15711. + sed -n \
  15712. + "s/'\''/'\''\\\\'\'''\''/g;
  15713. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  15714. + ;; #(
  15715. + *)
  15716. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15717. + ;;
  15718. + esac |
  15719. + sort
  15720. +)
  15721. + echo
  15722. +
  15723. + cat <<\_ASBOX
  15724. +## ----------------- ##
  15725. +## Output variables. ##
  15726. +## ----------------- ##
  15727. +_ASBOX
  15728. + echo
  15729. + for ac_var in $ac_subst_vars
  15730. + do
  15731. + eval ac_val=\$$ac_var
  15732. + case $ac_val in
  15733. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  15734. + esac
  15735. + $as_echo "$ac_var='\''$ac_val'\''"
  15736. + done | sort
  15737. + echo
  15738. +
  15739. + if test -n "$ac_subst_files"; then
  15740. + cat <<\_ASBOX
  15741. +## ------------------- ##
  15742. +## File substitutions. ##
  15743. +## ------------------- ##
  15744. +_ASBOX
  15745. + echo
  15746. + for ac_var in $ac_subst_files
  15747. + do
  15748. + eval ac_val=\$$ac_var
  15749. + case $ac_val in
  15750. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  15751. + esac
  15752. + $as_echo "$ac_var='\''$ac_val'\''"
  15753. + done | sort
  15754. + echo
  15755. + fi
  15756. +
  15757. + if test -s confdefs.h; then
  15758. + cat <<\_ASBOX
  15759. +## ----------- ##
  15760. +## confdefs.h. ##
  15761. +## ----------- ##
  15762. +_ASBOX
  15763. + echo
  15764. + cat confdefs.h
  15765. + echo
  15766. + fi
  15767. + test "$ac_signal" != 0 &&
  15768. + $as_echo "$as_me: caught signal $ac_signal"
  15769. + $as_echo "$as_me: exit $exit_status"
  15770. + } >&5
  15771. + rm -f core *.core core.conftest.* &&
  15772. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  15773. + exit $exit_status
  15774. +' 0
  15775. +for ac_signal in 1 2 13 15; do
  15776. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  15777. +done
  15778. +ac_signal=0
  15779. +
  15780. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  15781. +rm -f -r conftest* confdefs.h
  15782. +
  15783. +$as_echo "/* confdefs.h */" > confdefs.h
  15784. +
  15785. +# Predefined preprocessor variables.
  15786. +
  15787. +cat >>confdefs.h <<_ACEOF
  15788. +#define PACKAGE_NAME "$PACKAGE_NAME"
  15789. +_ACEOF
  15790. +
  15791. +cat >>confdefs.h <<_ACEOF
  15792. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  15793. +_ACEOF
  15794. +
  15795. +cat >>confdefs.h <<_ACEOF
  15796. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  15797. +_ACEOF
  15798. +
  15799. +cat >>confdefs.h <<_ACEOF
  15800. +#define PACKAGE_STRING "$PACKAGE_STRING"
  15801. +_ACEOF
  15802. +
  15803. +cat >>confdefs.h <<_ACEOF
  15804. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  15805. +_ACEOF
  15806. +
  15807. +cat >>confdefs.h <<_ACEOF
  15808. +#define PACKAGE_URL "$PACKAGE_URL"
  15809. +_ACEOF
  15810. +
  15811. +
  15812. +# Let the site file select an alternate cache file if it wants to.
  15813. +# Prefer an explicitly selected file to automatically selected ones.
  15814. +ac_site_file1=NONE
  15815. +ac_site_file2=NONE
  15816. +if test -n "$CONFIG_SITE"; then
  15817. + ac_site_file1=$CONFIG_SITE
  15818. +elif test "x$prefix" != xNONE; then
  15819. + ac_site_file1=$prefix/share/config.site
  15820. + ac_site_file2=$prefix/etc/config.site
  15821. +else
  15822. + ac_site_file1=$ac_default_prefix/share/config.site
  15823. + ac_site_file2=$ac_default_prefix/etc/config.site
  15824. +fi
  15825. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  15826. +do
  15827. + test "x$ac_site_file" = xNONE && continue
  15828. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  15829. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  15830. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  15831. + sed 's/^/| /' "$ac_site_file" >&5
  15832. + . "$ac_site_file"
  15833. + fi
  15834. +done
  15835. +
  15836. +if test -r "$cache_file"; then
  15837. + # Some versions of bash will fail to source /dev/null (special files
  15838. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  15839. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  15840. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  15841. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  15842. + case $cache_file in
  15843. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  15844. + *) . "./$cache_file";;
  15845. + esac
  15846. + fi
  15847. +else
  15848. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  15849. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  15850. + >$cache_file
  15851. +fi
  15852. +
  15853. +# Check that the precious variables saved in the cache have kept the same
  15854. +# value.
  15855. +ac_cache_corrupted=false
  15856. +for ac_var in $ac_precious_vars; do
  15857. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  15858. + eval ac_new_set=\$ac_env_${ac_var}_set
  15859. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  15860. + eval ac_new_val=\$ac_env_${ac_var}_value
  15861. + case $ac_old_set,$ac_new_set in
  15862. + set,)
  15863. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  15864. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  15865. + ac_cache_corrupted=: ;;
  15866. + ,set)
  15867. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  15868. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  15869. + ac_cache_corrupted=: ;;
  15870. + ,);;
  15871. + *)
  15872. + if test "x$ac_old_val" != "x$ac_new_val"; then
  15873. + # differences in whitespace do not lead to failure.
  15874. + ac_old_val_w=`echo x $ac_old_val`
  15875. + ac_new_val_w=`echo x $ac_new_val`
  15876. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  15877. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  15878. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  15879. + ac_cache_corrupted=:
  15880. + else
  15881. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  15882. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  15883. + eval $ac_var=\$ac_old_val
  15884. + fi
  15885. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  15886. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  15887. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  15888. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  15889. + fi;;
  15890. + esac
  15891. + # Pass precious variables to config.status.
  15892. + if test "$ac_new_set" = set; then
  15893. + case $ac_new_val in
  15894. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  15895. + *) ac_arg=$ac_var=$ac_new_val ;;
  15896. + esac
  15897. + case " $ac_configure_args " in
  15898. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  15899. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  15900. + esac
  15901. + fi
  15902. +done
  15903. +if $ac_cache_corrupted; then
  15904. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15905. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15906. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  15907. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  15908. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  15909. +fi
  15910. +## -------------------- ##
  15911. +## Main body of script. ##
  15912. +## -------------------- ##
  15913. +
  15914. +ac_ext=c
  15915. +ac_cpp='$CPP $CPPFLAGS'
  15916. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15917. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15918. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15919. +
  15920. +
  15921. +am__api_version='1.11'
  15922. +
  15923. +ac_aux_dir=
  15924. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  15925. + for ac_t in install-sh install.sh shtool; do
  15926. + if test -f "$ac_dir/$ac_t"; then
  15927. + ac_aux_dir=$ac_dir
  15928. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  15929. + break 2
  15930. + fi
  15931. + done
  15932. +done
  15933. +if test -z "$ac_aux_dir"; then
  15934. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  15935. +fi
  15936. +
  15937. +# These three variables are undocumented and unsupported,
  15938. +# and are intended to be withdrawn in a future Autoconf release.
  15939. +# They can cause serious problems if a builder's source tree is in a directory
  15940. +# whose full name contains unusual characters.
  15941. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  15942. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  15943. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  15944. +
  15945. +
  15946. +# Find a good install program. We prefer a C program (faster),
  15947. +# so one script is as good as another. But avoid the broken or
  15948. +# incompatible versions:
  15949. +# SysV /etc/install, /usr/sbin/install
  15950. # SunOS /usr/etc/install
  15951. # IRIX /sbin/install
  15952. # AIX /bin/install
  15953. @@ -1989,22 +2643,23 @@
  15954. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15955. # OS/2's system install, which has a completely different semantic
  15956. # ./install, which can be erroneously created by make from ./install.sh.
  15957. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  15958. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  15959. +# Reject install programs that cannot install multiple files.
  15960. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15961. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  15962. if test -z "$INSTALL"; then
  15963. -if test "${ac_cv_path_install+set}" = set; then
  15964. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15965. +if test "${ac_cv_path_install+set}" = set; then :
  15966. + $as_echo_n "(cached) " >&6
  15967. else
  15968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15969. for as_dir in $PATH
  15970. do
  15971. IFS=$as_save_IFS
  15972. test -z "$as_dir" && as_dir=.
  15973. - # Account for people who put trailing slashes in PATH elements.
  15974. -case $as_dir/ in
  15975. - ./ | .// | /cC/* | \
  15976. + # Account for people who put trailing slashes in PATH elements.
  15977. +case $as_dir/ in #((
  15978. + ./ | .// | /[cC]/* | \
  15979. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15980. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  15981. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15982. /usr/ucb/* ) ;;
  15983. *)
  15984. # OSF1 and SCO ODT 3.0 have their own names for install.
  15985. @@ -2022,17 +2677,29 @@
  15986. # program-specific install script used by HP pwplus--don't use.
  15987. :
  15988. else
  15989. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  15990. - break 3
  15991. + rm -rf conftest.one conftest.two conftest.dir
  15992. + echo one > conftest.one
  15993. + echo two > conftest.two
  15994. + mkdir conftest.dir
  15995. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  15996. + test -s conftest.one && test -s conftest.two &&
  15997. + test -s conftest.dir/conftest.one &&
  15998. + test -s conftest.dir/conftest.two
  15999. + then
  16000. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16001. + break 3
  16002. + fi
  16003. fi
  16004. fi
  16005. done
  16006. done
  16007. ;;
  16008. esac
  16009. -done
  16010. +
  16011. + done
  16012. IFS=$as_save_IFS
  16013. +rm -rf conftest.one conftest.two conftest.dir
  16014. fi
  16015. if test "${ac_cv_path_install+set}" = set; then
  16016. @@ -2045,8 +2712,8 @@
  16017. INSTALL=$ac_install_sh
  16018. fi
  16019. fi
  16020. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  16021. -echo "${ECHO_T}$INSTALL" >&6; }
  16022. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  16023. +$as_echo "$INSTALL" >&6; }
  16024. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  16025. # It thinks the first close brace ends the variable substitution.
  16026. @@ -2056,21 +2723,34 @@
  16027. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  16028. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  16029. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  16030. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  16031. +$as_echo_n "checking whether build environment is sane... " >&6; }
  16032. # Just in case
  16033. sleep 1
  16034. echo timestamp > conftest.file
  16035. -# Do `set' in a subshell so we don't clobber the current shell's
  16036. -# arguments. Must try -L first in case configure is actually a
  16037. -# symlink; some systems play weird games with the mod time of symlinks
  16038. -# (eg FreeBSD returns the mod time of the symlink's containing
  16039. +# Reject unsafe characters in $srcdir or the absolute working directory
  16040. +# name. Accept space and tab only in the latter.
  16041. +am_lf='
  16042. +'
  16043. +case `pwd` in
  16044. + *[\\\"\#\$\&\'\`$am_lf]*)
  16045. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  16046. +esac
  16047. +case $srcdir in
  16048. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  16049. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  16050. +esac
  16051. +
  16052. +# Do `set' in a subshell so we don't clobber the current shell's
  16053. +# arguments. Must try -L first in case configure is actually a
  16054. +# symlink; some systems play weird games with the mod time of symlinks
  16055. +# (eg FreeBSD returns the mod time of the symlink's containing
  16056. # directory).
  16057. if (
  16058. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  16059. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  16060. if test "$*" = "X"; then
  16061. # -L didn't work.
  16062. - set X `ls -t $srcdir/configure conftest.file`
  16063. + set X `ls -t "$srcdir/configure" conftest.file`
  16064. fi
  16065. rm -f conftest.file
  16066. if test "$*" != "X $srcdir/configure conftest.file" \
  16067. @@ -2080,11 +2760,8 @@
  16068. # if, for instance, CONFIG_SHELL is bash and it inherits a
  16069. # broken ls alias from the environment. This has actually
  16070. # happened. Such a system could not be considered "sane".
  16071. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  16072. -alias in your environment" >&5
  16073. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  16074. -alias in your environment" >&2;}
  16075. - { (exit 1); exit 1; }; }
  16076. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  16077. +alias in your environment" "$LINENO" 5
  16078. fi
  16079. test "$2" = conftest.file
  16080. @@ -2093,52 +2770,162 @@
  16081. # Ok.
  16082. :
  16083. else
  16084. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  16085. -Check your system clock" >&5
  16086. -echo "$as_me: error: newly created file is older than distributed files!
  16087. -Check your system clock" >&2;}
  16088. - { (exit 1); exit 1; }; }
  16089. + as_fn_error "newly created file is older than distributed files!
  16090. +Check your system clock" "$LINENO" 5
  16091. fi
  16092. -{ echo "$as_me:$LINENO: result: yes" >&5
  16093. -echo "${ECHO_T}yes" >&6; }
  16094. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16095. +$as_echo "yes" >&6; }
  16096. test "$program_prefix" != NONE &&
  16097. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  16098. # Use a double $ so make ignores it.
  16099. test "$program_suffix" != NONE &&
  16100. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  16101. -# Double any \ or $. echo might interpret backslashes.
  16102. +# Double any \ or $.
  16103. # By default was `s,x,x', remove it if useless.
  16104. -cat <<\_ACEOF >conftest.sed
  16105. -s/[\\$]/&&/g;s/;s,x,x,$//
  16106. -_ACEOF
  16107. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  16108. -rm -f conftest.sed
  16109. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  16110. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  16111. # expand $ac_aux_dir to an absolute path
  16112. am_aux_dir=`cd $ac_aux_dir && pwd`
  16113. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  16114. +if test x"${MISSING+set}" != xset; then
  16115. + case $am_aux_dir in
  16116. + *\ * | *\ *)
  16117. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  16118. + *)
  16119. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  16120. + esac
  16121. +fi
  16122. # Use eval to expand $SHELL
  16123. if eval "$MISSING --run true"; then
  16124. am_missing_run="$MISSING --run "
  16125. else
  16126. am_missing_run=
  16127. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  16128. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  16129. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  16130. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  16131. +fi
  16132. +
  16133. +if test x"${install_sh}" != xset; then
  16134. + case $am_aux_dir in
  16135. + *\ * | *\ *)
  16136. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  16137. + *)
  16138. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  16139. + esac
  16140. +fi
  16141. +
  16142. +# Installed binaries are usually stripped using `strip' when the user
  16143. +# run `make install-strip'. However `strip' might not be the right
  16144. +# tool to use in cross-compilation environments, therefore Automake
  16145. +# will honor the `STRIP' environment variable to overrule this program.
  16146. +if test "$cross_compiling" != no; then
  16147. + if test -n "$ac_tool_prefix"; then
  16148. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16149. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  16150. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16151. +$as_echo_n "checking for $ac_word... " >&6; }
  16152. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  16153. + $as_echo_n "(cached) " >&6
  16154. +else
  16155. + if test -n "$STRIP"; then
  16156. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16157. +else
  16158. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16159. +for as_dir in $PATH
  16160. +do
  16161. + IFS=$as_save_IFS
  16162. + test -z "$as_dir" && as_dir=.
  16163. + for ac_exec_ext in '' $ac_executable_extensions; do
  16164. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16165. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16166. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16167. + break 2
  16168. + fi
  16169. +done
  16170. + done
  16171. +IFS=$as_save_IFS
  16172. +
  16173. +fi
  16174. +fi
  16175. +STRIP=$ac_cv_prog_STRIP
  16176. +if test -n "$STRIP"; then
  16177. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  16178. +$as_echo "$STRIP" >&6; }
  16179. +else
  16180. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16181. +$as_echo "no" >&6; }
  16182. +fi
  16183. +
  16184. +
  16185. +fi
  16186. +if test -z "$ac_cv_prog_STRIP"; then
  16187. + ac_ct_STRIP=$STRIP
  16188. + # Extract the first word of "strip", so it can be a program name with args.
  16189. +set dummy strip; ac_word=$2
  16190. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16191. +$as_echo_n "checking for $ac_word... " >&6; }
  16192. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  16193. + $as_echo_n "(cached) " >&6
  16194. +else
  16195. + if test -n "$ac_ct_STRIP"; then
  16196. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  16197. +else
  16198. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16199. +for as_dir in $PATH
  16200. +do
  16201. + IFS=$as_save_IFS
  16202. + test -z "$as_dir" && as_dir=.
  16203. + for ac_exec_ext in '' $ac_executable_extensions; do
  16204. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16205. + ac_cv_prog_ac_ct_STRIP="strip"
  16206. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16207. + break 2
  16208. + fi
  16209. +done
  16210. + done
  16211. +IFS=$as_save_IFS
  16212. +
  16213. +fi
  16214. +fi
  16215. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  16216. +if test -n "$ac_ct_STRIP"; then
  16217. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  16218. +$as_echo "$ac_ct_STRIP" >&6; }
  16219. +else
  16220. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16221. +$as_echo "no" >&6; }
  16222. +fi
  16223. +
  16224. + if test "x$ac_ct_STRIP" = x; then
  16225. + STRIP=":"
  16226. + else
  16227. + case $cross_compiling:$ac_tool_warned in
  16228. +yes:)
  16229. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16230. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16231. +ac_tool_warned=yes ;;
  16232. +esac
  16233. + STRIP=$ac_ct_STRIP
  16234. + fi
  16235. +else
  16236. + STRIP="$ac_cv_prog_STRIP"
  16237. +fi
  16238. +
  16239. fi
  16240. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  16241. -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  16242. -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  16243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  16244. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  16245. if test -z "$MKDIR_P"; then
  16246. - if test "${ac_cv_path_mkdir+set}" = set; then
  16247. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16248. + if test "${ac_cv_path_mkdir+set}" = set; then :
  16249. + $as_echo_n "(cached) " >&6
  16250. else
  16251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16252. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  16253. do
  16254. IFS=$as_save_IFS
  16255. test -z "$as_dir" && as_dir=.
  16256. - for ac_prog in mkdir gmkdir; do
  16257. + for ac_prog in mkdir gmkdir; do
  16258. for ac_exec_ext in '' $ac_executable_extensions; do
  16259. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  16260. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  16261. @@ -2150,11 +2937,12 @@
  16262. esac
  16263. done
  16264. done
  16265. -done
  16266. + done
  16267. IFS=$as_save_IFS
  16268. fi
  16269. + test -d ./--version && rmdir ./--version
  16270. if test "${ac_cv_path_mkdir+set}" = set; then
  16271. MKDIR_P="$ac_cv_path_mkdir -p"
  16272. else
  16273. @@ -2162,12 +2950,11 @@
  16274. # value for MKDIR_P within a source directory, because that will
  16275. # break other packages using the cache if that directory is
  16276. # removed, or if the value is a relative name.
  16277. - test -d ./--version && rmdir ./--version
  16278. MKDIR_P="$ac_install_sh -d"
  16279. fi
  16280. fi
  16281. -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  16282. -echo "${ECHO_T}$MKDIR_P" >&6; }
  16283. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  16284. +$as_echo "$MKDIR_P" >&6; }
  16285. mkdir_p="$MKDIR_P"
  16286. case $mkdir_p in
  16287. @@ -2179,10 +2966,10 @@
  16288. do
  16289. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16290. set dummy $ac_prog; ac_word=$2
  16291. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16292. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16293. -if test "${ac_cv_prog_AWK+set}" = set; then
  16294. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16296. +$as_echo_n "checking for $ac_word... " >&6; }
  16297. +if test "${ac_cv_prog_AWK+set}" = set; then :
  16298. + $as_echo_n "(cached) " >&6
  16299. else
  16300. if test -n "$AWK"; then
  16301. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  16302. @@ -2192,36 +2979,37 @@
  16303. do
  16304. IFS=$as_save_IFS
  16305. test -z "$as_dir" && as_dir=.
  16306. - for ac_exec_ext in '' $ac_executable_extensions; do
  16307. + for ac_exec_ext in '' $ac_executable_extensions; do
  16308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16309. ac_cv_prog_AWK="$ac_prog"
  16310. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16311. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16312. break 2
  16313. fi
  16314. done
  16315. -done
  16316. + done
  16317. IFS=$as_save_IFS
  16318. fi
  16319. fi
  16320. AWK=$ac_cv_prog_AWK
  16321. if test -n "$AWK"; then
  16322. - { echo "$as_me:$LINENO: result: $AWK" >&5
  16323. -echo "${ECHO_T}$AWK" >&6; }
  16324. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  16325. +$as_echo "$AWK" >&6; }
  16326. else
  16327. - { echo "$as_me:$LINENO: result: no" >&5
  16328. -echo "${ECHO_T}no" >&6; }
  16329. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16330. +$as_echo "no" >&6; }
  16331. fi
  16332. test -n "$AWK" && break
  16333. done
  16334. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  16335. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  16336. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  16337. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  16338. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16339. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  16340. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  16341. +set x ${MAKE-make}
  16342. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  16343. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  16344. + $as_echo_n "(cached) " >&6
  16345. else
  16346. cat >conftest.make <<\_ACEOF
  16347. SHELL = /bin/sh
  16348. @@ -2238,12 +3026,12 @@
  16349. rm -f conftest.make
  16350. fi
  16351. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  16352. - { echo "$as_me:$LINENO: result: yes" >&5
  16353. -echo "${ECHO_T}yes" >&6; }
  16354. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16355. +$as_echo "yes" >&6; }
  16356. SET_MAKE=
  16357. else
  16358. - { echo "$as_me:$LINENO: result: no" >&5
  16359. -echo "${ECHO_T}no" >&6; }
  16360. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16361. +$as_echo "no" >&6; }
  16362. SET_MAKE="MAKE=${MAKE-make}"
  16363. fi
  16364. @@ -2262,9 +3050,7 @@
  16365. am__isrc=' -I$(srcdir)'
  16366. # test to see if srcdir already configured
  16367. if test -f $srcdir/config.status; then
  16368. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  16369. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  16370. - { (exit 1); exit 1; }; }
  16371. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  16372. fi
  16373. fi
  16374. @@ -2308,112 +3094,6 @@
  16375. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  16376. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  16377. -
  16378. -# Installed binaries are usually stripped using `strip' when the user
  16379. -# run `make install-strip'. However `strip' might not be the right
  16380. -# tool to use in cross-compilation environments, therefore Automake
  16381. -# will honor the `STRIP' environment variable to overrule this program.
  16382. -if test "$cross_compiling" != no; then
  16383. - if test -n "$ac_tool_prefix"; then
  16384. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16385. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  16386. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16387. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16388. -if test "${ac_cv_prog_STRIP+set}" = set; then
  16389. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16390. -else
  16391. - if test -n "$STRIP"; then
  16392. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16393. -else
  16394. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16395. -for as_dir in $PATH
  16396. -do
  16397. - IFS=$as_save_IFS
  16398. - test -z "$as_dir" && as_dir=.
  16399. - for ac_exec_ext in '' $ac_executable_extensions; do
  16400. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16401. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16402. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16403. - break 2
  16404. - fi
  16405. -done
  16406. -done
  16407. -IFS=$as_save_IFS
  16408. -
  16409. -fi
  16410. -fi
  16411. -STRIP=$ac_cv_prog_STRIP
  16412. -if test -n "$STRIP"; then
  16413. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  16414. -echo "${ECHO_T}$STRIP" >&6; }
  16415. -else
  16416. - { echo "$as_me:$LINENO: result: no" >&5
  16417. -echo "${ECHO_T}no" >&6; }
  16418. -fi
  16419. -
  16420. -
  16421. -fi
  16422. -if test -z "$ac_cv_prog_STRIP"; then
  16423. - ac_ct_STRIP=$STRIP
  16424. - # Extract the first word of "strip", so it can be a program name with args.
  16425. -set dummy strip; ac_word=$2
  16426. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16427. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16428. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  16429. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16430. -else
  16431. - if test -n "$ac_ct_STRIP"; then
  16432. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  16433. -else
  16434. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16435. -for as_dir in $PATH
  16436. -do
  16437. - IFS=$as_save_IFS
  16438. - test -z "$as_dir" && as_dir=.
  16439. - for ac_exec_ext in '' $ac_executable_extensions; do
  16440. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16441. - ac_cv_prog_ac_ct_STRIP="strip"
  16442. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16443. - break 2
  16444. - fi
  16445. -done
  16446. -done
  16447. -IFS=$as_save_IFS
  16448. -
  16449. -fi
  16450. -fi
  16451. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  16452. -if test -n "$ac_ct_STRIP"; then
  16453. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  16454. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  16455. -else
  16456. - { echo "$as_me:$LINENO: result: no" >&5
  16457. -echo "${ECHO_T}no" >&6; }
  16458. -fi
  16459. -
  16460. - if test "x$ac_ct_STRIP" = x; then
  16461. - STRIP=":"
  16462. - else
  16463. - case $cross_compiling:$ac_tool_warned in
  16464. -yes:)
  16465. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16466. -whose name does not start with the host triplet. If you think this
  16467. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16468. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16469. -whose name does not start with the host triplet. If you think this
  16470. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16471. -ac_tool_warned=yes ;;
  16472. -esac
  16473. - STRIP=$ac_ct_STRIP
  16474. - fi
  16475. -else
  16476. - STRIP="$ac_cv_prog_STRIP"
  16477. -fi
  16478. -
  16479. -fi
  16480. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  16481. -
  16482. # We need awk for the "check" target. The system "awk" is bad on
  16483. # some platforms.
  16484. # Always define AMTAR for backward compatibility.
  16485. @@ -2430,84 +3110,76 @@
  16486. #AC_CONFIG_MACRO_DIR([m4])
  16487. -{ echo "$as_me:$LINENO: checking for builtin ELF support" >&5
  16488. -echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
  16489. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  16490. +$as_echo_n "checking for builtin ELF support... " >&6; }
  16491. # Check whether --enable-elf was given.
  16492. -if test "${enable_elf+set}" = set; then
  16493. +if test "${enable_elf+set}" = set; then :
  16494. enableval=$enable_elf; if test "${enableval}" = yes; then
  16495. - { echo "$as_me:$LINENO: result: yes" >&5
  16496. -echo "${ECHO_T}yes" >&6; }
  16497. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16498. +$as_echo "yes" >&6; }
  16499. -cat >>confdefs.h <<\_ACEOF
  16500. -#define BUILTIN_ELF 1
  16501. -_ACEOF
  16502. +$as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  16503. else
  16504. - { echo "$as_me:$LINENO: result: no" >&5
  16505. -echo "${ECHO_T}no" >&6; }
  16506. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16507. +$as_echo "no" >&6; }
  16508. fi
  16509. else
  16510. # enable by default
  16511. - { echo "$as_me:$LINENO: result: yes" >&5
  16512. -echo "${ECHO_T}yes" >&6; }
  16513. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16514. +$as_echo "yes" >&6; }
  16515. -cat >>confdefs.h <<\_ACEOF
  16516. -#define BUILTIN_ELF 1
  16517. -_ACEOF
  16518. +$as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  16519. fi
  16520. -{ echo "$as_me:$LINENO: checking for ELF core file support" >&5
  16521. -echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
  16522. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  16523. +$as_echo_n "checking for ELF core file support... " >&6; }
  16524. # Check whether --enable-elf-core was given.
  16525. -if test "${enable_elf_core+set}" = set; then
  16526. +if test "${enable_elf_core+set}" = set; then :
  16527. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  16528. - { echo "$as_me:$LINENO: result: yes" >&5
  16529. -echo "${ECHO_T}yes" >&6; }
  16530. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16531. +$as_echo "yes" >&6; }
  16532. -cat >>confdefs.h <<\_ACEOF
  16533. -#define ELFCORE 1
  16534. -_ACEOF
  16535. +$as_echo "#define ELFCORE 1" >>confdefs.h
  16536. else
  16537. - { echo "$as_me:$LINENO: result: no" >&5
  16538. -echo "${ECHO_T}no" >&6; }
  16539. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16540. +$as_echo "no" >&6; }
  16541. fi
  16542. else
  16543. # enable by default
  16544. - { echo "$as_me:$LINENO: result: yes" >&5
  16545. -echo "${ECHO_T}yes" >&6; }
  16546. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16547. +$as_echo "yes" >&6; }
  16548. -cat >>confdefs.h <<\_ACEOF
  16549. -#define ELFCORE 1
  16550. -_ACEOF
  16551. +$as_echo "#define ELFCORE 1" >>confdefs.h
  16552. fi
  16553. -{ echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  16554. -echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
  16555. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  16556. +$as_echo_n "checking for file formats in man section 5... " >&6; }
  16557. # Check whether --enable-fsect-man5 was given.
  16558. -if test "${enable_fsect_man5+set}" = set; then
  16559. +if test "${enable_fsect_man5+set}" = set; then :
  16560. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  16561. - { echo "$as_me:$LINENO: result: yes" >&5
  16562. -echo "${ECHO_T}yes" >&6; }
  16563. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16564. +$as_echo "yes" >&6; }
  16565. fsect=5
  16566. else
  16567. - { echo "$as_me:$LINENO: result: no" >&5
  16568. -echo "${ECHO_T}no" >&6; }
  16569. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16570. +$as_echo "no" >&6; }
  16571. fsect=4
  16572. fi
  16573. else
  16574. # disable by default
  16575. - { echo "$as_me:$LINENO: result: no" >&5
  16576. -echo "${ECHO_T}no" >&6; }
  16577. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16578. +$as_echo "no" >&6; }
  16579. fsect=4
  16580. fi
  16581. @@ -2526,11 +3198,66 @@
  16582. +DEPDIR="${am__leading_dot}deps"
  16583. -cat >>confdefs.h <<\_ACEOF
  16584. -#define _GNU_SOURCE 1
  16585. -_ACEOF
  16586. +ac_config_commands="$ac_config_commands depfiles"
  16587. +
  16588. +
  16589. +am_make=${MAKE-make}
  16590. +cat > confinc << 'END'
  16591. +am__doit:
  16592. + @echo this is the am__doit target
  16593. +.PHONY: am__doit
  16594. +END
  16595. +# If we don't find an include directive, just comment out the code.
  16596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  16597. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  16598. +am__include="#"
  16599. +am__quote=
  16600. +_am_result=none
  16601. +# First try GNU make style include.
  16602. +echo "include confinc" > confmf
  16603. +# Ignore all kinds of additional output from `make'.
  16604. +case `$am_make -s -f confmf 2> /dev/null` in #(
  16605. +*the\ am__doit\ target*)
  16606. + am__include=include
  16607. + am__quote=
  16608. + _am_result=GNU
  16609. + ;;
  16610. +esac
  16611. +# Now try BSD make style include.
  16612. +if test "$am__include" = "#"; then
  16613. + echo '.include "confinc"' > confmf
  16614. + case `$am_make -s -f confmf 2> /dev/null` in #(
  16615. + *the\ am__doit\ target*)
  16616. + am__include=.include
  16617. + am__quote="\""
  16618. + _am_result=BSD
  16619. + ;;
  16620. + esac
  16621. +fi
  16622. +
  16623. +
  16624. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  16625. +$as_echo "$_am_result" >&6; }
  16626. +rm -f confinc confmf
  16627. +
  16628. +# Check whether --enable-dependency-tracking was given.
  16629. +if test "${enable_dependency_tracking+set}" = set; then :
  16630. + enableval=$enable_dependency_tracking;
  16631. +fi
  16632. +if test "x$enable_dependency_tracking" != xno; then
  16633. + am_depcomp="$ac_aux_dir/depcomp"
  16634. + AMDEPBACKSLASH='\'
  16635. +fi
  16636. + if test "x$enable_dependency_tracking" != xno; then
  16637. + AMDEP_TRUE=
  16638. + AMDEP_FALSE='#'
  16639. +else
  16640. + AMDEP_TRUE='#'
  16641. + AMDEP_FALSE=
  16642. +fi
  16643. ac_ext=c
  16644. @@ -2541,10 +3268,10 @@
  16645. if test -n "$ac_tool_prefix"; then
  16646. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  16647. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  16648. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16649. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16650. -if test "${ac_cv_prog_CC+set}" = set; then
  16651. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16652. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16653. +$as_echo_n "checking for $ac_word... " >&6; }
  16654. +if test "${ac_cv_prog_CC+set}" = set; then :
  16655. + $as_echo_n "(cached) " >&6
  16656. else
  16657. if test -n "$CC"; then
  16658. ac_cv_prog_CC="$CC" # Let the user override the test.
  16659. @@ -2554,25 +3281,25 @@
  16660. do
  16661. IFS=$as_save_IFS
  16662. test -z "$as_dir" && as_dir=.
  16663. - for ac_exec_ext in '' $ac_executable_extensions; do
  16664. + for ac_exec_ext in '' $ac_executable_extensions; do
  16665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16666. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  16667. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16668. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16669. break 2
  16670. fi
  16671. done
  16672. -done
  16673. + done
  16674. IFS=$as_save_IFS
  16675. fi
  16676. fi
  16677. CC=$ac_cv_prog_CC
  16678. if test -n "$CC"; then
  16679. - { echo "$as_me:$LINENO: result: $CC" >&5
  16680. -echo "${ECHO_T}$CC" >&6; }
  16681. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  16682. +$as_echo "$CC" >&6; }
  16683. else
  16684. - { echo "$as_me:$LINENO: result: no" >&5
  16685. -echo "${ECHO_T}no" >&6; }
  16686. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16687. +$as_echo "no" >&6; }
  16688. fi
  16689. @@ -2581,10 +3308,10 @@
  16690. ac_ct_CC=$CC
  16691. # Extract the first word of "gcc", so it can be a program name with args.
  16692. set dummy gcc; ac_word=$2
  16693. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16694. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16695. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16696. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16697. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16698. +$as_echo_n "checking for $ac_word... " >&6; }
  16699. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  16700. + $as_echo_n "(cached) " >&6
  16701. else
  16702. if test -n "$ac_ct_CC"; then
  16703. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16704. @@ -2594,25 +3321,25 @@
  16705. do
  16706. IFS=$as_save_IFS
  16707. test -z "$as_dir" && as_dir=.
  16708. - for ac_exec_ext in '' $ac_executable_extensions; do
  16709. + for ac_exec_ext in '' $ac_executable_extensions; do
  16710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16711. ac_cv_prog_ac_ct_CC="gcc"
  16712. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16713. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16714. break 2
  16715. fi
  16716. done
  16717. -done
  16718. + done
  16719. IFS=$as_save_IFS
  16720. fi
  16721. fi
  16722. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16723. if test -n "$ac_ct_CC"; then
  16724. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16725. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  16726. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  16727. +$as_echo "$ac_ct_CC" >&6; }
  16728. else
  16729. - { echo "$as_me:$LINENO: result: no" >&5
  16730. -echo "${ECHO_T}no" >&6; }
  16731. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16732. +$as_echo "no" >&6; }
  16733. fi
  16734. if test "x$ac_ct_CC" = x; then
  16735. @@ -2620,12 +3347,8 @@
  16736. else
  16737. case $cross_compiling:$ac_tool_warned in
  16738. yes:)
  16739. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16740. -whose name does not start with the host triplet. If you think this
  16741. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16742. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16743. -whose name does not start with the host triplet. If you think this
  16744. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16746. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16747. ac_tool_warned=yes ;;
  16748. esac
  16749. CC=$ac_ct_CC
  16750. @@ -2638,10 +3361,10 @@
  16751. if test -n "$ac_tool_prefix"; then
  16752. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  16753. set dummy ${ac_tool_prefix}cc; ac_word=$2
  16754. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16755. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16756. -if test "${ac_cv_prog_CC+set}" = set; then
  16757. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16758. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16759. +$as_echo_n "checking for $ac_word... " >&6; }
  16760. +if test "${ac_cv_prog_CC+set}" = set; then :
  16761. + $as_echo_n "(cached) " >&6
  16762. else
  16763. if test -n "$CC"; then
  16764. ac_cv_prog_CC="$CC" # Let the user override the test.
  16765. @@ -2651,25 +3374,25 @@
  16766. do
  16767. IFS=$as_save_IFS
  16768. test -z "$as_dir" && as_dir=.
  16769. - for ac_exec_ext in '' $ac_executable_extensions; do
  16770. + for ac_exec_ext in '' $ac_executable_extensions; do
  16771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16772. ac_cv_prog_CC="${ac_tool_prefix}cc"
  16773. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16774. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16775. break 2
  16776. fi
  16777. done
  16778. -done
  16779. + done
  16780. IFS=$as_save_IFS
  16781. fi
  16782. fi
  16783. CC=$ac_cv_prog_CC
  16784. if test -n "$CC"; then
  16785. - { echo "$as_me:$LINENO: result: $CC" >&5
  16786. -echo "${ECHO_T}$CC" >&6; }
  16787. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  16788. +$as_echo "$CC" >&6; }
  16789. else
  16790. - { echo "$as_me:$LINENO: result: no" >&5
  16791. -echo "${ECHO_T}no" >&6; }
  16792. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16793. +$as_echo "no" >&6; }
  16794. fi
  16795. @@ -2678,10 +3401,10 @@
  16796. if test -z "$CC"; then
  16797. # Extract the first word of "cc", so it can be a program name with args.
  16798. set dummy cc; ac_word=$2
  16799. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16800. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16801. -if test "${ac_cv_prog_CC+set}" = set; then
  16802. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16803. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16804. +$as_echo_n "checking for $ac_word... " >&6; }
  16805. +if test "${ac_cv_prog_CC+set}" = set; then :
  16806. + $as_echo_n "(cached) " >&6
  16807. else
  16808. if test -n "$CC"; then
  16809. ac_cv_prog_CC="$CC" # Let the user override the test.
  16810. @@ -2692,18 +3415,18 @@
  16811. do
  16812. IFS=$as_save_IFS
  16813. test -z "$as_dir" && as_dir=.
  16814. - for ac_exec_ext in '' $ac_executable_extensions; do
  16815. + for ac_exec_ext in '' $ac_executable_extensions; do
  16816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16817. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  16818. ac_prog_rejected=yes
  16819. continue
  16820. fi
  16821. ac_cv_prog_CC="cc"
  16822. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16823. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16824. break 2
  16825. fi
  16826. done
  16827. -done
  16828. + done
  16829. IFS=$as_save_IFS
  16830. if test $ac_prog_rejected = yes; then
  16831. @@ -2722,11 +3445,11 @@
  16832. fi
  16833. CC=$ac_cv_prog_CC
  16834. if test -n "$CC"; then
  16835. - { echo "$as_me:$LINENO: result: $CC" >&5
  16836. -echo "${ECHO_T}$CC" >&6; }
  16837. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  16838. +$as_echo "$CC" >&6; }
  16839. else
  16840. - { echo "$as_me:$LINENO: result: no" >&5
  16841. -echo "${ECHO_T}no" >&6; }
  16842. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16843. +$as_echo "no" >&6; }
  16844. fi
  16845. @@ -2737,10 +3460,10 @@
  16846. do
  16847. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16848. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16849. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16850. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16851. -if test "${ac_cv_prog_CC+set}" = set; then
  16852. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16853. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16854. +$as_echo_n "checking for $ac_word... " >&6; }
  16855. +if test "${ac_cv_prog_CC+set}" = set; then :
  16856. + $as_echo_n "(cached) " >&6
  16857. else
  16858. if test -n "$CC"; then
  16859. ac_cv_prog_CC="$CC" # Let the user override the test.
  16860. @@ -2750,25 +3473,25 @@
  16861. do
  16862. IFS=$as_save_IFS
  16863. test -z "$as_dir" && as_dir=.
  16864. - for ac_exec_ext in '' $ac_executable_extensions; do
  16865. + for ac_exec_ext in '' $ac_executable_extensions; do
  16866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16867. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  16868. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16869. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16870. break 2
  16871. fi
  16872. done
  16873. -done
  16874. + done
  16875. IFS=$as_save_IFS
  16876. fi
  16877. fi
  16878. CC=$ac_cv_prog_CC
  16879. if test -n "$CC"; then
  16880. - { echo "$as_me:$LINENO: result: $CC" >&5
  16881. -echo "${ECHO_T}$CC" >&6; }
  16882. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  16883. +$as_echo "$CC" >&6; }
  16884. else
  16885. - { echo "$as_me:$LINENO: result: no" >&5
  16886. -echo "${ECHO_T}no" >&6; }
  16887. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16888. +$as_echo "no" >&6; }
  16889. fi
  16890. @@ -2781,10 +3504,10 @@
  16891. do
  16892. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16893. set dummy $ac_prog; ac_word=$2
  16894. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16895. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16896. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16897. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16899. +$as_echo_n "checking for $ac_word... " >&6; }
  16900. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  16901. + $as_echo_n "(cached) " >&6
  16902. else
  16903. if test -n "$ac_ct_CC"; then
  16904. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16905. @@ -2794,25 +3517,25 @@
  16906. do
  16907. IFS=$as_save_IFS
  16908. test -z "$as_dir" && as_dir=.
  16909. - for ac_exec_ext in '' $ac_executable_extensions; do
  16910. + for ac_exec_ext in '' $ac_executable_extensions; do
  16911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16912. ac_cv_prog_ac_ct_CC="$ac_prog"
  16913. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16914. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16915. break 2
  16916. fi
  16917. done
  16918. -done
  16919. + done
  16920. IFS=$as_save_IFS
  16921. fi
  16922. fi
  16923. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16924. if test -n "$ac_ct_CC"; then
  16925. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16926. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  16927. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  16928. +$as_echo "$ac_ct_CC" >&6; }
  16929. else
  16930. - { echo "$as_me:$LINENO: result: no" >&5
  16931. -echo "${ECHO_T}no" >&6; }
  16932. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16933. +$as_echo "no" >&6; }
  16934. fi
  16935. @@ -2824,12 +3547,8 @@
  16936. else
  16937. case $cross_compiling:$ac_tool_warned in
  16938. yes:)
  16939. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16940. -whose name does not start with the host triplet. If you think this
  16941. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16942. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16943. -whose name does not start with the host triplet. If you think this
  16944. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16945. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16946. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16947. ac_tool_warned=yes ;;
  16948. esac
  16949. CC=$ac_ct_CC
  16950. @@ -2839,51 +3558,37 @@
  16951. fi
  16952. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  16953. -See \`config.log' for more details." >&5
  16954. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  16955. -See \`config.log' for more details." >&2;}
  16956. - { (exit 1); exit 1; }; }
  16957. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16958. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16959. +as_fn_error "no acceptable C compiler found in \$PATH
  16960. +See \`config.log' for more details." "$LINENO" 5; }
  16961. # Provide some information about the compiler.
  16962. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  16963. -ac_compiler=`set X $ac_compile; echo $2`
  16964. -{ (ac_try="$ac_compiler --version >&5"
  16965. -case "(($ac_try" in
  16966. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16967. - *) ac_try_echo=$ac_try;;
  16968. -esac
  16969. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16970. - (eval "$ac_compiler --version >&5") 2>&5
  16971. - ac_status=$?
  16972. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16973. - (exit $ac_status); }
  16974. -{ (ac_try="$ac_compiler -v >&5"
  16975. -case "(($ac_try" in
  16976. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16977. - *) ac_try_echo=$ac_try;;
  16978. -esac
  16979. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16980. - (eval "$ac_compiler -v >&5") 2>&5
  16981. - ac_status=$?
  16982. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16983. - (exit $ac_status); }
  16984. -{ (ac_try="$ac_compiler -V >&5"
  16985. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  16986. +set X $ac_compile
  16987. +ac_compiler=$2
  16988. +for ac_option in --version -v -V -qversion; do
  16989. + { { ac_try="$ac_compiler $ac_option >&5"
  16990. case "(($ac_try" in
  16991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16992. *) ac_try_echo=$ac_try;;
  16993. esac
  16994. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16995. - (eval "$ac_compiler -V >&5") 2>&5
  16996. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16997. +$as_echo "$ac_try_echo"; } >&5
  16998. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  16999. ac_status=$?
  17000. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17001. - (exit $ac_status); }
  17002. + if test -s conftest.err; then
  17003. + sed '10a\
  17004. +... rest of stderr output deleted ...
  17005. + 10q' conftest.err >conftest.er1
  17006. + cat conftest.er1 >&5
  17007. + fi
  17008. + rm -f conftest.er1 conftest.err
  17009. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17010. + test $ac_status = 0; }
  17011. +done
  17012. -cat >conftest.$ac_ext <<_ACEOF
  17013. -/* confdefs.h. */
  17014. -_ACEOF
  17015. -cat confdefs.h >>conftest.$ac_ext
  17016. -cat >>conftest.$ac_ext <<_ACEOF
  17017. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17018. /* end confdefs.h. */
  17019. int
  17020. @@ -2895,42 +3600,38 @@
  17021. }
  17022. _ACEOF
  17023. ac_clean_files_save=$ac_clean_files
  17024. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  17025. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  17026. # Try to create an executable without -o first, disregard a.out.
  17027. # It will help us diagnose broken compilers, and finding out an intuition
  17028. # of exeext.
  17029. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  17030. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  17031. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  17032. -#
  17033. -# List of possible output files, starting from the most likely.
  17034. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  17035. -# only as a last resort. b.out is created by i960 compilers.
  17036. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  17037. -#
  17038. -# The IRIX 6 linker writes into existing files which may not be
  17039. -# executable, retaining their permissions. Remove them first so a
  17040. -# subsequent execution test works.
  17041. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  17042. +$as_echo_n "checking whether the C compiler works... " >&6; }
  17043. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  17044. +
  17045. +# The possible output files:
  17046. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  17047. +
  17048. ac_rmfiles=
  17049. for ac_file in $ac_files
  17050. do
  17051. case $ac_file in
  17052. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  17053. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  17054. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  17055. esac
  17056. done
  17057. rm -f $ac_rmfiles
  17058. -if { (ac_try="$ac_link_default"
  17059. +if { { ac_try="$ac_link_default"
  17060. case "(($ac_try" in
  17061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17062. *) ac_try_echo=$ac_try;;
  17063. esac
  17064. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17065. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17066. +$as_echo "$ac_try_echo"; } >&5
  17067. (eval "$ac_link_default") 2>&5
  17068. ac_status=$?
  17069. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17070. - (exit $ac_status); }; then
  17071. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17072. + test $ac_status = 0; }; then :
  17073. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  17074. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  17075. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  17076. @@ -2940,14 +3641,14 @@
  17077. do
  17078. test -f "$ac_file" || continue
  17079. case $ac_file in
  17080. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  17081. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  17082. ;;
  17083. [ab].out )
  17084. # We found the default executable, but exeext='' is most
  17085. # certainly right.
  17086. break;;
  17087. *.* )
  17088. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  17089. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  17090. then :; else
  17091. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  17092. fi
  17093. @@ -2966,78 +3667,42 @@
  17094. else
  17095. ac_file=''
  17096. fi
  17097. -
  17098. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  17099. -echo "${ECHO_T}$ac_file" >&6; }
  17100. -if test -z "$ac_file"; then
  17101. - echo "$as_me: failed program was:" >&5
  17102. -sed 's/^/| /' conftest.$ac_ext >&5
  17103. -
  17104. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  17105. -See \`config.log' for more details." >&5
  17106. -echo "$as_me: error: C compiler cannot create executables
  17107. -See \`config.log' for more details." >&2;}
  17108. - { (exit 77); exit 77; }; }
  17109. -fi
  17110. -
  17111. +if test -z "$ac_file"; then :
  17112. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17113. +$as_echo "no" >&6; }
  17114. +$as_echo "$as_me: failed program was:" >&5
  17115. +sed 's/^/| /' conftest.$ac_ext >&5
  17116. +
  17117. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17118. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17119. +{ as_fn_set_status 77
  17120. +as_fn_error "C compiler cannot create executables
  17121. +See \`config.log' for more details." "$LINENO" 5; }; }
  17122. +else
  17123. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17124. +$as_echo "yes" >&6; }
  17125. +fi
  17126. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  17127. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  17128. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  17129. +$as_echo "$ac_file" >&6; }
  17130. ac_exeext=$ac_cv_exeext
  17131. -# Check that the compiler produces executables we can run. If not, either
  17132. -# the compiler is broken, or we cross compile.
  17133. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  17134. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  17135. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  17136. -# If not cross compiling, check that we can run a simple program.
  17137. -if test "$cross_compiling" != yes; then
  17138. - if { ac_try='./$ac_file'
  17139. - { (case "(($ac_try" in
  17140. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17141. - *) ac_try_echo=$ac_try;;
  17142. -esac
  17143. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17144. - (eval "$ac_try") 2>&5
  17145. - ac_status=$?
  17146. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17147. - (exit $ac_status); }; }; then
  17148. - cross_compiling=no
  17149. - else
  17150. - if test "$cross_compiling" = maybe; then
  17151. - cross_compiling=yes
  17152. - else
  17153. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  17154. -If you meant to cross compile, use \`--host'.
  17155. -See \`config.log' for more details." >&5
  17156. -echo "$as_me: error: cannot run C compiled programs.
  17157. -If you meant to cross compile, use \`--host'.
  17158. -See \`config.log' for more details." >&2;}
  17159. - { (exit 1); exit 1; }; }
  17160. - fi
  17161. - fi
  17162. -fi
  17163. -{ echo "$as_me:$LINENO: result: yes" >&5
  17164. -echo "${ECHO_T}yes" >&6; }
  17165. -
  17166. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  17167. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  17168. ac_clean_files=$ac_clean_files_save
  17169. -# Check that the compiler produces executables we can run. If not, either
  17170. -# the compiler is broken, or we cross compile.
  17171. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  17172. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  17173. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  17174. -echo "${ECHO_T}$cross_compiling" >&6; }
  17175. -
  17176. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  17177. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  17178. -if { (ac_try="$ac_link"
  17179. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  17180. +$as_echo_n "checking for suffix of executables... " >&6; }
  17181. +if { { ac_try="$ac_link"
  17182. case "(($ac_try" in
  17183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17184. *) ac_try_echo=$ac_try;;
  17185. esac
  17186. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17187. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17188. +$as_echo "$ac_try_echo"; } >&5
  17189. (eval "$ac_link") 2>&5
  17190. ac_status=$?
  17191. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17192. - (exit $ac_status); }; then
  17193. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17194. + test $ac_status = 0; }; then :
  17195. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  17196. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  17197. # work properly (i.e., refer to `conftest.exe'), while it won't with
  17198. @@ -3045,37 +3710,90 @@
  17199. for ac_file in conftest.exe conftest conftest.*; do
  17200. test -f "$ac_file" || continue
  17201. case $ac_file in
  17202. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  17203. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  17204. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  17205. break;;
  17206. * ) break;;
  17207. esac
  17208. done
  17209. else
  17210. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  17211. -See \`config.log' for more details." >&5
  17212. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  17213. -See \`config.log' for more details." >&2;}
  17214. - { (exit 1); exit 1; }; }
  17215. -fi
  17216. -
  17217. -rm -f conftest$ac_cv_exeext
  17218. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  17219. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  17220. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17221. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17222. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  17223. +See \`config.log' for more details." "$LINENO" 5; }
  17224. +fi
  17225. +rm -f conftest conftest$ac_cv_exeext
  17226. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  17227. +$as_echo "$ac_cv_exeext" >&6; }
  17228. rm -f conftest.$ac_ext
  17229. EXEEXT=$ac_cv_exeext
  17230. ac_exeext=$EXEEXT
  17231. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  17232. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  17233. -if test "${ac_cv_objext+set}" = set; then
  17234. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17235. -else
  17236. - cat >conftest.$ac_ext <<_ACEOF
  17237. -/* confdefs.h. */
  17238. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17239. +/* end confdefs.h. */
  17240. +#include <stdio.h>
  17241. +int
  17242. +main ()
  17243. +{
  17244. +FILE *f = fopen ("conftest.out", "w");
  17245. + return ferror (f) || fclose (f) != 0;
  17246. +
  17247. + ;
  17248. + return 0;
  17249. +}
  17250. _ACEOF
  17251. -cat confdefs.h >>conftest.$ac_ext
  17252. -cat >>conftest.$ac_ext <<_ACEOF
  17253. +ac_clean_files="$ac_clean_files conftest.out"
  17254. +# Check that the compiler produces executables we can run. If not, either
  17255. +# the compiler is broken, or we cross compile.
  17256. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  17257. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  17258. +if test "$cross_compiling" != yes; then
  17259. + { { ac_try="$ac_link"
  17260. +case "(($ac_try" in
  17261. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17262. + *) ac_try_echo=$ac_try;;
  17263. +esac
  17264. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17265. +$as_echo "$ac_try_echo"; } >&5
  17266. + (eval "$ac_link") 2>&5
  17267. + ac_status=$?
  17268. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17269. + test $ac_status = 0; }
  17270. + if { ac_try='./conftest$ac_cv_exeext'
  17271. + { { case "(($ac_try" in
  17272. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17273. + *) ac_try_echo=$ac_try;;
  17274. +esac
  17275. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17276. +$as_echo "$ac_try_echo"; } >&5
  17277. + (eval "$ac_try") 2>&5
  17278. + ac_status=$?
  17279. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17280. + test $ac_status = 0; }; }; then
  17281. + cross_compiling=no
  17282. + else
  17283. + if test "$cross_compiling" = maybe; then
  17284. + cross_compiling=yes
  17285. + else
  17286. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17287. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17288. +as_fn_error "cannot run C compiled programs.
  17289. +If you meant to cross compile, use \`--host'.
  17290. +See \`config.log' for more details." "$LINENO" 5; }
  17291. + fi
  17292. + fi
  17293. +fi
  17294. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  17295. +$as_echo "$cross_compiling" >&6; }
  17296. +
  17297. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  17298. +ac_clean_files=$ac_clean_files_save
  17299. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  17300. +$as_echo_n "checking for suffix of object files... " >&6; }
  17301. +if test "${ac_cv_objext+set}" = set; then :
  17302. + $as_echo_n "(cached) " >&6
  17303. +else
  17304. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17305. /* end confdefs.h. */
  17306. int
  17307. @@ -3087,51 +3805,46 @@
  17308. }
  17309. _ACEOF
  17310. rm -f conftest.o conftest.obj
  17311. -if { (ac_try="$ac_compile"
  17312. +if { { ac_try="$ac_compile"
  17313. case "(($ac_try" in
  17314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17315. *) ac_try_echo=$ac_try;;
  17316. esac
  17317. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17318. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17319. +$as_echo "$ac_try_echo"; } >&5
  17320. (eval "$ac_compile") 2>&5
  17321. ac_status=$?
  17322. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17323. - (exit $ac_status); }; then
  17324. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17325. + test $ac_status = 0; }; then :
  17326. for ac_file in conftest.o conftest.obj conftest.*; do
  17327. test -f "$ac_file" || continue;
  17328. case $ac_file in
  17329. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  17330. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  17331. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  17332. break;;
  17333. esac
  17334. done
  17335. else
  17336. - echo "$as_me: failed program was:" >&5
  17337. + $as_echo "$as_me: failed program was:" >&5
  17338. sed 's/^/| /' conftest.$ac_ext >&5
  17339. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  17340. -See \`config.log' for more details." >&5
  17341. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  17342. -See \`config.log' for more details." >&2;}
  17343. - { (exit 1); exit 1; }; }
  17344. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17345. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17346. +as_fn_error "cannot compute suffix of object files: cannot compile
  17347. +See \`config.log' for more details." "$LINENO" 5; }
  17348. fi
  17349. -
  17350. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  17351. fi
  17352. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  17353. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  17354. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  17355. +$as_echo "$ac_cv_objext" >&6; }
  17356. OBJEXT=$ac_cv_objext
  17357. ac_objext=$OBJEXT
  17358. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17359. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  17360. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17361. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17362. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  17363. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  17364. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  17365. + $as_echo_n "(cached) " >&6
  17366. else
  17367. - cat >conftest.$ac_ext <<_ACEOF
  17368. -/* confdefs.h. */
  17369. -_ACEOF
  17370. -cat confdefs.h >>conftest.$ac_ext
  17371. -cat >>conftest.$ac_ext <<_ACEOF
  17372. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17373. /* end confdefs.h. */
  17374. int
  17375. @@ -3145,54 +3858,34 @@
  17376. return 0;
  17377. }
  17378. _ACEOF
  17379. -rm -f conftest.$ac_objext
  17380. -if { (ac_try="$ac_compile"
  17381. -case "(($ac_try" in
  17382. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17383. - *) ac_try_echo=$ac_try;;
  17384. -esac
  17385. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17386. - (eval "$ac_compile") 2>conftest.er1
  17387. - ac_status=$?
  17388. - grep -v '^ *+' conftest.er1 >conftest.err
  17389. - rm -f conftest.er1
  17390. - cat conftest.err >&5
  17391. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17392. - (exit $ac_status); } && {
  17393. - test -z "$ac_c_werror_flag" ||
  17394. - test ! -s conftest.err
  17395. - } && test -s conftest.$ac_objext; then
  17396. +if ac_fn_c_try_compile "$LINENO"; then :
  17397. ac_compiler_gnu=yes
  17398. else
  17399. - echo "$as_me: failed program was:" >&5
  17400. -sed 's/^/| /' conftest.$ac_ext >&5
  17401. -
  17402. - ac_compiler_gnu=no
  17403. + ac_compiler_gnu=no
  17404. fi
  17405. -
  17406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17407. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17408. fi
  17409. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17410. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  17411. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  17412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  17413. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  17414. +if test $ac_compiler_gnu = yes; then
  17415. + GCC=yes
  17416. +else
  17417. + GCC=
  17418. +fi
  17419. ac_test_CFLAGS=${CFLAGS+set}
  17420. ac_save_CFLAGS=$CFLAGS
  17421. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17422. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  17423. -if test "${ac_cv_prog_cc_g+set}" = set; then
  17424. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17425. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  17426. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  17427. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  17428. + $as_echo_n "(cached) " >&6
  17429. else
  17430. ac_save_c_werror_flag=$ac_c_werror_flag
  17431. ac_c_werror_flag=yes
  17432. ac_cv_prog_cc_g=no
  17433. CFLAGS="-g"
  17434. - cat >conftest.$ac_ext <<_ACEOF
  17435. -/* confdefs.h. */
  17436. -_ACEOF
  17437. -cat confdefs.h >>conftest.$ac_ext
  17438. -cat >>conftest.$ac_ext <<_ACEOF
  17439. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17440. /* end confdefs.h. */
  17441. int
  17442. @@ -3203,34 +3896,11 @@
  17443. return 0;
  17444. }
  17445. _ACEOF
  17446. -rm -f conftest.$ac_objext
  17447. -if { (ac_try="$ac_compile"
  17448. -case "(($ac_try" in
  17449. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17450. - *) ac_try_echo=$ac_try;;
  17451. -esac
  17452. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17453. - (eval "$ac_compile") 2>conftest.er1
  17454. - ac_status=$?
  17455. - grep -v '^ *+' conftest.er1 >conftest.err
  17456. - rm -f conftest.er1
  17457. - cat conftest.err >&5
  17458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17459. - (exit $ac_status); } && {
  17460. - test -z "$ac_c_werror_flag" ||
  17461. - test ! -s conftest.err
  17462. - } && test -s conftest.$ac_objext; then
  17463. +if ac_fn_c_try_compile "$LINENO"; then :
  17464. ac_cv_prog_cc_g=yes
  17465. else
  17466. - echo "$as_me: failed program was:" >&5
  17467. -sed 's/^/| /' conftest.$ac_ext >&5
  17468. -
  17469. - CFLAGS=""
  17470. - cat >conftest.$ac_ext <<_ACEOF
  17471. -/* confdefs.h. */
  17472. -_ACEOF
  17473. -cat confdefs.h >>conftest.$ac_ext
  17474. -cat >>conftest.$ac_ext <<_ACEOF
  17475. + CFLAGS=""
  17476. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17477. /* end confdefs.h. */
  17478. int
  17479. @@ -3241,35 +3911,12 @@
  17480. return 0;
  17481. }
  17482. _ACEOF
  17483. -rm -f conftest.$ac_objext
  17484. -if { (ac_try="$ac_compile"
  17485. -case "(($ac_try" in
  17486. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17487. - *) ac_try_echo=$ac_try;;
  17488. -esac
  17489. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17490. - (eval "$ac_compile") 2>conftest.er1
  17491. - ac_status=$?
  17492. - grep -v '^ *+' conftest.er1 >conftest.err
  17493. - rm -f conftest.er1
  17494. - cat conftest.err >&5
  17495. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17496. - (exit $ac_status); } && {
  17497. - test -z "$ac_c_werror_flag" ||
  17498. - test ! -s conftest.err
  17499. - } && test -s conftest.$ac_objext; then
  17500. - :
  17501. -else
  17502. - echo "$as_me: failed program was:" >&5
  17503. -sed 's/^/| /' conftest.$ac_ext >&5
  17504. +if ac_fn_c_try_compile "$LINENO"; then :
  17505. - ac_c_werror_flag=$ac_save_c_werror_flag
  17506. +else
  17507. + ac_c_werror_flag=$ac_save_c_werror_flag
  17508. CFLAGS="-g"
  17509. - cat >conftest.$ac_ext <<_ACEOF
  17510. -/* confdefs.h. */
  17511. -_ACEOF
  17512. -cat confdefs.h >>conftest.$ac_ext
  17513. -cat >>conftest.$ac_ext <<_ACEOF
  17514. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17515. /* end confdefs.h. */
  17516. int
  17517. @@ -3280,42 +3927,18 @@
  17518. return 0;
  17519. }
  17520. _ACEOF
  17521. -rm -f conftest.$ac_objext
  17522. -if { (ac_try="$ac_compile"
  17523. -case "(($ac_try" in
  17524. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17525. - *) ac_try_echo=$ac_try;;
  17526. -esac
  17527. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17528. - (eval "$ac_compile") 2>conftest.er1
  17529. - ac_status=$?
  17530. - grep -v '^ *+' conftest.er1 >conftest.err
  17531. - rm -f conftest.er1
  17532. - cat conftest.err >&5
  17533. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17534. - (exit $ac_status); } && {
  17535. - test -z "$ac_c_werror_flag" ||
  17536. - test ! -s conftest.err
  17537. - } && test -s conftest.$ac_objext; then
  17538. +if ac_fn_c_try_compile "$LINENO"; then :
  17539. ac_cv_prog_cc_g=yes
  17540. -else
  17541. - echo "$as_me: failed program was:" >&5
  17542. -sed 's/^/| /' conftest.$ac_ext >&5
  17543. -
  17544. -
  17545. fi
  17546. -
  17547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17548. fi
  17549. -
  17550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17551. fi
  17552. -
  17553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17554. ac_c_werror_flag=$ac_save_c_werror_flag
  17555. fi
  17556. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17557. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  17558. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  17559. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  17560. if test "$ac_test_CFLAGS" = set; then
  17561. CFLAGS=$ac_save_CFLAGS
  17562. elif test $ac_cv_prog_cc_g = yes; then
  17563. @@ -3331,18 +3954,14 @@
  17564. CFLAGS=
  17565. fi
  17566. fi
  17567. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  17568. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  17569. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  17570. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17571. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  17572. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  17573. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  17574. + $as_echo_n "(cached) " >&6
  17575. else
  17576. ac_cv_prog_cc_c89=no
  17577. ac_save_CC=$CC
  17578. -cat >conftest.$ac_ext <<_ACEOF
  17579. -/* confdefs.h. */
  17580. -_ACEOF
  17581. -cat confdefs.h >>conftest.$ac_ext
  17582. -cat >>conftest.$ac_ext <<_ACEOF
  17583. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17584. /* end confdefs.h. */
  17585. #include <stdarg.h>
  17586. #include <stdio.h>
  17587. @@ -3399,31 +4018,9 @@
  17588. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17589. do
  17590. CC="$ac_save_CC $ac_arg"
  17591. - rm -f conftest.$ac_objext
  17592. -if { (ac_try="$ac_compile"
  17593. -case "(($ac_try" in
  17594. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17595. - *) ac_try_echo=$ac_try;;
  17596. -esac
  17597. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17598. - (eval "$ac_compile") 2>conftest.er1
  17599. - ac_status=$?
  17600. - grep -v '^ *+' conftest.er1 >conftest.err
  17601. - rm -f conftest.er1
  17602. - cat conftest.err >&5
  17603. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17604. - (exit $ac_status); } && {
  17605. - test -z "$ac_c_werror_flag" ||
  17606. - test ! -s conftest.err
  17607. - } && test -s conftest.$ac_objext; then
  17608. + if ac_fn_c_try_compile "$LINENO"; then :
  17609. ac_cv_prog_cc_c89=$ac_arg
  17610. -else
  17611. - echo "$as_me: failed program was:" >&5
  17612. -sed 's/^/| /' conftest.$ac_ext >&5
  17613. -
  17614. -
  17615. fi
  17616. -
  17617. rm -f core conftest.err conftest.$ac_objext
  17618. test "x$ac_cv_prog_cc_c89" != "xno" && break
  17619. done
  17620. @@ -3434,92 +4031,32 @@
  17621. # AC_CACHE_VAL
  17622. case "x$ac_cv_prog_cc_c89" in
  17623. x)
  17624. - { echo "$as_me:$LINENO: result: none needed" >&5
  17625. -echo "${ECHO_T}none needed" >&6; } ;;
  17626. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  17627. +$as_echo "none needed" >&6; } ;;
  17628. xno)
  17629. - { echo "$as_me:$LINENO: result: unsupported" >&5
  17630. -echo "${ECHO_T}unsupported" >&6; } ;;
  17631. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  17632. +$as_echo "unsupported" >&6; } ;;
  17633. *)
  17634. CC="$CC $ac_cv_prog_cc_c89"
  17635. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  17636. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  17637. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  17638. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  17639. esac
  17640. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  17641. +fi
  17642. ac_ext=c
  17643. ac_cpp='$CPP $CPPFLAGS'
  17644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17647. -DEPDIR="${am__leading_dot}deps"
  17648. -
  17649. -ac_config_commands="$ac_config_commands depfiles"
  17650. -
  17651. -
  17652. -am_make=${MAKE-make}
  17653. -cat > confinc << 'END'
  17654. -am__doit:
  17655. - @echo done
  17656. -.PHONY: am__doit
  17657. -END
  17658. -# If we don't find an include directive, just comment out the code.
  17659. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  17660. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  17661. -am__include="#"
  17662. -am__quote=
  17663. -_am_result=none
  17664. -# First try GNU make style include.
  17665. -echo "include confinc" > confmf
  17666. -# We grep out `Entering directory' and `Leaving directory'
  17667. -# messages which can occur if `w' ends up in MAKEFLAGS.
  17668. -# In particular we don't look at `^make:' because GNU make might
  17669. -# be invoked under some other name (usually "gmake"), in which
  17670. -# case it prints its new name instead of `make'.
  17671. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  17672. - am__include=include
  17673. - am__quote=
  17674. - _am_result=GNU
  17675. -fi
  17676. -# Now try BSD make style include.
  17677. -if test "$am__include" = "#"; then
  17678. - echo '.include "confinc"' > confmf
  17679. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  17680. - am__include=.include
  17681. - am__quote="\""
  17682. - _am_result=BSD
  17683. - fi
  17684. -fi
  17685. -
  17686. -
  17687. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  17688. -echo "${ECHO_T}$_am_result" >&6; }
  17689. -rm -f confinc confmf
  17690. -
  17691. -# Check whether --enable-dependency-tracking was given.
  17692. -if test "${enable_dependency_tracking+set}" = set; then
  17693. - enableval=$enable_dependency_tracking;
  17694. -fi
  17695. -
  17696. -if test "x$enable_dependency_tracking" != xno; then
  17697. - am_depcomp="$ac_aux_dir/depcomp"
  17698. - AMDEPBACKSLASH='\'
  17699. -fi
  17700. - if test "x$enable_dependency_tracking" != xno; then
  17701. - AMDEP_TRUE=
  17702. - AMDEP_FALSE='#'
  17703. -else
  17704. - AMDEP_TRUE='#'
  17705. - AMDEP_FALSE=
  17706. -fi
  17707. -
  17708. -
  17709. depcc="$CC" am_compiler_list=
  17710. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17711. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  17712. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  17713. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17714. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  17715. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  17716. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  17717. + $as_echo_n "(cached) " >&6
  17718. else
  17719. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17720. # We make a subdir and do the tests there. Otherwise we can end up
  17721. @@ -3544,6 +4081,11 @@
  17722. if test "$am_compiler_list" = ""; then
  17723. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17724. fi
  17725. + am__universal=false
  17726. + case " $depcc " in #(
  17727. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  17728. + esac
  17729. +
  17730. for depmode in $am_compiler_list; do
  17731. # Setup a source with many dependencies, because some compilers
  17732. # like to wrap large dependency lists on column 80 (with \), and
  17733. @@ -3561,7 +4103,17 @@
  17734. done
  17735. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17736. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17737. + # mode. It turns out that the SunPro C++ compiler does not properly
  17738. + # handle `-M -o', and we need to detect this. Also, some Intel
  17739. + # versions had trouble with output in subdirs
  17740. + am__obj=sub/conftest.${OBJEXT-o}
  17741. + am__minus_obj="-o $am__obj"
  17742. case $depmode in
  17743. + gcc)
  17744. + # This depmode causes a compiler race in universal mode.
  17745. + test "$am__universal" = false || continue
  17746. + ;;
  17747. nosideeffect)
  17748. # after this tag, mechanisms are not by side-effect, so they'll
  17749. # only be used when explicitly requested
  17750. @@ -3571,19 +4123,23 @@
  17751. break
  17752. fi
  17753. ;;
  17754. + msvisualcpp | msvcmsys)
  17755. + # This compiler won't grok `-c -o', but also, the minuso test has
  17756. + # not run yet. These depmodes are late enough in the game, and
  17757. + # so weak that their functioning should not be impacted.
  17758. + am__obj=conftest.${OBJEXT-o}
  17759. + am__minus_obj=
  17760. + ;;
  17761. none) break ;;
  17762. esac
  17763. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17764. - # mode. It turns out that the SunPro C++ compiler does not properly
  17765. - # handle `-M -o', and we need to detect this.
  17766. if depmode=$depmode \
  17767. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17768. + source=sub/conftest.c object=$am__obj \
  17769. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17770. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17771. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  17772. >/dev/null 2>conftest.err &&
  17773. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  17774. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17775. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17776. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  17777. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17778. # icc doesn't choke on unknown options, it will just issue warnings
  17779. # or remarks (even with -Werror). So we grep stderr for any message
  17780. @@ -3607,8 +4163,8 @@
  17781. fi
  17782. fi
  17783. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  17784. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  17785. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  17786. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  17787. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  17788. if
  17789. @@ -3622,1456 +4178,1149 @@
  17790. fi
  17791. -if test "x$CC" != xcc; then
  17792. - { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  17793. -echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  17794. -else
  17795. - { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  17796. -echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  17797. +
  17798. +ac_ext=c
  17799. +ac_cpp='$CPP $CPPFLAGS'
  17800. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17801. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17802. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17803. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  17804. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  17805. +# On Suns, sometimes $CPP names a directory.
  17806. +if test -n "$CPP" && test -d "$CPP"; then
  17807. + CPP=
  17808. fi
  17809. -set dummy $CC; ac_cc=`echo $2 |
  17810. - sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  17811. -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  17812. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17813. +if test -z "$CPP"; then
  17814. + if test "${ac_cv_prog_CPP+set}" = set; then :
  17815. + $as_echo_n "(cached) " >&6
  17816. else
  17817. - cat >conftest.$ac_ext <<_ACEOF
  17818. -/* confdefs.h. */
  17819. -_ACEOF
  17820. -cat confdefs.h >>conftest.$ac_ext
  17821. -cat >>conftest.$ac_ext <<_ACEOF
  17822. + # Double quotes because CPP needs to be expanded
  17823. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  17824. + do
  17825. + ac_preproc_ok=false
  17826. +for ac_c_preproc_warn_flag in '' yes
  17827. +do
  17828. + # Use a header file that comes with gcc, so configuring glibc
  17829. + # with a fresh cross-compiler works.
  17830. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17831. + # <limits.h> exists even on freestanding compilers.
  17832. + # On the NeXT, cc -E runs the code through the compiler's parser,
  17833. + # not just through cpp. "Syntax error" is here to catch this case.
  17834. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17835. /* end confdefs.h. */
  17836. +#ifdef __STDC__
  17837. +# include <limits.h>
  17838. +#else
  17839. +# include <assert.h>
  17840. +#endif
  17841. + Syntax error
  17842. +_ACEOF
  17843. +if ac_fn_c_try_cpp "$LINENO"; then :
  17844. -int
  17845. -main ()
  17846. -{
  17847. +else
  17848. + # Broken: fails on valid input.
  17849. +continue
  17850. +fi
  17851. +rm -f conftest.err conftest.$ac_ext
  17852. - ;
  17853. - return 0;
  17854. -}
  17855. + # OK, works on sane cases. Now check whether nonexistent headers
  17856. + # can be detected and how.
  17857. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17858. +/* end confdefs.h. */
  17859. +#include <ac_nonexistent.h>
  17860. _ACEOF
  17861. -# Make sure it works both with $CC and with simple cc.
  17862. -# We do the test twice because some compilers refuse to overwrite an
  17863. -# existing .o file with -o, though they will create one.
  17864. -ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  17865. -rm -f conftest2.*
  17866. -if { (case "(($ac_try" in
  17867. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17868. - *) ac_try_echo=$ac_try;;
  17869. -esac
  17870. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17871. - (eval "$ac_try") 2>&5
  17872. - ac_status=$?
  17873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17874. - (exit $ac_status); } &&
  17875. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  17876. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17877. - *) ac_try_echo=$ac_try;;
  17878. -esac
  17879. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17880. - (eval "$ac_try") 2>&5
  17881. - ac_status=$?
  17882. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17883. - (exit $ac_status); };
  17884. -then
  17885. - eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  17886. - if test "x$CC" != xcc; then
  17887. - # Test first that cc exists at all.
  17888. - if { ac_try='cc -c conftest.$ac_ext >&5'
  17889. - { (case "(($ac_try" in
  17890. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17891. - *) ac_try_echo=$ac_try;;
  17892. -esac
  17893. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17894. - (eval "$ac_try") 2>&5
  17895. - ac_status=$?
  17896. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17897. - (exit $ac_status); }; }; then
  17898. - ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  17899. - rm -f conftest2.*
  17900. - if { (case "(($ac_try" in
  17901. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17902. - *) ac_try_echo=$ac_try;;
  17903. -esac
  17904. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17905. - (eval "$ac_try") 2>&5
  17906. - ac_status=$?
  17907. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17908. - (exit $ac_status); } &&
  17909. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  17910. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17911. - *) ac_try_echo=$ac_try;;
  17912. -esac
  17913. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17914. - (eval "$ac_try") 2>&5
  17915. - ac_status=$?
  17916. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17917. - (exit $ac_status); };
  17918. - then
  17919. - # cc works too.
  17920. - :
  17921. - else
  17922. - # cc exists but doesn't like -o.
  17923. - eval ac_cv_prog_cc_${ac_cc}_c_o=no
  17924. - fi
  17925. - fi
  17926. - fi
  17927. +if ac_fn_c_try_cpp "$LINENO"; then :
  17928. + # Broken: success on invalid input.
  17929. +continue
  17930. else
  17931. - eval ac_cv_prog_cc_${ac_cc}_c_o=no
  17932. + # Passes both tests.
  17933. +ac_preproc_ok=:
  17934. +break
  17935. fi
  17936. -rm -f core conftest*
  17937. +rm -f conftest.err conftest.$ac_ext
  17938. +done
  17939. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17940. +rm -f conftest.err conftest.$ac_ext
  17941. +if $ac_preproc_ok; then :
  17942. + break
  17943. fi
  17944. -if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  17945. - { echo "$as_me:$LINENO: result: yes" >&5
  17946. -echo "${ECHO_T}yes" >&6; }
  17947. -else
  17948. - { echo "$as_me:$LINENO: result: no" >&5
  17949. -echo "${ECHO_T}no" >&6; }
  17950. -cat >>confdefs.h <<\_ACEOF
  17951. -#define NO_MINUS_C_MINUS_O 1
  17952. + done
  17953. + ac_cv_prog_CPP=$CPP
  17954. +
  17955. +fi
  17956. + CPP=$ac_cv_prog_CPP
  17957. +else
  17958. + ac_cv_prog_CPP=$CPP
  17959. +fi
  17960. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  17961. +$as_echo "$CPP" >&6; }
  17962. +ac_preproc_ok=false
  17963. +for ac_c_preproc_warn_flag in '' yes
  17964. +do
  17965. + # Use a header file that comes with gcc, so configuring glibc
  17966. + # with a fresh cross-compiler works.
  17967. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17968. + # <limits.h> exists even on freestanding compilers.
  17969. + # On the NeXT, cc -E runs the code through the compiler's parser,
  17970. + # not just through cpp. "Syntax error" is here to catch this case.
  17971. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17972. +/* end confdefs.h. */
  17973. +#ifdef __STDC__
  17974. +# include <limits.h>
  17975. +#else
  17976. +# include <assert.h>
  17977. +#endif
  17978. + Syntax error
  17979. _ACEOF
  17980. +if ac_fn_c_try_cpp "$LINENO"; then :
  17981. +else
  17982. + # Broken: fails on valid input.
  17983. +continue
  17984. fi
  17985. +rm -f conftest.err conftest.$ac_ext
  17986. -# FIXME: we rely on the cache variable name because
  17987. -# there is no other way.
  17988. -set dummy $CC
  17989. -ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  17990. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  17991. - # Losing compiler, so override with the script.
  17992. - # FIXME: It is wrong to rewrite CC.
  17993. - # But if we don't then we get into trouble of one sort or another.
  17994. - # A longer-term fix would be to have automake use am__CC in this case,
  17995. - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  17996. - CC="$am_aux_dir/compile $CC"
  17997. + # OK, works on sane cases. Now check whether nonexistent headers
  17998. + # can be detected and how.
  17999. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18000. +/* end confdefs.h. */
  18001. +#include <ac_nonexistent.h>
  18002. +_ACEOF
  18003. +if ac_fn_c_try_cpp "$LINENO"; then :
  18004. + # Broken: success on invalid input.
  18005. +continue
  18006. +else
  18007. + # Passes both tests.
  18008. +ac_preproc_ok=:
  18009. +break
  18010. +fi
  18011. +rm -f conftest.err conftest.$ac_ext
  18012. +
  18013. +done
  18014. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18015. +rm -f conftest.err conftest.$ac_ext
  18016. +if $ac_preproc_ok; then :
  18017. +
  18018. +else
  18019. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18020. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18021. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  18022. +See \`config.log' for more details." "$LINENO" 5; }
  18023. fi
  18024. +ac_ext=c
  18025. +ac_cpp='$CPP $CPPFLAGS'
  18026. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18027. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18028. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18029. -# Find a good install program. We prefer a C program (faster),
  18030. -# so one script is as good as another. But avoid the broken or
  18031. -# incompatible versions:
  18032. -# SysV /etc/install, /usr/sbin/install
  18033. -# SunOS /usr/etc/install
  18034. -# IRIX /sbin/install
  18035. -# AIX /bin/install
  18036. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  18037. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  18038. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  18039. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  18040. -# OS/2's system install, which has a completely different semantic
  18041. -# ./install, which can be erroneously created by make from ./install.sh.
  18042. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  18043. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  18044. -if test -z "$INSTALL"; then
  18045. -if test "${ac_cv_path_install+set}" = set; then
  18046. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18047. +
  18048. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  18049. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  18050. +if test "${ac_cv_path_GREP+set}" = set; then :
  18051. + $as_echo_n "(cached) " >&6
  18052. else
  18053. + if test -z "$GREP"; then
  18054. + ac_path_GREP_found=false
  18055. + # Loop through the user's path and test for each of PROGNAME-LIST
  18056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18057. -for as_dir in $PATH
  18058. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  18059. do
  18060. IFS=$as_save_IFS
  18061. test -z "$as_dir" && as_dir=.
  18062. - # Account for people who put trailing slashes in PATH elements.
  18063. -case $as_dir/ in
  18064. - ./ | .// | /cC/* | \
  18065. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  18066. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  18067. - /usr/ucb/* ) ;;
  18068. - *)
  18069. - # OSF1 and SCO ODT 3.0 have their own names for install.
  18070. - # Don't use installbsd from OSF since it installs stuff as root
  18071. - # by default.
  18072. - for ac_prog in ginstall scoinst install; do
  18073. - for ac_exec_ext in '' $ac_executable_extensions; do
  18074. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  18075. - if test $ac_prog = install &&
  18076. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  18077. - # AIX install. It has an incompatible calling convention.
  18078. - :
  18079. - elif test $ac_prog = install &&
  18080. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  18081. - # program-specific install script used by HP pwplus--don't use.
  18082. - :
  18083. - else
  18084. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18085. - break 3
  18086. - fi
  18087. - fi
  18088. - done
  18089. - done
  18090. - ;;
  18091. + for ac_prog in grep ggrep; do
  18092. + for ac_exec_ext in '' $ac_executable_extensions; do
  18093. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  18094. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  18095. +# Check for GNU ac_path_GREP and select it if it is found.
  18096. + # Check for GNU $ac_path_GREP
  18097. +case `"$ac_path_GREP" --version 2>&1` in
  18098. +*GNU*)
  18099. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  18100. +*)
  18101. + ac_count=0
  18102. + $as_echo_n 0123456789 >"conftest.in"
  18103. + while :
  18104. + do
  18105. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  18106. + mv "conftest.tmp" "conftest.in"
  18107. + cp "conftest.in" "conftest.nl"
  18108. + $as_echo 'GREP' >> "conftest.nl"
  18109. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18110. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18111. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  18112. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  18113. + # Best one so far, save it but keep looking for a better one
  18114. + ac_cv_path_GREP="$ac_path_GREP"
  18115. + ac_path_GREP_max=$ac_count
  18116. + fi
  18117. + # 10*(2^10) chars as input seems more than enough
  18118. + test $ac_count -gt 10 && break
  18119. + done
  18120. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  18121. esac
  18122. -done
  18123. -IFS=$as_save_IFS
  18124. -
  18125. -fi
  18126. - if test "${ac_cv_path_install+set}" = set; then
  18127. - INSTALL=$ac_cv_path_install
  18128. - else
  18129. - # As a last resort, use the slow shell script. Don't cache a
  18130. - # value for INSTALL within a source directory, because that will
  18131. - # break other packages using the cache if that directory is
  18132. - # removed, or if the value is a relative name.
  18133. - INSTALL=$ac_install_sh
  18134. + $ac_path_GREP_found && break 3
  18135. + done
  18136. + done
  18137. + done
  18138. +IFS=$as_save_IFS
  18139. + if test -z "$ac_cv_path_GREP"; then
  18140. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  18141. fi
  18142. +else
  18143. + ac_cv_path_GREP=$GREP
  18144. fi
  18145. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  18146. -echo "${ECHO_T}$INSTALL" >&6; }
  18147. -
  18148. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  18149. -# It thinks the first close brace ends the variable substitution.
  18150. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  18151. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  18152. +fi
  18153. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  18154. +$as_echo "$ac_cv_path_GREP" >&6; }
  18155. + GREP="$ac_cv_path_GREP"
  18156. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  18157. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  18158. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  18159. -LN_S=$as_ln_s
  18160. -if test "$LN_S" = "ln -s"; then
  18161. - { echo "$as_me:$LINENO: result: yes" >&5
  18162. -echo "${ECHO_T}yes" >&6; }
  18163. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  18164. +$as_echo_n "checking for egrep... " >&6; }
  18165. +if test "${ac_cv_path_EGREP+set}" = set; then :
  18166. + $as_echo_n "(cached) " >&6
  18167. else
  18168. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  18169. -echo "${ECHO_T}no, using $LN_S" >&6; }
  18170. -fi
  18171. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  18172. + then ac_cv_path_EGREP="$GREP -E"
  18173. + else
  18174. + if test -z "$EGREP"; then
  18175. + ac_path_EGREP_found=false
  18176. + # Loop through the user's path and test for each of PROGNAME-LIST
  18177. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18178. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  18179. +do
  18180. + IFS=$as_save_IFS
  18181. + test -z "$as_dir" && as_dir=.
  18182. + for ac_prog in egrep; do
  18183. + for ac_exec_ext in '' $ac_executable_extensions; do
  18184. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  18185. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  18186. +# Check for GNU ac_path_EGREP and select it if it is found.
  18187. + # Check for GNU $ac_path_EGREP
  18188. +case `"$ac_path_EGREP" --version 2>&1` in
  18189. +*GNU*)
  18190. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  18191. +*)
  18192. + ac_count=0
  18193. + $as_echo_n 0123456789 >"conftest.in"
  18194. + while :
  18195. + do
  18196. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  18197. + mv "conftest.tmp" "conftest.in"
  18198. + cp "conftest.in" "conftest.nl"
  18199. + $as_echo 'EGREP' >> "conftest.nl"
  18200. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18201. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18202. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  18203. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  18204. + # Best one so far, save it but keep looking for a better one
  18205. + ac_cv_path_EGREP="$ac_path_EGREP"
  18206. + ac_path_EGREP_max=$ac_count
  18207. + fi
  18208. + # 10*(2^10) chars as input seems more than enough
  18209. + test $ac_count -gt 10 && break
  18210. + done
  18211. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  18212. +esac
  18213. -# Check whether --enable-shared was given.
  18214. -if test "${enable_shared+set}" = set; then
  18215. - enableval=$enable_shared; p=${PACKAGE-default}
  18216. - case $enableval in
  18217. - yes) enable_shared=yes ;;
  18218. - no) enable_shared=no ;;
  18219. - *)
  18220. - enable_shared=no
  18221. - # Look at the argument we got. We use all the common list separators.
  18222. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18223. - for pkg in $enableval; do
  18224. - IFS="$lt_save_ifs"
  18225. - if test "X$pkg" = "X$p"; then
  18226. - enable_shared=yes
  18227. - fi
  18228. - done
  18229. - IFS="$lt_save_ifs"
  18230. - ;;
  18231. - esac
  18232. + $ac_path_EGREP_found && break 3
  18233. + done
  18234. + done
  18235. + done
  18236. +IFS=$as_save_IFS
  18237. + if test -z "$ac_cv_path_EGREP"; then
  18238. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  18239. + fi
  18240. else
  18241. - enable_shared=yes
  18242. + ac_cv_path_EGREP=$EGREP
  18243. fi
  18244. + fi
  18245. +fi
  18246. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  18247. +$as_echo "$ac_cv_path_EGREP" >&6; }
  18248. + EGREP="$ac_cv_path_EGREP"
  18249. -# Check whether --enable-static was given.
  18250. -if test "${enable_static+set}" = set; then
  18251. - enableval=$enable_static; p=${PACKAGE-default}
  18252. - case $enableval in
  18253. - yes) enable_static=yes ;;
  18254. - no) enable_static=no ;;
  18255. - *)
  18256. - enable_static=no
  18257. - # Look at the argument we got. We use all the common list separators.
  18258. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18259. - for pkg in $enableval; do
  18260. - IFS="$lt_save_ifs"
  18261. - if test "X$pkg" = "X$p"; then
  18262. - enable_static=yes
  18263. - fi
  18264. - done
  18265. - IFS="$lt_save_ifs"
  18266. - ;;
  18267. - esac
  18268. +
  18269. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  18270. +$as_echo_n "checking for ANSI C header files... " >&6; }
  18271. +if test "${ac_cv_header_stdc+set}" = set; then :
  18272. + $as_echo_n "(cached) " >&6
  18273. else
  18274. - enable_static=yes
  18275. -fi
  18276. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18277. +/* end confdefs.h. */
  18278. +#include <stdlib.h>
  18279. +#include <stdarg.h>
  18280. +#include <string.h>
  18281. +#include <float.h>
  18282. +int
  18283. +main ()
  18284. +{
  18285. -# Check whether --enable-fast-install was given.
  18286. -if test "${enable_fast_install+set}" = set; then
  18287. - enableval=$enable_fast_install; p=${PACKAGE-default}
  18288. - case $enableval in
  18289. - yes) enable_fast_install=yes ;;
  18290. - no) enable_fast_install=no ;;
  18291. - *)
  18292. - enable_fast_install=no
  18293. - # Look at the argument we got. We use all the common list separators.
  18294. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18295. - for pkg in $enableval; do
  18296. - IFS="$lt_save_ifs"
  18297. - if test "X$pkg" = "X$p"; then
  18298. - enable_fast_install=yes
  18299. - fi
  18300. - done
  18301. - IFS="$lt_save_ifs"
  18302. - ;;
  18303. - esac
  18304. + ;
  18305. + return 0;
  18306. +}
  18307. +_ACEOF
  18308. +if ac_fn_c_try_compile "$LINENO"; then :
  18309. + ac_cv_header_stdc=yes
  18310. else
  18311. - enable_fast_install=yes
  18312. + ac_cv_header_stdc=no
  18313. fi
  18314. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18315. +if test $ac_cv_header_stdc = yes; then
  18316. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18317. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18318. +/* end confdefs.h. */
  18319. +#include <string.h>
  18320. +
  18321. +_ACEOF
  18322. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18323. + $EGREP "memchr" >/dev/null 2>&1; then :
  18324. -# Make sure we can run config.sub.
  18325. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  18326. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  18327. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  18328. - { (exit 1); exit 1; }; }
  18329. -
  18330. -{ echo "$as_me:$LINENO: checking build system type" >&5
  18331. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  18332. -if test "${ac_cv_build+set}" = set; then
  18333. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18334. else
  18335. - ac_build_alias=$build_alias
  18336. -test "x$ac_build_alias" = x &&
  18337. - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  18338. -test "x$ac_build_alias" = x &&
  18339. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  18340. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  18341. - { (exit 1); exit 1; }; }
  18342. -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  18343. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  18344. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  18345. - { (exit 1); exit 1; }; }
  18346. + ac_cv_header_stdc=no
  18347. +fi
  18348. +rm -f conftest*
  18349. fi
  18350. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  18351. -echo "${ECHO_T}$ac_cv_build" >&6; }
  18352. -case $ac_cv_build in
  18353. -*-*-*) ;;
  18354. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  18355. -echo "$as_me: error: invalid value of canonical build" >&2;}
  18356. - { (exit 1); exit 1; }; };;
  18357. -esac
  18358. -build=$ac_cv_build
  18359. -ac_save_IFS=$IFS; IFS='-'
  18360. -set x $ac_cv_build
  18361. -shift
  18362. -build_cpu=$1
  18363. -build_vendor=$2
  18364. -shift; shift
  18365. -# Remember, the first character of IFS is used to create $*,
  18366. -# except with old shells:
  18367. -build_os=$*
  18368. -IFS=$ac_save_IFS
  18369. -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  18370. +if test $ac_cv_header_stdc = yes; then
  18371. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18372. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18373. +/* end confdefs.h. */
  18374. +#include <stdlib.h>
  18375. +
  18376. +_ACEOF
  18377. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18378. + $EGREP "free" >/dev/null 2>&1; then :
  18379. -{ echo "$as_me:$LINENO: checking host system type" >&5
  18380. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  18381. -if test "${ac_cv_host+set}" = set; then
  18382. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18383. -else
  18384. - if test "x$host_alias" = x; then
  18385. - ac_cv_host=$ac_cv_build
  18386. else
  18387. - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  18388. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  18389. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  18390. - { (exit 1); exit 1; }; }
  18391. + ac_cv_header_stdc=no
  18392. fi
  18393. +rm -f conftest*
  18394. fi
  18395. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  18396. -echo "${ECHO_T}$ac_cv_host" >&6; }
  18397. -case $ac_cv_host in
  18398. -*-*-*) ;;
  18399. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  18400. -echo "$as_me: error: invalid value of canonical host" >&2;}
  18401. - { (exit 1); exit 1; }; };;
  18402. -esac
  18403. -host=$ac_cv_host
  18404. -ac_save_IFS=$IFS; IFS='-'
  18405. -set x $ac_cv_host
  18406. -shift
  18407. -host_cpu=$1
  18408. -host_vendor=$2
  18409. -shift; shift
  18410. -# Remember, the first character of IFS is used to create $*,
  18411. -# except with old shells:
  18412. -host_os=$*
  18413. -IFS=$ac_save_IFS
  18414. -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  18415. +if test $ac_cv_header_stdc = yes; then
  18416. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18417. + if test "$cross_compiling" = yes; then :
  18418. + :
  18419. +else
  18420. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18421. +/* end confdefs.h. */
  18422. +#include <ctype.h>
  18423. +#include <stdlib.h>
  18424. +#if ((' ' & 0x0FF) == 0x020)
  18425. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18426. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18427. +#else
  18428. +# define ISLOWER(c) \
  18429. + (('a' <= (c) && (c) <= 'i') \
  18430. + || ('j' <= (c) && (c) <= 'r') \
  18431. + || ('s' <= (c) && (c) <= 'z'))
  18432. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18433. +#endif
  18434. +
  18435. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18436. +int
  18437. +main ()
  18438. +{
  18439. + int i;
  18440. + for (i = 0; i < 256; i++)
  18441. + if (XOR (islower (i), ISLOWER (i))
  18442. + || toupper (i) != TOUPPER (i))
  18443. + return 2;
  18444. + return 0;
  18445. +}
  18446. +_ACEOF
  18447. +if ac_fn_c_try_run "$LINENO"; then :
  18448. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  18449. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  18450. -if test "${lt_cv_path_SED+set}" = set; then
  18451. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18452. else
  18453. - # Loop through the user's path and test for sed and gsed.
  18454. -# Then use that list of sed's as ones to test for truncation.
  18455. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18456. -for as_dir in $PATH
  18457. -do
  18458. - IFS=$as_save_IFS
  18459. - test -z "$as_dir" && as_dir=.
  18460. - for lt_ac_prog in sed gsed; do
  18461. - for ac_exec_ext in '' $ac_executable_extensions; do
  18462. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  18463. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  18464. - fi
  18465. - done
  18466. - done
  18467. -done
  18468. -IFS=$as_save_IFS
  18469. -lt_ac_max=0
  18470. -lt_ac_count=0
  18471. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  18472. -# along with /bin/sed that truncates output.
  18473. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  18474. - test ! -f $lt_ac_sed && continue
  18475. - cat /dev/null > conftest.in
  18476. - lt_ac_count=0
  18477. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  18478. - # Check for GNU sed and select it if it is found.
  18479. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  18480. - lt_cv_path_SED=$lt_ac_sed
  18481. - break
  18482. - fi
  18483. - while true; do
  18484. - cat conftest.in conftest.in >conftest.tmp
  18485. - mv conftest.tmp conftest.in
  18486. - cp conftest.in conftest.nl
  18487. - echo >>conftest.nl
  18488. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  18489. - cmp -s conftest.out conftest.nl || break
  18490. - # 10000 chars as input seems more than enough
  18491. - test $lt_ac_count -gt 10 && break
  18492. - lt_ac_count=`expr $lt_ac_count + 1`
  18493. - if test $lt_ac_count -gt $lt_ac_max; then
  18494. - lt_ac_max=$lt_ac_count
  18495. - lt_cv_path_SED=$lt_ac_sed
  18496. - fi
  18497. - done
  18498. -done
  18499. + ac_cv_header_stdc=no
  18500. +fi
  18501. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18502. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18503. +fi
  18504. fi
  18505. +fi
  18506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  18507. +$as_echo "$ac_cv_header_stdc" >&6; }
  18508. +if test $ac_cv_header_stdc = yes; then
  18509. -SED=$lt_cv_path_SED
  18510. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  18511. -{ echo "$as_me:$LINENO: result: $SED" >&5
  18512. -echo "${ECHO_T}$SED" >&6; }
  18513. +fi
  18514. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  18515. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  18516. -if test "${ac_cv_path_GREP+set}" = set; then
  18517. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18518. -else
  18519. - # Extract the first word of "grep ggrep" to use in msg output
  18520. -if test -z "$GREP"; then
  18521. -set dummy grep ggrep; ac_prog_name=$2
  18522. -if test "${ac_cv_path_GREP+set}" = set; then
  18523. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18524. -else
  18525. - ac_path_GREP_found=false
  18526. -# Loop through the user's path and test for each of PROGNAME-LIST
  18527. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18528. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  18529. -do
  18530. - IFS=$as_save_IFS
  18531. - test -z "$as_dir" && as_dir=.
  18532. - for ac_prog in grep ggrep; do
  18533. - for ac_exec_ext in '' $ac_executable_extensions; do
  18534. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  18535. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  18536. - # Check for GNU ac_path_GREP and select it if it is found.
  18537. - # Check for GNU $ac_path_GREP
  18538. -case `"$ac_path_GREP" --version 2>&1` in
  18539. -*GNU*)
  18540. - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  18541. -*)
  18542. - ac_count=0
  18543. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  18544. - while :
  18545. - do
  18546. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  18547. - mv "conftest.tmp" "conftest.in"
  18548. - cp "conftest.in" "conftest.nl"
  18549. - echo 'GREP' >> "conftest.nl"
  18550. - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18551. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18552. - ac_count=`expr $ac_count + 1`
  18553. - if test $ac_count -gt ${ac_path_GREP_max-0}; then
  18554. - # Best one so far, save it but keep looking for a better one
  18555. - ac_cv_path_GREP="$ac_path_GREP"
  18556. - ac_path_GREP_max=$ac_count
  18557. - fi
  18558. - # 10*(2^10) chars as input seems more than enough
  18559. - test $ac_count -gt 10 && break
  18560. - done
  18561. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  18562. -esac
  18563. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  18564. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  18565. + inttypes.h stdint.h unistd.h
  18566. +do :
  18567. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18568. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  18569. +"
  18570. +eval as_val=\$$as_ac_Header
  18571. + if test "x$as_val" = x""yes; then :
  18572. + cat >>confdefs.h <<_ACEOF
  18573. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18574. +_ACEOF
  18575. +fi
  18576. - $ac_path_GREP_found && break 3
  18577. - done
  18578. done
  18579. -done
  18580. -IFS=$as_save_IFS
  18581. + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  18582. +if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  18583. + MINIX=yes
  18584. +else
  18585. + MINIX=
  18586. fi
  18587. -GREP="$ac_cv_path_GREP"
  18588. -if test -z "$GREP"; then
  18589. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  18590. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  18591. - { (exit 1); exit 1; }; }
  18592. -fi
  18593. + if test "$MINIX" = yes; then
  18594. +
  18595. +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  18596. +
  18597. +
  18598. +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  18599. +
  18600. +
  18601. +$as_echo "#define _MINIX 1" >>confdefs.h
  18602. +
  18603. + fi
  18604. +
  18605. +
  18606. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  18607. +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  18608. +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  18609. + $as_echo_n "(cached) " >&6
  18610. else
  18611. - ac_cv_path_GREP=$GREP
  18612. -fi
  18613. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18614. +/* end confdefs.h. */
  18615. +# define __EXTENSIONS__ 1
  18616. + $ac_includes_default
  18617. +int
  18618. +main ()
  18619. +{
  18620. + ;
  18621. + return 0;
  18622. +}
  18623. +_ACEOF
  18624. +if ac_fn_c_try_compile "$LINENO"; then :
  18625. + ac_cv_safe_to_define___extensions__=yes
  18626. +else
  18627. + ac_cv_safe_to_define___extensions__=no
  18628. fi
  18629. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  18630. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  18631. - GREP="$ac_cv_path_GREP"
  18632. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18633. +fi
  18634. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  18635. +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  18636. + test $ac_cv_safe_to_define___extensions__ = yes &&
  18637. + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  18638. +
  18639. + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  18640. +
  18641. + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  18642. +
  18643. + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  18644. + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  18645. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  18646. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  18647. -if test "${ac_cv_path_EGREP+set}" = set; then
  18648. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18649. +
  18650. +
  18651. +
  18652. +ac_ext=c
  18653. +ac_cpp='$CPP $CPPFLAGS'
  18654. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18655. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18656. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18657. +if test -n "$ac_tool_prefix"; then
  18658. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  18659. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  18660. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18661. +$as_echo_n "checking for $ac_word... " >&6; }
  18662. +if test "${ac_cv_prog_CC+set}" = set; then :
  18663. + $as_echo_n "(cached) " >&6
  18664. else
  18665. - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  18666. - then ac_cv_path_EGREP="$GREP -E"
  18667. - else
  18668. - # Extract the first word of "egrep" to use in msg output
  18669. -if test -z "$EGREP"; then
  18670. -set dummy egrep; ac_prog_name=$2
  18671. -if test "${ac_cv_path_EGREP+set}" = set; then
  18672. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18673. + if test -n "$CC"; then
  18674. + ac_cv_prog_CC="$CC" # Let the user override the test.
  18675. else
  18676. - ac_path_EGREP_found=false
  18677. -# Loop through the user's path and test for each of PROGNAME-LIST
  18678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18679. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  18680. +for as_dir in $PATH
  18681. do
  18682. IFS=$as_save_IFS
  18683. test -z "$as_dir" && as_dir=.
  18684. - for ac_prog in egrep; do
  18685. - for ac_exec_ext in '' $ac_executable_extensions; do
  18686. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  18687. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  18688. - # Check for GNU ac_path_EGREP and select it if it is found.
  18689. - # Check for GNU $ac_path_EGREP
  18690. -case `"$ac_path_EGREP" --version 2>&1` in
  18691. -*GNU*)
  18692. - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  18693. -*)
  18694. - ac_count=0
  18695. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  18696. - while :
  18697. - do
  18698. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  18699. - mv "conftest.tmp" "conftest.in"
  18700. - cp "conftest.in" "conftest.nl"
  18701. - echo 'EGREP' >> "conftest.nl"
  18702. - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18703. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18704. - ac_count=`expr $ac_count + 1`
  18705. - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  18706. - # Best one so far, save it but keep looking for a better one
  18707. - ac_cv_path_EGREP="$ac_path_EGREP"
  18708. - ac_path_EGREP_max=$ac_count
  18709. - fi
  18710. - # 10*(2^10) chars as input seems more than enough
  18711. - test $ac_count -gt 10 && break
  18712. + for ac_exec_ext in '' $ac_executable_extensions; do
  18713. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18714. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  18715. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18716. + break 2
  18717. + fi
  18718. +done
  18719. done
  18720. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  18721. -esac
  18722. +IFS=$as_save_IFS
  18723. +fi
  18724. +fi
  18725. +CC=$ac_cv_prog_CC
  18726. +if test -n "$CC"; then
  18727. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18728. +$as_echo "$CC" >&6; }
  18729. +else
  18730. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18731. +$as_echo "no" >&6; }
  18732. +fi
  18733. - $ac_path_EGREP_found && break 3
  18734. - done
  18735. -done
  18736. +fi
  18737. +if test -z "$ac_cv_prog_CC"; then
  18738. + ac_ct_CC=$CC
  18739. + # Extract the first word of "gcc", so it can be a program name with args.
  18740. +set dummy gcc; ac_word=$2
  18741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18742. +$as_echo_n "checking for $ac_word... " >&6; }
  18743. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  18744. + $as_echo_n "(cached) " >&6
  18745. +else
  18746. + if test -n "$ac_ct_CC"; then
  18747. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  18748. +else
  18749. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18750. +for as_dir in $PATH
  18751. +do
  18752. + IFS=$as_save_IFS
  18753. + test -z "$as_dir" && as_dir=.
  18754. + for ac_exec_ext in '' $ac_executable_extensions; do
  18755. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18756. + ac_cv_prog_ac_ct_CC="gcc"
  18757. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18758. + break 2
  18759. + fi
  18760. done
  18761. + done
  18762. IFS=$as_save_IFS
  18763. -
  18764. fi
  18765. -
  18766. -EGREP="$ac_cv_path_EGREP"
  18767. -if test -z "$EGREP"; then
  18768. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  18769. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  18770. - { (exit 1); exit 1; }; }
  18771. fi
  18772. -
  18773. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  18774. +if test -n "$ac_ct_CC"; then
  18775. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  18776. +$as_echo "$ac_ct_CC" >&6; }
  18777. else
  18778. - ac_cv_path_EGREP=$EGREP
  18779. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18780. +$as_echo "no" >&6; }
  18781. fi
  18782. -
  18783. - fi
  18784. + if test "x$ac_ct_CC" = x; then
  18785. + CC=""
  18786. + else
  18787. + case $cross_compiling:$ac_tool_warned in
  18788. +yes:)
  18789. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18790. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18791. +ac_tool_warned=yes ;;
  18792. +esac
  18793. + CC=$ac_ct_CC
  18794. + fi
  18795. +else
  18796. + CC="$ac_cv_prog_CC"
  18797. fi
  18798. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  18799. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  18800. - EGREP="$ac_cv_path_EGREP"
  18801. -
  18802. +if test -z "$CC"; then
  18803. + if test -n "$ac_tool_prefix"; then
  18804. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  18805. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  18806. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18807. +$as_echo_n "checking for $ac_word... " >&6; }
  18808. +if test "${ac_cv_prog_CC+set}" = set; then :
  18809. + $as_echo_n "(cached) " >&6
  18810. +else
  18811. + if test -n "$CC"; then
  18812. + ac_cv_prog_CC="$CC" # Let the user override the test.
  18813. +else
  18814. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18815. +for as_dir in $PATH
  18816. +do
  18817. + IFS=$as_save_IFS
  18818. + test -z "$as_dir" && as_dir=.
  18819. + for ac_exec_ext in '' $ac_executable_extensions; do
  18820. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18821. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  18822. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18823. + break 2
  18824. + fi
  18825. +done
  18826. + done
  18827. +IFS=$as_save_IFS
  18828. -# Check whether --with-gnu-ld was given.
  18829. -if test "${with_gnu_ld+set}" = set; then
  18830. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  18831. +fi
  18832. +fi
  18833. +CC=$ac_cv_prog_CC
  18834. +if test -n "$CC"; then
  18835. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18836. +$as_echo "$CC" >&6; }
  18837. else
  18838. - with_gnu_ld=no
  18839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18840. +$as_echo "no" >&6; }
  18841. fi
  18842. -ac_prog=ld
  18843. -if test "$GCC" = yes; then
  18844. - # Check if gcc -print-prog-name=ld gives a path.
  18845. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  18846. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  18847. - case $host in
  18848. - *-*-mingw*)
  18849. - # gcc leaves a trailing carriage return which upsets mingw
  18850. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  18851. - *)
  18852. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  18853. - esac
  18854. - case $ac_prog in
  18855. - # Accept absolute paths.
  18856. - [\\/]* | ?:[\\/]*)
  18857. - re_direlt='/[^/][^/]*/\.\./'
  18858. - # Canonicalize the pathname of ld
  18859. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  18860. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  18861. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  18862. - done
  18863. - test -z "$LD" && LD="$ac_prog"
  18864. - ;;
  18865. - "")
  18866. - # If it fails, then pretend we aren't using GCC.
  18867. - ac_prog=ld
  18868. - ;;
  18869. - *)
  18870. - # If it is relative, then search for the first ld in PATH.
  18871. - with_gnu_ld=unknown
  18872. - ;;
  18873. - esac
  18874. -elif test "$with_gnu_ld" = yes; then
  18875. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  18876. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  18877. -else
  18878. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  18879. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  18880. +
  18881. + fi
  18882. fi
  18883. -if test "${lt_cv_path_LD+set}" = set; then
  18884. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18885. +if test -z "$CC"; then
  18886. + # Extract the first word of "cc", so it can be a program name with args.
  18887. +set dummy cc; ac_word=$2
  18888. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18889. +$as_echo_n "checking for $ac_word... " >&6; }
  18890. +if test "${ac_cv_prog_CC+set}" = set; then :
  18891. + $as_echo_n "(cached) " >&6
  18892. else
  18893. - if test -z "$LD"; then
  18894. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  18895. - for ac_dir in $PATH; do
  18896. - IFS="$lt_save_ifs"
  18897. - test -z "$ac_dir" && ac_dir=.
  18898. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  18899. - lt_cv_path_LD="$ac_dir/$ac_prog"
  18900. - # Check to see if the program is GNU ld. I'd rather use --version,
  18901. - # but apparently some variants of GNU ld only accept -v.
  18902. - # Break only if it was the GNU/non-GNU ld that we prefer.
  18903. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  18904. - *GNU* | *'with BFD'*)
  18905. - test "$with_gnu_ld" != no && break
  18906. - ;;
  18907. - *)
  18908. - test "$with_gnu_ld" != yes && break
  18909. - ;;
  18910. - esac
  18911. - fi
  18912. - done
  18913. - IFS="$lt_save_ifs"
  18914. + if test -n "$CC"; then
  18915. + ac_cv_prog_CC="$CC" # Let the user override the test.
  18916. else
  18917. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  18918. + ac_prog_rejected=no
  18919. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18920. +for as_dir in $PATH
  18921. +do
  18922. + IFS=$as_save_IFS
  18923. + test -z "$as_dir" && as_dir=.
  18924. + for ac_exec_ext in '' $ac_executable_extensions; do
  18925. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18926. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  18927. + ac_prog_rejected=yes
  18928. + continue
  18929. + fi
  18930. + ac_cv_prog_CC="cc"
  18931. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18932. + break 2
  18933. + fi
  18934. +done
  18935. + done
  18936. +IFS=$as_save_IFS
  18937. +
  18938. +if test $ac_prog_rejected = yes; then
  18939. + # We found a bogon in the path, so make sure we never use it.
  18940. + set dummy $ac_cv_prog_CC
  18941. + shift
  18942. + if test $# != 0; then
  18943. + # We chose a different compiler from the bogus one.
  18944. + # However, it has the same basename, so the bogon will be chosen
  18945. + # first if we set CC to just the basename; use the full file name.
  18946. + shift
  18947. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  18948. + fi
  18949. fi
  18950. fi
  18951. -
  18952. -LD="$lt_cv_path_LD"
  18953. -if test -n "$LD"; then
  18954. - { echo "$as_me:$LINENO: result: $LD" >&5
  18955. -echo "${ECHO_T}$LD" >&6; }
  18956. -else
  18957. - { echo "$as_me:$LINENO: result: no" >&5
  18958. -echo "${ECHO_T}no" >&6; }
  18959. fi
  18960. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  18961. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  18962. - { (exit 1); exit 1; }; }
  18963. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  18964. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  18965. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  18966. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18967. +CC=$ac_cv_prog_CC
  18968. +if test -n "$CC"; then
  18969. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  18970. +$as_echo "$CC" >&6; }
  18971. else
  18972. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  18973. -case `$LD -v 2>&1 </dev/null` in
  18974. -*GNU* | *'with BFD'*)
  18975. - lt_cv_prog_gnu_ld=yes
  18976. - ;;
  18977. -*)
  18978. - lt_cv_prog_gnu_ld=no
  18979. - ;;
  18980. -esac
  18981. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18982. +$as_echo "no" >&6; }
  18983. fi
  18984. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  18985. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  18986. -with_gnu_ld=$lt_cv_prog_gnu_ld
  18987. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  18988. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  18989. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  18990. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18991. -else
  18992. - lt_cv_ld_reload_flag='-r'
  18993. fi
  18994. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  18995. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  18996. -reload_flag=$lt_cv_ld_reload_flag
  18997. -case $reload_flag in
  18998. -"" | " "*) ;;
  18999. -*) reload_flag=" $reload_flag" ;;
  19000. -esac
  19001. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  19002. -case $host_os in
  19003. - darwin*)
  19004. - if test "$GCC" = yes; then
  19005. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  19006. - else
  19007. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  19008. - fi
  19009. - ;;
  19010. -esac
  19011. -
  19012. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  19013. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  19014. -if test "${lt_cv_path_NM+set}" = set; then
  19015. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19016. +if test -z "$CC"; then
  19017. + if test -n "$ac_tool_prefix"; then
  19018. + for ac_prog in cl.exe
  19019. + do
  19020. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19021. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19022. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19023. +$as_echo_n "checking for $ac_word... " >&6; }
  19024. +if test "${ac_cv_prog_CC+set}" = set; then :
  19025. + $as_echo_n "(cached) " >&6
  19026. else
  19027. - if test -n "$NM"; then
  19028. - # Let the user override the test.
  19029. - lt_cv_path_NM="$NM"
  19030. + if test -n "$CC"; then
  19031. + ac_cv_prog_CC="$CC" # Let the user override the test.
  19032. else
  19033. - lt_nm_to_check="${ac_tool_prefix}nm"
  19034. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  19035. - lt_nm_to_check="$lt_nm_to_check nm"
  19036. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19037. +for as_dir in $PATH
  19038. +do
  19039. + IFS=$as_save_IFS
  19040. + test -z "$as_dir" && as_dir=.
  19041. + for ac_exec_ext in '' $ac_executable_extensions; do
  19042. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19043. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  19044. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19045. + break 2
  19046. fi
  19047. - for lt_tmp_nm in $lt_nm_to_check; do
  19048. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19049. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  19050. - IFS="$lt_save_ifs"
  19051. - test -z "$ac_dir" && ac_dir=.
  19052. - tmp_nm="$ac_dir/$lt_tmp_nm"
  19053. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  19054. - # Check to see if the nm accepts a BSD-compat flag.
  19055. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  19056. - # nm: unknown option "B" ignored
  19057. - # Tru64's nm complains that /dev/null is an invalid object file
  19058. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  19059. - */dev/null* | *'Invalid file or object type'*)
  19060. - lt_cv_path_NM="$tmp_nm -B"
  19061. - break
  19062. - ;;
  19063. - *)
  19064. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  19065. - */dev/null*)
  19066. - lt_cv_path_NM="$tmp_nm -p"
  19067. - break
  19068. - ;;
  19069. - *)
  19070. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  19071. - continue # so that we can try to find one that supports BSD flags
  19072. - ;;
  19073. - esac
  19074. - ;;
  19075. - esac
  19076. - fi
  19077. - done
  19078. - IFS="$lt_save_ifs"
  19079. +done
  19080. done
  19081. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  19082. +IFS=$as_save_IFS
  19083. +
  19084. fi
  19085. fi
  19086. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  19087. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  19088. -NM="$lt_cv_path_NM"
  19089. -
  19090. -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  19091. -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  19092. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  19093. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19094. +CC=$ac_cv_prog_CC
  19095. +if test -n "$CC"; then
  19096. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19097. +$as_echo "$CC" >&6; }
  19098. else
  19099. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  19100. -lt_cv_file_magic_test_file=
  19101. -lt_cv_deplibs_check_method='unknown'
  19102. -# Need to set the preceding variable on all platforms that support
  19103. -# interlibrary dependencies.
  19104. -# 'none' -- dependencies not supported.
  19105. -# `unknown' -- same as none, but documents that we really don't know.
  19106. -# 'pass_all' -- all dependencies passed with no checks.
  19107. -# 'test_compile' -- check by making test program.
  19108. -# 'file_magic [[regex]]' -- check by looking for files in library path
  19109. -# which responds to the $file_magic_cmd with a given extended regex.
  19110. -# If you have `file' or equivalent on your system and you're not sure
  19111. -# whether `pass_all' will *always* work, you probably want this one.
  19112. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19113. +$as_echo "no" >&6; }
  19114. +fi
  19115. -case $host_os in
  19116. -aix[4-9]*)
  19117. - lt_cv_deplibs_check_method=pass_all
  19118. - ;;
  19119. -beos*)
  19120. - lt_cv_deplibs_check_method=pass_all
  19121. - ;;
  19122. + test -n "$CC" && break
  19123. + done
  19124. +fi
  19125. +if test -z "$CC"; then
  19126. + ac_ct_CC=$CC
  19127. + for ac_prog in cl.exe
  19128. +do
  19129. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  19130. +set dummy $ac_prog; ac_word=$2
  19131. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19132. +$as_echo_n "checking for $ac_word... " >&6; }
  19133. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19134. + $as_echo_n "(cached) " >&6
  19135. +else
  19136. + if test -n "$ac_ct_CC"; then
  19137. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19138. +else
  19139. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19140. +for as_dir in $PATH
  19141. +do
  19142. + IFS=$as_save_IFS
  19143. + test -z "$as_dir" && as_dir=.
  19144. + for ac_exec_ext in '' $ac_executable_extensions; do
  19145. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19146. + ac_cv_prog_ac_ct_CC="$ac_prog"
  19147. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19148. + break 2
  19149. + fi
  19150. +done
  19151. + done
  19152. +IFS=$as_save_IFS
  19153. -bsdi[45]*)
  19154. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  19155. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  19156. - lt_cv_file_magic_test_file=/shlib/libc.so
  19157. - ;;
  19158. +fi
  19159. +fi
  19160. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19161. +if test -n "$ac_ct_CC"; then
  19162. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19163. +$as_echo "$ac_ct_CC" >&6; }
  19164. +else
  19165. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19166. +$as_echo "no" >&6; }
  19167. +fi
  19168. -cygwin*)
  19169. - # func_win32_libid is a shell function defined in ltmain.sh
  19170. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  19171. - lt_cv_file_magic_cmd='func_win32_libid'
  19172. - ;;
  19173. -mingw* | pw32*)
  19174. - # Base MSYS/MinGW do not provide the 'file' command needed by
  19175. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  19176. - # unless we find 'file', for example because we are cross-compiling.
  19177. - if ( file / ) >/dev/null 2>&1; then
  19178. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  19179. - lt_cv_file_magic_cmd='func_win32_libid'
  19180. + test -n "$ac_ct_CC" && break
  19181. +done
  19182. +
  19183. + if test "x$ac_ct_CC" = x; then
  19184. + CC=""
  19185. else
  19186. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  19187. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  19188. + case $cross_compiling:$ac_tool_warned in
  19189. +yes:)
  19190. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19191. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19192. +ac_tool_warned=yes ;;
  19193. +esac
  19194. + CC=$ac_ct_CC
  19195. fi
  19196. - ;;
  19197. +fi
  19198. -darwin* | rhapsody*)
  19199. - lt_cv_deplibs_check_method=pass_all
  19200. - ;;
  19201. +fi
  19202. -freebsd* | dragonfly*)
  19203. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  19204. - case $host_cpu in
  19205. - i*86 )
  19206. - # Not sure whether the presence of OpenBSD here was a mistake.
  19207. - # Let's accept both of them until this is cleared up.
  19208. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  19209. - lt_cv_file_magic_cmd=/usr/bin/file
  19210. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  19211. - ;;
  19212. - esac
  19213. - else
  19214. - lt_cv_deplibs_check_method=pass_all
  19215. - fi
  19216. - ;;
  19217. -gnu*)
  19218. - lt_cv_deplibs_check_method=pass_all
  19219. - ;;
  19220. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19221. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19222. +as_fn_error "no acceptable C compiler found in \$PATH
  19223. +See \`config.log' for more details." "$LINENO" 5; }
  19224. -hpux10.20* | hpux11*)
  19225. - lt_cv_file_magic_cmd=/usr/bin/file
  19226. - case $host_cpu in
  19227. - ia64*)
  19228. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  19229. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  19230. - ;;
  19231. - hppa*64*)
  19232. - 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]'
  19233. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  19234. - ;;
  19235. - *)
  19236. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  19237. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  19238. - ;;
  19239. - esac
  19240. - ;;
  19241. +# Provide some information about the compiler.
  19242. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  19243. +set X $ac_compile
  19244. +ac_compiler=$2
  19245. +for ac_option in --version -v -V -qversion; do
  19246. + { { ac_try="$ac_compiler $ac_option >&5"
  19247. +case "(($ac_try" in
  19248. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19249. + *) ac_try_echo=$ac_try;;
  19250. +esac
  19251. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19252. +$as_echo "$ac_try_echo"; } >&5
  19253. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  19254. + ac_status=$?
  19255. + if test -s conftest.err; then
  19256. + sed '10a\
  19257. +... rest of stderr output deleted ...
  19258. + 10q' conftest.err >conftest.er1
  19259. + cat conftest.er1 >&5
  19260. + fi
  19261. + rm -f conftest.er1 conftest.err
  19262. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19263. + test $ac_status = 0; }
  19264. +done
  19265. -interix[3-9]*)
  19266. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  19267. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  19268. - ;;
  19269. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  19270. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  19271. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  19272. + $as_echo_n "(cached) " >&6
  19273. +else
  19274. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19275. +/* end confdefs.h. */
  19276. -irix5* | irix6* | nonstopux*)
  19277. - case $LD in
  19278. - *-32|*"-32 ") libmagic=32-bit;;
  19279. - *-n32|*"-n32 ") libmagic=N32;;
  19280. - *-64|*"-64 ") libmagic=64-bit;;
  19281. - *) libmagic=never-match;;
  19282. - esac
  19283. - lt_cv_deplibs_check_method=pass_all
  19284. - ;;
  19285. +int
  19286. +main ()
  19287. +{
  19288. +#ifndef __GNUC__
  19289. + choke me
  19290. +#endif
  19291. -# This must be Linux ELF.
  19292. -linux* | k*bsd*-gnu)
  19293. - lt_cv_deplibs_check_method=pass_all
  19294. - ;;
  19295. + ;
  19296. + return 0;
  19297. +}
  19298. +_ACEOF
  19299. +if ac_fn_c_try_compile "$LINENO"; then :
  19300. + ac_compiler_gnu=yes
  19301. +else
  19302. + ac_compiler_gnu=no
  19303. +fi
  19304. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19305. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  19306. -netbsd*)
  19307. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  19308. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  19309. - else
  19310. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  19311. - fi
  19312. - ;;
  19313. +fi
  19314. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  19315. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  19316. +if test $ac_compiler_gnu = yes; then
  19317. + GCC=yes
  19318. +else
  19319. + GCC=
  19320. +fi
  19321. +ac_test_CFLAGS=${CFLAGS+set}
  19322. +ac_save_CFLAGS=$CFLAGS
  19323. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  19324. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  19325. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  19326. + $as_echo_n "(cached) " >&6
  19327. +else
  19328. + ac_save_c_werror_flag=$ac_c_werror_flag
  19329. + ac_c_werror_flag=yes
  19330. + ac_cv_prog_cc_g=no
  19331. + CFLAGS="-g"
  19332. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19333. +/* end confdefs.h. */
  19334. -newos6*)
  19335. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  19336. - lt_cv_file_magic_cmd=/usr/bin/file
  19337. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  19338. - ;;
  19339. +int
  19340. +main ()
  19341. +{
  19342. -nto-qnx*)
  19343. - lt_cv_deplibs_check_method=unknown
  19344. - ;;
  19345. + ;
  19346. + return 0;
  19347. +}
  19348. +_ACEOF
  19349. +if ac_fn_c_try_compile "$LINENO"; then :
  19350. + ac_cv_prog_cc_g=yes
  19351. +else
  19352. + CFLAGS=""
  19353. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19354. +/* end confdefs.h. */
  19355. -openbsd*)
  19356. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19357. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  19358. - else
  19359. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  19360. - fi
  19361. - ;;
  19362. +int
  19363. +main ()
  19364. +{
  19365. -osf3* | osf4* | osf5*)
  19366. - lt_cv_deplibs_check_method=pass_all
  19367. - ;;
  19368. + ;
  19369. + return 0;
  19370. +}
  19371. +_ACEOF
  19372. +if ac_fn_c_try_compile "$LINENO"; then :
  19373. -rdos*)
  19374. - lt_cv_deplibs_check_method=pass_all
  19375. - ;;
  19376. +else
  19377. + ac_c_werror_flag=$ac_save_c_werror_flag
  19378. + CFLAGS="-g"
  19379. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19380. +/* end confdefs.h. */
  19381. -solaris*)
  19382. - lt_cv_deplibs_check_method=pass_all
  19383. - ;;
  19384. -
  19385. -sysv4 | sysv4.3*)
  19386. - case $host_vendor in
  19387. - motorola)
  19388. - 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]'
  19389. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  19390. - ;;
  19391. - ncr)
  19392. - lt_cv_deplibs_check_method=pass_all
  19393. - ;;
  19394. - sequent)
  19395. - lt_cv_file_magic_cmd='/bin/file'
  19396. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  19397. - ;;
  19398. - sni)
  19399. - lt_cv_file_magic_cmd='/bin/file'
  19400. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  19401. - lt_cv_file_magic_test_file=/lib/libc.so
  19402. - ;;
  19403. - siemens)
  19404. - lt_cv_deplibs_check_method=pass_all
  19405. - ;;
  19406. - pc)
  19407. - lt_cv_deplibs_check_method=pass_all
  19408. - ;;
  19409. - esac
  19410. - ;;
  19411. -
  19412. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  19413. - lt_cv_deplibs_check_method=pass_all
  19414. - ;;
  19415. -esac
  19416. +int
  19417. +main ()
  19418. +{
  19419. + ;
  19420. + return 0;
  19421. +}
  19422. +_ACEOF
  19423. +if ac_fn_c_try_compile "$LINENO"; then :
  19424. + ac_cv_prog_cc_g=yes
  19425. fi
  19426. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  19427. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  19428. -file_magic_cmd=$lt_cv_file_magic_cmd
  19429. -deplibs_check_method=$lt_cv_deplibs_check_method
  19430. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  19431. -
  19432. -
  19433. -
  19434. -
  19435. -# If no C compiler was specified, use CC.
  19436. -LTCC=${LTCC-"$CC"}
  19437. -
  19438. -# If no C compiler flags were specified, use CFLAGS.
  19439. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  19440. -
  19441. -# Allow CC to be a program name with arguments.
  19442. -compiler=$CC
  19443. -
  19444. -
  19445. -# Check whether --enable-libtool-lock was given.
  19446. -if test "${enable_libtool_lock+set}" = set; then
  19447. - enableval=$enable_libtool_lock;
  19448. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19449. fi
  19450. -
  19451. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  19452. -
  19453. -# Some flags need to be propagated to the compiler or linker for good
  19454. -# libtool support.
  19455. -case $host in
  19456. -ia64-*-hpux*)
  19457. - # Find out which ABI we are using.
  19458. - echo 'int i;' > conftest.$ac_ext
  19459. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19460. - (eval $ac_compile) 2>&5
  19461. - ac_status=$?
  19462. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19463. - (exit $ac_status); }; then
  19464. - case `/usr/bin/file conftest.$ac_objext` in
  19465. - *ELF-32*)
  19466. - HPUX_IA64_MODE="32"
  19467. - ;;
  19468. - *ELF-64*)
  19469. - HPUX_IA64_MODE="64"
  19470. - ;;
  19471. - esac
  19472. - fi
  19473. - rm -rf conftest*
  19474. - ;;
  19475. -*-*-irix6*)
  19476. - # Find out which ABI we are using.
  19477. - echo '#line 4639 "configure"' > conftest.$ac_ext
  19478. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19479. - (eval $ac_compile) 2>&5
  19480. - ac_status=$?
  19481. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19482. - (exit $ac_status); }; then
  19483. - if test "$lt_cv_prog_gnu_ld" = yes; then
  19484. - case `/usr/bin/file conftest.$ac_objext` in
  19485. - *32-bit*)
  19486. - LD="${LD-ld} -melf32bsmip"
  19487. - ;;
  19488. - *N32*)
  19489. - LD="${LD-ld} -melf32bmipn32"
  19490. - ;;
  19491. - *64-bit*)
  19492. - LD="${LD-ld} -melf64bmip"
  19493. - ;;
  19494. - esac
  19495. - else
  19496. - case `/usr/bin/file conftest.$ac_objext` in
  19497. - *32-bit*)
  19498. - LD="${LD-ld} -32"
  19499. - ;;
  19500. - *N32*)
  19501. - LD="${LD-ld} -n32"
  19502. - ;;
  19503. - *64-bit*)
  19504. - LD="${LD-ld} -64"
  19505. - ;;
  19506. - esac
  19507. - fi
  19508. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19509. +fi
  19510. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19511. + ac_c_werror_flag=$ac_save_c_werror_flag
  19512. +fi
  19513. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  19514. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  19515. +if test "$ac_test_CFLAGS" = set; then
  19516. + CFLAGS=$ac_save_CFLAGS
  19517. +elif test $ac_cv_prog_cc_g = yes; then
  19518. + if test "$GCC" = yes; then
  19519. + CFLAGS="-g -O2"
  19520. + else
  19521. + CFLAGS="-g"
  19522. fi
  19523. - rm -rf conftest*
  19524. - ;;
  19525. -
  19526. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  19527. -s390*-*linux*|sparc*-*linux*)
  19528. - # Find out which ABI we are using.
  19529. - echo 'int i;' > conftest.$ac_ext
  19530. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19531. - (eval $ac_compile) 2>&5
  19532. - ac_status=$?
  19533. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19534. - (exit $ac_status); }; then
  19535. - case `/usr/bin/file conftest.o` in
  19536. - *32-bit*)
  19537. - case $host in
  19538. - x86_64-*kfreebsd*-gnu)
  19539. - LD="${LD-ld} -m elf_i386_fbsd"
  19540. - ;;
  19541. - x86_64-*linux*)
  19542. - LD="${LD-ld} -m elf_i386"
  19543. - ;;
  19544. - ppc64-*linux*|powerpc64-*linux*)
  19545. - LD="${LD-ld} -m elf32ppclinux"
  19546. - ;;
  19547. - s390x-*linux*)
  19548. - LD="${LD-ld} -m elf_s390"
  19549. - ;;
  19550. - sparc64-*linux*)
  19551. - LD="${LD-ld} -m elf32_sparc"
  19552. - ;;
  19553. - esac
  19554. - ;;
  19555. - *64-bit*)
  19556. - case $host in
  19557. - x86_64-*kfreebsd*-gnu)
  19558. - LD="${LD-ld} -m elf_x86_64_fbsd"
  19559. - ;;
  19560. - x86_64-*linux*)
  19561. - LD="${LD-ld} -m elf_x86_64"
  19562. - ;;
  19563. - ppc*-*linux*|powerpc*-*linux*)
  19564. - LD="${LD-ld} -m elf64ppc"
  19565. - ;;
  19566. - s390*-*linux*)
  19567. - LD="${LD-ld} -m elf64_s390"
  19568. - ;;
  19569. - sparc*-*linux*)
  19570. - LD="${LD-ld} -m elf64_sparc"
  19571. - ;;
  19572. - esac
  19573. - ;;
  19574. - esac
  19575. +else
  19576. + if test "$GCC" = yes; then
  19577. + CFLAGS="-O2"
  19578. + else
  19579. + CFLAGS=
  19580. fi
  19581. - rm -rf conftest*
  19582. - ;;
  19583. -
  19584. -*-*-sco3.2v5*)
  19585. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  19586. - SAVE_CFLAGS="$CFLAGS"
  19587. - CFLAGS="$CFLAGS -belf"
  19588. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  19589. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  19590. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  19591. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19592. +fi
  19593. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  19594. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  19595. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  19596. + $as_echo_n "(cached) " >&6
  19597. else
  19598. - ac_ext=c
  19599. -ac_cpp='$CPP $CPPFLAGS'
  19600. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19601. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19602. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19603. -
  19604. - cat >conftest.$ac_ext <<_ACEOF
  19605. -/* confdefs.h. */
  19606. -_ACEOF
  19607. -cat confdefs.h >>conftest.$ac_ext
  19608. -cat >>conftest.$ac_ext <<_ACEOF
  19609. + ac_cv_prog_cc_c89=no
  19610. +ac_save_CC=$CC
  19611. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19612. /* end confdefs.h. */
  19613. +#include <stdarg.h>
  19614. +#include <stdio.h>
  19615. +#include <sys/types.h>
  19616. +#include <sys/stat.h>
  19617. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  19618. +struct buf { int x; };
  19619. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  19620. +static char *e (p, i)
  19621. + char **p;
  19622. + int i;
  19623. +{
  19624. + return p[i];
  19625. +}
  19626. +static char *f (char * (*g) (char **, int), char **p, ...)
  19627. +{
  19628. + char *s;
  19629. + va_list v;
  19630. + va_start (v,p);
  19631. + s = g (p, va_arg (v,int));
  19632. + va_end (v);
  19633. + return s;
  19634. +}
  19635. +
  19636. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  19637. + function prototypes and stuff, but not '\xHH' hex character constants.
  19638. + These don't provoke an error unfortunately, instead are silently treated
  19639. + as 'x'. The following induces an error, until -std is added to get
  19640. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  19641. + array size at least. It's necessary to write '\x00'==0 to get something
  19642. + that's true only with -std. */
  19643. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  19644. +
  19645. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  19646. + inside strings and character constants. */
  19647. +#define FOO(x) 'x'
  19648. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  19649. +int test (int i, double x);
  19650. +struct s1 {int (*f) (int a);};
  19651. +struct s2 {int (*f) (double a);};
  19652. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  19653. +int argc;
  19654. +char **argv;
  19655. int
  19656. main ()
  19657. {
  19658. -
  19659. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  19660. ;
  19661. return 0;
  19662. }
  19663. _ACEOF
  19664. -rm -f conftest.$ac_objext conftest$ac_exeext
  19665. -if { (ac_try="$ac_link"
  19666. -case "(($ac_try" in
  19667. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19668. - *) ac_try_echo=$ac_try;;
  19669. -esac
  19670. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19671. - (eval "$ac_link") 2>conftest.er1
  19672. - ac_status=$?
  19673. - grep -v '^ *+' conftest.er1 >conftest.err
  19674. - rm -f conftest.er1
  19675. - cat conftest.err >&5
  19676. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19677. - (exit $ac_status); } && {
  19678. - test -z "$ac_c_werror_flag" ||
  19679. - test ! -s conftest.err
  19680. - } && test -s conftest$ac_exeext &&
  19681. - $as_test_x conftest$ac_exeext; then
  19682. - lt_cv_cc_needs_belf=yes
  19683. -else
  19684. - echo "$as_me: failed program was:" >&5
  19685. -sed 's/^/| /' conftest.$ac_ext >&5
  19686. -
  19687. - lt_cv_cc_needs_belf=no
  19688. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  19689. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  19690. +do
  19691. + CC="$ac_save_CC $ac_arg"
  19692. + if ac_fn_c_try_compile "$LINENO"; then :
  19693. + ac_cv_prog_cc_c89=$ac_arg
  19694. fi
  19695. -
  19696. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19697. - conftest$ac_exeext conftest.$ac_ext
  19698. - ac_ext=c
  19699. -ac_cpp='$CPP $CPPFLAGS'
  19700. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19701. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19702. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19703. +rm -f core conftest.err conftest.$ac_objext
  19704. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  19705. +done
  19706. +rm -f conftest.$ac_ext
  19707. +CC=$ac_save_CC
  19708. fi
  19709. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  19710. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  19711. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  19712. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  19713. - CFLAGS="$SAVE_CFLAGS"
  19714. - fi
  19715. - ;;
  19716. -sparc*-*solaris*)
  19717. - # Find out which ABI we are using.
  19718. - echo 'int i;' > conftest.$ac_ext
  19719. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19720. - (eval $ac_compile) 2>&5
  19721. - ac_status=$?
  19722. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19723. - (exit $ac_status); }; then
  19724. - case `/usr/bin/file conftest.o` in
  19725. - *64-bit*)
  19726. - case $lt_cv_prog_gnu_ld in
  19727. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  19728. - *)
  19729. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  19730. - LD="${LD-ld} -64"
  19731. - fi
  19732. - ;;
  19733. - esac
  19734. - ;;
  19735. - esac
  19736. - fi
  19737. - rm -rf conftest*
  19738. - ;;
  19739. -
  19740. -
  19741. +# AC_CACHE_VAL
  19742. +case "x$ac_cv_prog_cc_c89" in
  19743. + x)
  19744. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  19745. +$as_echo "none needed" >&6; } ;;
  19746. + xno)
  19747. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  19748. +$as_echo "unsupported" >&6; } ;;
  19749. + *)
  19750. + CC="$CC $ac_cv_prog_cc_c89"
  19751. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  19752. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  19753. esac
  19754. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  19755. -need_locks="$enable_libtool_lock"
  19756. -
  19757. +fi
  19758. ac_ext=c
  19759. ac_cpp='$CPP $CPPFLAGS'
  19760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19763. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  19764. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  19765. -# On Suns, sometimes $CPP names a directory.
  19766. -if test -n "$CPP" && test -d "$CPP"; then
  19767. - CPP=
  19768. -fi
  19769. -if test -z "$CPP"; then
  19770. - if test "${ac_cv_prog_CPP+set}" = set; then
  19771. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19772. -else
  19773. - # Double quotes because CPP needs to be expanded
  19774. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  19775. - do
  19776. - ac_preproc_ok=false
  19777. -for ac_c_preproc_warn_flag in '' yes
  19778. -do
  19779. - # Use a header file that comes with gcc, so configuring glibc
  19780. - # with a fresh cross-compiler works.
  19781. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19782. - # <limits.h> exists even on freestanding compilers.
  19783. - # On the NeXT, cc -E runs the code through the compiler's parser,
  19784. - # not just through cpp. "Syntax error" is here to catch this case.
  19785. - cat >conftest.$ac_ext <<_ACEOF
  19786. -/* confdefs.h. */
  19787. -_ACEOF
  19788. -cat confdefs.h >>conftest.$ac_ext
  19789. -cat >>conftest.$ac_ext <<_ACEOF
  19790. -/* end confdefs.h. */
  19791. -#ifdef __STDC__
  19792. -# include <limits.h>
  19793. -#else
  19794. -# include <assert.h>
  19795. -#endif
  19796. - Syntax error
  19797. -_ACEOF
  19798. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19799. -case "(($ac_try" in
  19800. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19801. - *) ac_try_echo=$ac_try;;
  19802. -esac
  19803. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19804. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19805. - ac_status=$?
  19806. - grep -v '^ *+' conftest.er1 >conftest.err
  19807. - rm -f conftest.er1
  19808. - cat conftest.err >&5
  19809. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19810. - (exit $ac_status); } >/dev/null && {
  19811. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19812. - test ! -s conftest.err
  19813. - }; then
  19814. - :
  19815. -else
  19816. - echo "$as_me: failed program was:" >&5
  19817. -sed 's/^/| /' conftest.$ac_ext >&5
  19818. -
  19819. - # Broken: fails on valid input.
  19820. -continue
  19821. -fi
  19822. -rm -f conftest.err conftest.$ac_ext
  19823. +depcc="$CC" am_compiler_list=
  19824. - # OK, works on sane cases. Now check whether nonexistent headers
  19825. - # can be detected and how.
  19826. - cat >conftest.$ac_ext <<_ACEOF
  19827. -/* confdefs.h. */
  19828. -_ACEOF
  19829. -cat confdefs.h >>conftest.$ac_ext
  19830. -cat >>conftest.$ac_ext <<_ACEOF
  19831. -/* end confdefs.h. */
  19832. -#include <ac_nonexistent.h>
  19833. -_ACEOF
  19834. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  19835. -case "(($ac_try" in
  19836. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19837. - *) ac_try_echo=$ac_try;;
  19838. -esac
  19839. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19840. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19841. - ac_status=$?
  19842. - grep -v '^ *+' conftest.er1 >conftest.err
  19843. - rm -f conftest.er1
  19844. - cat conftest.err >&5
  19845. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19846. - (exit $ac_status); } >/dev/null && {
  19847. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19848. - test ! -s conftest.err
  19849. - }; then
  19850. - # Broken: success on invalid input.
  19851. -continue
  19852. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  19853. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  19854. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  19855. + $as_echo_n "(cached) " >&6
  19856. else
  19857. - echo "$as_me: failed program was:" >&5
  19858. -sed 's/^/| /' conftest.$ac_ext >&5
  19859. -
  19860. - # Passes both tests.
  19861. -ac_preproc_ok=:
  19862. -break
  19863. -fi
  19864. -
  19865. -rm -f conftest.err conftest.$ac_ext
  19866. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  19867. + # We make a subdir and do the tests there. Otherwise we can end up
  19868. + # making bogus files that we don't know about and never remove. For
  19869. + # instance it was reported that on HP-UX the gcc test will end up
  19870. + # making a dummy file named `D' -- because `-MD' means `put the output
  19871. + # in D'.
  19872. + mkdir conftest.dir
  19873. + # Copy depcomp to subdir because otherwise we won't find it if we're
  19874. + # using a relative directory.
  19875. + cp "$am_depcomp" conftest.dir
  19876. + cd conftest.dir
  19877. + # We will build objects and dependencies in a subdirectory because
  19878. + # it helps to detect inapplicable dependency modes. For instance
  19879. + # both Tru64's cc and ICC support -MD to output dependencies as a
  19880. + # side effect of compilation, but ICC will put the dependencies in
  19881. + # the current directory while Tru64 will put them in the object
  19882. + # directory.
  19883. + mkdir sub
  19884. -done
  19885. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19886. -rm -f conftest.err conftest.$ac_ext
  19887. -if $ac_preproc_ok; then
  19888. - break
  19889. -fi
  19890. + am_cv_CC_dependencies_compiler_type=none
  19891. + if test "$am_compiler_list" = ""; then
  19892. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  19893. + fi
  19894. + am__universal=false
  19895. + case " $depcc " in #(
  19896. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  19897. + esac
  19898. + for depmode in $am_compiler_list; do
  19899. + # Setup a source with many dependencies, because some compilers
  19900. + # like to wrap large dependency lists on column 80 (with \), and
  19901. + # we should not choose a depcomp mode which is confused by this.
  19902. + #
  19903. + # We need to recreate these files for each test, as the compiler may
  19904. + # overwrite some of them when testing with obscure command lines.
  19905. + # This happens at least with the AIX C compiler.
  19906. + : > sub/conftest.c
  19907. + for i in 1 2 3 4 5 6; do
  19908. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  19909. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  19910. + # Solaris 8's {/usr,}/bin/sh.
  19911. + touch sub/conftst$i.h
  19912. done
  19913. - ac_cv_prog_CPP=$CPP
  19914. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  19915. -fi
  19916. - CPP=$ac_cv_prog_CPP
  19917. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19918. + # mode. It turns out that the SunPro C++ compiler does not properly
  19919. + # handle `-M -o', and we need to detect this. Also, some Intel
  19920. + # versions had trouble with output in subdirs
  19921. + am__obj=sub/conftest.${OBJEXT-o}
  19922. + am__minus_obj="-o $am__obj"
  19923. + case $depmode in
  19924. + gcc)
  19925. + # This depmode causes a compiler race in universal mode.
  19926. + test "$am__universal" = false || continue
  19927. + ;;
  19928. + nosideeffect)
  19929. + # after this tag, mechanisms are not by side-effect, so they'll
  19930. + # only be used when explicitly requested
  19931. + if test "x$enable_dependency_tracking" = xyes; then
  19932. + continue
  19933. + else
  19934. + break
  19935. + fi
  19936. + ;;
  19937. + msvisualcpp | msvcmsys)
  19938. + # This compiler won't grok `-c -o', but also, the minuso test has
  19939. + # not run yet. These depmodes are late enough in the game, and
  19940. + # so weak that their functioning should not be impacted.
  19941. + am__obj=conftest.${OBJEXT-o}
  19942. + am__minus_obj=
  19943. + ;;
  19944. + none) break ;;
  19945. + esac
  19946. + if depmode=$depmode \
  19947. + source=sub/conftest.c object=$am__obj \
  19948. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  19949. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  19950. + >/dev/null 2>conftest.err &&
  19951. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  19952. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  19953. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  19954. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  19955. + # icc doesn't choke on unknown options, it will just issue warnings
  19956. + # or remarks (even with -Werror). So we grep stderr for any message
  19957. + # that says an option was ignored or not supported.
  19958. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  19959. + # icc: Command line warning: ignoring option '-M'; no argument required
  19960. + # The diagnosis changed in icc 8.0:
  19961. + # icc: Command line remark: option '-MP' not supported
  19962. + if (grep 'ignoring option' conftest.err ||
  19963. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  19964. + am_cv_CC_dependencies_compiler_type=$depmode
  19965. + break
  19966. + fi
  19967. + fi
  19968. + done
  19969. +
  19970. + cd ..
  19971. + rm -rf conftest.dir
  19972. else
  19973. - ac_cv_prog_CPP=$CPP
  19974. + am_cv_CC_dependencies_compiler_type=none
  19975. fi
  19976. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  19977. -echo "${ECHO_T}$CPP" >&6; }
  19978. -ac_preproc_ok=false
  19979. -for ac_c_preproc_warn_flag in '' yes
  19980. -do
  19981. - # Use a header file that comes with gcc, so configuring glibc
  19982. - # with a fresh cross-compiler works.
  19983. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19984. - # <limits.h> exists even on freestanding compilers.
  19985. - # On the NeXT, cc -E runs the code through the compiler's parser,
  19986. - # not just through cpp. "Syntax error" is here to catch this case.
  19987. - cat >conftest.$ac_ext <<_ACEOF
  19988. -/* confdefs.h. */
  19989. -_ACEOF
  19990. -cat confdefs.h >>conftest.$ac_ext
  19991. -cat >>conftest.$ac_ext <<_ACEOF
  19992. -/* end confdefs.h. */
  19993. -#ifdef __STDC__
  19994. -# include <limits.h>
  19995. -#else
  19996. -# include <assert.h>
  19997. -#endif
  19998. - Syntax error
  19999. -_ACEOF
  20000. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  20001. -case "(($ac_try" in
  20002. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20003. - *) ac_try_echo=$ac_try;;
  20004. -esac
  20005. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20006. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20007. - ac_status=$?
  20008. - grep -v '^ *+' conftest.er1 >conftest.err
  20009. - rm -f conftest.er1
  20010. - cat conftest.err >&5
  20011. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20012. - (exit $ac_status); } >/dev/null && {
  20013. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20014. - test ! -s conftest.err
  20015. - }; then
  20016. - :
  20017. -else
  20018. - echo "$as_me: failed program was:" >&5
  20019. -sed 's/^/| /' conftest.$ac_ext >&5
  20020. - # Broken: fails on valid input.
  20021. -continue
  20022. fi
  20023. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  20024. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  20025. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  20026. -rm -f conftest.err conftest.$ac_ext
  20027. -
  20028. - # OK, works on sane cases. Now check whether nonexistent headers
  20029. - # can be detected and how.
  20030. - cat >conftest.$ac_ext <<_ACEOF
  20031. -/* confdefs.h. */
  20032. -_ACEOF
  20033. -cat confdefs.h >>conftest.$ac_ext
  20034. -cat >>conftest.$ac_ext <<_ACEOF
  20035. -/* end confdefs.h. */
  20036. -#include <ac_nonexistent.h>
  20037. -_ACEOF
  20038. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  20039. -case "(($ac_try" in
  20040. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20041. - *) ac_try_echo=$ac_try;;
  20042. -esac
  20043. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20044. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20045. - ac_status=$?
  20046. - grep -v '^ *+' conftest.er1 >conftest.err
  20047. - rm -f conftest.er1
  20048. - cat conftest.err >&5
  20049. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20050. - (exit $ac_status); } >/dev/null && {
  20051. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20052. - test ! -s conftest.err
  20053. - }; then
  20054. - # Broken: success on invalid input.
  20055. -continue
  20056. + if
  20057. + test "x$enable_dependency_tracking" != xno \
  20058. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  20059. + am__fastdepCC_TRUE=
  20060. + am__fastdepCC_FALSE='#'
  20061. else
  20062. - echo "$as_me: failed program was:" >&5
  20063. -sed 's/^/| /' conftest.$ac_ext >&5
  20064. -
  20065. - # Passes both tests.
  20066. -ac_preproc_ok=:
  20067. -break
  20068. + am__fastdepCC_TRUE='#'
  20069. + am__fastdepCC_FALSE=
  20070. fi
  20071. -rm -f conftest.err conftest.$ac_ext
  20072. -done
  20073. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  20074. -rm -f conftest.err conftest.$ac_ext
  20075. -if $ac_preproc_ok; then
  20076. - :
  20077. +if test "x$CC" != xcc; then
  20078. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  20079. +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  20080. else
  20081. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  20082. -See \`config.log' for more details." >&5
  20083. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  20084. -See \`config.log' for more details." >&2;}
  20085. - { (exit 1); exit 1; }; }
  20086. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  20087. +$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  20088. fi
  20089. -
  20090. -ac_ext=c
  20091. -ac_cpp='$CPP $CPPFLAGS'
  20092. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20093. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20094. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20095. -
  20096. -
  20097. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  20098. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  20099. -if test "${ac_cv_header_stdc+set}" = set; then
  20100. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20101. +set dummy $CC; ac_cc=`$as_echo "$2" |
  20102. + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  20103. +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  20104. + $as_echo_n "(cached) " >&6
  20105. else
  20106. - cat >conftest.$ac_ext <<_ACEOF
  20107. -/* confdefs.h. */
  20108. -_ACEOF
  20109. -cat confdefs.h >>conftest.$ac_ext
  20110. -cat >>conftest.$ac_ext <<_ACEOF
  20111. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20112. /* end confdefs.h. */
  20113. -#include <stdlib.h>
  20114. -#include <stdarg.h>
  20115. -#include <string.h>
  20116. -#include <float.h>
  20117. int
  20118. main ()
  20119. @@ -5081,1344 +5330,692 @@
  20120. return 0;
  20121. }
  20122. _ACEOF
  20123. -rm -f conftest.$ac_objext
  20124. -if { (ac_try="$ac_compile"
  20125. -case "(($ac_try" in
  20126. +# Make sure it works both with $CC and with simple cc.
  20127. +# We do the test twice because some compilers refuse to overwrite an
  20128. +# existing .o file with -o, though they will create one.
  20129. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  20130. +rm -f conftest2.*
  20131. +if { { case "(($ac_try" in
  20132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20133. *) ac_try_echo=$ac_try;;
  20134. esac
  20135. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20136. - (eval "$ac_compile") 2>conftest.er1
  20137. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20138. +$as_echo "$ac_try_echo"; } >&5
  20139. + (eval "$ac_try") 2>&5
  20140. ac_status=$?
  20141. - grep -v '^ *+' conftest.er1 >conftest.err
  20142. - rm -f conftest.er1
  20143. - cat conftest.err >&5
  20144. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20145. - (exit $ac_status); } && {
  20146. - test -z "$ac_c_werror_flag" ||
  20147. - test ! -s conftest.err
  20148. - } && test -s conftest.$ac_objext; then
  20149. - ac_cv_header_stdc=yes
  20150. -else
  20151. - echo "$as_me: failed program was:" >&5
  20152. -sed 's/^/| /' conftest.$ac_ext >&5
  20153. -
  20154. - ac_cv_header_stdc=no
  20155. -fi
  20156. -
  20157. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20158. -
  20159. -if test $ac_cv_header_stdc = yes; then
  20160. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20161. - cat >conftest.$ac_ext <<_ACEOF
  20162. -/* confdefs.h. */
  20163. -_ACEOF
  20164. -cat confdefs.h >>conftest.$ac_ext
  20165. -cat >>conftest.$ac_ext <<_ACEOF
  20166. -/* end confdefs.h. */
  20167. -#include <string.h>
  20168. -
  20169. -_ACEOF
  20170. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20171. - $EGREP "memchr" >/dev/null 2>&1; then
  20172. - :
  20173. -else
  20174. - ac_cv_header_stdc=no
  20175. -fi
  20176. -rm -f conftest*
  20177. -
  20178. -fi
  20179. -
  20180. -if test $ac_cv_header_stdc = yes; then
  20181. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20182. - cat >conftest.$ac_ext <<_ACEOF
  20183. -/* confdefs.h. */
  20184. -_ACEOF
  20185. -cat confdefs.h >>conftest.$ac_ext
  20186. -cat >>conftest.$ac_ext <<_ACEOF
  20187. -/* end confdefs.h. */
  20188. -#include <stdlib.h>
  20189. -
  20190. -_ACEOF
  20191. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20192. - $EGREP "free" >/dev/null 2>&1; then
  20193. - :
  20194. -else
  20195. - ac_cv_header_stdc=no
  20196. -fi
  20197. -rm -f conftest*
  20198. -
  20199. -fi
  20200. -
  20201. -if test $ac_cv_header_stdc = yes; then
  20202. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20203. - if test "$cross_compiling" = yes; then
  20204. - :
  20205. -else
  20206. - cat >conftest.$ac_ext <<_ACEOF
  20207. -/* confdefs.h. */
  20208. -_ACEOF
  20209. -cat confdefs.h >>conftest.$ac_ext
  20210. -cat >>conftest.$ac_ext <<_ACEOF
  20211. -/* end confdefs.h. */
  20212. -#include <ctype.h>
  20213. -#include <stdlib.h>
  20214. -#if ((' ' & 0x0FF) == 0x020)
  20215. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  20216. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20217. -#else
  20218. -# define ISLOWER(c) \
  20219. - (('a' <= (c) && (c) <= 'i') \
  20220. - || ('j' <= (c) && (c) <= 'r') \
  20221. - || ('s' <= (c) && (c) <= 'z'))
  20222. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20223. -#endif
  20224. -
  20225. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  20226. -int
  20227. -main ()
  20228. -{
  20229. - int i;
  20230. - for (i = 0; i < 256; i++)
  20231. - if (XOR (islower (i), ISLOWER (i))
  20232. - || toupper (i) != TOUPPER (i))
  20233. - return 2;
  20234. - return 0;
  20235. -}
  20236. -_ACEOF
  20237. -rm -f conftest$ac_exeext
  20238. -if { (ac_try="$ac_link"
  20239. -case "(($ac_try" in
  20240. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20241. + test $ac_status = 0; } &&
  20242. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  20243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20244. *) ac_try_echo=$ac_try;;
  20245. esac
  20246. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20247. - (eval "$ac_link") 2>&5
  20248. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20249. +$as_echo "$ac_try_echo"; } >&5
  20250. + (eval "$ac_try") 2>&5
  20251. + ac_status=$?
  20252. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20253. + test $ac_status = 0; };
  20254. +then
  20255. + eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  20256. + if test "x$CC" != xcc; then
  20257. + # Test first that cc exists at all.
  20258. + if { ac_try='cc -c conftest.$ac_ext >&5'
  20259. + { { case "(($ac_try" in
  20260. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20261. + *) ac_try_echo=$ac_try;;
  20262. +esac
  20263. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20264. +$as_echo "$ac_try_echo"; } >&5
  20265. + (eval "$ac_try") 2>&5
  20266. + ac_status=$?
  20267. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20268. + test $ac_status = 0; }; }; then
  20269. + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  20270. + rm -f conftest2.*
  20271. + if { { case "(($ac_try" in
  20272. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20273. + *) ac_try_echo=$ac_try;;
  20274. +esac
  20275. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20276. +$as_echo "$ac_try_echo"; } >&5
  20277. + (eval "$ac_try") 2>&5
  20278. ac_status=$?
  20279. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20280. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20281. - { (case "(($ac_try" in
  20282. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20283. + test $ac_status = 0; } &&
  20284. + test -f conftest2.$ac_objext && { { case "(($ac_try" in
  20285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20286. *) ac_try_echo=$ac_try;;
  20287. esac
  20288. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20289. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20290. +$as_echo "$ac_try_echo"; } >&5
  20291. (eval "$ac_try") 2>&5
  20292. ac_status=$?
  20293. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20294. - (exit $ac_status); }; }; then
  20295. - :
  20296. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20297. + test $ac_status = 0; };
  20298. + then
  20299. + # cc works too.
  20300. + :
  20301. + else
  20302. + # cc exists but doesn't like -o.
  20303. + eval ac_cv_prog_cc_${ac_cc}_c_o=no
  20304. + fi
  20305. + fi
  20306. + fi
  20307. else
  20308. - echo "$as_me: program exited with status $ac_status" >&5
  20309. -echo "$as_me: failed program was:" >&5
  20310. -sed 's/^/| /' conftest.$ac_ext >&5
  20311. -
  20312. -( exit $ac_status )
  20313. -ac_cv_header_stdc=no
  20314. + eval ac_cv_prog_cc_${ac_cc}_c_o=no
  20315. fi
  20316. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20317. +rm -f core conftest*
  20318. +
  20319. fi
  20320. +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  20321. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20322. +$as_echo "yes" >&6; }
  20323. +else
  20324. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20325. +$as_echo "no" >&6; }
  20326. +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  20327. fi
  20328. -fi
  20329. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  20330. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  20331. -if test $ac_cv_header_stdc = yes; then
  20332. -
  20333. -cat >>confdefs.h <<\_ACEOF
  20334. -#define STDC_HEADERS 1
  20335. -_ACEOF
  20336. +# FIXME: we rely on the cache variable name because
  20337. +# there is no other way.
  20338. +set dummy $CC
  20339. +am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  20340. +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  20341. +if test "$am_t" != yes; then
  20342. + # Losing compiler, so override with the script.
  20343. + # FIXME: It is wrong to rewrite CC.
  20344. + # But if we don't then we get into trouble of one sort or another.
  20345. + # A longer-term fix would be to have automake use am__CC in this case,
  20346. + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  20347. + CC="$am_aux_dir/compile $CC"
  20348. fi
  20349. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  20350. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  20351. +$as_echo_n "checking whether ln -s works... " >&6; }
  20352. +LN_S=$as_ln_s
  20353. +if test "$LN_S" = "ln -s"; then
  20354. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20355. +$as_echo "yes" >&6; }
  20356. +else
  20357. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  20358. +$as_echo "no, using $LN_S" >&6; }
  20359. +fi
  20360. +case `pwd` in
  20361. + *\ * | *\ *)
  20362. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  20363. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  20364. +esac
  20365. +macro_version='2.2.6b'
  20366. +macro_revision='1.3017'
  20367. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  20368. - inttypes.h stdint.h unistd.h
  20369. -do
  20370. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20371. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  20372. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20373. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20374. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20375. -else
  20376. - cat >conftest.$ac_ext <<_ACEOF
  20377. -/* confdefs.h. */
  20378. -_ACEOF
  20379. -cat confdefs.h >>conftest.$ac_ext
  20380. -cat >>conftest.$ac_ext <<_ACEOF
  20381. -/* end confdefs.h. */
  20382. -$ac_includes_default
  20383. -#include <$ac_header>
  20384. -_ACEOF
  20385. -rm -f conftest.$ac_objext
  20386. -if { (ac_try="$ac_compile"
  20387. -case "(($ac_try" in
  20388. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20389. - *) ac_try_echo=$ac_try;;
  20390. -esac
  20391. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20392. - (eval "$ac_compile") 2>conftest.er1
  20393. - ac_status=$?
  20394. - grep -v '^ *+' conftest.er1 >conftest.err
  20395. - rm -f conftest.er1
  20396. - cat conftest.err >&5
  20397. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20398. - (exit $ac_status); } && {
  20399. - test -z "$ac_c_werror_flag" ||
  20400. - test ! -s conftest.err
  20401. - } && test -s conftest.$ac_objext; then
  20402. - eval "$as_ac_Header=yes"
  20403. -else
  20404. - echo "$as_me: failed program was:" >&5
  20405. -sed 's/^/| /' conftest.$ac_ext >&5
  20406. - eval "$as_ac_Header=no"
  20407. -fi
  20408. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20409. -fi
  20410. -ac_res=`eval echo '${'$as_ac_Header'}'`
  20411. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  20412. -echo "${ECHO_T}$ac_res" >&6; }
  20413. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20414. - cat >>confdefs.h <<_ACEOF
  20415. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20416. -_ACEOF
  20417. -fi
  20418. -done
  20419. -for ac_header in dlfcn.h
  20420. -do
  20421. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20422. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20423. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20424. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20425. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20426. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20427. -fi
  20428. -ac_res=`eval echo '${'$as_ac_Header'}'`
  20429. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  20430. -echo "${ECHO_T}$ac_res" >&6; }
  20431. -else
  20432. - # Is the header compilable?
  20433. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20434. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20435. -cat >conftest.$ac_ext <<_ACEOF
  20436. -/* confdefs.h. */
  20437. -_ACEOF
  20438. -cat confdefs.h >>conftest.$ac_ext
  20439. -cat >>conftest.$ac_ext <<_ACEOF
  20440. -/* end confdefs.h. */
  20441. -$ac_includes_default
  20442. -#include <$ac_header>
  20443. -_ACEOF
  20444. -rm -f conftest.$ac_objext
  20445. -if { (ac_try="$ac_compile"
  20446. -case "(($ac_try" in
  20447. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20448. - *) ac_try_echo=$ac_try;;
  20449. -esac
  20450. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20451. - (eval "$ac_compile") 2>conftest.er1
  20452. - ac_status=$?
  20453. - grep -v '^ *+' conftest.er1 >conftest.err
  20454. - rm -f conftest.er1
  20455. - cat conftest.err >&5
  20456. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20457. - (exit $ac_status); } && {
  20458. - test -z "$ac_c_werror_flag" ||
  20459. - test ! -s conftest.err
  20460. - } && test -s conftest.$ac_objext; then
  20461. - ac_header_compiler=yes
  20462. -else
  20463. - echo "$as_me: failed program was:" >&5
  20464. -sed 's/^/| /' conftest.$ac_ext >&5
  20465. - ac_header_compiler=no
  20466. -fi
  20467. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20468. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20469. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  20470. +ltmain="$ac_aux_dir/ltmain.sh"
  20471. -# Is the header present?
  20472. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20473. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20474. -cat >conftest.$ac_ext <<_ACEOF
  20475. -/* confdefs.h. */
  20476. -_ACEOF
  20477. -cat confdefs.h >>conftest.$ac_ext
  20478. -cat >>conftest.$ac_ext <<_ACEOF
  20479. -/* end confdefs.h. */
  20480. -#include <$ac_header>
  20481. -_ACEOF
  20482. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  20483. -case "(($ac_try" in
  20484. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20485. - *) ac_try_echo=$ac_try;;
  20486. -esac
  20487. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20488. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20489. - ac_status=$?
  20490. - grep -v '^ *+' conftest.er1 >conftest.err
  20491. - rm -f conftest.er1
  20492. - cat conftest.err >&5
  20493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20494. - (exit $ac_status); } >/dev/null && {
  20495. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20496. - test ! -s conftest.err
  20497. - }; then
  20498. - ac_header_preproc=yes
  20499. +# Make sure we can run config.sub.
  20500. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  20501. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  20502. +
  20503. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  20504. +$as_echo_n "checking build system type... " >&6; }
  20505. +if test "${ac_cv_build+set}" = set; then :
  20506. + $as_echo_n "(cached) " >&6
  20507. else
  20508. - echo "$as_me: failed program was:" >&5
  20509. -sed 's/^/| /' conftest.$ac_ext >&5
  20510. + ac_build_alias=$build_alias
  20511. +test "x$ac_build_alias" = x &&
  20512. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  20513. +test "x$ac_build_alias" = x &&
  20514. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  20515. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  20516. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  20517. - ac_header_preproc=no
  20518. fi
  20519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  20520. +$as_echo "$ac_cv_build" >&6; }
  20521. +case $ac_cv_build in
  20522. +*-*-*) ;;
  20523. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  20524. +esac
  20525. +build=$ac_cv_build
  20526. +ac_save_IFS=$IFS; IFS='-'
  20527. +set x $ac_cv_build
  20528. +shift
  20529. +build_cpu=$1
  20530. +build_vendor=$2
  20531. +shift; shift
  20532. +# Remember, the first character of IFS is used to create $*,
  20533. +# except with old shells:
  20534. +build_os=$*
  20535. +IFS=$ac_save_IFS
  20536. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  20537. -rm -f conftest.err conftest.$ac_ext
  20538. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20539. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  20540. -# So? What about this header?
  20541. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20542. - yes:no: )
  20543. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20544. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20545. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20546. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20547. - ac_header_preproc=yes
  20548. - ;;
  20549. - no:yes:* )
  20550. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20551. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20552. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20553. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20554. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20555. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20556. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20557. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20558. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20559. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20560. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20561. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20562. - ( cat <<\_ASBOX
  20563. -## ---------------------------------- ##
  20564. -## Report this to christos@astron.com ##
  20565. -## ---------------------------------- ##
  20566. -_ASBOX
  20567. - ) | sed "s/^/$as_me: WARNING: /" >&2
  20568. - ;;
  20569. -esac
  20570. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  20571. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20572. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20573. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20574. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  20575. +$as_echo_n "checking host system type... " >&6; }
  20576. +if test "${ac_cv_host+set}" = set; then :
  20577. + $as_echo_n "(cached) " >&6
  20578. else
  20579. - eval "$as_ac_Header=\$ac_header_preproc"
  20580. -fi
  20581. -ac_res=`eval echo '${'$as_ac_Header'}'`
  20582. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  20583. -echo "${ECHO_T}$ac_res" >&6; }
  20584. -
  20585. + if test "x$host_alias" = x; then
  20586. + ac_cv_host=$ac_cv_build
  20587. +else
  20588. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  20589. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  20590. fi
  20591. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20592. - cat >>confdefs.h <<_ACEOF
  20593. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20594. -_ACEOF
  20595. fi
  20596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  20597. +$as_echo "$ac_cv_host" >&6; }
  20598. +case $ac_cv_host in
  20599. +*-*-*) ;;
  20600. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  20601. +esac
  20602. +host=$ac_cv_host
  20603. +ac_save_IFS=$IFS; IFS='-'
  20604. +set x $ac_cv_host
  20605. +shift
  20606. +host_cpu=$1
  20607. +host_vendor=$2
  20608. +shift; shift
  20609. +# Remember, the first character of IFS is used to create $*,
  20610. +# except with old shells:
  20611. +host_os=$*
  20612. +IFS=$ac_save_IFS
  20613. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  20614. -done
  20615. -ac_ext=cpp
  20616. -ac_cpp='$CXXCPP $CPPFLAGS'
  20617. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20618. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20619. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20620. -if test -z "$CXX"; then
  20621. - if test -n "$CCC"; then
  20622. - CXX=$CCC
  20623. - else
  20624. - if test -n "$ac_tool_prefix"; then
  20625. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  20626. - do
  20627. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20628. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20629. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20630. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20631. -if test "${ac_cv_prog_CXX+set}" = set; then
  20632. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20633. -else
  20634. - if test -n "$CXX"; then
  20635. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  20636. -else
  20637. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20638. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  20639. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  20640. +if test "${ac_cv_path_SED+set}" = set; then :
  20641. + $as_echo_n "(cached) " >&6
  20642. +else
  20643. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  20644. + for ac_i in 1 2 3 4 5 6 7; do
  20645. + ac_script="$ac_script$as_nl$ac_script"
  20646. + done
  20647. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  20648. + { ac_script=; unset ac_script;}
  20649. + if test -z "$SED"; then
  20650. + ac_path_SED_found=false
  20651. + # Loop through the user's path and test for each of PROGNAME-LIST
  20652. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20653. for as_dir in $PATH
  20654. do
  20655. IFS=$as_save_IFS
  20656. test -z "$as_dir" && as_dir=.
  20657. - for ac_exec_ext in '' $ac_executable_extensions; do
  20658. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20659. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  20660. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20661. - break 2
  20662. - fi
  20663. -done
  20664. -done
  20665. -IFS=$as_save_IFS
  20666. -
  20667. -fi
  20668. -fi
  20669. -CXX=$ac_cv_prog_CXX
  20670. -if test -n "$CXX"; then
  20671. - { echo "$as_me:$LINENO: result: $CXX" >&5
  20672. -echo "${ECHO_T}$CXX" >&6; }
  20673. -else
  20674. - { echo "$as_me:$LINENO: result: no" >&5
  20675. -echo "${ECHO_T}no" >&6; }
  20676. -fi
  20677. -
  20678. + for ac_prog in sed gsed; do
  20679. + for ac_exec_ext in '' $ac_executable_extensions; do
  20680. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  20681. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  20682. +# Check for GNU ac_path_SED and select it if it is found.
  20683. + # Check for GNU $ac_path_SED
  20684. +case `"$ac_path_SED" --version 2>&1` in
  20685. +*GNU*)
  20686. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  20687. +*)
  20688. + ac_count=0
  20689. + $as_echo_n 0123456789 >"conftest.in"
  20690. + while :
  20691. + do
  20692. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20693. + mv "conftest.tmp" "conftest.in"
  20694. + cp "conftest.in" "conftest.nl"
  20695. + $as_echo '' >> "conftest.nl"
  20696. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20697. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20698. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20699. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  20700. + # Best one so far, save it but keep looking for a better one
  20701. + ac_cv_path_SED="$ac_path_SED"
  20702. + ac_path_SED_max=$ac_count
  20703. + fi
  20704. + # 10*(2^10) chars as input seems more than enough
  20705. + test $ac_count -gt 10 && break
  20706. + done
  20707. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20708. +esac
  20709. - test -n "$CXX" && break
  20710. + $ac_path_SED_found && break 3
  20711. + done
  20712. done
  20713. -fi
  20714. -if test -z "$CXX"; then
  20715. - ac_ct_CXX=$CXX
  20716. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  20717. -do
  20718. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  20719. -set dummy $ac_prog; ac_word=$2
  20720. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20721. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20722. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  20723. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20724. + done
  20725. +IFS=$as_save_IFS
  20726. + if test -z "$ac_cv_path_SED"; then
  20727. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  20728. + fi
  20729. else
  20730. - if test -n "$ac_ct_CXX"; then
  20731. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  20732. + ac_cv_path_SED=$SED
  20733. +fi
  20734. +
  20735. +fi
  20736. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  20737. +$as_echo "$ac_cv_path_SED" >&6; }
  20738. + SED="$ac_cv_path_SED"
  20739. + rm -f conftest.sed
  20740. +
  20741. +test -z "$SED" && SED=sed
  20742. +Xsed="$SED -e 1s/^X//"
  20743. +
  20744. +
  20745. +
  20746. +
  20747. +
  20748. +
  20749. +
  20750. +
  20751. +
  20752. +
  20753. +
  20754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  20755. +$as_echo_n "checking for fgrep... " >&6; }
  20756. +if test "${ac_cv_path_FGREP+set}" = set; then :
  20757. + $as_echo_n "(cached) " >&6
  20758. else
  20759. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20760. -for as_dir in $PATH
  20761. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  20762. + then ac_cv_path_FGREP="$GREP -F"
  20763. + else
  20764. + if test -z "$FGREP"; then
  20765. + ac_path_FGREP_found=false
  20766. + # Loop through the user's path and test for each of PROGNAME-LIST
  20767. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20768. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20769. do
  20770. IFS=$as_save_IFS
  20771. test -z "$as_dir" && as_dir=.
  20772. - for ac_exec_ext in '' $ac_executable_extensions; do
  20773. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20774. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  20775. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20776. - break 2
  20777. - fi
  20778. -done
  20779. -done
  20780. -IFS=$as_save_IFS
  20781. + for ac_prog in fgrep; do
  20782. + for ac_exec_ext in '' $ac_executable_extensions; do
  20783. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  20784. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  20785. +# Check for GNU ac_path_FGREP and select it if it is found.
  20786. + # Check for GNU $ac_path_FGREP
  20787. +case `"$ac_path_FGREP" --version 2>&1` in
  20788. +*GNU*)
  20789. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  20790. +*)
  20791. + ac_count=0
  20792. + $as_echo_n 0123456789 >"conftest.in"
  20793. + while :
  20794. + do
  20795. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20796. + mv "conftest.tmp" "conftest.in"
  20797. + cp "conftest.in" "conftest.nl"
  20798. + $as_echo 'FGREP' >> "conftest.nl"
  20799. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20800. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20801. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20802. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  20803. + # Best one so far, save it but keep looking for a better one
  20804. + ac_cv_path_FGREP="$ac_path_FGREP"
  20805. + ac_path_FGREP_max=$ac_count
  20806. + fi
  20807. + # 10*(2^10) chars as input seems more than enough
  20808. + test $ac_count -gt 10 && break
  20809. + done
  20810. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20811. +esac
  20812. -fi
  20813. -fi
  20814. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  20815. -if test -n "$ac_ct_CXX"; then
  20816. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  20817. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  20818. + $ac_path_FGREP_found && break 3
  20819. + done
  20820. + done
  20821. + done
  20822. +IFS=$as_save_IFS
  20823. + if test -z "$ac_cv_path_FGREP"; then
  20824. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20825. + fi
  20826. else
  20827. - { echo "$as_me:$LINENO: result: no" >&5
  20828. -echo "${ECHO_T}no" >&6; }
  20829. + ac_cv_path_FGREP=$FGREP
  20830. fi
  20831. + fi
  20832. +fi
  20833. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  20834. +$as_echo "$ac_cv_path_FGREP" >&6; }
  20835. + FGREP="$ac_cv_path_FGREP"
  20836. - test -n "$ac_ct_CXX" && break
  20837. -done
  20838. - if test "x$ac_ct_CXX" = x; then
  20839. - CXX="g++"
  20840. - else
  20841. - case $cross_compiling:$ac_tool_warned in
  20842. -yes:)
  20843. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20844. -whose name does not start with the host triplet. If you think this
  20845. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20846. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20847. -whose name does not start with the host triplet. If you think this
  20848. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20849. -ac_tool_warned=yes ;;
  20850. -esac
  20851. - CXX=$ac_ct_CXX
  20852. - fi
  20853. -fi
  20854. +test -z "$GREP" && GREP=grep
  20855. - fi
  20856. -fi
  20857. -# Provide some information about the compiler.
  20858. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  20859. -ac_compiler=`set X $ac_compile; echo $2`
  20860. -{ (ac_try="$ac_compiler --version >&5"
  20861. -case "(($ac_try" in
  20862. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20863. - *) ac_try_echo=$ac_try;;
  20864. -esac
  20865. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20866. - (eval "$ac_compiler --version >&5") 2>&5
  20867. - ac_status=$?
  20868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20869. - (exit $ac_status); }
  20870. -{ (ac_try="$ac_compiler -v >&5"
  20871. -case "(($ac_try" in
  20872. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20873. - *) ac_try_echo=$ac_try;;
  20874. -esac
  20875. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20876. - (eval "$ac_compiler -v >&5") 2>&5
  20877. - ac_status=$?
  20878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20879. - (exit $ac_status); }
  20880. -{ (ac_try="$ac_compiler -V >&5"
  20881. -case "(($ac_try" in
  20882. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20883. - *) ac_try_echo=$ac_try;;
  20884. -esac
  20885. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20886. - (eval "$ac_compiler -V >&5") 2>&5
  20887. - ac_status=$?
  20888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20889. - (exit $ac_status); }
  20890. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  20891. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  20892. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  20893. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20894. -else
  20895. - cat >conftest.$ac_ext <<_ACEOF
  20896. -/* confdefs.h. */
  20897. -_ACEOF
  20898. -cat confdefs.h >>conftest.$ac_ext
  20899. -cat >>conftest.$ac_ext <<_ACEOF
  20900. -/* end confdefs.h. */
  20901. -int
  20902. -main ()
  20903. -{
  20904. -#ifndef __GNUC__
  20905. - choke me
  20906. -#endif
  20907. - ;
  20908. - return 0;
  20909. -}
  20910. -_ACEOF
  20911. -rm -f conftest.$ac_objext
  20912. -if { (ac_try="$ac_compile"
  20913. -case "(($ac_try" in
  20914. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20915. - *) ac_try_echo=$ac_try;;
  20916. -esac
  20917. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20918. - (eval "$ac_compile") 2>conftest.er1
  20919. - ac_status=$?
  20920. - grep -v '^ *+' conftest.er1 >conftest.err
  20921. - rm -f conftest.er1
  20922. - cat conftest.err >&5
  20923. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20924. - (exit $ac_status); } && {
  20925. - test -z "$ac_cxx_werror_flag" ||
  20926. - test ! -s conftest.err
  20927. - } && test -s conftest.$ac_objext; then
  20928. - ac_compiler_gnu=yes
  20929. -else
  20930. - echo "$as_me: failed program was:" >&5
  20931. -sed 's/^/| /' conftest.$ac_ext >&5
  20932. - ac_compiler_gnu=no
  20933. -fi
  20934. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20935. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  20936. -fi
  20937. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  20938. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  20939. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  20940. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  20941. -ac_save_CXXFLAGS=$CXXFLAGS
  20942. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  20943. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  20944. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  20945. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20946. -else
  20947. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  20948. - ac_cxx_werror_flag=yes
  20949. - ac_cv_prog_cxx_g=no
  20950. - CXXFLAGS="-g"
  20951. - cat >conftest.$ac_ext <<_ACEOF
  20952. -/* confdefs.h. */
  20953. -_ACEOF
  20954. -cat confdefs.h >>conftest.$ac_ext
  20955. -cat >>conftest.$ac_ext <<_ACEOF
  20956. -/* end confdefs.h. */
  20957. -int
  20958. -main ()
  20959. -{
  20960. - ;
  20961. - return 0;
  20962. -}
  20963. -_ACEOF
  20964. -rm -f conftest.$ac_objext
  20965. -if { (ac_try="$ac_compile"
  20966. -case "(($ac_try" in
  20967. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20968. - *) ac_try_echo=$ac_try;;
  20969. -esac
  20970. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20971. - (eval "$ac_compile") 2>conftest.er1
  20972. - ac_status=$?
  20973. - grep -v '^ *+' conftest.er1 >conftest.err
  20974. - rm -f conftest.er1
  20975. - cat conftest.err >&5
  20976. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20977. - (exit $ac_status); } && {
  20978. - test -z "$ac_cxx_werror_flag" ||
  20979. - test ! -s conftest.err
  20980. - } && test -s conftest.$ac_objext; then
  20981. - ac_cv_prog_cxx_g=yes
  20982. -else
  20983. - echo "$as_me: failed program was:" >&5
  20984. -sed 's/^/| /' conftest.$ac_ext >&5
  20985. - CXXFLAGS=""
  20986. - cat >conftest.$ac_ext <<_ACEOF
  20987. -/* confdefs.h. */
  20988. -_ACEOF
  20989. -cat confdefs.h >>conftest.$ac_ext
  20990. -cat >>conftest.$ac_ext <<_ACEOF
  20991. -/* end confdefs.h. */
  20992. -int
  20993. -main ()
  20994. -{
  20995. - ;
  20996. - return 0;
  20997. -}
  20998. -_ACEOF
  20999. -rm -f conftest.$ac_objext
  21000. -if { (ac_try="$ac_compile"
  21001. -case "(($ac_try" in
  21002. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21003. - *) ac_try_echo=$ac_try;;
  21004. -esac
  21005. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21006. - (eval "$ac_compile") 2>conftest.er1
  21007. - ac_status=$?
  21008. - grep -v '^ *+' conftest.er1 >conftest.err
  21009. - rm -f conftest.er1
  21010. - cat conftest.err >&5
  21011. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21012. - (exit $ac_status); } && {
  21013. - test -z "$ac_cxx_werror_flag" ||
  21014. - test ! -s conftest.err
  21015. - } && test -s conftest.$ac_objext; then
  21016. - :
  21017. -else
  21018. - echo "$as_me: failed program was:" >&5
  21019. -sed 's/^/| /' conftest.$ac_ext >&5
  21020. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21021. - CXXFLAGS="-g"
  21022. - cat >conftest.$ac_ext <<_ACEOF
  21023. -/* confdefs.h. */
  21024. -_ACEOF
  21025. -cat confdefs.h >>conftest.$ac_ext
  21026. -cat >>conftest.$ac_ext <<_ACEOF
  21027. -/* end confdefs.h. */
  21028. -int
  21029. -main ()
  21030. -{
  21031. - ;
  21032. - return 0;
  21033. -}
  21034. -_ACEOF
  21035. -rm -f conftest.$ac_objext
  21036. -if { (ac_try="$ac_compile"
  21037. -case "(($ac_try" in
  21038. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21039. - *) ac_try_echo=$ac_try;;
  21040. -esac
  21041. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21042. - (eval "$ac_compile") 2>conftest.er1
  21043. - ac_status=$?
  21044. - grep -v '^ *+' conftest.er1 >conftest.err
  21045. - rm -f conftest.er1
  21046. - cat conftest.err >&5
  21047. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21048. - (exit $ac_status); } && {
  21049. - test -z "$ac_cxx_werror_flag" ||
  21050. - test ! -s conftest.err
  21051. - } && test -s conftest.$ac_objext; then
  21052. - ac_cv_prog_cxx_g=yes
  21053. -else
  21054. - echo "$as_me: failed program was:" >&5
  21055. -sed 's/^/| /' conftest.$ac_ext >&5
  21056. -fi
  21057. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21058. -fi
  21059. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21060. +# Check whether --with-gnu-ld was given.
  21061. +if test "${with_gnu_ld+set}" = set; then :
  21062. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  21063. +else
  21064. + with_gnu_ld=no
  21065. fi
  21066. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21067. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21068. +ac_prog=ld
  21069. +if test "$GCC" = yes; then
  21070. + # Check if gcc -print-prog-name=ld gives a path.
  21071. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  21072. +$as_echo_n "checking for ld used by $CC... " >&6; }
  21073. + case $host in
  21074. + *-*-mingw*)
  21075. + # gcc leaves a trailing carriage return which upsets mingw
  21076. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  21077. + *)
  21078. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  21079. + esac
  21080. + case $ac_prog in
  21081. + # Accept absolute paths.
  21082. + [\\/]* | ?:[\\/]*)
  21083. + re_direlt='/[^/][^/]*/\.\./'
  21084. + # Canonicalize the pathname of ld
  21085. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  21086. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  21087. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  21088. + done
  21089. + test -z "$LD" && LD="$ac_prog"
  21090. + ;;
  21091. + "")
  21092. + # If it fails, then pretend we aren't using GCC.
  21093. + ac_prog=ld
  21094. + ;;
  21095. + *)
  21096. + # If it is relative, then search for the first ld in PATH.
  21097. + with_gnu_ld=unknown
  21098. + ;;
  21099. + esac
  21100. +elif test "$with_gnu_ld" = yes; then
  21101. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  21102. +$as_echo_n "checking for GNU ld... " >&6; }
  21103. +else
  21104. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  21105. +$as_echo_n "checking for non-GNU ld... " >&6; }
  21106. fi
  21107. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  21108. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  21109. -if test "$ac_test_CXXFLAGS" = set; then
  21110. - CXXFLAGS=$ac_save_CXXFLAGS
  21111. -elif test $ac_cv_prog_cxx_g = yes; then
  21112. - if test "$GXX" = yes; then
  21113. - CXXFLAGS="-g -O2"
  21114. - else
  21115. - CXXFLAGS="-g"
  21116. - fi
  21117. +if test "${lt_cv_path_LD+set}" = set; then :
  21118. + $as_echo_n "(cached) " >&6
  21119. else
  21120. - if test "$GXX" = yes; then
  21121. - CXXFLAGS="-O2"
  21122. - else
  21123. - CXXFLAGS=
  21124. - fi
  21125. + if test -z "$LD"; then
  21126. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21127. + for ac_dir in $PATH; do
  21128. + IFS="$lt_save_ifs"
  21129. + test -z "$ac_dir" && ac_dir=.
  21130. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  21131. + lt_cv_path_LD="$ac_dir/$ac_prog"
  21132. + # Check to see if the program is GNU ld. I'd rather use --version,
  21133. + # but apparently some variants of GNU ld only accept -v.
  21134. + # Break only if it was the GNU/non-GNU ld that we prefer.
  21135. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  21136. + *GNU* | *'with BFD'*)
  21137. + test "$with_gnu_ld" != no && break
  21138. + ;;
  21139. + *)
  21140. + test "$with_gnu_ld" != yes && break
  21141. + ;;
  21142. + esac
  21143. + fi
  21144. + done
  21145. + IFS="$lt_save_ifs"
  21146. +else
  21147. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  21148. +fi
  21149. fi
  21150. -ac_ext=cpp
  21151. -ac_cpp='$CXXCPP $CPPFLAGS'
  21152. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21153. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21154. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21155. -
  21156. -depcc="$CXX" am_compiler_list=
  21157. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  21158. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  21159. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  21160. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21161. +LD="$lt_cv_path_LD"
  21162. +if test -n "$LD"; then
  21163. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  21164. +$as_echo "$LD" >&6; }
  21165. else
  21166. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21167. - # We make a subdir and do the tests there. Otherwise we can end up
  21168. - # making bogus files that we don't know about and never remove. For
  21169. - # instance it was reported that on HP-UX the gcc test will end up
  21170. - # making a dummy file named `D' -- because `-MD' means `put the output
  21171. - # in D'.
  21172. - mkdir conftest.dir
  21173. - # Copy depcomp to subdir because otherwise we won't find it if we're
  21174. - # using a relative directory.
  21175. - cp "$am_depcomp" conftest.dir
  21176. - cd conftest.dir
  21177. - # We will build objects and dependencies in a subdirectory because
  21178. - # it helps to detect inapplicable dependency modes. For instance
  21179. - # both Tru64's cc and ICC support -MD to output dependencies as a
  21180. - # side effect of compilation, but ICC will put the dependencies in
  21181. - # the current directory while Tru64 will put them in the object
  21182. - # directory.
  21183. - mkdir sub
  21184. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21185. +$as_echo "no" >&6; }
  21186. +fi
  21187. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  21188. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  21189. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  21190. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  21191. + $as_echo_n "(cached) " >&6
  21192. +else
  21193. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  21194. +case `$LD -v 2>&1 </dev/null` in
  21195. +*GNU* | *'with BFD'*)
  21196. + lt_cv_prog_gnu_ld=yes
  21197. + ;;
  21198. +*)
  21199. + lt_cv_prog_gnu_ld=no
  21200. + ;;
  21201. +esac
  21202. +fi
  21203. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  21204. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  21205. +with_gnu_ld=$lt_cv_prog_gnu_ld
  21206. - am_cv_CXX_dependencies_compiler_type=none
  21207. - if test "$am_compiler_list" = ""; then
  21208. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21209. - fi
  21210. - for depmode in $am_compiler_list; do
  21211. - # Setup a source with many dependencies, because some compilers
  21212. - # like to wrap large dependency lists on column 80 (with \), and
  21213. - # we should not choose a depcomp mode which is confused by this.
  21214. - #
  21215. - # We need to recreate these files for each test, as the compiler may
  21216. - # overwrite some of them when testing with obscure command lines.
  21217. - # This happens at least with the AIX C compiler.
  21218. - : > sub/conftest.c
  21219. - for i in 1 2 3 4 5 6; do
  21220. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21221. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21222. - # Solaris 8's {/usr,}/bin/sh.
  21223. - touch sub/conftst$i.h
  21224. - done
  21225. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21226. - case $depmode in
  21227. - nosideeffect)
  21228. - # after this tag, mechanisms are not by side-effect, so they'll
  21229. - # only be used when explicitly requested
  21230. - if test "x$enable_dependency_tracking" = xyes; then
  21231. - continue
  21232. - else
  21233. - break
  21234. - fi
  21235. - ;;
  21236. - none) break ;;
  21237. - esac
  21238. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21239. - # mode. It turns out that the SunPro C++ compiler does not properly
  21240. - # handle `-M -o', and we need to detect this.
  21241. - if depmode=$depmode \
  21242. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  21243. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21244. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  21245. - >/dev/null 2>conftest.err &&
  21246. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  21247. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21248. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  21249. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21250. - # icc doesn't choke on unknown options, it will just issue warnings
  21251. - # or remarks (even with -Werror). So we grep stderr for any message
  21252. - # that says an option was ignored or not supported.
  21253. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  21254. - # icc: Command line warning: ignoring option '-M'; no argument required
  21255. - # The diagnosis changed in icc 8.0:
  21256. - # icc: Command line remark: option '-MP' not supported
  21257. - if (grep 'ignoring option' conftest.err ||
  21258. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21259. - am_cv_CXX_dependencies_compiler_type=$depmode
  21260. - break
  21261. - fi
  21262. - fi
  21263. - done
  21264. - cd ..
  21265. - rm -rf conftest.dir
  21266. -else
  21267. - am_cv_CXX_dependencies_compiler_type=none
  21268. -fi
  21269. -fi
  21270. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  21271. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  21272. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  21273. - if
  21274. - test "x$enable_dependency_tracking" != xno \
  21275. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  21276. - am__fastdepCXX_TRUE=
  21277. - am__fastdepCXX_FALSE='#'
  21278. -else
  21279. - am__fastdepCXX_TRUE='#'
  21280. - am__fastdepCXX_FALSE=
  21281. -fi
  21282. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  21283. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  21284. - (test "X$CXX" != "Xg++"))) ; then
  21285. - ac_ext=cpp
  21286. -ac_cpp='$CXXCPP $CPPFLAGS'
  21287. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21288. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21289. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21290. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  21291. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  21292. -if test -z "$CXXCPP"; then
  21293. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  21294. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  21296. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  21297. +if test "${lt_cv_path_NM+set}" = set; then :
  21298. + $as_echo_n "(cached) " >&6
  21299. else
  21300. - # Double quotes because CXXCPP needs to be expanded
  21301. - for CXXCPP in "$CXX -E" "/lib/cpp"
  21302. - do
  21303. - ac_preproc_ok=false
  21304. -for ac_cxx_preproc_warn_flag in '' yes
  21305. -do
  21306. - # Use a header file that comes with gcc, so configuring glibc
  21307. - # with a fresh cross-compiler works.
  21308. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21309. - # <limits.h> exists even on freestanding compilers.
  21310. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21311. - # not just through cpp. "Syntax error" is here to catch this case.
  21312. - cat >conftest.$ac_ext <<_ACEOF
  21313. -/* confdefs.h. */
  21314. -_ACEOF
  21315. -cat confdefs.h >>conftest.$ac_ext
  21316. -cat >>conftest.$ac_ext <<_ACEOF
  21317. -/* end confdefs.h. */
  21318. -#ifdef __STDC__
  21319. -# include <limits.h>
  21320. -#else
  21321. -# include <assert.h>
  21322. -#endif
  21323. - Syntax error
  21324. -_ACEOF
  21325. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21326. -case "(($ac_try" in
  21327. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21328. - *) ac_try_echo=$ac_try;;
  21329. -esac
  21330. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21331. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21332. - ac_status=$?
  21333. - grep -v '^ *+' conftest.er1 >conftest.err
  21334. - rm -f conftest.er1
  21335. - cat conftest.err >&5
  21336. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21337. - (exit $ac_status); } >/dev/null && {
  21338. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21339. - test ! -s conftest.err
  21340. - }; then
  21341. - :
  21342. + if test -n "$NM"; then
  21343. + # Let the user override the test.
  21344. + lt_cv_path_NM="$NM"
  21345. else
  21346. - echo "$as_me: failed program was:" >&5
  21347. -sed 's/^/| /' conftest.$ac_ext >&5
  21348. + lt_nm_to_check="${ac_tool_prefix}nm"
  21349. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  21350. + lt_nm_to_check="$lt_nm_to_check nm"
  21351. + fi
  21352. + for lt_tmp_nm in $lt_nm_to_check; do
  21353. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21354. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  21355. + IFS="$lt_save_ifs"
  21356. + test -z "$ac_dir" && ac_dir=.
  21357. + tmp_nm="$ac_dir/$lt_tmp_nm"
  21358. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  21359. + # Check to see if the nm accepts a BSD-compat flag.
  21360. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  21361. + # nm: unknown option "B" ignored
  21362. + # Tru64's nm complains that /dev/null is an invalid object file
  21363. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  21364. + */dev/null* | *'Invalid file or object type'*)
  21365. + lt_cv_path_NM="$tmp_nm -B"
  21366. + break
  21367. + ;;
  21368. + *)
  21369. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  21370. + */dev/null*)
  21371. + lt_cv_path_NM="$tmp_nm -p"
  21372. + break
  21373. + ;;
  21374. + *)
  21375. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  21376. + continue # so that we can try to find one that supports BSD flags
  21377. + ;;
  21378. + esac
  21379. + ;;
  21380. + esac
  21381. + fi
  21382. + done
  21383. + IFS="$lt_save_ifs"
  21384. + done
  21385. + : ${lt_cv_path_NM=no}
  21386. +fi
  21387. +fi
  21388. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  21389. +$as_echo "$lt_cv_path_NM" >&6; }
  21390. +if test "$lt_cv_path_NM" != "no"; then
  21391. + NM="$lt_cv_path_NM"
  21392. +else
  21393. + # Didn't find any BSD compatible name lister, look for dumpbin.
  21394. + if test -n "$ac_tool_prefix"; then
  21395. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  21396. + do
  21397. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21398. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21400. +$as_echo_n "checking for $ac_word... " >&6; }
  21401. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  21402. + $as_echo_n "(cached) " >&6
  21403. +else
  21404. + if test -n "$DUMPBIN"; then
  21405. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  21406. +else
  21407. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21408. +for as_dir in $PATH
  21409. +do
  21410. + IFS=$as_save_IFS
  21411. + test -z "$as_dir" && as_dir=.
  21412. + for ac_exec_ext in '' $ac_executable_extensions; do
  21413. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21414. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  21415. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21416. + break 2
  21417. + fi
  21418. +done
  21419. + done
  21420. +IFS=$as_save_IFS
  21421. - # Broken: fails on valid input.
  21422. -continue
  21423. +fi
  21424. +fi
  21425. +DUMPBIN=$ac_cv_prog_DUMPBIN
  21426. +if test -n "$DUMPBIN"; then
  21427. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  21428. +$as_echo "$DUMPBIN" >&6; }
  21429. +else
  21430. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21431. +$as_echo "no" >&6; }
  21432. fi
  21433. -rm -f conftest.err conftest.$ac_ext
  21434. - # OK, works on sane cases. Now check whether nonexistent headers
  21435. - # can be detected and how.
  21436. - cat >conftest.$ac_ext <<_ACEOF
  21437. -/* confdefs.h. */
  21438. -_ACEOF
  21439. -cat confdefs.h >>conftest.$ac_ext
  21440. -cat >>conftest.$ac_ext <<_ACEOF
  21441. -/* end confdefs.h. */
  21442. -#include <ac_nonexistent.h>
  21443. -_ACEOF
  21444. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21445. -case "(($ac_try" in
  21446. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21447. - *) ac_try_echo=$ac_try;;
  21448. -esac
  21449. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21450. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21451. - ac_status=$?
  21452. - grep -v '^ *+' conftest.er1 >conftest.err
  21453. - rm -f conftest.er1
  21454. - cat conftest.err >&5
  21455. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21456. - (exit $ac_status); } >/dev/null && {
  21457. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21458. - test ! -s conftest.err
  21459. - }; then
  21460. - # Broken: success on invalid input.
  21461. -continue
  21462. + test -n "$DUMPBIN" && break
  21463. + done
  21464. +fi
  21465. +if test -z "$DUMPBIN"; then
  21466. + ac_ct_DUMPBIN=$DUMPBIN
  21467. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  21468. +do
  21469. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  21470. +set dummy $ac_prog; ac_word=$2
  21471. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21472. +$as_echo_n "checking for $ac_word... " >&6; }
  21473. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  21474. + $as_echo_n "(cached) " >&6
  21475. else
  21476. - echo "$as_me: failed program was:" >&5
  21477. -sed 's/^/| /' conftest.$ac_ext >&5
  21478. + if test -n "$ac_ct_DUMPBIN"; then
  21479. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  21480. +else
  21481. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21482. +for as_dir in $PATH
  21483. +do
  21484. + IFS=$as_save_IFS
  21485. + test -z "$as_dir" && as_dir=.
  21486. + for ac_exec_ext in '' $ac_executable_extensions; do
  21487. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21488. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  21489. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21490. + break 2
  21491. + fi
  21492. +done
  21493. + done
  21494. +IFS=$as_save_IFS
  21495. - # Passes both tests.
  21496. -ac_preproc_ok=:
  21497. -break
  21498. +fi
  21499. +fi
  21500. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  21501. +if test -n "$ac_ct_DUMPBIN"; then
  21502. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  21503. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  21504. +else
  21505. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21506. +$as_echo "no" >&6; }
  21507. fi
  21508. -rm -f conftest.err conftest.$ac_ext
  21509. + test -n "$ac_ct_DUMPBIN" && break
  21510. done
  21511. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21512. -rm -f conftest.err conftest.$ac_ext
  21513. -if $ac_preproc_ok; then
  21514. - break
  21515. +
  21516. + if test "x$ac_ct_DUMPBIN" = x; then
  21517. + DUMPBIN=":"
  21518. + else
  21519. + case $cross_compiling:$ac_tool_warned in
  21520. +yes:)
  21521. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21522. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21523. +ac_tool_warned=yes ;;
  21524. +esac
  21525. + DUMPBIN=$ac_ct_DUMPBIN
  21526. + fi
  21527. fi
  21528. - done
  21529. - ac_cv_prog_CXXCPP=$CXXCPP
  21530. + if test "$DUMPBIN" != ":"; then
  21531. + NM="$DUMPBIN"
  21532. + fi
  21533. fi
  21534. - CXXCPP=$ac_cv_prog_CXXCPP
  21535. -else
  21536. - ac_cv_prog_CXXCPP=$CXXCPP
  21537. +test -z "$NM" && NM=nm
  21538. +
  21539. +
  21540. +
  21541. +
  21542. +
  21543. +
  21544. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  21545. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  21546. +if test "${lt_cv_nm_interface+set}" = set; then :
  21547. + $as_echo_n "(cached) " >&6
  21548. +else
  21549. + lt_cv_nm_interface="BSD nm"
  21550. + echo "int some_variable = 0;" > conftest.$ac_ext
  21551. + (eval echo "\"\$as_me:5998: $ac_compile\"" >&5)
  21552. + (eval "$ac_compile" 2>conftest.err)
  21553. + cat conftest.err >&5
  21554. + (eval echo "\"\$as_me:6001: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  21555. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  21556. + cat conftest.err >&5
  21557. + (eval echo "\"\$as_me:6004: output\"" >&5)
  21558. + cat conftest.out >&5
  21559. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  21560. + lt_cv_nm_interface="MS dumpbin"
  21561. + fi
  21562. + rm -f conftest*
  21563. fi
  21564. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  21565. -echo "${ECHO_T}$CXXCPP" >&6; }
  21566. -ac_preproc_ok=false
  21567. -for ac_cxx_preproc_warn_flag in '' yes
  21568. -do
  21569. - # Use a header file that comes with gcc, so configuring glibc
  21570. - # with a fresh cross-compiler works.
  21571. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21572. - # <limits.h> exists even on freestanding compilers.
  21573. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21574. - # not just through cpp. "Syntax error" is here to catch this case.
  21575. - cat >conftest.$ac_ext <<_ACEOF
  21576. -/* confdefs.h. */
  21577. -_ACEOF
  21578. -cat confdefs.h >>conftest.$ac_ext
  21579. -cat >>conftest.$ac_ext <<_ACEOF
  21580. -/* end confdefs.h. */
  21581. -#ifdef __STDC__
  21582. -# include <limits.h>
  21583. -#else
  21584. -# include <assert.h>
  21585. -#endif
  21586. - Syntax error
  21587. -_ACEOF
  21588. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21589. -case "(($ac_try" in
  21590. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21591. - *) ac_try_echo=$ac_try;;
  21592. -esac
  21593. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21594. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21595. - ac_status=$?
  21596. - grep -v '^ *+' conftest.er1 >conftest.err
  21597. - rm -f conftest.er1
  21598. - cat conftest.err >&5
  21599. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21600. - (exit $ac_status); } >/dev/null && {
  21601. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21602. - test ! -s conftest.err
  21603. - }; then
  21604. - :
  21605. -else
  21606. - echo "$as_me: failed program was:" >&5
  21607. -sed 's/^/| /' conftest.$ac_ext >&5
  21608. -
  21609. - # Broken: fails on valid input.
  21610. -continue
  21611. -fi
  21612. -
  21613. -rm -f conftest.err conftest.$ac_ext
  21614. -
  21615. - # OK, works on sane cases. Now check whether nonexistent headers
  21616. - # can be detected and how.
  21617. - cat >conftest.$ac_ext <<_ACEOF
  21618. -/* confdefs.h. */
  21619. -_ACEOF
  21620. -cat confdefs.h >>conftest.$ac_ext
  21621. -cat >>conftest.$ac_ext <<_ACEOF
  21622. -/* end confdefs.h. */
  21623. -#include <ac_nonexistent.h>
  21624. -_ACEOF
  21625. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21626. -case "(($ac_try" in
  21627. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21628. - *) ac_try_echo=$ac_try;;
  21629. -esac
  21630. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21631. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21632. - ac_status=$?
  21633. - grep -v '^ *+' conftest.er1 >conftest.err
  21634. - rm -f conftest.er1
  21635. - cat conftest.err >&5
  21636. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21637. - (exit $ac_status); } >/dev/null && {
  21638. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21639. - test ! -s conftest.err
  21640. - }; then
  21641. - # Broken: success on invalid input.
  21642. -continue
  21643. -else
  21644. - echo "$as_me: failed program was:" >&5
  21645. -sed 's/^/| /' conftest.$ac_ext >&5
  21646. -
  21647. - # Passes both tests.
  21648. -ac_preproc_ok=:
  21649. -break
  21650. -fi
  21651. -
  21652. -rm -f conftest.err conftest.$ac_ext
  21653. -
  21654. -done
  21655. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21656. -rm -f conftest.err conftest.$ac_ext
  21657. -if $ac_preproc_ok; then
  21658. - :
  21659. -else
  21660. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  21661. -See \`config.log' for more details." >&5
  21662. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  21663. -See \`config.log' for more details." >&2;}
  21664. - { (exit 1); exit 1; }; }
  21665. -fi
  21666. -
  21667. -ac_ext=cpp
  21668. -ac_cpp='$CXXCPP $CPPFLAGS'
  21669. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21670. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21671. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21672. -
  21673. -fi
  21674. -
  21675. -
  21676. -ac_ext=f
  21677. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  21678. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21679. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  21680. -if test -n "$ac_tool_prefix"; then
  21681. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  21682. - do
  21683. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21684. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21685. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21686. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21687. -if test "${ac_cv_prog_F77+set}" = set; then
  21688. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21689. -else
  21690. - if test -n "$F77"; then
  21691. - ac_cv_prog_F77="$F77" # Let the user override the test.
  21692. -else
  21693. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21694. -for as_dir in $PATH
  21695. -do
  21696. - IFS=$as_save_IFS
  21697. - test -z "$as_dir" && as_dir=.
  21698. - for ac_exec_ext in '' $ac_executable_extensions; do
  21699. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21700. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  21701. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21702. - break 2
  21703. - fi
  21704. -done
  21705. -done
  21706. -IFS=$as_save_IFS
  21707. -
  21708. -fi
  21709. -fi
  21710. -F77=$ac_cv_prog_F77
  21711. -if test -n "$F77"; then
  21712. - { echo "$as_me:$LINENO: result: $F77" >&5
  21713. -echo "${ECHO_T}$F77" >&6; }
  21714. -else
  21715. - { echo "$as_me:$LINENO: result: no" >&5
  21716. -echo "${ECHO_T}no" >&6; }
  21717. -fi
  21718. -
  21719. -
  21720. - test -n "$F77" && break
  21721. - done
  21722. -fi
  21723. -if test -z "$F77"; then
  21724. - ac_ct_F77=$F77
  21725. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  21726. -do
  21727. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  21728. -set dummy $ac_prog; ac_word=$2
  21729. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21730. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21731. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  21732. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21733. -else
  21734. - if test -n "$ac_ct_F77"; then
  21735. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  21736. -else
  21737. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21738. -for as_dir in $PATH
  21739. -do
  21740. - IFS=$as_save_IFS
  21741. - test -z "$as_dir" && as_dir=.
  21742. - for ac_exec_ext in '' $ac_executable_extensions; do
  21743. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21744. - ac_cv_prog_ac_ct_F77="$ac_prog"
  21745. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21746. - break 2
  21747. - fi
  21748. -done
  21749. -done
  21750. -IFS=$as_save_IFS
  21751. -
  21752. -fi
  21753. -fi
  21754. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  21755. -if test -n "$ac_ct_F77"; then
  21756. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  21757. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  21758. -else
  21759. - { echo "$as_me:$LINENO: result: no" >&5
  21760. -echo "${ECHO_T}no" >&6; }
  21761. -fi
  21762. -
  21763. -
  21764. - test -n "$ac_ct_F77" && break
  21765. -done
  21766. -
  21767. - if test "x$ac_ct_F77" = x; then
  21768. - F77=""
  21769. - else
  21770. - case $cross_compiling:$ac_tool_warned in
  21771. -yes:)
  21772. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21773. -whose name does not start with the host triplet. If you think this
  21774. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21775. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21776. -whose name does not start with the host triplet. If you think this
  21777. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21778. -ac_tool_warned=yes ;;
  21779. -esac
  21780. - F77=$ac_ct_F77
  21781. - fi
  21782. -fi
  21783. -
  21784. -
  21785. -# Provide some information about the compiler.
  21786. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  21787. -ac_compiler=`set X $ac_compile; echo $2`
  21788. -{ (ac_try="$ac_compiler --version >&5"
  21789. -case "(($ac_try" in
  21790. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21791. - *) ac_try_echo=$ac_try;;
  21792. -esac
  21793. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21794. - (eval "$ac_compiler --version >&5") 2>&5
  21795. - ac_status=$?
  21796. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21797. - (exit $ac_status); }
  21798. -{ (ac_try="$ac_compiler -v >&5"
  21799. -case "(($ac_try" in
  21800. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21801. - *) ac_try_echo=$ac_try;;
  21802. -esac
  21803. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21804. - (eval "$ac_compiler -v >&5") 2>&5
  21805. - ac_status=$?
  21806. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21807. - (exit $ac_status); }
  21808. -{ (ac_try="$ac_compiler -V >&5"
  21809. -case "(($ac_try" in
  21810. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21811. - *) ac_try_echo=$ac_try;;
  21812. -esac
  21813. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21814. - (eval "$ac_compiler -V >&5") 2>&5
  21815. - ac_status=$?
  21816. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21817. - (exit $ac_status); }
  21818. -rm -f a.out
  21819. -
  21820. -# If we don't use `.F' as extension, the preprocessor is not run on the
  21821. -# input file. (Note that this only needs to work for GNU compilers.)
  21822. -ac_save_ext=$ac_ext
  21823. -ac_ext=F
  21824. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  21825. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  21826. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  21827. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21828. -else
  21829. - cat >conftest.$ac_ext <<_ACEOF
  21830. - program main
  21831. -#ifndef __GNUC__
  21832. - choke me
  21833. -#endif
  21834. -
  21835. - end
  21836. -_ACEOF
  21837. -rm -f conftest.$ac_objext
  21838. -if { (ac_try="$ac_compile"
  21839. -case "(($ac_try" in
  21840. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21841. - *) ac_try_echo=$ac_try;;
  21842. -esac
  21843. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21844. - (eval "$ac_compile") 2>conftest.er1
  21845. - ac_status=$?
  21846. - grep -v '^ *+' conftest.er1 >conftest.err
  21847. - rm -f conftest.er1
  21848. - cat conftest.err >&5
  21849. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21850. - (exit $ac_status); } && {
  21851. - test -z "$ac_f77_werror_flag" ||
  21852. - test ! -s conftest.err
  21853. - } && test -s conftest.$ac_objext; then
  21854. - ac_compiler_gnu=yes
  21855. -else
  21856. - echo "$as_me: failed program was:" >&5
  21857. -sed 's/^/| /' conftest.$ac_ext >&5
  21858. -
  21859. - ac_compiler_gnu=no
  21860. -fi
  21861. -
  21862. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21863. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  21864. -
  21865. -fi
  21866. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  21867. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  21868. -ac_ext=$ac_save_ext
  21869. -ac_test_FFLAGS=${FFLAGS+set}
  21870. -ac_save_FFLAGS=$FFLAGS
  21871. -FFLAGS=
  21872. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  21873. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  21874. -if test "${ac_cv_prog_f77_g+set}" = set; then
  21875. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21876. -else
  21877. - FFLAGS=-g
  21878. -cat >conftest.$ac_ext <<_ACEOF
  21879. - program main
  21880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  21881. +$as_echo "$lt_cv_nm_interface" >&6; }
  21882. - end
  21883. -_ACEOF
  21884. -rm -f conftest.$ac_objext
  21885. -if { (ac_try="$ac_compile"
  21886. -case "(($ac_try" in
  21887. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21888. - *) ac_try_echo=$ac_try;;
  21889. -esac
  21890. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21891. - (eval "$ac_compile") 2>conftest.er1
  21892. - ac_status=$?
  21893. - grep -v '^ *+' conftest.er1 >conftest.err
  21894. - rm -f conftest.er1
  21895. - cat conftest.err >&5
  21896. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21897. - (exit $ac_status); } && {
  21898. - test -z "$ac_f77_werror_flag" ||
  21899. - test ! -s conftest.err
  21900. - } && test -s conftest.$ac_objext; then
  21901. - ac_cv_prog_f77_g=yes
  21902. -else
  21903. - echo "$as_me: failed program was:" >&5
  21904. -sed 's/^/| /' conftest.$ac_ext >&5
  21905. -
  21906. - ac_cv_prog_f77_g=no
  21907. -fi
  21908. -
  21909. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21910. -
  21911. -fi
  21912. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  21913. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  21914. -if test "$ac_test_FFLAGS" = set; then
  21915. - FFLAGS=$ac_save_FFLAGS
  21916. -elif test $ac_cv_prog_f77_g = yes; then
  21917. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  21918. - FFLAGS="-g -O2"
  21919. - else
  21920. - FFLAGS="-g"
  21921. - fi
  21922. -else
  21923. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  21924. - FFLAGS="-O2"
  21925. - else
  21926. - FFLAGS=
  21927. - fi
  21928. -fi
  21929. -
  21930. -G77=`test $ac_compiler_gnu = yes && echo yes`
  21931. -ac_ext=c
  21932. -ac_cpp='$CPP $CPPFLAGS'
  21933. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21934. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21935. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21936. -
  21937. -
  21938. -
  21939. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  21940. # find the maximum length of command line arguments
  21941. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  21942. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  21943. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  21944. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21945. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  21946. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  21947. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  21948. + $as_echo_n "(cached) " >&6
  21949. else
  21950. i=0
  21951. teststring="ABCD"
  21952. @@ -6439,7 +6036,7 @@
  21953. lt_cv_sys_max_cmd_len=-1;
  21954. ;;
  21955. - cygwin* | mingw*)
  21956. + cygwin* | mingw* | cegcc*)
  21957. # On Win9x/ME, this test blows up -- it succeeds, but takes
  21958. # about 5 minutes as the teststring grows exponentially.
  21959. # Worse, since 9x/ME are not pre-emptively multitasking,
  21960. @@ -6494,7 +6091,7 @@
  21961. sysv5* | sco5v6* | sysv4.2uw2*)
  21962. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  21963. if test -n "$kargmax"; then
  21964. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  21965. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  21966. else
  21967. lt_cv_sys_max_cmd_len=32768
  21968. fi
  21969. @@ -6505,20 +6102,28 @@
  21970. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  21971. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  21972. else
  21973. + # Make teststring a little bigger before we do anything with it.
  21974. + # a 1K string should be a reasonable start.
  21975. + for i in 1 2 3 4 5 6 7 8 ; do
  21976. + teststring=$teststring$teststring
  21977. + done
  21978. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  21979. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  21980. - = "XX$teststring") >/dev/null 2>&1 &&
  21981. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  21982. - lt_cv_sys_max_cmd_len=$new_result &&
  21983. + # If test is not a shell built-in, we'll probably end up computing a
  21984. + # maximum length that is only half of the actual maximum length, but
  21985. + # we can't tell.
  21986. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  21987. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  21988. test $i != 17 # 1/2 MB should be enough
  21989. do
  21990. i=`expr $i + 1`
  21991. teststring=$teststring$teststring
  21992. done
  21993. + # Only check the string length outside the loop.
  21994. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  21995. teststring=
  21996. - # Add a significant safety factor because C++ compilers can tack on massive
  21997. - # amounts of additional arguments before passing them to the linker.
  21998. - # It appears as though 1/2 is a usable value.
  21999. + # Add a significant safety factor because C++ compilers can tack on
  22000. + # massive amounts of additional arguments before passing them to the
  22001. + # linker. It appears as though 1/2 is a usable value.
  22002. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  22003. fi
  22004. ;;
  22005. @@ -6527,2033 +6132,1173 @@
  22006. fi
  22007. if test -n $lt_cv_sys_max_cmd_len ; then
  22008. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  22009. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  22010. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  22011. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  22012. else
  22013. - { echo "$as_me:$LINENO: result: none" >&5
  22014. -echo "${ECHO_T}none" >&6; }
  22015. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  22016. +$as_echo "none" >&6; }
  22017. fi
  22018. +max_cmd_len=$lt_cv_sys_max_cmd_len
  22019. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  22020. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  22021. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  22022. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  22023. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22024. -else
  22025. -# These are sane defaults that work on at least a few old systems.
  22026. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  22027. +: ${CP="cp -f"}
  22028. +: ${MV="mv -f"}
  22029. +: ${RM="rm -f"}
  22030. +
  22031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  22032. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  22033. +# Try some XSI features
  22034. +xsi_shell=no
  22035. +( _lt_dummy="a/b/c"
  22036. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  22037. + = c,a/b,, \
  22038. + && eval 'test $(( 1 + 1 )) -eq 2 \
  22039. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  22040. + && xsi_shell=yes
  22041. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  22042. +$as_echo "$xsi_shell" >&6; }
  22043. +
  22044. +
  22045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  22046. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  22047. +lt_shell_append=no
  22048. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  22049. + >/dev/null 2>&1 \
  22050. + && lt_shell_append=yes
  22051. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  22052. +$as_echo "$lt_shell_append" >&6; }
  22053. -# Character class describing NM global symbol codes.
  22054. -symcode='[BCDEGRST]'
  22055. -# Regexp to match symbols that can be accessed directly from C.
  22056. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  22057. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22058. + lt_unset=unset
  22059. +else
  22060. + lt_unset=false
  22061. +fi
  22062. -# Transform an extracted symbol line into a proper C declaration
  22063. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  22064. -# Transform an extracted symbol line into symbol name and symbol address
  22065. -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'"
  22066. -# Define system-specific variables.
  22067. -case $host_os in
  22068. -aix*)
  22069. - symcode='[BCDT]'
  22070. - ;;
  22071. -cygwin* | mingw* | pw32*)
  22072. - symcode='[ABCDGISTW]'
  22073. - ;;
  22074. -hpux*) # Its linker distinguishes data from code symbols
  22075. - if test "$host_cpu" = ia64; then
  22076. - symcode='[ABCDEGRST]'
  22077. - fi
  22078. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22079. - 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'"
  22080. - ;;
  22081. -linux* | k*bsd*-gnu)
  22082. - if test "$host_cpu" = ia64; then
  22083. - symcode='[ABCDGIRSTW]'
  22084. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22085. - 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'"
  22086. - fi
  22087. - ;;
  22088. -irix* | nonstopux*)
  22089. - symcode='[BCDEGRST]'
  22090. - ;;
  22091. -osf*)
  22092. - symcode='[BCDEGQRST]'
  22093. - ;;
  22094. -solaris*)
  22095. - symcode='[BDRT]'
  22096. - ;;
  22097. -sco3.2v5*)
  22098. - symcode='[DT]'
  22099. - ;;
  22100. -sysv4.2uw2*)
  22101. - symcode='[DT]'
  22102. - ;;
  22103. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  22104. - symcode='[ABDT]'
  22105. +
  22106. +
  22107. +# test EBCDIC or ASCII
  22108. +case `echo X|tr X '\101'` in
  22109. + A) # ASCII based system
  22110. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  22111. + lt_SP2NL='tr \040 \012'
  22112. + lt_NL2SP='tr \015\012 \040\040'
  22113. ;;
  22114. -sysv4)
  22115. - symcode='[DFNSTU]'
  22116. + *) # EBCDIC based system
  22117. + lt_SP2NL='tr \100 \n'
  22118. + lt_NL2SP='tr \r\n \100\100'
  22119. ;;
  22120. esac
  22121. -# Handle CRLF in mingw tool chain
  22122. -opt_cr=
  22123. -case $build_os in
  22124. -mingw*)
  22125. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22126. - ;;
  22127. -esac
  22128. -# If we're using GNU nm, then use its standard symbol codes.
  22129. -case `$NM -V 2>&1` in
  22130. -*GNU* | *'with BFD'*)
  22131. - symcode='[ABCDGIRSTW]' ;;
  22132. -esac
  22133. -# Try without a prefix undercore, then with it.
  22134. -for ac_symprfx in "" "_"; do
  22135. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  22136. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  22137. - # Write the raw and C identifiers.
  22138. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  22139. - # Check to see that the pipe works correctly.
  22140. - pipe_works=no
  22141. -
  22142. - rm -f conftest*
  22143. - cat > conftest.$ac_ext <<EOF
  22144. -#ifdef __cplusplus
  22145. -extern "C" {
  22146. -#endif
  22147. -char nm_test_var;
  22148. -void nm_test_func(){}
  22149. -#ifdef __cplusplus
  22150. -}
  22151. -#endif
  22152. -int main(){nm_test_var='a';nm_test_func();return(0);}
  22153. -EOF
  22154. -
  22155. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22156. - (eval $ac_compile) 2>&5
  22157. - ac_status=$?
  22158. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22159. - (exit $ac_status); }; then
  22160. - # Now try to grab the symbols.
  22161. - nlist=conftest.nm
  22162. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  22163. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  22164. - ac_status=$?
  22165. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22166. - (exit $ac_status); } && test -s "$nlist"; then
  22167. - # Try sorting and uniquifying the output.
  22168. - if sort "$nlist" | uniq > "$nlist"T; then
  22169. - mv -f "$nlist"T "$nlist"
  22170. - else
  22171. - rm -f "$nlist"T
  22172. - fi
  22173. -
  22174. - # Make sure that we snagged all the symbols we need.
  22175. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  22176. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  22177. - cat <<EOF > conftest.$ac_ext
  22178. -#ifdef __cplusplus
  22179. -extern "C" {
  22180. -#endif
  22181. -
  22182. -EOF
  22183. - # Now generate the symbol file.
  22184. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  22185. -
  22186. - cat <<EOF >> conftest.$ac_ext
  22187. -#if defined (__STDC__) && __STDC__
  22188. -# define lt_ptr_t void *
  22189. -#else
  22190. -# define lt_ptr_t char *
  22191. -# define const
  22192. -#endif
  22193. -
  22194. -/* The mapping between symbol names and symbols. */
  22195. -const struct {
  22196. - const char *name;
  22197. - lt_ptr_t address;
  22198. -}
  22199. -lt_preloaded_symbols[] =
  22200. -{
  22201. -EOF
  22202. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  22203. - cat <<\EOF >> conftest.$ac_ext
  22204. - {0, (lt_ptr_t) 0}
  22205. -};
  22206. -
  22207. -#ifdef __cplusplus
  22208. -}
  22209. -#endif
  22210. -EOF
  22211. - # Now try linking the two files.
  22212. - mv conftest.$ac_objext conftstm.$ac_objext
  22213. - lt_save_LIBS="$LIBS"
  22214. - lt_save_CFLAGS="$CFLAGS"
  22215. - LIBS="conftstm.$ac_objext"
  22216. - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  22217. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22218. - (eval $ac_link) 2>&5
  22219. - ac_status=$?
  22220. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22221. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  22222. - pipe_works=yes
  22223. - fi
  22224. - LIBS="$lt_save_LIBS"
  22225. - CFLAGS="$lt_save_CFLAGS"
  22226. - else
  22227. - echo "cannot find nm_test_func in $nlist" >&5
  22228. - fi
  22229. - else
  22230. - echo "cannot find nm_test_var in $nlist" >&5
  22231. - fi
  22232. - else
  22233. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  22234. - fi
  22235. - else
  22236. - echo "$progname: failed program was:" >&5
  22237. - cat conftest.$ac_ext >&5
  22238. - fi
  22239. - rm -rf conftest* conftst*
  22240. -
  22241. - # Do not use the global_symbol_pipe unless it works.
  22242. - if test "$pipe_works" = yes; then
  22243. - break
  22244. - else
  22245. - lt_cv_sys_global_symbol_pipe=
  22246. - fi
  22247. -done
  22248. -fi
  22249. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  22250. - lt_cv_sys_global_symbol_to_cdecl=
  22251. -fi
  22252. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  22253. - { echo "$as_me:$LINENO: result: failed" >&5
  22254. -echo "${ECHO_T}failed" >&6; }
  22255. -else
  22256. - { echo "$as_me:$LINENO: result: ok" >&5
  22257. -echo "${ECHO_T}ok" >&6; }
  22258. -fi
  22259. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  22260. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  22261. -if test "${lt_cv_objdir+set}" = set; then
  22262. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22263. -else
  22264. - rm -f .libs 2>/dev/null
  22265. -mkdir .libs 2>/dev/null
  22266. -if test -d .libs; then
  22267. - lt_cv_objdir=.libs
  22268. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  22269. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  22270. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  22271. + $as_echo_n "(cached) " >&6
  22272. else
  22273. - # MS-DOS does not allow filenames that begin with a dot.
  22274. - lt_cv_objdir=_libs
  22275. -fi
  22276. -rmdir .libs 2>/dev/null
  22277. + lt_cv_ld_reload_flag='-r'
  22278. fi
  22279. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  22280. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  22281. -objdir=$lt_cv_objdir
  22282. -
  22283. -
  22284. -
  22285. -
  22286. -
  22287. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  22288. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  22289. +reload_flag=$lt_cv_ld_reload_flag
  22290. +case $reload_flag in
  22291. +"" | " "*) ;;
  22292. +*) reload_flag=" $reload_flag" ;;
  22293. +esac
  22294. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  22295. case $host_os in
  22296. -aix3*)
  22297. - # AIX sometimes has problems with the GCC collect2 program. For some
  22298. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  22299. - # vanish in a puff of smoke.
  22300. - if test "X${COLLECT_NAMES+set}" != Xset; then
  22301. - COLLECT_NAMES=
  22302. - export COLLECT_NAMES
  22303. - fi
  22304. - ;;
  22305. + darwin*)
  22306. + if test "$GCC" = yes; then
  22307. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  22308. + else
  22309. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  22310. + fi
  22311. + ;;
  22312. esac
  22313. -# Sed substitution that helps us do robust quoting. It backslashifies
  22314. -# metacharacters that are still active within double-quoted strings.
  22315. -Xsed='sed -e 1s/^X//'
  22316. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  22317. -# Same as above, but do not quote variable references.
  22318. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  22319. -# Sed substitution to delay expansion of an escaped shell variable in a
  22320. -# double_quote_subst'ed string.
  22321. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  22322. -# Sed substitution to avoid accidental globbing in evaled expressions
  22323. -no_glob_subst='s/\*/\\\*/g'
  22324. -# Constants:
  22325. -rm="rm -f"
  22326. -# Global variables:
  22327. -default_ofile=libtool
  22328. -can_build_shared=yes
  22329. -# All known linkers require a `.a' archive for static linking (except MSVC,
  22330. -# which needs '.lib').
  22331. -libext=a
  22332. -ltmain="$ac_aux_dir/ltmain.sh"
  22333. -ofile="$default_ofile"
  22334. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  22335. +
  22336. if test -n "$ac_tool_prefix"; then
  22337. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22338. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  22339. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22340. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22341. -if test "${ac_cv_prog_AR+set}" = set; then
  22342. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22343. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  22344. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  22345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22346. +$as_echo_n "checking for $ac_word... " >&6; }
  22347. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  22348. + $as_echo_n "(cached) " >&6
  22349. else
  22350. - if test -n "$AR"; then
  22351. - ac_cv_prog_AR="$AR" # Let the user override the test.
  22352. + if test -n "$OBJDUMP"; then
  22353. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  22354. else
  22355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22356. for as_dir in $PATH
  22357. do
  22358. IFS=$as_save_IFS
  22359. test -z "$as_dir" && as_dir=.
  22360. - for ac_exec_ext in '' $ac_executable_extensions; do
  22361. + for ac_exec_ext in '' $ac_executable_extensions; do
  22362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22363. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  22364. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22365. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  22366. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22367. break 2
  22368. fi
  22369. done
  22370. -done
  22371. + done
  22372. IFS=$as_save_IFS
  22373. fi
  22374. fi
  22375. -AR=$ac_cv_prog_AR
  22376. -if test -n "$AR"; then
  22377. - { echo "$as_me:$LINENO: result: $AR" >&5
  22378. -echo "${ECHO_T}$AR" >&6; }
  22379. +OBJDUMP=$ac_cv_prog_OBJDUMP
  22380. +if test -n "$OBJDUMP"; then
  22381. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  22382. +$as_echo "$OBJDUMP" >&6; }
  22383. else
  22384. - { echo "$as_me:$LINENO: result: no" >&5
  22385. -echo "${ECHO_T}no" >&6; }
  22386. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22387. +$as_echo "no" >&6; }
  22388. fi
  22389. fi
  22390. -if test -z "$ac_cv_prog_AR"; then
  22391. - ac_ct_AR=$AR
  22392. - # Extract the first word of "ar", so it can be a program name with args.
  22393. -set dummy ar; ac_word=$2
  22394. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22395. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22396. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  22397. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22398. +if test -z "$ac_cv_prog_OBJDUMP"; then
  22399. + ac_ct_OBJDUMP=$OBJDUMP
  22400. + # Extract the first word of "objdump", so it can be a program name with args.
  22401. +set dummy objdump; ac_word=$2
  22402. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22403. +$as_echo_n "checking for $ac_word... " >&6; }
  22404. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  22405. + $as_echo_n "(cached) " >&6
  22406. else
  22407. - if test -n "$ac_ct_AR"; then
  22408. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22409. + if test -n "$ac_ct_OBJDUMP"; then
  22410. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  22411. else
  22412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22413. for as_dir in $PATH
  22414. do
  22415. IFS=$as_save_IFS
  22416. test -z "$as_dir" && as_dir=.
  22417. - for ac_exec_ext in '' $ac_executable_extensions; do
  22418. + for ac_exec_ext in '' $ac_executable_extensions; do
  22419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22420. - ac_cv_prog_ac_ct_AR="ar"
  22421. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22422. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  22423. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22424. break 2
  22425. fi
  22426. done
  22427. -done
  22428. + done
  22429. IFS=$as_save_IFS
  22430. fi
  22431. fi
  22432. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22433. -if test -n "$ac_ct_AR"; then
  22434. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  22435. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  22436. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  22437. +if test -n "$ac_ct_OBJDUMP"; then
  22438. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  22439. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  22440. else
  22441. - { echo "$as_me:$LINENO: result: no" >&5
  22442. -echo "${ECHO_T}no" >&6; }
  22443. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22444. +$as_echo "no" >&6; }
  22445. fi
  22446. - if test "x$ac_ct_AR" = x; then
  22447. - AR="false"
  22448. + if test "x$ac_ct_OBJDUMP" = x; then
  22449. + OBJDUMP="false"
  22450. else
  22451. case $cross_compiling:$ac_tool_warned in
  22452. yes:)
  22453. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22454. -whose name does not start with the host triplet. If you think this
  22455. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22456. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22457. -whose name does not start with the host triplet. If you think this
  22458. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22460. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22461. ac_tool_warned=yes ;;
  22462. esac
  22463. - AR=$ac_ct_AR
  22464. + OBJDUMP=$ac_ct_OBJDUMP
  22465. fi
  22466. else
  22467. - AR="$ac_cv_prog_AR"
  22468. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  22469. fi
  22470. -if test -n "$ac_tool_prefix"; then
  22471. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  22472. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  22473. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22474. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22475. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  22476. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22477. -else
  22478. - if test -n "$RANLIB"; then
  22479. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  22480. -else
  22481. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22482. -for as_dir in $PATH
  22483. -do
  22484. - IFS=$as_save_IFS
  22485. - test -z "$as_dir" && as_dir=.
  22486. - for ac_exec_ext in '' $ac_executable_extensions; do
  22487. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22488. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  22489. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22490. - break 2
  22491. - fi
  22492. -done
  22493. -done
  22494. -IFS=$as_save_IFS
  22495. +test -z "$OBJDUMP" && OBJDUMP=objdump
  22496. -fi
  22497. -fi
  22498. -RANLIB=$ac_cv_prog_RANLIB
  22499. -if test -n "$RANLIB"; then
  22500. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  22501. -echo "${ECHO_T}$RANLIB" >&6; }
  22502. -else
  22503. - { echo "$as_me:$LINENO: result: no" >&5
  22504. -echo "${ECHO_T}no" >&6; }
  22505. -fi
  22506. -fi
  22507. -if test -z "$ac_cv_prog_RANLIB"; then
  22508. - ac_ct_RANLIB=$RANLIB
  22509. - # Extract the first word of "ranlib", so it can be a program name with args.
  22510. -set dummy ranlib; ac_word=$2
  22511. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22512. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22513. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  22514. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22515. -else
  22516. - if test -n "$ac_ct_RANLIB"; then
  22517. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  22518. -else
  22519. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22520. -for as_dir in $PATH
  22521. -do
  22522. - IFS=$as_save_IFS
  22523. - test -z "$as_dir" && as_dir=.
  22524. - for ac_exec_ext in '' $ac_executable_extensions; do
  22525. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22526. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  22527. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22528. - break 2
  22529. - fi
  22530. -done
  22531. -done
  22532. -IFS=$as_save_IFS
  22533. -fi
  22534. -fi
  22535. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  22536. -if test -n "$ac_ct_RANLIB"; then
  22537. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  22538. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  22539. -else
  22540. - { echo "$as_me:$LINENO: result: no" >&5
  22541. -echo "${ECHO_T}no" >&6; }
  22542. -fi
  22543. - if test "x$ac_ct_RANLIB" = x; then
  22544. - RANLIB=":"
  22545. - else
  22546. - case $cross_compiling:$ac_tool_warned in
  22547. -yes:)
  22548. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22549. -whose name does not start with the host triplet. If you think this
  22550. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22551. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22552. -whose name does not start with the host triplet. If you think this
  22553. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22554. -ac_tool_warned=yes ;;
  22555. -esac
  22556. - RANLIB=$ac_ct_RANLIB
  22557. - fi
  22558. -else
  22559. - RANLIB="$ac_cv_prog_RANLIB"
  22560. -fi
  22561. -if test -n "$ac_tool_prefix"; then
  22562. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22563. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  22564. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22565. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22566. -if test "${ac_cv_prog_STRIP+set}" = set; then
  22567. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22568. -else
  22569. - if test -n "$STRIP"; then
  22570. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22571. -else
  22572. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22573. -for as_dir in $PATH
  22574. -do
  22575. - IFS=$as_save_IFS
  22576. - test -z "$as_dir" && as_dir=.
  22577. - for ac_exec_ext in '' $ac_executable_extensions; do
  22578. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22579. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22580. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22581. - break 2
  22582. - fi
  22583. -done
  22584. -done
  22585. -IFS=$as_save_IFS
  22586. -fi
  22587. -fi
  22588. -STRIP=$ac_cv_prog_STRIP
  22589. -if test -n "$STRIP"; then
  22590. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  22591. -echo "${ECHO_T}$STRIP" >&6; }
  22592. -else
  22593. - { echo "$as_me:$LINENO: result: no" >&5
  22594. -echo "${ECHO_T}no" >&6; }
  22595. -fi
  22596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  22597. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  22598. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  22599. + $as_echo_n "(cached) " >&6
  22600. +else
  22601. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  22602. +lt_cv_file_magic_test_file=
  22603. +lt_cv_deplibs_check_method='unknown'
  22604. +# Need to set the preceding variable on all platforms that support
  22605. +# interlibrary dependencies.
  22606. +# 'none' -- dependencies not supported.
  22607. +# `unknown' -- same as none, but documents that we really don't know.
  22608. +# 'pass_all' -- all dependencies passed with no checks.
  22609. +# 'test_compile' -- check by making test program.
  22610. +# 'file_magic [[regex]]' -- check by looking for files in library path
  22611. +# which responds to the $file_magic_cmd with a given extended regex.
  22612. +# If you have `file' or equivalent on your system and you're not sure
  22613. +# whether `pass_all' will *always* work, you probably want this one.
  22614. +
  22615. +case $host_os in
  22616. +aix[4-9]*)
  22617. + lt_cv_deplibs_check_method=pass_all
  22618. + ;;
  22619. +
  22620. +beos*)
  22621. + lt_cv_deplibs_check_method=pass_all
  22622. + ;;
  22623. +
  22624. +bsdi[45]*)
  22625. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  22626. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  22627. + lt_cv_file_magic_test_file=/shlib/libc.so
  22628. + ;;
  22629. +
  22630. +cygwin*)
  22631. + # func_win32_libid is a shell function defined in ltmain.sh
  22632. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22633. + lt_cv_file_magic_cmd='func_win32_libid'
  22634. + ;;
  22635. +
  22636. +mingw* | pw32*)
  22637. + # Base MSYS/MinGW do not provide the 'file' command needed by
  22638. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  22639. + # unless we find 'file', for example because we are cross-compiling.
  22640. + if ( file / ) >/dev/null 2>&1; then
  22641. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22642. + lt_cv_file_magic_cmd='func_win32_libid'
  22643. + else
  22644. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  22645. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22646. + fi
  22647. + ;;
  22648. +
  22649. +cegcc)
  22650. + # use the weaker test based on 'objdump'. See mingw*.
  22651. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  22652. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22653. + ;;
  22654. +
  22655. +darwin* | rhapsody*)
  22656. + lt_cv_deplibs_check_method=pass_all
  22657. + ;;
  22658. +
  22659. +freebsd* | dragonfly*)
  22660. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22661. + case $host_cpu in
  22662. + i*86 )
  22663. + # Not sure whether the presence of OpenBSD here was a mistake.
  22664. + # Let's accept both of them until this is cleared up.
  22665. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  22666. + lt_cv_file_magic_cmd=/usr/bin/file
  22667. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  22668. + ;;
  22669. + esac
  22670. + else
  22671. + lt_cv_deplibs_check_method=pass_all
  22672. + fi
  22673. + ;;
  22674. +
  22675. +gnu*)
  22676. + lt_cv_deplibs_check_method=pass_all
  22677. + ;;
  22678. +
  22679. +hpux10.20* | hpux11*)
  22680. + lt_cv_file_magic_cmd=/usr/bin/file
  22681. + case $host_cpu in
  22682. + ia64*)
  22683. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  22684. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  22685. + ;;
  22686. + hppa*64*)
  22687. + 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]'
  22688. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  22689. + ;;
  22690. + *)
  22691. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  22692. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  22693. + ;;
  22694. + esac
  22695. + ;;
  22696. +
  22697. +interix[3-9]*)
  22698. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  22699. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  22700. + ;;
  22701. +
  22702. +irix5* | irix6* | nonstopux*)
  22703. + case $LD in
  22704. + *-32|*"-32 ") libmagic=32-bit;;
  22705. + *-n32|*"-n32 ") libmagic=N32;;
  22706. + *-64|*"-64 ") libmagic=64-bit;;
  22707. + *) libmagic=never-match;;
  22708. + esac
  22709. + lt_cv_deplibs_check_method=pass_all
  22710. + ;;
  22711. +
  22712. +# This must be Linux ELF.
  22713. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  22714. + lt_cv_deplibs_check_method=pass_all
  22715. + ;;
  22716. +
  22717. +netbsd* | netbsdelf*-gnu)
  22718. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22719. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22720. + else
  22721. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  22722. + fi
  22723. + ;;
  22724. +
  22725. +newos6*)
  22726. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  22727. + lt_cv_file_magic_cmd=/usr/bin/file
  22728. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  22729. + ;;
  22730. +
  22731. +*nto* | *qnx*)
  22732. + lt_cv_deplibs_check_method=pass_all
  22733. + ;;
  22734. +
  22735. +openbsd*)
  22736. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22737. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  22738. + else
  22739. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22740. + fi
  22741. + ;;
  22742. +
  22743. +osf3* | osf4* | osf5*)
  22744. + lt_cv_deplibs_check_method=pass_all
  22745. + ;;
  22746. +
  22747. +rdos*)
  22748. + lt_cv_deplibs_check_method=pass_all
  22749. + ;;
  22750. +
  22751. +solaris*)
  22752. + lt_cv_deplibs_check_method=pass_all
  22753. + ;;
  22754. +
  22755. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  22756. + lt_cv_deplibs_check_method=pass_all
  22757. + ;;
  22758. +
  22759. +sysv4 | sysv4.3*)
  22760. + case $host_vendor in
  22761. + motorola)
  22762. + 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]'
  22763. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  22764. + ;;
  22765. + ncr)
  22766. + lt_cv_deplibs_check_method=pass_all
  22767. + ;;
  22768. + sequent)
  22769. + lt_cv_file_magic_cmd='/bin/file'
  22770. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  22771. + ;;
  22772. + sni)
  22773. + lt_cv_file_magic_cmd='/bin/file'
  22774. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  22775. + lt_cv_file_magic_test_file=/lib/libc.so
  22776. + ;;
  22777. + siemens)
  22778. + lt_cv_deplibs_check_method=pass_all
  22779. + ;;
  22780. + pc)
  22781. + lt_cv_deplibs_check_method=pass_all
  22782. + ;;
  22783. + esac
  22784. + ;;
  22785. +
  22786. +tpf*)
  22787. + lt_cv_deplibs_check_method=pass_all
  22788. + ;;
  22789. +esac
  22790. +
  22791. fi
  22792. -if test -z "$ac_cv_prog_STRIP"; then
  22793. - ac_ct_STRIP=$STRIP
  22794. - # Extract the first word of "strip", so it can be a program name with args.
  22795. -set dummy strip; ac_word=$2
  22796. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22797. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22798. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  22799. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22800. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  22801. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  22802. +file_magic_cmd=$lt_cv_file_magic_cmd
  22803. +deplibs_check_method=$lt_cv_deplibs_check_method
  22804. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  22805. +
  22806. +
  22807. +
  22808. +
  22809. +
  22810. +
  22811. +
  22812. +
  22813. +
  22814. +
  22815. +
  22816. +
  22817. +if test -n "$ac_tool_prefix"; then
  22818. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22819. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  22820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22821. +$as_echo_n "checking for $ac_word... " >&6; }
  22822. +if test "${ac_cv_prog_AR+set}" = set; then :
  22823. + $as_echo_n "(cached) " >&6
  22824. else
  22825. - if test -n "$ac_ct_STRIP"; then
  22826. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  22827. + if test -n "$AR"; then
  22828. + ac_cv_prog_AR="$AR" # Let the user override the test.
  22829. else
  22830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22831. for as_dir in $PATH
  22832. do
  22833. IFS=$as_save_IFS
  22834. test -z "$as_dir" && as_dir=.
  22835. - for ac_exec_ext in '' $ac_executable_extensions; do
  22836. + for ac_exec_ext in '' $ac_executable_extensions; do
  22837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22838. - ac_cv_prog_ac_ct_STRIP="strip"
  22839. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22840. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  22841. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22842. break 2
  22843. fi
  22844. done
  22845. + done
  22846. +IFS=$as_save_IFS
  22847. +
  22848. +fi
  22849. +fi
  22850. +AR=$ac_cv_prog_AR
  22851. +if test -n "$AR"; then
  22852. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  22853. +$as_echo "$AR" >&6; }
  22854. +else
  22855. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22856. +$as_echo "no" >&6; }
  22857. +fi
  22858. +
  22859. +
  22860. +fi
  22861. +if test -z "$ac_cv_prog_AR"; then
  22862. + ac_ct_AR=$AR
  22863. + # Extract the first word of "ar", so it can be a program name with args.
  22864. +set dummy ar; ac_word=$2
  22865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22866. +$as_echo_n "checking for $ac_word... " >&6; }
  22867. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22868. + $as_echo_n "(cached) " >&6
  22869. +else
  22870. + if test -n "$ac_ct_AR"; then
  22871. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22872. +else
  22873. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22874. +for as_dir in $PATH
  22875. +do
  22876. + IFS=$as_save_IFS
  22877. + test -z "$as_dir" && as_dir=.
  22878. + for ac_exec_ext in '' $ac_executable_extensions; do
  22879. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22880. + ac_cv_prog_ac_ct_AR="ar"
  22881. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22882. + break 2
  22883. + fi
  22884. done
  22885. + done
  22886. IFS=$as_save_IFS
  22887. fi
  22888. fi
  22889. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  22890. -if test -n "$ac_ct_STRIP"; then
  22891. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  22892. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  22893. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22894. +if test -n "$ac_ct_AR"; then
  22895. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22896. +$as_echo "$ac_ct_AR" >&6; }
  22897. else
  22898. - { echo "$as_me:$LINENO: result: no" >&5
  22899. -echo "${ECHO_T}no" >&6; }
  22900. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22901. +$as_echo "no" >&6; }
  22902. fi
  22903. - if test "x$ac_ct_STRIP" = x; then
  22904. - STRIP=":"
  22905. + if test "x$ac_ct_AR" = x; then
  22906. + AR="false"
  22907. else
  22908. case $cross_compiling:$ac_tool_warned in
  22909. yes:)
  22910. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22911. -whose name does not start with the host triplet. If you think this
  22912. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22913. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22914. -whose name does not start with the host triplet. If you think this
  22915. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22916. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22917. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22918. ac_tool_warned=yes ;;
  22919. esac
  22920. - STRIP=$ac_ct_STRIP
  22921. + AR=$ac_ct_AR
  22922. fi
  22923. else
  22924. - STRIP="$ac_cv_prog_STRIP"
  22925. + AR="$ac_cv_prog_AR"
  22926. fi
  22927. +test -z "$AR" && AR=ar
  22928. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22929. -old_CC="$CC"
  22930. -old_CFLAGS="$CFLAGS"
  22931. -# Set sane defaults for various variables
  22932. -test -z "$AR" && AR=ar
  22933. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  22934. -test -z "$AS" && AS=as
  22935. -test -z "$CC" && CC=cc
  22936. -test -z "$LTCC" && LTCC=$CC
  22937. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  22938. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  22939. -test -z "$LD" && LD=ld
  22940. -test -z "$LN_S" && LN_S="ln -s"
  22941. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  22942. -test -z "$NM" && NM=nm
  22943. -test -z "$SED" && SED=sed
  22944. -test -z "$OBJDUMP" && OBJDUMP=objdump
  22945. -test -z "$RANLIB" && RANLIB=:
  22946. -test -z "$STRIP" && STRIP=:
  22947. -test -z "$ac_objext" && ac_objext=o
  22948. -
  22949. -# Determine commands to create old-style static archives.
  22950. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  22951. -old_postinstall_cmds='chmod 644 $oldlib'
  22952. -old_postuninstall_cmds=
  22953. -
  22954. -if test -n "$RANLIB"; then
  22955. - case $host_os in
  22956. - openbsd*)
  22957. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  22958. - ;;
  22959. - *)
  22960. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  22961. - ;;
  22962. - esac
  22963. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  22964. -fi
  22965. -
  22966. -for cc_temp in $compiler""; do
  22967. - case $cc_temp in
  22968. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22969. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22970. - \-*) ;;
  22971. - *) break;;
  22972. - esac
  22973. -done
  22974. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22975. -
  22976. -
  22977. -# Only perform the check for file, if the check method requires it
  22978. -case $deplibs_check_method in
  22979. -file_magic*)
  22980. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  22981. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  22982. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  22983. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  22984. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22985. -else
  22986. - case $MAGIC_CMD in
  22987. -[\\/*] | ?:[\\/]*)
  22988. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  22989. - ;;
  22990. -*)
  22991. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  22992. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22993. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  22994. - for ac_dir in $ac_dummy; do
  22995. - IFS="$lt_save_ifs"
  22996. - test -z "$ac_dir" && ac_dir=.
  22997. - if test -f $ac_dir/${ac_tool_prefix}file; then
  22998. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  22999. - if test -n "$file_magic_test_file"; then
  23000. - case $deplibs_check_method in
  23001. - "file_magic "*)
  23002. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23003. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23004. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23005. - $EGREP "$file_magic_regex" > /dev/null; then
  23006. - :
  23007. - else
  23008. - cat <<EOF 1>&2
  23009. -
  23010. -*** Warning: the command libtool uses to detect shared libraries,
  23011. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23012. -*** The result is that libtool may fail to recognize shared libraries
  23013. -*** as such. This will affect the creation of libtool libraries that
  23014. -*** depend on shared libraries, but programs linked with such libtool
  23015. -*** libraries will work regardless of this problem. Nevertheless, you
  23016. -*** may want to report the problem to your system manager and/or to
  23017. -*** bug-libtool@gnu.org
  23018. -
  23019. -EOF
  23020. - fi ;;
  23021. - esac
  23022. - fi
  23023. - break
  23024. - fi
  23025. - done
  23026. - IFS="$lt_save_ifs"
  23027. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23028. - ;;
  23029. -esac
  23030. -fi
  23031. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23032. -if test -n "$MAGIC_CMD"; then
  23033. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  23034. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  23035. -else
  23036. - { echo "$as_me:$LINENO: result: no" >&5
  23037. -echo "${ECHO_T}no" >&6; }
  23038. -fi
  23039. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  23040. - if test -n "$ac_tool_prefix"; then
  23041. - { echo "$as_me:$LINENO: checking for file" >&5
  23042. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  23043. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23044. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23045. -else
  23046. - case $MAGIC_CMD in
  23047. -[\\/*] | ?:[\\/]*)
  23048. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23049. - ;;
  23050. -*)
  23051. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  23052. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23053. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23054. - for ac_dir in $ac_dummy; do
  23055. - IFS="$lt_save_ifs"
  23056. - test -z "$ac_dir" && ac_dir=.
  23057. - if test -f $ac_dir/file; then
  23058. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  23059. - if test -n "$file_magic_test_file"; then
  23060. - case $deplibs_check_method in
  23061. - "file_magic "*)
  23062. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23063. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23064. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23065. - $EGREP "$file_magic_regex" > /dev/null; then
  23066. - :
  23067. - else
  23068. - cat <<EOF 1>&2
  23069. -*** Warning: the command libtool uses to detect shared libraries,
  23070. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23071. -*** The result is that libtool may fail to recognize shared libraries
  23072. -*** as such. This will affect the creation of libtool libraries that
  23073. -*** depend on shared libraries, but programs linked with such libtool
  23074. -*** libraries will work regardless of this problem. Nevertheless, you
  23075. -*** may want to report the problem to your system manager and/or to
  23076. -*** bug-libtool@gnu.org
  23077. -EOF
  23078. - fi ;;
  23079. - esac
  23080. - fi
  23081. - break
  23082. - fi
  23083. - done
  23084. - IFS="$lt_save_ifs"
  23085. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23086. - ;;
  23087. -esac
  23088. -fi
  23089. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23090. -if test -n "$MAGIC_CMD"; then
  23091. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  23092. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  23093. -else
  23094. - { echo "$as_me:$LINENO: result: no" >&5
  23095. -echo "${ECHO_T}no" >&6; }
  23096. -fi
  23097. - else
  23098. - MAGIC_CMD=:
  23099. - fi
  23100. -fi
  23101. - fi
  23102. - ;;
  23103. -esac
  23104. - case $host_os in
  23105. - rhapsody* | darwin*)
  23106. - if test -n "$ac_tool_prefix"; then
  23107. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  23108. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  23109. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23110. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23111. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  23112. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23113. +if test -n "$ac_tool_prefix"; then
  23114. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23115. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  23116. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23117. +$as_echo_n "checking for $ac_word... " >&6; }
  23118. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  23119. + $as_echo_n "(cached) " >&6
  23120. else
  23121. - if test -n "$DSYMUTIL"; then
  23122. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  23123. + if test -n "$STRIP"; then
  23124. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23125. else
  23126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23127. for as_dir in $PATH
  23128. do
  23129. IFS=$as_save_IFS
  23130. test -z "$as_dir" && as_dir=.
  23131. - for ac_exec_ext in '' $ac_executable_extensions; do
  23132. + for ac_exec_ext in '' $ac_executable_extensions; do
  23133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23134. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  23135. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23136. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23137. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23138. break 2
  23139. fi
  23140. done
  23141. -done
  23142. + done
  23143. IFS=$as_save_IFS
  23144. fi
  23145. fi
  23146. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  23147. -if test -n "$DSYMUTIL"; then
  23148. - { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  23149. -echo "${ECHO_T}$DSYMUTIL" >&6; }
  23150. +STRIP=$ac_cv_prog_STRIP
  23151. +if test -n "$STRIP"; then
  23152. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  23153. +$as_echo "$STRIP" >&6; }
  23154. else
  23155. - { echo "$as_me:$LINENO: result: no" >&5
  23156. -echo "${ECHO_T}no" >&6; }
  23157. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23158. +$as_echo "no" >&6; }
  23159. fi
  23160. fi
  23161. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  23162. - ac_ct_DSYMUTIL=$DSYMUTIL
  23163. - # Extract the first word of "dsymutil", so it can be a program name with args.
  23164. -set dummy dsymutil; ac_word=$2
  23165. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23166. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23167. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  23168. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23169. +if test -z "$ac_cv_prog_STRIP"; then
  23170. + ac_ct_STRIP=$STRIP
  23171. + # Extract the first word of "strip", so it can be a program name with args.
  23172. +set dummy strip; ac_word=$2
  23173. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23174. +$as_echo_n "checking for $ac_word... " >&6; }
  23175. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  23176. + $as_echo_n "(cached) " >&6
  23177. else
  23178. - if test -n "$ac_ct_DSYMUTIL"; then
  23179. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  23180. + if test -n "$ac_ct_STRIP"; then
  23181. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23182. else
  23183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23184. for as_dir in $PATH
  23185. do
  23186. IFS=$as_save_IFS
  23187. test -z "$as_dir" && as_dir=.
  23188. - for ac_exec_ext in '' $ac_executable_extensions; do
  23189. + for ac_exec_ext in '' $ac_executable_extensions; do
  23190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23191. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  23192. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23193. + ac_cv_prog_ac_ct_STRIP="strip"
  23194. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23195. break 2
  23196. fi
  23197. done
  23198. -done
  23199. + done
  23200. IFS=$as_save_IFS
  23201. fi
  23202. fi
  23203. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  23204. -if test -n "$ac_ct_DSYMUTIL"; then
  23205. - { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  23206. -echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  23207. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23208. +if test -n "$ac_ct_STRIP"; then
  23209. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  23210. +$as_echo "$ac_ct_STRIP" >&6; }
  23211. else
  23212. - { echo "$as_me:$LINENO: result: no" >&5
  23213. -echo "${ECHO_T}no" >&6; }
  23214. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23215. +$as_echo "no" >&6; }
  23216. fi
  23217. - if test "x$ac_ct_DSYMUTIL" = x; then
  23218. - DSYMUTIL=":"
  23219. + if test "x$ac_ct_STRIP" = x; then
  23220. + STRIP=":"
  23221. else
  23222. case $cross_compiling:$ac_tool_warned in
  23223. yes:)
  23224. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23225. -whose name does not start with the host triplet. If you think this
  23226. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23227. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23228. -whose name does not start with the host triplet. If you think this
  23229. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23230. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23231. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23232. ac_tool_warned=yes ;;
  23233. esac
  23234. - DSYMUTIL=$ac_ct_DSYMUTIL
  23235. + STRIP=$ac_ct_STRIP
  23236. fi
  23237. else
  23238. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  23239. + STRIP="$ac_cv_prog_STRIP"
  23240. fi
  23241. - if test -n "$ac_tool_prefix"; then
  23242. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  23243. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  23244. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23245. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23246. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  23247. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23248. +test -z "$STRIP" && STRIP=:
  23249. +
  23250. +
  23251. +
  23252. +
  23253. +
  23254. +
  23255. +if test -n "$ac_tool_prefix"; then
  23256. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  23257. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  23258. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23259. +$as_echo_n "checking for $ac_word... " >&6; }
  23260. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  23261. + $as_echo_n "(cached) " >&6
  23262. else
  23263. - if test -n "$NMEDIT"; then
  23264. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  23265. + if test -n "$RANLIB"; then
  23266. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  23267. else
  23268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23269. for as_dir in $PATH
  23270. do
  23271. IFS=$as_save_IFS
  23272. test -z "$as_dir" && as_dir=.
  23273. - for ac_exec_ext in '' $ac_executable_extensions; do
  23274. + for ac_exec_ext in '' $ac_executable_extensions; do
  23275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23276. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  23277. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23278. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  23279. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23280. break 2
  23281. fi
  23282. done
  23283. -done
  23284. + done
  23285. IFS=$as_save_IFS
  23286. fi
  23287. fi
  23288. -NMEDIT=$ac_cv_prog_NMEDIT
  23289. -if test -n "$NMEDIT"; then
  23290. - { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  23291. -echo "${ECHO_T}$NMEDIT" >&6; }
  23292. +RANLIB=$ac_cv_prog_RANLIB
  23293. +if test -n "$RANLIB"; then
  23294. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  23295. +$as_echo "$RANLIB" >&6; }
  23296. else
  23297. - { echo "$as_me:$LINENO: result: no" >&5
  23298. -echo "${ECHO_T}no" >&6; }
  23299. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23300. +$as_echo "no" >&6; }
  23301. fi
  23302. fi
  23303. -if test -z "$ac_cv_prog_NMEDIT"; then
  23304. - ac_ct_NMEDIT=$NMEDIT
  23305. - # Extract the first word of "nmedit", so it can be a program name with args.
  23306. -set dummy nmedit; ac_word=$2
  23307. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  23308. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23309. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  23310. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23311. +if test -z "$ac_cv_prog_RANLIB"; then
  23312. + ac_ct_RANLIB=$RANLIB
  23313. + # Extract the first word of "ranlib", so it can be a program name with args.
  23314. +set dummy ranlib; ac_word=$2
  23315. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23316. +$as_echo_n "checking for $ac_word... " >&6; }
  23317. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  23318. + $as_echo_n "(cached) " >&6
  23319. else
  23320. - if test -n "$ac_ct_NMEDIT"; then
  23321. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  23322. + if test -n "$ac_ct_RANLIB"; then
  23323. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  23324. else
  23325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23326. for as_dir in $PATH
  23327. do
  23328. IFS=$as_save_IFS
  23329. test -z "$as_dir" && as_dir=.
  23330. - for ac_exec_ext in '' $ac_executable_extensions; do
  23331. + for ac_exec_ext in '' $ac_executable_extensions; do
  23332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23333. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  23334. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23335. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  23336. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23337. break 2
  23338. fi
  23339. done
  23340. -done
  23341. + done
  23342. IFS=$as_save_IFS
  23343. fi
  23344. fi
  23345. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  23346. -if test -n "$ac_ct_NMEDIT"; then
  23347. - { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  23348. -echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  23349. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  23350. +if test -n "$ac_ct_RANLIB"; then
  23351. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  23352. +$as_echo "$ac_ct_RANLIB" >&6; }
  23353. else
  23354. - { echo "$as_me:$LINENO: result: no" >&5
  23355. -echo "${ECHO_T}no" >&6; }
  23356. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23357. +$as_echo "no" >&6; }
  23358. fi
  23359. - if test "x$ac_ct_NMEDIT" = x; then
  23360. - NMEDIT=":"
  23361. + if test "x$ac_ct_RANLIB" = x; then
  23362. + RANLIB=":"
  23363. else
  23364. case $cross_compiling:$ac_tool_warned in
  23365. yes:)
  23366. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23367. -whose name does not start with the host triplet. If you think this
  23368. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23369. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23370. -whose name does not start with the host triplet. If you think this
  23371. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23373. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23374. ac_tool_warned=yes ;;
  23375. esac
  23376. - NMEDIT=$ac_ct_NMEDIT
  23377. + RANLIB=$ac_ct_RANLIB
  23378. fi
  23379. else
  23380. - NMEDIT="$ac_cv_prog_NMEDIT"
  23381. + RANLIB="$ac_cv_prog_RANLIB"
  23382. fi
  23383. +test -z "$RANLIB" && RANLIB=:
  23384. - { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  23385. -echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  23386. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  23387. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23388. -else
  23389. - lt_cv_apple_cc_single_mod=no
  23390. - if test -z "${LT_MULTI_MODULE}"; then
  23391. - # By default we will add the -single_module flag. You can override
  23392. - # by either setting the environment variable LT_MULTI_MODULE
  23393. - # non-empty at configure time, or by adding -multi_module to the
  23394. - # link flags.
  23395. - echo "int foo(void){return 1;}" > conftest.c
  23396. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  23397. - -dynamiclib ${wl}-single_module conftest.c
  23398. - if test -f libconftest.dylib; then
  23399. - lt_cv_apple_cc_single_mod=yes
  23400. - rm -rf libconftest.dylib*
  23401. - fi
  23402. - rm conftest.c
  23403. - fi
  23404. -fi
  23405. -{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  23406. -echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  23407. - { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  23408. -echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  23409. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  23410. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23411. -else
  23412. - lt_cv_ld_exported_symbols_list=no
  23413. - save_LDFLAGS=$LDFLAGS
  23414. - echo "_main" > conftest.sym
  23415. - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  23416. - cat >conftest.$ac_ext <<_ACEOF
  23417. -/* confdefs.h. */
  23418. -_ACEOF
  23419. -cat confdefs.h >>conftest.$ac_ext
  23420. -cat >>conftest.$ac_ext <<_ACEOF
  23421. -/* end confdefs.h. */
  23422. -int
  23423. -main ()
  23424. -{
  23425. - ;
  23426. - return 0;
  23427. -}
  23428. -_ACEOF
  23429. -rm -f conftest.$ac_objext conftest$ac_exeext
  23430. -if { (ac_try="$ac_link"
  23431. -case "(($ac_try" in
  23432. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23433. - *) ac_try_echo=$ac_try;;
  23434. -esac
  23435. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23436. - (eval "$ac_link") 2>conftest.er1
  23437. - ac_status=$?
  23438. - grep -v '^ *+' conftest.er1 >conftest.err
  23439. - rm -f conftest.er1
  23440. - cat conftest.err >&5
  23441. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23442. - (exit $ac_status); } && {
  23443. - test -z "$ac_c_werror_flag" ||
  23444. - test ! -s conftest.err
  23445. - } && test -s conftest$ac_exeext &&
  23446. - $as_test_x conftest$ac_exeext; then
  23447. - lt_cv_ld_exported_symbols_list=yes
  23448. -else
  23449. - echo "$as_me: failed program was:" >&5
  23450. -sed 's/^/| /' conftest.$ac_ext >&5
  23451. - lt_cv_ld_exported_symbols_list=no
  23452. -fi
  23453. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23454. - conftest$ac_exeext conftest.$ac_ext
  23455. - LDFLAGS="$save_LDFLAGS"
  23456. -fi
  23457. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  23458. -echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  23459. - case $host_os in
  23460. - rhapsody* | darwin1.[0123])
  23461. - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  23462. - darwin1.*)
  23463. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  23464. - darwin*)
  23465. - # if running on 10.5 or later, the deployment target defaults
  23466. - # to the OS version, if on x86, and 10.4, the deployment
  23467. - # target defaults to 10.4. Don't you love it?
  23468. - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  23469. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  23470. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  23471. - 10.[012]*)
  23472. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  23473. - 10.*)
  23474. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  23475. - esac
  23476. +# Determine commands to create old-style static archives.
  23477. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  23478. +old_postinstall_cmds='chmod 644 $oldlib'
  23479. +old_postuninstall_cmds=
  23480. +
  23481. +if test -n "$RANLIB"; then
  23482. + case $host_os in
  23483. + openbsd*)
  23484. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  23485. ;;
  23486. - esac
  23487. - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  23488. - _lt_dar_single_mod='$single_module'
  23489. - fi
  23490. - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  23491. - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  23492. - else
  23493. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  23494. - fi
  23495. - if test "$DSYMUTIL" != ":"; then
  23496. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  23497. - else
  23498. - _lt_dsymutil=
  23499. - fi
  23500. + *)
  23501. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  23502. ;;
  23503. esac
  23504. -
  23505. -
  23506. -enable_dlopen=no
  23507. -enable_win32_dll=no
  23508. -
  23509. -# Check whether --enable-libtool-lock was given.
  23510. -if test "${enable_libtool_lock+set}" = set; then
  23511. - enableval=$enable_libtool_lock;
  23512. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23513. fi
  23514. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  23515. -
  23516. -# Check whether --with-pic was given.
  23517. -if test "${with_pic+set}" = set; then
  23518. - withval=$with_pic; pic_mode="$withval"
  23519. -else
  23520. - pic_mode=default
  23521. -fi
  23522. -test -z "$pic_mode" && pic_mode=default
  23523. -# Use C for the default configuration in the libtool script
  23524. -tagname=
  23525. -lt_save_CC="$CC"
  23526. -ac_ext=c
  23527. -ac_cpp='$CPP $CPPFLAGS'
  23528. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23529. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23530. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23531. -# Source file extension for C test sources.
  23532. -ac_ext=c
  23533. -# Object file extension for compiled C test sources.
  23534. -objext=o
  23535. -objext=$objext
  23536. -# Code to be used in simple compile tests
  23537. -lt_simple_compile_test_code="int some_variable = 0;"
  23538. -# Code to be used in simple link tests
  23539. -lt_simple_link_test_code='int main(){return(0);}'
  23540. -# If no C compiler was specified, use CC.
  23541. -LTCC=${LTCC-"$CC"}
  23542. -# If no C compiler flags were specified, use CFLAGS.
  23543. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23544. -# Allow CC to be a program name with arguments.
  23545. -compiler=$CC
  23546. -# save warnings/boilerplate of simple test code
  23547. -ac_outfile=conftest.$ac_objext
  23548. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  23549. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23550. -_lt_compiler_boilerplate=`cat conftest.err`
  23551. -$rm conftest*
  23552. -ac_outfile=conftest.$ac_objext
  23553. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  23554. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23555. -_lt_linker_boilerplate=`cat conftest.err`
  23556. -$rm -r conftest*
  23557. -lt_prog_compiler_no_builtin_flag=
  23558. -if test "$GCC" = yes; then
  23559. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  23560. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  23561. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  23562. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  23563. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23564. -else
  23565. - lt_cv_prog_compiler_rtti_exceptions=no
  23566. - ac_outfile=conftest.$ac_objext
  23567. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  23568. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  23569. - # Insert the option either (1) after the last *FLAGS variable, or
  23570. - # (2) before a word containing "conftest.", or (3) at the end.
  23571. - # Note that $ac_compile itself does not contain backslashes and begins
  23572. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  23573. - # The option is referenced via a variable to avoid confusing sed.
  23574. - lt_compile=`echo "$ac_compile" | $SED \
  23575. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23576. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23577. - -e 's:$: $lt_compiler_flag:'`
  23578. - (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
  23579. - (eval "$lt_compile" 2>conftest.err)
  23580. - ac_status=$?
  23581. - cat conftest.err >&5
  23582. - echo "$as_me:7700: \$? = $ac_status" >&5
  23583. - if (exit $ac_status) && test -s "$ac_outfile"; then
  23584. - # The compiler can only warn and ignore the option if not recognized
  23585. - # So say no if there are warnings other than the usual output.
  23586. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  23587. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23588. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  23589. - lt_cv_prog_compiler_rtti_exceptions=yes
  23590. - fi
  23591. - fi
  23592. - $rm conftest*
  23593. -fi
  23594. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  23595. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  23596. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  23597. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  23598. -else
  23599. - :
  23600. -fi
  23601. -fi
  23602. -lt_prog_compiler_wl=
  23603. -lt_prog_compiler_pic=
  23604. -lt_prog_compiler_static=
  23605. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  23606. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  23607. - if test "$GCC" = yes; then
  23608. - lt_prog_compiler_wl='-Wl,'
  23609. - lt_prog_compiler_static='-static'
  23610. - case $host_os in
  23611. - aix*)
  23612. - # All AIX code is PIC.
  23613. - if test "$host_cpu" = ia64; then
  23614. - # AIX 5 now supports IA64 processor
  23615. - lt_prog_compiler_static='-Bstatic'
  23616. - fi
  23617. - ;;
  23618. - amigaos*)
  23619. - # FIXME: we need at least 68020 code to build shared libraries, but
  23620. - # adding the `-m68020' flag to GCC prevents building anything better,
  23621. - # like `-m68040'.
  23622. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  23623. - ;;
  23624. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  23625. - # PIC is the default for these OSes.
  23626. - ;;
  23627. - mingw* | cygwin* | pw32* | os2*)
  23628. - # This hack is so that the source file can tell whether it is being
  23629. - # built for inclusion in a dll (and should export symbols for example).
  23630. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  23631. - # (--disable-auto-import) libraries
  23632. - lt_prog_compiler_pic='-DDLL_EXPORT'
  23633. - ;;
  23634. - darwin* | rhapsody*)
  23635. - # PIC is the default on this platform
  23636. - # Common symbols not allowed in MH_DYLIB files
  23637. - lt_prog_compiler_pic='-fno-common'
  23638. - ;;
  23639. - interix[3-9]*)
  23640. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  23641. - # Instead, we relocate shared libraries at runtime.
  23642. - ;;
  23643. +# If no C compiler was specified, use CC.
  23644. +LTCC=${LTCC-"$CC"}
  23645. - msdosdjgpp*)
  23646. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  23647. - # on systems that don't support them.
  23648. - lt_prog_compiler_can_build_shared=no
  23649. - enable_shared=no
  23650. - ;;
  23651. +# If no C compiler flags were specified, use CFLAGS.
  23652. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23653. - sysv4*MP*)
  23654. - if test -d /usr/nec; then
  23655. - lt_prog_compiler_pic=-Kconform_pic
  23656. - fi
  23657. - ;;
  23658. +# Allow CC to be a program name with arguments.
  23659. +compiler=$CC
  23660. - hpux*)
  23661. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23662. - # not for PA HP-UX.
  23663. - case $host_cpu in
  23664. - hppa*64*|ia64*)
  23665. - # +Z the default
  23666. - ;;
  23667. - *)
  23668. - lt_prog_compiler_pic='-fPIC'
  23669. - ;;
  23670. - esac
  23671. - ;;
  23672. - *)
  23673. - lt_prog_compiler_pic='-fPIC'
  23674. - ;;
  23675. - esac
  23676. - else
  23677. - # PORTME Check for flag to pass linker flags through the system compiler.
  23678. - case $host_os in
  23679. - aix*)
  23680. - lt_prog_compiler_wl='-Wl,'
  23681. - if test "$host_cpu" = ia64; then
  23682. - # AIX 5 now supports IA64 processor
  23683. - lt_prog_compiler_static='-Bstatic'
  23684. - else
  23685. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  23686. - fi
  23687. - ;;
  23688. - darwin*)
  23689. - # PIC is the default on this platform
  23690. - # Common symbols not allowed in MH_DYLIB files
  23691. - case $cc_basename in
  23692. - xlc*)
  23693. - lt_prog_compiler_pic='-qnocommon'
  23694. - lt_prog_compiler_wl='-Wl,'
  23695. - ;;
  23696. - esac
  23697. - ;;
  23698. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  23699. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  23700. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  23701. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  23702. + $as_echo_n "(cached) " >&6
  23703. +else
  23704. - mingw* | cygwin* | pw32* | os2*)
  23705. - # This hack is so that the source file can tell whether it is being
  23706. - # built for inclusion in a dll (and should export symbols for example).
  23707. - lt_prog_compiler_pic='-DDLL_EXPORT'
  23708. - ;;
  23709. +# These are sane defaults that work on at least a few old systems.
  23710. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  23711. - hpux9* | hpux10* | hpux11*)
  23712. - lt_prog_compiler_wl='-Wl,'
  23713. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23714. - # not for PA HP-UX.
  23715. - case $host_cpu in
  23716. - hppa*64*|ia64*)
  23717. - # +Z the default
  23718. - ;;
  23719. - *)
  23720. - lt_prog_compiler_pic='+Z'
  23721. - ;;
  23722. - esac
  23723. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  23724. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  23725. - ;;
  23726. +# Character class describing NM global symbol codes.
  23727. +symcode='[BCDEGRST]'
  23728. - irix5* | irix6* | nonstopux*)
  23729. - lt_prog_compiler_wl='-Wl,'
  23730. - # PIC (with -KPIC) is the default.
  23731. - lt_prog_compiler_static='-non_shared'
  23732. - ;;
  23733. +# Regexp to match symbols that can be accessed directly from C.
  23734. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23735. - newsos6)
  23736. - lt_prog_compiler_pic='-KPIC'
  23737. - lt_prog_compiler_static='-Bstatic'
  23738. - ;;
  23739. +# Define system-specific variables.
  23740. +case $host_os in
  23741. +aix*)
  23742. + symcode='[BCDT]'
  23743. + ;;
  23744. +cygwin* | mingw* | pw32* | cegcc*)
  23745. + symcode='[ABCDGISTW]'
  23746. + ;;
  23747. +hpux*)
  23748. + if test "$host_cpu" = ia64; then
  23749. + symcode='[ABCDEGRST]'
  23750. + fi
  23751. + ;;
  23752. +irix* | nonstopux*)
  23753. + symcode='[BCDEGRST]'
  23754. + ;;
  23755. +osf*)
  23756. + symcode='[BCDEGQRST]'
  23757. + ;;
  23758. +solaris*)
  23759. + symcode='[BDRT]'
  23760. + ;;
  23761. +sco3.2v5*)
  23762. + symcode='[DT]'
  23763. + ;;
  23764. +sysv4.2uw2*)
  23765. + symcode='[DT]'
  23766. + ;;
  23767. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  23768. + symcode='[ABDT]'
  23769. + ;;
  23770. +sysv4)
  23771. + symcode='[DFNSTU]'
  23772. + ;;
  23773. +esac
  23774. - linux* | k*bsd*-gnu)
  23775. - case $cc_basename in
  23776. - icc* | ecc*)
  23777. - lt_prog_compiler_wl='-Wl,'
  23778. - lt_prog_compiler_pic='-KPIC'
  23779. - lt_prog_compiler_static='-static'
  23780. - ;;
  23781. - pgcc* | pgf77* | pgf90* | pgf95*)
  23782. - # Portland Group compilers (*not* the Pentium gcc compiler,
  23783. - # which looks to be a dead project)
  23784. - lt_prog_compiler_wl='-Wl,'
  23785. - lt_prog_compiler_pic='-fpic'
  23786. - lt_prog_compiler_static='-Bstatic'
  23787. - ;;
  23788. - ccc*)
  23789. - lt_prog_compiler_wl='-Wl,'
  23790. - # All Alpha code is PIC.
  23791. - lt_prog_compiler_static='-non_shared'
  23792. - ;;
  23793. - *)
  23794. - case `$CC -V 2>&1 | sed 5q` in
  23795. - *Sun\ C*)
  23796. - # Sun C 5.9
  23797. - lt_prog_compiler_pic='-KPIC'
  23798. - lt_prog_compiler_static='-Bstatic'
  23799. - lt_prog_compiler_wl='-Wl,'
  23800. - ;;
  23801. - *Sun\ F*)
  23802. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  23803. - lt_prog_compiler_pic='-KPIC'
  23804. - lt_prog_compiler_static='-Bstatic'
  23805. - lt_prog_compiler_wl=''
  23806. - ;;
  23807. - esac
  23808. - ;;
  23809. - esac
  23810. - ;;
  23811. +# If we're using GNU nm, then use its standard symbol codes.
  23812. +case `$NM -V 2>&1` in
  23813. +*GNU* | *'with BFD'*)
  23814. + symcode='[ABCDGIRSTW]' ;;
  23815. +esac
  23816. - osf3* | osf4* | osf5*)
  23817. - lt_prog_compiler_wl='-Wl,'
  23818. - # All OSF/1 code is PIC.
  23819. - lt_prog_compiler_static='-non_shared'
  23820. - ;;
  23821. +# Transform an extracted symbol line into a proper C declaration.
  23822. +# Some systems (esp. on ia64) link data and code symbols differently,
  23823. +# so use this general approach.
  23824. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23825. - rdos*)
  23826. - lt_prog_compiler_static='-non_shared'
  23827. - ;;
  23828. +# Transform an extracted symbol line into symbol name and symbol address
  23829. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  23830. +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'"
  23831. - solaris*)
  23832. - lt_prog_compiler_pic='-KPIC'
  23833. - lt_prog_compiler_static='-Bstatic'
  23834. - case $cc_basename in
  23835. - f77* | f90* | f95*)
  23836. - lt_prog_compiler_wl='-Qoption ld ';;
  23837. - *)
  23838. - lt_prog_compiler_wl='-Wl,';;
  23839. - esac
  23840. - ;;
  23841. +# Handle CRLF in mingw tool chain
  23842. +opt_cr=
  23843. +case $build_os in
  23844. +mingw*)
  23845. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23846. + ;;
  23847. +esac
  23848. - sunos4*)
  23849. - lt_prog_compiler_wl='-Qoption ld '
  23850. - lt_prog_compiler_pic='-PIC'
  23851. - lt_prog_compiler_static='-Bstatic'
  23852. - ;;
  23853. +# Try without a prefix underscore, then with it.
  23854. +for ac_symprfx in "" "_"; do
  23855. - sysv4 | sysv4.2uw2* | sysv4.3*)
  23856. - lt_prog_compiler_wl='-Wl,'
  23857. - lt_prog_compiler_pic='-KPIC'
  23858. - lt_prog_compiler_static='-Bstatic'
  23859. - ;;
  23860. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  23861. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  23862. - sysv4*MP*)
  23863. - if test -d /usr/nec ;then
  23864. - lt_prog_compiler_pic='-Kconform_pic'
  23865. - lt_prog_compiler_static='-Bstatic'
  23866. + # Write the raw and C identifiers.
  23867. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  23868. + # Fake it for dumpbin and say T for any non-static function
  23869. + # and D for any global variable.
  23870. + # Also find C++ and __fastcall symbols from MSVC++,
  23871. + # which start with @ or ?.
  23872. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  23873. +" {last_section=section; section=\$ 3};"\
  23874. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  23875. +" \$ 0!~/External *\|/{next};"\
  23876. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  23877. +" {if(hide[section]) next};"\
  23878. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  23879. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  23880. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  23881. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  23882. +" ' prfx=^$ac_symprfx"
  23883. + else
  23884. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23885. + fi
  23886. +
  23887. + # Check to see that the pipe works correctly.
  23888. + pipe_works=no
  23889. +
  23890. + rm -f conftest*
  23891. + cat > conftest.$ac_ext <<_LT_EOF
  23892. +#ifdef __cplusplus
  23893. +extern "C" {
  23894. +#endif
  23895. +char nm_test_var;
  23896. +void nm_test_func(void);
  23897. +void nm_test_func(void){}
  23898. +#ifdef __cplusplus
  23899. +}
  23900. +#endif
  23901. +int main(){nm_test_var='a';nm_test_func();return(0);}
  23902. +_LT_EOF
  23903. +
  23904. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23905. + (eval $ac_compile) 2>&5
  23906. + ac_status=$?
  23907. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23908. + test $ac_status = 0; }; then
  23909. + # Now try to grab the symbols.
  23910. + nlist=conftest.nm
  23911. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  23912. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  23913. + ac_status=$?
  23914. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23915. + test $ac_status = 0; } && test -s "$nlist"; then
  23916. + # Try sorting and uniquifying the output.
  23917. + if sort "$nlist" | uniq > "$nlist"T; then
  23918. + mv -f "$nlist"T "$nlist"
  23919. + else
  23920. + rm -f "$nlist"T
  23921. fi
  23922. - ;;
  23923. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  23924. - lt_prog_compiler_wl='-Wl,'
  23925. - lt_prog_compiler_pic='-KPIC'
  23926. - lt_prog_compiler_static='-Bstatic'
  23927. - ;;
  23928. + # Make sure that we snagged all the symbols we need.
  23929. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  23930. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  23931. + cat <<_LT_EOF > conftest.$ac_ext
  23932. +#ifdef __cplusplus
  23933. +extern "C" {
  23934. +#endif
  23935. - unicos*)
  23936. - lt_prog_compiler_wl='-Wl,'
  23937. - lt_prog_compiler_can_build_shared=no
  23938. - ;;
  23939. +_LT_EOF
  23940. + # Now generate the symbol file.
  23941. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  23942. - uts4*)
  23943. - lt_prog_compiler_pic='-pic'
  23944. - lt_prog_compiler_static='-Bstatic'
  23945. - ;;
  23946. + cat <<_LT_EOF >> conftest.$ac_ext
  23947. - *)
  23948. - lt_prog_compiler_can_build_shared=no
  23949. - ;;
  23950. - esac
  23951. - fi
  23952. +/* The mapping between symbol names and symbols. */
  23953. +const struct {
  23954. + const char *name;
  23955. + void *address;
  23956. +}
  23957. +lt__PROGRAM__LTX_preloaded_symbols[] =
  23958. +{
  23959. + { "@PROGRAM@", (void *) 0 },
  23960. +_LT_EOF
  23961. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  23962. + cat <<\_LT_EOF >> conftest.$ac_ext
  23963. + {0, (void *) 0}
  23964. +};
  23965. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  23966. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  23967. +/* This works around a problem in FreeBSD linker */
  23968. +#ifdef FREEBSD_WORKAROUND
  23969. +static const void *lt_preloaded_setup() {
  23970. + return lt__PROGRAM__LTX_preloaded_symbols;
  23971. +}
  23972. +#endif
  23973. -#
  23974. -# Check to make sure the PIC flag actually works.
  23975. -#
  23976. -if test -n "$lt_prog_compiler_pic"; then
  23977. +#ifdef __cplusplus
  23978. +}
  23979. +#endif
  23980. +_LT_EOF
  23981. + # Now try linking the two files.
  23982. + mv conftest.$ac_objext conftstm.$ac_objext
  23983. + lt_save_LIBS="$LIBS"
  23984. + lt_save_CFLAGS="$CFLAGS"
  23985. + LIBS="conftstm.$ac_objext"
  23986. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  23987. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  23988. + (eval $ac_link) 2>&5
  23989. + ac_status=$?
  23990. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23991. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  23992. + pipe_works=yes
  23993. + fi
  23994. + LIBS="$lt_save_LIBS"
  23995. + CFLAGS="$lt_save_CFLAGS"
  23996. + else
  23997. + echo "cannot find nm_test_func in $nlist" >&5
  23998. + fi
  23999. + else
  24000. + echo "cannot find nm_test_var in $nlist" >&5
  24001. + fi
  24002. + else
  24003. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  24004. + fi
  24005. + else
  24006. + echo "$progname: failed program was:" >&5
  24007. + cat conftest.$ac_ext >&5
  24008. + fi
  24009. + rm -rf conftest* conftst*
  24010. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  24011. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  24012. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  24013. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24014. -else
  24015. - lt_cv_prog_compiler_pic_works=no
  24016. - ac_outfile=conftest.$ac_objext
  24017. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24018. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  24019. - # Insert the option either (1) after the last *FLAGS variable, or
  24020. - # (2) before a word containing "conftest.", or (3) at the end.
  24021. - # Note that $ac_compile itself does not contain backslashes and begins
  24022. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24023. - # The option is referenced via a variable to avoid confusing sed.
  24024. - lt_compile=`echo "$ac_compile" | $SED \
  24025. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24026. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24027. - -e 's:$: $lt_compiler_flag:'`
  24028. - (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
  24029. - (eval "$lt_compile" 2>conftest.err)
  24030. - ac_status=$?
  24031. - cat conftest.err >&5
  24032. - echo "$as_me:7990: \$? = $ac_status" >&5
  24033. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24034. - # The compiler can only warn and ignore the option if not recognized
  24035. - # So say no if there are warnings other than the usual output.
  24036. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24037. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24038. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24039. - lt_cv_prog_compiler_pic_works=yes
  24040. - fi
  24041. - fi
  24042. - $rm conftest*
  24043. + # Do not use the global_symbol_pipe unless it works.
  24044. + if test "$pipe_works" = yes; then
  24045. + break
  24046. + else
  24047. + lt_cv_sys_global_symbol_pipe=
  24048. + fi
  24049. +done
  24050. fi
  24051. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  24052. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  24053. -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  24054. - case $lt_prog_compiler_pic in
  24055. - "" | " "*) ;;
  24056. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  24057. - esac
  24058. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  24059. + lt_cv_sys_global_symbol_to_cdecl=
  24060. +fi
  24061. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  24062. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  24063. +$as_echo "failed" >&6; }
  24064. else
  24065. - lt_prog_compiler_pic=
  24066. - lt_prog_compiler_can_build_shared=no
  24067. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  24068. +$as_echo "ok" >&6; }
  24069. fi
  24070. -fi
  24071. -case $host_os in
  24072. - # For platforms which do not support PIC, -DPIC is meaningless:
  24073. - *djgpp*)
  24074. - lt_prog_compiler_pic=
  24075. - ;;
  24076. - *)
  24077. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  24078. - ;;
  24079. -esac
  24080. -
  24081. -#
  24082. -# Check to make sure the static flag actually works.
  24083. -#
  24084. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  24085. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24086. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  24087. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  24088. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24089. -else
  24090. - lt_cv_prog_compiler_static_works=no
  24091. - save_LDFLAGS="$LDFLAGS"
  24092. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24093. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  24094. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24095. - # The linker can only warn and ignore the option if not recognized
  24096. - # So say no if there are warnings
  24097. - if test -s conftest.err; then
  24098. - # Append any errors to the config.log.
  24099. - cat conftest.err 1>&5
  24100. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24101. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24102. - if diff conftest.exp conftest.er2 >/dev/null; then
  24103. - lt_cv_prog_compiler_static_works=yes
  24104. - fi
  24105. - else
  24106. - lt_cv_prog_compiler_static_works=yes
  24107. - fi
  24108. - fi
  24109. - $rm -r conftest*
  24110. - LDFLAGS="$save_LDFLAGS"
  24111. -fi
  24112. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  24113. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  24114. -if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  24115. - :
  24116. -else
  24117. - lt_prog_compiler_static=
  24118. -fi
  24119. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  24120. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  24121. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  24122. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24123. -else
  24124. - lt_cv_prog_compiler_c_o=no
  24125. - $rm -r conftest 2>/dev/null
  24126. - mkdir conftest
  24127. - cd conftest
  24128. - mkdir out
  24129. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24130. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  24131. - # Insert the option either (1) after the last *FLAGS variable, or
  24132. - # (2) before a word containing "conftest.", or (3) at the end.
  24133. - # Note that $ac_compile itself does not contain backslashes and begins
  24134. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24135. - lt_compile=`echo "$ac_compile" | $SED \
  24136. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24137. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24138. - -e 's:$: $lt_compiler_flag:'`
  24139. - (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
  24140. - (eval "$lt_compile" 2>out/conftest.err)
  24141. - ac_status=$?
  24142. - cat out/conftest.err >&5
  24143. - echo "$as_me:8094: \$? = $ac_status" >&5
  24144. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24145. - then
  24146. - # The compiler can only warn and ignore the option if not recognized
  24147. - # So say no if there are warnings
  24148. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24149. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24150. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24151. - lt_cv_prog_compiler_c_o=yes
  24152. - fi
  24153. - fi
  24154. - chmod u+w . 2>&5
  24155. - $rm conftest*
  24156. - # SGI C++ compiler will create directory out/ii_files/ for
  24157. - # template instantiation
  24158. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  24159. - $rm out/* && rmdir out
  24160. - cd ..
  24161. - rmdir conftest
  24162. - $rm conftest*
  24163. -fi
  24164. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  24165. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  24166. -hard_links="nottested"
  24167. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  24168. - # do not overwrite the value of need_locks provided by the user
  24169. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  24170. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  24171. - hard_links=yes
  24172. - $rm conftest*
  24173. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24174. - touch conftest.a
  24175. - ln conftest.a conftest.b 2>&5 || hard_links=no
  24176. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24177. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  24178. -echo "${ECHO_T}$hard_links" >&6; }
  24179. - if test "$hard_links" = no; then
  24180. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24181. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24182. - need_locks=warn
  24183. - fi
  24184. -else
  24185. - need_locks=no
  24186. -fi
  24187. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24188. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  24189. - runpath_var=
  24190. - allow_undefined_flag=
  24191. - enable_shared_with_static_runtimes=no
  24192. - archive_cmds=
  24193. - archive_expsym_cmds=
  24194. - old_archive_From_new_cmds=
  24195. - old_archive_from_expsyms_cmds=
  24196. - export_dynamic_flag_spec=
  24197. - whole_archive_flag_spec=
  24198. - thread_safe_flag_spec=
  24199. - hardcode_libdir_flag_spec=
  24200. - hardcode_libdir_flag_spec_ld=
  24201. - hardcode_libdir_separator=
  24202. - hardcode_direct=no
  24203. - hardcode_minus_L=no
  24204. - hardcode_shlibpath_var=unsupported
  24205. - link_all_deplibs=unknown
  24206. - hardcode_automatic=no
  24207. - module_cmds=
  24208. - module_expsym_cmds=
  24209. - always_export_symbols=no
  24210. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24211. - # include_expsyms should be a list of space-separated symbols to be *always*
  24212. - # included in the symbol list
  24213. - include_expsyms=
  24214. - # exclude_expsyms can be an extended regexp of symbols to exclude
  24215. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  24216. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  24217. - # as well as any symbol that contains `d'.
  24218. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  24219. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  24220. - # platforms (ab)use it in PIC code, but their linkers get confused if
  24221. - # the symbol is explicitly referenced. Since portable code cannot
  24222. - # rely on this symbol name, it's probably fine to never include it in
  24223. - # preloaded symbol tables.
  24224. - # Exclude shared library initialization/finalization symbols.
  24225. - extract_expsyms_cmds=
  24226. - # Just being paranoid about ensuring that cc_basename is set.
  24227. - for cc_temp in $compiler""; do
  24228. - case $cc_temp in
  24229. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24230. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24231. - \-*) ;;
  24232. - *) break;;
  24233. - esac
  24234. -done
  24235. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24236. - case $host_os in
  24237. - cygwin* | mingw* | pw32*)
  24238. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  24239. - # When not using gcc, we currently assume that we are using
  24240. - # Microsoft Visual C++.
  24241. - if test "$GCC" != yes; then
  24242. - with_gnu_ld=no
  24243. - fi
  24244. - ;;
  24245. - interix*)
  24246. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  24247. - with_gnu_ld=yes
  24248. - ;;
  24249. - openbsd*)
  24250. - with_gnu_ld=no
  24251. - ;;
  24252. - esac
  24253. - ld_shlibs=yes
  24254. - if test "$with_gnu_ld" = yes; then
  24255. - # If archive_cmds runs LD, not CC, wlarc should be empty
  24256. - wlarc='${wl}'
  24257. - # Set some defaults for GNU ld with shared library support. These
  24258. - # are reset later if shared libraries are not supported. Putting them
  24259. - # here allows them to be overridden if necessary.
  24260. - runpath_var=LD_RUN_PATH
  24261. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  24262. - export_dynamic_flag_spec='${wl}--export-dynamic'
  24263. - # ancient GNU ld didn't support --whole-archive et. al.
  24264. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  24265. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24266. - else
  24267. - whole_archive_flag_spec=
  24268. - fi
  24269. - supports_anon_versioning=no
  24270. - case `$LD -v 2>/dev/null` in
  24271. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  24272. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  24273. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  24274. - *\ 2.11.*) ;; # other 2.11 versions
  24275. - *) supports_anon_versioning=yes ;;
  24276. - esac
  24277. - # See if GNU ld supports shared libraries.
  24278. - case $host_os in
  24279. - aix[3-9]*)
  24280. - # On AIX/PPC, the GNU linker is very broken
  24281. - if test "$host_cpu" != ia64; then
  24282. - ld_shlibs=no
  24283. - cat <<EOF 1>&2
  24284. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  24285. -*** to be unable to reliably create shared libraries on AIX.
  24286. -*** Therefore, libtool is disabling shared libraries support. If you
  24287. -*** really care for shared libraries, you may want to modify your PATH
  24288. -*** so that a non-GNU linker is found, and then restart.
  24289. -EOF
  24290. - fi
  24291. - ;;
  24292. - amigaos*)
  24293. - 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)'
  24294. - hardcode_libdir_flag_spec='-L$libdir'
  24295. - hardcode_minus_L=yes
  24296. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  24297. - # that the semantics of dynamic libraries on AmigaOS, at least up
  24298. - # to version 4, is to share data among multiple programs linked
  24299. - # with the same dynamic library. Since this doesn't match the
  24300. - # behavior of shared libraries on other platforms, we can't use
  24301. - # them.
  24302. - ld_shlibs=no
  24303. - ;;
  24304. - beos*)
  24305. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24306. - allow_undefined_flag=unsupported
  24307. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  24308. - # support --undefined. This deserves some investigation. FIXME
  24309. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24310. - else
  24311. - ld_shlibs=no
  24312. - fi
  24313. - ;;
  24314. - cygwin* | mingw* | pw32*)
  24315. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  24316. - # as there is no search path for DLLs.
  24317. - hardcode_libdir_flag_spec='-L$libdir'
  24318. - allow_undefined_flag=unsupported
  24319. - always_export_symbols=no
  24320. - enable_shared_with_static_runtimes=yes
  24321. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  24322. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  24323. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24324. - # If the export-symbols file already is a .def file (1st line
  24325. - # is EXPORTS), use it as is; otherwise, prepend...
  24326. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  24327. - cp $export_symbols $output_objdir/$soname.def;
  24328. - else
  24329. - echo EXPORTS > $output_objdir/$soname.def;
  24330. - cat $export_symbols >> $output_objdir/$soname.def;
  24331. - fi~
  24332. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24333. - else
  24334. - ld_shlibs=no
  24335. - fi
  24336. - ;;
  24337. +# Check whether --enable-libtool-lock was given.
  24338. +if test "${enable_libtool_lock+set}" = set; then :
  24339. + enableval=$enable_libtool_lock;
  24340. +fi
  24341. - interix[3-9]*)
  24342. - hardcode_direct=no
  24343. - hardcode_shlibpath_var=no
  24344. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  24345. - export_dynamic_flag_spec='${wl}-E'
  24346. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  24347. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  24348. - # default) and relocated if they conflict, which is a slow very memory
  24349. - # consuming and fragmenting process. To avoid this, we pick a random,
  24350. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  24351. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  24352. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  24353. - 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'
  24354. - ;;
  24355. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24356. - gnu* | linux* | k*bsd*-gnu)
  24357. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24358. - tmp_addflag=
  24359. - case $cc_basename,$host_cpu in
  24360. - pgcc*) # Portland Group C compiler
  24361. - 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'
  24362. - tmp_addflag=' $pic_flag'
  24363. +# Some flags need to be propagated to the compiler or linker for good
  24364. +# libtool support.
  24365. +case $host in
  24366. +ia64-*-hpux*)
  24367. + # Find out which ABI we are using.
  24368. + echo 'int i;' > conftest.$ac_ext
  24369. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24370. + (eval $ac_compile) 2>&5
  24371. + ac_status=$?
  24372. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24373. + test $ac_status = 0; }; then
  24374. + case `/usr/bin/file conftest.$ac_objext` in
  24375. + *ELF-32*)
  24376. + HPUX_IA64_MODE="32"
  24377. + ;;
  24378. + *ELF-64*)
  24379. + HPUX_IA64_MODE="64"
  24380. + ;;
  24381. + esac
  24382. + fi
  24383. + rm -rf conftest*
  24384. + ;;
  24385. +*-*-irix6*)
  24386. + # Find out which ABI we are using.
  24387. + echo '#line 7198 "configure"' > conftest.$ac_ext
  24388. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24389. + (eval $ac_compile) 2>&5
  24390. + ac_status=$?
  24391. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24392. + test $ac_status = 0; }; then
  24393. + if test "$lt_cv_prog_gnu_ld" = yes; then
  24394. + case `/usr/bin/file conftest.$ac_objext` in
  24395. + *32-bit*)
  24396. + LD="${LD-ld} -melf32bsmip"
  24397. ;;
  24398. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  24399. - 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'
  24400. - tmp_addflag=' $pic_flag -Mnomain' ;;
  24401. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  24402. - tmp_addflag=' -i_dynamic' ;;
  24403. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  24404. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  24405. - ifc* | ifort*) # Intel Fortran compiler
  24406. - tmp_addflag=' -nofor_main' ;;
  24407. - esac
  24408. - case `$CC -V 2>&1 | sed 5q` in
  24409. - *Sun\ C*) # Sun C 5.9
  24410. - 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'
  24411. - tmp_sharedflag='-G' ;;
  24412. - *Sun\ F*) # Sun Fortran 8.3
  24413. - tmp_sharedflag='-G' ;;
  24414. - *)
  24415. - tmp_sharedflag='-shared' ;;
  24416. - esac
  24417. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24418. -
  24419. - if test $supports_anon_versioning = yes; then
  24420. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  24421. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  24422. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  24423. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  24424. - fi
  24425. - else
  24426. - ld_shlibs=no
  24427. - fi
  24428. - ;;
  24429. -
  24430. - netbsd*)
  24431. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24432. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  24433. - wlarc=
  24434. - else
  24435. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24436. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24437. - fi
  24438. - ;;
  24439. -
  24440. - solaris*)
  24441. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  24442. - ld_shlibs=no
  24443. - cat <<EOF 1>&2
  24444. -
  24445. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  24446. -*** create shared libraries on Solaris systems. Therefore, libtool
  24447. -*** is disabling shared libraries support. We urge you to upgrade GNU
  24448. -*** binutils to release 2.9.1 or newer. Another option is to modify
  24449. -*** your PATH or compiler configuration so that the native linker is
  24450. -*** used, and then restart.
  24451. -
  24452. -EOF
  24453. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24454. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24455. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24456. - else
  24457. - ld_shlibs=no
  24458. - fi
  24459. - ;;
  24460. -
  24461. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  24462. - case `$LD -v 2>&1` in
  24463. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  24464. - ld_shlibs=no
  24465. - cat <<_LT_EOF 1>&2
  24466. -
  24467. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  24468. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  24469. -*** is disabling shared libraries support. We urge you to upgrade GNU
  24470. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  24471. -*** your PATH or compiler configuration so that the native linker is
  24472. -*** used, and then restart.
  24473. -
  24474. -_LT_EOF
  24475. - ;;
  24476. - *)
  24477. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24478. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  24479. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  24480. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  24481. - else
  24482. - ld_shlibs=no
  24483. - fi
  24484. + *N32*)
  24485. + LD="${LD-ld} -melf32bmipn32"
  24486. + ;;
  24487. + *64-bit*)
  24488. + LD="${LD-ld} -melf64bmip"
  24489. ;;
  24490. esac
  24491. - ;;
  24492. -
  24493. - sunos4*)
  24494. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24495. - wlarc=
  24496. - hardcode_direct=yes
  24497. - hardcode_shlibpath_var=no
  24498. - ;;
  24499. -
  24500. - *)
  24501. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24502. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24503. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24504. - else
  24505. - ld_shlibs=no
  24506. - fi
  24507. - ;;
  24508. - esac
  24509. -
  24510. - if test "$ld_shlibs" = no; then
  24511. - runpath_var=
  24512. - hardcode_libdir_flag_spec=
  24513. - export_dynamic_flag_spec=
  24514. - whole_archive_flag_spec=
  24515. + else
  24516. + case `/usr/bin/file conftest.$ac_objext` in
  24517. + *32-bit*)
  24518. + LD="${LD-ld} -32"
  24519. + ;;
  24520. + *N32*)
  24521. + LD="${LD-ld} -n32"
  24522. + ;;
  24523. + *64-bit*)
  24524. + LD="${LD-ld} -64"
  24525. + ;;
  24526. + esac
  24527. fi
  24528. - else
  24529. - # PORTME fill in a description of your system's linker (not GNU ld)
  24530. - case $host_os in
  24531. - aix3*)
  24532. - allow_undefined_flag=unsupported
  24533. - always_export_symbols=yes
  24534. - 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'
  24535. - # Note: this linker hardcodes the directories in LIBPATH if there
  24536. - # are no directories specified by -L.
  24537. - hardcode_minus_L=yes
  24538. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  24539. - # Neither direct hardcoding nor static linking is supported with a
  24540. - # broken collect2.
  24541. - hardcode_direct=unsupported
  24542. - fi
  24543. - ;;
  24544. -
  24545. - aix[4-9]*)
  24546. - if test "$host_cpu" = ia64; then
  24547. - # On IA64, the linker does run time linking by default, so we don't
  24548. - # have to do anything special.
  24549. - aix_use_runtimelinking=no
  24550. - exp_sym_flag='-Bexport'
  24551. - no_entry_flag=""
  24552. - else
  24553. - # If we're using GNU nm, then we don't want the "-C" option.
  24554. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  24555. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  24556. - 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'
  24557. - else
  24558. - 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'
  24559. - fi
  24560. - aix_use_runtimelinking=no
  24561. + fi
  24562. + rm -rf conftest*
  24563. + ;;
  24564. - # Test if we are trying to use run time linking or normal
  24565. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  24566. - # need to do runtime linking.
  24567. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  24568. - for ld_flag in $LDFLAGS; do
  24569. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  24570. - aix_use_runtimelinking=yes
  24571. - break
  24572. - fi
  24573. - done
  24574. - ;;
  24575. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  24576. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  24577. + # Find out which ABI we are using.
  24578. + echo 'int i;' > conftest.$ac_ext
  24579. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24580. + (eval $ac_compile) 2>&5
  24581. + ac_status=$?
  24582. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24583. + test $ac_status = 0; }; then
  24584. + case `/usr/bin/file conftest.o` in
  24585. + *32-bit*)
  24586. + case $host in
  24587. + x86_64-*kfreebsd*-gnu)
  24588. + LD="${LD-ld} -m elf_i386_fbsd"
  24589. + ;;
  24590. + x86_64-*linux*)
  24591. + LD="${LD-ld} -m elf_i386"
  24592. + ;;
  24593. + ppc64-*linux*|powerpc64-*linux*)
  24594. + LD="${LD-ld} -m elf32ppclinux"
  24595. + ;;
  24596. + s390x-*linux*)
  24597. + LD="${LD-ld} -m elf_s390"
  24598. + ;;
  24599. + sparc64-*linux*)
  24600. + LD="${LD-ld} -m elf32_sparc"
  24601. + ;;
  24602. esac
  24603. -
  24604. - exp_sym_flag='-bexport'
  24605. - no_entry_flag='-bnoentry'
  24606. - fi
  24607. -
  24608. - # When large executables or shared objects are built, AIX ld can
  24609. - # have problems creating the table of contents. If linking a library
  24610. - # or program results in "error TOC overflow" add -mminimal-toc to
  24611. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  24612. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  24613. -
  24614. - archive_cmds=''
  24615. - hardcode_direct=yes
  24616. - hardcode_libdir_separator=':'
  24617. - link_all_deplibs=yes
  24618. -
  24619. - if test "$GCC" = yes; then
  24620. - case $host_os in aix4.[012]|aix4.[012].*)
  24621. - # We only want to do this on AIX 4.2 and lower, the check
  24622. - # below for broken collect2 doesn't work under 4.3+
  24623. - collect2name=`${CC} -print-prog-name=collect2`
  24624. - if test -f "$collect2name" && \
  24625. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  24626. - then
  24627. - # We have reworked collect2
  24628. - :
  24629. - else
  24630. - # We have old collect2
  24631. - hardcode_direct=unsupported
  24632. - # It fails to find uninstalled libraries when the uninstalled
  24633. - # path is not listed in the libpath. Setting hardcode_minus_L
  24634. - # to unsupported forces relinking
  24635. - hardcode_minus_L=yes
  24636. - hardcode_libdir_flag_spec='-L$libdir'
  24637. - hardcode_libdir_separator=
  24638. - fi
  24639. - ;;
  24640. + ;;
  24641. + *64-bit*)
  24642. + case $host in
  24643. + x86_64-*kfreebsd*-gnu)
  24644. + LD="${LD-ld} -m elf_x86_64_fbsd"
  24645. + ;;
  24646. + x86_64-*linux*)
  24647. + LD="${LD-ld} -m elf_x86_64"
  24648. + ;;
  24649. + ppc*-*linux*|powerpc*-*linux*)
  24650. + LD="${LD-ld} -m elf64ppc"
  24651. + ;;
  24652. + s390*-*linux*|s390*-*tpf*)
  24653. + LD="${LD-ld} -m elf64_s390"
  24654. + ;;
  24655. + sparc*-*linux*)
  24656. + LD="${LD-ld} -m elf64_sparc"
  24657. + ;;
  24658. esac
  24659. - shared_flag='-shared'
  24660. - if test "$aix_use_runtimelinking" = yes; then
  24661. - shared_flag="$shared_flag "'${wl}-G'
  24662. - fi
  24663. - else
  24664. - # not using gcc
  24665. - if test "$host_cpu" = ia64; then
  24666. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  24667. - # chokes on -Wl,-G. The following line is correct:
  24668. - shared_flag='-G'
  24669. - else
  24670. - if test "$aix_use_runtimelinking" = yes; then
  24671. - shared_flag='${wl}-G'
  24672. - else
  24673. - shared_flag='${wl}-bM:SRE'
  24674. - fi
  24675. - fi
  24676. - fi
  24677. + ;;
  24678. + esac
  24679. + fi
  24680. + rm -rf conftest*
  24681. + ;;
  24682. - # It seems that -bexpall does not export symbols beginning with
  24683. - # underscore (_), so it is better to generate a list of symbols to export.
  24684. - always_export_symbols=yes
  24685. - if test "$aix_use_runtimelinking" = yes; then
  24686. - # Warning - without using the other runtime loading flags (-brtl),
  24687. - # -berok will link without error, but may produce a broken library.
  24688. - allow_undefined_flag='-berok'
  24689. - # Determine the default libpath from the value encoded in an empty executable.
  24690. - cat >conftest.$ac_ext <<_ACEOF
  24691. -/* confdefs.h. */
  24692. -_ACEOF
  24693. -cat confdefs.h >>conftest.$ac_ext
  24694. -cat >>conftest.$ac_ext <<_ACEOF
  24695. +*-*-sco3.2v5*)
  24696. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  24697. + SAVE_CFLAGS="$CFLAGS"
  24698. + CFLAGS="$CFLAGS -belf"
  24699. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  24700. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  24701. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  24702. + $as_echo_n "(cached) " >&6
  24703. +else
  24704. + ac_ext=c
  24705. +ac_cpp='$CPP $CPPFLAGS'
  24706. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24707. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24708. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24709. +
  24710. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24711. /* end confdefs.h. */
  24712. int
  24713. @@ -8564,8321 +7309,1097 @@
  24714. return 0;
  24715. }
  24716. _ACEOF
  24717. -rm -f conftest.$ac_objext conftest$ac_exeext
  24718. -if { (ac_try="$ac_link"
  24719. -case "(($ac_try" in
  24720. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24721. - *) ac_try_echo=$ac_try;;
  24722. -esac
  24723. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24724. - (eval "$ac_link") 2>conftest.er1
  24725. - ac_status=$?
  24726. - grep -v '^ *+' conftest.er1 >conftest.err
  24727. - rm -f conftest.er1
  24728. - cat conftest.err >&5
  24729. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24730. - (exit $ac_status); } && {
  24731. - test -z "$ac_c_werror_flag" ||
  24732. - test ! -s conftest.err
  24733. - } && test -s conftest$ac_exeext &&
  24734. - $as_test_x conftest$ac_exeext; then
  24735. -
  24736. -lt_aix_libpath_sed='
  24737. - /Import File Strings/,/^$/ {
  24738. - /^0/ {
  24739. - s/^0 *\(.*\)$/\1/
  24740. - p
  24741. - }
  24742. - }'
  24743. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  24744. -# Check for a 64-bit object if we didn't find anything.
  24745. -if test -z "$aix_libpath"; then
  24746. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  24747. -fi
  24748. +if ac_fn_c_try_link "$LINENO"; then :
  24749. + lt_cv_cc_needs_belf=yes
  24750. else
  24751. - echo "$as_me: failed program was:" >&5
  24752. -sed 's/^/| /' conftest.$ac_ext >&5
  24753. -
  24754. -
  24755. + lt_cv_cc_needs_belf=no
  24756. fi
  24757. -
  24758. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24759. - conftest$ac_exeext conftest.$ac_ext
  24760. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24761. -
  24762. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  24763. - 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"
  24764. - else
  24765. - if test "$host_cpu" = ia64; then
  24766. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  24767. - allow_undefined_flag="-z nodefs"
  24768. - 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"
  24769. - else
  24770. - # Determine the default libpath from the value encoded in an empty executable.
  24771. - cat >conftest.$ac_ext <<_ACEOF
  24772. -/* confdefs.h. */
  24773. -_ACEOF
  24774. -cat confdefs.h >>conftest.$ac_ext
  24775. -cat >>conftest.$ac_ext <<_ACEOF
  24776. -/* end confdefs.h. */
  24777. -
  24778. -int
  24779. -main ()
  24780. -{
  24781. -
  24782. - ;
  24783. - return 0;
  24784. -}
  24785. -_ACEOF
  24786. -rm -f conftest.$ac_objext conftest$ac_exeext
  24787. -if { (ac_try="$ac_link"
  24788. -case "(($ac_try" in
  24789. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24790. - *) ac_try_echo=$ac_try;;
  24791. -esac
  24792. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24793. - (eval "$ac_link") 2>conftest.er1
  24794. - ac_status=$?
  24795. - grep -v '^ *+' conftest.er1 >conftest.err
  24796. - rm -f conftest.er1
  24797. - cat conftest.err >&5
  24798. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24799. - (exit $ac_status); } && {
  24800. - test -z "$ac_c_werror_flag" ||
  24801. - test ! -s conftest.err
  24802. - } && test -s conftest$ac_exeext &&
  24803. - $as_test_x conftest$ac_exeext; then
  24804. -
  24805. -lt_aix_libpath_sed='
  24806. - /Import File Strings/,/^$/ {
  24807. - /^0/ {
  24808. - s/^0 *\(.*\)$/\1/
  24809. - p
  24810. - }
  24811. - }'
  24812. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  24813. -# Check for a 64-bit object if we didn't find anything.
  24814. -if test -z "$aix_libpath"; then
  24815. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  24816. -fi
  24817. -else
  24818. - echo "$as_me: failed program was:" >&5
  24819. -sed 's/^/| /' conftest.$ac_ext >&5
  24820. -
  24821. +rm -f core conftest.err conftest.$ac_objext \
  24822. + conftest$ac_exeext conftest.$ac_ext
  24823. + ac_ext=c
  24824. +ac_cpp='$CPP $CPPFLAGS'
  24825. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24826. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24827. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24828. fi
  24829. -
  24830. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24831. - conftest$ac_exeext conftest.$ac_ext
  24832. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24833. -
  24834. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  24835. - # Warning - without using the other run time loading flags,
  24836. - # -berok will link without error, but may produce a broken library.
  24837. - no_undefined_flag=' ${wl}-bernotok'
  24838. - allow_undefined_flag=' ${wl}-berok'
  24839. - # Exported symbols can be pulled into shared objects from archives
  24840. - whole_archive_flag_spec='$convenience'
  24841. - archive_cmds_need_lc=yes
  24842. - # This is similar to how AIX traditionally builds its shared libraries.
  24843. - 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'
  24844. - fi
  24845. - fi
  24846. - ;;
  24847. -
  24848. - amigaos*)
  24849. - 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)'
  24850. - hardcode_libdir_flag_spec='-L$libdir'
  24851. - hardcode_minus_L=yes
  24852. - # see comment about different semantics on the GNU ld section
  24853. - ld_shlibs=no
  24854. - ;;
  24855. -
  24856. - bsdi[45]*)
  24857. - export_dynamic_flag_spec=-rdynamic
  24858. - ;;
  24859. -
  24860. - cygwin* | mingw* | pw32*)
  24861. - # When not using gcc, we currently assume that we are using
  24862. - # Microsoft Visual C++.
  24863. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  24864. - # no search path for DLLs.
  24865. - hardcode_libdir_flag_spec=' '
  24866. - allow_undefined_flag=unsupported
  24867. - # Tell ltmain to make .lib files, not .a files.
  24868. - libext=lib
  24869. - # Tell ltmain to make .dll files, not .so files.
  24870. - shrext_cmds=".dll"
  24871. - # FIXME: Setting linknames here is a bad hack.
  24872. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  24873. - # The linker will automatically build a .lib file if we build a DLL.
  24874. - old_archive_From_new_cmds='true'
  24875. - # FIXME: Should let the user specify the lib program.
  24876. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  24877. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  24878. - enable_shared_with_static_runtimes=yes
  24879. - ;;
  24880. -
  24881. - darwin* | rhapsody*)
  24882. - case $host_os in
  24883. - rhapsody* | darwin1.[012])
  24884. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  24885. - ;;
  24886. - *) # Darwin 1.3 on
  24887. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  24888. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  24889. - else
  24890. - case ${MACOSX_DEPLOYMENT_TARGET} in
  24891. - 10.[012])
  24892. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  24893. - ;;
  24894. - 10.*)
  24895. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  24896. - ;;
  24897. - esac
  24898. - fi
  24899. - ;;
  24900. - esac
  24901. - archive_cmds_need_lc=no
  24902. - hardcode_direct=no
  24903. - hardcode_automatic=yes
  24904. - hardcode_shlibpath_var=unsupported
  24905. - whole_archive_flag_spec=''
  24906. - link_all_deplibs=yes
  24907. - if test "$GCC" = yes ; then
  24908. - output_verbose_link_cmd='echo'
  24909. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  24910. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  24911. - 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}"
  24912. - 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}"
  24913. - else
  24914. - case $cc_basename in
  24915. - xlc*)
  24916. - output_verbose_link_cmd='echo'
  24917. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  24918. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24919. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  24920. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24921. - 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}'
  24922. - ;;
  24923. - *)
  24924. - ld_shlibs=no
  24925. - ;;
  24926. - esac
  24927. - fi
  24928. - ;;
  24929. -
  24930. - dgux*)
  24931. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24932. - hardcode_libdir_flag_spec='-L$libdir'
  24933. - hardcode_shlibpath_var=no
  24934. - ;;
  24935. -
  24936. - freebsd1*)
  24937. - ld_shlibs=no
  24938. - ;;
  24939. -
  24940. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  24941. - # support. Future versions do this automatically, but an explicit c++rt0.o
  24942. - # does not break anything, and helps significantly (at the cost of a little
  24943. - # extra space).
  24944. - freebsd2.2*)
  24945. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  24946. - hardcode_libdir_flag_spec='-R$libdir'
  24947. - hardcode_direct=yes
  24948. - hardcode_shlibpath_var=no
  24949. - ;;
  24950. -
  24951. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  24952. - freebsd2*)
  24953. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24954. - hardcode_direct=yes
  24955. - hardcode_minus_L=yes
  24956. - hardcode_shlibpath_var=no
  24957. - ;;
  24958. -
  24959. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  24960. - freebsd* | dragonfly*)
  24961. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  24962. - hardcode_libdir_flag_spec='-R$libdir'
  24963. - hardcode_direct=yes
  24964. - hardcode_shlibpath_var=no
  24965. - ;;
  24966. -
  24967. - hpux9*)
  24968. - if test "$GCC" = yes; then
  24969. - 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'
  24970. - else
  24971. - 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'
  24972. - fi
  24973. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  24974. - hardcode_libdir_separator=:
  24975. - hardcode_direct=yes
  24976. -
  24977. - # hardcode_minus_L: Not really in the search PATH,
  24978. - # but as the default location of the library.
  24979. - hardcode_minus_L=yes
  24980. - export_dynamic_flag_spec='${wl}-E'
  24981. - ;;
  24982. -
  24983. - hpux10*)
  24984. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  24985. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24986. - else
  24987. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  24988. - fi
  24989. - if test "$with_gnu_ld" = no; then
  24990. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  24991. - hardcode_libdir_separator=:
  24992. -
  24993. - hardcode_direct=yes
  24994. - export_dynamic_flag_spec='${wl}-E'
  24995. -
  24996. - # hardcode_minus_L: Not really in the search PATH,
  24997. - # but as the default location of the library.
  24998. - hardcode_minus_L=yes
  24999. - fi
  25000. - ;;
  25001. -
  25002. - hpux11*)
  25003. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25004. - case $host_cpu in
  25005. - hppa*64*)
  25006. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25007. - ;;
  25008. - ia64*)
  25009. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25010. - ;;
  25011. - *)
  25012. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25013. - ;;
  25014. - esac
  25015. - else
  25016. - case $host_cpu in
  25017. - hppa*64*)
  25018. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25019. - ;;
  25020. - ia64*)
  25021. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25022. - ;;
  25023. - *)
  25024. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25025. - ;;
  25026. - esac
  25027. - fi
  25028. - if test "$with_gnu_ld" = no; then
  25029. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25030. - hardcode_libdir_separator=:
  25031. -
  25032. - case $host_cpu in
  25033. - hppa*64*|ia64*)
  25034. - hardcode_libdir_flag_spec_ld='+b $libdir'
  25035. - hardcode_direct=no
  25036. - hardcode_shlibpath_var=no
  25037. - ;;
  25038. - *)
  25039. - hardcode_direct=yes
  25040. - export_dynamic_flag_spec='${wl}-E'
  25041. -
  25042. - # hardcode_minus_L: Not really in the search PATH,
  25043. - # but as the default location of the library.
  25044. - hardcode_minus_L=yes
  25045. - ;;
  25046. - esac
  25047. - fi
  25048. - ;;
  25049. -
  25050. - irix5* | irix6* | nonstopux*)
  25051. - if test "$GCC" = yes; then
  25052. - 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'
  25053. - else
  25054. - 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'
  25055. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  25056. - fi
  25057. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25058. - hardcode_libdir_separator=:
  25059. - link_all_deplibs=yes
  25060. - ;;
  25061. -
  25062. - netbsd*)
  25063. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25064. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  25065. - else
  25066. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  25067. - fi
  25068. - hardcode_libdir_flag_spec='-R$libdir'
  25069. - hardcode_direct=yes
  25070. - hardcode_shlibpath_var=no
  25071. - ;;
  25072. -
  25073. - newsos6)
  25074. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25075. - hardcode_direct=yes
  25076. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25077. - hardcode_libdir_separator=:
  25078. - hardcode_shlibpath_var=no
  25079. - ;;
  25080. -
  25081. - openbsd*)
  25082. - if test -f /usr/libexec/ld.so; then
  25083. - hardcode_direct=yes
  25084. - hardcode_shlibpath_var=no
  25085. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25086. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25087. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  25088. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25089. - export_dynamic_flag_spec='${wl}-E'
  25090. - else
  25091. - case $host_os in
  25092. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  25093. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25094. - hardcode_libdir_flag_spec='-R$libdir'
  25095. - ;;
  25096. - *)
  25097. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25098. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25099. - ;;
  25100. - esac
  25101. - fi
  25102. - else
  25103. - ld_shlibs=no
  25104. - fi
  25105. - ;;
  25106. -
  25107. - os2*)
  25108. - hardcode_libdir_flag_spec='-L$libdir'
  25109. - hardcode_minus_L=yes
  25110. - allow_undefined_flag=unsupported
  25111. - 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'
  25112. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  25113. - ;;
  25114. -
  25115. - osf3*)
  25116. - if test "$GCC" = yes; then
  25117. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25118. - 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'
  25119. - else
  25120. - allow_undefined_flag=' -expect_unresolved \*'
  25121. - 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'
  25122. - fi
  25123. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25124. - hardcode_libdir_separator=:
  25125. - ;;
  25126. -
  25127. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  25128. - if test "$GCC" = yes; then
  25129. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25130. - 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'
  25131. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25132. - else
  25133. - allow_undefined_flag=' -expect_unresolved \*'
  25134. - 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'
  25135. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  25136. - $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'
  25137. -
  25138. - # Both c and cxx compiler support -rpath directly
  25139. - hardcode_libdir_flag_spec='-rpath $libdir'
  25140. - fi
  25141. - hardcode_libdir_separator=:
  25142. - ;;
  25143. -
  25144. - solaris*)
  25145. - no_undefined_flag=' -z text'
  25146. - if test "$GCC" = yes; then
  25147. - wlarc='${wl}'
  25148. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25149. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25150. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  25151. - else
  25152. - wlarc=''
  25153. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25154. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25155. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  25156. - fi
  25157. - hardcode_libdir_flag_spec='-R$libdir'
  25158. - hardcode_shlibpath_var=no
  25159. - case $host_os in
  25160. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  25161. - *)
  25162. - # The compiler driver will combine and reorder linker options,
  25163. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  25164. - # but is careful enough not to reorder.
  25165. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  25166. - if test "$GCC" = yes; then
  25167. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  25168. - else
  25169. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  25170. - fi
  25171. - ;;
  25172. - esac
  25173. - link_all_deplibs=yes
  25174. - ;;
  25175. -
  25176. - sunos4*)
  25177. - if test "x$host_vendor" = xsequent; then
  25178. - # Use $CC to link under sequent, because it throws in some extra .o
  25179. - # files that make .init and .fini sections work.
  25180. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  25181. - else
  25182. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  25183. - fi
  25184. - hardcode_libdir_flag_spec='-L$libdir'
  25185. - hardcode_direct=yes
  25186. - hardcode_minus_L=yes
  25187. - hardcode_shlibpath_var=no
  25188. - ;;
  25189. -
  25190. - sysv4)
  25191. - case $host_vendor in
  25192. - sni)
  25193. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25194. - hardcode_direct=yes # is this really true???
  25195. - ;;
  25196. - siemens)
  25197. - ## LD is ld it makes a PLAMLIB
  25198. - ## CC just makes a GrossModule.
  25199. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  25200. - reload_cmds='$CC -r -o $output$reload_objs'
  25201. - hardcode_direct=no
  25202. - ;;
  25203. - motorola)
  25204. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25205. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  25206. - ;;
  25207. - esac
  25208. - runpath_var='LD_RUN_PATH'
  25209. - hardcode_shlibpath_var=no
  25210. - ;;
  25211. -
  25212. - sysv4.3*)
  25213. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25214. - hardcode_shlibpath_var=no
  25215. - export_dynamic_flag_spec='-Bexport'
  25216. - ;;
  25217. -
  25218. - sysv4*MP*)
  25219. - if test -d /usr/nec; then
  25220. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25221. - hardcode_shlibpath_var=no
  25222. - runpath_var=LD_RUN_PATH
  25223. - hardcode_runpath_var=yes
  25224. - ld_shlibs=yes
  25225. - fi
  25226. - ;;
  25227. -
  25228. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  25229. - no_undefined_flag='${wl}-z,text'
  25230. - archive_cmds_need_lc=no
  25231. - hardcode_shlibpath_var=no
  25232. - runpath_var='LD_RUN_PATH'
  25233. -
  25234. - if test "$GCC" = yes; then
  25235. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25236. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25237. - else
  25238. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25239. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25240. - fi
  25241. - ;;
  25242. -
  25243. - sysv5* | sco3.2v5* | sco5v6*)
  25244. - # Note: We can NOT use -z defs as we might desire, because we do not
  25245. - # link with -lc, and that would cause any symbols used from libc to
  25246. - # always be unresolved, which means just about no library would
  25247. - # ever link correctly. If we're not using GNU ld we use -z text
  25248. - # though, which does catch some bad symbols but isn't as heavy-handed
  25249. - # as -z defs.
  25250. - no_undefined_flag='${wl}-z,text'
  25251. - allow_undefined_flag='${wl}-z,nodefs'
  25252. - archive_cmds_need_lc=no
  25253. - hardcode_shlibpath_var=no
  25254. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  25255. - hardcode_libdir_separator=':'
  25256. - link_all_deplibs=yes
  25257. - export_dynamic_flag_spec='${wl}-Bexport'
  25258. - runpath_var='LD_RUN_PATH'
  25259. -
  25260. - if test "$GCC" = yes; then
  25261. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25262. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25263. - else
  25264. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25265. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25266. - fi
  25267. - ;;
  25268. -
  25269. - uts4*)
  25270. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25271. - hardcode_libdir_flag_spec='-L$libdir'
  25272. - hardcode_shlibpath_var=no
  25273. - ;;
  25274. -
  25275. - *)
  25276. - ld_shlibs=no
  25277. - ;;
  25278. - esac
  25279. - fi
  25280. -
  25281. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  25282. -echo "${ECHO_T}$ld_shlibs" >&6; }
  25283. -test "$ld_shlibs" = no && can_build_shared=no
  25284. -
  25285. -#
  25286. -# Do we need to explicitly link libc?
  25287. -#
  25288. -case "x$archive_cmds_need_lc" in
  25289. -x|xyes)
  25290. - # Assume -lc should be added
  25291. - archive_cmds_need_lc=yes
  25292. -
  25293. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  25294. - case $archive_cmds in
  25295. - *'~'*)
  25296. - # FIXME: we may have to deal with multi-command sequences.
  25297. - ;;
  25298. - '$CC '*)
  25299. - # Test whether the compiler implicitly links with -lc since on some
  25300. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  25301. - # to ld, don't add -lc before -lgcc.
  25302. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  25303. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  25304. - $rm conftest*
  25305. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25306. -
  25307. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25308. - (eval $ac_compile) 2>&5
  25309. - ac_status=$?
  25310. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25311. - (exit $ac_status); } 2>conftest.err; then
  25312. - soname=conftest
  25313. - lib=conftest
  25314. - libobjs=conftest.$ac_objext
  25315. - deplibs=
  25316. - wl=$lt_prog_compiler_wl
  25317. - pic_flag=$lt_prog_compiler_pic
  25318. - compiler_flags=-v
  25319. - linker_flags=-v
  25320. - verstring=
  25321. - output_objdir=.
  25322. - libname=conftest
  25323. - lt_save_allow_undefined_flag=$allow_undefined_flag
  25324. - allow_undefined_flag=
  25325. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  25326. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  25327. - ac_status=$?
  25328. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25329. - (exit $ac_status); }
  25330. - then
  25331. - archive_cmds_need_lc=no
  25332. - else
  25333. - archive_cmds_need_lc=yes
  25334. - fi
  25335. - allow_undefined_flag=$lt_save_allow_undefined_flag
  25336. - else
  25337. - cat conftest.err 1>&5
  25338. - fi
  25339. - $rm conftest*
  25340. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  25341. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  25342. - ;;
  25343. - esac
  25344. - fi
  25345. - ;;
  25346. -esac
  25347. -
  25348. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  25349. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  25350. -library_names_spec=
  25351. -libname_spec='lib$name'
  25352. -soname_spec=
  25353. -shrext_cmds=".so"
  25354. -postinstall_cmds=
  25355. -postuninstall_cmds=
  25356. -finish_cmds=
  25357. -finish_eval=
  25358. -shlibpath_var=
  25359. -shlibpath_overrides_runpath=unknown
  25360. -version_type=none
  25361. -dynamic_linker="$host_os ld.so"
  25362. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  25363. -
  25364. -if test "$GCC" = yes; then
  25365. - case $host_os in
  25366. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  25367. - *) lt_awk_arg="/^libraries:/" ;;
  25368. - esac
  25369. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25370. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  25371. - # if the path contains ";" then we assume it to be the separator
  25372. - # otherwise default to the standard path separator (i.e. ":") - it is
  25373. - # assumed that no part of a normal pathname contains ";" but that should
  25374. - # okay in the real world where ";" in dirpaths is itself problematic.
  25375. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  25376. - else
  25377. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25378. - fi
  25379. - # Ok, now we have the path, separated by spaces, we can step through it
  25380. - # and add multilib dir if necessary.
  25381. - lt_tmp_lt_search_path_spec=
  25382. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  25383. - for lt_sys_path in $lt_search_path_spec; do
  25384. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  25385. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  25386. - else
  25387. - test -d "$lt_sys_path" && \
  25388. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  25389. - fi
  25390. - done
  25391. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  25392. -BEGIN {RS=" "; FS="/|\n";} {
  25393. - lt_foo="";
  25394. - lt_count=0;
  25395. - for (lt_i = NF; lt_i > 0; lt_i--) {
  25396. - if ($lt_i != "" && $lt_i != ".") {
  25397. - if ($lt_i == "..") {
  25398. - lt_count++;
  25399. - } else {
  25400. - if (lt_count == 0) {
  25401. - lt_foo="/" $lt_i lt_foo;
  25402. - } else {
  25403. - lt_count--;
  25404. - }
  25405. - }
  25406. - }
  25407. - }
  25408. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  25409. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  25410. -}'`
  25411. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  25412. -else
  25413. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  25414. -fi
  25415. -need_lib_prefix=unknown
  25416. -hardcode_into_libs=no
  25417. -
  25418. -# when you set need_version to no, make sure it does not cause -set_version
  25419. -# flags to be left without arguments
  25420. -need_version=unknown
  25421. -
  25422. -case $host_os in
  25423. -aix3*)
  25424. - version_type=linux
  25425. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  25426. - shlibpath_var=LIBPATH
  25427. -
  25428. - # AIX 3 has no versioning support, so we append a major version to the name.
  25429. - soname_spec='${libname}${release}${shared_ext}$major'
  25430. - ;;
  25431. -
  25432. -aix[4-9]*)
  25433. - version_type=linux
  25434. - need_lib_prefix=no
  25435. - need_version=no
  25436. - hardcode_into_libs=yes
  25437. - if test "$host_cpu" = ia64; then
  25438. - # AIX 5 supports IA64
  25439. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  25440. - shlibpath_var=LD_LIBRARY_PATH
  25441. - else
  25442. - # With GCC up to 2.95.x, collect2 would create an import file
  25443. - # for dependence libraries. The import file would start with
  25444. - # the line `#! .'. This would cause the generated library to
  25445. - # depend on `.', always an invalid library. This was fixed in
  25446. - # development snapshots of GCC prior to 3.0.
  25447. - case $host_os in
  25448. - aix4 | aix4.[01] | aix4.[01].*)
  25449. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  25450. - echo ' yes '
  25451. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  25452. - :
  25453. - else
  25454. - can_build_shared=no
  25455. - fi
  25456. - ;;
  25457. - esac
  25458. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  25459. - # soname into executable. Probably we can add versioning support to
  25460. - # collect2, so additional links can be useful in future.
  25461. - if test "$aix_use_runtimelinking" = yes; then
  25462. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  25463. - # instead of lib<name>.a to let people know that these are not
  25464. - # typical AIX shared libraries.
  25465. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25466. - else
  25467. - # We preserve .a as extension for shared libraries through AIX4.2
  25468. - # and later when we are not doing run time linking.
  25469. - library_names_spec='${libname}${release}.a $libname.a'
  25470. - soname_spec='${libname}${release}${shared_ext}$major'
  25471. - fi
  25472. - shlibpath_var=LIBPATH
  25473. - fi
  25474. - ;;
  25475. -
  25476. -amigaos*)
  25477. - library_names_spec='$libname.ixlibrary $libname.a'
  25478. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  25479. - 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'
  25480. - ;;
  25481. -
  25482. -beos*)
  25483. - library_names_spec='${libname}${shared_ext}'
  25484. - dynamic_linker="$host_os ld.so"
  25485. - shlibpath_var=LIBRARY_PATH
  25486. - ;;
  25487. -
  25488. -bsdi[45]*)
  25489. - version_type=linux
  25490. - need_version=no
  25491. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25492. - soname_spec='${libname}${release}${shared_ext}$major'
  25493. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  25494. - shlibpath_var=LD_LIBRARY_PATH
  25495. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  25496. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  25497. - # the default ld.so.conf also contains /usr/contrib/lib and
  25498. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  25499. - # libtool to hard-code these into programs
  25500. - ;;
  25501. -
  25502. -cygwin* | mingw* | pw32*)
  25503. - version_type=windows
  25504. - shrext_cmds=".dll"
  25505. - need_version=no
  25506. - need_lib_prefix=no
  25507. -
  25508. - case $GCC,$host_os in
  25509. - yes,cygwin* | yes,mingw* | yes,pw32*)
  25510. - library_names_spec='$libname.dll.a'
  25511. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  25512. - postinstall_cmds='base_file=`basename \${file}`~
  25513. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  25514. - dldir=$destdir/`dirname \$dlpath`~
  25515. - test -d \$dldir || mkdir -p \$dldir~
  25516. - $install_prog $dir/$dlname \$dldir/$dlname~
  25517. - chmod a+x \$dldir/$dlname'
  25518. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  25519. - dlpath=$dir/\$dldll~
  25520. - $rm \$dlpath'
  25521. - shlibpath_overrides_runpath=yes
  25522. -
  25523. - case $host_os in
  25524. - cygwin*)
  25525. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  25526. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25527. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  25528. - ;;
  25529. - mingw*)
  25530. - # MinGW DLLs use traditional 'lib' prefix
  25531. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25532. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25533. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  25534. - # It is most probably a Windows format PATH printed by
  25535. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  25536. - # path with ; separators, and with drive letters. We can handle the
  25537. - # drive letters (cygwin fileutils understands them), so leave them,
  25538. - # especially as we might pass files found there to a mingw objdump,
  25539. - # which wouldn't understand a cygwinified path. Ahh.
  25540. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  25541. - else
  25542. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25543. - fi
  25544. - ;;
  25545. - pw32*)
  25546. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  25547. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25548. - ;;
  25549. - esac
  25550. - ;;
  25551. -
  25552. - *)
  25553. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  25554. - ;;
  25555. - esac
  25556. - dynamic_linker='Win32 ld.exe'
  25557. - # FIXME: first we should search . and the directory the executable is in
  25558. - shlibpath_var=PATH
  25559. - ;;
  25560. -
  25561. -darwin* | rhapsody*)
  25562. - dynamic_linker="$host_os dyld"
  25563. - version_type=darwin
  25564. - need_lib_prefix=no
  25565. - need_version=no
  25566. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  25567. - soname_spec='${libname}${release}${major}$shared_ext'
  25568. - shlibpath_overrides_runpath=yes
  25569. - shlibpath_var=DYLD_LIBRARY_PATH
  25570. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  25571. -
  25572. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  25573. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  25574. - ;;
  25575. -
  25576. -dgux*)
  25577. - version_type=linux
  25578. - need_lib_prefix=no
  25579. - need_version=no
  25580. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  25581. - soname_spec='${libname}${release}${shared_ext}$major'
  25582. - shlibpath_var=LD_LIBRARY_PATH
  25583. - ;;
  25584. -
  25585. -freebsd1*)
  25586. - dynamic_linker=no
  25587. - ;;
  25588. -
  25589. -freebsd* | dragonfly*)
  25590. - # DragonFly does not have aout. When/if they implement a new
  25591. - # versioning mechanism, adjust this.
  25592. - if test -x /usr/bin/objformat; then
  25593. - objformat=`/usr/bin/objformat`
  25594. - else
  25595. - case $host_os in
  25596. - freebsd[123]*) objformat=aout ;;
  25597. - *) objformat=elf ;;
  25598. - esac
  25599. - fi
  25600. - version_type=freebsd-$objformat
  25601. - case $version_type in
  25602. - freebsd-elf*)
  25603. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25604. - need_version=no
  25605. - need_lib_prefix=no
  25606. - ;;
  25607. - freebsd-*)
  25608. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  25609. - need_version=yes
  25610. - ;;
  25611. - esac
  25612. - shlibpath_var=LD_LIBRARY_PATH
  25613. - case $host_os in
  25614. - freebsd2*)
  25615. - shlibpath_overrides_runpath=yes
  25616. - ;;
  25617. - freebsd3.[01]* | freebsdelf3.[01]*)
  25618. - shlibpath_overrides_runpath=yes
  25619. - hardcode_into_libs=yes
  25620. - ;;
  25621. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  25622. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  25623. - shlibpath_overrides_runpath=no
  25624. - hardcode_into_libs=yes
  25625. - ;;
  25626. - *) # from 4.6 on, and DragonFly
  25627. - shlibpath_overrides_runpath=yes
  25628. - hardcode_into_libs=yes
  25629. - ;;
  25630. - esac
  25631. - ;;
  25632. -
  25633. -gnu*)
  25634. - version_type=linux
  25635. - need_lib_prefix=no
  25636. - need_version=no
  25637. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  25638. - soname_spec='${libname}${release}${shared_ext}$major'
  25639. - shlibpath_var=LD_LIBRARY_PATH
  25640. - hardcode_into_libs=yes
  25641. - ;;
  25642. -
  25643. -hpux9* | hpux10* | hpux11*)
  25644. - # Give a soname corresponding to the major version so that dld.sl refuses to
  25645. - # link against other versions.
  25646. - version_type=sunos
  25647. - need_lib_prefix=no
  25648. - need_version=no
  25649. - case $host_cpu in
  25650. - ia64*)
  25651. - shrext_cmds='.so'
  25652. - hardcode_into_libs=yes
  25653. - dynamic_linker="$host_os dld.so"
  25654. - shlibpath_var=LD_LIBRARY_PATH
  25655. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25656. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25657. - soname_spec='${libname}${release}${shared_ext}$major'
  25658. - if test "X$HPUX_IA64_MODE" = X32; then
  25659. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  25660. - else
  25661. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  25662. - fi
  25663. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25664. - ;;
  25665. - hppa*64*)
  25666. - shrext_cmds='.sl'
  25667. - hardcode_into_libs=yes
  25668. - dynamic_linker="$host_os dld.sl"
  25669. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  25670. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25671. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25672. - soname_spec='${libname}${release}${shared_ext}$major'
  25673. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  25674. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25675. - ;;
  25676. - *)
  25677. - shrext_cmds='.sl'
  25678. - dynamic_linker="$host_os dld.sl"
  25679. - shlibpath_var=SHLIB_PATH
  25680. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  25681. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25682. - soname_spec='${libname}${release}${shared_ext}$major'
  25683. - ;;
  25684. - esac
  25685. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  25686. - postinstall_cmds='chmod 555 $lib'
  25687. - ;;
  25688. -
  25689. -interix[3-9]*)
  25690. - version_type=linux
  25691. - need_lib_prefix=no
  25692. - need_version=no
  25693. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25694. - soname_spec='${libname}${release}${shared_ext}$major'
  25695. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  25696. - shlibpath_var=LD_LIBRARY_PATH
  25697. - shlibpath_overrides_runpath=no
  25698. - hardcode_into_libs=yes
  25699. - ;;
  25700. -
  25701. -irix5* | irix6* | nonstopux*)
  25702. - case $host_os in
  25703. - nonstopux*) version_type=nonstopux ;;
  25704. - *)
  25705. - if test "$lt_cv_prog_gnu_ld" = yes; then
  25706. - version_type=linux
  25707. - else
  25708. - version_type=irix
  25709. - fi ;;
  25710. - esac
  25711. - need_lib_prefix=no
  25712. - need_version=no
  25713. - soname_spec='${libname}${release}${shared_ext}$major'
  25714. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  25715. - case $host_os in
  25716. - irix5* | nonstopux*)
  25717. - libsuff= shlibsuff=
  25718. - ;;
  25719. - *)
  25720. - case $LD in # libtool.m4 will add one of these switches to LD
  25721. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  25722. - libsuff= shlibsuff= libmagic=32-bit;;
  25723. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  25724. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  25725. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  25726. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  25727. - *) libsuff= shlibsuff= libmagic=never-match;;
  25728. - esac
  25729. - ;;
  25730. - esac
  25731. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  25732. - shlibpath_overrides_runpath=no
  25733. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  25734. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  25735. - hardcode_into_libs=yes
  25736. - ;;
  25737. -
  25738. -# No shared lib support for Linux oldld, aout, or coff.
  25739. -linux*oldld* | linux*aout* | linux*coff*)
  25740. - dynamic_linker=no
  25741. - ;;
  25742. -
  25743. -# This must be Linux ELF.
  25744. -linux* | k*bsd*-gnu)
  25745. - version_type=linux
  25746. - need_lib_prefix=no
  25747. - need_version=no
  25748. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25749. - soname_spec='${libname}${release}${shared_ext}$major'
  25750. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  25751. - shlibpath_var=LD_LIBRARY_PATH
  25752. - shlibpath_overrides_runpath=no
  25753. - # This implies no fast_install, which is unacceptable.
  25754. - # Some rework will be needed to allow for fast_install
  25755. - # before this can be enabled.
  25756. - hardcode_into_libs=yes
  25757. -
  25758. - # Append ld.so.conf contents to the search path
  25759. - if test -f /etc/ld.so.conf; then
  25760. - 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' ' '`
  25761. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  25762. - fi
  25763. -
  25764. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  25765. - # powerpc, because MkLinux only supported shared libraries with the
  25766. - # GNU dynamic linker. Since this was broken with cross compilers,
  25767. - # most powerpc-linux boxes support dynamic linking these days and
  25768. - # people can always --disable-shared, the test was removed, and we
  25769. - # assume the GNU/Linux dynamic linker is in use.
  25770. - dynamic_linker='GNU/Linux ld.so'
  25771. - ;;
  25772. -
  25773. -netbsd*)
  25774. - version_type=sunos
  25775. - need_lib_prefix=no
  25776. - need_version=no
  25777. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25778. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25779. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25780. - dynamic_linker='NetBSD (a.out) ld.so'
  25781. - else
  25782. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25783. - soname_spec='${libname}${release}${shared_ext}$major'
  25784. - dynamic_linker='NetBSD ld.elf_so'
  25785. - fi
  25786. - shlibpath_var=LD_LIBRARY_PATH
  25787. - shlibpath_overrides_runpath=yes
  25788. - hardcode_into_libs=yes
  25789. - ;;
  25790. -
  25791. -newsos6)
  25792. - version_type=linux
  25793. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25794. - shlibpath_var=LD_LIBRARY_PATH
  25795. - shlibpath_overrides_runpath=yes
  25796. - ;;
  25797. -
  25798. -nto-qnx*)
  25799. - version_type=linux
  25800. - need_lib_prefix=no
  25801. - need_version=no
  25802. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25803. - soname_spec='${libname}${release}${shared_ext}$major'
  25804. - shlibpath_var=LD_LIBRARY_PATH
  25805. - shlibpath_overrides_runpath=yes
  25806. - ;;
  25807. -
  25808. -openbsd*)
  25809. - version_type=sunos
  25810. - sys_lib_dlsearch_path_spec="/usr/lib"
  25811. - need_lib_prefix=no
  25812. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  25813. - case $host_os in
  25814. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  25815. - *) need_version=no ;;
  25816. - esac
  25817. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25818. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25819. - shlibpath_var=LD_LIBRARY_PATH
  25820. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25821. - case $host_os in
  25822. - openbsd2.[89] | openbsd2.[89].*)
  25823. - shlibpath_overrides_runpath=no
  25824. - ;;
  25825. - *)
  25826. - shlibpath_overrides_runpath=yes
  25827. - ;;
  25828. - esac
  25829. - else
  25830. - shlibpath_overrides_runpath=yes
  25831. - fi
  25832. - ;;
  25833. -
  25834. -os2*)
  25835. - libname_spec='$name'
  25836. - shrext_cmds=".dll"
  25837. - need_lib_prefix=no
  25838. - library_names_spec='$libname${shared_ext} $libname.a'
  25839. - dynamic_linker='OS/2 ld.exe'
  25840. - shlibpath_var=LIBPATH
  25841. - ;;
  25842. -
  25843. -osf3* | osf4* | osf5*)
  25844. - version_type=osf
  25845. - need_lib_prefix=no
  25846. - need_version=no
  25847. - soname_spec='${libname}${release}${shared_ext}$major'
  25848. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25849. - shlibpath_var=LD_LIBRARY_PATH
  25850. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  25851. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  25852. - ;;
  25853. -
  25854. -rdos*)
  25855. - dynamic_linker=no
  25856. - ;;
  25857. -
  25858. -solaris*)
  25859. - version_type=linux
  25860. - need_lib_prefix=no
  25861. - need_version=no
  25862. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25863. - soname_spec='${libname}${release}${shared_ext}$major'
  25864. - shlibpath_var=LD_LIBRARY_PATH
  25865. - shlibpath_overrides_runpath=yes
  25866. - hardcode_into_libs=yes
  25867. - # ldd complains unless libraries are executable
  25868. - postinstall_cmds='chmod +x $lib'
  25869. - ;;
  25870. -
  25871. -sunos4*)
  25872. - version_type=sunos
  25873. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25874. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  25875. - shlibpath_var=LD_LIBRARY_PATH
  25876. - shlibpath_overrides_runpath=yes
  25877. - if test "$with_gnu_ld" = yes; then
  25878. - need_lib_prefix=no
  25879. - fi
  25880. - need_version=yes
  25881. - ;;
  25882. -
  25883. -sysv4 | sysv4.3*)
  25884. - version_type=linux
  25885. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25886. - soname_spec='${libname}${release}${shared_ext}$major'
  25887. - shlibpath_var=LD_LIBRARY_PATH
  25888. - case $host_vendor in
  25889. - sni)
  25890. - shlibpath_overrides_runpath=no
  25891. - need_lib_prefix=no
  25892. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  25893. - runpath_var=LD_RUN_PATH
  25894. - ;;
  25895. - siemens)
  25896. - need_lib_prefix=no
  25897. - ;;
  25898. - motorola)
  25899. - need_lib_prefix=no
  25900. - need_version=no
  25901. - shlibpath_overrides_runpath=no
  25902. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  25903. - ;;
  25904. - esac
  25905. - ;;
  25906. -
  25907. -sysv4*MP*)
  25908. - if test -d /usr/nec ;then
  25909. - version_type=linux
  25910. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  25911. - soname_spec='$libname${shared_ext}.$major'
  25912. - shlibpath_var=LD_LIBRARY_PATH
  25913. - fi
  25914. - ;;
  25915. -
  25916. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  25917. - version_type=freebsd-elf
  25918. - need_lib_prefix=no
  25919. - need_version=no
  25920. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25921. - soname_spec='${libname}${release}${shared_ext}$major'
  25922. - shlibpath_var=LD_LIBRARY_PATH
  25923. - hardcode_into_libs=yes
  25924. - if test "$with_gnu_ld" = yes; then
  25925. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  25926. - shlibpath_overrides_runpath=no
  25927. - else
  25928. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  25929. - shlibpath_overrides_runpath=yes
  25930. - case $host_os in
  25931. - sco3.2v5*)
  25932. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  25933. - ;;
  25934. - esac
  25935. - fi
  25936. - sys_lib_dlsearch_path_spec='/usr/lib'
  25937. - ;;
  25938. -
  25939. -uts4*)
  25940. - version_type=linux
  25941. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25942. - soname_spec='${libname}${release}${shared_ext}$major'
  25943. - shlibpath_var=LD_LIBRARY_PATH
  25944. - ;;
  25945. -
  25946. -*)
  25947. - dynamic_linker=no
  25948. - ;;
  25949. -esac
  25950. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  25951. -echo "${ECHO_T}$dynamic_linker" >&6; }
  25952. -test "$dynamic_linker" = no && can_build_shared=no
  25953. -
  25954. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  25955. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25956. -else
  25957. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  25958. -fi
  25959. -
  25960. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  25961. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  25962. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25963. -else
  25964. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  25965. -fi
  25966. -
  25967. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  25968. -
  25969. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  25970. -if test "$GCC" = yes; then
  25971. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  25972. -fi
  25973. -
  25974. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  25975. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  25976. -hardcode_action=
  25977. -if test -n "$hardcode_libdir_flag_spec" || \
  25978. - test -n "$runpath_var" || \
  25979. - test "X$hardcode_automatic" = "Xyes" ; then
  25980. -
  25981. - # We can hardcode non-existant directories.
  25982. - if test "$hardcode_direct" != no &&
  25983. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  25984. - # have to relink, otherwise we might link with an installed library
  25985. - # when we should be linking with a yet-to-be-installed one
  25986. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  25987. - test "$hardcode_minus_L" != no; then
  25988. - # Linking always hardcodes the temporary library directory.
  25989. - hardcode_action=relink
  25990. - else
  25991. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  25992. - hardcode_action=immediate
  25993. - fi
  25994. -else
  25995. - # We cannot hardcode anything, or else we can only hardcode existing
  25996. - # directories.
  25997. - hardcode_action=unsupported
  25998. -fi
  25999. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  26000. -echo "${ECHO_T}$hardcode_action" >&6; }
  26001. -
  26002. -if test "$hardcode_action" = relink; then
  26003. - # Fast installation is not supported
  26004. - enable_fast_install=no
  26005. -elif test "$shlibpath_overrides_runpath" = yes ||
  26006. - test "$enable_shared" = no; then
  26007. - # Fast installation is not necessary
  26008. - enable_fast_install=needless
  26009. -fi
  26010. -
  26011. -striplib=
  26012. -old_striplib=
  26013. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  26014. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  26015. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  26016. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  26017. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  26018. - { echo "$as_me:$LINENO: result: yes" >&5
  26019. -echo "${ECHO_T}yes" >&6; }
  26020. -else
  26021. -# FIXME - insert some real tests, host_os isn't really good enough
  26022. - case $host_os in
  26023. - darwin*)
  26024. - if test -n "$STRIP" ; then
  26025. - striplib="$STRIP -x"
  26026. - old_striplib="$STRIP -S"
  26027. - { echo "$as_me:$LINENO: result: yes" >&5
  26028. -echo "${ECHO_T}yes" >&6; }
  26029. - else
  26030. - { echo "$as_me:$LINENO: result: no" >&5
  26031. -echo "${ECHO_T}no" >&6; }
  26032. -fi
  26033. - ;;
  26034. - *)
  26035. - { echo "$as_me:$LINENO: result: no" >&5
  26036. -echo "${ECHO_T}no" >&6; }
  26037. - ;;
  26038. - esac
  26039. -fi
  26040. -
  26041. -if test "x$enable_dlopen" != xyes; then
  26042. - enable_dlopen=unknown
  26043. - enable_dlopen_self=unknown
  26044. - enable_dlopen_self_static=unknown
  26045. -else
  26046. - lt_cv_dlopen=no
  26047. - lt_cv_dlopen_libs=
  26048. -
  26049. - case $host_os in
  26050. - beos*)
  26051. - lt_cv_dlopen="load_add_on"
  26052. - lt_cv_dlopen_libs=
  26053. - lt_cv_dlopen_self=yes
  26054. - ;;
  26055. -
  26056. - mingw* | pw32*)
  26057. - lt_cv_dlopen="LoadLibrary"
  26058. - lt_cv_dlopen_libs=
  26059. - ;;
  26060. -
  26061. - cygwin*)
  26062. - lt_cv_dlopen="dlopen"
  26063. - lt_cv_dlopen_libs=
  26064. - ;;
  26065. -
  26066. - darwin*)
  26067. - # if libdl is installed we need to link against it
  26068. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  26069. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  26070. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  26071. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26072. -else
  26073. - ac_check_lib_save_LIBS=$LIBS
  26074. -LIBS="-ldl $LIBS"
  26075. -cat >conftest.$ac_ext <<_ACEOF
  26076. -/* confdefs.h. */
  26077. -_ACEOF
  26078. -cat confdefs.h >>conftest.$ac_ext
  26079. -cat >>conftest.$ac_ext <<_ACEOF
  26080. -/* end confdefs.h. */
  26081. -
  26082. -/* Override any GCC internal prototype to avoid an error.
  26083. - Use char because int might match the return type of a GCC
  26084. - builtin and then its argument prototype would still apply. */
  26085. -#ifdef __cplusplus
  26086. -extern "C"
  26087. -#endif
  26088. -char dlopen ();
  26089. -int
  26090. -main ()
  26091. -{
  26092. -return dlopen ();
  26093. - ;
  26094. - return 0;
  26095. -}
  26096. -_ACEOF
  26097. -rm -f conftest.$ac_objext conftest$ac_exeext
  26098. -if { (ac_try="$ac_link"
  26099. -case "(($ac_try" in
  26100. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26101. - *) ac_try_echo=$ac_try;;
  26102. -esac
  26103. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26104. - (eval "$ac_link") 2>conftest.er1
  26105. - ac_status=$?
  26106. - grep -v '^ *+' conftest.er1 >conftest.err
  26107. - rm -f conftest.er1
  26108. - cat conftest.err >&5
  26109. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26110. - (exit $ac_status); } && {
  26111. - test -z "$ac_c_werror_flag" ||
  26112. - test ! -s conftest.err
  26113. - } && test -s conftest$ac_exeext &&
  26114. - $as_test_x conftest$ac_exeext; then
  26115. - ac_cv_lib_dl_dlopen=yes
  26116. -else
  26117. - echo "$as_me: failed program was:" >&5
  26118. -sed 's/^/| /' conftest.$ac_ext >&5
  26119. -
  26120. - ac_cv_lib_dl_dlopen=no
  26121. -fi
  26122. -
  26123. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26124. - conftest$ac_exeext conftest.$ac_ext
  26125. -LIBS=$ac_check_lib_save_LIBS
  26126. -fi
  26127. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  26128. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  26129. -if test $ac_cv_lib_dl_dlopen = yes; then
  26130. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  26131. -else
  26132. -
  26133. - lt_cv_dlopen="dyld"
  26134. - lt_cv_dlopen_libs=
  26135. - lt_cv_dlopen_self=yes
  26136. -
  26137. -fi
  26138. -
  26139. - ;;
  26140. -
  26141. - *)
  26142. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  26143. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  26144. -if test "${ac_cv_func_shl_load+set}" = set; then
  26145. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26146. -else
  26147. - cat >conftest.$ac_ext <<_ACEOF
  26148. -/* confdefs.h. */
  26149. -_ACEOF
  26150. -cat confdefs.h >>conftest.$ac_ext
  26151. -cat >>conftest.$ac_ext <<_ACEOF
  26152. -/* end confdefs.h. */
  26153. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  26154. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26155. -#define shl_load innocuous_shl_load
  26156. -
  26157. -/* System header to define __stub macros and hopefully few prototypes,
  26158. - which can conflict with char shl_load (); below.
  26159. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26160. - <limits.h> exists even on freestanding compilers. */
  26161. -
  26162. -#ifdef __STDC__
  26163. -# include <limits.h>
  26164. -#else
  26165. -# include <assert.h>
  26166. -#endif
  26167. -
  26168. -#undef shl_load
  26169. -
  26170. -/* Override any GCC internal prototype to avoid an error.
  26171. - Use char because int might match the return type of a GCC
  26172. - builtin and then its argument prototype would still apply. */
  26173. -#ifdef __cplusplus
  26174. -extern "C"
  26175. -#endif
  26176. -char shl_load ();
  26177. -/* The GNU C library defines this for functions which it implements
  26178. - to always fail with ENOSYS. Some functions are actually named
  26179. - something starting with __ and the normal name is an alias. */
  26180. -#if defined __stub_shl_load || defined __stub___shl_load
  26181. -choke me
  26182. -#endif
  26183. -
  26184. -int
  26185. -main ()
  26186. -{
  26187. -return shl_load ();
  26188. - ;
  26189. - return 0;
  26190. -}
  26191. -_ACEOF
  26192. -rm -f conftest.$ac_objext conftest$ac_exeext
  26193. -if { (ac_try="$ac_link"
  26194. -case "(($ac_try" in
  26195. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26196. - *) ac_try_echo=$ac_try;;
  26197. -esac
  26198. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26199. - (eval "$ac_link") 2>conftest.er1
  26200. - ac_status=$?
  26201. - grep -v '^ *+' conftest.er1 >conftest.err
  26202. - rm -f conftest.er1
  26203. - cat conftest.err >&5
  26204. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26205. - (exit $ac_status); } && {
  26206. - test -z "$ac_c_werror_flag" ||
  26207. - test ! -s conftest.err
  26208. - } && test -s conftest$ac_exeext &&
  26209. - $as_test_x conftest$ac_exeext; then
  26210. - ac_cv_func_shl_load=yes
  26211. -else
  26212. - echo "$as_me: failed program was:" >&5
  26213. -sed 's/^/| /' conftest.$ac_ext >&5
  26214. -
  26215. - ac_cv_func_shl_load=no
  26216. -fi
  26217. -
  26218. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26219. - conftest$ac_exeext conftest.$ac_ext
  26220. -fi
  26221. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  26222. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  26223. -if test $ac_cv_func_shl_load = yes; then
  26224. - lt_cv_dlopen="shl_load"
  26225. -else
  26226. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  26227. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  26228. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  26229. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26230. -else
  26231. - ac_check_lib_save_LIBS=$LIBS
  26232. -LIBS="-ldld $LIBS"
  26233. -cat >conftest.$ac_ext <<_ACEOF
  26234. -/* confdefs.h. */
  26235. -_ACEOF
  26236. -cat confdefs.h >>conftest.$ac_ext
  26237. -cat >>conftest.$ac_ext <<_ACEOF
  26238. -/* end confdefs.h. */
  26239. -
  26240. -/* Override any GCC internal prototype to avoid an error.
  26241. - Use char because int might match the return type of a GCC
  26242. - builtin and then its argument prototype would still apply. */
  26243. -#ifdef __cplusplus
  26244. -extern "C"
  26245. -#endif
  26246. -char shl_load ();
  26247. -int
  26248. -main ()
  26249. -{
  26250. -return shl_load ();
  26251. - ;
  26252. - return 0;
  26253. -}
  26254. -_ACEOF
  26255. -rm -f conftest.$ac_objext conftest$ac_exeext
  26256. -if { (ac_try="$ac_link"
  26257. -case "(($ac_try" in
  26258. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26259. - *) ac_try_echo=$ac_try;;
  26260. -esac
  26261. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26262. - (eval "$ac_link") 2>conftest.er1
  26263. - ac_status=$?
  26264. - grep -v '^ *+' conftest.er1 >conftest.err
  26265. - rm -f conftest.er1
  26266. - cat conftest.err >&5
  26267. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26268. - (exit $ac_status); } && {
  26269. - test -z "$ac_c_werror_flag" ||
  26270. - test ! -s conftest.err
  26271. - } && test -s conftest$ac_exeext &&
  26272. - $as_test_x conftest$ac_exeext; then
  26273. - ac_cv_lib_dld_shl_load=yes
  26274. -else
  26275. - echo "$as_me: failed program was:" >&5
  26276. -sed 's/^/| /' conftest.$ac_ext >&5
  26277. -
  26278. - ac_cv_lib_dld_shl_load=no
  26279. -fi
  26280. -
  26281. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26282. - conftest$ac_exeext conftest.$ac_ext
  26283. -LIBS=$ac_check_lib_save_LIBS
  26284. -fi
  26285. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  26286. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  26287. -if test $ac_cv_lib_dld_shl_load = yes; then
  26288. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  26289. -else
  26290. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  26291. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  26292. -if test "${ac_cv_func_dlopen+set}" = set; then
  26293. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26294. -else
  26295. - cat >conftest.$ac_ext <<_ACEOF
  26296. -/* confdefs.h. */
  26297. -_ACEOF
  26298. -cat confdefs.h >>conftest.$ac_ext
  26299. -cat >>conftest.$ac_ext <<_ACEOF
  26300. -/* end confdefs.h. */
  26301. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  26302. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26303. -#define dlopen innocuous_dlopen
  26304. -
  26305. -/* System header to define __stub macros and hopefully few prototypes,
  26306. - which can conflict with char dlopen (); below.
  26307. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26308. - <limits.h> exists even on freestanding compilers. */
  26309. -
  26310. -#ifdef __STDC__
  26311. -# include <limits.h>
  26312. -#else
  26313. -# include <assert.h>
  26314. -#endif
  26315. -
  26316. -#undef dlopen
  26317. -
  26318. -/* Override any GCC internal prototype to avoid an error.
  26319. - Use char because int might match the return type of a GCC
  26320. - builtin and then its argument prototype would still apply. */
  26321. -#ifdef __cplusplus
  26322. -extern "C"
  26323. -#endif
  26324. -char dlopen ();
  26325. -/* The GNU C library defines this for functions which it implements
  26326. - to always fail with ENOSYS. Some functions are actually named
  26327. - something starting with __ and the normal name is an alias. */
  26328. -#if defined __stub_dlopen || defined __stub___dlopen
  26329. -choke me
  26330. -#endif
  26331. -
  26332. -int
  26333. -main ()
  26334. -{
  26335. -return dlopen ();
  26336. - ;
  26337. - return 0;
  26338. -}
  26339. -_ACEOF
  26340. -rm -f conftest.$ac_objext conftest$ac_exeext
  26341. -if { (ac_try="$ac_link"
  26342. -case "(($ac_try" in
  26343. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26344. - *) ac_try_echo=$ac_try;;
  26345. -esac
  26346. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26347. - (eval "$ac_link") 2>conftest.er1
  26348. - ac_status=$?
  26349. - grep -v '^ *+' conftest.er1 >conftest.err
  26350. - rm -f conftest.er1
  26351. - cat conftest.err >&5
  26352. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26353. - (exit $ac_status); } && {
  26354. - test -z "$ac_c_werror_flag" ||
  26355. - test ! -s conftest.err
  26356. - } && test -s conftest$ac_exeext &&
  26357. - $as_test_x conftest$ac_exeext; then
  26358. - ac_cv_func_dlopen=yes
  26359. -else
  26360. - echo "$as_me: failed program was:" >&5
  26361. -sed 's/^/| /' conftest.$ac_ext >&5
  26362. -
  26363. - ac_cv_func_dlopen=no
  26364. -fi
  26365. -
  26366. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26367. - conftest$ac_exeext conftest.$ac_ext
  26368. -fi
  26369. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  26370. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  26371. -if test $ac_cv_func_dlopen = yes; then
  26372. - lt_cv_dlopen="dlopen"
  26373. -else
  26374. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  26375. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  26376. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  26377. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26378. -else
  26379. - ac_check_lib_save_LIBS=$LIBS
  26380. -LIBS="-ldl $LIBS"
  26381. -cat >conftest.$ac_ext <<_ACEOF
  26382. -/* confdefs.h. */
  26383. -_ACEOF
  26384. -cat confdefs.h >>conftest.$ac_ext
  26385. -cat >>conftest.$ac_ext <<_ACEOF
  26386. -/* end confdefs.h. */
  26387. -
  26388. -/* Override any GCC internal prototype to avoid an error.
  26389. - Use char because int might match the return type of a GCC
  26390. - builtin and then its argument prototype would still apply. */
  26391. -#ifdef __cplusplus
  26392. -extern "C"
  26393. -#endif
  26394. -char dlopen ();
  26395. -int
  26396. -main ()
  26397. -{
  26398. -return dlopen ();
  26399. - ;
  26400. - return 0;
  26401. -}
  26402. -_ACEOF
  26403. -rm -f conftest.$ac_objext conftest$ac_exeext
  26404. -if { (ac_try="$ac_link"
  26405. -case "(($ac_try" in
  26406. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26407. - *) ac_try_echo=$ac_try;;
  26408. -esac
  26409. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26410. - (eval "$ac_link") 2>conftest.er1
  26411. - ac_status=$?
  26412. - grep -v '^ *+' conftest.er1 >conftest.err
  26413. - rm -f conftest.er1
  26414. - cat conftest.err >&5
  26415. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26416. - (exit $ac_status); } && {
  26417. - test -z "$ac_c_werror_flag" ||
  26418. - test ! -s conftest.err
  26419. - } && test -s conftest$ac_exeext &&
  26420. - $as_test_x conftest$ac_exeext; then
  26421. - ac_cv_lib_dl_dlopen=yes
  26422. -else
  26423. - echo "$as_me: failed program was:" >&5
  26424. -sed 's/^/| /' conftest.$ac_ext >&5
  26425. -
  26426. - ac_cv_lib_dl_dlopen=no
  26427. -fi
  26428. -
  26429. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26430. - conftest$ac_exeext conftest.$ac_ext
  26431. -LIBS=$ac_check_lib_save_LIBS
  26432. -fi
  26433. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  26434. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  26435. -if test $ac_cv_lib_dl_dlopen = yes; then
  26436. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  26437. -else
  26438. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  26439. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  26440. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  26441. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26442. -else
  26443. - ac_check_lib_save_LIBS=$LIBS
  26444. -LIBS="-lsvld $LIBS"
  26445. -cat >conftest.$ac_ext <<_ACEOF
  26446. -/* confdefs.h. */
  26447. -_ACEOF
  26448. -cat confdefs.h >>conftest.$ac_ext
  26449. -cat >>conftest.$ac_ext <<_ACEOF
  26450. -/* end confdefs.h. */
  26451. -
  26452. -/* Override any GCC internal prototype to avoid an error.
  26453. - Use char because int might match the return type of a GCC
  26454. - builtin and then its argument prototype would still apply. */
  26455. -#ifdef __cplusplus
  26456. -extern "C"
  26457. -#endif
  26458. -char dlopen ();
  26459. -int
  26460. -main ()
  26461. -{
  26462. -return dlopen ();
  26463. - ;
  26464. - return 0;
  26465. -}
  26466. -_ACEOF
  26467. -rm -f conftest.$ac_objext conftest$ac_exeext
  26468. -if { (ac_try="$ac_link"
  26469. -case "(($ac_try" in
  26470. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26471. - *) ac_try_echo=$ac_try;;
  26472. -esac
  26473. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26474. - (eval "$ac_link") 2>conftest.er1
  26475. - ac_status=$?
  26476. - grep -v '^ *+' conftest.er1 >conftest.err
  26477. - rm -f conftest.er1
  26478. - cat conftest.err >&5
  26479. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26480. - (exit $ac_status); } && {
  26481. - test -z "$ac_c_werror_flag" ||
  26482. - test ! -s conftest.err
  26483. - } && test -s conftest$ac_exeext &&
  26484. - $as_test_x conftest$ac_exeext; then
  26485. - ac_cv_lib_svld_dlopen=yes
  26486. -else
  26487. - echo "$as_me: failed program was:" >&5
  26488. -sed 's/^/| /' conftest.$ac_ext >&5
  26489. -
  26490. - ac_cv_lib_svld_dlopen=no
  26491. -fi
  26492. -
  26493. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26494. - conftest$ac_exeext conftest.$ac_ext
  26495. -LIBS=$ac_check_lib_save_LIBS
  26496. -fi
  26497. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  26498. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  26499. -if test $ac_cv_lib_svld_dlopen = yes; then
  26500. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  26501. -else
  26502. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  26503. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  26504. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  26505. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26506. -else
  26507. - ac_check_lib_save_LIBS=$LIBS
  26508. -LIBS="-ldld $LIBS"
  26509. -cat >conftest.$ac_ext <<_ACEOF
  26510. -/* confdefs.h. */
  26511. -_ACEOF
  26512. -cat confdefs.h >>conftest.$ac_ext
  26513. -cat >>conftest.$ac_ext <<_ACEOF
  26514. -/* end confdefs.h. */
  26515. -
  26516. -/* Override any GCC internal prototype to avoid an error.
  26517. - Use char because int might match the return type of a GCC
  26518. - builtin and then its argument prototype would still apply. */
  26519. -#ifdef __cplusplus
  26520. -extern "C"
  26521. -#endif
  26522. -char dld_link ();
  26523. -int
  26524. -main ()
  26525. -{
  26526. -return dld_link ();
  26527. - ;
  26528. - return 0;
  26529. -}
  26530. -_ACEOF
  26531. -rm -f conftest.$ac_objext conftest$ac_exeext
  26532. -if { (ac_try="$ac_link"
  26533. -case "(($ac_try" in
  26534. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26535. - *) ac_try_echo=$ac_try;;
  26536. -esac
  26537. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26538. - (eval "$ac_link") 2>conftest.er1
  26539. - ac_status=$?
  26540. - grep -v '^ *+' conftest.er1 >conftest.err
  26541. - rm -f conftest.er1
  26542. - cat conftest.err >&5
  26543. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26544. - (exit $ac_status); } && {
  26545. - test -z "$ac_c_werror_flag" ||
  26546. - test ! -s conftest.err
  26547. - } && test -s conftest$ac_exeext &&
  26548. - $as_test_x conftest$ac_exeext; then
  26549. - ac_cv_lib_dld_dld_link=yes
  26550. -else
  26551. - echo "$as_me: failed program was:" >&5
  26552. -sed 's/^/| /' conftest.$ac_ext >&5
  26553. -
  26554. - ac_cv_lib_dld_dld_link=no
  26555. -fi
  26556. -
  26557. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26558. - conftest$ac_exeext conftest.$ac_ext
  26559. -LIBS=$ac_check_lib_save_LIBS
  26560. -fi
  26561. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  26562. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  26563. -if test $ac_cv_lib_dld_dld_link = yes; then
  26564. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  26565. -fi
  26566. -
  26567. -
  26568. -fi
  26569. -
  26570. -
  26571. -fi
  26572. -
  26573. -
  26574. -fi
  26575. -
  26576. -
  26577. -fi
  26578. -
  26579. -
  26580. -fi
  26581. -
  26582. - ;;
  26583. - esac
  26584. -
  26585. - if test "x$lt_cv_dlopen" != xno; then
  26586. - enable_dlopen=yes
  26587. - else
  26588. - enable_dlopen=no
  26589. - fi
  26590. -
  26591. - case $lt_cv_dlopen in
  26592. - dlopen)
  26593. - save_CPPFLAGS="$CPPFLAGS"
  26594. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  26595. -
  26596. - save_LDFLAGS="$LDFLAGS"
  26597. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  26598. -
  26599. - save_LIBS="$LIBS"
  26600. - LIBS="$lt_cv_dlopen_libs $LIBS"
  26601. -
  26602. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  26603. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  26604. -if test "${lt_cv_dlopen_self+set}" = set; then
  26605. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26606. -else
  26607. - if test "$cross_compiling" = yes; then :
  26608. - lt_cv_dlopen_self=cross
  26609. -else
  26610. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  26611. - lt_status=$lt_dlunknown
  26612. - cat > conftest.$ac_ext <<EOF
  26613. -#line 10454 "configure"
  26614. -#include "confdefs.h"
  26615. -
  26616. -#if HAVE_DLFCN_H
  26617. -#include <dlfcn.h>
  26618. -#endif
  26619. -
  26620. -#include <stdio.h>
  26621. -
  26622. -#ifdef RTLD_GLOBAL
  26623. -# define LT_DLGLOBAL RTLD_GLOBAL
  26624. -#else
  26625. -# ifdef DL_GLOBAL
  26626. -# define LT_DLGLOBAL DL_GLOBAL
  26627. -# else
  26628. -# define LT_DLGLOBAL 0
  26629. -# endif
  26630. -#endif
  26631. -
  26632. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  26633. - find out it does not work in some platform. */
  26634. -#ifndef LT_DLLAZY_OR_NOW
  26635. -# ifdef RTLD_LAZY
  26636. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  26637. -# else
  26638. -# ifdef DL_LAZY
  26639. -# define LT_DLLAZY_OR_NOW DL_LAZY
  26640. -# else
  26641. -# ifdef RTLD_NOW
  26642. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  26643. -# else
  26644. -# ifdef DL_NOW
  26645. -# define LT_DLLAZY_OR_NOW DL_NOW
  26646. -# else
  26647. -# define LT_DLLAZY_OR_NOW 0
  26648. -# endif
  26649. -# endif
  26650. -# endif
  26651. -# endif
  26652. -#endif
  26653. -
  26654. -#ifdef __cplusplus
  26655. -extern "C" void exit (int);
  26656. -#endif
  26657. -
  26658. -void fnord() { int i=42;}
  26659. -int main ()
  26660. -{
  26661. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  26662. - int status = $lt_dlunknown;
  26663. -
  26664. - if (self)
  26665. - {
  26666. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  26667. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  26668. - /* dlclose (self); */
  26669. - }
  26670. - else
  26671. - puts (dlerror ());
  26672. -
  26673. - exit (status);
  26674. -}
  26675. -EOF
  26676. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26677. - (eval $ac_link) 2>&5
  26678. - ac_status=$?
  26679. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26680. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  26681. - (./conftest; exit; ) >&5 2>/dev/null
  26682. - lt_status=$?
  26683. - case x$lt_status in
  26684. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  26685. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  26686. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  26687. - esac
  26688. - else :
  26689. - # compilation failed
  26690. - lt_cv_dlopen_self=no
  26691. - fi
  26692. -fi
  26693. -rm -fr conftest*
  26694. -
  26695. -
  26696. -fi
  26697. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  26698. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  26699. -
  26700. - if test "x$lt_cv_dlopen_self" = xyes; then
  26701. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  26702. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  26703. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  26704. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  26705. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26706. -else
  26707. - if test "$cross_compiling" = yes; then :
  26708. - lt_cv_dlopen_self_static=cross
  26709. -else
  26710. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  26711. - lt_status=$lt_dlunknown
  26712. - cat > conftest.$ac_ext <<EOF
  26713. -#line 10554 "configure"
  26714. -#include "confdefs.h"
  26715. -
  26716. -#if HAVE_DLFCN_H
  26717. -#include <dlfcn.h>
  26718. -#endif
  26719. -
  26720. -#include <stdio.h>
  26721. -
  26722. -#ifdef RTLD_GLOBAL
  26723. -# define LT_DLGLOBAL RTLD_GLOBAL
  26724. -#else
  26725. -# ifdef DL_GLOBAL
  26726. -# define LT_DLGLOBAL DL_GLOBAL
  26727. -# else
  26728. -# define LT_DLGLOBAL 0
  26729. -# endif
  26730. -#endif
  26731. -
  26732. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  26733. - find out it does not work in some platform. */
  26734. -#ifndef LT_DLLAZY_OR_NOW
  26735. -# ifdef RTLD_LAZY
  26736. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  26737. -# else
  26738. -# ifdef DL_LAZY
  26739. -# define LT_DLLAZY_OR_NOW DL_LAZY
  26740. -# else
  26741. -# ifdef RTLD_NOW
  26742. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  26743. -# else
  26744. -# ifdef DL_NOW
  26745. -# define LT_DLLAZY_OR_NOW DL_NOW
  26746. -# else
  26747. -# define LT_DLLAZY_OR_NOW 0
  26748. -# endif
  26749. -# endif
  26750. -# endif
  26751. -# endif
  26752. -#endif
  26753. -
  26754. -#ifdef __cplusplus
  26755. -extern "C" void exit (int);
  26756. -#endif
  26757. -
  26758. -void fnord() { int i=42;}
  26759. -int main ()
  26760. -{
  26761. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  26762. - int status = $lt_dlunknown;
  26763. -
  26764. - if (self)
  26765. - {
  26766. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  26767. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  26768. - /* dlclose (self); */
  26769. - }
  26770. - else
  26771. - puts (dlerror ());
  26772. -
  26773. - exit (status);
  26774. -}
  26775. -EOF
  26776. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26777. - (eval $ac_link) 2>&5
  26778. - ac_status=$?
  26779. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26780. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  26781. - (./conftest; exit; ) >&5 2>/dev/null
  26782. - lt_status=$?
  26783. - case x$lt_status in
  26784. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  26785. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  26786. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  26787. - esac
  26788. - else :
  26789. - # compilation failed
  26790. - lt_cv_dlopen_self_static=no
  26791. - fi
  26792. -fi
  26793. -rm -fr conftest*
  26794. -
  26795. -
  26796. -fi
  26797. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  26798. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  26799. - fi
  26800. -
  26801. - CPPFLAGS="$save_CPPFLAGS"
  26802. - LDFLAGS="$save_LDFLAGS"
  26803. - LIBS="$save_LIBS"
  26804. - ;;
  26805. - esac
  26806. -
  26807. - case $lt_cv_dlopen_self in
  26808. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  26809. - *) enable_dlopen_self=unknown ;;
  26810. - esac
  26811. -
  26812. - case $lt_cv_dlopen_self_static in
  26813. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  26814. - *) enable_dlopen_self_static=unknown ;;
  26815. - esac
  26816. -fi
  26817. -
  26818. -
  26819. -# Report which library types will actually be built
  26820. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  26821. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  26822. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  26823. -echo "${ECHO_T}$can_build_shared" >&6; }
  26824. -
  26825. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  26826. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  26827. -test "$can_build_shared" = "no" && enable_shared=no
  26828. -
  26829. -# On AIX, shared libraries and static libraries use the same namespace, and
  26830. -# are all built from PIC.
  26831. -case $host_os in
  26832. -aix3*)
  26833. - test "$enable_shared" = yes && enable_static=no
  26834. - if test -n "$RANLIB"; then
  26835. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  26836. - postinstall_cmds='$RANLIB $lib'
  26837. - fi
  26838. - ;;
  26839. -
  26840. -aix[4-9]*)
  26841. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  26842. - test "$enable_shared" = yes && enable_static=no
  26843. - fi
  26844. - ;;
  26845. -esac
  26846. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  26847. -echo "${ECHO_T}$enable_shared" >&6; }
  26848. -
  26849. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  26850. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  26851. -# Make sure either enable_shared or enable_static is yes.
  26852. -test "$enable_shared" = yes || enable_static=yes
  26853. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  26854. -echo "${ECHO_T}$enable_static" >&6; }
  26855. -
  26856. -# The else clause should only fire when bootstrapping the
  26857. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  26858. -# with your package, and you will get complaints that there are
  26859. -# no rules to generate ltmain.sh.
  26860. -if test -f "$ltmain"; then
  26861. - # See if we are running on zsh, and set the options which allow our commands through
  26862. - # without removal of \ escapes.
  26863. - if test -n "${ZSH_VERSION+set}" ; then
  26864. - setopt NO_GLOB_SUBST
  26865. - fi
  26866. - # Now quote all the things that may contain metacharacters while being
  26867. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  26868. - # variables and quote the copies for generation of the libtool script.
  26869. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  26870. - SED SHELL STRIP \
  26871. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  26872. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  26873. - deplibs_check_method reload_flag reload_cmds need_locks \
  26874. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  26875. - lt_cv_sys_global_symbol_to_c_name_address \
  26876. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  26877. - old_postinstall_cmds old_postuninstall_cmds \
  26878. - compiler \
  26879. - CC \
  26880. - LD \
  26881. - lt_prog_compiler_wl \
  26882. - lt_prog_compiler_pic \
  26883. - lt_prog_compiler_static \
  26884. - lt_prog_compiler_no_builtin_flag \
  26885. - export_dynamic_flag_spec \
  26886. - thread_safe_flag_spec \
  26887. - whole_archive_flag_spec \
  26888. - enable_shared_with_static_runtimes \
  26889. - old_archive_cmds \
  26890. - old_archive_from_new_cmds \
  26891. - predep_objects \
  26892. - postdep_objects \
  26893. - predeps \
  26894. - postdeps \
  26895. - compiler_lib_search_path \
  26896. - compiler_lib_search_dirs \
  26897. - archive_cmds \
  26898. - archive_expsym_cmds \
  26899. - postinstall_cmds \
  26900. - postuninstall_cmds \
  26901. - old_archive_from_expsyms_cmds \
  26902. - allow_undefined_flag \
  26903. - no_undefined_flag \
  26904. - export_symbols_cmds \
  26905. - hardcode_libdir_flag_spec \
  26906. - hardcode_libdir_flag_spec_ld \
  26907. - hardcode_libdir_separator \
  26908. - hardcode_automatic \
  26909. - module_cmds \
  26910. - module_expsym_cmds \
  26911. - lt_cv_prog_compiler_c_o \
  26912. - fix_srcfile_path \
  26913. - exclude_expsyms \
  26914. - include_expsyms; do
  26915. -
  26916. - case $var in
  26917. - old_archive_cmds | \
  26918. - old_archive_from_new_cmds | \
  26919. - archive_cmds | \
  26920. - archive_expsym_cmds | \
  26921. - module_cmds | \
  26922. - module_expsym_cmds | \
  26923. - old_archive_from_expsyms_cmds | \
  26924. - export_symbols_cmds | \
  26925. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  26926. - postinstall_cmds | postuninstall_cmds | \
  26927. - old_postinstall_cmds | old_postuninstall_cmds | \
  26928. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  26929. - # Double-quote double-evaled strings.
  26930. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  26931. - ;;
  26932. - *)
  26933. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  26934. - ;;
  26935. - esac
  26936. - done
  26937. -
  26938. - case $lt_echo in
  26939. - *'\$0 --fallback-echo"')
  26940. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  26941. - ;;
  26942. - esac
  26943. -
  26944. -cfgfile="${ofile}T"
  26945. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  26946. - $rm -f "$cfgfile"
  26947. - { echo "$as_me:$LINENO: creating $ofile" >&5
  26948. -echo "$as_me: creating $ofile" >&6;}
  26949. -
  26950. - cat <<__EOF__ >> "$cfgfile"
  26951. -#! $SHELL
  26952. -
  26953. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  26954. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  26955. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26956. -#
  26957. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  26958. -# Free Software Foundation, Inc.
  26959. -#
  26960. -# This file is part of GNU Libtool:
  26961. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  26962. -#
  26963. -# This program is free software; you can redistribute it and/or modify
  26964. -# it under the terms of the GNU General Public License as published by
  26965. -# the Free Software Foundation; either version 2 of the License, or
  26966. -# (at your option) any later version.
  26967. -#
  26968. -# This program is distributed in the hope that it will be useful, but
  26969. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  26970. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26971. -# General Public License for more details.
  26972. -#
  26973. -# You should have received a copy of the GNU General Public License
  26974. -# along with this program; if not, write to the Free Software
  26975. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  26976. -#
  26977. -# As a special exception to the GNU General Public License, if you
  26978. -# distribute this file as part of a program that contains a
  26979. -# configuration script generated by Autoconf, you may include it under
  26980. -# the same distribution terms that you use for the rest of that program.
  26981. -
  26982. -# A sed program that does not truncate output.
  26983. -SED=$lt_SED
  26984. -
  26985. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26986. -Xsed="$SED -e 1s/^X//"
  26987. -
  26988. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  26989. -# if CDPATH is set.
  26990. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26991. -
  26992. -# The names of the tagged configurations supported by this script.
  26993. -available_tags=
  26994. -
  26995. -# ### BEGIN LIBTOOL CONFIG
  26996. -
  26997. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26998. -
  26999. -# Shell to use when invoking shell scripts.
  27000. -SHELL=$lt_SHELL
  27001. -
  27002. -# Whether or not to build shared libraries.
  27003. -build_libtool_libs=$enable_shared
  27004. -
  27005. -# Whether or not to build static libraries.
  27006. -build_old_libs=$enable_static
  27007. -
  27008. -# Whether or not to add -lc for building shared libraries.
  27009. -build_libtool_need_lc=$archive_cmds_need_lc
  27010. -
  27011. -# Whether or not to disallow shared libs when runtime libs are static
  27012. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27013. -
  27014. -# Whether or not to optimize for fast installation.
  27015. -fast_install=$enable_fast_install
  27016. -
  27017. -# The host system.
  27018. -host_alias=$host_alias
  27019. -host=$host
  27020. -host_os=$host_os
  27021. -
  27022. -# The build system.
  27023. -build_alias=$build_alias
  27024. -build=$build
  27025. -build_os=$build_os
  27026. -
  27027. -# An echo program that does not interpret backslashes.
  27028. -echo=$lt_echo
  27029. -
  27030. -# The archiver.
  27031. -AR=$lt_AR
  27032. -AR_FLAGS=$lt_AR_FLAGS
  27033. -
  27034. -# A C compiler.
  27035. -LTCC=$lt_LTCC
  27036. -
  27037. -# LTCC compiler flags.
  27038. -LTCFLAGS=$lt_LTCFLAGS
  27039. -
  27040. -# A language-specific compiler.
  27041. -CC=$lt_compiler
  27042. -
  27043. -# Is the compiler the GNU C compiler?
  27044. -with_gcc=$GCC
  27045. -
  27046. -# An ERE matcher.
  27047. -EGREP=$lt_EGREP
  27048. -
  27049. -# The linker used to build libraries.
  27050. -LD=$lt_LD
  27051. -
  27052. -# Whether we need hard or soft links.
  27053. -LN_S=$lt_LN_S
  27054. -
  27055. -# A BSD-compatible nm program.
  27056. -NM=$lt_NM
  27057. -
  27058. -# A symbol stripping program
  27059. -STRIP=$lt_STRIP
  27060. -
  27061. -# Used to examine libraries when file_magic_cmd begins "file"
  27062. -MAGIC_CMD=$MAGIC_CMD
  27063. -
  27064. -# Used on cygwin: DLL creation program.
  27065. -DLLTOOL="$DLLTOOL"
  27066. -
  27067. -# Used on cygwin: object dumper.
  27068. -OBJDUMP="$OBJDUMP"
  27069. -
  27070. -# Used on cygwin: assembler.
  27071. -AS="$AS"
  27072. -
  27073. -# The name of the directory that contains temporary libtool files.
  27074. -objdir=$objdir
  27075. -
  27076. -# How to create reloadable object files.
  27077. -reload_flag=$lt_reload_flag
  27078. -reload_cmds=$lt_reload_cmds
  27079. -
  27080. -# How to pass a linker flag through the compiler.
  27081. -wl=$lt_lt_prog_compiler_wl
  27082. -
  27083. -# Object file suffix (normally "o").
  27084. -objext="$ac_objext"
  27085. -
  27086. -# Old archive suffix (normally "a").
  27087. -libext="$libext"
  27088. -
  27089. -# Shared library suffix (normally ".so").
  27090. -shrext_cmds='$shrext_cmds'
  27091. -
  27092. -# Executable file suffix (normally "").
  27093. -exeext="$exeext"
  27094. -
  27095. -# Additional compiler flags for building library objects.
  27096. -pic_flag=$lt_lt_prog_compiler_pic
  27097. -pic_mode=$pic_mode
  27098. -
  27099. -# What is the maximum length of a command?
  27100. -max_cmd_len=$lt_cv_sys_max_cmd_len
  27101. -
  27102. -# Does compiler simultaneously support -c and -o options?
  27103. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27104. -
  27105. -# Must we lock files when doing compilation?
  27106. -need_locks=$lt_need_locks
  27107. -
  27108. -# Do we need the lib prefix for modules?
  27109. -need_lib_prefix=$need_lib_prefix
  27110. -
  27111. -# Do we need a version for libraries?
  27112. -need_version=$need_version
  27113. -
  27114. -# Whether dlopen is supported.
  27115. -dlopen_support=$enable_dlopen
  27116. -
  27117. -# Whether dlopen of programs is supported.
  27118. -dlopen_self=$enable_dlopen_self
  27119. -
  27120. -# Whether dlopen of statically linked programs is supported.
  27121. -dlopen_self_static=$enable_dlopen_self_static
  27122. -
  27123. -# Compiler flag to prevent dynamic linking.
  27124. -link_static_flag=$lt_lt_prog_compiler_static
  27125. -
  27126. -# Compiler flag to turn off builtin functions.
  27127. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27128. -
  27129. -# Compiler flag to allow reflexive dlopens.
  27130. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27131. -
  27132. -# Compiler flag to generate shared objects directly from archives.
  27133. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27134. -
  27135. -# Compiler flag to generate thread-safe objects.
  27136. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  27137. -
  27138. -# Library versioning type.
  27139. -version_type=$version_type
  27140. -
  27141. -# Format of library name prefix.
  27142. -libname_spec=$lt_libname_spec
  27143. -
  27144. -# List of archive names. First name is the real one, the rest are links.
  27145. -# The last name is the one that the linker finds with -lNAME.
  27146. -library_names_spec=$lt_library_names_spec
  27147. -
  27148. -# The coded name of the library, if different from the real name.
  27149. -soname_spec=$lt_soname_spec
  27150. -
  27151. -# Commands used to build and install an old-style archive.
  27152. -RANLIB=$lt_RANLIB
  27153. -old_archive_cmds=$lt_old_archive_cmds
  27154. -old_postinstall_cmds=$lt_old_postinstall_cmds
  27155. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27156. -
  27157. -# Create an old-style archive from a shared archive.
  27158. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27159. -
  27160. -# Create a temporary old-style archive to link instead of a shared archive.
  27161. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27162. -
  27163. -# Commands used to build and install a shared archive.
  27164. -archive_cmds=$lt_archive_cmds
  27165. -archive_expsym_cmds=$lt_archive_expsym_cmds
  27166. -postinstall_cmds=$lt_postinstall_cmds
  27167. -postuninstall_cmds=$lt_postuninstall_cmds
  27168. -
  27169. -# Commands used to build a loadable module (assumed same as above if empty)
  27170. -module_cmds=$lt_module_cmds
  27171. -module_expsym_cmds=$lt_module_expsym_cmds
  27172. -
  27173. -# Commands to strip libraries.
  27174. -old_striplib=$lt_old_striplib
  27175. -striplib=$lt_striplib
  27176. -
  27177. -# Dependencies to place before the objects being linked to create a
  27178. -# shared library.
  27179. -predep_objects=$lt_predep_objects
  27180. -
  27181. -# Dependencies to place after the objects being linked to create a
  27182. -# shared library.
  27183. -postdep_objects=$lt_postdep_objects
  27184. -
  27185. -# Dependencies to place before the objects being linked to create a
  27186. -# shared library.
  27187. -predeps=$lt_predeps
  27188. -
  27189. -# Dependencies to place after the objects being linked to create a
  27190. -# shared library.
  27191. -postdeps=$lt_postdeps
  27192. -
  27193. -# The directories searched by this compiler when creating a shared
  27194. -# library
  27195. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27196. -
  27197. -# The library search path used internally by the compiler when linking
  27198. -# a shared library.
  27199. -compiler_lib_search_path=$lt_compiler_lib_search_path
  27200. -
  27201. -# Method to check whether dependent libraries are shared objects.
  27202. -deplibs_check_method=$lt_deplibs_check_method
  27203. -
  27204. -# Command to use when deplibs_check_method == file_magic.
  27205. -file_magic_cmd=$lt_file_magic_cmd
  27206. -
  27207. -# Flag that allows shared libraries with undefined symbols to be built.
  27208. -allow_undefined_flag=$lt_allow_undefined_flag
  27209. -
  27210. -# Flag that forces no undefined symbols.
  27211. -no_undefined_flag=$lt_no_undefined_flag
  27212. -
  27213. -# Commands used to finish a libtool library installation in a directory.
  27214. -finish_cmds=$lt_finish_cmds
  27215. -
  27216. -# Same as above, but a single script fragment to be evaled but not shown.
  27217. -finish_eval=$lt_finish_eval
  27218. -
  27219. -# Take the output of nm and produce a listing of raw symbols and C names.
  27220. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27221. -
  27222. -# Transform the output of nm in a proper C declaration
  27223. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27224. -
  27225. -# Transform the output of nm in a C name address pair
  27226. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27227. -
  27228. -# This is the shared library runtime path variable.
  27229. -runpath_var=$runpath_var
  27230. -
  27231. -# This is the shared library path variable.
  27232. -shlibpath_var=$shlibpath_var
  27233. -
  27234. -# Is shlibpath searched before the hard-coded library search path?
  27235. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27236. -
  27237. -# How to hardcode a shared library path into an executable.
  27238. -hardcode_action=$hardcode_action
  27239. -
  27240. -# Whether we should hardcode library paths into libraries.
  27241. -hardcode_into_libs=$hardcode_into_libs
  27242. -
  27243. -# Flag to hardcode \$libdir into a binary during linking.
  27244. -# This must work even if \$libdir does not exist.
  27245. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27246. -
  27247. -# If ld is used when linking, flag to hardcode \$libdir into
  27248. -# a binary during linking. This must work even if \$libdir does
  27249. -# not exist.
  27250. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  27251. -
  27252. -# Whether we need a single -rpath flag with a separated argument.
  27253. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27254. -
  27255. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  27256. -# resulting binary.
  27257. -hardcode_direct=$hardcode_direct
  27258. -
  27259. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  27260. -# resulting binary.
  27261. -hardcode_minus_L=$hardcode_minus_L
  27262. -
  27263. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  27264. -# the resulting binary.
  27265. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  27266. -
  27267. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  27268. -# and all subsequent libraries and executables linked against it.
  27269. -hardcode_automatic=$hardcode_automatic
  27270. -
  27271. -# Variables whose values should be saved in libtool wrapper scripts and
  27272. -# restored at relink time.
  27273. -variables_saved_for_relink="$variables_saved_for_relink"
  27274. -
  27275. -# Whether libtool must link a program against all its dependency libraries.
  27276. -link_all_deplibs=$link_all_deplibs
  27277. -
  27278. -# Compile-time system search path for libraries
  27279. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27280. -
  27281. -# Run-time system search path for libraries
  27282. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  27283. -
  27284. -# Fix the shell variable \$srcfile for the compiler.
  27285. -fix_srcfile_path=$lt_fix_srcfile_path
  27286. -
  27287. -# Set to yes if exported symbols are required.
  27288. -always_export_symbols=$always_export_symbols
  27289. -
  27290. -# The commands to list exported symbols.
  27291. -export_symbols_cmds=$lt_export_symbols_cmds
  27292. -
  27293. -# The commands to extract the exported symbol list from a shared archive.
  27294. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27295. -
  27296. -# Symbols that should not be listed in the preloaded symbols.
  27297. -exclude_expsyms=$lt_exclude_expsyms
  27298. -
  27299. -# Symbols that must always be exported.
  27300. -include_expsyms=$lt_include_expsyms
  27301. -
  27302. -# ### END LIBTOOL CONFIG
  27303. -
  27304. -__EOF__
  27305. -
  27306. -
  27307. - case $host_os in
  27308. - aix3*)
  27309. - cat <<\EOF >> "$cfgfile"
  27310. -
  27311. -# AIX sometimes has problems with the GCC collect2 program. For some
  27312. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  27313. -# vanish in a puff of smoke.
  27314. -if test "X${COLLECT_NAMES+set}" != Xset; then
  27315. - COLLECT_NAMES=
  27316. - export COLLECT_NAMES
  27317. -fi
  27318. -EOF
  27319. - ;;
  27320. - esac
  27321. -
  27322. - # We use sed instead of cat because bash on DJGPP gets confused if
  27323. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27324. - # text mode, it properly converts lines to CR/LF. This bash problem
  27325. - # is reportedly fixed, but why not run on old versions too?
  27326. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  27327. -
  27328. - mv -f "$cfgfile" "$ofile" || \
  27329. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27330. - chmod +x "$ofile"
  27331. -
  27332. -else
  27333. - # If there is no Makefile yet, we rely on a make rule to execute
  27334. - # `config.status --recheck' to rerun these tests and create the
  27335. - # libtool script then.
  27336. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  27337. - if test -f "$ltmain_in"; then
  27338. - test -f Makefile && make "$ltmain"
  27339. - fi
  27340. -fi
  27341. -
  27342. -
  27343. -ac_ext=c
  27344. -ac_cpp='$CPP $CPPFLAGS'
  27345. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27346. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27347. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27348. -
  27349. -CC="$lt_save_CC"
  27350. -
  27351. -
  27352. -# Check whether --with-tags was given.
  27353. -if test "${with_tags+set}" = set; then
  27354. - withval=$with_tags; tagnames="$withval"
  27355. -fi
  27356. -
  27357. -
  27358. -if test -f "$ltmain" && test -n "$tagnames"; then
  27359. - if test ! -f "${ofile}"; then
  27360. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  27361. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  27362. - fi
  27363. -
  27364. - if test -z "$LTCC"; then
  27365. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  27366. - if test -z "$LTCC"; then
  27367. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  27368. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  27369. - else
  27370. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  27371. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  27372. - fi
  27373. - fi
  27374. - if test -z "$LTCFLAGS"; then
  27375. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  27376. - fi
  27377. -
  27378. - # Extract list of available tagged configurations in $ofile.
  27379. - # Note that this assumes the entire list is on one line.
  27380. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  27381. -
  27382. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27383. - for tagname in $tagnames; do
  27384. - IFS="$lt_save_ifs"
  27385. - # Check whether tagname contains only valid characters
  27386. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  27387. - "") ;;
  27388. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  27389. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  27390. - { (exit 1); exit 1; }; }
  27391. - ;;
  27392. - esac
  27393. -
  27394. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  27395. - then
  27396. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  27397. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  27398. - { (exit 1); exit 1; }; }
  27399. - fi
  27400. -
  27401. - # Update the list of available tags.
  27402. - if test -n "$tagname"; then
  27403. - echo appending configuration tag \"$tagname\" to $ofile
  27404. -
  27405. - case $tagname in
  27406. - CXX)
  27407. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  27408. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  27409. - (test "X$CXX" != "Xg++"))) ; then
  27410. - ac_ext=cpp
  27411. -ac_cpp='$CXXCPP $CPPFLAGS'
  27412. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27413. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27414. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27415. -
  27416. -
  27417. -
  27418. -
  27419. -archive_cmds_need_lc_CXX=no
  27420. -allow_undefined_flag_CXX=
  27421. -always_export_symbols_CXX=no
  27422. -archive_expsym_cmds_CXX=
  27423. -export_dynamic_flag_spec_CXX=
  27424. -hardcode_direct_CXX=no
  27425. -hardcode_libdir_flag_spec_CXX=
  27426. -hardcode_libdir_flag_spec_ld_CXX=
  27427. -hardcode_libdir_separator_CXX=
  27428. -hardcode_minus_L_CXX=no
  27429. -hardcode_shlibpath_var_CXX=unsupported
  27430. -hardcode_automatic_CXX=no
  27431. -module_cmds_CXX=
  27432. -module_expsym_cmds_CXX=
  27433. -link_all_deplibs_CXX=unknown
  27434. -old_archive_cmds_CXX=$old_archive_cmds
  27435. -no_undefined_flag_CXX=
  27436. -whole_archive_flag_spec_CXX=
  27437. -enable_shared_with_static_runtimes_CXX=no
  27438. -
  27439. -# Dependencies to place before and after the object being linked:
  27440. -predep_objects_CXX=
  27441. -postdep_objects_CXX=
  27442. -predeps_CXX=
  27443. -postdeps_CXX=
  27444. -compiler_lib_search_path_CXX=
  27445. -compiler_lib_search_dirs_CXX=
  27446. -
  27447. -# Source file extension for C++ test sources.
  27448. -ac_ext=cpp
  27449. -
  27450. -# Object file extension for compiled C++ test sources.
  27451. -objext=o
  27452. -objext_CXX=$objext
  27453. -
  27454. -# Code to be used in simple compile tests
  27455. -lt_simple_compile_test_code="int some_variable = 0;"
  27456. -
  27457. -# Code to be used in simple link tests
  27458. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  27459. -
  27460. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  27461. -
  27462. -# If no C compiler was specified, use CC.
  27463. -LTCC=${LTCC-"$CC"}
  27464. -
  27465. -# If no C compiler flags were specified, use CFLAGS.
  27466. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27467. -
  27468. -# Allow CC to be a program name with arguments.
  27469. -compiler=$CC
  27470. -
  27471. -
  27472. -# save warnings/boilerplate of simple test code
  27473. -ac_outfile=conftest.$ac_objext
  27474. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  27475. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27476. -_lt_compiler_boilerplate=`cat conftest.err`
  27477. -$rm conftest*
  27478. -
  27479. -ac_outfile=conftest.$ac_objext
  27480. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  27481. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27482. -_lt_linker_boilerplate=`cat conftest.err`
  27483. -$rm -r conftest*
  27484. -
  27485. -
  27486. -# Allow CC to be a program name with arguments.
  27487. -lt_save_CC=$CC
  27488. -lt_save_LD=$LD
  27489. -lt_save_GCC=$GCC
  27490. -GCC=$GXX
  27491. -lt_save_with_gnu_ld=$with_gnu_ld
  27492. -lt_save_path_LD=$lt_cv_path_LD
  27493. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  27494. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  27495. -else
  27496. - $as_unset lt_cv_prog_gnu_ld
  27497. -fi
  27498. -if test -n "${lt_cv_path_LDCXX+set}"; then
  27499. - lt_cv_path_LD=$lt_cv_path_LDCXX
  27500. -else
  27501. - $as_unset lt_cv_path_LD
  27502. -fi
  27503. -test -z "${LDCXX+set}" || LD=$LDCXX
  27504. -CC=${CXX-"c++"}
  27505. -compiler=$CC
  27506. -compiler_CXX=$CC
  27507. -for cc_temp in $compiler""; do
  27508. - case $cc_temp in
  27509. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27510. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27511. - \-*) ;;
  27512. - *) break;;
  27513. - esac
  27514. -done
  27515. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27516. -
  27517. -
  27518. -# We don't want -fno-exception wen compiling C++ code, so set the
  27519. -# no_builtin_flag separately
  27520. -if test "$GXX" = yes; then
  27521. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  27522. -else
  27523. - lt_prog_compiler_no_builtin_flag_CXX=
  27524. -fi
  27525. -
  27526. -if test "$GXX" = yes; then
  27527. - # Set up default GNU C++ configuration
  27528. -
  27529. -
  27530. -# Check whether --with-gnu-ld was given.
  27531. -if test "${with_gnu_ld+set}" = set; then
  27532. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  27533. -else
  27534. - with_gnu_ld=no
  27535. -fi
  27536. -
  27537. -ac_prog=ld
  27538. -if test "$GCC" = yes; then
  27539. - # Check if gcc -print-prog-name=ld gives a path.
  27540. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  27541. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  27542. - case $host in
  27543. - *-*-mingw*)
  27544. - # gcc leaves a trailing carriage return which upsets mingw
  27545. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  27546. - *)
  27547. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  27548. - esac
  27549. - case $ac_prog in
  27550. - # Accept absolute paths.
  27551. - [\\/]* | ?:[\\/]*)
  27552. - re_direlt='/[^/][^/]*/\.\./'
  27553. - # Canonicalize the pathname of ld
  27554. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  27555. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  27556. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  27557. - done
  27558. - test -z "$LD" && LD="$ac_prog"
  27559. - ;;
  27560. - "")
  27561. - # If it fails, then pretend we aren't using GCC.
  27562. - ac_prog=ld
  27563. - ;;
  27564. - *)
  27565. - # If it is relative, then search for the first ld in PATH.
  27566. - with_gnu_ld=unknown
  27567. - ;;
  27568. - esac
  27569. -elif test "$with_gnu_ld" = yes; then
  27570. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  27571. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  27572. -else
  27573. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  27574. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  27575. -fi
  27576. -if test "${lt_cv_path_LD+set}" = set; then
  27577. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27578. -else
  27579. - if test -z "$LD"; then
  27580. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27581. - for ac_dir in $PATH; do
  27582. - IFS="$lt_save_ifs"
  27583. - test -z "$ac_dir" && ac_dir=.
  27584. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  27585. - lt_cv_path_LD="$ac_dir/$ac_prog"
  27586. - # Check to see if the program is GNU ld. I'd rather use --version,
  27587. - # but apparently some variants of GNU ld only accept -v.
  27588. - # Break only if it was the GNU/non-GNU ld that we prefer.
  27589. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  27590. - *GNU* | *'with BFD'*)
  27591. - test "$with_gnu_ld" != no && break
  27592. - ;;
  27593. - *)
  27594. - test "$with_gnu_ld" != yes && break
  27595. - ;;
  27596. - esac
  27597. - fi
  27598. - done
  27599. - IFS="$lt_save_ifs"
  27600. -else
  27601. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  27602. -fi
  27603. -fi
  27604. -
  27605. -LD="$lt_cv_path_LD"
  27606. -if test -n "$LD"; then
  27607. - { echo "$as_me:$LINENO: result: $LD" >&5
  27608. -echo "${ECHO_T}$LD" >&6; }
  27609. -else
  27610. - { echo "$as_me:$LINENO: result: no" >&5
  27611. -echo "${ECHO_T}no" >&6; }
  27612. -fi
  27613. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  27614. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  27615. - { (exit 1); exit 1; }; }
  27616. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  27617. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  27618. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  27619. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27620. -else
  27621. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  27622. -case `$LD -v 2>&1 </dev/null` in
  27623. -*GNU* | *'with BFD'*)
  27624. - lt_cv_prog_gnu_ld=yes
  27625. - ;;
  27626. -*)
  27627. - lt_cv_prog_gnu_ld=no
  27628. - ;;
  27629. -esac
  27630. -fi
  27631. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  27632. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  27633. -with_gnu_ld=$lt_cv_prog_gnu_ld
  27634. -
  27635. -
  27636. -
  27637. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  27638. - # archiving commands below assume that GNU ld is being used.
  27639. - if test "$with_gnu_ld" = yes; then
  27640. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27641. - 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'
  27642. -
  27643. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  27644. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27645. -
  27646. - # If archive_cmds runs LD, not CC, wlarc should be empty
  27647. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  27648. - # investigate it a little bit more. (MM)
  27649. - wlarc='${wl}'
  27650. -
  27651. - # ancient GNU ld didn't support --whole-archive et. al.
  27652. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  27653. - grep 'no-whole-archive' > /dev/null; then
  27654. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27655. - else
  27656. - whole_archive_flag_spec_CXX=
  27657. - fi
  27658. - else
  27659. - with_gnu_ld=no
  27660. - wlarc=
  27661. -
  27662. - # A generic and very simple default shared library creation
  27663. - # command for GNU C++ for the case where it uses the native
  27664. - # linker, instead of GNU ld. If possible, this setting should
  27665. - # overridden to take advantage of the native linker features on
  27666. - # the platform it is being used on.
  27667. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  27668. - fi
  27669. -
  27670. - # Commands to make compiler produce verbose output that lists
  27671. - # what "hidden" libraries, object files and flags are used when
  27672. - # linking a shared library.
  27673. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27674. -
  27675. -else
  27676. - GXX=no
  27677. - with_gnu_ld=no
  27678. - wlarc=
  27679. -fi
  27680. -
  27681. -# PORTME: fill in a description of your system's C++ link characteristics
  27682. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27683. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  27684. -ld_shlibs_CXX=yes
  27685. -case $host_os in
  27686. - aix3*)
  27687. - # FIXME: insert proper C++ library support
  27688. - ld_shlibs_CXX=no
  27689. - ;;
  27690. - aix[4-9]*)
  27691. - if test "$host_cpu" = ia64; then
  27692. - # On IA64, the linker does run time linking by default, so we don't
  27693. - # have to do anything special.
  27694. - aix_use_runtimelinking=no
  27695. - exp_sym_flag='-Bexport'
  27696. - no_entry_flag=""
  27697. - else
  27698. - aix_use_runtimelinking=no
  27699. -
  27700. - # Test if we are trying to use run time linking or normal
  27701. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  27702. - # need to do runtime linking.
  27703. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  27704. - for ld_flag in $LDFLAGS; do
  27705. - case $ld_flag in
  27706. - *-brtl*)
  27707. - aix_use_runtimelinking=yes
  27708. - break
  27709. - ;;
  27710. - esac
  27711. - done
  27712. - ;;
  27713. - esac
  27714. -
  27715. - exp_sym_flag='-bexport'
  27716. - no_entry_flag='-bnoentry'
  27717. - fi
  27718. -
  27719. - # When large executables or shared objects are built, AIX ld can
  27720. - # have problems creating the table of contents. If linking a library
  27721. - # or program results in "error TOC overflow" add -mminimal-toc to
  27722. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  27723. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  27724. -
  27725. - archive_cmds_CXX=''
  27726. - hardcode_direct_CXX=yes
  27727. - hardcode_libdir_separator_CXX=':'
  27728. - link_all_deplibs_CXX=yes
  27729. -
  27730. - if test "$GXX" = yes; then
  27731. - case $host_os in aix4.[012]|aix4.[012].*)
  27732. - # We only want to do this on AIX 4.2 and lower, the check
  27733. - # below for broken collect2 doesn't work under 4.3+
  27734. - collect2name=`${CC} -print-prog-name=collect2`
  27735. - if test -f "$collect2name" && \
  27736. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  27737. - then
  27738. - # We have reworked collect2
  27739. - :
  27740. - else
  27741. - # We have old collect2
  27742. - hardcode_direct_CXX=unsupported
  27743. - # It fails to find uninstalled libraries when the uninstalled
  27744. - # path is not listed in the libpath. Setting hardcode_minus_L
  27745. - # to unsupported forces relinking
  27746. - hardcode_minus_L_CXX=yes
  27747. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27748. - hardcode_libdir_separator_CXX=
  27749. - fi
  27750. - ;;
  27751. - esac
  27752. - shared_flag='-shared'
  27753. - if test "$aix_use_runtimelinking" = yes; then
  27754. - shared_flag="$shared_flag "'${wl}-G'
  27755. - fi
  27756. - else
  27757. - # not using gcc
  27758. - if test "$host_cpu" = ia64; then
  27759. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27760. - # chokes on -Wl,-G. The following line is correct:
  27761. - shared_flag='-G'
  27762. - else
  27763. - if test "$aix_use_runtimelinking" = yes; then
  27764. - shared_flag='${wl}-G'
  27765. - else
  27766. - shared_flag='${wl}-bM:SRE'
  27767. - fi
  27768. - fi
  27769. - fi
  27770. -
  27771. - # It seems that -bexpall does not export symbols beginning with
  27772. - # underscore (_), so it is better to generate a list of symbols to export.
  27773. - always_export_symbols_CXX=yes
  27774. - if test "$aix_use_runtimelinking" = yes; then
  27775. - # Warning - without using the other runtime loading flags (-brtl),
  27776. - # -berok will link without error, but may produce a broken library.
  27777. - allow_undefined_flag_CXX='-berok'
  27778. - # Determine the default libpath from the value encoded in an empty executable.
  27779. - cat >conftest.$ac_ext <<_ACEOF
  27780. -/* confdefs.h. */
  27781. -_ACEOF
  27782. -cat confdefs.h >>conftest.$ac_ext
  27783. -cat >>conftest.$ac_ext <<_ACEOF
  27784. -/* end confdefs.h. */
  27785. -
  27786. -int
  27787. -main ()
  27788. -{
  27789. -
  27790. - ;
  27791. - return 0;
  27792. -}
  27793. -_ACEOF
  27794. -rm -f conftest.$ac_objext conftest$ac_exeext
  27795. -if { (ac_try="$ac_link"
  27796. -case "(($ac_try" in
  27797. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27798. - *) ac_try_echo=$ac_try;;
  27799. -esac
  27800. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27801. - (eval "$ac_link") 2>conftest.er1
  27802. - ac_status=$?
  27803. - grep -v '^ *+' conftest.er1 >conftest.err
  27804. - rm -f conftest.er1
  27805. - cat conftest.err >&5
  27806. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27807. - (exit $ac_status); } && {
  27808. - test -z "$ac_cxx_werror_flag" ||
  27809. - test ! -s conftest.err
  27810. - } && test -s conftest$ac_exeext &&
  27811. - $as_test_x conftest$ac_exeext; then
  27812. -
  27813. -lt_aix_libpath_sed='
  27814. - /Import File Strings/,/^$/ {
  27815. - /^0/ {
  27816. - s/^0 *\(.*\)$/\1/
  27817. - p
  27818. - }
  27819. - }'
  27820. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27821. -# Check for a 64-bit object if we didn't find anything.
  27822. -if test -z "$aix_libpath"; then
  27823. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27824. -fi
  27825. -else
  27826. - echo "$as_me: failed program was:" >&5
  27827. -sed 's/^/| /' conftest.$ac_ext >&5
  27828. -
  27829. -
  27830. -fi
  27831. -
  27832. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27833. - conftest$ac_exeext conftest.$ac_ext
  27834. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27835. -
  27836. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  27837. -
  27838. - 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"
  27839. - else
  27840. - if test "$host_cpu" = ia64; then
  27841. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  27842. - allow_undefined_flag_CXX="-z nodefs"
  27843. - 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"
  27844. - else
  27845. - # Determine the default libpath from the value encoded in an empty executable.
  27846. - cat >conftest.$ac_ext <<_ACEOF
  27847. -/* confdefs.h. */
  27848. -_ACEOF
  27849. -cat confdefs.h >>conftest.$ac_ext
  27850. -cat >>conftest.$ac_ext <<_ACEOF
  27851. -/* end confdefs.h. */
  27852. -
  27853. -int
  27854. -main ()
  27855. -{
  27856. -
  27857. - ;
  27858. - return 0;
  27859. -}
  27860. -_ACEOF
  27861. -rm -f conftest.$ac_objext conftest$ac_exeext
  27862. -if { (ac_try="$ac_link"
  27863. -case "(($ac_try" in
  27864. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27865. - *) ac_try_echo=$ac_try;;
  27866. -esac
  27867. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27868. - (eval "$ac_link") 2>conftest.er1
  27869. - ac_status=$?
  27870. - grep -v '^ *+' conftest.er1 >conftest.err
  27871. - rm -f conftest.er1
  27872. - cat conftest.err >&5
  27873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27874. - (exit $ac_status); } && {
  27875. - test -z "$ac_cxx_werror_flag" ||
  27876. - test ! -s conftest.err
  27877. - } && test -s conftest$ac_exeext &&
  27878. - $as_test_x conftest$ac_exeext; then
  27879. -
  27880. -lt_aix_libpath_sed='
  27881. - /Import File Strings/,/^$/ {
  27882. - /^0/ {
  27883. - s/^0 *\(.*\)$/\1/
  27884. - p
  27885. - }
  27886. - }'
  27887. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27888. -# Check for a 64-bit object if we didn't find anything.
  27889. -if test -z "$aix_libpath"; then
  27890. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27891. -fi
  27892. -else
  27893. - echo "$as_me: failed program was:" >&5
  27894. -sed 's/^/| /' conftest.$ac_ext >&5
  27895. -
  27896. -
  27897. -fi
  27898. -
  27899. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27900. - conftest$ac_exeext conftest.$ac_ext
  27901. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27902. -
  27903. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  27904. - # Warning - without using the other run time loading flags,
  27905. - # -berok will link without error, but may produce a broken library.
  27906. - no_undefined_flag_CXX=' ${wl}-bernotok'
  27907. - allow_undefined_flag_CXX=' ${wl}-berok'
  27908. - # Exported symbols can be pulled into shared objects from archives
  27909. - whole_archive_flag_spec_CXX='$convenience'
  27910. - archive_cmds_need_lc_CXX=yes
  27911. - # This is similar to how AIX traditionally builds its shared libraries.
  27912. - 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'
  27913. - fi
  27914. - fi
  27915. - ;;
  27916. -
  27917. - beos*)
  27918. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27919. - allow_undefined_flag_CXX=unsupported
  27920. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  27921. - # support --undefined. This deserves some investigation. FIXME
  27922. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27923. - else
  27924. - ld_shlibs_CXX=no
  27925. - fi
  27926. - ;;
  27927. -
  27928. - chorus*)
  27929. - case $cc_basename in
  27930. - *)
  27931. - # FIXME: insert proper C++ library support
  27932. - ld_shlibs_CXX=no
  27933. - ;;
  27934. - esac
  27935. - ;;
  27936. -
  27937. - cygwin* | mingw* | pw32*)
  27938. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  27939. - # as there is no search path for DLLs.
  27940. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27941. - allow_undefined_flag_CXX=unsupported
  27942. - always_export_symbols_CXX=no
  27943. - enable_shared_with_static_runtimes_CXX=yes
  27944. -
  27945. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27946. - 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'
  27947. - # If the export-symbols file already is a .def file (1st line
  27948. - # is EXPORTS), use it as is; otherwise, prepend...
  27949. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27950. - cp $export_symbols $output_objdir/$soname.def;
  27951. - else
  27952. - echo EXPORTS > $output_objdir/$soname.def;
  27953. - cat $export_symbols >> $output_objdir/$soname.def;
  27954. - fi~
  27955. - $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'
  27956. - else
  27957. - ld_shlibs_CXX=no
  27958. - fi
  27959. - ;;
  27960. - darwin* | rhapsody*)
  27961. - archive_cmds_need_lc_CXX=no
  27962. - hardcode_direct_CXX=no
  27963. - hardcode_automatic_CXX=yes
  27964. - hardcode_shlibpath_var_CXX=unsupported
  27965. - whole_archive_flag_spec_CXX=''
  27966. - link_all_deplibs_CXX=yes
  27967. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  27968. - if test "$GXX" = yes ; then
  27969. - output_verbose_link_cmd='echo'
  27970. - archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  27971. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  27972. - archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  27973. - module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  27974. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  27975. - archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  27976. - archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  27977. - fi
  27978. - else
  27979. - case $cc_basename in
  27980. - xlc*)
  27981. - output_verbose_link_cmd='echo'
  27982. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  27983. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27984. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  27985. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27986. - 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}'
  27987. - ;;
  27988. - *)
  27989. - ld_shlibs_CXX=no
  27990. - ;;
  27991. - esac
  27992. - fi
  27993. - ;;
  27994. -
  27995. - dgux*)
  27996. - case $cc_basename in
  27997. - ec++*)
  27998. - # FIXME: insert proper C++ library support
  27999. - ld_shlibs_CXX=no
  28000. - ;;
  28001. - ghcx*)
  28002. - # Green Hills C++ Compiler
  28003. - # FIXME: insert proper C++ library support
  28004. - ld_shlibs_CXX=no
  28005. - ;;
  28006. - *)
  28007. - # FIXME: insert proper C++ library support
  28008. - ld_shlibs_CXX=no
  28009. - ;;
  28010. - esac
  28011. - ;;
  28012. - freebsd[12]*)
  28013. - # C++ shared libraries reported to be fairly broken before switch to ELF
  28014. - ld_shlibs_CXX=no
  28015. - ;;
  28016. - freebsd-elf*)
  28017. - archive_cmds_need_lc_CXX=no
  28018. - ;;
  28019. - freebsd* | dragonfly*)
  28020. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  28021. - # conventions
  28022. - ld_shlibs_CXX=yes
  28023. - ;;
  28024. - gnu*)
  28025. - ;;
  28026. - hpux9*)
  28027. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28028. - hardcode_libdir_separator_CXX=:
  28029. - export_dynamic_flag_spec_CXX='${wl}-E'
  28030. - hardcode_direct_CXX=yes
  28031. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28032. - # but as the default
  28033. - # location of the library.
  28034. -
  28035. - case $cc_basename in
  28036. - CC*)
  28037. - # FIXME: insert proper C++ library support
  28038. - ld_shlibs_CXX=no
  28039. - ;;
  28040. - aCC*)
  28041. - 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'
  28042. - # Commands to make compiler produce verbose output that lists
  28043. - # what "hidden" libraries, object files and flags are used when
  28044. - # linking a shared library.
  28045. - #
  28046. - # There doesn't appear to be a way to prevent this compiler from
  28047. - # explicitly linking system object files so we need to strip them
  28048. - # from the output so that they don't get included in the library
  28049. - # dependencies.
  28050. - 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'
  28051. - ;;
  28052. - *)
  28053. - if test "$GXX" = yes; then
  28054. - 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'
  28055. - else
  28056. - # FIXME: insert proper C++ library support
  28057. - ld_shlibs_CXX=no
  28058. - fi
  28059. - ;;
  28060. - esac
  28061. - ;;
  28062. - hpux10*|hpux11*)
  28063. - if test $with_gnu_ld = no; then
  28064. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28065. - hardcode_libdir_separator_CXX=:
  28066. -
  28067. - case $host_cpu in
  28068. - hppa*64*|ia64*) ;;
  28069. - *)
  28070. - export_dynamic_flag_spec_CXX='${wl}-E'
  28071. - ;;
  28072. - esac
  28073. - fi
  28074. - case $host_cpu in
  28075. - hppa*64*|ia64*)
  28076. - hardcode_direct_CXX=no
  28077. - hardcode_shlibpath_var_CXX=no
  28078. - ;;
  28079. - *)
  28080. - hardcode_direct_CXX=yes
  28081. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28082. - # but as the default
  28083. - # location of the library.
  28084. - ;;
  28085. - esac
  28086. -
  28087. - case $cc_basename in
  28088. - CC*)
  28089. - # FIXME: insert proper C++ library support
  28090. - ld_shlibs_CXX=no
  28091. - ;;
  28092. - aCC*)
  28093. - case $host_cpu in
  28094. - hppa*64*)
  28095. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28096. - ;;
  28097. - ia64*)
  28098. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28099. - ;;
  28100. - *)
  28101. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28102. - ;;
  28103. - esac
  28104. - # Commands to make compiler produce verbose output that lists
  28105. - # what "hidden" libraries, object files and flags are used when
  28106. - # linking a shared library.
  28107. - #
  28108. - # There doesn't appear to be a way to prevent this compiler from
  28109. - # explicitly linking system object files so we need to strip them
  28110. - # from the output so that they don't get included in the library
  28111. - # dependencies.
  28112. - 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'
  28113. - ;;
  28114. - *)
  28115. - if test "$GXX" = yes; then
  28116. - if test $with_gnu_ld = no; then
  28117. - case $host_cpu in
  28118. - hppa*64*)
  28119. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28120. - ;;
  28121. - ia64*)
  28122. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28123. - ;;
  28124. - *)
  28125. - 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'
  28126. - ;;
  28127. - esac
  28128. - fi
  28129. - else
  28130. - # FIXME: insert proper C++ library support
  28131. - ld_shlibs_CXX=no
  28132. - fi
  28133. - ;;
  28134. - esac
  28135. - ;;
  28136. - interix[3-9]*)
  28137. - hardcode_direct_CXX=no
  28138. - hardcode_shlibpath_var_CXX=no
  28139. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28140. - export_dynamic_flag_spec_CXX='${wl}-E'
  28141. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  28142. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  28143. - # default) and relocated if they conflict, which is a slow very memory
  28144. - # consuming and fragmenting process. To avoid this, we pick a random,
  28145. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  28146. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  28147. - 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'
  28148. - 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'
  28149. - ;;
  28150. - irix5* | irix6*)
  28151. - case $cc_basename in
  28152. - CC*)
  28153. - # SGI C++
  28154. - 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'
  28155. -
  28156. - # Archives containing C++ object files must be created using
  28157. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  28158. - # necessary to make sure instantiated templates are included
  28159. - # in the archive.
  28160. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  28161. - ;;
  28162. - *)
  28163. - if test "$GXX" = yes; then
  28164. - if test "$with_gnu_ld" = no; then
  28165. - 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'
  28166. - else
  28167. - 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'
  28168. - fi
  28169. - fi
  28170. - link_all_deplibs_CXX=yes
  28171. - ;;
  28172. - esac
  28173. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28174. - hardcode_libdir_separator_CXX=:
  28175. - ;;
  28176. - linux* | k*bsd*-gnu)
  28177. - case $cc_basename in
  28178. - KCC*)
  28179. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  28180. -
  28181. - # KCC will only create a shared library if the output file
  28182. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  28183. - # to its proper name (with version) after linking.
  28184. - 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'
  28185. - 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'
  28186. - # Commands to make compiler produce verbose output that lists
  28187. - # what "hidden" libraries, object files and flags are used when
  28188. - # linking a shared library.
  28189. - #
  28190. - # There doesn't appear to be a way to prevent this compiler from
  28191. - # explicitly linking system object files so we need to strip them
  28192. - # from the output so that they don't get included in the library
  28193. - # dependencies.
  28194. - 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'
  28195. -
  28196. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  28197. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28198. -
  28199. - # Archives containing C++ object files must be created using
  28200. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  28201. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  28202. - ;;
  28203. - icpc*)
  28204. - # Intel C++
  28205. - with_gnu_ld=yes
  28206. - # version 8.0 and above of icpc choke on multiply defined symbols
  28207. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  28208. - # earlier do not add the objects themselves.
  28209. - case `$CC -V 2>&1` in
  28210. - *"Version 7."*)
  28211. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28212. - 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'
  28213. - ;;
  28214. - *) # Version 8.0 or newer
  28215. - tmp_idyn=
  28216. - case $host_cpu in
  28217. - ia64*) tmp_idyn=' -i_dynamic';;
  28218. - esac
  28219. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28220. - 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'
  28221. - ;;
  28222. - esac
  28223. - archive_cmds_need_lc_CXX=no
  28224. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28225. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28226. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  28227. - ;;
  28228. - pgCC* | pgcpp*)
  28229. - # Portland Group C++ compiler
  28230. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  28231. - 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'
  28232. -
  28233. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  28234. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28235. - 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'
  28236. - ;;
  28237. - cxx*)
  28238. - # Compaq C++
  28239. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28240. - 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'
  28241. -
  28242. - runpath_var=LD_RUN_PATH
  28243. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  28244. - hardcode_libdir_separator_CXX=:
  28245. -
  28246. - # Commands to make compiler produce verbose output that lists
  28247. - # what "hidden" libraries, object files and flags are used when
  28248. - # linking a shared library.
  28249. - #
  28250. - # There doesn't appear to be a way to prevent this compiler from
  28251. - # explicitly linking system object files so we need to strip them
  28252. - # from the output so that they don't get included in the library
  28253. - # dependencies.
  28254. - 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'
  28255. - ;;
  28256. - *)
  28257. - case `$CC -V 2>&1 | sed 5q` in
  28258. - *Sun\ C*)
  28259. - # Sun C++ 5.9
  28260. - no_undefined_flag_CXX=' -zdefs'
  28261. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28262. - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  28263. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  28264. - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  28265. -
  28266. - # Not sure whether something based on
  28267. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  28268. - # would be better.
  28269. - output_verbose_link_cmd='echo'
  28270. -
  28271. - # Archives containing C++ object files must be created using
  28272. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  28273. - # necessary to make sure instantiated templates are included
  28274. - # in the archive.
  28275. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  28276. - ;;
  28277. - esac
  28278. - ;;
  28279. - esac
  28280. - ;;
  28281. - lynxos*)
  28282. - # FIXME: insert proper C++ library support
  28283. - ld_shlibs_CXX=no
  28284. - ;;
  28285. - m88k*)
  28286. - # FIXME: insert proper C++ library support
  28287. - ld_shlibs_CXX=no
  28288. - ;;
  28289. - mvs*)
  28290. - case $cc_basename in
  28291. - cxx*)
  28292. - # FIXME: insert proper C++ library support
  28293. - ld_shlibs_CXX=no
  28294. - ;;
  28295. - *)
  28296. - # FIXME: insert proper C++ library support
  28297. - ld_shlibs_CXX=no
  28298. - ;;
  28299. - esac
  28300. - ;;
  28301. - netbsd*)
  28302. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28303. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  28304. - wlarc=
  28305. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  28306. - hardcode_direct_CXX=yes
  28307. - hardcode_shlibpath_var_CXX=no
  28308. - fi
  28309. - # Workaround some broken pre-1.5 toolchains
  28310. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  28311. - ;;
  28312. - openbsd2*)
  28313. - # C++ shared libraries are fairly broken
  28314. - ld_shlibs_CXX=no
  28315. - ;;
  28316. - openbsd*)
  28317. - if test -f /usr/libexec/ld.so; then
  28318. - hardcode_direct_CXX=yes
  28319. - hardcode_shlibpath_var_CXX=no
  28320. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  28321. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28322. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28323. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  28324. - export_dynamic_flag_spec_CXX='${wl}-E'
  28325. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  28326. - fi
  28327. - output_verbose_link_cmd='echo'
  28328. - else
  28329. - ld_shlibs_CXX=no
  28330. - fi
  28331. - ;;
  28332. - osf3*)
  28333. - case $cc_basename in
  28334. - KCC*)
  28335. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  28336. -
  28337. - # KCC will only create a shared library if the output file
  28338. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  28339. - # to its proper name (with version) after linking.
  28340. - 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'
  28341. -
  28342. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28343. - hardcode_libdir_separator_CXX=:
  28344. -
  28345. - # Archives containing C++ object files must be created using
  28346. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  28347. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  28348. -
  28349. - ;;
  28350. - RCC*)
  28351. - # Rational C++ 2.4.1
  28352. - # FIXME: insert proper C++ library support
  28353. - ld_shlibs_CXX=no
  28354. - ;;
  28355. - cxx*)
  28356. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  28357. - 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'
  28358. -
  28359. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28360. - hardcode_libdir_separator_CXX=:
  28361. -
  28362. - # Commands to make compiler produce verbose output that lists
  28363. - # what "hidden" libraries, object files and flags are used when
  28364. - # linking a shared library.
  28365. - #
  28366. - # There doesn't appear to be a way to prevent this compiler from
  28367. - # explicitly linking system object files so we need to strip them
  28368. - # from the output so that they don't get included in the library
  28369. - # dependencies.
  28370. - 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'
  28371. - ;;
  28372. - *)
  28373. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  28374. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  28375. - 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'
  28376. -
  28377. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28378. - hardcode_libdir_separator_CXX=:
  28379. -
  28380. - # Commands to make compiler produce verbose output that lists
  28381. - # what "hidden" libraries, object files and flags are used when
  28382. - # linking a shared library.
  28383. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28384. -
  28385. - else
  28386. - # FIXME: insert proper C++ library support
  28387. - ld_shlibs_CXX=no
  28388. - fi
  28389. - ;;
  28390. - esac
  28391. - ;;
  28392. - osf4* | osf5*)
  28393. - case $cc_basename in
  28394. - KCC*)
  28395. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  28396. -
  28397. - # KCC will only create a shared library if the output file
  28398. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  28399. - # to its proper name (with version) after linking.
  28400. - 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'
  28401. -
  28402. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28403. - hardcode_libdir_separator_CXX=:
  28404. -
  28405. - # Archives containing C++ object files must be created using
  28406. - # the KAI C++ compiler.
  28407. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  28408. - ;;
  28409. - RCC*)
  28410. - # Rational C++ 2.4.1
  28411. - # FIXME: insert proper C++ library support
  28412. - ld_shlibs_CXX=no
  28413. - ;;
  28414. - cxx*)
  28415. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  28416. - 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'
  28417. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  28418. - echo "-hidden">> $lib.exp~
  28419. - $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~
  28420. - $rm $lib.exp'
  28421. -
  28422. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  28423. - hardcode_libdir_separator_CXX=:
  28424. -
  28425. - # Commands to make compiler produce verbose output that lists
  28426. - # what "hidden" libraries, object files and flags are used when
  28427. - # linking a shared library.
  28428. - #
  28429. - # There doesn't appear to be a way to prevent this compiler from
  28430. - # explicitly linking system object files so we need to strip them
  28431. - # from the output so that they don't get included in the library
  28432. - # dependencies.
  28433. - 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'
  28434. - ;;
  28435. - *)
  28436. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  28437. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  28438. - 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'
  28439. -
  28440. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28441. - hardcode_libdir_separator_CXX=:
  28442. -
  28443. - # Commands to make compiler produce verbose output that lists
  28444. - # what "hidden" libraries, object files and flags are used when
  28445. - # linking a shared library.
  28446. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28447. -
  28448. - else
  28449. - # FIXME: insert proper C++ library support
  28450. - ld_shlibs_CXX=no
  28451. - fi
  28452. - ;;
  28453. - esac
  28454. - ;;
  28455. - psos*)
  28456. - # FIXME: insert proper C++ library support
  28457. - ld_shlibs_CXX=no
  28458. - ;;
  28459. - sunos4*)
  28460. - case $cc_basename in
  28461. - CC*)
  28462. - # Sun C++ 4.x
  28463. - # FIXME: insert proper C++ library support
  28464. - ld_shlibs_CXX=no
  28465. - ;;
  28466. - lcc*)
  28467. - # Lucid
  28468. - # FIXME: insert proper C++ library support
  28469. - ld_shlibs_CXX=no
  28470. - ;;
  28471. - *)
  28472. - # FIXME: insert proper C++ library support
  28473. - ld_shlibs_CXX=no
  28474. - ;;
  28475. - esac
  28476. - ;;
  28477. - solaris*)
  28478. - case $cc_basename in
  28479. - CC*)
  28480. - # Sun C++ 4.2, 5.x and Centerline C++
  28481. - archive_cmds_need_lc_CXX=yes
  28482. - no_undefined_flag_CXX=' -zdefs'
  28483. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28484. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28485. - $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'
  28486. -
  28487. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  28488. - hardcode_shlibpath_var_CXX=no
  28489. - case $host_os in
  28490. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  28491. - *)
  28492. - # The compiler driver will combine and reorder linker options,
  28493. - # but understands `-z linker_flag'.
  28494. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  28495. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  28496. - ;;
  28497. - esac
  28498. - link_all_deplibs_CXX=yes
  28499. -
  28500. - output_verbose_link_cmd='echo'
  28501. -
  28502. - # Archives containing C++ object files must be created using
  28503. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  28504. - # necessary to make sure instantiated templates are included
  28505. - # in the archive.
  28506. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  28507. - ;;
  28508. - gcx*)
  28509. - # Green Hills C++ Compiler
  28510. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28511. -
  28512. - # The C++ compiler must be used to create the archive.
  28513. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  28514. - ;;
  28515. - *)
  28516. - # GNU C++ compiler with Solaris linker
  28517. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  28518. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  28519. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  28520. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28521. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28522. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  28523. -
  28524. - # Commands to make compiler produce verbose output that lists
  28525. - # what "hidden" libraries, object files and flags are used when
  28526. - # linking a shared library.
  28527. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  28528. - else
  28529. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  28530. - # platform.
  28531. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28532. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28533. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  28534. -
  28535. - # Commands to make compiler produce verbose output that lists
  28536. - # what "hidden" libraries, object files and flags are used when
  28537. - # linking a shared library.
  28538. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  28539. - fi
  28540. -
  28541. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  28542. - case $host_os in
  28543. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  28544. - *)
  28545. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  28546. - ;;
  28547. - esac
  28548. - fi
  28549. - ;;
  28550. - esac
  28551. - ;;
  28552. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  28553. - no_undefined_flag_CXX='${wl}-z,text'
  28554. - archive_cmds_need_lc_CXX=no
  28555. - hardcode_shlibpath_var_CXX=no
  28556. - runpath_var='LD_RUN_PATH'
  28557. -
  28558. - case $cc_basename in
  28559. - CC*)
  28560. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28561. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28562. - ;;
  28563. - *)
  28564. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28565. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28566. - ;;
  28567. - esac
  28568. - ;;
  28569. - sysv5* | sco3.2v5* | sco5v6*)
  28570. - # Note: We can NOT use -z defs as we might desire, because we do not
  28571. - # link with -lc, and that would cause any symbols used from libc to
  28572. - # always be unresolved, which means just about no library would
  28573. - # ever link correctly. If we're not using GNU ld we use -z text
  28574. - # though, which does catch some bad symbols but isn't as heavy-handed
  28575. - # as -z defs.
  28576. - # For security reasons, it is highly recommended that you always
  28577. - # use absolute paths for naming shared libraries, and exclude the
  28578. - # DT_RUNPATH tag from executables and libraries. But doing so
  28579. - # requires that you compile everything twice, which is a pain.
  28580. - # So that behaviour is only enabled if SCOABSPATH is set to a
  28581. - # non-empty value in the environment. Most likely only useful for
  28582. - # creating official distributions of packages.
  28583. - # This is a hack until libtool officially supports absolute path
  28584. - # names for shared libraries.
  28585. - no_undefined_flag_CXX='${wl}-z,text'
  28586. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  28587. - archive_cmds_need_lc_CXX=no
  28588. - hardcode_shlibpath_var_CXX=no
  28589. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  28590. - hardcode_libdir_separator_CXX=':'
  28591. - link_all_deplibs_CXX=yes
  28592. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  28593. - runpath_var='LD_RUN_PATH'
  28594. -
  28595. - case $cc_basename in
  28596. - CC*)
  28597. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28598. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28599. - ;;
  28600. - *)
  28601. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28602. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28603. - ;;
  28604. - esac
  28605. - ;;
  28606. - tandem*)
  28607. - case $cc_basename in
  28608. - NCC*)
  28609. - # NonStop-UX NCC 3.20
  28610. - # FIXME: insert proper C++ library support
  28611. - ld_shlibs_CXX=no
  28612. - ;;
  28613. - *)
  28614. - # FIXME: insert proper C++ library support
  28615. - ld_shlibs_CXX=no
  28616. - ;;
  28617. - esac
  28618. - ;;
  28619. - vxworks*)
  28620. - # FIXME: insert proper C++ library support
  28621. - ld_shlibs_CXX=no
  28622. - ;;
  28623. - *)
  28624. - # FIXME: insert proper C++ library support
  28625. - ld_shlibs_CXX=no
  28626. - ;;
  28627. -esac
  28628. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  28629. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  28630. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  28631. -
  28632. -GCC_CXX="$GXX"
  28633. -LD_CXX="$LD"
  28634. -
  28635. -cat > conftest.$ac_ext <<EOF
  28636. -class Foo
  28637. -{
  28638. -public:
  28639. - Foo (void) { a = 0; }
  28640. -private:
  28641. - int a;
  28642. -};
  28643. -EOF
  28644. -
  28645. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28646. - (eval $ac_compile) 2>&5
  28647. - ac_status=$?
  28648. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28649. - (exit $ac_status); }; then
  28650. - # Parse the compiler output and extract the necessary
  28651. - # objects, libraries and library flags.
  28652. -
  28653. - # Sentinel used to keep track of whether or not we are before
  28654. - # the conftest object file.
  28655. - pre_test_object_deps_done=no
  28656. -
  28657. - # The `*' in the case matches for architectures that use `case' in
  28658. - # $output_verbose_cmd can trigger glob expansion during the loop
  28659. - # eval without this substitution.
  28660. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  28661. -
  28662. - for p in `eval $output_verbose_link_cmd`; do
  28663. - case $p in
  28664. -
  28665. - -L* | -R* | -l*)
  28666. - # Some compilers place space between "-{L,R}" and the path.
  28667. - # Remove the space.
  28668. - if test $p = "-L" \
  28669. - || test $p = "-R"; then
  28670. - prev=$p
  28671. - continue
  28672. - else
  28673. - prev=
  28674. - fi
  28675. -
  28676. - if test "$pre_test_object_deps_done" = no; then
  28677. - case $p in
  28678. - -L* | -R*)
  28679. - # Internal compiler library paths should come after those
  28680. - # provided the user. The postdeps already come after the
  28681. - # user supplied libs so there is no need to process them.
  28682. - if test -z "$compiler_lib_search_path_CXX"; then
  28683. - compiler_lib_search_path_CXX="${prev}${p}"
  28684. - else
  28685. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  28686. - fi
  28687. - ;;
  28688. - # The "-l" case would never come before the object being
  28689. - # linked, so don't bother handling this case.
  28690. - esac
  28691. - else
  28692. - if test -z "$postdeps_CXX"; then
  28693. - postdeps_CXX="${prev}${p}"
  28694. - else
  28695. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  28696. - fi
  28697. - fi
  28698. - ;;
  28699. -
  28700. - *.$objext)
  28701. - # This assumes that the test object file only shows up
  28702. - # once in the compiler output.
  28703. - if test "$p" = "conftest.$objext"; then
  28704. - pre_test_object_deps_done=yes
  28705. - continue
  28706. - fi
  28707. -
  28708. - if test "$pre_test_object_deps_done" = no; then
  28709. - if test -z "$predep_objects_CXX"; then
  28710. - predep_objects_CXX="$p"
  28711. - else
  28712. - predep_objects_CXX="$predep_objects_CXX $p"
  28713. - fi
  28714. - else
  28715. - if test -z "$postdep_objects_CXX"; then
  28716. - postdep_objects_CXX="$p"
  28717. - else
  28718. - postdep_objects_CXX="$postdep_objects_CXX $p"
  28719. - fi
  28720. - fi
  28721. - ;;
  28722. -
  28723. - *) ;; # Ignore the rest.
  28724. -
  28725. - esac
  28726. - done
  28727. -
  28728. - # Clean up.
  28729. - rm -f a.out a.exe
  28730. -else
  28731. - echo "libtool.m4: error: problem compiling CXX test program"
  28732. -fi
  28733. -
  28734. -$rm -f confest.$objext
  28735. -
  28736. -compiler_lib_search_dirs_CXX=
  28737. -if test -n "$compiler_lib_search_path_CXX"; then
  28738. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  28739. -fi
  28740. -
  28741. -# PORTME: override above test on systems where it is broken
  28742. -case $host_os in
  28743. -interix[3-9]*)
  28744. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  28745. - # hack all around it, let's just trust "g++" to DTRT.
  28746. - predep_objects_CXX=
  28747. - postdep_objects_CXX=
  28748. - postdeps_CXX=
  28749. - ;;
  28750. -
  28751. -linux*)
  28752. - case `$CC -V 2>&1 | sed 5q` in
  28753. - *Sun\ C*)
  28754. - # Sun C++ 5.9
  28755. - #
  28756. - # The more standards-conforming stlport4 library is
  28757. - # incompatible with the Cstd library. Avoid specifying
  28758. - # it if it's in CXXFLAGS. Ignore libCrun as
  28759. - # -library=stlport4 depends on it.
  28760. - case " $CXX $CXXFLAGS " in
  28761. - *" -library=stlport4 "*)
  28762. - solaris_use_stlport4=yes
  28763. - ;;
  28764. - esac
  28765. - if test "$solaris_use_stlport4" != yes; then
  28766. - postdeps_CXX='-library=Cstd -library=Crun'
  28767. - fi
  28768. - ;;
  28769. - esac
  28770. - ;;
  28771. -
  28772. -solaris*)
  28773. - case $cc_basename in
  28774. - CC*)
  28775. - # The more standards-conforming stlport4 library is
  28776. - # incompatible with the Cstd library. Avoid specifying
  28777. - # it if it's in CXXFLAGS. Ignore libCrun as
  28778. - # -library=stlport4 depends on it.
  28779. - case " $CXX $CXXFLAGS " in
  28780. - *" -library=stlport4 "*)
  28781. - solaris_use_stlport4=yes
  28782. - ;;
  28783. - esac
  28784. -
  28785. - # Adding this requires a known-good setup of shared libraries for
  28786. - # Sun compiler versions before 5.6, else PIC objects from an old
  28787. - # archive will be linked into the output, leading to subtle bugs.
  28788. - if test "$solaris_use_stlport4" != yes; then
  28789. - postdeps_CXX='-library=Cstd -library=Crun'
  28790. - fi
  28791. - ;;
  28792. - esac
  28793. - ;;
  28794. -esac
  28795. -
  28796. -case " $postdeps_CXX " in
  28797. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  28798. -esac
  28799. -
  28800. -lt_prog_compiler_wl_CXX=
  28801. -lt_prog_compiler_pic_CXX=
  28802. -lt_prog_compiler_static_CXX=
  28803. -
  28804. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  28805. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  28806. -
  28807. - # C++ specific cases for pic, static, wl, etc.
  28808. - if test "$GXX" = yes; then
  28809. - lt_prog_compiler_wl_CXX='-Wl,'
  28810. - lt_prog_compiler_static_CXX='-static'
  28811. -
  28812. - case $host_os in
  28813. - aix*)
  28814. - # All AIX code is PIC.
  28815. - if test "$host_cpu" = ia64; then
  28816. - # AIX 5 now supports IA64 processor
  28817. - lt_prog_compiler_static_CXX='-Bstatic'
  28818. - fi
  28819. - ;;
  28820. - amigaos*)
  28821. - # FIXME: we need at least 68020 code to build shared libraries, but
  28822. - # adding the `-m68020' flag to GCC prevents building anything better,
  28823. - # like `-m68040'.
  28824. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  28825. - ;;
  28826. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28827. - # PIC is the default for these OSes.
  28828. - ;;
  28829. - mingw* | cygwin* | os2* | pw32*)
  28830. - # This hack is so that the source file can tell whether it is being
  28831. - # built for inclusion in a dll (and should export symbols for example).
  28832. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  28833. - # (--disable-auto-import) libraries
  28834. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  28835. - ;;
  28836. - darwin* | rhapsody*)
  28837. - # PIC is the default on this platform
  28838. - # Common symbols not allowed in MH_DYLIB files
  28839. - lt_prog_compiler_pic_CXX='-fno-common'
  28840. - ;;
  28841. - *djgpp*)
  28842. - # DJGPP does not support shared libraries at all
  28843. - lt_prog_compiler_pic_CXX=
  28844. - ;;
  28845. - interix[3-9]*)
  28846. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  28847. - # Instead, we relocate shared libraries at runtime.
  28848. - ;;
  28849. - sysv4*MP*)
  28850. - if test -d /usr/nec; then
  28851. - lt_prog_compiler_pic_CXX=-Kconform_pic
  28852. - fi
  28853. - ;;
  28854. - hpux*)
  28855. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28856. - # not for PA HP-UX.
  28857. - case $host_cpu in
  28858. - hppa*64*|ia64*)
  28859. - ;;
  28860. - *)
  28861. - lt_prog_compiler_pic_CXX='-fPIC'
  28862. - ;;
  28863. - esac
  28864. - ;;
  28865. - *)
  28866. - lt_prog_compiler_pic_CXX='-fPIC'
  28867. - ;;
  28868. - esac
  28869. - else
  28870. - case $host_os in
  28871. - aix[4-9]*)
  28872. - # All AIX code is PIC.
  28873. - if test "$host_cpu" = ia64; then
  28874. - # AIX 5 now supports IA64 processor
  28875. - lt_prog_compiler_static_CXX='-Bstatic'
  28876. - else
  28877. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  28878. - fi
  28879. - ;;
  28880. - chorus*)
  28881. - case $cc_basename in
  28882. - cxch68*)
  28883. - # Green Hills C++ Compiler
  28884. - # _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"
  28885. - ;;
  28886. - esac
  28887. - ;;
  28888. - darwin*)
  28889. - # PIC is the default on this platform
  28890. - # Common symbols not allowed in MH_DYLIB files
  28891. - case $cc_basename in
  28892. - xlc*)
  28893. - lt_prog_compiler_pic_CXX='-qnocommon'
  28894. - lt_prog_compiler_wl_CXX='-Wl,'
  28895. - ;;
  28896. - esac
  28897. - ;;
  28898. - dgux*)
  28899. - case $cc_basename in
  28900. - ec++*)
  28901. - lt_prog_compiler_pic_CXX='-KPIC'
  28902. - ;;
  28903. - ghcx*)
  28904. - # Green Hills C++ Compiler
  28905. - lt_prog_compiler_pic_CXX='-pic'
  28906. - ;;
  28907. - *)
  28908. - ;;
  28909. - esac
  28910. - ;;
  28911. - freebsd* | dragonfly*)
  28912. - # FreeBSD uses GNU C++
  28913. - ;;
  28914. - hpux9* | hpux10* | hpux11*)
  28915. - case $cc_basename in
  28916. - CC*)
  28917. - lt_prog_compiler_wl_CXX='-Wl,'
  28918. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  28919. - if test "$host_cpu" != ia64; then
  28920. - lt_prog_compiler_pic_CXX='+Z'
  28921. - fi
  28922. - ;;
  28923. - aCC*)
  28924. - lt_prog_compiler_wl_CXX='-Wl,'
  28925. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  28926. - case $host_cpu in
  28927. - hppa*64*|ia64*)
  28928. - # +Z the default
  28929. - ;;
  28930. - *)
  28931. - lt_prog_compiler_pic_CXX='+Z'
  28932. - ;;
  28933. - esac
  28934. - ;;
  28935. - *)
  28936. - ;;
  28937. - esac
  28938. - ;;
  28939. - interix*)
  28940. - # This is c89, which is MS Visual C++ (no shared libs)
  28941. - # Anyone wants to do a port?
  28942. - ;;
  28943. - irix5* | irix6* | nonstopux*)
  28944. - case $cc_basename in
  28945. - CC*)
  28946. - lt_prog_compiler_wl_CXX='-Wl,'
  28947. - lt_prog_compiler_static_CXX='-non_shared'
  28948. - # CC pic flag -KPIC is the default.
  28949. - ;;
  28950. - *)
  28951. - ;;
  28952. - esac
  28953. - ;;
  28954. - linux* | k*bsd*-gnu)
  28955. - case $cc_basename in
  28956. - KCC*)
  28957. - # KAI C++ Compiler
  28958. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  28959. - lt_prog_compiler_pic_CXX='-fPIC'
  28960. - ;;
  28961. - icpc* | ecpc*)
  28962. - # Intel C++
  28963. - lt_prog_compiler_wl_CXX='-Wl,'
  28964. - lt_prog_compiler_pic_CXX='-KPIC'
  28965. - lt_prog_compiler_static_CXX='-static'
  28966. - ;;
  28967. - pgCC* | pgcpp*)
  28968. - # Portland Group C++ compiler.
  28969. - lt_prog_compiler_wl_CXX='-Wl,'
  28970. - lt_prog_compiler_pic_CXX='-fpic'
  28971. - lt_prog_compiler_static_CXX='-Bstatic'
  28972. - ;;
  28973. - cxx*)
  28974. - # Compaq C++
  28975. - # Make sure the PIC flag is empty. It appears that all Alpha
  28976. - # Linux and Compaq Tru64 Unix objects are PIC.
  28977. - lt_prog_compiler_pic_CXX=
  28978. - lt_prog_compiler_static_CXX='-non_shared'
  28979. - ;;
  28980. - *)
  28981. - case `$CC -V 2>&1 | sed 5q` in
  28982. - *Sun\ C*)
  28983. - # Sun C++ 5.9
  28984. - lt_prog_compiler_pic_CXX='-KPIC'
  28985. - lt_prog_compiler_static_CXX='-Bstatic'
  28986. - lt_prog_compiler_wl_CXX='-Qoption ld '
  28987. - ;;
  28988. - esac
  28989. - ;;
  28990. - esac
  28991. - ;;
  28992. - lynxos*)
  28993. - ;;
  28994. - m88k*)
  28995. - ;;
  28996. - mvs*)
  28997. - case $cc_basename in
  28998. - cxx*)
  28999. - lt_prog_compiler_pic_CXX='-W c,exportall'
  29000. - ;;
  29001. - *)
  29002. - ;;
  29003. - esac
  29004. - ;;
  29005. - netbsd*)
  29006. - ;;
  29007. - osf3* | osf4* | osf5*)
  29008. - case $cc_basename in
  29009. - KCC*)
  29010. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29011. - ;;
  29012. - RCC*)
  29013. - # Rational C++ 2.4.1
  29014. - lt_prog_compiler_pic_CXX='-pic'
  29015. - ;;
  29016. - cxx*)
  29017. - # Digital/Compaq C++
  29018. - lt_prog_compiler_wl_CXX='-Wl,'
  29019. - # Make sure the PIC flag is empty. It appears that all Alpha
  29020. - # Linux and Compaq Tru64 Unix objects are PIC.
  29021. - lt_prog_compiler_pic_CXX=
  29022. - lt_prog_compiler_static_CXX='-non_shared'
  29023. - ;;
  29024. - *)
  29025. - ;;
  29026. - esac
  29027. - ;;
  29028. - psos*)
  29029. - ;;
  29030. - solaris*)
  29031. - case $cc_basename in
  29032. - CC*)
  29033. - # Sun C++ 4.2, 5.x and Centerline C++
  29034. - lt_prog_compiler_pic_CXX='-KPIC'
  29035. - lt_prog_compiler_static_CXX='-Bstatic'
  29036. - lt_prog_compiler_wl_CXX='-Qoption ld '
  29037. - ;;
  29038. - gcx*)
  29039. - # Green Hills C++ Compiler
  29040. - lt_prog_compiler_pic_CXX='-PIC'
  29041. - ;;
  29042. - *)
  29043. - ;;
  29044. - esac
  29045. - ;;
  29046. - sunos4*)
  29047. - case $cc_basename in
  29048. - CC*)
  29049. - # Sun C++ 4.x
  29050. - lt_prog_compiler_pic_CXX='-pic'
  29051. - lt_prog_compiler_static_CXX='-Bstatic'
  29052. - ;;
  29053. - lcc*)
  29054. - # Lucid
  29055. - lt_prog_compiler_pic_CXX='-pic'
  29056. - ;;
  29057. - *)
  29058. - ;;
  29059. - esac
  29060. - ;;
  29061. - tandem*)
  29062. - case $cc_basename in
  29063. - NCC*)
  29064. - # NonStop-UX NCC 3.20
  29065. - lt_prog_compiler_pic_CXX='-KPIC'
  29066. - ;;
  29067. - *)
  29068. - ;;
  29069. - esac
  29070. - ;;
  29071. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  29072. - case $cc_basename in
  29073. - CC*)
  29074. - lt_prog_compiler_wl_CXX='-Wl,'
  29075. - lt_prog_compiler_pic_CXX='-KPIC'
  29076. - lt_prog_compiler_static_CXX='-Bstatic'
  29077. - ;;
  29078. - esac
  29079. - ;;
  29080. - vxworks*)
  29081. - ;;
  29082. - *)
  29083. - lt_prog_compiler_can_build_shared_CXX=no
  29084. - ;;
  29085. - esac
  29086. - fi
  29087. -
  29088. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  29089. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  29090. -
  29091. -#
  29092. -# Check to make sure the PIC flag actually works.
  29093. -#
  29094. -if test -n "$lt_prog_compiler_pic_CXX"; then
  29095. -
  29096. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  29097. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  29098. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  29099. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29100. -else
  29101. - lt_cv_prog_compiler_pic_works_CXX=no
  29102. - ac_outfile=conftest.$ac_objext
  29103. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29104. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  29105. - # Insert the option either (1) after the last *FLAGS variable, or
  29106. - # (2) before a word containing "conftest.", or (3) at the end.
  29107. - # Note that $ac_compile itself does not contain backslashes and begins
  29108. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29109. - # The option is referenced via a variable to avoid confusing sed.
  29110. - lt_compile=`echo "$ac_compile" | $SED \
  29111. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29112. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29113. - -e 's:$: $lt_compiler_flag:'`
  29114. - (eval echo "\"\$as_me:12955: $lt_compile\"" >&5)
  29115. - (eval "$lt_compile" 2>conftest.err)
  29116. - ac_status=$?
  29117. - cat conftest.err >&5
  29118. - echo "$as_me:12959: \$? = $ac_status" >&5
  29119. - if (exit $ac_status) && test -s "$ac_outfile"; then
  29120. - # The compiler can only warn and ignore the option if not recognized
  29121. - # So say no if there are warnings other than the usual output.
  29122. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29123. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29124. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29125. - lt_cv_prog_compiler_pic_works_CXX=yes
  29126. - fi
  29127. - fi
  29128. - $rm conftest*
  29129. -
  29130. -fi
  29131. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  29132. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  29133. -
  29134. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  29135. - case $lt_prog_compiler_pic_CXX in
  29136. - "" | " "*) ;;
  29137. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  29138. - esac
  29139. -else
  29140. - lt_prog_compiler_pic_CXX=
  29141. - lt_prog_compiler_can_build_shared_CXX=no
  29142. -fi
  29143. -
  29144. -fi
  29145. -case $host_os in
  29146. - # For platforms which do not support PIC, -DPIC is meaningless:
  29147. - *djgpp*)
  29148. - lt_prog_compiler_pic_CXX=
  29149. - ;;
  29150. - *)
  29151. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  29152. - ;;
  29153. -esac
  29154. -
  29155. -#
  29156. -# Check to make sure the static flag actually works.
  29157. -#
  29158. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  29159. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  29160. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  29161. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  29162. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29163. -else
  29164. - lt_cv_prog_compiler_static_works_CXX=no
  29165. - save_LDFLAGS="$LDFLAGS"
  29166. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  29167. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  29168. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  29169. - # The linker can only warn and ignore the option if not recognized
  29170. - # So say no if there are warnings
  29171. - if test -s conftest.err; then
  29172. - # Append any errors to the config.log.
  29173. - cat conftest.err 1>&5
  29174. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  29175. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29176. - if diff conftest.exp conftest.er2 >/dev/null; then
  29177. - lt_cv_prog_compiler_static_works_CXX=yes
  29178. - fi
  29179. - else
  29180. - lt_cv_prog_compiler_static_works_CXX=yes
  29181. - fi
  29182. - fi
  29183. - $rm -r conftest*
  29184. - LDFLAGS="$save_LDFLAGS"
  29185. -
  29186. -fi
  29187. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  29188. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  29189. -
  29190. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  29191. - :
  29192. -else
  29193. - lt_prog_compiler_static_CXX=
  29194. -fi
  29195. -
  29196. -
  29197. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  29198. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  29199. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  29200. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29201. -else
  29202. - lt_cv_prog_compiler_c_o_CXX=no
  29203. - $rm -r conftest 2>/dev/null
  29204. - mkdir conftest
  29205. - cd conftest
  29206. - mkdir out
  29207. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29208. -
  29209. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  29210. - # Insert the option either (1) after the last *FLAGS variable, or
  29211. - # (2) before a word containing "conftest.", or (3) at the end.
  29212. - # Note that $ac_compile itself does not contain backslashes and begins
  29213. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29214. - lt_compile=`echo "$ac_compile" | $SED \
  29215. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29216. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29217. - -e 's:$: $lt_compiler_flag:'`
  29218. - (eval echo "\"\$as_me:13059: $lt_compile\"" >&5)
  29219. - (eval "$lt_compile" 2>out/conftest.err)
  29220. - ac_status=$?
  29221. - cat out/conftest.err >&5
  29222. - echo "$as_me:13063: \$? = $ac_status" >&5
  29223. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  29224. - then
  29225. - # The compiler can only warn and ignore the option if not recognized
  29226. - # So say no if there are warnings
  29227. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  29228. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  29229. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  29230. - lt_cv_prog_compiler_c_o_CXX=yes
  29231. - fi
  29232. - fi
  29233. - chmod u+w . 2>&5
  29234. - $rm conftest*
  29235. - # SGI C++ compiler will create directory out/ii_files/ for
  29236. - # template instantiation
  29237. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  29238. - $rm out/* && rmdir out
  29239. - cd ..
  29240. - rmdir conftest
  29241. - $rm conftest*
  29242. -
  29243. -fi
  29244. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  29245. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  29246. -
  29247. -
  29248. -hard_links="nottested"
  29249. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  29250. - # do not overwrite the value of need_locks provided by the user
  29251. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  29252. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  29253. - hard_links=yes
  29254. - $rm conftest*
  29255. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29256. - touch conftest.a
  29257. - ln conftest.a conftest.b 2>&5 || hard_links=no
  29258. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29259. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  29260. -echo "${ECHO_T}$hard_links" >&6; }
  29261. - if test "$hard_links" = no; then
  29262. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  29263. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  29264. - need_locks=warn
  29265. - fi
  29266. -else
  29267. - need_locks=no
  29268. -fi
  29269. -
  29270. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29271. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  29272. -
  29273. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29274. - case $host_os in
  29275. - aix[4-9]*)
  29276. - # If we're using GNU nm, then we don't want the "-C" option.
  29277. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  29278. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  29279. - 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'
  29280. - else
  29281. - 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'
  29282. - fi
  29283. - ;;
  29284. - pw32*)
  29285. - export_symbols_cmds_CXX="$ltdll_cmds"
  29286. - ;;
  29287. - cygwin* | mingw*)
  29288. - 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'
  29289. - ;;
  29290. - *)
  29291. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29292. - ;;
  29293. - esac
  29294. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  29295. -
  29296. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  29297. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  29298. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  29299. -
  29300. -#
  29301. -# Do we need to explicitly link libc?
  29302. -#
  29303. -case "x$archive_cmds_need_lc_CXX" in
  29304. -x|xyes)
  29305. - # Assume -lc should be added
  29306. - archive_cmds_need_lc_CXX=yes
  29307. -
  29308. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  29309. - case $archive_cmds_CXX in
  29310. - *'~'*)
  29311. - # FIXME: we may have to deal with multi-command sequences.
  29312. - ;;
  29313. - '$CC '*)
  29314. - # Test whether the compiler implicitly links with -lc since on some
  29315. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  29316. - # to ld, don't add -lc before -lgcc.
  29317. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  29318. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  29319. - $rm conftest*
  29320. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29321. -
  29322. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29323. - (eval $ac_compile) 2>&5
  29324. - ac_status=$?
  29325. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29326. - (exit $ac_status); } 2>conftest.err; then
  29327. - soname=conftest
  29328. - lib=conftest
  29329. - libobjs=conftest.$ac_objext
  29330. - deplibs=
  29331. - wl=$lt_prog_compiler_wl_CXX
  29332. - pic_flag=$lt_prog_compiler_pic_CXX
  29333. - compiler_flags=-v
  29334. - linker_flags=-v
  29335. - verstring=
  29336. - output_objdir=.
  29337. - libname=conftest
  29338. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  29339. - allow_undefined_flag_CXX=
  29340. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  29341. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  29342. - ac_status=$?
  29343. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29344. - (exit $ac_status); }
  29345. - then
  29346. - archive_cmds_need_lc_CXX=no
  29347. - else
  29348. - archive_cmds_need_lc_CXX=yes
  29349. - fi
  29350. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  29351. - else
  29352. - cat conftest.err 1>&5
  29353. - fi
  29354. - $rm conftest*
  29355. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  29356. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  29357. - ;;
  29358. - esac
  29359. - fi
  29360. - ;;
  29361. -esac
  29362. -
  29363. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  29364. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  29365. -library_names_spec=
  29366. -libname_spec='lib$name'
  29367. -soname_spec=
  29368. -shrext_cmds=".so"
  29369. -postinstall_cmds=
  29370. -postuninstall_cmds=
  29371. -finish_cmds=
  29372. -finish_eval=
  29373. -shlibpath_var=
  29374. -shlibpath_overrides_runpath=unknown
  29375. -version_type=none
  29376. -dynamic_linker="$host_os ld.so"
  29377. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  29378. -
  29379. -need_lib_prefix=unknown
  29380. -hardcode_into_libs=no
  29381. -
  29382. -# when you set need_version to no, make sure it does not cause -set_version
  29383. -# flags to be left without arguments
  29384. -need_version=unknown
  29385. -
  29386. -case $host_os in
  29387. -aix3*)
  29388. - version_type=linux
  29389. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  29390. - shlibpath_var=LIBPATH
  29391. -
  29392. - # AIX 3 has no versioning support, so we append a major version to the name.
  29393. - soname_spec='${libname}${release}${shared_ext}$major'
  29394. - ;;
  29395. -
  29396. -aix[4-9]*)
  29397. - version_type=linux
  29398. - need_lib_prefix=no
  29399. - need_version=no
  29400. - hardcode_into_libs=yes
  29401. - if test "$host_cpu" = ia64; then
  29402. - # AIX 5 supports IA64
  29403. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  29404. - shlibpath_var=LD_LIBRARY_PATH
  29405. - else
  29406. - # With GCC up to 2.95.x, collect2 would create an import file
  29407. - # for dependence libraries. The import file would start with
  29408. - # the line `#! .'. This would cause the generated library to
  29409. - # depend on `.', always an invalid library. This was fixed in
  29410. - # development snapshots of GCC prior to 3.0.
  29411. - case $host_os in
  29412. - aix4 | aix4.[01] | aix4.[01].*)
  29413. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  29414. - echo ' yes '
  29415. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  29416. - :
  29417. - else
  29418. - can_build_shared=no
  29419. - fi
  29420. - ;;
  29421. - esac
  29422. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  29423. - # soname into executable. Probably we can add versioning support to
  29424. - # collect2, so additional links can be useful in future.
  29425. - if test "$aix_use_runtimelinking" = yes; then
  29426. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  29427. - # instead of lib<name>.a to let people know that these are not
  29428. - # typical AIX shared libraries.
  29429. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29430. - else
  29431. - # We preserve .a as extension for shared libraries through AIX4.2
  29432. - # and later when we are not doing run time linking.
  29433. - library_names_spec='${libname}${release}.a $libname.a'
  29434. - soname_spec='${libname}${release}${shared_ext}$major'
  29435. - fi
  29436. - shlibpath_var=LIBPATH
  29437. - fi
  29438. - ;;
  29439. -
  29440. -amigaos*)
  29441. - library_names_spec='$libname.ixlibrary $libname.a'
  29442. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  29443. - 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'
  29444. - ;;
  29445. -
  29446. -beos*)
  29447. - library_names_spec='${libname}${shared_ext}'
  29448. - dynamic_linker="$host_os ld.so"
  29449. - shlibpath_var=LIBRARY_PATH
  29450. - ;;
  29451. -
  29452. -bsdi[45]*)
  29453. - version_type=linux
  29454. - need_version=no
  29455. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29456. - soname_spec='${libname}${release}${shared_ext}$major'
  29457. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  29458. - shlibpath_var=LD_LIBRARY_PATH
  29459. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  29460. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  29461. - # the default ld.so.conf also contains /usr/contrib/lib and
  29462. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  29463. - # libtool to hard-code these into programs
  29464. - ;;
  29465. -
  29466. -cygwin* | mingw* | pw32*)
  29467. - version_type=windows
  29468. - shrext_cmds=".dll"
  29469. - need_version=no
  29470. - need_lib_prefix=no
  29471. -
  29472. - case $GCC,$host_os in
  29473. - yes,cygwin* | yes,mingw* | yes,pw32*)
  29474. - library_names_spec='$libname.dll.a'
  29475. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  29476. - postinstall_cmds='base_file=`basename \${file}`~
  29477. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  29478. - dldir=$destdir/`dirname \$dlpath`~
  29479. - test -d \$dldir || mkdir -p \$dldir~
  29480. - $install_prog $dir/$dlname \$dldir/$dlname~
  29481. - chmod a+x \$dldir/$dlname'
  29482. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  29483. - dlpath=$dir/\$dldll~
  29484. - $rm \$dlpath'
  29485. - shlibpath_overrides_runpath=yes
  29486. -
  29487. - case $host_os in
  29488. - cygwin*)
  29489. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  29490. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29491. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  29492. - ;;
  29493. - mingw*)
  29494. - # MinGW DLLs use traditional 'lib' prefix
  29495. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29496. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  29497. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  29498. - # It is most probably a Windows format PATH printed by
  29499. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  29500. - # path with ; separators, and with drive letters. We can handle the
  29501. - # drive letters (cygwin fileutils understands them), so leave them,
  29502. - # especially as we might pass files found there to a mingw objdump,
  29503. - # which wouldn't understand a cygwinified path. Ahh.
  29504. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  29505. - else
  29506. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  29507. - fi
  29508. - ;;
  29509. - pw32*)
  29510. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  29511. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29512. - ;;
  29513. - esac
  29514. - ;;
  29515. -
  29516. - *)
  29517. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  29518. - ;;
  29519. - esac
  29520. - dynamic_linker='Win32 ld.exe'
  29521. - # FIXME: first we should search . and the directory the executable is in
  29522. - shlibpath_var=PATH
  29523. - ;;
  29524. -
  29525. -darwin* | rhapsody*)
  29526. - dynamic_linker="$host_os dyld"
  29527. - version_type=darwin
  29528. - need_lib_prefix=no
  29529. - need_version=no
  29530. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  29531. - soname_spec='${libname}${release}${major}$shared_ext'
  29532. - shlibpath_overrides_runpath=yes
  29533. - shlibpath_var=DYLD_LIBRARY_PATH
  29534. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  29535. -
  29536. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  29537. - ;;
  29538. -
  29539. -dgux*)
  29540. - version_type=linux
  29541. - need_lib_prefix=no
  29542. - need_version=no
  29543. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  29544. - soname_spec='${libname}${release}${shared_ext}$major'
  29545. - shlibpath_var=LD_LIBRARY_PATH
  29546. - ;;
  29547. -
  29548. -freebsd1*)
  29549. - dynamic_linker=no
  29550. - ;;
  29551. -
  29552. -freebsd* | dragonfly*)
  29553. - # DragonFly does not have aout. When/if they implement a new
  29554. - # versioning mechanism, adjust this.
  29555. - if test -x /usr/bin/objformat; then
  29556. - objformat=`/usr/bin/objformat`
  29557. - else
  29558. - case $host_os in
  29559. - freebsd[123]*) objformat=aout ;;
  29560. - *) objformat=elf ;;
  29561. - esac
  29562. - fi
  29563. - version_type=freebsd-$objformat
  29564. - case $version_type in
  29565. - freebsd-elf*)
  29566. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29567. - need_version=no
  29568. - need_lib_prefix=no
  29569. - ;;
  29570. - freebsd-*)
  29571. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  29572. - need_version=yes
  29573. - ;;
  29574. - esac
  29575. - shlibpath_var=LD_LIBRARY_PATH
  29576. - case $host_os in
  29577. - freebsd2*)
  29578. - shlibpath_overrides_runpath=yes
  29579. - ;;
  29580. - freebsd3.[01]* | freebsdelf3.[01]*)
  29581. - shlibpath_overrides_runpath=yes
  29582. - hardcode_into_libs=yes
  29583. - ;;
  29584. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  29585. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  29586. - shlibpath_overrides_runpath=no
  29587. - hardcode_into_libs=yes
  29588. - ;;
  29589. - *) # from 4.6 on, and DragonFly
  29590. - shlibpath_overrides_runpath=yes
  29591. - hardcode_into_libs=yes
  29592. - ;;
  29593. - esac
  29594. - ;;
  29595. -
  29596. -gnu*)
  29597. - version_type=linux
  29598. - need_lib_prefix=no
  29599. - need_version=no
  29600. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  29601. - soname_spec='${libname}${release}${shared_ext}$major'
  29602. - shlibpath_var=LD_LIBRARY_PATH
  29603. - hardcode_into_libs=yes
  29604. - ;;
  29605. -
  29606. -hpux9* | hpux10* | hpux11*)
  29607. - # Give a soname corresponding to the major version so that dld.sl refuses to
  29608. - # link against other versions.
  29609. - version_type=sunos
  29610. - need_lib_prefix=no
  29611. - need_version=no
  29612. - case $host_cpu in
  29613. - ia64*)
  29614. - shrext_cmds='.so'
  29615. - hardcode_into_libs=yes
  29616. - dynamic_linker="$host_os dld.so"
  29617. - shlibpath_var=LD_LIBRARY_PATH
  29618. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29619. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29620. - soname_spec='${libname}${release}${shared_ext}$major'
  29621. - if test "X$HPUX_IA64_MODE" = X32; then
  29622. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  29623. - else
  29624. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  29625. - fi
  29626. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29627. - ;;
  29628. - hppa*64*)
  29629. - shrext_cmds='.sl'
  29630. - hardcode_into_libs=yes
  29631. - dynamic_linker="$host_os dld.sl"
  29632. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  29633. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29634. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29635. - soname_spec='${libname}${release}${shared_ext}$major'
  29636. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  29637. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29638. - ;;
  29639. - *)
  29640. - shrext_cmds='.sl'
  29641. - dynamic_linker="$host_os dld.sl"
  29642. - shlibpath_var=SHLIB_PATH
  29643. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  29644. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29645. - soname_spec='${libname}${release}${shared_ext}$major'
  29646. - ;;
  29647. - esac
  29648. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  29649. - postinstall_cmds='chmod 555 $lib'
  29650. - ;;
  29651. -
  29652. -interix[3-9]*)
  29653. - version_type=linux
  29654. - need_lib_prefix=no
  29655. - need_version=no
  29656. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29657. - soname_spec='${libname}${release}${shared_ext}$major'
  29658. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  29659. - shlibpath_var=LD_LIBRARY_PATH
  29660. - shlibpath_overrides_runpath=no
  29661. - hardcode_into_libs=yes
  29662. - ;;
  29663. -
  29664. -irix5* | irix6* | nonstopux*)
  29665. - case $host_os in
  29666. - nonstopux*) version_type=nonstopux ;;
  29667. - *)
  29668. - if test "$lt_cv_prog_gnu_ld" = yes; then
  29669. - version_type=linux
  29670. - else
  29671. - version_type=irix
  29672. - fi ;;
  29673. - esac
  29674. - need_lib_prefix=no
  29675. - need_version=no
  29676. - soname_spec='${libname}${release}${shared_ext}$major'
  29677. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  29678. - case $host_os in
  29679. - irix5* | nonstopux*)
  29680. - libsuff= shlibsuff=
  29681. - ;;
  29682. - *)
  29683. - case $LD in # libtool.m4 will add one of these switches to LD
  29684. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  29685. - libsuff= shlibsuff= libmagic=32-bit;;
  29686. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  29687. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  29688. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  29689. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  29690. - *) libsuff= shlibsuff= libmagic=never-match;;
  29691. - esac
  29692. - ;;
  29693. - esac
  29694. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  29695. - shlibpath_overrides_runpath=no
  29696. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  29697. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  29698. - hardcode_into_libs=yes
  29699. - ;;
  29700. -
  29701. -# No shared lib support for Linux oldld, aout, or coff.
  29702. -linux*oldld* | linux*aout* | linux*coff*)
  29703. - dynamic_linker=no
  29704. - ;;
  29705. -
  29706. -# This must be Linux ELF.
  29707. -linux* | k*bsd*-gnu)
  29708. - version_type=linux
  29709. - need_lib_prefix=no
  29710. - need_version=no
  29711. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29712. - soname_spec='${libname}${release}${shared_ext}$major'
  29713. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  29714. - shlibpath_var=LD_LIBRARY_PATH
  29715. - shlibpath_overrides_runpath=no
  29716. - # This implies no fast_install, which is unacceptable.
  29717. - # Some rework will be needed to allow for fast_install
  29718. - # before this can be enabled.
  29719. - hardcode_into_libs=yes
  29720. -
  29721. - # Append ld.so.conf contents to the search path
  29722. - if test -f /etc/ld.so.conf; then
  29723. - 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' ' '`
  29724. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  29725. - fi
  29726. -
  29727. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  29728. - # powerpc, because MkLinux only supported shared libraries with the
  29729. - # GNU dynamic linker. Since this was broken with cross compilers,
  29730. - # most powerpc-linux boxes support dynamic linking these days and
  29731. - # people can always --disable-shared, the test was removed, and we
  29732. - # assume the GNU/Linux dynamic linker is in use.
  29733. - dynamic_linker='GNU/Linux ld.so'
  29734. - ;;
  29735. -
  29736. -netbsd*)
  29737. - version_type=sunos
  29738. - need_lib_prefix=no
  29739. - need_version=no
  29740. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29741. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29742. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29743. - dynamic_linker='NetBSD (a.out) ld.so'
  29744. - else
  29745. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29746. - soname_spec='${libname}${release}${shared_ext}$major'
  29747. - dynamic_linker='NetBSD ld.elf_so'
  29748. - fi
  29749. - shlibpath_var=LD_LIBRARY_PATH
  29750. - shlibpath_overrides_runpath=yes
  29751. - hardcode_into_libs=yes
  29752. - ;;
  29753. -
  29754. -newsos6)
  29755. - version_type=linux
  29756. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29757. - shlibpath_var=LD_LIBRARY_PATH
  29758. - shlibpath_overrides_runpath=yes
  29759. - ;;
  29760. -
  29761. -nto-qnx*)
  29762. - version_type=linux
  29763. - need_lib_prefix=no
  29764. - need_version=no
  29765. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29766. - soname_spec='${libname}${release}${shared_ext}$major'
  29767. - shlibpath_var=LD_LIBRARY_PATH
  29768. - shlibpath_overrides_runpath=yes
  29769. - ;;
  29770. -
  29771. -openbsd*)
  29772. - version_type=sunos
  29773. - sys_lib_dlsearch_path_spec="/usr/lib"
  29774. - need_lib_prefix=no
  29775. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  29776. - case $host_os in
  29777. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  29778. - *) need_version=no ;;
  29779. - esac
  29780. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29781. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29782. - shlibpath_var=LD_LIBRARY_PATH
  29783. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29784. - case $host_os in
  29785. - openbsd2.[89] | openbsd2.[89].*)
  29786. - shlibpath_overrides_runpath=no
  29787. - ;;
  29788. - *)
  29789. - shlibpath_overrides_runpath=yes
  29790. - ;;
  29791. - esac
  29792. - else
  29793. - shlibpath_overrides_runpath=yes
  29794. - fi
  29795. - ;;
  29796. -
  29797. -os2*)
  29798. - libname_spec='$name'
  29799. - shrext_cmds=".dll"
  29800. - need_lib_prefix=no
  29801. - library_names_spec='$libname${shared_ext} $libname.a'
  29802. - dynamic_linker='OS/2 ld.exe'
  29803. - shlibpath_var=LIBPATH
  29804. - ;;
  29805. -
  29806. -osf3* | osf4* | osf5*)
  29807. - version_type=osf
  29808. - need_lib_prefix=no
  29809. - need_version=no
  29810. - soname_spec='${libname}${release}${shared_ext}$major'
  29811. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29812. - shlibpath_var=LD_LIBRARY_PATH
  29813. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  29814. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  29815. - ;;
  29816. -
  29817. -rdos*)
  29818. - dynamic_linker=no
  29819. - ;;
  29820. -
  29821. -solaris*)
  29822. - version_type=linux
  29823. - need_lib_prefix=no
  29824. - need_version=no
  29825. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29826. - soname_spec='${libname}${release}${shared_ext}$major'
  29827. - shlibpath_var=LD_LIBRARY_PATH
  29828. - shlibpath_overrides_runpath=yes
  29829. - hardcode_into_libs=yes
  29830. - # ldd complains unless libraries are executable
  29831. - postinstall_cmds='chmod +x $lib'
  29832. - ;;
  29833. -
  29834. -sunos4*)
  29835. - version_type=sunos
  29836. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29837. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  29838. - shlibpath_var=LD_LIBRARY_PATH
  29839. - shlibpath_overrides_runpath=yes
  29840. - if test "$with_gnu_ld" = yes; then
  29841. - need_lib_prefix=no
  29842. - fi
  29843. - need_version=yes
  29844. - ;;
  29845. -
  29846. -sysv4 | sysv4.3*)
  29847. - version_type=linux
  29848. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29849. - soname_spec='${libname}${release}${shared_ext}$major'
  29850. - shlibpath_var=LD_LIBRARY_PATH
  29851. - case $host_vendor in
  29852. - sni)
  29853. - shlibpath_overrides_runpath=no
  29854. - need_lib_prefix=no
  29855. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  29856. - runpath_var=LD_RUN_PATH
  29857. - ;;
  29858. - siemens)
  29859. - need_lib_prefix=no
  29860. - ;;
  29861. - motorola)
  29862. - need_lib_prefix=no
  29863. - need_version=no
  29864. - shlibpath_overrides_runpath=no
  29865. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  29866. - ;;
  29867. - esac
  29868. - ;;
  29869. -
  29870. -sysv4*MP*)
  29871. - if test -d /usr/nec ;then
  29872. - version_type=linux
  29873. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  29874. - soname_spec='$libname${shared_ext}.$major'
  29875. - shlibpath_var=LD_LIBRARY_PATH
  29876. - fi
  29877. - ;;
  29878. -
  29879. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  29880. - version_type=freebsd-elf
  29881. - need_lib_prefix=no
  29882. - need_version=no
  29883. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29884. - soname_spec='${libname}${release}${shared_ext}$major'
  29885. - shlibpath_var=LD_LIBRARY_PATH
  29886. - hardcode_into_libs=yes
  29887. - if test "$with_gnu_ld" = yes; then
  29888. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  29889. - shlibpath_overrides_runpath=no
  29890. - else
  29891. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  29892. - shlibpath_overrides_runpath=yes
  29893. - case $host_os in
  29894. - sco3.2v5*)
  29895. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  29896. - ;;
  29897. - esac
  29898. - fi
  29899. - sys_lib_dlsearch_path_spec='/usr/lib'
  29900. - ;;
  29901. -
  29902. -uts4*)
  29903. - version_type=linux
  29904. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29905. - soname_spec='${libname}${release}${shared_ext}$major'
  29906. - shlibpath_var=LD_LIBRARY_PATH
  29907. - ;;
  29908. -
  29909. -*)
  29910. - dynamic_linker=no
  29911. - ;;
  29912. -esac
  29913. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  29914. -echo "${ECHO_T}$dynamic_linker" >&6; }
  29915. -test "$dynamic_linker" = no && can_build_shared=no
  29916. -
  29917. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  29918. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29919. -else
  29920. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  29921. -fi
  29922. -
  29923. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  29924. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  29925. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29926. -else
  29927. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  29928. -fi
  29929. -
  29930. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  29931. -
  29932. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  29933. -if test "$GCC" = yes; then
  29934. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  29935. -fi
  29936. -
  29937. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  29938. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  29939. -hardcode_action_CXX=
  29940. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  29941. - test -n "$runpath_var_CXX" || \
  29942. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  29943. -
  29944. - # We can hardcode non-existant directories.
  29945. - if test "$hardcode_direct_CXX" != no &&
  29946. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  29947. - # have to relink, otherwise we might link with an installed library
  29948. - # when we should be linking with a yet-to-be-installed one
  29949. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  29950. - test "$hardcode_minus_L_CXX" != no; then
  29951. - # Linking always hardcodes the temporary library directory.
  29952. - hardcode_action_CXX=relink
  29953. - else
  29954. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  29955. - hardcode_action_CXX=immediate
  29956. - fi
  29957. -else
  29958. - # We cannot hardcode anything, or else we can only hardcode existing
  29959. - # directories.
  29960. - hardcode_action_CXX=unsupported
  29961. -fi
  29962. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  29963. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  29964. -
  29965. -if test "$hardcode_action_CXX" = relink; then
  29966. - # Fast installation is not supported
  29967. - enable_fast_install=no
  29968. -elif test "$shlibpath_overrides_runpath" = yes ||
  29969. - test "$enable_shared" = no; then
  29970. - # Fast installation is not necessary
  29971. - enable_fast_install=needless
  29972. -fi
  29973. -
  29974. -
  29975. -# The else clause should only fire when bootstrapping the
  29976. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  29977. -# with your package, and you will get complaints that there are
  29978. -# no rules to generate ltmain.sh.
  29979. -if test -f "$ltmain"; then
  29980. - # See if we are running on zsh, and set the options which allow our commands through
  29981. - # without removal of \ escapes.
  29982. - if test -n "${ZSH_VERSION+set}" ; then
  29983. - setopt NO_GLOB_SUBST
  29984. - fi
  29985. - # Now quote all the things that may contain metacharacters while being
  29986. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  29987. - # variables and quote the copies for generation of the libtool script.
  29988. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  29989. - SED SHELL STRIP \
  29990. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  29991. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  29992. - deplibs_check_method reload_flag reload_cmds need_locks \
  29993. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  29994. - lt_cv_sys_global_symbol_to_c_name_address \
  29995. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  29996. - old_postinstall_cmds old_postuninstall_cmds \
  29997. - compiler_CXX \
  29998. - CC_CXX \
  29999. - LD_CXX \
  30000. - lt_prog_compiler_wl_CXX \
  30001. - lt_prog_compiler_pic_CXX \
  30002. - lt_prog_compiler_static_CXX \
  30003. - lt_prog_compiler_no_builtin_flag_CXX \
  30004. - export_dynamic_flag_spec_CXX \
  30005. - thread_safe_flag_spec_CXX \
  30006. - whole_archive_flag_spec_CXX \
  30007. - enable_shared_with_static_runtimes_CXX \
  30008. - old_archive_cmds_CXX \
  30009. - old_archive_from_new_cmds_CXX \
  30010. - predep_objects_CXX \
  30011. - postdep_objects_CXX \
  30012. - predeps_CXX \
  30013. - postdeps_CXX \
  30014. - compiler_lib_search_path_CXX \
  30015. - compiler_lib_search_dirs_CXX \
  30016. - archive_cmds_CXX \
  30017. - archive_expsym_cmds_CXX \
  30018. - postinstall_cmds_CXX \
  30019. - postuninstall_cmds_CXX \
  30020. - old_archive_from_expsyms_cmds_CXX \
  30021. - allow_undefined_flag_CXX \
  30022. - no_undefined_flag_CXX \
  30023. - export_symbols_cmds_CXX \
  30024. - hardcode_libdir_flag_spec_CXX \
  30025. - hardcode_libdir_flag_spec_ld_CXX \
  30026. - hardcode_libdir_separator_CXX \
  30027. - hardcode_automatic_CXX \
  30028. - module_cmds_CXX \
  30029. - module_expsym_cmds_CXX \
  30030. - lt_cv_prog_compiler_c_o_CXX \
  30031. - fix_srcfile_path_CXX \
  30032. - exclude_expsyms_CXX \
  30033. - include_expsyms_CXX; do
  30034. -
  30035. - case $var in
  30036. - old_archive_cmds_CXX | \
  30037. - old_archive_from_new_cmds_CXX | \
  30038. - archive_cmds_CXX | \
  30039. - archive_expsym_cmds_CXX | \
  30040. - module_cmds_CXX | \
  30041. - module_expsym_cmds_CXX | \
  30042. - old_archive_from_expsyms_cmds_CXX | \
  30043. - export_symbols_cmds_CXX | \
  30044. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30045. - postinstall_cmds | postuninstall_cmds | \
  30046. - old_postinstall_cmds | old_postuninstall_cmds | \
  30047. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30048. - # Double-quote double-evaled strings.
  30049. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30050. - ;;
  30051. - *)
  30052. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30053. - ;;
  30054. - esac
  30055. - done
  30056. -
  30057. - case $lt_echo in
  30058. - *'\$0 --fallback-echo"')
  30059. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30060. - ;;
  30061. - esac
  30062. -
  30063. -cfgfile="$ofile"
  30064. -
  30065. - cat <<__EOF__ >> "$cfgfile"
  30066. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  30067. -
  30068. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30069. -
  30070. -# Shell to use when invoking shell scripts.
  30071. -SHELL=$lt_SHELL
  30072. -
  30073. -# Whether or not to build shared libraries.
  30074. -build_libtool_libs=$enable_shared
  30075. -
  30076. -# Whether or not to build static libraries.
  30077. -build_old_libs=$enable_static
  30078. -
  30079. -# Whether or not to add -lc for building shared libraries.
  30080. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  30081. -
  30082. -# Whether or not to disallow shared libs when runtime libs are static
  30083. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  30084. -
  30085. -# Whether or not to optimize for fast installation.
  30086. -fast_install=$enable_fast_install
  30087. -
  30088. -# The host system.
  30089. -host_alias=$host_alias
  30090. -host=$host
  30091. -host_os=$host_os
  30092. -
  30093. -# The build system.
  30094. -build_alias=$build_alias
  30095. -build=$build
  30096. -build_os=$build_os
  30097. -
  30098. -# An echo program that does not interpret backslashes.
  30099. -echo=$lt_echo
  30100. -
  30101. -# The archiver.
  30102. -AR=$lt_AR
  30103. -AR_FLAGS=$lt_AR_FLAGS
  30104. -
  30105. -# A C compiler.
  30106. -LTCC=$lt_LTCC
  30107. -
  30108. -# LTCC compiler flags.
  30109. -LTCFLAGS=$lt_LTCFLAGS
  30110. -
  30111. -# A language-specific compiler.
  30112. -CC=$lt_compiler_CXX
  30113. -
  30114. -# Is the compiler the GNU C compiler?
  30115. -with_gcc=$GCC_CXX
  30116. -
  30117. -# An ERE matcher.
  30118. -EGREP=$lt_EGREP
  30119. -
  30120. -# The linker used to build libraries.
  30121. -LD=$lt_LD_CXX
  30122. -
  30123. -# Whether we need hard or soft links.
  30124. -LN_S=$lt_LN_S
  30125. -
  30126. -# A BSD-compatible nm program.
  30127. -NM=$lt_NM
  30128. -
  30129. -# A symbol stripping program
  30130. -STRIP=$lt_STRIP
  30131. -
  30132. -# Used to examine libraries when file_magic_cmd begins "file"
  30133. -MAGIC_CMD=$MAGIC_CMD
  30134. -
  30135. -# Used on cygwin: DLL creation program.
  30136. -DLLTOOL="$DLLTOOL"
  30137. -
  30138. -# Used on cygwin: object dumper.
  30139. -OBJDUMP="$OBJDUMP"
  30140. -
  30141. -# Used on cygwin: assembler.
  30142. -AS="$AS"
  30143. -
  30144. -# The name of the directory that contains temporary libtool files.
  30145. -objdir=$objdir
  30146. -
  30147. -# How to create reloadable object files.
  30148. -reload_flag=$lt_reload_flag
  30149. -reload_cmds=$lt_reload_cmds
  30150. -
  30151. -# How to pass a linker flag through the compiler.
  30152. -wl=$lt_lt_prog_compiler_wl_CXX
  30153. -
  30154. -# Object file suffix (normally "o").
  30155. -objext="$ac_objext"
  30156. -
  30157. -# Old archive suffix (normally "a").
  30158. -libext="$libext"
  30159. -
  30160. -# Shared library suffix (normally ".so").
  30161. -shrext_cmds='$shrext_cmds'
  30162. -
  30163. -# Executable file suffix (normally "").
  30164. -exeext="$exeext"
  30165. -
  30166. -# Additional compiler flags for building library objects.
  30167. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  30168. -pic_mode=$pic_mode
  30169. -
  30170. -# What is the maximum length of a command?
  30171. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30172. -
  30173. -# Does compiler simultaneously support -c and -o options?
  30174. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  30175. -
  30176. -# Must we lock files when doing compilation?
  30177. -need_locks=$lt_need_locks
  30178. -
  30179. -# Do we need the lib prefix for modules?
  30180. -need_lib_prefix=$need_lib_prefix
  30181. -
  30182. -# Do we need a version for libraries?
  30183. -need_version=$need_version
  30184. -
  30185. -# Whether dlopen is supported.
  30186. -dlopen_support=$enable_dlopen
  30187. -
  30188. -# Whether dlopen of programs is supported.
  30189. -dlopen_self=$enable_dlopen_self
  30190. -
  30191. -# Whether dlopen of statically linked programs is supported.
  30192. -dlopen_self_static=$enable_dlopen_self_static
  30193. -
  30194. -# Compiler flag to prevent dynamic linking.
  30195. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  30196. -
  30197. -# Compiler flag to turn off builtin functions.
  30198. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  30199. -
  30200. -# Compiler flag to allow reflexive dlopens.
  30201. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  30202. -
  30203. -# Compiler flag to generate shared objects directly from archives.
  30204. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  30205. -
  30206. -# Compiler flag to generate thread-safe objects.
  30207. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  30208. -
  30209. -# Library versioning type.
  30210. -version_type=$version_type
  30211. -
  30212. -# Format of library name prefix.
  30213. -libname_spec=$lt_libname_spec
  30214. -
  30215. -# List of archive names. First name is the real one, the rest are links.
  30216. -# The last name is the one that the linker finds with -lNAME.
  30217. -library_names_spec=$lt_library_names_spec
  30218. -
  30219. -# The coded name of the library, if different from the real name.
  30220. -soname_spec=$lt_soname_spec
  30221. -
  30222. -# Commands used to build and install an old-style archive.
  30223. -RANLIB=$lt_RANLIB
  30224. -old_archive_cmds=$lt_old_archive_cmds_CXX
  30225. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30226. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30227. -
  30228. -# Create an old-style archive from a shared archive.
  30229. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  30230. -
  30231. -# Create a temporary old-style archive to link instead of a shared archive.
  30232. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  30233. -
  30234. -# Commands used to build and install a shared archive.
  30235. -archive_cmds=$lt_archive_cmds_CXX
  30236. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  30237. -postinstall_cmds=$lt_postinstall_cmds
  30238. -postuninstall_cmds=$lt_postuninstall_cmds
  30239. -
  30240. -# Commands used to build a loadable module (assumed same as above if empty)
  30241. -module_cmds=$lt_module_cmds_CXX
  30242. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  30243. -
  30244. -# Commands to strip libraries.
  30245. -old_striplib=$lt_old_striplib
  30246. -striplib=$lt_striplib
  30247. -
  30248. -# Dependencies to place before the objects being linked to create a
  30249. -# shared library.
  30250. -predep_objects=$lt_predep_objects_CXX
  30251. -
  30252. -# Dependencies to place after the objects being linked to create a
  30253. -# shared library.
  30254. -postdep_objects=$lt_postdep_objects_CXX
  30255. -
  30256. -# Dependencies to place before the objects being linked to create a
  30257. -# shared library.
  30258. -predeps=$lt_predeps_CXX
  30259. -
  30260. -# Dependencies to place after the objects being linked to create a
  30261. -# shared library.
  30262. -postdeps=$lt_postdeps_CXX
  30263. -
  30264. -# The directories searched by this compiler when creating a shared
  30265. -# library
  30266. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  30267. -
  30268. -# The library search path used internally by the compiler when linking
  30269. -# a shared library.
  30270. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  30271. -
  30272. -# Method to check whether dependent libraries are shared objects.
  30273. -deplibs_check_method=$lt_deplibs_check_method
  30274. -
  30275. -# Command to use when deplibs_check_method == file_magic.
  30276. -file_magic_cmd=$lt_file_magic_cmd
  30277. -
  30278. -# Flag that allows shared libraries with undefined symbols to be built.
  30279. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  30280. -
  30281. -# Flag that forces no undefined symbols.
  30282. -no_undefined_flag=$lt_no_undefined_flag_CXX
  30283. -
  30284. -# Commands used to finish a libtool library installation in a directory.
  30285. -finish_cmds=$lt_finish_cmds
  30286. -
  30287. -# Same as above, but a single script fragment to be evaled but not shown.
  30288. -finish_eval=$lt_finish_eval
  30289. -
  30290. -# Take the output of nm and produce a listing of raw symbols and C names.
  30291. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30292. -
  30293. -# Transform the output of nm in a proper C declaration
  30294. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30295. -
  30296. -# Transform the output of nm in a C name address pair
  30297. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30298. -
  30299. -# This is the shared library runtime path variable.
  30300. -runpath_var=$runpath_var
  30301. -
  30302. -# This is the shared library path variable.
  30303. -shlibpath_var=$shlibpath_var
  30304. -
  30305. -# Is shlibpath searched before the hard-coded library search path?
  30306. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30307. -
  30308. -# How to hardcode a shared library path into an executable.
  30309. -hardcode_action=$hardcode_action_CXX
  30310. -
  30311. -# Whether we should hardcode library paths into libraries.
  30312. -hardcode_into_libs=$hardcode_into_libs
  30313. -
  30314. -# Flag to hardcode \$libdir into a binary during linking.
  30315. -# This must work even if \$libdir does not exist.
  30316. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  30317. -
  30318. -# If ld is used when linking, flag to hardcode \$libdir into
  30319. -# a binary during linking. This must work even if \$libdir does
  30320. -# not exist.
  30321. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  30322. -
  30323. -# Whether we need a single -rpath flag with a separated argument.
  30324. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  30325. -
  30326. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  30327. -# resulting binary.
  30328. -hardcode_direct=$hardcode_direct_CXX
  30329. -
  30330. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  30331. -# resulting binary.
  30332. -hardcode_minus_L=$hardcode_minus_L_CXX
  30333. -
  30334. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  30335. -# the resulting binary.
  30336. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  30337. -
  30338. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  30339. -# and all subsequent libraries and executables linked against it.
  30340. -hardcode_automatic=$hardcode_automatic_CXX
  30341. -
  30342. -# Variables whose values should be saved in libtool wrapper scripts and
  30343. -# restored at relink time.
  30344. -variables_saved_for_relink="$variables_saved_for_relink"
  30345. -
  30346. -# Whether libtool must link a program against all its dependency libraries.
  30347. -link_all_deplibs=$link_all_deplibs_CXX
  30348. -
  30349. -# Compile-time system search path for libraries
  30350. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30351. -
  30352. -# Run-time system search path for libraries
  30353. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30354. -
  30355. -# Fix the shell variable \$srcfile for the compiler.
  30356. -fix_srcfile_path=$lt_fix_srcfile_path
  30357. -
  30358. -# Set to yes if exported symbols are required.
  30359. -always_export_symbols=$always_export_symbols_CXX
  30360. -
  30361. -# The commands to list exported symbols.
  30362. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  30363. -
  30364. -# The commands to extract the exported symbol list from a shared archive.
  30365. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30366. -
  30367. -# Symbols that should not be listed in the preloaded symbols.
  30368. -exclude_expsyms=$lt_exclude_expsyms_CXX
  30369. -
  30370. -# Symbols that must always be exported.
  30371. -include_expsyms=$lt_include_expsyms_CXX
  30372. -
  30373. -# ### END LIBTOOL TAG CONFIG: $tagname
  30374. -
  30375. -__EOF__
  30376. -
  30377. -
  30378. -else
  30379. - # If there is no Makefile yet, we rely on a make rule to execute
  30380. - # `config.status --recheck' to rerun these tests and create the
  30381. - # libtool script then.
  30382. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  30383. - if test -f "$ltmain_in"; then
  30384. - test -f Makefile && make "$ltmain"
  30385. - fi
  30386. -fi
  30387. -
  30388. -
  30389. -ac_ext=c
  30390. -ac_cpp='$CPP $CPPFLAGS'
  30391. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30392. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30393. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30394. -
  30395. -CC=$lt_save_CC
  30396. -LDCXX=$LD
  30397. -LD=$lt_save_LD
  30398. -GCC=$lt_save_GCC
  30399. -with_gnu_ldcxx=$with_gnu_ld
  30400. -with_gnu_ld=$lt_save_with_gnu_ld
  30401. -lt_cv_path_LDCXX=$lt_cv_path_LD
  30402. -lt_cv_path_LD=$lt_save_path_LD
  30403. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  30404. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  30405. -
  30406. - else
  30407. - tagname=""
  30408. - fi
  30409. - ;;
  30410. -
  30411. - F77)
  30412. - if test -n "$F77" && test "X$F77" != "Xno"; then
  30413. -
  30414. -ac_ext=f
  30415. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  30416. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30417. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  30418. -
  30419. -
  30420. -archive_cmds_need_lc_F77=no
  30421. -allow_undefined_flag_F77=
  30422. -always_export_symbols_F77=no
  30423. -archive_expsym_cmds_F77=
  30424. -export_dynamic_flag_spec_F77=
  30425. -hardcode_direct_F77=no
  30426. -hardcode_libdir_flag_spec_F77=
  30427. -hardcode_libdir_flag_spec_ld_F77=
  30428. -hardcode_libdir_separator_F77=
  30429. -hardcode_minus_L_F77=no
  30430. -hardcode_automatic_F77=no
  30431. -module_cmds_F77=
  30432. -module_expsym_cmds_F77=
  30433. -link_all_deplibs_F77=unknown
  30434. -old_archive_cmds_F77=$old_archive_cmds
  30435. -no_undefined_flag_F77=
  30436. -whole_archive_flag_spec_F77=
  30437. -enable_shared_with_static_runtimes_F77=no
  30438. -
  30439. -# Source file extension for f77 test sources.
  30440. -ac_ext=f
  30441. -
  30442. -# Object file extension for compiled f77 test sources.
  30443. -objext=o
  30444. -objext_F77=$objext
  30445. -
  30446. -# Code to be used in simple compile tests
  30447. -lt_simple_compile_test_code="\
  30448. - subroutine t
  30449. - return
  30450. - end
  30451. -"
  30452. -
  30453. -# Code to be used in simple link tests
  30454. -lt_simple_link_test_code="\
  30455. - program t
  30456. - end
  30457. -"
  30458. -
  30459. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  30460. -
  30461. -# If no C compiler was specified, use CC.
  30462. -LTCC=${LTCC-"$CC"}
  30463. -
  30464. -# If no C compiler flags were specified, use CFLAGS.
  30465. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30466. -
  30467. -# Allow CC to be a program name with arguments.
  30468. -compiler=$CC
  30469. -
  30470. -
  30471. -# save warnings/boilerplate of simple test code
  30472. -ac_outfile=conftest.$ac_objext
  30473. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  30474. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30475. -_lt_compiler_boilerplate=`cat conftest.err`
  30476. -$rm conftest*
  30477. -
  30478. -ac_outfile=conftest.$ac_objext
  30479. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  30480. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30481. -_lt_linker_boilerplate=`cat conftest.err`
  30482. -$rm -r conftest*
  30483. -
  30484. -
  30485. -# Allow CC to be a program name with arguments.
  30486. -lt_save_CC="$CC"
  30487. -CC=${F77-"f77"}
  30488. -compiler=$CC
  30489. -compiler_F77=$CC
  30490. -for cc_temp in $compiler""; do
  30491. - case $cc_temp in
  30492. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30493. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30494. - \-*) ;;
  30495. - *) break;;
  30496. - esac
  30497. -done
  30498. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30499. -
  30500. -
  30501. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  30502. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  30503. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  30504. -echo "${ECHO_T}$can_build_shared" >&6; }
  30505. -
  30506. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  30507. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  30508. -test "$can_build_shared" = "no" && enable_shared=no
  30509. -
  30510. -# On AIX, shared libraries and static libraries use the same namespace, and
  30511. -# are all built from PIC.
  30512. -case $host_os in
  30513. -aix3*)
  30514. - test "$enable_shared" = yes && enable_static=no
  30515. - if test -n "$RANLIB"; then
  30516. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30517. - postinstall_cmds='$RANLIB $lib'
  30518. - fi
  30519. - ;;
  30520. -aix[4-9]*)
  30521. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30522. - test "$enable_shared" = yes && enable_static=no
  30523. - fi
  30524. - ;;
  30525. -esac
  30526. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  30527. -echo "${ECHO_T}$enable_shared" >&6; }
  30528. -
  30529. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  30530. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  30531. -# Make sure either enable_shared or enable_static is yes.
  30532. -test "$enable_shared" = yes || enable_static=yes
  30533. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  30534. -echo "${ECHO_T}$enable_static" >&6; }
  30535. -
  30536. -GCC_F77="$G77"
  30537. -LD_F77="$LD"
  30538. -
  30539. -lt_prog_compiler_wl_F77=
  30540. -lt_prog_compiler_pic_F77=
  30541. -lt_prog_compiler_static_F77=
  30542. -
  30543. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  30544. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  30545. -
  30546. - if test "$GCC" = yes; then
  30547. - lt_prog_compiler_wl_F77='-Wl,'
  30548. - lt_prog_compiler_static_F77='-static'
  30549. -
  30550. - case $host_os in
  30551. - aix*)
  30552. - # All AIX code is PIC.
  30553. - if test "$host_cpu" = ia64; then
  30554. - # AIX 5 now supports IA64 processor
  30555. - lt_prog_compiler_static_F77='-Bstatic'
  30556. - fi
  30557. - ;;
  30558. -
  30559. - amigaos*)
  30560. - # FIXME: we need at least 68020 code to build shared libraries, but
  30561. - # adding the `-m68020' flag to GCC prevents building anything better,
  30562. - # like `-m68040'.
  30563. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  30564. - ;;
  30565. -
  30566. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30567. - # PIC is the default for these OSes.
  30568. - ;;
  30569. -
  30570. - mingw* | cygwin* | pw32* | os2*)
  30571. - # This hack is so that the source file can tell whether it is being
  30572. - # built for inclusion in a dll (and should export symbols for example).
  30573. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  30574. - # (--disable-auto-import) libraries
  30575. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30576. - ;;
  30577. -
  30578. - darwin* | rhapsody*)
  30579. - # PIC is the default on this platform
  30580. - # Common symbols not allowed in MH_DYLIB files
  30581. - lt_prog_compiler_pic_F77='-fno-common'
  30582. - ;;
  30583. -
  30584. - interix[3-9]*)
  30585. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  30586. - # Instead, we relocate shared libraries at runtime.
  30587. - ;;
  30588. -
  30589. - msdosdjgpp*)
  30590. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  30591. - # on systems that don't support them.
  30592. - lt_prog_compiler_can_build_shared_F77=no
  30593. - enable_shared=no
  30594. - ;;
  30595. -
  30596. - sysv4*MP*)
  30597. - if test -d /usr/nec; then
  30598. - lt_prog_compiler_pic_F77=-Kconform_pic
  30599. - fi
  30600. - ;;
  30601. -
  30602. - hpux*)
  30603. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30604. - # not for PA HP-UX.
  30605. - case $host_cpu in
  30606. - hppa*64*|ia64*)
  30607. - # +Z the default
  30608. - ;;
  30609. - *)
  30610. - lt_prog_compiler_pic_F77='-fPIC'
  30611. - ;;
  30612. - esac
  30613. - ;;
  30614. -
  30615. - *)
  30616. - lt_prog_compiler_pic_F77='-fPIC'
  30617. - ;;
  30618. - esac
  30619. - else
  30620. - # PORTME Check for flag to pass linker flags through the system compiler.
  30621. - case $host_os in
  30622. - aix*)
  30623. - lt_prog_compiler_wl_F77='-Wl,'
  30624. - if test "$host_cpu" = ia64; then
  30625. - # AIX 5 now supports IA64 processor
  30626. - lt_prog_compiler_static_F77='-Bstatic'
  30627. - else
  30628. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  30629. - fi
  30630. - ;;
  30631. - darwin*)
  30632. - # PIC is the default on this platform
  30633. - # Common symbols not allowed in MH_DYLIB files
  30634. - case $cc_basename in
  30635. - xlc*)
  30636. - lt_prog_compiler_pic_F77='-qnocommon'
  30637. - lt_prog_compiler_wl_F77='-Wl,'
  30638. - ;;
  30639. - esac
  30640. - ;;
  30641. -
  30642. - mingw* | cygwin* | pw32* | os2*)
  30643. - # This hack is so that the source file can tell whether it is being
  30644. - # built for inclusion in a dll (and should export symbols for example).
  30645. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30646. - ;;
  30647. -
  30648. - hpux9* | hpux10* | hpux11*)
  30649. - lt_prog_compiler_wl_F77='-Wl,'
  30650. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30651. - # not for PA HP-UX.
  30652. - case $host_cpu in
  30653. - hppa*64*|ia64*)
  30654. - # +Z the default
  30655. - ;;
  30656. - *)
  30657. - lt_prog_compiler_pic_F77='+Z'
  30658. - ;;
  30659. - esac
  30660. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  30661. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  30662. - ;;
  30663. -
  30664. - irix5* | irix6* | nonstopux*)
  30665. - lt_prog_compiler_wl_F77='-Wl,'
  30666. - # PIC (with -KPIC) is the default.
  30667. - lt_prog_compiler_static_F77='-non_shared'
  30668. - ;;
  30669. -
  30670. - newsos6)
  30671. - lt_prog_compiler_pic_F77='-KPIC'
  30672. - lt_prog_compiler_static_F77='-Bstatic'
  30673. - ;;
  30674. -
  30675. - linux* | k*bsd*-gnu)
  30676. - case $cc_basename in
  30677. - icc* | ecc*)
  30678. - lt_prog_compiler_wl_F77='-Wl,'
  30679. - lt_prog_compiler_pic_F77='-KPIC'
  30680. - lt_prog_compiler_static_F77='-static'
  30681. - ;;
  30682. - pgcc* | pgf77* | pgf90* | pgf95*)
  30683. - # Portland Group compilers (*not* the Pentium gcc compiler,
  30684. - # which looks to be a dead project)
  30685. - lt_prog_compiler_wl_F77='-Wl,'
  30686. - lt_prog_compiler_pic_F77='-fpic'
  30687. - lt_prog_compiler_static_F77='-Bstatic'
  30688. - ;;
  30689. - ccc*)
  30690. - lt_prog_compiler_wl_F77='-Wl,'
  30691. - # All Alpha code is PIC.
  30692. - lt_prog_compiler_static_F77='-non_shared'
  30693. - ;;
  30694. - *)
  30695. - case `$CC -V 2>&1 | sed 5q` in
  30696. - *Sun\ C*)
  30697. - # Sun C 5.9
  30698. - lt_prog_compiler_pic_F77='-KPIC'
  30699. - lt_prog_compiler_static_F77='-Bstatic'
  30700. - lt_prog_compiler_wl_F77='-Wl,'
  30701. - ;;
  30702. - *Sun\ F*)
  30703. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  30704. - lt_prog_compiler_pic_F77='-KPIC'
  30705. - lt_prog_compiler_static_F77='-Bstatic'
  30706. - lt_prog_compiler_wl_F77=''
  30707. - ;;
  30708. - esac
  30709. - ;;
  30710. - esac
  30711. - ;;
  30712. -
  30713. - osf3* | osf4* | osf5*)
  30714. - lt_prog_compiler_wl_F77='-Wl,'
  30715. - # All OSF/1 code is PIC.
  30716. - lt_prog_compiler_static_F77='-non_shared'
  30717. - ;;
  30718. -
  30719. - rdos*)
  30720. - lt_prog_compiler_static_F77='-non_shared'
  30721. - ;;
  30722. -
  30723. - solaris*)
  30724. - lt_prog_compiler_pic_F77='-KPIC'
  30725. - lt_prog_compiler_static_F77='-Bstatic'
  30726. - case $cc_basename in
  30727. - f77* | f90* | f95*)
  30728. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  30729. - *)
  30730. - lt_prog_compiler_wl_F77='-Wl,';;
  30731. - esac
  30732. - ;;
  30733. -
  30734. - sunos4*)
  30735. - lt_prog_compiler_wl_F77='-Qoption ld '
  30736. - lt_prog_compiler_pic_F77='-PIC'
  30737. - lt_prog_compiler_static_F77='-Bstatic'
  30738. - ;;
  30739. -
  30740. - sysv4 | sysv4.2uw2* | sysv4.3*)
  30741. - lt_prog_compiler_wl_F77='-Wl,'
  30742. - lt_prog_compiler_pic_F77='-KPIC'
  30743. - lt_prog_compiler_static_F77='-Bstatic'
  30744. - ;;
  30745. -
  30746. - sysv4*MP*)
  30747. - if test -d /usr/nec ;then
  30748. - lt_prog_compiler_pic_F77='-Kconform_pic'
  30749. - lt_prog_compiler_static_F77='-Bstatic'
  30750. - fi
  30751. - ;;
  30752. -
  30753. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30754. - lt_prog_compiler_wl_F77='-Wl,'
  30755. - lt_prog_compiler_pic_F77='-KPIC'
  30756. - lt_prog_compiler_static_F77='-Bstatic'
  30757. - ;;
  30758. -
  30759. - unicos*)
  30760. - lt_prog_compiler_wl_F77='-Wl,'
  30761. - lt_prog_compiler_can_build_shared_F77=no
  30762. - ;;
  30763. -
  30764. - uts4*)
  30765. - lt_prog_compiler_pic_F77='-pic'
  30766. - lt_prog_compiler_static_F77='-Bstatic'
  30767. - ;;
  30768. -
  30769. - *)
  30770. - lt_prog_compiler_can_build_shared_F77=no
  30771. - ;;
  30772. - esac
  30773. - fi
  30774. -
  30775. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  30776. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  30777. -
  30778. -#
  30779. -# Check to make sure the PIC flag actually works.
  30780. -#
  30781. -if test -n "$lt_prog_compiler_pic_F77"; then
  30782. -
  30783. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  30784. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  30785. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  30786. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30787. -else
  30788. - lt_cv_prog_compiler_pic_works_F77=no
  30789. - ac_outfile=conftest.$ac_objext
  30790. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30791. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  30792. - # Insert the option either (1) after the last *FLAGS variable, or
  30793. - # (2) before a word containing "conftest.", or (3) at the end.
  30794. - # Note that $ac_compile itself does not contain backslashes and begins
  30795. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30796. - # The option is referenced via a variable to avoid confusing sed.
  30797. - lt_compile=`echo "$ac_compile" | $SED \
  30798. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30799. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30800. - -e 's:$: $lt_compiler_flag:'`
  30801. - (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
  30802. - (eval "$lt_compile" 2>conftest.err)
  30803. - ac_status=$?
  30804. - cat conftest.err >&5
  30805. - echo "$as_me:14646: \$? = $ac_status" >&5
  30806. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30807. - # The compiler can only warn and ignore the option if not recognized
  30808. - # So say no if there are warnings other than the usual output.
  30809. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30810. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30811. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30812. - lt_cv_prog_compiler_pic_works_F77=yes
  30813. - fi
  30814. - fi
  30815. - $rm conftest*
  30816. -
  30817. -fi
  30818. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  30819. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  30820. -
  30821. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  30822. - case $lt_prog_compiler_pic_F77 in
  30823. - "" | " "*) ;;
  30824. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  30825. - esac
  30826. -else
  30827. - lt_prog_compiler_pic_F77=
  30828. - lt_prog_compiler_can_build_shared_F77=no
  30829. -fi
  30830. -
  30831. -fi
  30832. -case $host_os in
  30833. - # For platforms which do not support PIC, -DPIC is meaningless:
  30834. - *djgpp*)
  30835. - lt_prog_compiler_pic_F77=
  30836. - ;;
  30837. - *)
  30838. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  30839. - ;;
  30840. -esac
  30841. -
  30842. -#
  30843. -# Check to make sure the static flag actually works.
  30844. -#
  30845. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  30846. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30847. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  30848. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  30849. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30850. -else
  30851. - lt_cv_prog_compiler_static_works_F77=no
  30852. - save_LDFLAGS="$LDFLAGS"
  30853. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  30854. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  30855. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30856. - # The linker can only warn and ignore the option if not recognized
  30857. - # So say no if there are warnings
  30858. - if test -s conftest.err; then
  30859. - # Append any errors to the config.log.
  30860. - cat conftest.err 1>&5
  30861. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30862. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30863. - if diff conftest.exp conftest.er2 >/dev/null; then
  30864. - lt_cv_prog_compiler_static_works_F77=yes
  30865. - fi
  30866. - else
  30867. - lt_cv_prog_compiler_static_works_F77=yes
  30868. - fi
  30869. - fi
  30870. - $rm -r conftest*
  30871. - LDFLAGS="$save_LDFLAGS"
  30872. -
  30873. -fi
  30874. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  30875. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  30876. -
  30877. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  30878. - :
  30879. -else
  30880. - lt_prog_compiler_static_F77=
  30881. -fi
  30882. -
  30883. -
  30884. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30885. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  30886. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  30887. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30888. -else
  30889. - lt_cv_prog_compiler_c_o_F77=no
  30890. - $rm -r conftest 2>/dev/null
  30891. - mkdir conftest
  30892. - cd conftest
  30893. - mkdir out
  30894. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30895. -
  30896. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  30897. - # Insert the option either (1) after the last *FLAGS variable, or
  30898. - # (2) before a word containing "conftest.", or (3) at the end.
  30899. - # Note that $ac_compile itself does not contain backslashes and begins
  30900. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30901. - lt_compile=`echo "$ac_compile" | $SED \
  30902. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30903. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30904. - -e 's:$: $lt_compiler_flag:'`
  30905. - (eval echo "\"\$as_me:14746: $lt_compile\"" >&5)
  30906. - (eval "$lt_compile" 2>out/conftest.err)
  30907. - ac_status=$?
  30908. - cat out/conftest.err >&5
  30909. - echo "$as_me:14750: \$? = $ac_status" >&5
  30910. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30911. - then
  30912. - # The compiler can only warn and ignore the option if not recognized
  30913. - # So say no if there are warnings
  30914. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30915. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30916. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30917. - lt_cv_prog_compiler_c_o_F77=yes
  30918. - fi
  30919. - fi
  30920. - chmod u+w . 2>&5
  30921. - $rm conftest*
  30922. - # SGI C++ compiler will create directory out/ii_files/ for
  30923. - # template instantiation
  30924. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  30925. - $rm out/* && rmdir out
  30926. - cd ..
  30927. - rmdir conftest
  30928. - $rm conftest*
  30929. -
  30930. -fi
  30931. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  30932. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  30933. -
  30934. -
  30935. -hard_links="nottested"
  30936. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  30937. - # do not overwrite the value of need_locks provided by the user
  30938. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  30939. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  30940. - hard_links=yes
  30941. - $rm conftest*
  30942. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30943. - touch conftest.a
  30944. - ln conftest.a conftest.b 2>&5 || hard_links=no
  30945. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30946. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  30947. -echo "${ECHO_T}$hard_links" >&6; }
  30948. - if test "$hard_links" = no; then
  30949. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30950. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30951. - need_locks=warn
  30952. - fi
  30953. -else
  30954. - need_locks=no
  30955. -fi
  30956. -
  30957. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30958. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  30959. -
  30960. - runpath_var=
  30961. - allow_undefined_flag_F77=
  30962. - enable_shared_with_static_runtimes_F77=no
  30963. - archive_cmds_F77=
  30964. - archive_expsym_cmds_F77=
  30965. - old_archive_From_new_cmds_F77=
  30966. - old_archive_from_expsyms_cmds_F77=
  30967. - export_dynamic_flag_spec_F77=
  30968. - whole_archive_flag_spec_F77=
  30969. - thread_safe_flag_spec_F77=
  30970. - hardcode_libdir_flag_spec_F77=
  30971. - hardcode_libdir_flag_spec_ld_F77=
  30972. - hardcode_libdir_separator_F77=
  30973. - hardcode_direct_F77=no
  30974. - hardcode_minus_L_F77=no
  30975. - hardcode_shlibpath_var_F77=unsupported
  30976. - link_all_deplibs_F77=unknown
  30977. - hardcode_automatic_F77=no
  30978. - module_cmds_F77=
  30979. - module_expsym_cmds_F77=
  30980. - always_export_symbols_F77=no
  30981. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30982. - # include_expsyms should be a list of space-separated symbols to be *always*
  30983. - # included in the symbol list
  30984. - include_expsyms_F77=
  30985. - # exclude_expsyms can be an extended regexp of symbols to exclude
  30986. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  30987. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  30988. - # as well as any symbol that contains `d'.
  30989. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  30990. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  30991. - # platforms (ab)use it in PIC code, but their linkers get confused if
  30992. - # the symbol is explicitly referenced. Since portable code cannot
  30993. - # rely on this symbol name, it's probably fine to never include it in
  30994. - # preloaded symbol tables.
  30995. - # Exclude shared library initialization/finalization symbols.
  30996. - extract_expsyms_cmds=
  30997. - # Just being paranoid about ensuring that cc_basename is set.
  30998. - for cc_temp in $compiler""; do
  30999. - case $cc_temp in
  31000. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31001. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31002. - \-*) ;;
  31003. - *) break;;
  31004. - esac
  31005. -done
  31006. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31007. -
  31008. - case $host_os in
  31009. - cygwin* | mingw* | pw32*)
  31010. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  31011. - # When not using gcc, we currently assume that we are using
  31012. - # Microsoft Visual C++.
  31013. - if test "$GCC" != yes; then
  31014. - with_gnu_ld=no
  31015. - fi
  31016. - ;;
  31017. - interix*)
  31018. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  31019. - with_gnu_ld=yes
  31020. - ;;
  31021. - openbsd*)
  31022. - with_gnu_ld=no
  31023. - ;;
  31024. - esac
  31025. -
  31026. - ld_shlibs_F77=yes
  31027. - if test "$with_gnu_ld" = yes; then
  31028. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31029. - wlarc='${wl}'
  31030. -
  31031. - # Set some defaults for GNU ld with shared library support. These
  31032. - # are reset later if shared libraries are not supported. Putting them
  31033. - # here allows them to be overridden if necessary.
  31034. - runpath_var=LD_RUN_PATH
  31035. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  31036. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  31037. - # ancient GNU ld didn't support --whole-archive et. al.
  31038. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  31039. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31040. - else
  31041. - whole_archive_flag_spec_F77=
  31042. - fi
  31043. - supports_anon_versioning=no
  31044. - case `$LD -v 2>/dev/null` in
  31045. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  31046. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  31047. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  31048. - *\ 2.11.*) ;; # other 2.11 versions
  31049. - *) supports_anon_versioning=yes ;;
  31050. - esac
  31051. -
  31052. - # See if GNU ld supports shared libraries.
  31053. - case $host_os in
  31054. - aix[3-9]*)
  31055. - # On AIX/PPC, the GNU linker is very broken
  31056. - if test "$host_cpu" != ia64; then
  31057. - ld_shlibs_F77=no
  31058. - cat <<EOF 1>&2
  31059. -
  31060. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  31061. -*** to be unable to reliably create shared libraries on AIX.
  31062. -*** Therefore, libtool is disabling shared libraries support. If you
  31063. -*** really care for shared libraries, you may want to modify your PATH
  31064. -*** so that a non-GNU linker is found, and then restart.
  31065. -
  31066. -EOF
  31067. - fi
  31068. - ;;
  31069. -
  31070. - amigaos*)
  31071. - 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)'
  31072. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31073. - hardcode_minus_L_F77=yes
  31074. -
  31075. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  31076. - # that the semantics of dynamic libraries on AmigaOS, at least up
  31077. - # to version 4, is to share data among multiple programs linked
  31078. - # with the same dynamic library. Since this doesn't match the
  31079. - # behavior of shared libraries on other platforms, we can't use
  31080. - # them.
  31081. - ld_shlibs_F77=no
  31082. - ;;
  31083. -
  31084. - beos*)
  31085. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31086. - allow_undefined_flag_F77=unsupported
  31087. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31088. - # support --undefined. This deserves some investigation. FIXME
  31089. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31090. - else
  31091. - ld_shlibs_F77=no
  31092. - fi
  31093. - ;;
  31094. -
  31095. - cygwin* | mingw* | pw32*)
  31096. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  31097. - # as there is no search path for DLLs.
  31098. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31099. - allow_undefined_flag_F77=unsupported
  31100. - always_export_symbols_F77=no
  31101. - enable_shared_with_static_runtimes_F77=yes
  31102. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  31103. -
  31104. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31105. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31106. - # If the export-symbols file already is a .def file (1st line
  31107. - # is EXPORTS), use it as is; otherwise, prepend...
  31108. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31109. - cp $export_symbols $output_objdir/$soname.def;
  31110. - else
  31111. - echo EXPORTS > $output_objdir/$soname.def;
  31112. - cat $export_symbols >> $output_objdir/$soname.def;
  31113. - fi~
  31114. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31115. - else
  31116. - ld_shlibs_F77=no
  31117. - fi
  31118. - ;;
  31119. -
  31120. - interix[3-9]*)
  31121. - hardcode_direct_F77=no
  31122. - hardcode_shlibpath_var_F77=no
  31123. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31124. - export_dynamic_flag_spec_F77='${wl}-E'
  31125. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31126. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31127. - # default) and relocated if they conflict, which is a slow very memory
  31128. - # consuming and fragmenting process. To avoid this, we pick a random,
  31129. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31130. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31131. - 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'
  31132. - 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'
  31133. - ;;
  31134. -
  31135. - gnu* | linux* | k*bsd*-gnu)
  31136. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31137. - tmp_addflag=
  31138. - case $cc_basename,$host_cpu in
  31139. - pgcc*) # Portland Group C compiler
  31140. - 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'
  31141. - tmp_addflag=' $pic_flag'
  31142. - ;;
  31143. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  31144. - 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'
  31145. - tmp_addflag=' $pic_flag -Mnomain' ;;
  31146. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  31147. - tmp_addflag=' -i_dynamic' ;;
  31148. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  31149. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  31150. - ifc* | ifort*) # Intel Fortran compiler
  31151. - tmp_addflag=' -nofor_main' ;;
  31152. - esac
  31153. - case `$CC -V 2>&1 | sed 5q` in
  31154. - *Sun\ C*) # Sun C 5.9
  31155. - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31156. - tmp_sharedflag='-G' ;;
  31157. - *Sun\ F*) # Sun Fortran 8.3
  31158. - tmp_sharedflag='-G' ;;
  31159. - *)
  31160. - tmp_sharedflag='-shared' ;;
  31161. - esac
  31162. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31163. -
  31164. - if test $supports_anon_versioning = yes; then
  31165. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  31166. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  31167. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  31168. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  31169. - fi
  31170. - else
  31171. - ld_shlibs_F77=no
  31172. - fi
  31173. - ;;
  31174. -
  31175. - netbsd*)
  31176. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31177. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  31178. - wlarc=
  31179. - else
  31180. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31181. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31182. - fi
  31183. - ;;
  31184. -
  31185. - solaris*)
  31186. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  31187. - ld_shlibs_F77=no
  31188. - cat <<EOF 1>&2
  31189. -
  31190. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  31191. -*** create shared libraries on Solaris systems. Therefore, libtool
  31192. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31193. -*** binutils to release 2.9.1 or newer. Another option is to modify
  31194. -*** your PATH or compiler configuration so that the native linker is
  31195. -*** used, and then restart.
  31196. -
  31197. -EOF
  31198. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31199. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31200. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31201. - else
  31202. - ld_shlibs_F77=no
  31203. - fi
  31204. - ;;
  31205. -
  31206. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  31207. - case `$LD -v 2>&1` in
  31208. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  31209. - ld_shlibs_F77=no
  31210. - cat <<_LT_EOF 1>&2
  31211. -
  31212. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  31213. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  31214. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31215. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  31216. -*** your PATH or compiler configuration so that the native linker is
  31217. -*** used, and then restart.
  31218. -
  31219. -_LT_EOF
  31220. - ;;
  31221. - *)
  31222. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31223. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  31224. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  31225. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  31226. - else
  31227. - ld_shlibs_F77=no
  31228. - fi
  31229. - ;;
  31230. - esac
  31231. - ;;
  31232. -
  31233. - sunos4*)
  31234. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31235. - wlarc=
  31236. - hardcode_direct_F77=yes
  31237. - hardcode_shlibpath_var_F77=no
  31238. - ;;
  31239. -
  31240. - *)
  31241. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31242. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31243. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31244. - else
  31245. - ld_shlibs_F77=no
  31246. - fi
  31247. - ;;
  31248. - esac
  31249. -
  31250. - if test "$ld_shlibs_F77" = no; then
  31251. - runpath_var=
  31252. - hardcode_libdir_flag_spec_F77=
  31253. - export_dynamic_flag_spec_F77=
  31254. - whole_archive_flag_spec_F77=
  31255. - fi
  31256. - else
  31257. - # PORTME fill in a description of your system's linker (not GNU ld)
  31258. - case $host_os in
  31259. - aix3*)
  31260. - allow_undefined_flag_F77=unsupported
  31261. - always_export_symbols_F77=yes
  31262. - 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'
  31263. - # Note: this linker hardcodes the directories in LIBPATH if there
  31264. - # are no directories specified by -L.
  31265. - hardcode_minus_L_F77=yes
  31266. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  31267. - # Neither direct hardcoding nor static linking is supported with a
  31268. - # broken collect2.
  31269. - hardcode_direct_F77=unsupported
  31270. - fi
  31271. - ;;
  31272. -
  31273. - aix[4-9]*)
  31274. - if test "$host_cpu" = ia64; then
  31275. - # On IA64, the linker does run time linking by default, so we don't
  31276. - # have to do anything special.
  31277. - aix_use_runtimelinking=no
  31278. - exp_sym_flag='-Bexport'
  31279. - no_entry_flag=""
  31280. - else
  31281. - # If we're using GNU nm, then we don't want the "-C" option.
  31282. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31283. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  31284. - 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'
  31285. - else
  31286. - 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'
  31287. - fi
  31288. - aix_use_runtimelinking=no
  31289. -
  31290. - # Test if we are trying to use run time linking or normal
  31291. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31292. - # need to do runtime linking.
  31293. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  31294. - for ld_flag in $LDFLAGS; do
  31295. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  31296. - aix_use_runtimelinking=yes
  31297. - break
  31298. - fi
  31299. - done
  31300. - ;;
  31301. - esac
  31302. -
  31303. - exp_sym_flag='-bexport'
  31304. - no_entry_flag='-bnoentry'
  31305. - fi
  31306. -
  31307. - # When large executables or shared objects are built, AIX ld can
  31308. - # have problems creating the table of contents. If linking a library
  31309. - # or program results in "error TOC overflow" add -mminimal-toc to
  31310. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31311. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31312. -
  31313. - archive_cmds_F77=''
  31314. - hardcode_direct_F77=yes
  31315. - hardcode_libdir_separator_F77=':'
  31316. - link_all_deplibs_F77=yes
  31317. -
  31318. - if test "$GCC" = yes; then
  31319. - case $host_os in aix4.[012]|aix4.[012].*)
  31320. - # We only want to do this on AIX 4.2 and lower, the check
  31321. - # below for broken collect2 doesn't work under 4.3+
  31322. - collect2name=`${CC} -print-prog-name=collect2`
  31323. - if test -f "$collect2name" && \
  31324. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  31325. - then
  31326. - # We have reworked collect2
  31327. - :
  31328. - else
  31329. - # We have old collect2
  31330. - hardcode_direct_F77=unsupported
  31331. - # It fails to find uninstalled libraries when the uninstalled
  31332. - # path is not listed in the libpath. Setting hardcode_minus_L
  31333. - # to unsupported forces relinking
  31334. - hardcode_minus_L_F77=yes
  31335. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31336. - hardcode_libdir_separator_F77=
  31337. - fi
  31338. - ;;
  31339. - esac
  31340. - shared_flag='-shared'
  31341. - if test "$aix_use_runtimelinking" = yes; then
  31342. - shared_flag="$shared_flag "'${wl}-G'
  31343. - fi
  31344. - else
  31345. - # not using gcc
  31346. - if test "$host_cpu" = ia64; then
  31347. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31348. - # chokes on -Wl,-G. The following line is correct:
  31349. - shared_flag='-G'
  31350. - else
  31351. - if test "$aix_use_runtimelinking" = yes; then
  31352. - shared_flag='${wl}-G'
  31353. - else
  31354. - shared_flag='${wl}-bM:SRE'
  31355. - fi
  31356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  31357. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  31358. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  31359. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  31360. + CFLAGS="$SAVE_CFLAGS"
  31361. + fi
  31362. + ;;
  31363. +sparc*-*solaris*)
  31364. + # Find out which ABI we are using.
  31365. + echo 'int i;' > conftest.$ac_ext
  31366. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  31367. + (eval $ac_compile) 2>&5
  31368. + ac_status=$?
  31369. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  31370. + test $ac_status = 0; }; then
  31371. + case `/usr/bin/file conftest.o` in
  31372. + *64-bit*)
  31373. + case $lt_cv_prog_gnu_ld in
  31374. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  31375. + *)
  31376. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  31377. + LD="${LD-ld} -64"
  31378. fi
  31379. - fi
  31380. + ;;
  31381. + esac
  31382. + ;;
  31383. + esac
  31384. + fi
  31385. + rm -rf conftest*
  31386. + ;;
  31387. +esac
  31388. - # It seems that -bexpall does not export symbols beginning with
  31389. - # underscore (_), so it is better to generate a list of symbols to export.
  31390. - always_export_symbols_F77=yes
  31391. - if test "$aix_use_runtimelinking" = yes; then
  31392. - # Warning - without using the other runtime loading flags (-brtl),
  31393. - # -berok will link without error, but may produce a broken library.
  31394. - allow_undefined_flag_F77='-berok'
  31395. - # Determine the default libpath from the value encoded in an empty executable.
  31396. - cat >conftest.$ac_ext <<_ACEOF
  31397. - program main
  31398. +need_locks="$enable_libtool_lock"
  31399. - end
  31400. -_ACEOF
  31401. -rm -f conftest.$ac_objext conftest$ac_exeext
  31402. -if { (ac_try="$ac_link"
  31403. -case "(($ac_try" in
  31404. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31405. - *) ac_try_echo=$ac_try;;
  31406. -esac
  31407. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31408. - (eval "$ac_link") 2>conftest.er1
  31409. - ac_status=$?
  31410. - grep -v '^ *+' conftest.er1 >conftest.err
  31411. - rm -f conftest.er1
  31412. - cat conftest.err >&5
  31413. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31414. - (exit $ac_status); } && {
  31415. - test -z "$ac_f77_werror_flag" ||
  31416. - test ! -s conftest.err
  31417. - } && test -s conftest$ac_exeext &&
  31418. - $as_test_x conftest$ac_exeext; then
  31419. -lt_aix_libpath_sed='
  31420. - /Import File Strings/,/^$/ {
  31421. - /^0/ {
  31422. - s/^0 *\(.*\)$/\1/
  31423. - p
  31424. - }
  31425. - }'
  31426. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31427. -# Check for a 64-bit object if we didn't find anything.
  31428. -if test -z "$aix_libpath"; then
  31429. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31430. -fi
  31431. + case $host_os in
  31432. + rhapsody* | darwin*)
  31433. + if test -n "$ac_tool_prefix"; then
  31434. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  31435. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  31436. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31437. +$as_echo_n "checking for $ac_word... " >&6; }
  31438. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  31439. + $as_echo_n "(cached) " >&6
  31440. else
  31441. - echo "$as_me: failed program was:" >&5
  31442. -sed 's/^/| /' conftest.$ac_ext >&5
  31443. -
  31444. + if test -n "$DSYMUTIL"; then
  31445. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  31446. +else
  31447. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31448. +for as_dir in $PATH
  31449. +do
  31450. + IFS=$as_save_IFS
  31451. + test -z "$as_dir" && as_dir=.
  31452. + for ac_exec_ext in '' $ac_executable_extensions; do
  31453. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31454. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  31455. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31456. + break 2
  31457. + fi
  31458. +done
  31459. + done
  31460. +IFS=$as_save_IFS
  31461. fi
  31462. -
  31463. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31464. - conftest$ac_exeext conftest.$ac_ext
  31465. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31466. -
  31467. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  31468. - 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"
  31469. - else
  31470. - if test "$host_cpu" = ia64; then
  31471. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  31472. - allow_undefined_flag_F77="-z nodefs"
  31473. - 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"
  31474. - else
  31475. - # Determine the default libpath from the value encoded in an empty executable.
  31476. - cat >conftest.$ac_ext <<_ACEOF
  31477. - program main
  31478. -
  31479. - end
  31480. -_ACEOF
  31481. -rm -f conftest.$ac_objext conftest$ac_exeext
  31482. -if { (ac_try="$ac_link"
  31483. -case "(($ac_try" in
  31484. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31485. - *) ac_try_echo=$ac_try;;
  31486. -esac
  31487. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31488. - (eval "$ac_link") 2>conftest.er1
  31489. - ac_status=$?
  31490. - grep -v '^ *+' conftest.er1 >conftest.err
  31491. - rm -f conftest.er1
  31492. - cat conftest.err >&5
  31493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31494. - (exit $ac_status); } && {
  31495. - test -z "$ac_f77_werror_flag" ||
  31496. - test ! -s conftest.err
  31497. - } && test -s conftest$ac_exeext &&
  31498. - $as_test_x conftest$ac_exeext; then
  31499. -
  31500. -lt_aix_libpath_sed='
  31501. - /Import File Strings/,/^$/ {
  31502. - /^0/ {
  31503. - s/^0 *\(.*\)$/\1/
  31504. - p
  31505. - }
  31506. - }'
  31507. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31508. -# Check for a 64-bit object if we didn't find anything.
  31509. -if test -z "$aix_libpath"; then
  31510. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  31511. fi
  31512. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  31513. +if test -n "$DSYMUTIL"; then
  31514. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  31515. +$as_echo "$DSYMUTIL" >&6; }
  31516. else
  31517. - echo "$as_me: failed program was:" >&5
  31518. -sed 's/^/| /' conftest.$ac_ext >&5
  31519. -
  31520. -
  31521. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31522. +$as_echo "no" >&6; }
  31523. fi
  31524. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31525. - conftest$ac_exeext conftest.$ac_ext
  31526. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31527. -
  31528. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  31529. - # Warning - without using the other run time loading flags,
  31530. - # -berok will link without error, but may produce a broken library.
  31531. - no_undefined_flag_F77=' ${wl}-bernotok'
  31532. - allow_undefined_flag_F77=' ${wl}-berok'
  31533. - # Exported symbols can be pulled into shared objects from archives
  31534. - whole_archive_flag_spec_F77='$convenience'
  31535. - archive_cmds_need_lc_F77=yes
  31536. - # This is similar to how AIX traditionally builds its shared libraries.
  31537. - 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'
  31538. - fi
  31539. - fi
  31540. - ;;
  31541. -
  31542. - amigaos*)
  31543. - 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)'
  31544. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31545. - hardcode_minus_L_F77=yes
  31546. - # see comment about different semantics on the GNU ld section
  31547. - ld_shlibs_F77=no
  31548. - ;;
  31549. -
  31550. - bsdi[45]*)
  31551. - export_dynamic_flag_spec_F77=-rdynamic
  31552. - ;;
  31553. - cygwin* | mingw* | pw32*)
  31554. - # When not using gcc, we currently assume that we are using
  31555. - # Microsoft Visual C++.
  31556. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  31557. - # no search path for DLLs.
  31558. - hardcode_libdir_flag_spec_F77=' '
  31559. - allow_undefined_flag_F77=unsupported
  31560. - # Tell ltmain to make .lib files, not .a files.
  31561. - libext=lib
  31562. - # Tell ltmain to make .dll files, not .so files.
  31563. - shrext_cmds=".dll"
  31564. - # FIXME: Setting linknames here is a bad hack.
  31565. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  31566. - # The linker will automatically build a .lib file if we build a DLL.
  31567. - old_archive_From_new_cmds_F77='true'
  31568. - # FIXME: Should let the user specify the lib program.
  31569. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  31570. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  31571. - enable_shared_with_static_runtimes_F77=yes
  31572. - ;;
  31573. +fi
  31574. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  31575. + ac_ct_DSYMUTIL=$DSYMUTIL
  31576. + # Extract the first word of "dsymutil", so it can be a program name with args.
  31577. +set dummy dsymutil; ac_word=$2
  31578. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31579. +$as_echo_n "checking for $ac_word... " >&6; }
  31580. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  31581. + $as_echo_n "(cached) " >&6
  31582. +else
  31583. + if test -n "$ac_ct_DSYMUTIL"; then
  31584. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  31585. +else
  31586. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31587. +for as_dir in $PATH
  31588. +do
  31589. + IFS=$as_save_IFS
  31590. + test -z "$as_dir" && as_dir=.
  31591. + for ac_exec_ext in '' $ac_executable_extensions; do
  31592. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31593. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  31594. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31595. + break 2
  31596. + fi
  31597. +done
  31598. + done
  31599. +IFS=$as_save_IFS
  31600. - darwin* | rhapsody*)
  31601. - case $host_os in
  31602. - rhapsody* | darwin1.[012])
  31603. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  31604. - ;;
  31605. - *) # Darwin 1.3 on
  31606. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  31607. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31608. - else
  31609. - case ${MACOSX_DEPLOYMENT_TARGET} in
  31610. - 10.[012])
  31611. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31612. - ;;
  31613. - 10.*)
  31614. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  31615. - ;;
  31616. - esac
  31617. - fi
  31618. - ;;
  31619. - esac
  31620. - archive_cmds_need_lc_F77=no
  31621. - hardcode_direct_F77=no
  31622. - hardcode_automatic_F77=yes
  31623. - hardcode_shlibpath_var_F77=unsupported
  31624. - whole_archive_flag_spec_F77=''
  31625. - link_all_deplibs_F77=yes
  31626. - if test "$GCC" = yes ; then
  31627. - output_verbose_link_cmd='echo'
  31628. - archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  31629. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  31630. - archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  31631. - module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  31632. - else
  31633. - case $cc_basename in
  31634. - xlc*)
  31635. - output_verbose_link_cmd='echo'
  31636. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  31637. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31638. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  31639. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31640. - 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}'
  31641. - ;;
  31642. - *)
  31643. - ld_shlibs_F77=no
  31644. - ;;
  31645. - esac
  31646. - fi
  31647. - ;;
  31648. +fi
  31649. +fi
  31650. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  31651. +if test -n "$ac_ct_DSYMUTIL"; then
  31652. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  31653. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  31654. +else
  31655. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31656. +$as_echo "no" >&6; }
  31657. +fi
  31658. - dgux*)
  31659. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31660. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31661. - hardcode_shlibpath_var_F77=no
  31662. - ;;
  31663. + if test "x$ac_ct_DSYMUTIL" = x; then
  31664. + DSYMUTIL=":"
  31665. + else
  31666. + case $cross_compiling:$ac_tool_warned in
  31667. +yes:)
  31668. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  31669. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31670. +ac_tool_warned=yes ;;
  31671. +esac
  31672. + DSYMUTIL=$ac_ct_DSYMUTIL
  31673. + fi
  31674. +else
  31675. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  31676. +fi
  31677. - freebsd1*)
  31678. - ld_shlibs_F77=no
  31679. - ;;
  31680. + if test -n "$ac_tool_prefix"; then
  31681. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  31682. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  31683. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31684. +$as_echo_n "checking for $ac_word... " >&6; }
  31685. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  31686. + $as_echo_n "(cached) " >&6
  31687. +else
  31688. + if test -n "$NMEDIT"; then
  31689. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  31690. +else
  31691. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31692. +for as_dir in $PATH
  31693. +do
  31694. + IFS=$as_save_IFS
  31695. + test -z "$as_dir" && as_dir=.
  31696. + for ac_exec_ext in '' $ac_executable_extensions; do
  31697. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31698. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  31699. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31700. + break 2
  31701. + fi
  31702. +done
  31703. + done
  31704. +IFS=$as_save_IFS
  31705. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  31706. - # support. Future versions do this automatically, but an explicit c++rt0.o
  31707. - # does not break anything, and helps significantly (at the cost of a little
  31708. - # extra space).
  31709. - freebsd2.2*)
  31710. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  31711. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31712. - hardcode_direct_F77=yes
  31713. - hardcode_shlibpath_var_F77=no
  31714. - ;;
  31715. +fi
  31716. +fi
  31717. +NMEDIT=$ac_cv_prog_NMEDIT
  31718. +if test -n "$NMEDIT"; then
  31719. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  31720. +$as_echo "$NMEDIT" >&6; }
  31721. +else
  31722. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31723. +$as_echo "no" >&6; }
  31724. +fi
  31725. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  31726. - freebsd2*)
  31727. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31728. - hardcode_direct_F77=yes
  31729. - hardcode_minus_L_F77=yes
  31730. - hardcode_shlibpath_var_F77=no
  31731. - ;;
  31732. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  31733. - freebsd* | dragonfly*)
  31734. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  31735. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31736. - hardcode_direct_F77=yes
  31737. - hardcode_shlibpath_var_F77=no
  31738. - ;;
  31739. +fi
  31740. +if test -z "$ac_cv_prog_NMEDIT"; then
  31741. + ac_ct_NMEDIT=$NMEDIT
  31742. + # Extract the first word of "nmedit", so it can be a program name with args.
  31743. +set dummy nmedit; ac_word=$2
  31744. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31745. +$as_echo_n "checking for $ac_word... " >&6; }
  31746. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  31747. + $as_echo_n "(cached) " >&6
  31748. +else
  31749. + if test -n "$ac_ct_NMEDIT"; then
  31750. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  31751. +else
  31752. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31753. +for as_dir in $PATH
  31754. +do
  31755. + IFS=$as_save_IFS
  31756. + test -z "$as_dir" && as_dir=.
  31757. + for ac_exec_ext in '' $ac_executable_extensions; do
  31758. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31759. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  31760. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31761. + break 2
  31762. + fi
  31763. +done
  31764. + done
  31765. +IFS=$as_save_IFS
  31766. - hpux9*)
  31767. - if test "$GCC" = yes; then
  31768. - 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'
  31769. - else
  31770. - 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'
  31771. - fi
  31772. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31773. - hardcode_libdir_separator_F77=:
  31774. - hardcode_direct_F77=yes
  31775. +fi
  31776. +fi
  31777. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  31778. +if test -n "$ac_ct_NMEDIT"; then
  31779. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  31780. +$as_echo "$ac_ct_NMEDIT" >&6; }
  31781. +else
  31782. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31783. +$as_echo "no" >&6; }
  31784. +fi
  31785. - # hardcode_minus_L: Not really in the search PATH,
  31786. - # but as the default location of the library.
  31787. - hardcode_minus_L_F77=yes
  31788. - export_dynamic_flag_spec_F77='${wl}-E'
  31789. - ;;
  31790. + if test "x$ac_ct_NMEDIT" = x; then
  31791. + NMEDIT=":"
  31792. + else
  31793. + case $cross_compiling:$ac_tool_warned in
  31794. +yes:)
  31795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  31796. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31797. +ac_tool_warned=yes ;;
  31798. +esac
  31799. + NMEDIT=$ac_ct_NMEDIT
  31800. + fi
  31801. +else
  31802. + NMEDIT="$ac_cv_prog_NMEDIT"
  31803. +fi
  31804. - hpux10*)
  31805. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31806. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31807. - else
  31808. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  31809. - fi
  31810. - if test "$with_gnu_ld" = no; then
  31811. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31812. - hardcode_libdir_separator_F77=:
  31813. + if test -n "$ac_tool_prefix"; then
  31814. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  31815. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  31816. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31817. +$as_echo_n "checking for $ac_word... " >&6; }
  31818. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  31819. + $as_echo_n "(cached) " >&6
  31820. +else
  31821. + if test -n "$LIPO"; then
  31822. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  31823. +else
  31824. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31825. +for as_dir in $PATH
  31826. +do
  31827. + IFS=$as_save_IFS
  31828. + test -z "$as_dir" && as_dir=.
  31829. + for ac_exec_ext in '' $ac_executable_extensions; do
  31830. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31831. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  31832. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31833. + break 2
  31834. + fi
  31835. +done
  31836. + done
  31837. +IFS=$as_save_IFS
  31838. - hardcode_direct_F77=yes
  31839. - export_dynamic_flag_spec_F77='${wl}-E'
  31840. +fi
  31841. +fi
  31842. +LIPO=$ac_cv_prog_LIPO
  31843. +if test -n "$LIPO"; then
  31844. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  31845. +$as_echo "$LIPO" >&6; }
  31846. +else
  31847. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31848. +$as_echo "no" >&6; }
  31849. +fi
  31850. - # hardcode_minus_L: Not really in the search PATH,
  31851. - # but as the default location of the library.
  31852. - hardcode_minus_L_F77=yes
  31853. - fi
  31854. - ;;
  31855. - hpux11*)
  31856. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31857. - case $host_cpu in
  31858. - hppa*64*)
  31859. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31860. - ;;
  31861. - ia64*)
  31862. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31863. - ;;
  31864. - *)
  31865. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31866. - ;;
  31867. - esac
  31868. - else
  31869. - case $host_cpu in
  31870. - hppa*64*)
  31871. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31872. - ;;
  31873. - ia64*)
  31874. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31875. - ;;
  31876. - *)
  31877. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31878. - ;;
  31879. - esac
  31880. - fi
  31881. - if test "$with_gnu_ld" = no; then
  31882. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31883. - hardcode_libdir_separator_F77=:
  31884. +fi
  31885. +if test -z "$ac_cv_prog_LIPO"; then
  31886. + ac_ct_LIPO=$LIPO
  31887. + # Extract the first word of "lipo", so it can be a program name with args.
  31888. +set dummy lipo; ac_word=$2
  31889. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31890. +$as_echo_n "checking for $ac_word... " >&6; }
  31891. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  31892. + $as_echo_n "(cached) " >&6
  31893. +else
  31894. + if test -n "$ac_ct_LIPO"; then
  31895. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  31896. +else
  31897. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31898. +for as_dir in $PATH
  31899. +do
  31900. + IFS=$as_save_IFS
  31901. + test -z "$as_dir" && as_dir=.
  31902. + for ac_exec_ext in '' $ac_executable_extensions; do
  31903. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31904. + ac_cv_prog_ac_ct_LIPO="lipo"
  31905. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31906. + break 2
  31907. + fi
  31908. +done
  31909. + done
  31910. +IFS=$as_save_IFS
  31911. - case $host_cpu in
  31912. - hppa*64*|ia64*)
  31913. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  31914. - hardcode_direct_F77=no
  31915. - hardcode_shlibpath_var_F77=no
  31916. - ;;
  31917. - *)
  31918. - hardcode_direct_F77=yes
  31919. - export_dynamic_flag_spec_F77='${wl}-E'
  31920. +fi
  31921. +fi
  31922. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  31923. +if test -n "$ac_ct_LIPO"; then
  31924. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  31925. +$as_echo "$ac_ct_LIPO" >&6; }
  31926. +else
  31927. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31928. +$as_echo "no" >&6; }
  31929. +fi
  31930. - # hardcode_minus_L: Not really in the search PATH,
  31931. - # but as the default location of the library.
  31932. - hardcode_minus_L_F77=yes
  31933. - ;;
  31934. - esac
  31935. - fi
  31936. - ;;
  31937. + if test "x$ac_ct_LIPO" = x; then
  31938. + LIPO=":"
  31939. + else
  31940. + case $cross_compiling:$ac_tool_warned in
  31941. +yes:)
  31942. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  31943. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31944. +ac_tool_warned=yes ;;
  31945. +esac
  31946. + LIPO=$ac_ct_LIPO
  31947. + fi
  31948. +else
  31949. + LIPO="$ac_cv_prog_LIPO"
  31950. +fi
  31951. - irix5* | irix6* | nonstopux*)
  31952. - if test "$GCC" = yes; then
  31953. - 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'
  31954. - else
  31955. - 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'
  31956. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  31957. - fi
  31958. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31959. - hardcode_libdir_separator_F77=:
  31960. - link_all_deplibs_F77=yes
  31961. - ;;
  31962. + if test -n "$ac_tool_prefix"; then
  31963. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  31964. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  31965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31966. +$as_echo_n "checking for $ac_word... " >&6; }
  31967. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  31968. + $as_echo_n "(cached) " >&6
  31969. +else
  31970. + if test -n "$OTOOL"; then
  31971. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  31972. +else
  31973. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31974. +for as_dir in $PATH
  31975. +do
  31976. + IFS=$as_save_IFS
  31977. + test -z "$as_dir" && as_dir=.
  31978. + for ac_exec_ext in '' $ac_executable_extensions; do
  31979. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31980. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  31981. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31982. + break 2
  31983. + fi
  31984. +done
  31985. + done
  31986. +IFS=$as_save_IFS
  31987. - netbsd*)
  31988. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31989. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  31990. - else
  31991. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  31992. - fi
  31993. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31994. - hardcode_direct_F77=yes
  31995. - hardcode_shlibpath_var_F77=no
  31996. - ;;
  31997. +fi
  31998. +fi
  31999. +OTOOL=$ac_cv_prog_OTOOL
  32000. +if test -n "$OTOOL"; then
  32001. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  32002. +$as_echo "$OTOOL" >&6; }
  32003. +else
  32004. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32005. +$as_echo "no" >&6; }
  32006. +fi
  32007. - newsos6)
  32008. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32009. - hardcode_direct_F77=yes
  32010. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32011. - hardcode_libdir_separator_F77=:
  32012. - hardcode_shlibpath_var_F77=no
  32013. - ;;
  32014. - openbsd*)
  32015. - if test -f /usr/libexec/ld.so; then
  32016. - hardcode_direct_F77=yes
  32017. - hardcode_shlibpath_var_F77=no
  32018. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32019. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32020. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  32021. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  32022. - export_dynamic_flag_spec_F77='${wl}-E'
  32023. - else
  32024. - case $host_os in
  32025. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  32026. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32027. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32028. - ;;
  32029. - *)
  32030. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  32031. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  32032. - ;;
  32033. - esac
  32034. - fi
  32035. - else
  32036. - ld_shlibs_F77=no
  32037. - fi
  32038. - ;;
  32039. +fi
  32040. +if test -z "$ac_cv_prog_OTOOL"; then
  32041. + ac_ct_OTOOL=$OTOOL
  32042. + # Extract the first word of "otool", so it can be a program name with args.
  32043. +set dummy otool; ac_word=$2
  32044. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  32045. +$as_echo_n "checking for $ac_word... " >&6; }
  32046. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  32047. + $as_echo_n "(cached) " >&6
  32048. +else
  32049. + if test -n "$ac_ct_OTOOL"; then
  32050. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  32051. +else
  32052. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32053. +for as_dir in $PATH
  32054. +do
  32055. + IFS=$as_save_IFS
  32056. + test -z "$as_dir" && as_dir=.
  32057. + for ac_exec_ext in '' $ac_executable_extensions; do
  32058. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32059. + ac_cv_prog_ac_ct_OTOOL="otool"
  32060. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  32061. + break 2
  32062. + fi
  32063. +done
  32064. + done
  32065. +IFS=$as_save_IFS
  32066. - os2*)
  32067. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32068. - hardcode_minus_L_F77=yes
  32069. - allow_undefined_flag_F77=unsupported
  32070. - 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'
  32071. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  32072. - ;;
  32073. +fi
  32074. +fi
  32075. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  32076. +if test -n "$ac_ct_OTOOL"; then
  32077. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  32078. +$as_echo "$ac_ct_OTOOL" >&6; }
  32079. +else
  32080. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32081. +$as_echo "no" >&6; }
  32082. +fi
  32083. - osf3*)
  32084. - if test "$GCC" = yes; then
  32085. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  32086. - 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'
  32087. - else
  32088. - allow_undefined_flag_F77=' -expect_unresolved \*'
  32089. - 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'
  32090. - fi
  32091. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32092. - hardcode_libdir_separator_F77=:
  32093. - ;;
  32094. + if test "x$ac_ct_OTOOL" = x; then
  32095. + OTOOL=":"
  32096. + else
  32097. + case $cross_compiling:$ac_tool_warned in
  32098. +yes:)
  32099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  32100. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  32101. +ac_tool_warned=yes ;;
  32102. +esac
  32103. + OTOOL=$ac_ct_OTOOL
  32104. + fi
  32105. +else
  32106. + OTOOL="$ac_cv_prog_OTOOL"
  32107. +fi
  32108. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  32109. - if test "$GCC" = yes; then
  32110. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  32111. - 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'
  32112. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  32113. - else
  32114. - allow_undefined_flag_F77=' -expect_unresolved \*'
  32115. - 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'
  32116. - 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~
  32117. - $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'
  32118. + if test -n "$ac_tool_prefix"; then
  32119. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  32120. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  32121. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  32122. +$as_echo_n "checking for $ac_word... " >&6; }
  32123. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  32124. + $as_echo_n "(cached) " >&6
  32125. +else
  32126. + if test -n "$OTOOL64"; then
  32127. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  32128. +else
  32129. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32130. +for as_dir in $PATH
  32131. +do
  32132. + IFS=$as_save_IFS
  32133. + test -z "$as_dir" && as_dir=.
  32134. + for ac_exec_ext in '' $ac_executable_extensions; do
  32135. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32136. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  32137. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  32138. + break 2
  32139. + fi
  32140. +done
  32141. + done
  32142. +IFS=$as_save_IFS
  32143. - # Both c and cxx compiler support -rpath directly
  32144. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  32145. - fi
  32146. - hardcode_libdir_separator_F77=:
  32147. - ;;
  32148. +fi
  32149. +fi
  32150. +OTOOL64=$ac_cv_prog_OTOOL64
  32151. +if test -n "$OTOOL64"; then
  32152. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  32153. +$as_echo "$OTOOL64" >&6; }
  32154. +else
  32155. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32156. +$as_echo "no" >&6; }
  32157. +fi
  32158. - solaris*)
  32159. - no_undefined_flag_F77=' -z text'
  32160. - if test "$GCC" = yes; then
  32161. - wlarc='${wl}'
  32162. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32163. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32164. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  32165. - else
  32166. - wlarc=''
  32167. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32168. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32169. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  32170. - fi
  32171. - hardcode_libdir_flag_spec_F77='-R$libdir'
  32172. - hardcode_shlibpath_var_F77=no
  32173. - case $host_os in
  32174. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  32175. - *)
  32176. - # The compiler driver will combine and reorder linker options,
  32177. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  32178. - # but is careful enough not to reorder.
  32179. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32180. - if test "$GCC" = yes; then
  32181. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  32182. - else
  32183. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  32184. - fi
  32185. - ;;
  32186. - esac
  32187. - link_all_deplibs_F77=yes
  32188. - ;;
  32189. - sunos4*)
  32190. - if test "x$host_vendor" = xsequent; then
  32191. - # Use $CC to link under sequent, because it throws in some extra .o
  32192. - # files that make .init and .fini sections work.
  32193. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  32194. - else
  32195. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  32196. - fi
  32197. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32198. - hardcode_direct_F77=yes
  32199. - hardcode_minus_L_F77=yes
  32200. - hardcode_shlibpath_var_F77=no
  32201. - ;;
  32202. +fi
  32203. +if test -z "$ac_cv_prog_OTOOL64"; then
  32204. + ac_ct_OTOOL64=$OTOOL64
  32205. + # Extract the first word of "otool64", so it can be a program name with args.
  32206. +set dummy otool64; ac_word=$2
  32207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  32208. +$as_echo_n "checking for $ac_word... " >&6; }
  32209. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  32210. + $as_echo_n "(cached) " >&6
  32211. +else
  32212. + if test -n "$ac_ct_OTOOL64"; then
  32213. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  32214. +else
  32215. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32216. +for as_dir in $PATH
  32217. +do
  32218. + IFS=$as_save_IFS
  32219. + test -z "$as_dir" && as_dir=.
  32220. + for ac_exec_ext in '' $ac_executable_extensions; do
  32221. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32222. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  32223. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  32224. + break 2
  32225. + fi
  32226. +done
  32227. + done
  32228. +IFS=$as_save_IFS
  32229. - sysv4)
  32230. - case $host_vendor in
  32231. - sni)
  32232. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32233. - hardcode_direct_F77=yes # is this really true???
  32234. - ;;
  32235. - siemens)
  32236. - ## LD is ld it makes a PLAMLIB
  32237. - ## CC just makes a GrossModule.
  32238. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  32239. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  32240. - hardcode_direct_F77=no
  32241. - ;;
  32242. - motorola)
  32243. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32244. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  32245. - ;;
  32246. - esac
  32247. - runpath_var='LD_RUN_PATH'
  32248. - hardcode_shlibpath_var_F77=no
  32249. - ;;
  32250. +fi
  32251. +fi
  32252. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  32253. +if test -n "$ac_ct_OTOOL64"; then
  32254. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  32255. +$as_echo "$ac_ct_OTOOL64" >&6; }
  32256. +else
  32257. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32258. +$as_echo "no" >&6; }
  32259. +fi
  32260. - sysv4.3*)
  32261. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32262. - hardcode_shlibpath_var_F77=no
  32263. - export_dynamic_flag_spec_F77='-Bexport'
  32264. - ;;
  32265. + if test "x$ac_ct_OTOOL64" = x; then
  32266. + OTOOL64=":"
  32267. + else
  32268. + case $cross_compiling:$ac_tool_warned in
  32269. +yes:)
  32270. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  32271. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  32272. +ac_tool_warned=yes ;;
  32273. +esac
  32274. + OTOOL64=$ac_ct_OTOOL64
  32275. + fi
  32276. +else
  32277. + OTOOL64="$ac_cv_prog_OTOOL64"
  32278. +fi
  32279. - sysv4*MP*)
  32280. - if test -d /usr/nec; then
  32281. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32282. - hardcode_shlibpath_var_F77=no
  32283. - runpath_var=LD_RUN_PATH
  32284. - hardcode_runpath_var=yes
  32285. - ld_shlibs_F77=yes
  32286. - fi
  32287. - ;;
  32288. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  32289. - no_undefined_flag_F77='${wl}-z,text'
  32290. - archive_cmds_need_lc_F77=no
  32291. - hardcode_shlibpath_var_F77=no
  32292. - runpath_var='LD_RUN_PATH'
  32293. - if test "$GCC" = yes; then
  32294. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32295. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32296. - else
  32297. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32298. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32299. - fi
  32300. - ;;
  32301. - sysv5* | sco3.2v5* | sco5v6*)
  32302. - # Note: We can NOT use -z defs as we might desire, because we do not
  32303. - # link with -lc, and that would cause any symbols used from libc to
  32304. - # always be unresolved, which means just about no library would
  32305. - # ever link correctly. If we're not using GNU ld we use -z text
  32306. - # though, which does catch some bad symbols but isn't as heavy-handed
  32307. - # as -z defs.
  32308. - no_undefined_flag_F77='${wl}-z,text'
  32309. - allow_undefined_flag_F77='${wl}-z,nodefs'
  32310. - archive_cmds_need_lc_F77=no
  32311. - hardcode_shlibpath_var_F77=no
  32312. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32313. - hardcode_libdir_separator_F77=':'
  32314. - link_all_deplibs_F77=yes
  32315. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  32316. - runpath_var='LD_RUN_PATH'
  32317. - if test "$GCC" = yes; then
  32318. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32319. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32320. - else
  32321. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32322. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32323. - fi
  32324. - ;;
  32325. - uts4*)
  32326. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32327. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32328. - hardcode_shlibpath_var_F77=no
  32329. - ;;
  32330. - *)
  32331. - ld_shlibs_F77=no
  32332. - ;;
  32333. - esac
  32334. - fi
  32335. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  32336. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  32337. -test "$ld_shlibs_F77" = no && can_build_shared=no
  32338. -#
  32339. -# Do we need to explicitly link libc?
  32340. -#
  32341. -case "x$archive_cmds_need_lc_F77" in
  32342. -x|xyes)
  32343. - # Assume -lc should be added
  32344. - archive_cmds_need_lc_F77=yes
  32345. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32346. - case $archive_cmds_F77 in
  32347. - *'~'*)
  32348. - # FIXME: we may have to deal with multi-command sequences.
  32349. - ;;
  32350. - '$CC '*)
  32351. - # Test whether the compiler implicitly links with -lc since on some
  32352. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32353. - # to ld, don't add -lc before -lgcc.
  32354. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32355. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  32356. - $rm conftest*
  32357. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32358. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32359. - (eval $ac_compile) 2>&5
  32360. - ac_status=$?
  32361. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32362. - (exit $ac_status); } 2>conftest.err; then
  32363. - soname=conftest
  32364. - lib=conftest
  32365. - libobjs=conftest.$ac_objext
  32366. - deplibs=
  32367. - wl=$lt_prog_compiler_wl_F77
  32368. - pic_flag=$lt_prog_compiler_pic_F77
  32369. - compiler_flags=-v
  32370. - linker_flags=-v
  32371. - verstring=
  32372. - output_objdir=.
  32373. - libname=conftest
  32374. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  32375. - allow_undefined_flag_F77=
  32376. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32377. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32378. - ac_status=$?
  32379. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32380. - (exit $ac_status); }
  32381. - then
  32382. - archive_cmds_need_lc_F77=no
  32383. - else
  32384. - archive_cmds_need_lc_F77=yes
  32385. - fi
  32386. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  32387. - else
  32388. - cat conftest.err 1>&5
  32389. - fi
  32390. - $rm conftest*
  32391. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  32392. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  32393. - ;;
  32394. - esac
  32395. - fi
  32396. - ;;
  32397. -esac
  32398. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  32399. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  32400. -library_names_spec=
  32401. -libname_spec='lib$name'
  32402. -soname_spec=
  32403. -shrext_cmds=".so"
  32404. -postinstall_cmds=
  32405. -postuninstall_cmds=
  32406. -finish_cmds=
  32407. -finish_eval=
  32408. -shlibpath_var=
  32409. -shlibpath_overrides_runpath=unknown
  32410. -version_type=none
  32411. -dynamic_linker="$host_os ld.so"
  32412. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  32413. -need_lib_prefix=unknown
  32414. -hardcode_into_libs=no
  32415. -# when you set need_version to no, make sure it does not cause -set_version
  32416. -# flags to be left without arguments
  32417. -need_version=unknown
  32418. -case $host_os in
  32419. -aix3*)
  32420. - version_type=linux
  32421. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  32422. - shlibpath_var=LIBPATH
  32423. - # AIX 3 has no versioning support, so we append a major version to the name.
  32424. - soname_spec='${libname}${release}${shared_ext}$major'
  32425. - ;;
  32426. -aix[4-9]*)
  32427. - version_type=linux
  32428. - need_lib_prefix=no
  32429. - need_version=no
  32430. - hardcode_into_libs=yes
  32431. - if test "$host_cpu" = ia64; then
  32432. - # AIX 5 supports IA64
  32433. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  32434. - shlibpath_var=LD_LIBRARY_PATH
  32435. - else
  32436. - # With GCC up to 2.95.x, collect2 would create an import file
  32437. - # for dependence libraries. The import file would start with
  32438. - # the line `#! .'. This would cause the generated library to
  32439. - # depend on `.', always an invalid library. This was fixed in
  32440. - # development snapshots of GCC prior to 3.0.
  32441. - case $host_os in
  32442. - aix4 | aix4.[01] | aix4.[01].*)
  32443. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  32444. - echo ' yes '
  32445. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  32446. - :
  32447. - else
  32448. - can_build_shared=no
  32449. - fi
  32450. - ;;
  32451. - esac
  32452. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  32453. - # soname into executable. Probably we can add versioning support to
  32454. - # collect2, so additional links can be useful in future.
  32455. - if test "$aix_use_runtimelinking" = yes; then
  32456. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  32457. - # instead of lib<name>.a to let people know that these are not
  32458. - # typical AIX shared libraries.
  32459. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32460. - else
  32461. - # We preserve .a as extension for shared libraries through AIX4.2
  32462. - # and later when we are not doing run time linking.
  32463. - library_names_spec='${libname}${release}.a $libname.a'
  32464. - soname_spec='${libname}${release}${shared_ext}$major'
  32465. - fi
  32466. - shlibpath_var=LIBPATH
  32467. - fi
  32468. - ;;
  32469. -amigaos*)
  32470. - library_names_spec='$libname.ixlibrary $libname.a'
  32471. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32472. - 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'
  32473. - ;;
  32474. -beos*)
  32475. - library_names_spec='${libname}${shared_ext}'
  32476. - dynamic_linker="$host_os ld.so"
  32477. - shlibpath_var=LIBRARY_PATH
  32478. - ;;
  32479. -bsdi[45]*)
  32480. - version_type=linux
  32481. - need_version=no
  32482. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32483. - soname_spec='${libname}${release}${shared_ext}$major'
  32484. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  32485. - shlibpath_var=LD_LIBRARY_PATH
  32486. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  32487. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  32488. - # the default ld.so.conf also contains /usr/contrib/lib and
  32489. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  32490. - # libtool to hard-code these into programs
  32491. - ;;
  32492. -cygwin* | mingw* | pw32*)
  32493. - version_type=windows
  32494. - shrext_cmds=".dll"
  32495. - need_version=no
  32496. - need_lib_prefix=no
  32497. - case $GCC,$host_os in
  32498. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32499. - library_names_spec='$libname.dll.a'
  32500. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32501. - postinstall_cmds='base_file=`basename \${file}`~
  32502. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32503. - dldir=$destdir/`dirname \$dlpath`~
  32504. - test -d \$dldir || mkdir -p \$dldir~
  32505. - $install_prog $dir/$dlname \$dldir/$dlname~
  32506. - chmod a+x \$dldir/$dlname'
  32507. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32508. - dlpath=$dir/\$dldll~
  32509. - $rm \$dlpath'
  32510. - shlibpath_overrides_runpath=yes
  32511. - case $host_os in
  32512. - cygwin*)
  32513. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  32514. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32515. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32516. - ;;
  32517. - mingw*)
  32518. - # MinGW DLLs use traditional 'lib' prefix
  32519. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32520. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32521. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32522. - # It is most probably a Windows format PATH printed by
  32523. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  32524. - # path with ; separators, and with drive letters. We can handle the
  32525. - # drive letters (cygwin fileutils understands them), so leave them,
  32526. - # especially as we might pass files found there to a mingw objdump,
  32527. - # which wouldn't understand a cygwinified path. Ahh.
  32528. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32529. - else
  32530. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32531. - fi
  32532. - ;;
  32533. - pw32*)
  32534. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  32535. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32536. - ;;
  32537. - esac
  32538. - ;;
  32539. - *)
  32540. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  32541. - ;;
  32542. - esac
  32543. - dynamic_linker='Win32 ld.exe'
  32544. - # FIXME: first we should search . and the directory the executable is in
  32545. - shlibpath_var=PATH
  32546. - ;;
  32547. -darwin* | rhapsody*)
  32548. - dynamic_linker="$host_os dyld"
  32549. - version_type=darwin
  32550. - need_lib_prefix=no
  32551. - need_version=no
  32552. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32553. - soname_spec='${libname}${release}${major}$shared_ext'
  32554. - shlibpath_overrides_runpath=yes
  32555. - shlibpath_var=DYLD_LIBRARY_PATH
  32556. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  32557. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32558. - ;;
  32559. -dgux*)
  32560. - version_type=linux
  32561. - need_lib_prefix=no
  32562. - need_version=no
  32563. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  32564. - soname_spec='${libname}${release}${shared_ext}$major'
  32565. - shlibpath_var=LD_LIBRARY_PATH
  32566. - ;;
  32567. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  32568. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  32569. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  32570. + $as_echo_n "(cached) " >&6
  32571. +else
  32572. + lt_cv_apple_cc_single_mod=no
  32573. + if test -z "${LT_MULTI_MODULE}"; then
  32574. + # By default we will add the -single_module flag. You can override
  32575. + # by either setting the environment variable LT_MULTI_MODULE
  32576. + # non-empty at configure time, or by adding -multi_module to the
  32577. + # link flags.
  32578. + rm -rf libconftest.dylib*
  32579. + echo "int foo(void){return 1;}" > conftest.c
  32580. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  32581. +-dynamiclib -Wl,-single_module conftest.c" >&5
  32582. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  32583. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  32584. + _lt_result=$?
  32585. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  32586. + lt_cv_apple_cc_single_mod=yes
  32587. + else
  32588. + cat conftest.err >&5
  32589. + fi
  32590. + rm -rf libconftest.dylib*
  32591. + rm -f conftest.*
  32592. + fi
  32593. +fi
  32594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  32595. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  32596. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  32597. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  32598. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  32599. + $as_echo_n "(cached) " >&6
  32600. +else
  32601. + lt_cv_ld_exported_symbols_list=no
  32602. + save_LDFLAGS=$LDFLAGS
  32603. + echo "_main" > conftest.sym
  32604. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  32605. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32606. +/* end confdefs.h. */
  32607. -freebsd1*)
  32608. - dynamic_linker=no
  32609. - ;;
  32610. +int
  32611. +main ()
  32612. +{
  32613. -freebsd* | dragonfly*)
  32614. - # DragonFly does not have aout. When/if they implement a new
  32615. - # versioning mechanism, adjust this.
  32616. - if test -x /usr/bin/objformat; then
  32617. - objformat=`/usr/bin/objformat`
  32618. - else
  32619. + ;
  32620. + return 0;
  32621. +}
  32622. +_ACEOF
  32623. +if ac_fn_c_try_link "$LINENO"; then :
  32624. + lt_cv_ld_exported_symbols_list=yes
  32625. +else
  32626. + lt_cv_ld_exported_symbols_list=no
  32627. +fi
  32628. +rm -f core conftest.err conftest.$ac_objext \
  32629. + conftest$ac_exeext conftest.$ac_ext
  32630. + LDFLAGS="$save_LDFLAGS"
  32631. +
  32632. +fi
  32633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  32634. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  32635. case $host_os in
  32636. - freebsd[123]*) objformat=aout ;;
  32637. - *) objformat=elf ;;
  32638. - esac
  32639. - fi
  32640. - version_type=freebsd-$objformat
  32641. - case $version_type in
  32642. - freebsd-elf*)
  32643. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32644. - need_version=no
  32645. - need_lib_prefix=no
  32646. - ;;
  32647. - freebsd-*)
  32648. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  32649. - need_version=yes
  32650. - ;;
  32651. - esac
  32652. - shlibpath_var=LD_LIBRARY_PATH
  32653. - case $host_os in
  32654. - freebsd2*)
  32655. - shlibpath_overrides_runpath=yes
  32656. - ;;
  32657. - freebsd3.[01]* | freebsdelf3.[01]*)
  32658. - shlibpath_overrides_runpath=yes
  32659. - hardcode_into_libs=yes
  32660. - ;;
  32661. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  32662. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  32663. - shlibpath_overrides_runpath=no
  32664. - hardcode_into_libs=yes
  32665. - ;;
  32666. - *) # from 4.6 on, and DragonFly
  32667. - shlibpath_overrides_runpath=yes
  32668. - hardcode_into_libs=yes
  32669. + rhapsody* | darwin1.[012])
  32670. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  32671. + darwin1.*)
  32672. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  32673. + darwin*) # darwin 5.x on
  32674. + # if running on 10.5 or later, the deployment target defaults
  32675. + # to the OS version, if on x86, and 10.4, the deployment
  32676. + # target defaults to 10.4. Don't you love it?
  32677. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  32678. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  32679. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  32680. + 10.[012]*)
  32681. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  32682. + 10.*)
  32683. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  32684. + esac
  32685. ;;
  32686. esac
  32687. - ;;
  32688. -
  32689. -gnu*)
  32690. - version_type=linux
  32691. - need_lib_prefix=no
  32692. - need_version=no
  32693. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  32694. - soname_spec='${libname}${release}${shared_ext}$major'
  32695. - shlibpath_var=LD_LIBRARY_PATH
  32696. - hardcode_into_libs=yes
  32697. - ;;
  32698. -
  32699. -hpux9* | hpux10* | hpux11*)
  32700. - # Give a soname corresponding to the major version so that dld.sl refuses to
  32701. - # link against other versions.
  32702. - version_type=sunos
  32703. - need_lib_prefix=no
  32704. - need_version=no
  32705. - case $host_cpu in
  32706. - ia64*)
  32707. - shrext_cmds='.so'
  32708. - hardcode_into_libs=yes
  32709. - dynamic_linker="$host_os dld.so"
  32710. - shlibpath_var=LD_LIBRARY_PATH
  32711. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32712. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32713. - soname_spec='${libname}${release}${shared_ext}$major'
  32714. - if test "X$HPUX_IA64_MODE" = X32; then
  32715. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  32716. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  32717. + _lt_dar_single_mod='$single_module'
  32718. + fi
  32719. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  32720. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  32721. else
  32722. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  32723. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  32724. + fi
  32725. + if test "$DSYMUTIL" != ":"; then
  32726. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  32727. + else
  32728. + _lt_dsymutil=
  32729. fi
  32730. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32731. - ;;
  32732. - hppa*64*)
  32733. - shrext_cmds='.sl'
  32734. - hardcode_into_libs=yes
  32735. - dynamic_linker="$host_os dld.sl"
  32736. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32737. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32738. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32739. - soname_spec='${libname}${release}${shared_ext}$major'
  32740. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32741. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32742. - ;;
  32743. - *)
  32744. - shrext_cmds='.sl'
  32745. - dynamic_linker="$host_os dld.sl"
  32746. - shlibpath_var=SHLIB_PATH
  32747. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  32748. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32749. - soname_spec='${libname}${release}${shared_ext}$major'
  32750. ;;
  32751. esac
  32752. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  32753. - postinstall_cmds='chmod 555 $lib'
  32754. - ;;
  32755. -interix[3-9]*)
  32756. - version_type=linux
  32757. - need_lib_prefix=no
  32758. - need_version=no
  32759. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32760. - soname_spec='${libname}${release}${shared_ext}$major'
  32761. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  32762. - shlibpath_var=LD_LIBRARY_PATH
  32763. - shlibpath_overrides_runpath=no
  32764. - hardcode_into_libs=yes
  32765. - ;;
  32766. +for ac_header in dlfcn.h
  32767. +do :
  32768. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  32769. +"
  32770. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  32771. + cat >>confdefs.h <<_ACEOF
  32772. +#define HAVE_DLFCN_H 1
  32773. +_ACEOF
  32774. -irix5* | irix6* | nonstopux*)
  32775. - case $host_os in
  32776. - nonstopux*) version_type=nonstopux ;;
  32777. - *)
  32778. - if test "$lt_cv_prog_gnu_ld" = yes; then
  32779. - version_type=linux
  32780. - else
  32781. - version_type=irix
  32782. - fi ;;
  32783. - esac
  32784. - need_lib_prefix=no
  32785. - need_version=no
  32786. - soname_spec='${libname}${release}${shared_ext}$major'
  32787. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  32788. - case $host_os in
  32789. - irix5* | nonstopux*)
  32790. - libsuff= shlibsuff=
  32791. - ;;
  32792. - *)
  32793. - case $LD in # libtool.m4 will add one of these switches to LD
  32794. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  32795. - libsuff= shlibsuff= libmagic=32-bit;;
  32796. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  32797. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  32798. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  32799. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  32800. - *) libsuff= shlibsuff= libmagic=never-match;;
  32801. - esac
  32802. - ;;
  32803. - esac
  32804. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  32805. - shlibpath_overrides_runpath=no
  32806. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  32807. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  32808. - hardcode_into_libs=yes
  32809. - ;;
  32810. +fi
  32811. -# No shared lib support for Linux oldld, aout, or coff.
  32812. -linux*oldld* | linux*aout* | linux*coff*)
  32813. - dynamic_linker=no
  32814. - ;;
  32815. +done
  32816. -# This must be Linux ELF.
  32817. -linux* | k*bsd*-gnu)
  32818. - version_type=linux
  32819. - need_lib_prefix=no
  32820. - need_version=no
  32821. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32822. - soname_spec='${libname}${release}${shared_ext}$major'
  32823. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  32824. - shlibpath_var=LD_LIBRARY_PATH
  32825. - shlibpath_overrides_runpath=no
  32826. - # This implies no fast_install, which is unacceptable.
  32827. - # Some rework will be needed to allow for fast_install
  32828. - # before this can be enabled.
  32829. - hardcode_into_libs=yes
  32830. - # Append ld.so.conf contents to the search path
  32831. - if test -f /etc/ld.so.conf; then
  32832. - 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' ' '`
  32833. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  32834. - fi
  32835. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  32836. - # powerpc, because MkLinux only supported shared libraries with the
  32837. - # GNU dynamic linker. Since this was broken with cross compilers,
  32838. - # most powerpc-linux boxes support dynamic linking these days and
  32839. - # people can always --disable-shared, the test was removed, and we
  32840. - # assume the GNU/Linux dynamic linker is in use.
  32841. - dynamic_linker='GNU/Linux ld.so'
  32842. - ;;
  32843. +# Set options
  32844. -netbsd*)
  32845. - version_type=sunos
  32846. - need_lib_prefix=no
  32847. - need_version=no
  32848. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32849. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32850. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32851. - dynamic_linker='NetBSD (a.out) ld.so'
  32852. - else
  32853. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32854. - soname_spec='${libname}${release}${shared_ext}$major'
  32855. - dynamic_linker='NetBSD ld.elf_so'
  32856. - fi
  32857. - shlibpath_var=LD_LIBRARY_PATH
  32858. - shlibpath_overrides_runpath=yes
  32859. - hardcode_into_libs=yes
  32860. - ;;
  32861. -newsos6)
  32862. - version_type=linux
  32863. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32864. - shlibpath_var=LD_LIBRARY_PATH
  32865. - shlibpath_overrides_runpath=yes
  32866. - ;;
  32867. -nto-qnx*)
  32868. - version_type=linux
  32869. - need_lib_prefix=no
  32870. - need_version=no
  32871. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32872. - soname_spec='${libname}${release}${shared_ext}$major'
  32873. - shlibpath_var=LD_LIBRARY_PATH
  32874. - shlibpath_overrides_runpath=yes
  32875. - ;;
  32876. + enable_dlopen=no
  32877. +
  32878. +
  32879. + enable_win32_dll=no
  32880. +
  32881. +
  32882. + # Check whether --enable-shared was given.
  32883. +if test "${enable_shared+set}" = set; then :
  32884. + enableval=$enable_shared; p=${PACKAGE-default}
  32885. + case $enableval in
  32886. + yes) enable_shared=yes ;;
  32887. + no) enable_shared=no ;;
  32888. + *)
  32889. + enable_shared=no
  32890. + # Look at the argument we got. We use all the common list separators.
  32891. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  32892. + for pkg in $enableval; do
  32893. + IFS="$lt_save_ifs"
  32894. + if test "X$pkg" = "X$p"; then
  32895. + enable_shared=yes
  32896. + fi
  32897. + done
  32898. + IFS="$lt_save_ifs"
  32899. + ;;
  32900. + esac
  32901. +else
  32902. + enable_shared=yes
  32903. +fi
  32904. +
  32905. +
  32906. -openbsd*)
  32907. - version_type=sunos
  32908. - sys_lib_dlsearch_path_spec="/usr/lib"
  32909. - need_lib_prefix=no
  32910. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  32911. - case $host_os in
  32912. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  32913. - *) need_version=no ;;
  32914. - esac
  32915. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32916. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32917. - shlibpath_var=LD_LIBRARY_PATH
  32918. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32919. - case $host_os in
  32920. - openbsd2.[89] | openbsd2.[89].*)
  32921. - shlibpath_overrides_runpath=no
  32922. - ;;
  32923. - *)
  32924. - shlibpath_overrides_runpath=yes
  32925. - ;;
  32926. - esac
  32927. - else
  32928. - shlibpath_overrides_runpath=yes
  32929. - fi
  32930. - ;;
  32931. -os2*)
  32932. - libname_spec='$name'
  32933. - shrext_cmds=".dll"
  32934. - need_lib_prefix=no
  32935. - library_names_spec='$libname${shared_ext} $libname.a'
  32936. - dynamic_linker='OS/2 ld.exe'
  32937. - shlibpath_var=LIBPATH
  32938. - ;;
  32939. -osf3* | osf4* | osf5*)
  32940. - version_type=osf
  32941. - need_lib_prefix=no
  32942. - need_version=no
  32943. - soname_spec='${libname}${release}${shared_ext}$major'
  32944. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32945. - shlibpath_var=LD_LIBRARY_PATH
  32946. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  32947. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  32948. - ;;
  32949. -rdos*)
  32950. - dynamic_linker=no
  32951. - ;;
  32952. -solaris*)
  32953. - version_type=linux
  32954. - need_lib_prefix=no
  32955. - need_version=no
  32956. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32957. - soname_spec='${libname}${release}${shared_ext}$major'
  32958. - shlibpath_var=LD_LIBRARY_PATH
  32959. - shlibpath_overrides_runpath=yes
  32960. - hardcode_into_libs=yes
  32961. - # ldd complains unless libraries are executable
  32962. - postinstall_cmds='chmod +x $lib'
  32963. - ;;
  32964. -sunos4*)
  32965. - version_type=sunos
  32966. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32967. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  32968. - shlibpath_var=LD_LIBRARY_PATH
  32969. - shlibpath_overrides_runpath=yes
  32970. - if test "$with_gnu_ld" = yes; then
  32971. - need_lib_prefix=no
  32972. - fi
  32973. - need_version=yes
  32974. - ;;
  32975. -sysv4 | sysv4.3*)
  32976. - version_type=linux
  32977. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32978. - soname_spec='${libname}${release}${shared_ext}$major'
  32979. - shlibpath_var=LD_LIBRARY_PATH
  32980. - case $host_vendor in
  32981. - sni)
  32982. - shlibpath_overrides_runpath=no
  32983. - need_lib_prefix=no
  32984. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  32985. - runpath_var=LD_RUN_PATH
  32986. - ;;
  32987. - siemens)
  32988. - need_lib_prefix=no
  32989. - ;;
  32990. - motorola)
  32991. - need_lib_prefix=no
  32992. - need_version=no
  32993. - shlibpath_overrides_runpath=no
  32994. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  32995. + # Check whether --enable-static was given.
  32996. +if test "${enable_static+set}" = set; then :
  32997. + enableval=$enable_static; p=${PACKAGE-default}
  32998. + case $enableval in
  32999. + yes) enable_static=yes ;;
  33000. + no) enable_static=no ;;
  33001. + *)
  33002. + enable_static=no
  33003. + # Look at the argument we got. We use all the common list separators.
  33004. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  33005. + for pkg in $enableval; do
  33006. + IFS="$lt_save_ifs"
  33007. + if test "X$pkg" = "X$p"; then
  33008. + enable_static=yes
  33009. + fi
  33010. + done
  33011. + IFS="$lt_save_ifs"
  33012. ;;
  33013. - esac
  33014. - ;;
  33015. + esac
  33016. +else
  33017. + enable_static=yes
  33018. +fi
  33019. -sysv4*MP*)
  33020. - if test -d /usr/nec ;then
  33021. - version_type=linux
  33022. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  33023. - soname_spec='$libname${shared_ext}.$major'
  33024. - shlibpath_var=LD_LIBRARY_PATH
  33025. - fi
  33026. - ;;
  33027. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  33028. - version_type=freebsd-elf
  33029. - need_lib_prefix=no
  33030. - need_version=no
  33031. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33032. - soname_spec='${libname}${release}${shared_ext}$major'
  33033. - shlibpath_var=LD_LIBRARY_PATH
  33034. - hardcode_into_libs=yes
  33035. - if test "$with_gnu_ld" = yes; then
  33036. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33037. - shlibpath_overrides_runpath=no
  33038. - else
  33039. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33040. - shlibpath_overrides_runpath=yes
  33041. - case $host_os in
  33042. - sco3.2v5*)
  33043. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33044. - ;;
  33045. - esac
  33046. - fi
  33047. - sys_lib_dlsearch_path_spec='/usr/lib'
  33048. - ;;
  33049. -uts4*)
  33050. - version_type=linux
  33051. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33052. - soname_spec='${libname}${release}${shared_ext}$major'
  33053. - shlibpath_var=LD_LIBRARY_PATH
  33054. - ;;
  33055. -*)
  33056. - dynamic_linker=no
  33057. - ;;
  33058. -esac
  33059. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33060. -echo "${ECHO_T}$dynamic_linker" >&6; }
  33061. -test "$dynamic_linker" = no && can_build_shared=no
  33062. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  33063. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33064. -else
  33065. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  33066. -fi
  33067. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  33068. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  33069. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33070. -else
  33071. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  33072. -fi
  33073. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  33074. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33075. -if test "$GCC" = yes; then
  33076. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33077. -fi
  33078. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33079. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  33080. -hardcode_action_F77=
  33081. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  33082. - test -n "$runpath_var_F77" || \
  33083. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  33084. - # We can hardcode non-existant directories.
  33085. - if test "$hardcode_direct_F77" != no &&
  33086. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33087. - # have to relink, otherwise we might link with an installed library
  33088. - # when we should be linking with a yet-to-be-installed one
  33089. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  33090. - test "$hardcode_minus_L_F77" != no; then
  33091. - # Linking always hardcodes the temporary library directory.
  33092. - hardcode_action_F77=relink
  33093. - else
  33094. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33095. - hardcode_action_F77=immediate
  33096. - fi
  33097. +# Check whether --with-pic was given.
  33098. +if test "${with_pic+set}" = set; then :
  33099. + withval=$with_pic; pic_mode="$withval"
  33100. else
  33101. - # We cannot hardcode anything, or else we can only hardcode existing
  33102. - # directories.
  33103. - hardcode_action_F77=unsupported
  33104. + pic_mode=default
  33105. fi
  33106. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  33107. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  33108. -if test "$hardcode_action_F77" = relink; then
  33109. - # Fast installation is not supported
  33110. - enable_fast_install=no
  33111. -elif test "$shlibpath_overrides_runpath" = yes ||
  33112. - test "$enable_shared" = no; then
  33113. - # Fast installation is not necessary
  33114. - enable_fast_install=needless
  33115. -fi
  33116. +test -z "$pic_mode" && pic_mode=default
  33117. -# The else clause should only fire when bootstrapping the
  33118. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  33119. -# with your package, and you will get complaints that there are
  33120. -# no rules to generate ltmain.sh.
  33121. -if test -f "$ltmain"; then
  33122. - # See if we are running on zsh, and set the options which allow our commands through
  33123. - # without removal of \ escapes.
  33124. - if test -n "${ZSH_VERSION+set}" ; then
  33125. - setopt NO_GLOB_SUBST
  33126. - fi
  33127. - # Now quote all the things that may contain metacharacters while being
  33128. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  33129. - # variables and quote the copies for generation of the libtool script.
  33130. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  33131. - SED SHELL STRIP \
  33132. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  33133. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  33134. - deplibs_check_method reload_flag reload_cmds need_locks \
  33135. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  33136. - lt_cv_sys_global_symbol_to_c_name_address \
  33137. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  33138. - old_postinstall_cmds old_postuninstall_cmds \
  33139. - compiler_F77 \
  33140. - CC_F77 \
  33141. - LD_F77 \
  33142. - lt_prog_compiler_wl_F77 \
  33143. - lt_prog_compiler_pic_F77 \
  33144. - lt_prog_compiler_static_F77 \
  33145. - lt_prog_compiler_no_builtin_flag_F77 \
  33146. - export_dynamic_flag_spec_F77 \
  33147. - thread_safe_flag_spec_F77 \
  33148. - whole_archive_flag_spec_F77 \
  33149. - enable_shared_with_static_runtimes_F77 \
  33150. - old_archive_cmds_F77 \
  33151. - old_archive_from_new_cmds_F77 \
  33152. - predep_objects_F77 \
  33153. - postdep_objects_F77 \
  33154. - predeps_F77 \
  33155. - postdeps_F77 \
  33156. - compiler_lib_search_path_F77 \
  33157. - compiler_lib_search_dirs_F77 \
  33158. - archive_cmds_F77 \
  33159. - archive_expsym_cmds_F77 \
  33160. - postinstall_cmds_F77 \
  33161. - postuninstall_cmds_F77 \
  33162. - old_archive_from_expsyms_cmds_F77 \
  33163. - allow_undefined_flag_F77 \
  33164. - no_undefined_flag_F77 \
  33165. - export_symbols_cmds_F77 \
  33166. - hardcode_libdir_flag_spec_F77 \
  33167. - hardcode_libdir_flag_spec_ld_F77 \
  33168. - hardcode_libdir_separator_F77 \
  33169. - hardcode_automatic_F77 \
  33170. - module_cmds_F77 \
  33171. - module_expsym_cmds_F77 \
  33172. - lt_cv_prog_compiler_c_o_F77 \
  33173. - fix_srcfile_path_F77 \
  33174. - exclude_expsyms_F77 \
  33175. - include_expsyms_F77; do
  33176. -
  33177. - case $var in
  33178. - old_archive_cmds_F77 | \
  33179. - old_archive_from_new_cmds_F77 | \
  33180. - archive_cmds_F77 | \
  33181. - archive_expsym_cmds_F77 | \
  33182. - module_cmds_F77 | \
  33183. - module_expsym_cmds_F77 | \
  33184. - old_archive_from_expsyms_cmds_F77 | \
  33185. - export_symbols_cmds_F77 | \
  33186. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  33187. - postinstall_cmds | postuninstall_cmds | \
  33188. - old_postinstall_cmds | old_postuninstall_cmds | \
  33189. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  33190. - # Double-quote double-evaled strings.
  33191. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  33192. - ;;
  33193. +
  33194. +
  33195. +
  33196. +
  33197. +
  33198. +
  33199. + # Check whether --enable-fast-install was given.
  33200. +if test "${enable_fast_install+set}" = set; then :
  33201. + enableval=$enable_fast_install; p=${PACKAGE-default}
  33202. + case $enableval in
  33203. + yes) enable_fast_install=yes ;;
  33204. + no) enable_fast_install=no ;;
  33205. *)
  33206. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  33207. + enable_fast_install=no
  33208. + # Look at the argument we got. We use all the common list separators.
  33209. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  33210. + for pkg in $enableval; do
  33211. + IFS="$lt_save_ifs"
  33212. + if test "X$pkg" = "X$p"; then
  33213. + enable_fast_install=yes
  33214. + fi
  33215. + done
  33216. + IFS="$lt_save_ifs"
  33217. ;;
  33218. esac
  33219. - done
  33220. +else
  33221. + enable_fast_install=yes
  33222. +fi
  33223. - case $lt_echo in
  33224. - *'\$0 --fallback-echo"')
  33225. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  33226. - ;;
  33227. - esac
  33228. -cfgfile="$ofile"
  33229. - cat <<__EOF__ >> "$cfgfile"
  33230. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  33231. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  33232. -# Shell to use when invoking shell scripts.
  33233. -SHELL=$lt_SHELL
  33234. -# Whether or not to build shared libraries.
  33235. -build_libtool_libs=$enable_shared
  33236. -# Whether or not to build static libraries.
  33237. -build_old_libs=$enable_static
  33238. -# Whether or not to add -lc for building shared libraries.
  33239. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  33240. -# Whether or not to disallow shared libs when runtime libs are static
  33241. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  33242. -# Whether or not to optimize for fast installation.
  33243. -fast_install=$enable_fast_install
  33244. -# The host system.
  33245. -host_alias=$host_alias
  33246. -host=$host
  33247. -host_os=$host_os
  33248. +# This can be used to rebuild libtool when needed
  33249. +LIBTOOL_DEPS="$ltmain"
  33250. -# The build system.
  33251. -build_alias=$build_alias
  33252. -build=$build
  33253. -build_os=$build_os
  33254. +# Always use our own libtool.
  33255. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  33256. -# An echo program that does not interpret backslashes.
  33257. -echo=$lt_echo
  33258. -# The archiver.
  33259. -AR=$lt_AR
  33260. -AR_FLAGS=$lt_AR_FLAGS
  33261. -# A C compiler.
  33262. -LTCC=$lt_LTCC
  33263. -# LTCC compiler flags.
  33264. -LTCFLAGS=$lt_LTCFLAGS
  33265. -# A language-specific compiler.
  33266. -CC=$lt_compiler_F77
  33267. -# Is the compiler the GNU C compiler?
  33268. -with_gcc=$GCC_F77
  33269. -# An ERE matcher.
  33270. -EGREP=$lt_EGREP
  33271. -# The linker used to build libraries.
  33272. -LD=$lt_LD_F77
  33273. -# Whether we need hard or soft links.
  33274. -LN_S=$lt_LN_S
  33275. -# A BSD-compatible nm program.
  33276. -NM=$lt_NM
  33277. -# A symbol stripping program
  33278. -STRIP=$lt_STRIP
  33279. -# Used to examine libraries when file_magic_cmd begins "file"
  33280. -MAGIC_CMD=$MAGIC_CMD
  33281. -# Used on cygwin: DLL creation program.
  33282. -DLLTOOL="$DLLTOOL"
  33283. -# Used on cygwin: object dumper.
  33284. -OBJDUMP="$OBJDUMP"
  33285. -# Used on cygwin: assembler.
  33286. -AS="$AS"
  33287. -# The name of the directory that contains temporary libtool files.
  33288. -objdir=$objdir
  33289. -# How to create reloadable object files.
  33290. -reload_flag=$lt_reload_flag
  33291. -reload_cmds=$lt_reload_cmds
  33292. -# How to pass a linker flag through the compiler.
  33293. -wl=$lt_lt_prog_compiler_wl_F77
  33294. -# Object file suffix (normally "o").
  33295. -objext="$ac_objext"
  33296. -# Old archive suffix (normally "a").
  33297. -libext="$libext"
  33298. -# Shared library suffix (normally ".so").
  33299. -shrext_cmds='$shrext_cmds'
  33300. -# Executable file suffix (normally "").
  33301. -exeext="$exeext"
  33302. -# Additional compiler flags for building library objects.
  33303. -pic_flag=$lt_lt_prog_compiler_pic_F77
  33304. -pic_mode=$pic_mode
  33305. -# What is the maximum length of a command?
  33306. -max_cmd_len=$lt_cv_sys_max_cmd_len
  33307. -# Does compiler simultaneously support -c and -o options?
  33308. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  33309. +test -z "$LN_S" && LN_S="ln -s"
  33310. -# Must we lock files when doing compilation?
  33311. -need_locks=$lt_need_locks
  33312. -# Do we need the lib prefix for modules?
  33313. -need_lib_prefix=$need_lib_prefix
  33314. -# Do we need a version for libraries?
  33315. -need_version=$need_version
  33316. -# Whether dlopen is supported.
  33317. -dlopen_support=$enable_dlopen
  33318. -# Whether dlopen of programs is supported.
  33319. -dlopen_self=$enable_dlopen_self
  33320. -# Whether dlopen of statically linked programs is supported.
  33321. -dlopen_self_static=$enable_dlopen_self_static
  33322. -# Compiler flag to prevent dynamic linking.
  33323. -link_static_flag=$lt_lt_prog_compiler_static_F77
  33324. -# Compiler flag to turn off builtin functions.
  33325. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  33326. -# Compiler flag to allow reflexive dlopens.
  33327. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  33328. -# Compiler flag to generate shared objects directly from archives.
  33329. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  33330. -# Compiler flag to generate thread-safe objects.
  33331. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  33332. -# Library versioning type.
  33333. -version_type=$version_type
  33334. -# Format of library name prefix.
  33335. -libname_spec=$lt_libname_spec
  33336. -# List of archive names. First name is the real one, the rest are links.
  33337. -# The last name is the one that the linker finds with -lNAME.
  33338. -library_names_spec=$lt_library_names_spec
  33339. +if test -n "${ZSH_VERSION+set}" ; then
  33340. + setopt NO_GLOB_SUBST
  33341. +fi
  33342. +
  33343. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  33344. +$as_echo_n "checking for objdir... " >&6; }
  33345. +if test "${lt_cv_objdir+set}" = set; then :
  33346. + $as_echo_n "(cached) " >&6
  33347. +else
  33348. + rm -f .libs 2>/dev/null
  33349. +mkdir .libs 2>/dev/null
  33350. +if test -d .libs; then
  33351. + lt_cv_objdir=.libs
  33352. +else
  33353. + # MS-DOS does not allow filenames that begin with a dot.
  33354. + lt_cv_objdir=_libs
  33355. +fi
  33356. +rmdir .libs 2>/dev/null
  33357. +fi
  33358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  33359. +$as_echo "$lt_cv_objdir" >&6; }
  33360. +objdir=$lt_cv_objdir
  33361. +
  33362. +
  33363. +
  33364. +
  33365. +
  33366. +cat >>confdefs.h <<_ACEOF
  33367. +#define LT_OBJDIR "$lt_cv_objdir/"
  33368. +_ACEOF
  33369. +
  33370. +
  33371. +
  33372. +
  33373. +
  33374. -# The coded name of the library, if different from the real name.
  33375. -soname_spec=$lt_soname_spec
  33376. -# Commands used to build and install an old-style archive.
  33377. -RANLIB=$lt_RANLIB
  33378. -old_archive_cmds=$lt_old_archive_cmds_F77
  33379. -old_postinstall_cmds=$lt_old_postinstall_cmds
  33380. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  33381. -# Create an old-style archive from a shared archive.
  33382. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  33383. -# Create a temporary old-style archive to link instead of a shared archive.
  33384. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  33385. -# Commands used to build and install a shared archive.
  33386. -archive_cmds=$lt_archive_cmds_F77
  33387. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  33388. -postinstall_cmds=$lt_postinstall_cmds
  33389. -postuninstall_cmds=$lt_postuninstall_cmds
  33390. -# Commands used to build a loadable module (assumed same as above if empty)
  33391. -module_cmds=$lt_module_cmds_F77
  33392. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  33393. -# Commands to strip libraries.
  33394. -old_striplib=$lt_old_striplib
  33395. -striplib=$lt_striplib
  33396. -# Dependencies to place before the objects being linked to create a
  33397. -# shared library.
  33398. -predep_objects=$lt_predep_objects_F77
  33399. -
  33400. -# Dependencies to place after the objects being linked to create a
  33401. -# shared library.
  33402. -postdep_objects=$lt_postdep_objects_F77
  33403. -
  33404. -# Dependencies to place before the objects being linked to create a
  33405. -# shared library.
  33406. -predeps=$lt_predeps_F77
  33407. -
  33408. -# Dependencies to place after the objects being linked to create a
  33409. -# shared library.
  33410. -postdeps=$lt_postdeps_F77
  33411. -
  33412. -# The directories searched by this compiler when creating a shared
  33413. -# library
  33414. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  33415. -
  33416. -# The library search path used internally by the compiler when linking
  33417. -# a shared library.
  33418. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  33419. -# Method to check whether dependent libraries are shared objects.
  33420. -deplibs_check_method=$lt_deplibs_check_method
  33421. -# Command to use when deplibs_check_method == file_magic.
  33422. -file_magic_cmd=$lt_file_magic_cmd
  33423. -# Flag that allows shared libraries with undefined symbols to be built.
  33424. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  33425. -# Flag that forces no undefined symbols.
  33426. -no_undefined_flag=$lt_no_undefined_flag_F77
  33427. +case $host_os in
  33428. +aix3*)
  33429. + # AIX sometimes has problems with the GCC collect2 program. For some
  33430. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  33431. + # vanish in a puff of smoke.
  33432. + if test "X${COLLECT_NAMES+set}" != Xset; then
  33433. + COLLECT_NAMES=
  33434. + export COLLECT_NAMES
  33435. + fi
  33436. + ;;
  33437. +esac
  33438. -# Commands used to finish a libtool library installation in a directory.
  33439. -finish_cmds=$lt_finish_cmds
  33440. +# Sed substitution that helps us do robust quoting. It backslashifies
  33441. +# metacharacters that are still active within double-quoted strings.
  33442. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  33443. -# Same as above, but a single script fragment to be evaled but not shown.
  33444. -finish_eval=$lt_finish_eval
  33445. +# Same as above, but do not quote variable references.
  33446. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  33447. -# Take the output of nm and produce a listing of raw symbols and C names.
  33448. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  33449. +# Sed substitution to delay expansion of an escaped shell variable in a
  33450. +# double_quote_subst'ed string.
  33451. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  33452. -# Transform the output of nm in a proper C declaration
  33453. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  33454. +# Sed substitution to delay expansion of an escaped single quote.
  33455. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  33456. -# Transform the output of nm in a C name address pair
  33457. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  33458. +# Sed substitution to avoid accidental globbing in evaled expressions
  33459. +no_glob_subst='s/\*/\\\*/g'
  33460. -# This is the shared library runtime path variable.
  33461. -runpath_var=$runpath_var
  33462. +# Global variables:
  33463. +ofile=libtool
  33464. +can_build_shared=yes
  33465. -# This is the shared library path variable.
  33466. -shlibpath_var=$shlibpath_var
  33467. +# All known linkers require a `.a' archive for static linking (except MSVC,
  33468. +# which needs '.lib').
  33469. +libext=a
  33470. -# Is shlibpath searched before the hard-coded library search path?
  33471. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  33472. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  33473. -# How to hardcode a shared library path into an executable.
  33474. -hardcode_action=$hardcode_action_F77
  33475. +old_CC="$CC"
  33476. +old_CFLAGS="$CFLAGS"
  33477. -# Whether we should hardcode library paths into libraries.
  33478. -hardcode_into_libs=$hardcode_into_libs
  33479. +# Set sane defaults for various variables
  33480. +test -z "$CC" && CC=cc
  33481. +test -z "$LTCC" && LTCC=$CC
  33482. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  33483. +test -z "$LD" && LD=ld
  33484. +test -z "$ac_objext" && ac_objext=o
  33485. -# Flag to hardcode \$libdir into a binary during linking.
  33486. -# This must work even if \$libdir does not exist.
  33487. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  33488. +for cc_temp in $compiler""; do
  33489. + case $cc_temp in
  33490. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33491. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33492. + \-*) ;;
  33493. + *) break;;
  33494. + esac
  33495. +done
  33496. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33497. -# If ld is used when linking, flag to hardcode \$libdir into
  33498. -# a binary during linking. This must work even if \$libdir does
  33499. -# not exist.
  33500. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  33501. -
  33502. -# Whether we need a single -rpath flag with a separated argument.
  33503. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  33504. -
  33505. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  33506. -# resulting binary.
  33507. -hardcode_direct=$hardcode_direct_F77
  33508. -
  33509. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  33510. -# resulting binary.
  33511. -hardcode_minus_L=$hardcode_minus_L_F77
  33512. -
  33513. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  33514. -# the resulting binary.
  33515. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  33516. -
  33517. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  33518. -# and all subsequent libraries and executables linked against it.
  33519. -hardcode_automatic=$hardcode_automatic_F77
  33520. -# Variables whose values should be saved in libtool wrapper scripts and
  33521. -# restored at relink time.
  33522. -variables_saved_for_relink="$variables_saved_for_relink"
  33523. +# Only perform the check for file, if the check method requires it
  33524. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  33525. +case $deplibs_check_method in
  33526. +file_magic*)
  33527. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  33528. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  33529. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  33530. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  33531. + $as_echo_n "(cached) " >&6
  33532. +else
  33533. + case $MAGIC_CMD in
  33534. +[\\/*] | ?:[\\/]*)
  33535. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  33536. + ;;
  33537. +*)
  33538. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  33539. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  33540. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  33541. + for ac_dir in $ac_dummy; do
  33542. + IFS="$lt_save_ifs"
  33543. + test -z "$ac_dir" && ac_dir=.
  33544. + if test -f $ac_dir/${ac_tool_prefix}file; then
  33545. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  33546. + if test -n "$file_magic_test_file"; then
  33547. + case $deplibs_check_method in
  33548. + "file_magic "*)
  33549. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  33550. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33551. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  33552. + $EGREP "$file_magic_regex" > /dev/null; then
  33553. + :
  33554. + else
  33555. + cat <<_LT_EOF 1>&2
  33556. -# Whether libtool must link a program against all its dependency libraries.
  33557. -link_all_deplibs=$link_all_deplibs_F77
  33558. +*** Warning: the command libtool uses to detect shared libraries,
  33559. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  33560. +*** The result is that libtool may fail to recognize shared libraries
  33561. +*** as such. This will affect the creation of libtool libraries that
  33562. +*** depend on shared libraries, but programs linked with such libtool
  33563. +*** libraries will work regardless of this problem. Nevertheless, you
  33564. +*** may want to report the problem to your system manager and/or to
  33565. +*** bug-libtool@gnu.org
  33566. -# Compile-time system search path for libraries
  33567. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  33568. +_LT_EOF
  33569. + fi ;;
  33570. + esac
  33571. + fi
  33572. + break
  33573. + fi
  33574. + done
  33575. + IFS="$lt_save_ifs"
  33576. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  33577. + ;;
  33578. +esac
  33579. +fi
  33580. -# Run-time system search path for libraries
  33581. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  33582. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33583. +if test -n "$MAGIC_CMD"; then
  33584. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  33585. +$as_echo "$MAGIC_CMD" >&6; }
  33586. +else
  33587. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33588. +$as_echo "no" >&6; }
  33589. +fi
  33590. -# Fix the shell variable \$srcfile for the compiler.
  33591. -fix_srcfile_path=$lt_fix_srcfile_path
  33592. -# Set to yes if exported symbols are required.
  33593. -always_export_symbols=$always_export_symbols_F77
  33594. -# The commands to list exported symbols.
  33595. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  33596. -# The commands to extract the exported symbol list from a shared archive.
  33597. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  33598. -# Symbols that should not be listed in the preloaded symbols.
  33599. -exclude_expsyms=$lt_exclude_expsyms_F77
  33600. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  33601. + if test -n "$ac_tool_prefix"; then
  33602. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  33603. +$as_echo_n "checking for file... " >&6; }
  33604. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  33605. + $as_echo_n "(cached) " >&6
  33606. +else
  33607. + case $MAGIC_CMD in
  33608. +[\\/*] | ?:[\\/]*)
  33609. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  33610. + ;;
  33611. +*)
  33612. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  33613. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  33614. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  33615. + for ac_dir in $ac_dummy; do
  33616. + IFS="$lt_save_ifs"
  33617. + test -z "$ac_dir" && ac_dir=.
  33618. + if test -f $ac_dir/file; then
  33619. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  33620. + if test -n "$file_magic_test_file"; then
  33621. + case $deplibs_check_method in
  33622. + "file_magic "*)
  33623. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  33624. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33625. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  33626. + $EGREP "$file_magic_regex" > /dev/null; then
  33627. + :
  33628. + else
  33629. + cat <<_LT_EOF 1>&2
  33630. -# Symbols that must always be exported.
  33631. -include_expsyms=$lt_include_expsyms_F77
  33632. +*** Warning: the command libtool uses to detect shared libraries,
  33633. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  33634. +*** The result is that libtool may fail to recognize shared libraries
  33635. +*** as such. This will affect the creation of libtool libraries that
  33636. +*** depend on shared libraries, but programs linked with such libtool
  33637. +*** libraries will work regardless of this problem. Nevertheless, you
  33638. +*** may want to report the problem to your system manager and/or to
  33639. +*** bug-libtool@gnu.org
  33640. -# ### END LIBTOOL TAG CONFIG: $tagname
  33641. +_LT_EOF
  33642. + fi ;;
  33643. + esac
  33644. + fi
  33645. + break
  33646. + fi
  33647. + done
  33648. + IFS="$lt_save_ifs"
  33649. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  33650. + ;;
  33651. +esac
  33652. +fi
  33653. -__EOF__
  33654. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33655. +if test -n "$MAGIC_CMD"; then
  33656. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  33657. +$as_echo "$MAGIC_CMD" >&6; }
  33658. +else
  33659. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33660. +$as_echo "no" >&6; }
  33661. +fi
  33662. -else
  33663. - # If there is no Makefile yet, we rely on a make rule to execute
  33664. - # `config.status --recheck' to rerun these tests and create the
  33665. - # libtool script then.
  33666. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  33667. - if test -f "$ltmain_in"; then
  33668. - test -f Makefile && make "$ltmain"
  33669. + else
  33670. + MAGIC_CMD=:
  33671. fi
  33672. fi
  33673. + fi
  33674. + ;;
  33675. +esac
  33676. +
  33677. +# Use C for the default configuration in the libtool script
  33678. +lt_save_CC="$CC"
  33679. ac_ext=c
  33680. ac_cpp='$CPP $CPPFLAGS'
  33681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33684. -CC="$lt_save_CC"
  33685. -
  33686. - else
  33687. - tagname=""
  33688. - fi
  33689. - ;;
  33690. -
  33691. - GCJ)
  33692. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  33693. +# Source file extension for C test sources.
  33694. +ac_ext=c
  33695. -# Source file extension for Java test sources.
  33696. -ac_ext=java
  33697. -
  33698. -# Object file extension for compiled Java test sources.
  33699. +# Object file extension for compiled C test sources.
  33700. objext=o
  33701. -objext_GCJ=$objext
  33702. +objext=$objext
  33703. # Code to be used in simple compile tests
  33704. -lt_simple_compile_test_code="class foo {}"
  33705. +lt_simple_compile_test_code="int some_variable = 0;"
  33706. # Code to be used in simple link tests
  33707. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  33708. +lt_simple_link_test_code='int main(){return(0);}'
  33709. +
  33710. +
  33711. +
  33712. +
  33713. +
  33714. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  33715. # If no C compiler was specified, use CC.
  33716. LTCC=${LTCC-"$CC"}
  33717. @@ -16889,56 +8410,38 @@
  33718. # Allow CC to be a program name with arguments.
  33719. compiler=$CC
  33720. +# Save the default compiler, since it gets overwritten when the other
  33721. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  33722. +compiler_DEFAULT=$CC
  33723. # save warnings/boilerplate of simple test code
  33724. ac_outfile=conftest.$ac_objext
  33725. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  33726. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33727. -_lt_compiler_boilerplate=`cat conftest.err`
  33728. -$rm conftest*
  33729. -
  33730. -ac_outfile=conftest.$ac_objext
  33731. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  33732. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33733. -_lt_linker_boilerplate=`cat conftest.err`
  33734. -$rm -r conftest*
  33735. -
  33736. -
  33737. -# Allow CC to be a program name with arguments.
  33738. -lt_save_CC="$CC"
  33739. -CC=${GCJ-"gcj"}
  33740. -compiler=$CC
  33741. -compiler_GCJ=$CC
  33742. -for cc_temp in $compiler""; do
  33743. - case $cc_temp in
  33744. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33745. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33746. - \-*) ;;
  33747. - *) break;;
  33748. - esac
  33749. -done
  33750. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33751. -
  33752. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  33753. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33754. +_lt_compiler_boilerplate=`cat conftest.err`
  33755. +$RM conftest*
  33756. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  33757. -archive_cmds_need_lc_GCJ=no
  33758. +ac_outfile=conftest.$ac_objext
  33759. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  33760. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33761. +_lt_linker_boilerplate=`cat conftest.err`
  33762. +$RM -r conftest*
  33763. -old_archive_cmds_GCJ=$old_archive_cmds
  33764. +if test -n "$compiler"; then
  33765. -lt_prog_compiler_no_builtin_flag_GCJ=
  33766. +lt_prog_compiler_no_builtin_flag=
  33767. if test "$GCC" = yes; then
  33768. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  33769. -
  33770. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  33771. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  33772. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  33773. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  33774. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33775. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  33776. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  33777. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  33778. + $as_echo_n "(cached) " >&6
  33779. else
  33780. lt_cv_prog_compiler_rtti_exceptions=no
  33781. - ac_outfile=conftest.$ac_objext
  33782. + ac_outfile=conftest.$ac_objext
  33783. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33784. lt_compiler_flag="-fno-rtti -fno-exceptions"
  33785. # Insert the option either (1) after the last *FLAGS variable, or
  33786. @@ -16950,77 +8453,104 @@
  33787. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33788. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33789. -e 's:$: $lt_compiler_flag:'`
  33790. - (eval echo "\"\$as_me:16953: $lt_compile\"" >&5)
  33791. + (eval echo "\"\$as_me:8456: $lt_compile\"" >&5)
  33792. (eval "$lt_compile" 2>conftest.err)
  33793. ac_status=$?
  33794. cat conftest.err >&5
  33795. - echo "$as_me:16957: \$? = $ac_status" >&5
  33796. + echo "$as_me:8460: \$? = $ac_status" >&5
  33797. if (exit $ac_status) && test -s "$ac_outfile"; then
  33798. # The compiler can only warn and ignore the option if not recognized
  33799. # So say no if there are warnings other than the usual output.
  33800. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33801. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33802. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33803. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33804. lt_cv_prog_compiler_rtti_exceptions=yes
  33805. fi
  33806. fi
  33807. - $rm conftest*
  33808. + $RM conftest*
  33809. fi
  33810. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  33811. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  33812. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  33813. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  33814. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  33815. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  33816. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  33817. else
  33818. :
  33819. fi
  33820. fi
  33821. -lt_prog_compiler_wl_GCJ=
  33822. -lt_prog_compiler_pic_GCJ=
  33823. -lt_prog_compiler_static_GCJ=
  33824. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  33825. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  33826. +
  33827. +
  33828. +
  33829. +
  33830. + lt_prog_compiler_wl=
  33831. +lt_prog_compiler_pic=
  33832. +lt_prog_compiler_static=
  33833. +
  33834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  33835. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  33836. if test "$GCC" = yes; then
  33837. - lt_prog_compiler_wl_GCJ='-Wl,'
  33838. - lt_prog_compiler_static_GCJ='-static'
  33839. + lt_prog_compiler_wl='-Wl,'
  33840. + lt_prog_compiler_static='-static'
  33841. case $host_os in
  33842. aix*)
  33843. # All AIX code is PIC.
  33844. if test "$host_cpu" = ia64; then
  33845. # AIX 5 now supports IA64 processor
  33846. - lt_prog_compiler_static_GCJ='-Bstatic'
  33847. + lt_prog_compiler_static='-Bstatic'
  33848. fi
  33849. ;;
  33850. amigaos*)
  33851. - # FIXME: we need at least 68020 code to build shared libraries, but
  33852. - # adding the `-m68020' flag to GCC prevents building anything better,
  33853. - # like `-m68040'.
  33854. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  33855. + case $host_cpu in
  33856. + powerpc)
  33857. + # see comment about AmigaOS4 .so support
  33858. + lt_prog_compiler_pic='-fPIC'
  33859. + ;;
  33860. + m68k)
  33861. + # FIXME: we need at least 68020 code to build shared libraries, but
  33862. + # adding the `-m68020' flag to GCC prevents building anything better,
  33863. + # like `-m68040'.
  33864. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  33865. + ;;
  33866. + esac
  33867. ;;
  33868. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33869. # PIC is the default for these OSes.
  33870. ;;
  33871. - mingw* | cygwin* | pw32* | os2*)
  33872. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33873. # This hack is so that the source file can tell whether it is being
  33874. # built for inclusion in a dll (and should export symbols for example).
  33875. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  33876. # (--disable-auto-import) libraries
  33877. -
  33878. + lt_prog_compiler_pic='-DDLL_EXPORT'
  33879. ;;
  33880. darwin* | rhapsody*)
  33881. # PIC is the default on this platform
  33882. # Common symbols not allowed in MH_DYLIB files
  33883. - lt_prog_compiler_pic_GCJ='-fno-common'
  33884. + lt_prog_compiler_pic='-fno-common'
  33885. + ;;
  33886. +
  33887. + hpux*)
  33888. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  33889. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  33890. + # sets the default TLS model and affects inlining.
  33891. + case $host_cpu in
  33892. + hppa*64*)
  33893. + # +Z the default
  33894. + ;;
  33895. + *)
  33896. + lt_prog_compiler_pic='-fPIC'
  33897. + ;;
  33898. + esac
  33899. ;;
  33900. interix[3-9]*)
  33901. @@ -17031,64 +8561,47 @@
  33902. msdosdjgpp*)
  33903. # Just because we use GCC doesn't mean we suddenly get shared libraries
  33904. # on systems that don't support them.
  33905. - lt_prog_compiler_can_build_shared_GCJ=no
  33906. + lt_prog_compiler_can_build_shared=no
  33907. enable_shared=no
  33908. ;;
  33909. + *nto* | *qnx*)
  33910. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33911. + # it will coredump.
  33912. + lt_prog_compiler_pic='-fPIC -shared'
  33913. + ;;
  33914. +
  33915. sysv4*MP*)
  33916. if test -d /usr/nec; then
  33917. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  33918. + lt_prog_compiler_pic=-Kconform_pic
  33919. fi
  33920. ;;
  33921. - hpux*)
  33922. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33923. - # not for PA HP-UX.
  33924. - case $host_cpu in
  33925. - hppa*64*|ia64*)
  33926. - # +Z the default
  33927. - ;;
  33928. - *)
  33929. - lt_prog_compiler_pic_GCJ='-fPIC'
  33930. - ;;
  33931. - esac
  33932. - ;;
  33933. -
  33934. *)
  33935. - lt_prog_compiler_pic_GCJ='-fPIC'
  33936. + lt_prog_compiler_pic='-fPIC'
  33937. ;;
  33938. esac
  33939. else
  33940. # PORTME Check for flag to pass linker flags through the system compiler.
  33941. case $host_os in
  33942. aix*)
  33943. - lt_prog_compiler_wl_GCJ='-Wl,'
  33944. + lt_prog_compiler_wl='-Wl,'
  33945. if test "$host_cpu" = ia64; then
  33946. # AIX 5 now supports IA64 processor
  33947. - lt_prog_compiler_static_GCJ='-Bstatic'
  33948. + lt_prog_compiler_static='-Bstatic'
  33949. else
  33950. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  33951. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  33952. fi
  33953. ;;
  33954. - darwin*)
  33955. - # PIC is the default on this platform
  33956. - # Common symbols not allowed in MH_DYLIB files
  33957. - case $cc_basename in
  33958. - xlc*)
  33959. - lt_prog_compiler_pic_GCJ='-qnocommon'
  33960. - lt_prog_compiler_wl_GCJ='-Wl,'
  33961. - ;;
  33962. - esac
  33963. - ;;
  33964. - mingw* | cygwin* | pw32* | os2*)
  33965. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33966. # This hack is so that the source file can tell whether it is being
  33967. # built for inclusion in a dll (and should export symbols for example).
  33968. -
  33969. + lt_prog_compiler_pic='-DDLL_EXPORT'
  33970. ;;
  33971. hpux9* | hpux10* | hpux11*)
  33972. - lt_prog_compiler_wl_GCJ='-Wl,'
  33973. + lt_prog_compiler_wl='-Wl,'
  33974. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33975. # not for PA HP-UX.
  33976. case $host_cpu in
  33977. @@ -17096,141 +8609,180 @@
  33978. # +Z the default
  33979. ;;
  33980. *)
  33981. - lt_prog_compiler_pic_GCJ='+Z'
  33982. + lt_prog_compiler_pic='+Z'
  33983. ;;
  33984. esac
  33985. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33986. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  33987. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  33988. ;;
  33989. irix5* | irix6* | nonstopux*)
  33990. - lt_prog_compiler_wl_GCJ='-Wl,'
  33991. + lt_prog_compiler_wl='-Wl,'
  33992. # PIC (with -KPIC) is the default.
  33993. - lt_prog_compiler_static_GCJ='-non_shared'
  33994. - ;;
  33995. -
  33996. - newsos6)
  33997. - lt_prog_compiler_pic_GCJ='-KPIC'
  33998. - lt_prog_compiler_static_GCJ='-Bstatic'
  33999. + lt_prog_compiler_static='-non_shared'
  34000. ;;
  34001. - linux* | k*bsd*-gnu)
  34002. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  34003. case $cc_basename in
  34004. - icc* | ecc*)
  34005. - lt_prog_compiler_wl_GCJ='-Wl,'
  34006. - lt_prog_compiler_pic_GCJ='-KPIC'
  34007. - lt_prog_compiler_static_GCJ='-static'
  34008. + # old Intel for x86_64 which still supported -KPIC.
  34009. + ecc*)
  34010. + lt_prog_compiler_wl='-Wl,'
  34011. + lt_prog_compiler_pic='-KPIC'
  34012. + lt_prog_compiler_static='-static'
  34013. ;;
  34014. + # icc used to be incompatible with GCC.
  34015. + # ICC 10 doesn't accept -KPIC any more.
  34016. + icc* | ifort*)
  34017. + lt_prog_compiler_wl='-Wl,'
  34018. + lt_prog_compiler_pic='-fPIC'
  34019. + lt_prog_compiler_static='-static'
  34020. + ;;
  34021. + # Lahey Fortran 8.1.
  34022. + lf95*)
  34023. + lt_prog_compiler_wl='-Wl,'
  34024. + lt_prog_compiler_pic='--shared'
  34025. + lt_prog_compiler_static='--static'
  34026. + ;;
  34027. pgcc* | pgf77* | pgf90* | pgf95*)
  34028. # Portland Group compilers (*not* the Pentium gcc compiler,
  34029. # which looks to be a dead project)
  34030. - lt_prog_compiler_wl_GCJ='-Wl,'
  34031. - lt_prog_compiler_pic_GCJ='-fpic'
  34032. - lt_prog_compiler_static_GCJ='-Bstatic'
  34033. + lt_prog_compiler_wl='-Wl,'
  34034. + lt_prog_compiler_pic='-fpic'
  34035. + lt_prog_compiler_static='-Bstatic'
  34036. ;;
  34037. ccc*)
  34038. - lt_prog_compiler_wl_GCJ='-Wl,'
  34039. + lt_prog_compiler_wl='-Wl,'
  34040. # All Alpha code is PIC.
  34041. - lt_prog_compiler_static_GCJ='-non_shared'
  34042. + lt_prog_compiler_static='-non_shared'
  34043. ;;
  34044. + xl*)
  34045. + # IBM XL C 8.0/Fortran 10.1 on PPC
  34046. + lt_prog_compiler_wl='-Wl,'
  34047. + lt_prog_compiler_pic='-qpic'
  34048. + lt_prog_compiler_static='-qstaticlink'
  34049. + ;;
  34050. *)
  34051. - case `$CC -V 2>&1 | sed 5q` in
  34052. + case `$CC -V 2>&1 | sed 5q` in
  34053. *Sun\ C*)
  34054. # Sun C 5.9
  34055. - lt_prog_compiler_pic_GCJ='-KPIC'
  34056. - lt_prog_compiler_static_GCJ='-Bstatic'
  34057. - lt_prog_compiler_wl_GCJ='-Wl,'
  34058. + lt_prog_compiler_pic='-KPIC'
  34059. + lt_prog_compiler_static='-Bstatic'
  34060. + lt_prog_compiler_wl='-Wl,'
  34061. ;;
  34062. *Sun\ F*)
  34063. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  34064. - lt_prog_compiler_pic_GCJ='-KPIC'
  34065. - lt_prog_compiler_static_GCJ='-Bstatic'
  34066. - lt_prog_compiler_wl_GCJ=''
  34067. + lt_prog_compiler_pic='-KPIC'
  34068. + lt_prog_compiler_static='-Bstatic'
  34069. + lt_prog_compiler_wl=''
  34070. ;;
  34071. esac
  34072. ;;
  34073. esac
  34074. ;;
  34075. + newsos6)
  34076. + lt_prog_compiler_pic='-KPIC'
  34077. + lt_prog_compiler_static='-Bstatic'
  34078. + ;;
  34079. +
  34080. + *nto* | *qnx*)
  34081. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  34082. + # it will coredump.
  34083. + lt_prog_compiler_pic='-fPIC -shared'
  34084. + ;;
  34085. +
  34086. osf3* | osf4* | osf5*)
  34087. - lt_prog_compiler_wl_GCJ='-Wl,'
  34088. + lt_prog_compiler_wl='-Wl,'
  34089. # All OSF/1 code is PIC.
  34090. - lt_prog_compiler_static_GCJ='-non_shared'
  34091. + lt_prog_compiler_static='-non_shared'
  34092. ;;
  34093. rdos*)
  34094. - lt_prog_compiler_static_GCJ='-non_shared'
  34095. + lt_prog_compiler_static='-non_shared'
  34096. ;;
  34097. solaris*)
  34098. - lt_prog_compiler_pic_GCJ='-KPIC'
  34099. - lt_prog_compiler_static_GCJ='-Bstatic'
  34100. + lt_prog_compiler_pic='-KPIC'
  34101. + lt_prog_compiler_static='-Bstatic'
  34102. case $cc_basename in
  34103. f77* | f90* | f95*)
  34104. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  34105. + lt_prog_compiler_wl='-Qoption ld ';;
  34106. *)
  34107. - lt_prog_compiler_wl_GCJ='-Wl,';;
  34108. + lt_prog_compiler_wl='-Wl,';;
  34109. esac
  34110. ;;
  34111. sunos4*)
  34112. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  34113. - lt_prog_compiler_pic_GCJ='-PIC'
  34114. - lt_prog_compiler_static_GCJ='-Bstatic'
  34115. + lt_prog_compiler_wl='-Qoption ld '
  34116. + lt_prog_compiler_pic='-PIC'
  34117. + lt_prog_compiler_static='-Bstatic'
  34118. ;;
  34119. sysv4 | sysv4.2uw2* | sysv4.3*)
  34120. - lt_prog_compiler_wl_GCJ='-Wl,'
  34121. - lt_prog_compiler_pic_GCJ='-KPIC'
  34122. - lt_prog_compiler_static_GCJ='-Bstatic'
  34123. + lt_prog_compiler_wl='-Wl,'
  34124. + lt_prog_compiler_pic='-KPIC'
  34125. + lt_prog_compiler_static='-Bstatic'
  34126. ;;
  34127. sysv4*MP*)
  34128. if test -d /usr/nec ;then
  34129. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  34130. - lt_prog_compiler_static_GCJ='-Bstatic'
  34131. + lt_prog_compiler_pic='-Kconform_pic'
  34132. + lt_prog_compiler_static='-Bstatic'
  34133. fi
  34134. ;;
  34135. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  34136. - lt_prog_compiler_wl_GCJ='-Wl,'
  34137. - lt_prog_compiler_pic_GCJ='-KPIC'
  34138. - lt_prog_compiler_static_GCJ='-Bstatic'
  34139. + lt_prog_compiler_wl='-Wl,'
  34140. + lt_prog_compiler_pic='-KPIC'
  34141. + lt_prog_compiler_static='-Bstatic'
  34142. ;;
  34143. unicos*)
  34144. - lt_prog_compiler_wl_GCJ='-Wl,'
  34145. - lt_prog_compiler_can_build_shared_GCJ=no
  34146. + lt_prog_compiler_wl='-Wl,'
  34147. + lt_prog_compiler_can_build_shared=no
  34148. ;;
  34149. uts4*)
  34150. - lt_prog_compiler_pic_GCJ='-pic'
  34151. - lt_prog_compiler_static_GCJ='-Bstatic'
  34152. + lt_prog_compiler_pic='-pic'
  34153. + lt_prog_compiler_static='-Bstatic'
  34154. ;;
  34155. *)
  34156. - lt_prog_compiler_can_build_shared_GCJ=no
  34157. + lt_prog_compiler_can_build_shared=no
  34158. ;;
  34159. esac
  34160. fi
  34161. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  34162. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  34163. +case $host_os in
  34164. + # For platforms which do not support PIC, -DPIC is meaningless:
  34165. + *djgpp*)
  34166. + lt_prog_compiler_pic=
  34167. + ;;
  34168. + *)
  34169. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  34170. + ;;
  34171. +esac
  34172. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  34173. +$as_echo "$lt_prog_compiler_pic" >&6; }
  34174. +
  34175. +
  34176. +
  34177. +
  34178. +
  34179. #
  34180. # Check to make sure the PIC flag actually works.
  34181. #
  34182. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  34183. -
  34184. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  34185. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  34186. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  34187. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34188. +if test -n "$lt_prog_compiler_pic"; then
  34189. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  34190. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  34191. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  34192. + $as_echo_n "(cached) " >&6
  34193. else
  34194. - lt_cv_prog_compiler_pic_works_GCJ=no
  34195. - ac_outfile=conftest.$ac_objext
  34196. + lt_cv_prog_compiler_pic_works=no
  34197. + ac_outfile=conftest.$ac_objext
  34198. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34199. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  34200. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  34201. # Insert the option either (1) after the last *FLAGS variable, or
  34202. # (2) before a word containing "conftest.", or (3) at the end.
  34203. # Note that $ac_compile itself does not contain backslashes and begins
  34204. @@ -17240,57 +8792,53 @@
  34205. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34206. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34207. -e 's:$: $lt_compiler_flag:'`
  34208. - (eval echo "\"\$as_me:17243: $lt_compile\"" >&5)
  34209. + (eval echo "\"\$as_me:8795: $lt_compile\"" >&5)
  34210. (eval "$lt_compile" 2>conftest.err)
  34211. ac_status=$?
  34212. cat conftest.err >&5
  34213. - echo "$as_me:17247: \$? = $ac_status" >&5
  34214. + echo "$as_me:8799: \$? = $ac_status" >&5
  34215. if (exit $ac_status) && test -s "$ac_outfile"; then
  34216. # The compiler can only warn and ignore the option if not recognized
  34217. # So say no if there are warnings other than the usual output.
  34218. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34219. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34220. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34221. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34222. - lt_cv_prog_compiler_pic_works_GCJ=yes
  34223. + lt_cv_prog_compiler_pic_works=yes
  34224. fi
  34225. fi
  34226. - $rm conftest*
  34227. + $RM conftest*
  34228. fi
  34229. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  34230. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  34231. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  34232. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  34233. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  34234. - case $lt_prog_compiler_pic_GCJ in
  34235. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  34236. + case $lt_prog_compiler_pic in
  34237. "" | " "*) ;;
  34238. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  34239. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  34240. esac
  34241. else
  34242. - lt_prog_compiler_pic_GCJ=
  34243. - lt_prog_compiler_can_build_shared_GCJ=no
  34244. + lt_prog_compiler_pic=
  34245. + lt_prog_compiler_can_build_shared=no
  34246. fi
  34247. fi
  34248. -case $host_os in
  34249. - # For platforms which do not support PIC, -DPIC is meaningless:
  34250. - *djgpp*)
  34251. - lt_prog_compiler_pic_GCJ=
  34252. - ;;
  34253. - *)
  34254. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  34255. - ;;
  34256. -esac
  34257. +
  34258. +
  34259. +
  34260. +
  34261. +
  34262. #
  34263. # Check to make sure the static flag actually works.
  34264. #
  34265. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  34266. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  34267. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  34268. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  34269. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34270. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  34271. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  34272. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  34273. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  34274. + $as_echo_n "(cached) " >&6
  34275. else
  34276. - lt_cv_prog_compiler_static_works_GCJ=no
  34277. + lt_cv_prog_compiler_static_works=no
  34278. save_LDFLAGS="$LDFLAGS"
  34279. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  34280. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  34281. @@ -17300,36 +8848,96 @@
  34282. if test -s conftest.err; then
  34283. # Append any errors to the config.log.
  34284. cat conftest.err 1>&5
  34285. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34286. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34287. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34288. if diff conftest.exp conftest.er2 >/dev/null; then
  34289. - lt_cv_prog_compiler_static_works_GCJ=yes
  34290. + lt_cv_prog_compiler_static_works=yes
  34291. fi
  34292. else
  34293. - lt_cv_prog_compiler_static_works_GCJ=yes
  34294. + lt_cv_prog_compiler_static_works=yes
  34295. fi
  34296. fi
  34297. - $rm -r conftest*
  34298. + $RM -r conftest*
  34299. LDFLAGS="$save_LDFLAGS"
  34300. fi
  34301. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  34302. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  34303. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  34304. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  34305. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  34306. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  34307. :
  34308. else
  34309. - lt_prog_compiler_static_GCJ=
  34310. + lt_prog_compiler_static=
  34311. +fi
  34312. +
  34313. +
  34314. +
  34315. +
  34316. +
  34317. +
  34318. +
  34319. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  34320. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  34321. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  34322. + $as_echo_n "(cached) " >&6
  34323. +else
  34324. + lt_cv_prog_compiler_c_o=no
  34325. + $RM -r conftest 2>/dev/null
  34326. + mkdir conftest
  34327. + cd conftest
  34328. + mkdir out
  34329. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34330. +
  34331. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  34332. + # Insert the option either (1) after the last *FLAGS variable, or
  34333. + # (2) before a word containing "conftest.", or (3) at the end.
  34334. + # Note that $ac_compile itself does not contain backslashes and begins
  34335. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  34336. + lt_compile=`echo "$ac_compile" | $SED \
  34337. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34338. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34339. + -e 's:$: $lt_compiler_flag:'`
  34340. + (eval echo "\"\$as_me:8900: $lt_compile\"" >&5)
  34341. + (eval "$lt_compile" 2>out/conftest.err)
  34342. + ac_status=$?
  34343. + cat out/conftest.err >&5
  34344. + echo "$as_me:8904: \$? = $ac_status" >&5
  34345. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  34346. + then
  34347. + # The compiler can only warn and ignore the option if not recognized
  34348. + # So say no if there are warnings
  34349. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34350. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  34351. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  34352. + lt_cv_prog_compiler_c_o=yes
  34353. + fi
  34354. + fi
  34355. + chmod u+w . 2>&5
  34356. + $RM conftest*
  34357. + # SGI C++ compiler will create directory out/ii_files/ for
  34358. + # template instantiation
  34359. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  34360. + $RM out/* && rmdir out
  34361. + cd ..
  34362. + $RM -r conftest
  34363. + $RM conftest*
  34364. +
  34365. fi
  34366. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  34367. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  34368. +
  34369. +
  34370. +
  34371. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  34372. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  34373. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  34374. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34375. +
  34376. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  34377. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  34378. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  34379. + $as_echo_n "(cached) " >&6
  34380. else
  34381. - lt_cv_prog_compiler_c_o_GCJ=no
  34382. - $rm -r conftest 2>/dev/null
  34383. + lt_cv_prog_compiler_c_o=no
  34384. + $RM -r conftest 2>/dev/null
  34385. mkdir conftest
  34386. cd conftest
  34387. mkdir out
  34388. @@ -17344,91 +8952,101 @@
  34389. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34390. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34391. -e 's:$: $lt_compiler_flag:'`
  34392. - (eval echo "\"\$as_me:17347: $lt_compile\"" >&5)
  34393. + (eval echo "\"\$as_me:8955: $lt_compile\"" >&5)
  34394. (eval "$lt_compile" 2>out/conftest.err)
  34395. ac_status=$?
  34396. cat out/conftest.err >&5
  34397. - echo "$as_me:17351: \$? = $ac_status" >&5
  34398. + echo "$as_me:8959: \$? = $ac_status" >&5
  34399. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  34400. then
  34401. # The compiler can only warn and ignore the option if not recognized
  34402. # So say no if there are warnings
  34403. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34404. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34405. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  34406. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  34407. - lt_cv_prog_compiler_c_o_GCJ=yes
  34408. + lt_cv_prog_compiler_c_o=yes
  34409. fi
  34410. fi
  34411. chmod u+w . 2>&5
  34412. - $rm conftest*
  34413. + $RM conftest*
  34414. # SGI C++ compiler will create directory out/ii_files/ for
  34415. # template instantiation
  34416. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  34417. - $rm out/* && rmdir out
  34418. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  34419. + $RM out/* && rmdir out
  34420. cd ..
  34421. - rmdir conftest
  34422. - $rm conftest*
  34423. + $RM -r conftest
  34424. + $RM conftest*
  34425. fi
  34426. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  34427. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  34428. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  34429. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  34430. +
  34431. +
  34432. hard_links="nottested"
  34433. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  34434. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  34435. # do not overwrite the value of need_locks provided by the user
  34436. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  34437. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  34438. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  34439. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  34440. hard_links=yes
  34441. - $rm conftest*
  34442. + $RM conftest*
  34443. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34444. touch conftest.a
  34445. ln conftest.a conftest.b 2>&5 || hard_links=no
  34446. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34447. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  34448. -echo "${ECHO_T}$hard_links" >&6; }
  34449. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  34450. +$as_echo "$hard_links" >&6; }
  34451. if test "$hard_links" = no; then
  34452. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  34453. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  34454. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  34455. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  34456. need_locks=warn
  34457. fi
  34458. else
  34459. need_locks=no
  34460. fi
  34461. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34462. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  34463. +
  34464. +
  34465. +
  34466. +
  34467. +
  34468. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34469. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  34470. runpath_var=
  34471. - allow_undefined_flag_GCJ=
  34472. - enable_shared_with_static_runtimes_GCJ=no
  34473. - archive_cmds_GCJ=
  34474. - archive_expsym_cmds_GCJ=
  34475. - old_archive_From_new_cmds_GCJ=
  34476. - old_archive_from_expsyms_cmds_GCJ=
  34477. - export_dynamic_flag_spec_GCJ=
  34478. - whole_archive_flag_spec_GCJ=
  34479. - thread_safe_flag_spec_GCJ=
  34480. - hardcode_libdir_flag_spec_GCJ=
  34481. - hardcode_libdir_flag_spec_ld_GCJ=
  34482. - hardcode_libdir_separator_GCJ=
  34483. - hardcode_direct_GCJ=no
  34484. - hardcode_minus_L_GCJ=no
  34485. - hardcode_shlibpath_var_GCJ=unsupported
  34486. - link_all_deplibs_GCJ=unknown
  34487. - hardcode_automatic_GCJ=no
  34488. - module_cmds_GCJ=
  34489. - module_expsym_cmds_GCJ=
  34490. - always_export_symbols_GCJ=no
  34491. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34492. + allow_undefined_flag=
  34493. + always_export_symbols=no
  34494. + archive_cmds=
  34495. + archive_expsym_cmds=
  34496. + compiler_needs_object=no
  34497. + enable_shared_with_static_runtimes=no
  34498. + export_dynamic_flag_spec=
  34499. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34500. + hardcode_automatic=no
  34501. + hardcode_direct=no
  34502. + hardcode_direct_absolute=no
  34503. + hardcode_libdir_flag_spec=
  34504. + hardcode_libdir_flag_spec_ld=
  34505. + hardcode_libdir_separator=
  34506. + hardcode_minus_L=no
  34507. + hardcode_shlibpath_var=unsupported
  34508. + inherit_rpath=no
  34509. + link_all_deplibs=unknown
  34510. + module_cmds=
  34511. + module_expsym_cmds=
  34512. + old_archive_from_new_cmds=
  34513. + old_archive_from_expsyms_cmds=
  34514. + thread_safe_flag_spec=
  34515. + whole_archive_flag_spec=
  34516. # include_expsyms should be a list of space-separated symbols to be *always*
  34517. # included in the symbol list
  34518. - include_expsyms_GCJ=
  34519. + include_expsyms=
  34520. # exclude_expsyms can be an extended regexp of symbols to exclude
  34521. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  34522. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  34523. # as well as any symbol that contains `d'.
  34524. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  34525. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  34526. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  34527. # platforms (ab)use it in PIC code, but their linkers get confused if
  34528. # the symbol is explicitly referenced. Since portable code cannot
  34529. @@ -17436,19 +9054,9 @@
  34530. # preloaded symbol tables.
  34531. # Exclude shared library initialization/finalization symbols.
  34532. extract_expsyms_cmds=
  34533. - # Just being paranoid about ensuring that cc_basename is set.
  34534. - for cc_temp in $compiler""; do
  34535. - case $cc_temp in
  34536. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34537. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34538. - \-*) ;;
  34539. - *) break;;
  34540. - esac
  34541. -done
  34542. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34543. case $host_os in
  34544. - cygwin* | mingw* | pw32*)
  34545. + cygwin* | mingw* | pw32* | cegcc*)
  34546. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  34547. # When not using gcc, we currently assume that we are using
  34548. # Microsoft Visual C++.
  34549. @@ -17463,9 +9071,12 @@
  34550. openbsd*)
  34551. with_gnu_ld=no
  34552. ;;
  34553. + linux* | k*bsd*-gnu)
  34554. + link_all_deplibs=no
  34555. + ;;
  34556. esac
  34557. - ld_shlibs_GCJ=yes
  34558. + ld_shlibs=yes
  34559. if test "$with_gnu_ld" = yes; then
  34560. # If archive_cmds runs LD, not CC, wlarc should be empty
  34561. wlarc='${wl}'
  34562. @@ -17474,16 +9085,17 @@
  34563. # are reset later if shared libraries are not supported. Putting them
  34564. # here allows them to be overridden if necessary.
  34565. runpath_var=LD_RUN_PATH
  34566. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  34567. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  34568. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34569. + export_dynamic_flag_spec='${wl}--export-dynamic'
  34570. # ancient GNU ld didn't support --whole-archive et. al.
  34571. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  34572. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34573. - else
  34574. - whole_archive_flag_spec_GCJ=
  34575. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  34576. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34577. + else
  34578. + whole_archive_flag_spec=
  34579. fi
  34580. supports_anon_versioning=no
  34581. - case `$LD -v 2>/dev/null` in
  34582. + case `$LD -v 2>&1` in
  34583. + *GNU\ gold*) supports_anon_versioning=yes ;;
  34584. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34585. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34586. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34587. @@ -17496,8 +9108,8 @@
  34588. aix[3-9]*)
  34589. # On AIX/PPC, the GNU linker is very broken
  34590. if test "$host_cpu" != ia64; then
  34591. - ld_shlibs_GCJ=no
  34592. - cat <<EOF 1>&2
  34593. + ld_shlibs=no
  34594. + cat <<_LT_EOF 1>&2
  34595. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  34596. *** to be unable to reliably create shared libraries on AIX.
  34597. @@ -17505,49 +9117,50 @@
  34598. *** really care for shared libraries, you may want to modify your PATH
  34599. *** so that a non-GNU linker is found, and then restart.
  34600. -EOF
  34601. +_LT_EOF
  34602. fi
  34603. ;;
  34604. amigaos*)
  34605. - 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)'
  34606. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34607. - hardcode_minus_L_GCJ=yes
  34608. -
  34609. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  34610. - # that the semantics of dynamic libraries on AmigaOS, at least up
  34611. - # to version 4, is to share data among multiple programs linked
  34612. - # with the same dynamic library. Since this doesn't match the
  34613. - # behavior of shared libraries on other platforms, we can't use
  34614. - # them.
  34615. - ld_shlibs_GCJ=no
  34616. + case $host_cpu in
  34617. + powerpc)
  34618. + # see comment about AmigaOS4 .so support
  34619. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34620. + archive_expsym_cmds=''
  34621. + ;;
  34622. + m68k)
  34623. + 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)'
  34624. + hardcode_libdir_flag_spec='-L$libdir'
  34625. + hardcode_minus_L=yes
  34626. + ;;
  34627. + esac
  34628. ;;
  34629. beos*)
  34630. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34631. - allow_undefined_flag_GCJ=unsupported
  34632. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34633. + allow_undefined_flag=unsupported
  34634. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34635. # support --undefined. This deserves some investigation. FIXME
  34636. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34637. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34638. else
  34639. - ld_shlibs_GCJ=no
  34640. + ld_shlibs=no
  34641. fi
  34642. ;;
  34643. - cygwin* | mingw* | pw32*)
  34644. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  34645. + cygwin* | mingw* | pw32* | cegcc*)
  34646. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  34647. # as there is no search path for DLLs.
  34648. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34649. - allow_undefined_flag_GCJ=unsupported
  34650. - always_export_symbols_GCJ=no
  34651. - enable_shared_with_static_runtimes_GCJ=yes
  34652. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  34653. + hardcode_libdir_flag_spec='-L$libdir'
  34654. + allow_undefined_flag=unsupported
  34655. + always_export_symbols=no
  34656. + enable_shared_with_static_runtimes=yes
  34657. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  34658. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  34659. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34660. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  34661. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34662. # If the export-symbols file already is a .def file (1st line
  34663. # is EXPORTS), use it as is; otherwise, prepend...
  34664. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34665. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34666. cp $export_symbols $output_objdir/$soname.def;
  34667. else
  34668. echo EXPORTS > $output_objdir/$soname.def;
  34669. @@ -17555,79 +9168,109 @@
  34670. fi~
  34671. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34672. else
  34673. - ld_shlibs_GCJ=no
  34674. + ld_shlibs=no
  34675. fi
  34676. ;;
  34677. interix[3-9]*)
  34678. - hardcode_direct_GCJ=no
  34679. - hardcode_shlibpath_var_GCJ=no
  34680. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  34681. - export_dynamic_flag_spec_GCJ='${wl}-E'
  34682. + hardcode_direct=no
  34683. + hardcode_shlibpath_var=no
  34684. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34685. + export_dynamic_flag_spec='${wl}-E'
  34686. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34687. # Instead, shared libraries are loaded at an image base (0x10000000 by
  34688. # default) and relocated if they conflict, which is a slow very memory
  34689. # consuming and fragmenting process. To avoid this, we pick a random,
  34690. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34691. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34692. - 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'
  34693. - 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'
  34694. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  34695. + 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'
  34696. ;;
  34697. - gnu* | linux* | k*bsd*-gnu)
  34698. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34699. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  34700. + tmp_diet=no
  34701. + if test "$host_os" = linux-dietlibc; then
  34702. + case $cc_basename in
  34703. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  34704. + esac
  34705. + fi
  34706. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  34707. + && test "$tmp_diet" = no
  34708. + then
  34709. tmp_addflag=
  34710. + tmp_sharedflag='-shared'
  34711. case $cc_basename,$host_cpu in
  34712. - pgcc*) # Portland Group C compiler
  34713. - 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'
  34714. + pgcc*) # Portland Group C compiler
  34715. + 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'
  34716. tmp_addflag=' $pic_flag'
  34717. ;;
  34718. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34719. - 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'
  34720. + 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'
  34721. tmp_addflag=' $pic_flag -Mnomain' ;;
  34722. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34723. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34724. tmp_addflag=' -i_dynamic' ;;
  34725. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34726. tmp_addflag=' -i_dynamic -nofor_main' ;;
  34727. ifc* | ifort*) # Intel Fortran compiler
  34728. tmp_addflag=' -nofor_main' ;;
  34729. + lf95*) # Lahey Fortran 8.1
  34730. + whole_archive_flag_spec=
  34731. + tmp_sharedflag='--shared' ;;
  34732. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  34733. + tmp_sharedflag='-qmkshrobj'
  34734. + tmp_addflag= ;;
  34735. esac
  34736. case `$CC -V 2>&1 | sed 5q` in
  34737. *Sun\ C*) # Sun C 5.9
  34738. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  34739. + 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'
  34740. + compiler_needs_object=yes
  34741. tmp_sharedflag='-G' ;;
  34742. *Sun\ F*) # Sun Fortran 8.3
  34743. tmp_sharedflag='-G' ;;
  34744. - *)
  34745. - tmp_sharedflag='-shared' ;;
  34746. esac
  34747. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34748. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34749. - if test $supports_anon_versioning = yes; then
  34750. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  34751. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34752. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  34753. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34754. - fi
  34755. + if test "x$supports_anon_versioning" = xyes; then
  34756. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34757. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34758. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34759. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34760. + fi
  34761. +
  34762. + case $cc_basename in
  34763. + xlf*)
  34764. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  34765. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  34766. + hardcode_libdir_flag_spec=
  34767. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  34768. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  34769. + if test "x$supports_anon_versioning" = xyes; then
  34770. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34771. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34772. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34773. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  34774. + fi
  34775. + ;;
  34776. + esac
  34777. else
  34778. - ld_shlibs_GCJ=no
  34779. + ld_shlibs=no
  34780. fi
  34781. ;;
  34782. - netbsd*)
  34783. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34784. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34785. + netbsd* | netbsdelf*-gnu)
  34786. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34787. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34788. wlarc=
  34789. else
  34790. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34791. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34792. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34793. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34794. fi
  34795. ;;
  34796. solaris*)
  34797. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  34798. - ld_shlibs_GCJ=no
  34799. - cat <<EOF 1>&2
  34800. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  34801. + ld_shlibs=no
  34802. + cat <<_LT_EOF 1>&2
  34803. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34804. *** create shared libraries on Solaris systems. Therefore, libtool
  34805. @@ -17636,19 +9279,19 @@
  34806. *** your PATH or compiler configuration so that the native linker is
  34807. *** used, and then restart.
  34808. -EOF
  34809. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34810. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34811. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34812. +_LT_EOF
  34813. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34814. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34815. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34816. else
  34817. - ld_shlibs_GCJ=no
  34818. + ld_shlibs=no
  34819. fi
  34820. ;;
  34821. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34822. case `$LD -v 2>&1` in
  34823. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34824. - ld_shlibs_GCJ=no
  34825. + ld_shlibs=no
  34826. cat <<_LT_EOF 1>&2
  34827. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34828. @@ -17661,54 +9304,58 @@
  34829. _LT_EOF
  34830. ;;
  34831. *)
  34832. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34833. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  34834. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  34835. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  34836. + # For security reasons, it is highly recommended that you always
  34837. + # use absolute paths for naming shared libraries, and exclude the
  34838. + # DT_RUNPATH tag from executables and libraries. But doing so
  34839. + # requires that you compile everything twice, which is a pain.
  34840. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34841. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34842. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34843. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34844. else
  34845. - ld_shlibs_GCJ=no
  34846. + ld_shlibs=no
  34847. fi
  34848. ;;
  34849. esac
  34850. ;;
  34851. sunos4*)
  34852. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34853. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34854. wlarc=
  34855. - hardcode_direct_GCJ=yes
  34856. - hardcode_shlibpath_var_GCJ=no
  34857. + hardcode_direct=yes
  34858. + hardcode_shlibpath_var=no
  34859. ;;
  34860. *)
  34861. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34862. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34863. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34864. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34865. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34866. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34867. else
  34868. - ld_shlibs_GCJ=no
  34869. + ld_shlibs=no
  34870. fi
  34871. ;;
  34872. esac
  34873. - if test "$ld_shlibs_GCJ" = no; then
  34874. + if test "$ld_shlibs" = no; then
  34875. runpath_var=
  34876. - hardcode_libdir_flag_spec_GCJ=
  34877. - export_dynamic_flag_spec_GCJ=
  34878. - whole_archive_flag_spec_GCJ=
  34879. + hardcode_libdir_flag_spec=
  34880. + export_dynamic_flag_spec=
  34881. + whole_archive_flag_spec=
  34882. fi
  34883. else
  34884. # PORTME fill in a description of your system's linker (not GNU ld)
  34885. case $host_os in
  34886. aix3*)
  34887. - allow_undefined_flag_GCJ=unsupported
  34888. - always_export_symbols_GCJ=yes
  34889. - 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'
  34890. + allow_undefined_flag=unsupported
  34891. + always_export_symbols=yes
  34892. + 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'
  34893. # Note: this linker hardcodes the directories in LIBPATH if there
  34894. # are no directories specified by -L.
  34895. - hardcode_minus_L_GCJ=yes
  34896. + hardcode_minus_L=yes
  34897. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34898. # Neither direct hardcoding nor static linking is supported with a
  34899. # broken collect2.
  34900. - hardcode_direct_GCJ=unsupported
  34901. + hardcode_direct=unsupported
  34902. fi
  34903. ;;
  34904. @@ -17722,10 +9369,10 @@
  34905. else
  34906. # If we're using GNU nm, then we don't want the "-C" option.
  34907. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34908. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  34909. - 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'
  34910. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  34911. + 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'
  34912. else
  34913. - 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'
  34914. + 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'
  34915. fi
  34916. aix_use_runtimelinking=no
  34917. @@ -17734,10 +9381,10 @@
  34918. # need to do runtime linking.
  34919. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  34920. for ld_flag in $LDFLAGS; do
  34921. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34922. - aix_use_runtimelinking=yes
  34923. - break
  34924. - fi
  34925. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34926. + aix_use_runtimelinking=yes
  34927. + break
  34928. + fi
  34929. done
  34930. ;;
  34931. esac
  34932. @@ -17752,30 +9399,32 @@
  34933. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34934. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34935. - archive_cmds_GCJ=''
  34936. - hardcode_direct_GCJ=yes
  34937. - hardcode_libdir_separator_GCJ=':'
  34938. - link_all_deplibs_GCJ=yes
  34939. + archive_cmds=''
  34940. + hardcode_direct=yes
  34941. + hardcode_direct_absolute=yes
  34942. + hardcode_libdir_separator=':'
  34943. + link_all_deplibs=yes
  34944. + file_list_spec='${wl}-f,'
  34945. if test "$GCC" = yes; then
  34946. case $host_os in aix4.[012]|aix4.[012].*)
  34947. # We only want to do this on AIX 4.2 and lower, the check
  34948. # below for broken collect2 doesn't work under 4.3+
  34949. collect2name=`${CC} -print-prog-name=collect2`
  34950. - if test -f "$collect2name" && \
  34951. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  34952. + if test -f "$collect2name" &&
  34953. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  34954. then
  34955. - # We have reworked collect2
  34956. - :
  34957. + # We have reworked collect2
  34958. + :
  34959. else
  34960. - # We have old collect2
  34961. - hardcode_direct_GCJ=unsupported
  34962. - # It fails to find uninstalled libraries when the uninstalled
  34963. - # path is not listed in the libpath. Setting hardcode_minus_L
  34964. - # to unsupported forces relinking
  34965. - hardcode_minus_L_GCJ=yes
  34966. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34967. - hardcode_libdir_separator_GCJ=
  34968. + # We have old collect2
  34969. + hardcode_direct=unsupported
  34970. + # It fails to find uninstalled libraries when the uninstalled
  34971. + # path is not listed in the libpath. Setting hardcode_minus_L
  34972. + # to unsupported forces relinking
  34973. + hardcode_minus_L=yes
  34974. + hardcode_libdir_flag_spec='-L$libdir'
  34975. + hardcode_libdir_separator=
  34976. fi
  34977. ;;
  34978. esac
  34979. @@ -17783,11 +9432,12 @@
  34980. if test "$aix_use_runtimelinking" = yes; then
  34981. shared_flag="$shared_flag "'${wl}-G'
  34982. fi
  34983. + link_all_deplibs=no
  34984. else
  34985. # not using gcc
  34986. if test "$host_cpu" = ia64; then
  34987. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34988. - # chokes on -Wl,-G. The following line is correct:
  34989. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34990. + # chokes on -Wl,-G. The following line is correct:
  34991. shared_flag='-G'
  34992. else
  34993. if test "$aix_use_runtimelinking" = yes; then
  34994. @@ -17798,19 +9448,17 @@
  34995. fi
  34996. fi
  34997. + export_dynamic_flag_spec='${wl}-bexpall'
  34998. # It seems that -bexpall does not export symbols beginning with
  34999. # underscore (_), so it is better to generate a list of symbols to export.
  35000. - always_export_symbols_GCJ=yes
  35001. + always_export_symbols=yes
  35002. if test "$aix_use_runtimelinking" = yes; then
  35003. # Warning - without using the other runtime loading flags (-brtl),
  35004. # -berok will link without error, but may produce a broken library.
  35005. - allow_undefined_flag_GCJ='-berok'
  35006. - # Determine the default libpath from the value encoded in an empty executable.
  35007. - cat >conftest.$ac_ext <<_ACEOF
  35008. -/* confdefs.h. */
  35009. -_ACEOF
  35010. -cat confdefs.h >>conftest.$ac_ext
  35011. -cat >>conftest.$ac_ext <<_ACEOF
  35012. + allow_undefined_flag='-berok'
  35013. + # Determine the default libpath from the value encoded in an
  35014. + # empty executable.
  35015. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35016. /* end confdefs.h. */
  35017. int
  35018. @@ -17821,24 +9469,7 @@
  35019. return 0;
  35020. }
  35021. _ACEOF
  35022. -rm -f conftest.$ac_objext conftest$ac_exeext
  35023. -if { (ac_try="$ac_link"
  35024. -case "(($ac_try" in
  35025. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35026. - *) ac_try_echo=$ac_try;;
  35027. -esac
  35028. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35029. - (eval "$ac_link") 2>conftest.er1
  35030. - ac_status=$?
  35031. - grep -v '^ *+' conftest.er1 >conftest.err
  35032. - rm -f conftest.er1
  35033. - cat conftest.err >&5
  35034. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35035. - (exit $ac_status); } && {
  35036. - test -z "$ac_c_werror_flag" ||
  35037. - test ! -s conftest.err
  35038. - } && test -s conftest$ac_exeext &&
  35039. - $as_test_x conftest$ac_exeext; then
  35040. +if ac_fn_c_try_link "$LINENO"; then :
  35041. lt_aix_libpath_sed='
  35042. /Import File Strings/,/^$/ {
  35043. @@ -17852,31 +9483,22 @@
  35044. if test -z "$aix_libpath"; then
  35045. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35046. fi
  35047. -else
  35048. - echo "$as_me: failed program was:" >&5
  35049. -sed 's/^/| /' conftest.$ac_ext >&5
  35050. -
  35051. -
  35052. fi
  35053. -
  35054. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35055. - conftest$ac_exeext conftest.$ac_ext
  35056. +rm -f core conftest.err conftest.$ac_objext \
  35057. + conftest$ac_exeext conftest.$ac_ext
  35058. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35059. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  35060. - 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"
  35061. - else
  35062. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  35063. + 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"
  35064. + else
  35065. if test "$host_cpu" = ia64; then
  35066. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  35067. - allow_undefined_flag_GCJ="-z nodefs"
  35068. - 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"
  35069. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  35070. + allow_undefined_flag="-z nodefs"
  35071. + 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"
  35072. else
  35073. - # Determine the default libpath from the value encoded in an empty executable.
  35074. - cat >conftest.$ac_ext <<_ACEOF
  35075. -/* confdefs.h. */
  35076. -_ACEOF
  35077. -cat confdefs.h >>conftest.$ac_ext
  35078. -cat >>conftest.$ac_ext <<_ACEOF
  35079. + # Determine the default libpath from the value encoded in an
  35080. + # empty executable.
  35081. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35082. /* end confdefs.h. */
  35083. int
  35084. @@ -17887,24 +9509,7 @@
  35085. return 0;
  35086. }
  35087. _ACEOF
  35088. -rm -f conftest.$ac_objext conftest$ac_exeext
  35089. -if { (ac_try="$ac_link"
  35090. -case "(($ac_try" in
  35091. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35092. - *) ac_try_echo=$ac_try;;
  35093. -esac
  35094. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35095. - (eval "$ac_link") 2>conftest.er1
  35096. - ac_status=$?
  35097. - grep -v '^ *+' conftest.er1 >conftest.err
  35098. - rm -f conftest.er1
  35099. - cat conftest.err >&5
  35100. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35101. - (exit $ac_status); } && {
  35102. - test -z "$ac_c_werror_flag" ||
  35103. - test ! -s conftest.err
  35104. - } && test -s conftest$ac_exeext &&
  35105. - $as_test_x conftest$ac_exeext; then
  35106. +if ac_fn_c_try_link "$LINENO"; then :
  35107. lt_aix_libpath_sed='
  35108. /Import File Strings/,/^$/ {
  35109. @@ -17918,121 +9523,100 @@
  35110. if test -z "$aix_libpath"; then
  35111. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35112. fi
  35113. -else
  35114. - echo "$as_me: failed program was:" >&5
  35115. -sed 's/^/| /' conftest.$ac_ext >&5
  35116. -
  35117. -
  35118. fi
  35119. -
  35120. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35121. - conftest$ac_exeext conftest.$ac_ext
  35122. +rm -f core conftest.err conftest.$ac_objext \
  35123. + conftest$ac_exeext conftest.$ac_ext
  35124. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35125. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  35126. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  35127. # Warning - without using the other run time loading flags,
  35128. # -berok will link without error, but may produce a broken library.
  35129. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  35130. - allow_undefined_flag_GCJ=' ${wl}-berok'
  35131. + no_undefined_flag=' ${wl}-bernotok'
  35132. + allow_undefined_flag=' ${wl}-berok'
  35133. # Exported symbols can be pulled into shared objects from archives
  35134. - whole_archive_flag_spec_GCJ='$convenience'
  35135. - archive_cmds_need_lc_GCJ=yes
  35136. + whole_archive_flag_spec='$convenience'
  35137. + archive_cmds_need_lc=yes
  35138. # This is similar to how AIX traditionally builds its shared libraries.
  35139. - 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'
  35140. + 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'
  35141. fi
  35142. fi
  35143. ;;
  35144. amigaos*)
  35145. - 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)'
  35146. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35147. - hardcode_minus_L_GCJ=yes
  35148. - # see comment about different semantics on the GNU ld section
  35149. - ld_shlibs_GCJ=no
  35150. + case $host_cpu in
  35151. + powerpc)
  35152. + # see comment about AmigaOS4 .so support
  35153. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35154. + archive_expsym_cmds=''
  35155. + ;;
  35156. + m68k)
  35157. + 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)'
  35158. + hardcode_libdir_flag_spec='-L$libdir'
  35159. + hardcode_minus_L=yes
  35160. + ;;
  35161. + esac
  35162. ;;
  35163. bsdi[45]*)
  35164. - export_dynamic_flag_spec_GCJ=-rdynamic
  35165. + export_dynamic_flag_spec=-rdynamic
  35166. ;;
  35167. - cygwin* | mingw* | pw32*)
  35168. + cygwin* | mingw* | pw32* | cegcc*)
  35169. # When not using gcc, we currently assume that we are using
  35170. # Microsoft Visual C++.
  35171. # hardcode_libdir_flag_spec is actually meaningless, as there is
  35172. # no search path for DLLs.
  35173. - hardcode_libdir_flag_spec_GCJ=' '
  35174. - allow_undefined_flag_GCJ=unsupported
  35175. + hardcode_libdir_flag_spec=' '
  35176. + allow_undefined_flag=unsupported
  35177. # Tell ltmain to make .lib files, not .a files.
  35178. libext=lib
  35179. # Tell ltmain to make .dll files, not .so files.
  35180. shrext_cmds=".dll"
  35181. # FIXME: Setting linknames here is a bad hack.
  35182. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  35183. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  35184. # The linker will automatically build a .lib file if we build a DLL.
  35185. - old_archive_From_new_cmds_GCJ='true'
  35186. + old_archive_from_new_cmds='true'
  35187. # FIXME: Should let the user specify the lib program.
  35188. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  35189. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  35190. - enable_shared_with_static_runtimes_GCJ=yes
  35191. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  35192. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  35193. + enable_shared_with_static_runtimes=yes
  35194. ;;
  35195. darwin* | rhapsody*)
  35196. - case $host_os in
  35197. - rhapsody* | darwin1.[012])
  35198. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  35199. - ;;
  35200. - *) # Darwin 1.3 on
  35201. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  35202. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35203. - else
  35204. - case ${MACOSX_DEPLOYMENT_TARGET} in
  35205. - 10.[012])
  35206. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35207. - ;;
  35208. - 10.*)
  35209. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  35210. - ;;
  35211. - esac
  35212. - fi
  35213. - ;;
  35214. - esac
  35215. - archive_cmds_need_lc_GCJ=no
  35216. - hardcode_direct_GCJ=no
  35217. - hardcode_automatic_GCJ=yes
  35218. - hardcode_shlibpath_var_GCJ=unsupported
  35219. - whole_archive_flag_spec_GCJ=''
  35220. - link_all_deplibs_GCJ=yes
  35221. - if test "$GCC" = yes ; then
  35222. - output_verbose_link_cmd='echo'
  35223. - archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  35224. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  35225. - archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  35226. - module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  35227. - else
  35228. - case $cc_basename in
  35229. - xlc*)
  35230. - output_verbose_link_cmd='echo'
  35231. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  35232. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35233. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35234. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  35235. - 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}'
  35236. - ;;
  35237. - *)
  35238. - ld_shlibs_GCJ=no
  35239. - ;;
  35240. - esac
  35241. - fi
  35242. +
  35243. +
  35244. + archive_cmds_need_lc=no
  35245. + hardcode_direct=no
  35246. + hardcode_automatic=yes
  35247. + hardcode_shlibpath_var=unsupported
  35248. + whole_archive_flag_spec=''
  35249. + link_all_deplibs=yes
  35250. + allow_undefined_flag="$_lt_dar_allow_undefined"
  35251. + case $cc_basename in
  35252. + ifort*) _lt_dar_can_shared=yes ;;
  35253. + *) _lt_dar_can_shared=$GCC ;;
  35254. + esac
  35255. + if test "$_lt_dar_can_shared" = "yes"; then
  35256. + output_verbose_link_cmd=echo
  35257. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  35258. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  35259. + 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}"
  35260. + 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}"
  35261. +
  35262. + else
  35263. + ld_shlibs=no
  35264. + fi
  35265. +
  35266. ;;
  35267. dgux*)
  35268. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35269. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35270. - hardcode_shlibpath_var_GCJ=no
  35271. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35272. + hardcode_libdir_flag_spec='-L$libdir'
  35273. + hardcode_shlibpath_var=no
  35274. ;;
  35275. freebsd1*)
  35276. - ld_shlibs_GCJ=no
  35277. + ld_shlibs=no
  35278. ;;
  35279. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  35280. @@ -18040,60 +9624,60 @@
  35281. # does not break anything, and helps significantly (at the cost of a little
  35282. # extra space).
  35283. freebsd2.2*)
  35284. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  35285. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35286. - hardcode_direct_GCJ=yes
  35287. - hardcode_shlibpath_var_GCJ=no
  35288. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  35289. + hardcode_libdir_flag_spec='-R$libdir'
  35290. + hardcode_direct=yes
  35291. + hardcode_shlibpath_var=no
  35292. ;;
  35293. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  35294. freebsd2*)
  35295. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35296. - hardcode_direct_GCJ=yes
  35297. - hardcode_minus_L_GCJ=yes
  35298. - hardcode_shlibpath_var_GCJ=no
  35299. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35300. + hardcode_direct=yes
  35301. + hardcode_minus_L=yes
  35302. + hardcode_shlibpath_var=no
  35303. ;;
  35304. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  35305. freebsd* | dragonfly*)
  35306. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  35307. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35308. - hardcode_direct_GCJ=yes
  35309. - hardcode_shlibpath_var_GCJ=no
  35310. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  35311. + hardcode_libdir_flag_spec='-R$libdir'
  35312. + hardcode_direct=yes
  35313. + hardcode_shlibpath_var=no
  35314. ;;
  35315. hpux9*)
  35316. if test "$GCC" = yes; then
  35317. - 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'
  35318. + 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'
  35319. else
  35320. - 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'
  35321. + 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'
  35322. fi
  35323. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35324. - hardcode_libdir_separator_GCJ=:
  35325. - hardcode_direct_GCJ=yes
  35326. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  35327. + hardcode_libdir_separator=:
  35328. + hardcode_direct=yes
  35329. # hardcode_minus_L: Not really in the search PATH,
  35330. # but as the default location of the library.
  35331. - hardcode_minus_L_GCJ=yes
  35332. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35333. + hardcode_minus_L=yes
  35334. + export_dynamic_flag_spec='${wl}-E'
  35335. ;;
  35336. hpux10*)
  35337. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35338. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35339. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35340. else
  35341. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  35342. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  35343. fi
  35344. if test "$with_gnu_ld" = no; then
  35345. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35346. - hardcode_libdir_separator_GCJ=:
  35347. -
  35348. - hardcode_direct_GCJ=yes
  35349. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35350. -
  35351. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  35352. + hardcode_libdir_flag_spec_ld='+b $libdir'
  35353. + hardcode_libdir_separator=:
  35354. + hardcode_direct=yes
  35355. + hardcode_direct_absolute=yes
  35356. + export_dynamic_flag_spec='${wl}-E'
  35357. # hardcode_minus_L: Not really in the search PATH,
  35358. # but as the default location of the library.
  35359. - hardcode_minus_L_GCJ=yes
  35360. + hardcode_minus_L=yes
  35361. fi
  35362. ;;
  35363. @@ -18101,45 +9685,45 @@
  35364. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35365. case $host_cpu in
  35366. hppa*64*)
  35367. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35368. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35369. ;;
  35370. ia64*)
  35371. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35372. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35373. ;;
  35374. *)
  35375. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35376. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35377. ;;
  35378. esac
  35379. else
  35380. case $host_cpu in
  35381. hppa*64*)
  35382. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35383. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35384. ;;
  35385. ia64*)
  35386. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35387. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35388. ;;
  35389. *)
  35390. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35391. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35392. ;;
  35393. esac
  35394. fi
  35395. if test "$with_gnu_ld" = no; then
  35396. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35397. - hardcode_libdir_separator_GCJ=:
  35398. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  35399. + hardcode_libdir_separator=:
  35400. case $host_cpu in
  35401. hppa*64*|ia64*)
  35402. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  35403. - hardcode_direct_GCJ=no
  35404. - hardcode_shlibpath_var_GCJ=no
  35405. + hardcode_direct=no
  35406. + hardcode_shlibpath_var=no
  35407. ;;
  35408. *)
  35409. - hardcode_direct_GCJ=yes
  35410. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35411. + hardcode_direct=yes
  35412. + hardcode_direct_absolute=yes
  35413. + export_dynamic_flag_spec='${wl}-E'
  35414. # hardcode_minus_L: Not really in the search PATH,
  35415. # but as the default location of the library.
  35416. - hardcode_minus_L_GCJ=yes
  35417. + hardcode_minus_L=yes
  35418. ;;
  35419. esac
  35420. fi
  35421. @@ -18147,194 +9731,228 @@
  35422. irix5* | irix6* | nonstopux*)
  35423. if test "$GCC" = yes; then
  35424. - 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'
  35425. + 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'
  35426. + # Try to use the -exported_symbol ld option, if it does not
  35427. + # work, assume that -exports_file does not work either and
  35428. + # implicitly export all symbols.
  35429. + save_LDFLAGS="$LDFLAGS"
  35430. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  35431. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35432. +/* end confdefs.h. */
  35433. +int foo(void) {}
  35434. +_ACEOF
  35435. +if ac_fn_c_try_link "$LINENO"; then :
  35436. + 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'
  35437. +
  35438. +fi
  35439. +rm -f core conftest.err conftest.$ac_objext \
  35440. + conftest$ac_exeext conftest.$ac_ext
  35441. + LDFLAGS="$save_LDFLAGS"
  35442. else
  35443. - 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'
  35444. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  35445. + 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'
  35446. + 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'
  35447. fi
  35448. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35449. - hardcode_libdir_separator_GCJ=:
  35450. - link_all_deplibs_GCJ=yes
  35451. + archive_cmds_need_lc='no'
  35452. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35453. + hardcode_libdir_separator=:
  35454. + inherit_rpath=yes
  35455. + link_all_deplibs=yes
  35456. ;;
  35457. - netbsd*)
  35458. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35459. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  35460. + netbsd* | netbsdelf*-gnu)
  35461. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  35462. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  35463. else
  35464. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  35465. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  35466. fi
  35467. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35468. - hardcode_direct_GCJ=yes
  35469. - hardcode_shlibpath_var_GCJ=no
  35470. + hardcode_libdir_flag_spec='-R$libdir'
  35471. + hardcode_direct=yes
  35472. + hardcode_shlibpath_var=no
  35473. ;;
  35474. newsos6)
  35475. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35476. - hardcode_direct_GCJ=yes
  35477. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35478. - hardcode_libdir_separator_GCJ=:
  35479. - hardcode_shlibpath_var_GCJ=no
  35480. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35481. + hardcode_direct=yes
  35482. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35483. + hardcode_libdir_separator=:
  35484. + hardcode_shlibpath_var=no
  35485. + ;;
  35486. +
  35487. + *nto* | *qnx*)
  35488. ;;
  35489. openbsd*)
  35490. if test -f /usr/libexec/ld.so; then
  35491. - hardcode_direct_GCJ=yes
  35492. - hardcode_shlibpath_var_GCJ=no
  35493. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35494. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35495. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  35496. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35497. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35498. + hardcode_direct=yes
  35499. + hardcode_shlibpath_var=no
  35500. + hardcode_direct_absolute=yes
  35501. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35502. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35503. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  35504. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  35505. + export_dynamic_flag_spec='${wl}-E'
  35506. else
  35507. case $host_os in
  35508. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  35509. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35510. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35511. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35512. + hardcode_libdir_flag_spec='-R$libdir'
  35513. ;;
  35514. *)
  35515. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35516. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35517. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35518. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  35519. ;;
  35520. esac
  35521. - fi
  35522. + fi
  35523. else
  35524. - ld_shlibs_GCJ=no
  35525. + ld_shlibs=no
  35526. fi
  35527. ;;
  35528. os2*)
  35529. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35530. - hardcode_minus_L_GCJ=yes
  35531. - allow_undefined_flag_GCJ=unsupported
  35532. - 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'
  35533. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35534. + hardcode_libdir_flag_spec='-L$libdir'
  35535. + hardcode_minus_L=yes
  35536. + allow_undefined_flag=unsupported
  35537. + 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'
  35538. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35539. ;;
  35540. osf3*)
  35541. if test "$GCC" = yes; then
  35542. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  35543. - 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'
  35544. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  35545. + 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'
  35546. else
  35547. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  35548. - 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'
  35549. + allow_undefined_flag=' -expect_unresolved \*'
  35550. + 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'
  35551. fi
  35552. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35553. - hardcode_libdir_separator_GCJ=:
  35554. + archive_cmds_need_lc='no'
  35555. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35556. + hardcode_libdir_separator=:
  35557. ;;
  35558. osf4* | osf5*) # as osf3* with the addition of -msym flag
  35559. if test "$GCC" = yes; then
  35560. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  35561. - 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'
  35562. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35563. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  35564. + 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'
  35565. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35566. else
  35567. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  35568. - 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'
  35569. - 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~
  35570. - $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'
  35571. + allow_undefined_flag=' -expect_unresolved \*'
  35572. + 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'
  35573. + 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~
  35574. + $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'
  35575. # Both c and cxx compiler support -rpath directly
  35576. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  35577. + hardcode_libdir_flag_spec='-rpath $libdir'
  35578. fi
  35579. - hardcode_libdir_separator_GCJ=:
  35580. + archive_cmds_need_lc='no'
  35581. + hardcode_libdir_separator=:
  35582. ;;
  35583. solaris*)
  35584. - no_undefined_flag_GCJ=' -z text'
  35585. + no_undefined_flag=' -z defs'
  35586. if test "$GCC" = yes; then
  35587. wlarc='${wl}'
  35588. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35589. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35590. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  35591. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35592. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35593. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  35594. else
  35595. - wlarc=''
  35596. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35597. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35598. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  35599. + case `$CC -V 2>&1` in
  35600. + *"Compilers 5.0"*)
  35601. + wlarc=''
  35602. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35603. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35604. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  35605. + ;;
  35606. + *)
  35607. + wlarc='${wl}'
  35608. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35609. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35610. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  35611. + ;;
  35612. + esac
  35613. fi
  35614. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35615. - hardcode_shlibpath_var_GCJ=no
  35616. + hardcode_libdir_flag_spec='-R$libdir'
  35617. + hardcode_shlibpath_var=no
  35618. case $host_os in
  35619. solaris2.[0-5] | solaris2.[0-5].*) ;;
  35620. *)
  35621. # The compiler driver will combine and reorder linker options,
  35622. # but understands `-z linker_flag'. GCC discards it without `$wl',
  35623. # but is careful enough not to reorder.
  35624. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  35625. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  35626. if test "$GCC" = yes; then
  35627. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  35628. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  35629. else
  35630. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  35631. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  35632. fi
  35633. ;;
  35634. esac
  35635. - link_all_deplibs_GCJ=yes
  35636. + link_all_deplibs=yes
  35637. ;;
  35638. sunos4*)
  35639. if test "x$host_vendor" = xsequent; then
  35640. # Use $CC to link under sequent, because it throws in some extra .o
  35641. # files that make .init and .fini sections work.
  35642. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35643. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35644. else
  35645. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35646. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35647. fi
  35648. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35649. - hardcode_direct_GCJ=yes
  35650. - hardcode_minus_L_GCJ=yes
  35651. - hardcode_shlibpath_var_GCJ=no
  35652. + hardcode_libdir_flag_spec='-L$libdir'
  35653. + hardcode_direct=yes
  35654. + hardcode_minus_L=yes
  35655. + hardcode_shlibpath_var=no
  35656. ;;
  35657. sysv4)
  35658. case $host_vendor in
  35659. sni)
  35660. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35661. - hardcode_direct_GCJ=yes # is this really true???
  35662. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35663. + hardcode_direct=yes # is this really true???
  35664. ;;
  35665. siemens)
  35666. ## LD is ld it makes a PLAMLIB
  35667. ## CC just makes a GrossModule.
  35668. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35669. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  35670. - hardcode_direct_GCJ=no
  35671. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35672. + reload_cmds='$CC -r -o $output$reload_objs'
  35673. + hardcode_direct=no
  35674. ;;
  35675. motorola)
  35676. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35677. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  35678. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35679. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  35680. ;;
  35681. esac
  35682. runpath_var='LD_RUN_PATH'
  35683. - hardcode_shlibpath_var_GCJ=no
  35684. + hardcode_shlibpath_var=no
  35685. ;;
  35686. sysv4.3*)
  35687. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35688. - hardcode_shlibpath_var_GCJ=no
  35689. - export_dynamic_flag_spec_GCJ='-Bexport'
  35690. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35691. + hardcode_shlibpath_var=no
  35692. + export_dynamic_flag_spec='-Bexport'
  35693. ;;
  35694. sysv4*MP*)
  35695. if test -d /usr/nec; then
  35696. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35697. - hardcode_shlibpath_var_GCJ=no
  35698. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35699. + hardcode_shlibpath_var=no
  35700. runpath_var=LD_RUN_PATH
  35701. hardcode_runpath_var=yes
  35702. - ld_shlibs_GCJ=yes
  35703. + ld_shlibs=yes
  35704. fi
  35705. ;;
  35706. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  35707. - no_undefined_flag_GCJ='${wl}-z,text'
  35708. - archive_cmds_need_lc_GCJ=no
  35709. - hardcode_shlibpath_var_GCJ=no
  35710. + no_undefined_flag='${wl}-z,text'
  35711. + archive_cmds_need_lc=no
  35712. + hardcode_shlibpath_var=no
  35713. runpath_var='LD_RUN_PATH'
  35714. if test "$GCC" = yes; then
  35715. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35716. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35717. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35718. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35719. else
  35720. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35721. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35722. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35723. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35724. fi
  35725. ;;
  35726. @@ -18345,51 +9963,75 @@
  35727. # ever link correctly. If we're not using GNU ld we use -z text
  35728. # though, which does catch some bad symbols but isn't as heavy-handed
  35729. # as -z defs.
  35730. - no_undefined_flag_GCJ='${wl}-z,text'
  35731. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  35732. - archive_cmds_need_lc_GCJ=no
  35733. - hardcode_shlibpath_var_GCJ=no
  35734. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  35735. - hardcode_libdir_separator_GCJ=':'
  35736. - link_all_deplibs_GCJ=yes
  35737. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  35738. + no_undefined_flag='${wl}-z,text'
  35739. + allow_undefined_flag='${wl}-z,nodefs'
  35740. + archive_cmds_need_lc=no
  35741. + hardcode_shlibpath_var=no
  35742. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  35743. + hardcode_libdir_separator=':'
  35744. + link_all_deplibs=yes
  35745. + export_dynamic_flag_spec='${wl}-Bexport'
  35746. runpath_var='LD_RUN_PATH'
  35747. if test "$GCC" = yes; then
  35748. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35749. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35750. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35751. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35752. else
  35753. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35754. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35755. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35756. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35757. fi
  35758. ;;
  35759. uts4*)
  35760. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35761. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35762. - hardcode_shlibpath_var_GCJ=no
  35763. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35764. + hardcode_libdir_flag_spec='-L$libdir'
  35765. + hardcode_shlibpath_var=no
  35766. ;;
  35767. *)
  35768. - ld_shlibs_GCJ=no
  35769. + ld_shlibs=no
  35770. ;;
  35771. esac
  35772. +
  35773. + if test x$host_vendor = xsni; then
  35774. + case $host in
  35775. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  35776. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  35777. + ;;
  35778. + esac
  35779. + fi
  35780. fi
  35781. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  35782. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  35783. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  35784. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  35785. +$as_echo "$ld_shlibs" >&6; }
  35786. +test "$ld_shlibs" = no && can_build_shared=no
  35787. +
  35788. +with_gnu_ld=$with_gnu_ld
  35789. +
  35790. +
  35791. +
  35792. +
  35793. +
  35794. +
  35795. +
  35796. +
  35797. +
  35798. +
  35799. +
  35800. +
  35801. +
  35802. +
  35803. #
  35804. # Do we need to explicitly link libc?
  35805. #
  35806. -case "x$archive_cmds_need_lc_GCJ" in
  35807. +case "x$archive_cmds_need_lc" in
  35808. x|xyes)
  35809. # Assume -lc should be added
  35810. - archive_cmds_need_lc_GCJ=yes
  35811. + archive_cmds_need_lc=yes
  35812. if test "$enable_shared" = yes && test "$GCC" = yes; then
  35813. - case $archive_cmds_GCJ in
  35814. + case $archive_cmds in
  35815. *'~'*)
  35816. # FIXME: we may have to deal with multi-command sequences.
  35817. ;;
  35818. @@ -18397,2941 +10039,1892 @@
  35819. # Test whether the compiler implicitly links with -lc since on some
  35820. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35821. # to ld, don't add -lc before -lgcc.
  35822. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  35823. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  35824. - $rm conftest*
  35825. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  35826. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  35827. + $RM conftest*
  35828. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35829. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35830. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  35831. (eval $ac_compile) 2>&5
  35832. ac_status=$?
  35833. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35834. - (exit $ac_status); } 2>conftest.err; then
  35835. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35836. + test $ac_status = 0; } 2>conftest.err; then
  35837. soname=conftest
  35838. lib=conftest
  35839. libobjs=conftest.$ac_objext
  35840. deplibs=
  35841. - wl=$lt_prog_compiler_wl_GCJ
  35842. - pic_flag=$lt_prog_compiler_pic_GCJ
  35843. + wl=$lt_prog_compiler_wl
  35844. + pic_flag=$lt_prog_compiler_pic
  35845. compiler_flags=-v
  35846. linker_flags=-v
  35847. verstring=
  35848. output_objdir=.
  35849. libname=conftest
  35850. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  35851. - allow_undefined_flag_GCJ=
  35852. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  35853. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35854. + lt_save_allow_undefined_flag=$allow_undefined_flag
  35855. + allow_undefined_flag=
  35856. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  35857. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35858. ac_status=$?
  35859. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35860. - (exit $ac_status); }
  35861. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35862. + test $ac_status = 0; }
  35863. then
  35864. - archive_cmds_need_lc_GCJ=no
  35865. + archive_cmds_need_lc=no
  35866. else
  35867. - archive_cmds_need_lc_GCJ=yes
  35868. + archive_cmds_need_lc=yes
  35869. fi
  35870. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  35871. + allow_undefined_flag=$lt_save_allow_undefined_flag
  35872. else
  35873. cat conftest.err 1>&5
  35874. fi
  35875. - $rm conftest*
  35876. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  35877. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  35878. + $RM conftest*
  35879. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  35880. +$as_echo "$archive_cmds_need_lc" >&6; }
  35881. ;;
  35882. esac
  35883. fi
  35884. ;;
  35885. esac
  35886. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  35887. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  35888. -library_names_spec=
  35889. -libname_spec='lib$name'
  35890. -soname_spec=
  35891. -shrext_cmds=".so"
  35892. -postinstall_cmds=
  35893. -postuninstall_cmds=
  35894. -finish_cmds=
  35895. -finish_eval=
  35896. -shlibpath_var=
  35897. -shlibpath_overrides_runpath=unknown
  35898. -version_type=none
  35899. -dynamic_linker="$host_os ld.so"
  35900. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  35901. -
  35902. -need_lib_prefix=unknown
  35903. -hardcode_into_libs=no
  35904. -
  35905. -# when you set need_version to no, make sure it does not cause -set_version
  35906. -# flags to be left without arguments
  35907. -need_version=unknown
  35908. -case $host_os in
  35909. -aix3*)
  35910. - version_type=linux
  35911. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  35912. - shlibpath_var=LIBPATH
  35913. - # AIX 3 has no versioning support, so we append a major version to the name.
  35914. - soname_spec='${libname}${release}${shared_ext}$major'
  35915. - ;;
  35916. -aix[4-9]*)
  35917. - version_type=linux
  35918. - need_lib_prefix=no
  35919. - need_version=no
  35920. - hardcode_into_libs=yes
  35921. - if test "$host_cpu" = ia64; then
  35922. - # AIX 5 supports IA64
  35923. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  35924. - shlibpath_var=LD_LIBRARY_PATH
  35925. - else
  35926. - # With GCC up to 2.95.x, collect2 would create an import file
  35927. - # for dependence libraries. The import file would start with
  35928. - # the line `#! .'. This would cause the generated library to
  35929. - # depend on `.', always an invalid library. This was fixed in
  35930. - # development snapshots of GCC prior to 3.0.
  35931. - case $host_os in
  35932. - aix4 | aix4.[01] | aix4.[01].*)
  35933. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  35934. - echo ' yes '
  35935. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  35936. - :
  35937. - else
  35938. - can_build_shared=no
  35939. - fi
  35940. - ;;
  35941. - esac
  35942. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  35943. - # soname into executable. Probably we can add versioning support to
  35944. - # collect2, so additional links can be useful in future.
  35945. - if test "$aix_use_runtimelinking" = yes; then
  35946. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  35947. - # instead of lib<name>.a to let people know that these are not
  35948. - # typical AIX shared libraries.
  35949. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35950. - else
  35951. - # We preserve .a as extension for shared libraries through AIX4.2
  35952. - # and later when we are not doing run time linking.
  35953. - library_names_spec='${libname}${release}.a $libname.a'
  35954. - soname_spec='${libname}${release}${shared_ext}$major'
  35955. - fi
  35956. - shlibpath_var=LIBPATH
  35957. - fi
  35958. - ;;
  35959. -amigaos*)
  35960. - library_names_spec='$libname.ixlibrary $libname.a'
  35961. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35962. - 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'
  35963. - ;;
  35964. -beos*)
  35965. - library_names_spec='${libname}${shared_ext}'
  35966. - dynamic_linker="$host_os ld.so"
  35967. - shlibpath_var=LIBRARY_PATH
  35968. - ;;
  35969. -bsdi[45]*)
  35970. - version_type=linux
  35971. - need_version=no
  35972. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35973. - soname_spec='${libname}${release}${shared_ext}$major'
  35974. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  35975. - shlibpath_var=LD_LIBRARY_PATH
  35976. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  35977. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  35978. - # the default ld.so.conf also contains /usr/contrib/lib and
  35979. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  35980. - # libtool to hard-code these into programs
  35981. - ;;
  35982. -cygwin* | mingw* | pw32*)
  35983. - version_type=windows
  35984. - shrext_cmds=".dll"
  35985. - need_version=no
  35986. - need_lib_prefix=no
  35987. - case $GCC,$host_os in
  35988. - yes,cygwin* | yes,mingw* | yes,pw32*)
  35989. - library_names_spec='$libname.dll.a'
  35990. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  35991. - postinstall_cmds='base_file=`basename \${file}`~
  35992. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  35993. - dldir=$destdir/`dirname \$dlpath`~
  35994. - test -d \$dldir || mkdir -p \$dldir~
  35995. - $install_prog $dir/$dlname \$dldir/$dlname~
  35996. - chmod a+x \$dldir/$dlname'
  35997. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  35998. - dlpath=$dir/\$dldll~
  35999. - $rm \$dlpath'
  36000. - shlibpath_overrides_runpath=yes
  36001. - case $host_os in
  36002. - cygwin*)
  36003. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  36004. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36005. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36006. - ;;
  36007. - mingw*)
  36008. - # MinGW DLLs use traditional 'lib' prefix
  36009. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36010. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36011. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  36012. - # It is most probably a Windows format PATH printed by
  36013. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36014. - # path with ; separators, and with drive letters. We can handle the
  36015. - # drive letters (cygwin fileutils understands them), so leave them,
  36016. - # especially as we might pass files found there to a mingw objdump,
  36017. - # which wouldn't understand a cygwinified path. Ahh.
  36018. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36019. - else
  36020. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36021. - fi
  36022. - ;;
  36023. - pw32*)
  36024. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  36025. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36026. - ;;
  36027. - esac
  36028. - ;;
  36029. - *)
  36030. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  36031. - ;;
  36032. - esac
  36033. - dynamic_linker='Win32 ld.exe'
  36034. - # FIXME: first we should search . and the directory the executable is in
  36035. - shlibpath_var=PATH
  36036. - ;;
  36037. -darwin* | rhapsody*)
  36038. - dynamic_linker="$host_os dyld"
  36039. - version_type=darwin
  36040. - need_lib_prefix=no
  36041. - need_version=no
  36042. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36043. - soname_spec='${libname}${release}${major}$shared_ext'
  36044. - shlibpath_overrides_runpath=yes
  36045. - shlibpath_var=DYLD_LIBRARY_PATH
  36046. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36047. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36048. - ;;
  36049. -dgux*)
  36050. - version_type=linux
  36051. - need_lib_prefix=no
  36052. - need_version=no
  36053. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  36054. - soname_spec='${libname}${release}${shared_ext}$major'
  36055. - shlibpath_var=LD_LIBRARY_PATH
  36056. - ;;
  36057. -freebsd1*)
  36058. - dynamic_linker=no
  36059. - ;;
  36060. -freebsd* | dragonfly*)
  36061. - # DragonFly does not have aout. When/if they implement a new
  36062. - # versioning mechanism, adjust this.
  36063. - if test -x /usr/bin/objformat; then
  36064. - objformat=`/usr/bin/objformat`
  36065. - else
  36066. - case $host_os in
  36067. - freebsd[123]*) objformat=aout ;;
  36068. - *) objformat=elf ;;
  36069. - esac
  36070. - fi
  36071. - version_type=freebsd-$objformat
  36072. - case $version_type in
  36073. - freebsd-elf*)
  36074. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36075. - need_version=no
  36076. - need_lib_prefix=no
  36077. - ;;
  36078. - freebsd-*)
  36079. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  36080. - need_version=yes
  36081. - ;;
  36082. - esac
  36083. - shlibpath_var=LD_LIBRARY_PATH
  36084. - case $host_os in
  36085. - freebsd2*)
  36086. - shlibpath_overrides_runpath=yes
  36087. - ;;
  36088. - freebsd3.[01]* | freebsdelf3.[01]*)
  36089. - shlibpath_overrides_runpath=yes
  36090. - hardcode_into_libs=yes
  36091. - ;;
  36092. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  36093. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  36094. - shlibpath_overrides_runpath=no
  36095. - hardcode_into_libs=yes
  36096. - ;;
  36097. - *) # from 4.6 on, and DragonFly
  36098. - shlibpath_overrides_runpath=yes
  36099. - hardcode_into_libs=yes
  36100. - ;;
  36101. - esac
  36102. - ;;
  36103. -gnu*)
  36104. - version_type=linux
  36105. - need_lib_prefix=no
  36106. - need_version=no
  36107. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  36108. - soname_spec='${libname}${release}${shared_ext}$major'
  36109. - shlibpath_var=LD_LIBRARY_PATH
  36110. - hardcode_into_libs=yes
  36111. - ;;
  36112. -hpux9* | hpux10* | hpux11*)
  36113. - # Give a soname corresponding to the major version so that dld.sl refuses to
  36114. - # link against other versions.
  36115. - version_type=sunos
  36116. - need_lib_prefix=no
  36117. - need_version=no
  36118. - case $host_cpu in
  36119. - ia64*)
  36120. - shrext_cmds='.so'
  36121. - hardcode_into_libs=yes
  36122. - dynamic_linker="$host_os dld.so"
  36123. - shlibpath_var=LD_LIBRARY_PATH
  36124. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36125. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36126. - soname_spec='${libname}${release}${shared_ext}$major'
  36127. - if test "X$HPUX_IA64_MODE" = X32; then
  36128. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  36129. - else
  36130. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  36131. - fi
  36132. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36133. - ;;
  36134. - hppa*64*)
  36135. - shrext_cmds='.sl'
  36136. - hardcode_into_libs=yes
  36137. - dynamic_linker="$host_os dld.sl"
  36138. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36139. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36140. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36141. - soname_spec='${libname}${release}${shared_ext}$major'
  36142. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36143. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36144. - ;;
  36145. - *)
  36146. - shrext_cmds='.sl'
  36147. - dynamic_linker="$host_os dld.sl"
  36148. - shlibpath_var=SHLIB_PATH
  36149. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  36150. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36151. - soname_spec='${libname}${release}${shared_ext}$major'
  36152. - ;;
  36153. - esac
  36154. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  36155. - postinstall_cmds='chmod 555 $lib'
  36156. - ;;
  36157. -interix[3-9]*)
  36158. - version_type=linux
  36159. - need_lib_prefix=no
  36160. - need_version=no
  36161. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36162. - soname_spec='${libname}${release}${shared_ext}$major'
  36163. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  36164. - shlibpath_var=LD_LIBRARY_PATH
  36165. - shlibpath_overrides_runpath=no
  36166. - hardcode_into_libs=yes
  36167. - ;;
  36168. -irix5* | irix6* | nonstopux*)
  36169. - case $host_os in
  36170. - nonstopux*) version_type=nonstopux ;;
  36171. - *)
  36172. - if test "$lt_cv_prog_gnu_ld" = yes; then
  36173. - version_type=linux
  36174. - else
  36175. - version_type=irix
  36176. - fi ;;
  36177. - esac
  36178. - need_lib_prefix=no
  36179. - need_version=no
  36180. - soname_spec='${libname}${release}${shared_ext}$major'
  36181. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  36182. - case $host_os in
  36183. - irix5* | nonstopux*)
  36184. - libsuff= shlibsuff=
  36185. - ;;
  36186. - *)
  36187. - case $LD in # libtool.m4 will add one of these switches to LD
  36188. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  36189. - libsuff= shlibsuff= libmagic=32-bit;;
  36190. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  36191. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  36192. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  36193. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  36194. - *) libsuff= shlibsuff= libmagic=never-match;;
  36195. - esac
  36196. - ;;
  36197. - esac
  36198. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  36199. - shlibpath_overrides_runpath=no
  36200. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  36201. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  36202. - hardcode_into_libs=yes
  36203. - ;;
  36204. -# No shared lib support for Linux oldld, aout, or coff.
  36205. -linux*oldld* | linux*aout* | linux*coff*)
  36206. - dynamic_linker=no
  36207. - ;;
  36208. -# This must be Linux ELF.
  36209. -linux* | k*bsd*-gnu)
  36210. - version_type=linux
  36211. - need_lib_prefix=no
  36212. - need_version=no
  36213. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36214. - soname_spec='${libname}${release}${shared_ext}$major'
  36215. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36216. - shlibpath_var=LD_LIBRARY_PATH
  36217. - shlibpath_overrides_runpath=no
  36218. - # This implies no fast_install, which is unacceptable.
  36219. - # Some rework will be needed to allow for fast_install
  36220. - # before this can be enabled.
  36221. - hardcode_into_libs=yes
  36222. - # Append ld.so.conf contents to the search path
  36223. - if test -f /etc/ld.so.conf; then
  36224. - 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' ' '`
  36225. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  36226. - fi
  36227. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  36228. - # powerpc, because MkLinux only supported shared libraries with the
  36229. - # GNU dynamic linker. Since this was broken with cross compilers,
  36230. - # most powerpc-linux boxes support dynamic linking these days and
  36231. - # people can always --disable-shared, the test was removed, and we
  36232. - # assume the GNU/Linux dynamic linker is in use.
  36233. - dynamic_linker='GNU/Linux ld.so'
  36234. - ;;
  36235. -netbsd*)
  36236. - version_type=sunos
  36237. - need_lib_prefix=no
  36238. - need_version=no
  36239. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36240. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36241. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36242. - dynamic_linker='NetBSD (a.out) ld.so'
  36243. - else
  36244. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36245. - soname_spec='${libname}${release}${shared_ext}$major'
  36246. - dynamic_linker='NetBSD ld.elf_so'
  36247. - fi
  36248. - shlibpath_var=LD_LIBRARY_PATH
  36249. - shlibpath_overrides_runpath=yes
  36250. - hardcode_into_libs=yes
  36251. - ;;
  36252. -newsos6)
  36253. - version_type=linux
  36254. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36255. - shlibpath_var=LD_LIBRARY_PATH
  36256. - shlibpath_overrides_runpath=yes
  36257. - ;;
  36258. -nto-qnx*)
  36259. - version_type=linux
  36260. - need_lib_prefix=no
  36261. - need_version=no
  36262. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36263. - soname_spec='${libname}${release}${shared_ext}$major'
  36264. - shlibpath_var=LD_LIBRARY_PATH
  36265. - shlibpath_overrides_runpath=yes
  36266. - ;;
  36267. -openbsd*)
  36268. - version_type=sunos
  36269. - sys_lib_dlsearch_path_spec="/usr/lib"
  36270. - need_lib_prefix=no
  36271. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  36272. - case $host_os in
  36273. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36274. - *) need_version=no ;;
  36275. - esac
  36276. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36277. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36278. - shlibpath_var=LD_LIBRARY_PATH
  36279. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36280. - case $host_os in
  36281. - openbsd2.[89] | openbsd2.[89].*)
  36282. - shlibpath_overrides_runpath=no
  36283. - ;;
  36284. - *)
  36285. - shlibpath_overrides_runpath=yes
  36286. - ;;
  36287. - esac
  36288. - else
  36289. - shlibpath_overrides_runpath=yes
  36290. - fi
  36291. - ;;
  36292. -os2*)
  36293. - libname_spec='$name'
  36294. - shrext_cmds=".dll"
  36295. - need_lib_prefix=no
  36296. - library_names_spec='$libname${shared_ext} $libname.a'
  36297. - dynamic_linker='OS/2 ld.exe'
  36298. - shlibpath_var=LIBPATH
  36299. - ;;
  36300. -osf3* | osf4* | osf5*)
  36301. - version_type=osf
  36302. - need_lib_prefix=no
  36303. - need_version=no
  36304. - soname_spec='${libname}${release}${shared_ext}$major'
  36305. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36306. - shlibpath_var=LD_LIBRARY_PATH
  36307. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  36308. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  36309. - ;;
  36310. -rdos*)
  36311. - dynamic_linker=no
  36312. - ;;
  36313. -solaris*)
  36314. - version_type=linux
  36315. - need_lib_prefix=no
  36316. - need_version=no
  36317. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36318. - soname_spec='${libname}${release}${shared_ext}$major'
  36319. - shlibpath_var=LD_LIBRARY_PATH
  36320. - shlibpath_overrides_runpath=yes
  36321. - hardcode_into_libs=yes
  36322. - # ldd complains unless libraries are executable
  36323. - postinstall_cmds='chmod +x $lib'
  36324. - ;;
  36325. -sunos4*)
  36326. - version_type=sunos
  36327. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36328. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  36329. - shlibpath_var=LD_LIBRARY_PATH
  36330. - shlibpath_overrides_runpath=yes
  36331. - if test "$with_gnu_ld" = yes; then
  36332. - need_lib_prefix=no
  36333. - fi
  36334. - need_version=yes
  36335. - ;;
  36336. -sysv4 | sysv4.3*)
  36337. - version_type=linux
  36338. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36339. - soname_spec='${libname}${release}${shared_ext}$major'
  36340. - shlibpath_var=LD_LIBRARY_PATH
  36341. - case $host_vendor in
  36342. - sni)
  36343. - shlibpath_overrides_runpath=no
  36344. - need_lib_prefix=no
  36345. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  36346. - runpath_var=LD_RUN_PATH
  36347. - ;;
  36348. - siemens)
  36349. - need_lib_prefix=no
  36350. - ;;
  36351. - motorola)
  36352. - need_lib_prefix=no
  36353. - need_version=no
  36354. - shlibpath_overrides_runpath=no
  36355. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  36356. - ;;
  36357. - esac
  36358. - ;;
  36359. -sysv4*MP*)
  36360. - if test -d /usr/nec ;then
  36361. - version_type=linux
  36362. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  36363. - soname_spec='$libname${shared_ext}.$major'
  36364. - shlibpath_var=LD_LIBRARY_PATH
  36365. - fi
  36366. - ;;
  36367. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36368. - version_type=freebsd-elf
  36369. - need_lib_prefix=no
  36370. - need_version=no
  36371. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36372. - soname_spec='${libname}${release}${shared_ext}$major'
  36373. - shlibpath_var=LD_LIBRARY_PATH
  36374. - hardcode_into_libs=yes
  36375. - if test "$with_gnu_ld" = yes; then
  36376. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  36377. - shlibpath_overrides_runpath=no
  36378. - else
  36379. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  36380. - shlibpath_overrides_runpath=yes
  36381. - case $host_os in
  36382. - sco3.2v5*)
  36383. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  36384. - ;;
  36385. - esac
  36386. - fi
  36387. - sys_lib_dlsearch_path_spec='/usr/lib'
  36388. - ;;
  36389. -uts4*)
  36390. - version_type=linux
  36391. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36392. - soname_spec='${libname}${release}${shared_ext}$major'
  36393. - shlibpath_var=LD_LIBRARY_PATH
  36394. - ;;
  36395. -*)
  36396. - dynamic_linker=no
  36397. - ;;
  36398. -esac
  36399. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  36400. -echo "${ECHO_T}$dynamic_linker" >&6; }
  36401. -test "$dynamic_linker" = no && can_build_shared=no
  36402. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  36403. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36404. -else
  36405. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  36406. -fi
  36407. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  36408. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  36409. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36410. -else
  36411. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  36412. -fi
  36413. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  36414. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36415. -if test "$GCC" = yes; then
  36416. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36417. -fi
  36418. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  36419. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  36420. -hardcode_action_GCJ=
  36421. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  36422. - test -n "$runpath_var_GCJ" || \
  36423. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  36424. - # We can hardcode non-existant directories.
  36425. - if test "$hardcode_direct_GCJ" != no &&
  36426. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36427. - # have to relink, otherwise we might link with an installed library
  36428. - # when we should be linking with a yet-to-be-installed one
  36429. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  36430. - test "$hardcode_minus_L_GCJ" != no; then
  36431. - # Linking always hardcodes the temporary library directory.
  36432. - hardcode_action_GCJ=relink
  36433. - else
  36434. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36435. - hardcode_action_GCJ=immediate
  36436. - fi
  36437. -else
  36438. - # We cannot hardcode anything, or else we can only hardcode existing
  36439. - # directories.
  36440. - hardcode_action_GCJ=unsupported
  36441. -fi
  36442. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  36443. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  36444. -if test "$hardcode_action_GCJ" = relink; then
  36445. - # Fast installation is not supported
  36446. - enable_fast_install=no
  36447. -elif test "$shlibpath_overrides_runpath" = yes ||
  36448. - test "$enable_shared" = no; then
  36449. - # Fast installation is not necessary
  36450. - enable_fast_install=needless
  36451. -fi
  36452. -# The else clause should only fire when bootstrapping the
  36453. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  36454. -# with your package, and you will get complaints that there are
  36455. -# no rules to generate ltmain.sh.
  36456. -if test -f "$ltmain"; then
  36457. - # See if we are running on zsh, and set the options which allow our commands through
  36458. - # without removal of \ escapes.
  36459. - if test -n "${ZSH_VERSION+set}" ; then
  36460. - setopt NO_GLOB_SUBST
  36461. - fi
  36462. - # Now quote all the things that may contain metacharacters while being
  36463. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  36464. - # variables and quote the copies for generation of the libtool script.
  36465. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  36466. - SED SHELL STRIP \
  36467. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  36468. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  36469. - deplibs_check_method reload_flag reload_cmds need_locks \
  36470. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  36471. - lt_cv_sys_global_symbol_to_c_name_address \
  36472. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  36473. - old_postinstall_cmds old_postuninstall_cmds \
  36474. - compiler_GCJ \
  36475. - CC_GCJ \
  36476. - LD_GCJ \
  36477. - lt_prog_compiler_wl_GCJ \
  36478. - lt_prog_compiler_pic_GCJ \
  36479. - lt_prog_compiler_static_GCJ \
  36480. - lt_prog_compiler_no_builtin_flag_GCJ \
  36481. - export_dynamic_flag_spec_GCJ \
  36482. - thread_safe_flag_spec_GCJ \
  36483. - whole_archive_flag_spec_GCJ \
  36484. - enable_shared_with_static_runtimes_GCJ \
  36485. - old_archive_cmds_GCJ \
  36486. - old_archive_from_new_cmds_GCJ \
  36487. - predep_objects_GCJ \
  36488. - postdep_objects_GCJ \
  36489. - predeps_GCJ \
  36490. - postdeps_GCJ \
  36491. - compiler_lib_search_path_GCJ \
  36492. - compiler_lib_search_dirs_GCJ \
  36493. - archive_cmds_GCJ \
  36494. - archive_expsym_cmds_GCJ \
  36495. - postinstall_cmds_GCJ \
  36496. - postuninstall_cmds_GCJ \
  36497. - old_archive_from_expsyms_cmds_GCJ \
  36498. - allow_undefined_flag_GCJ \
  36499. - no_undefined_flag_GCJ \
  36500. - export_symbols_cmds_GCJ \
  36501. - hardcode_libdir_flag_spec_GCJ \
  36502. - hardcode_libdir_flag_spec_ld_GCJ \
  36503. - hardcode_libdir_separator_GCJ \
  36504. - hardcode_automatic_GCJ \
  36505. - module_cmds_GCJ \
  36506. - module_expsym_cmds_GCJ \
  36507. - lt_cv_prog_compiler_c_o_GCJ \
  36508. - fix_srcfile_path_GCJ \
  36509. - exclude_expsyms_GCJ \
  36510. - include_expsyms_GCJ; do
  36511. -
  36512. - case $var in
  36513. - old_archive_cmds_GCJ | \
  36514. - old_archive_from_new_cmds_GCJ | \
  36515. - archive_cmds_GCJ | \
  36516. - archive_expsym_cmds_GCJ | \
  36517. - module_cmds_GCJ | \
  36518. - module_expsym_cmds_GCJ | \
  36519. - old_archive_from_expsyms_cmds_GCJ | \
  36520. - export_symbols_cmds_GCJ | \
  36521. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  36522. - postinstall_cmds | postuninstall_cmds | \
  36523. - old_postinstall_cmds | old_postuninstall_cmds | \
  36524. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  36525. - # Double-quote double-evaled strings.
  36526. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  36527. - ;;
  36528. - *)
  36529. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  36530. - ;;
  36531. - esac
  36532. - done
  36533. - case $lt_echo in
  36534. - *'\$0 --fallback-echo"')
  36535. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  36536. - ;;
  36537. - esac
  36538. -cfgfile="$ofile"
  36539. - cat <<__EOF__ >> "$cfgfile"
  36540. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  36541. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  36542. -# Shell to use when invoking shell scripts.
  36543. -SHELL=$lt_SHELL
  36544. -# Whether or not to build shared libraries.
  36545. -build_libtool_libs=$enable_shared
  36546. -# Whether or not to build static libraries.
  36547. -build_old_libs=$enable_static
  36548. -# Whether or not to add -lc for building shared libraries.
  36549. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  36550. -# Whether or not to disallow shared libs when runtime libs are static
  36551. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  36552. -# Whether or not to optimize for fast installation.
  36553. -fast_install=$enable_fast_install
  36554. -# The host system.
  36555. -host_alias=$host_alias
  36556. -host=$host
  36557. -host_os=$host_os
  36558. -# The build system.
  36559. -build_alias=$build_alias
  36560. -build=$build
  36561. -build_os=$build_os
  36562. -# An echo program that does not interpret backslashes.
  36563. -echo=$lt_echo
  36564. -# The archiver.
  36565. -AR=$lt_AR
  36566. -AR_FLAGS=$lt_AR_FLAGS
  36567. -# A C compiler.
  36568. -LTCC=$lt_LTCC
  36569. -# LTCC compiler flags.
  36570. -LTCFLAGS=$lt_LTCFLAGS
  36571. -# A language-specific compiler.
  36572. -CC=$lt_compiler_GCJ
  36573. -# Is the compiler the GNU C compiler?
  36574. -with_gcc=$GCC_GCJ
  36575. -# An ERE matcher.
  36576. -EGREP=$lt_EGREP
  36577. -# The linker used to build libraries.
  36578. -LD=$lt_LD_GCJ
  36579. -# Whether we need hard or soft links.
  36580. -LN_S=$lt_LN_S
  36581. -# A BSD-compatible nm program.
  36582. -NM=$lt_NM
  36583. -# A symbol stripping program
  36584. -STRIP=$lt_STRIP
  36585. -# Used to examine libraries when file_magic_cmd begins "file"
  36586. -MAGIC_CMD=$MAGIC_CMD
  36587. -# Used on cygwin: DLL creation program.
  36588. -DLLTOOL="$DLLTOOL"
  36589. -# Used on cygwin: object dumper.
  36590. -OBJDUMP="$OBJDUMP"
  36591. -# Used on cygwin: assembler.
  36592. -AS="$AS"
  36593. -# The name of the directory that contains temporary libtool files.
  36594. -objdir=$objdir
  36595. -# How to create reloadable object files.
  36596. -reload_flag=$lt_reload_flag
  36597. -reload_cmds=$lt_reload_cmds
  36598. -# How to pass a linker flag through the compiler.
  36599. -wl=$lt_lt_prog_compiler_wl_GCJ
  36600. -# Object file suffix (normally "o").
  36601. -objext="$ac_objext"
  36602. -# Old archive suffix (normally "a").
  36603. -libext="$libext"
  36604. -# Shared library suffix (normally ".so").
  36605. -shrext_cmds='$shrext_cmds'
  36606. -# Executable file suffix (normally "").
  36607. -exeext="$exeext"
  36608. -# Additional compiler flags for building library objects.
  36609. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  36610. -pic_mode=$pic_mode
  36611. -# What is the maximum length of a command?
  36612. -max_cmd_len=$lt_cv_sys_max_cmd_len
  36613. -# Does compiler simultaneously support -c and -o options?
  36614. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  36615. -# Must we lock files when doing compilation?
  36616. -need_locks=$lt_need_locks
  36617. -# Do we need the lib prefix for modules?
  36618. -need_lib_prefix=$need_lib_prefix
  36619. -# Do we need a version for libraries?
  36620. -need_version=$need_version
  36621. -# Whether dlopen is supported.
  36622. -dlopen_support=$enable_dlopen
  36623. -# Whether dlopen of programs is supported.
  36624. -dlopen_self=$enable_dlopen_self
  36625. -# Whether dlopen of statically linked programs is supported.
  36626. -dlopen_self_static=$enable_dlopen_self_static
  36627. -# Compiler flag to prevent dynamic linking.
  36628. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  36629. -# Compiler flag to turn off builtin functions.
  36630. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  36631. -# Compiler flag to allow reflexive dlopens.
  36632. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  36633. -# Compiler flag to generate shared objects directly from archives.
  36634. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  36635. -# Compiler flag to generate thread-safe objects.
  36636. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  36637. -# Library versioning type.
  36638. -version_type=$version_type
  36639. -# Format of library name prefix.
  36640. -libname_spec=$lt_libname_spec
  36641. -# List of archive names. First name is the real one, the rest are links.
  36642. -# The last name is the one that the linker finds with -lNAME.
  36643. -library_names_spec=$lt_library_names_spec
  36644. -# The coded name of the library, if different from the real name.
  36645. -soname_spec=$lt_soname_spec
  36646. -# Commands used to build and install an old-style archive.
  36647. -RANLIB=$lt_RANLIB
  36648. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  36649. -old_postinstall_cmds=$lt_old_postinstall_cmds
  36650. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  36651. -# Create an old-style archive from a shared archive.
  36652. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  36653. -# Create a temporary old-style archive to link instead of a shared archive.
  36654. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  36655. -# Commands used to build and install a shared archive.
  36656. -archive_cmds=$lt_archive_cmds_GCJ
  36657. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  36658. -postinstall_cmds=$lt_postinstall_cmds
  36659. -postuninstall_cmds=$lt_postuninstall_cmds
  36660. -# Commands used to build a loadable module (assumed same as above if empty)
  36661. -module_cmds=$lt_module_cmds_GCJ
  36662. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  36663. -# Commands to strip libraries.
  36664. -old_striplib=$lt_old_striplib
  36665. -striplib=$lt_striplib
  36666. -# Dependencies to place before the objects being linked to create a
  36667. -# shared library.
  36668. -predep_objects=$lt_predep_objects_GCJ
  36669. -
  36670. -# Dependencies to place after the objects being linked to create a
  36671. -# shared library.
  36672. -postdep_objects=$lt_postdep_objects_GCJ
  36673. -
  36674. -# Dependencies to place before the objects being linked to create a
  36675. -# shared library.
  36676. -predeps=$lt_predeps_GCJ
  36677. -
  36678. -# Dependencies to place after the objects being linked to create a
  36679. -# shared library.
  36680. -postdeps=$lt_postdeps_GCJ
  36681. -
  36682. -# The directories searched by this compiler when creating a shared
  36683. -# library
  36684. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  36685. -
  36686. -# The library search path used internally by the compiler when linking
  36687. -# a shared library.
  36688. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  36689. -# Method to check whether dependent libraries are shared objects.
  36690. -deplibs_check_method=$lt_deplibs_check_method
  36691. -# Command to use when deplibs_check_method == file_magic.
  36692. -file_magic_cmd=$lt_file_magic_cmd
  36693. -# Flag that allows shared libraries with undefined symbols to be built.
  36694. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  36695. -# Flag that forces no undefined symbols.
  36696. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  36697. -# Commands used to finish a libtool library installation in a directory.
  36698. -finish_cmds=$lt_finish_cmds
  36699. -# Same as above, but a single script fragment to be evaled but not shown.
  36700. -finish_eval=$lt_finish_eval
  36701. -# Take the output of nm and produce a listing of raw symbols and C names.
  36702. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  36703. -# Transform the output of nm in a proper C declaration
  36704. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  36705. -# Transform the output of nm in a C name address pair
  36706. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  36707. -# This is the shared library runtime path variable.
  36708. -runpath_var=$runpath_var
  36709. -# This is the shared library path variable.
  36710. -shlibpath_var=$shlibpath_var
  36711. -# Is shlibpath searched before the hard-coded library search path?
  36712. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  36713. -# How to hardcode a shared library path into an executable.
  36714. -hardcode_action=$hardcode_action_GCJ
  36715. -# Whether we should hardcode library paths into libraries.
  36716. -hardcode_into_libs=$hardcode_into_libs
  36717. -# Flag to hardcode \$libdir into a binary during linking.
  36718. -# This must work even if \$libdir does not exist.
  36719. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  36720. -# If ld is used when linking, flag to hardcode \$libdir into
  36721. -# a binary during linking. This must work even if \$libdir does
  36722. -# not exist.
  36723. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  36724. -
  36725. -# Whether we need a single -rpath flag with a separated argument.
  36726. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  36727. -
  36728. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  36729. -# resulting binary.
  36730. -hardcode_direct=$hardcode_direct_GCJ
  36731. -
  36732. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  36733. -# resulting binary.
  36734. -hardcode_minus_L=$hardcode_minus_L_GCJ
  36735. -
  36736. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  36737. -# the resulting binary.
  36738. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  36739. -
  36740. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  36741. -# and all subsequent libraries and executables linked against it.
  36742. -hardcode_automatic=$hardcode_automatic_GCJ
  36743. -# Variables whose values should be saved in libtool wrapper scripts and
  36744. -# restored at relink time.
  36745. -variables_saved_for_relink="$variables_saved_for_relink"
  36746. -# Whether libtool must link a program against all its dependency libraries.
  36747. -link_all_deplibs=$link_all_deplibs_GCJ
  36748. -# Compile-time system search path for libraries
  36749. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  36750. -# Run-time system search path for libraries
  36751. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  36752. -# Fix the shell variable \$srcfile for the compiler.
  36753. -fix_srcfile_path=$lt_fix_srcfile_path
  36754. -# Set to yes if exported symbols are required.
  36755. -always_export_symbols=$always_export_symbols_GCJ
  36756. -# The commands to list exported symbols.
  36757. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  36758. -# The commands to extract the exported symbol list from a shared archive.
  36759. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  36760. -# Symbols that should not be listed in the preloaded symbols.
  36761. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  36762. -# Symbols that must always be exported.
  36763. -include_expsyms=$lt_include_expsyms_GCJ
  36764. -# ### END LIBTOOL TAG CONFIG: $tagname
  36765. -__EOF__
  36766. -else
  36767. - # If there is no Makefile yet, we rely on a make rule to execute
  36768. - # `config.status --recheck' to rerun these tests and create the
  36769. - # libtool script then.
  36770. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  36771. - if test -f "$ltmain_in"; then
  36772. - test -f Makefile && make "$ltmain"
  36773. - fi
  36774. +
  36775. +
  36776. +
  36777. +
  36778. +
  36779. +
  36780. +
  36781. +
  36782. +
  36783. +
  36784. +
  36785. +
  36786. +
  36787. +
  36788. +
  36789. +
  36790. +
  36791. +
  36792. +
  36793. +
  36794. +
  36795. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  36796. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  36797. +
  36798. +if test "$GCC" = yes; then
  36799. + case $host_os in
  36800. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  36801. + *) lt_awk_arg="/^libraries:/" ;;
  36802. + esac
  36803. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36804. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  36805. + # if the path contains ";" then we assume it to be the separator
  36806. + # otherwise default to the standard path separator (i.e. ":") - it is
  36807. + # assumed that no part of a normal pathname contains ";" but that should
  36808. + # okay in the real world where ";" in dirpaths is itself problematic.
  36809. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  36810. + else
  36811. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36812. + fi
  36813. + # Ok, now we have the path, separated by spaces, we can step through it
  36814. + # and add multilib dir if necessary.
  36815. + lt_tmp_lt_search_path_spec=
  36816. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  36817. + for lt_sys_path in $lt_search_path_spec; do
  36818. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  36819. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  36820. + else
  36821. + test -d "$lt_sys_path" && \
  36822. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  36823. + fi
  36824. + done
  36825. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  36826. +BEGIN {RS=" "; FS="/|\n";} {
  36827. + lt_foo="";
  36828. + lt_count=0;
  36829. + for (lt_i = NF; lt_i > 0; lt_i--) {
  36830. + if ($lt_i != "" && $lt_i != ".") {
  36831. + if ($lt_i == "..") {
  36832. + lt_count++;
  36833. + } else {
  36834. + if (lt_count == 0) {
  36835. + lt_foo="/" $lt_i lt_foo;
  36836. + } else {
  36837. + lt_count--;
  36838. + }
  36839. + }
  36840. + }
  36841. + }
  36842. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  36843. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  36844. +}'`
  36845. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  36846. +else
  36847. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36848. +fi
  36849. +library_names_spec=
  36850. +libname_spec='lib$name'
  36851. +soname_spec=
  36852. +shrext_cmds=".so"
  36853. +postinstall_cmds=
  36854. +postuninstall_cmds=
  36855. +finish_cmds=
  36856. +finish_eval=
  36857. +shlibpath_var=
  36858. +shlibpath_overrides_runpath=unknown
  36859. +version_type=none
  36860. +dynamic_linker="$host_os ld.so"
  36861. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  36862. +need_lib_prefix=unknown
  36863. +hardcode_into_libs=no
  36864. +
  36865. +# when you set need_version to no, make sure it does not cause -set_version
  36866. +# flags to be left without arguments
  36867. +need_version=unknown
  36868. +
  36869. +case $host_os in
  36870. +aix3*)
  36871. + version_type=linux
  36872. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  36873. + shlibpath_var=LIBPATH
  36874. +
  36875. + # AIX 3 has no versioning support, so we append a major version to the name.
  36876. + soname_spec='${libname}${release}${shared_ext}$major'
  36877. + ;;
  36878. +
  36879. +aix[4-9]*)
  36880. + version_type=linux
  36881. + need_lib_prefix=no
  36882. + need_version=no
  36883. + hardcode_into_libs=yes
  36884. + if test "$host_cpu" = ia64; then
  36885. + # AIX 5 supports IA64
  36886. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  36887. + shlibpath_var=LD_LIBRARY_PATH
  36888. + else
  36889. + # With GCC up to 2.95.x, collect2 would create an import file
  36890. + # for dependence libraries. The import file would start with
  36891. + # the line `#! .'. This would cause the generated library to
  36892. + # depend on `.', always an invalid library. This was fixed in
  36893. + # development snapshots of GCC prior to 3.0.
  36894. + case $host_os in
  36895. + aix4 | aix4.[01] | aix4.[01].*)
  36896. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  36897. + echo ' yes '
  36898. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  36899. + :
  36900. + else
  36901. + can_build_shared=no
  36902. + fi
  36903. + ;;
  36904. + esac
  36905. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  36906. + # soname into executable. Probably we can add versioning support to
  36907. + # collect2, so additional links can be useful in future.
  36908. + if test "$aix_use_runtimelinking" = yes; then
  36909. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  36910. + # instead of lib<name>.a to let people know that these are not
  36911. + # typical AIX shared libraries.
  36912. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36913. + else
  36914. + # We preserve .a as extension for shared libraries through AIX4.2
  36915. + # and later when we are not doing run time linking.
  36916. + library_names_spec='${libname}${release}.a $libname.a'
  36917. + soname_spec='${libname}${release}${shared_ext}$major'
  36918. + fi
  36919. + shlibpath_var=LIBPATH
  36920. + fi
  36921. + ;;
  36922. +
  36923. +amigaos*)
  36924. + case $host_cpu in
  36925. + powerpc)
  36926. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  36927. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  36928. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36929. + ;;
  36930. + m68k)
  36931. + library_names_spec='$libname.ixlibrary $libname.a'
  36932. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36933. + 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'
  36934. + ;;
  36935. + esac
  36936. + ;;
  36937. +
  36938. +beos*)
  36939. + library_names_spec='${libname}${shared_ext}'
  36940. + dynamic_linker="$host_os ld.so"
  36941. + shlibpath_var=LIBRARY_PATH
  36942. + ;;
  36943. +
  36944. +bsdi[45]*)
  36945. + version_type=linux
  36946. + need_version=no
  36947. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36948. + soname_spec='${libname}${release}${shared_ext}$major'
  36949. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  36950. + shlibpath_var=LD_LIBRARY_PATH
  36951. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  36952. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  36953. + # the default ld.so.conf also contains /usr/contrib/lib and
  36954. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  36955. + # libtool to hard-code these into programs
  36956. + ;;
  36957. +
  36958. +cygwin* | mingw* | pw32* | cegcc*)
  36959. + version_type=windows
  36960. + shrext_cmds=".dll"
  36961. + need_version=no
  36962. + need_lib_prefix=no
  36963. +
  36964. + case $GCC,$host_os in
  36965. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  36966. + library_names_spec='$libname.dll.a'
  36967. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36968. + postinstall_cmds='base_file=`basename \${file}`~
  36969. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  36970. + dldir=$destdir/`dirname \$dlpath`~
  36971. + test -d \$dldir || mkdir -p \$dldir~
  36972. + $install_prog $dir/$dlname \$dldir/$dlname~
  36973. + chmod a+x \$dldir/$dlname~
  36974. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  36975. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  36976. + fi'
  36977. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36978. + dlpath=$dir/\$dldll~
  36979. + $RM \$dlpath'
  36980. + shlibpath_overrides_runpath=yes
  36981. +
  36982. + case $host_os in
  36983. + cygwin*)
  36984. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  36985. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36986. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36987. + ;;
  36988. + mingw* | cegcc*)
  36989. + # MinGW DLLs use traditional 'lib' prefix
  36990. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36991. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36992. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  36993. + # It is most probably a Windows format PATH printed by
  36994. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36995. + # path with ; separators, and with drive letters. We can handle the
  36996. + # drive letters (cygwin fileutils understands them), so leave them,
  36997. + # especially as we might pass files found there to a mingw objdump,
  36998. + # which wouldn't understand a cygwinified path. Ahh.
  36999. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  37000. + else
  37001. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  37002. + fi
  37003. + ;;
  37004. + pw32*)
  37005. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  37006. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  37007. + ;;
  37008. + esac
  37009. + ;;
  37010. +
  37011. + *)
  37012. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  37013. + ;;
  37014. + esac
  37015. + dynamic_linker='Win32 ld.exe'
  37016. + # FIXME: first we should search . and the directory the executable is in
  37017. + shlibpath_var=PATH
  37018. + ;;
  37019. +
  37020. +darwin* | rhapsody*)
  37021. + dynamic_linker="$host_os dyld"
  37022. + version_type=darwin
  37023. + need_lib_prefix=no
  37024. + need_version=no
  37025. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  37026. + soname_spec='${libname}${release}${major}$shared_ext'
  37027. + shlibpath_overrides_runpath=yes
  37028. + shlibpath_var=DYLD_LIBRARY_PATH
  37029. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  37030. +
  37031. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  37032. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  37033. + ;;
  37034. +
  37035. +dgux*)
  37036. + version_type=linux
  37037. + need_lib_prefix=no
  37038. + need_version=no
  37039. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  37040. + soname_spec='${libname}${release}${shared_ext}$major'
  37041. + shlibpath_var=LD_LIBRARY_PATH
  37042. + ;;
  37043. +
  37044. +freebsd1*)
  37045. + dynamic_linker=no
  37046. + ;;
  37047. +
  37048. +freebsd* | dragonfly*)
  37049. + # DragonFly does not have aout. When/if they implement a new
  37050. + # versioning mechanism, adjust this.
  37051. + if test -x /usr/bin/objformat; then
  37052. + objformat=`/usr/bin/objformat`
  37053. + else
  37054. + case $host_os in
  37055. + freebsd[123]*) objformat=aout ;;
  37056. + *) objformat=elf ;;
  37057. + esac
  37058. + fi
  37059. + version_type=freebsd-$objformat
  37060. + case $version_type in
  37061. + freebsd-elf*)
  37062. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37063. + need_version=no
  37064. + need_lib_prefix=no
  37065. + ;;
  37066. + freebsd-*)
  37067. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  37068. + need_version=yes
  37069. + ;;
  37070. + esac
  37071. + shlibpath_var=LD_LIBRARY_PATH
  37072. + case $host_os in
  37073. + freebsd2*)
  37074. + shlibpath_overrides_runpath=yes
  37075. + ;;
  37076. + freebsd3.[01]* | freebsdelf3.[01]*)
  37077. + shlibpath_overrides_runpath=yes
  37078. + hardcode_into_libs=yes
  37079. + ;;
  37080. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  37081. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  37082. + shlibpath_overrides_runpath=no
  37083. + hardcode_into_libs=yes
  37084. + ;;
  37085. + *) # from 4.6 on, and DragonFly
  37086. + shlibpath_overrides_runpath=yes
  37087. + hardcode_into_libs=yes
  37088. + ;;
  37089. + esac
  37090. + ;;
  37091. +
  37092. +gnu*)
  37093. + version_type=linux
  37094. + need_lib_prefix=no
  37095. + need_version=no
  37096. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  37097. + soname_spec='${libname}${release}${shared_ext}$major'
  37098. + shlibpath_var=LD_LIBRARY_PATH
  37099. + hardcode_into_libs=yes
  37100. + ;;
  37101. +
  37102. +hpux9* | hpux10* | hpux11*)
  37103. + # Give a soname corresponding to the major version so that dld.sl refuses to
  37104. + # link against other versions.
  37105. + version_type=sunos
  37106. + need_lib_prefix=no
  37107. + need_version=no
  37108. + case $host_cpu in
  37109. + ia64*)
  37110. + shrext_cmds='.so'
  37111. + hardcode_into_libs=yes
  37112. + dynamic_linker="$host_os dld.so"
  37113. + shlibpath_var=LD_LIBRARY_PATH
  37114. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  37115. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37116. + soname_spec='${libname}${release}${shared_ext}$major'
  37117. + if test "X$HPUX_IA64_MODE" = X32; then
  37118. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  37119. + else
  37120. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  37121. + fi
  37122. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  37123. + ;;
  37124. + hppa*64*)
  37125. + shrext_cmds='.sl'
  37126. + hardcode_into_libs=yes
  37127. + dynamic_linker="$host_os dld.sl"
  37128. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  37129. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  37130. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37131. + soname_spec='${libname}${release}${shared_ext}$major'
  37132. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  37133. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  37134. + ;;
  37135. + *)
  37136. + shrext_cmds='.sl'
  37137. + dynamic_linker="$host_os dld.sl"
  37138. + shlibpath_var=SHLIB_PATH
  37139. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  37140. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37141. + soname_spec='${libname}${release}${shared_ext}$major'
  37142. + ;;
  37143. + esac
  37144. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  37145. + postinstall_cmds='chmod 555 $lib'
  37146. + ;;
  37147. +
  37148. +interix[3-9]*)
  37149. + version_type=linux
  37150. + need_lib_prefix=no
  37151. + need_version=no
  37152. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37153. + soname_spec='${libname}${release}${shared_ext}$major'
  37154. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  37155. + shlibpath_var=LD_LIBRARY_PATH
  37156. + shlibpath_overrides_runpath=no
  37157. + hardcode_into_libs=yes
  37158. + ;;
  37159. +
  37160. +irix5* | irix6* | nonstopux*)
  37161. + case $host_os in
  37162. + nonstopux*) version_type=nonstopux ;;
  37163. + *)
  37164. + if test "$lt_cv_prog_gnu_ld" = yes; then
  37165. + version_type=linux
  37166. + else
  37167. + version_type=irix
  37168. + fi ;;
  37169. + esac
  37170. + need_lib_prefix=no
  37171. + need_version=no
  37172. + soname_spec='${libname}${release}${shared_ext}$major'
  37173. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  37174. + case $host_os in
  37175. + irix5* | nonstopux*)
  37176. + libsuff= shlibsuff=
  37177. + ;;
  37178. + *)
  37179. + case $LD in # libtool.m4 will add one of these switches to LD
  37180. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  37181. + libsuff= shlibsuff= libmagic=32-bit;;
  37182. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  37183. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  37184. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  37185. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  37186. + *) libsuff= shlibsuff= libmagic=never-match;;
  37187. + esac
  37188. + ;;
  37189. + esac
  37190. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  37191. + shlibpath_overrides_runpath=no
  37192. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  37193. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  37194. + hardcode_into_libs=yes
  37195. + ;;
  37196. +
  37197. +# No shared lib support for Linux oldld, aout, or coff.
  37198. +linux*oldld* | linux*aout* | linux*coff*)
  37199. + dynamic_linker=no
  37200. + ;;
  37201. +
  37202. +# This must be Linux ELF.
  37203. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  37204. + version_type=linux
  37205. + need_lib_prefix=no
  37206. + need_version=no
  37207. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37208. + soname_spec='${libname}${release}${shared_ext}$major'
  37209. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  37210. + shlibpath_var=LD_LIBRARY_PATH
  37211. + shlibpath_overrides_runpath=no
  37212. + # Some binutils ld are patched to set DT_RUNPATH
  37213. + save_LDFLAGS=$LDFLAGS
  37214. + save_libdir=$libdir
  37215. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  37216. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  37217. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37218. +/* end confdefs.h. */
  37219. +
  37220. +int
  37221. +main ()
  37222. +{
  37223. +
  37224. + ;
  37225. + return 0;
  37226. +}
  37227. +_ACEOF
  37228. +if ac_fn_c_try_link "$LINENO"; then :
  37229. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  37230. + shlibpath_overrides_runpath=yes
  37231. fi
  37232. +fi
  37233. +rm -f core conftest.err conftest.$ac_objext \
  37234. + conftest$ac_exeext conftest.$ac_ext
  37235. + LDFLAGS=$save_LDFLAGS
  37236. + libdir=$save_libdir
  37237. + # This implies no fast_install, which is unacceptable.
  37238. + # Some rework will be needed to allow for fast_install
  37239. + # before this can be enabled.
  37240. + hardcode_into_libs=yes
  37241. -ac_ext=c
  37242. -ac_cpp='$CPP $CPPFLAGS'
  37243. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37244. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37245. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37246. -
  37247. -CC="$lt_save_CC"
  37248. -
  37249. - else
  37250. - tagname=""
  37251. - fi
  37252. - ;;
  37253. -
  37254. - RC)
  37255. -
  37256. -
  37257. -# Source file extension for RC test sources.
  37258. -ac_ext=rc
  37259. -
  37260. -# Object file extension for compiled RC test sources.
  37261. -objext=o
  37262. -objext_RC=$objext
  37263. -
  37264. -# Code to be used in simple compile tests
  37265. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  37266. + # Append ld.so.conf contents to the search path
  37267. + if test -f /etc/ld.so.conf; then
  37268. + 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' ' '`
  37269. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  37270. + fi
  37271. -# Code to be used in simple link tests
  37272. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  37273. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  37274. + # powerpc, because MkLinux only supported shared libraries with the
  37275. + # GNU dynamic linker. Since this was broken with cross compilers,
  37276. + # most powerpc-linux boxes support dynamic linking these days and
  37277. + # people can always --disable-shared, the test was removed, and we
  37278. + # assume the GNU/Linux dynamic linker is in use.
  37279. + dynamic_linker='GNU/Linux ld.so'
  37280. + ;;
  37281. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37282. +netbsdelf*-gnu)
  37283. + version_type=linux
  37284. + need_lib_prefix=no
  37285. + need_version=no
  37286. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37287. + soname_spec='${libname}${release}${shared_ext}$major'
  37288. + shlibpath_var=LD_LIBRARY_PATH
  37289. + shlibpath_overrides_runpath=no
  37290. + hardcode_into_libs=yes
  37291. + dynamic_linker='NetBSD ld.elf_so'
  37292. + ;;
  37293. -# If no C compiler was specified, use CC.
  37294. -LTCC=${LTCC-"$CC"}
  37295. +netbsd*)
  37296. + version_type=sunos
  37297. + need_lib_prefix=no
  37298. + need_version=no
  37299. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  37300. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37301. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37302. + dynamic_linker='NetBSD (a.out) ld.so'
  37303. + else
  37304. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37305. + soname_spec='${libname}${release}${shared_ext}$major'
  37306. + dynamic_linker='NetBSD ld.elf_so'
  37307. + fi
  37308. + shlibpath_var=LD_LIBRARY_PATH
  37309. + shlibpath_overrides_runpath=yes
  37310. + hardcode_into_libs=yes
  37311. + ;;
  37312. -# If no C compiler flags were specified, use CFLAGS.
  37313. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  37314. +newsos6)
  37315. + version_type=linux
  37316. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37317. + shlibpath_var=LD_LIBRARY_PATH
  37318. + shlibpath_overrides_runpath=yes
  37319. + ;;
  37320. -# Allow CC to be a program name with arguments.
  37321. -compiler=$CC
  37322. +*nto* | *qnx*)
  37323. + version_type=qnx
  37324. + need_lib_prefix=no
  37325. + need_version=no
  37326. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37327. + soname_spec='${libname}${release}${shared_ext}$major'
  37328. + shlibpath_var=LD_LIBRARY_PATH
  37329. + shlibpath_overrides_runpath=no
  37330. + hardcode_into_libs=yes
  37331. + dynamic_linker='ldqnx.so'
  37332. + ;;
  37333. +openbsd*)
  37334. + version_type=sunos
  37335. + sys_lib_dlsearch_path_spec="/usr/lib"
  37336. + need_lib_prefix=no
  37337. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  37338. + case $host_os in
  37339. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  37340. + *) need_version=no ;;
  37341. + esac
  37342. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37343. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37344. + shlibpath_var=LD_LIBRARY_PATH
  37345. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37346. + case $host_os in
  37347. + openbsd2.[89] | openbsd2.[89].*)
  37348. + shlibpath_overrides_runpath=no
  37349. + ;;
  37350. + *)
  37351. + shlibpath_overrides_runpath=yes
  37352. + ;;
  37353. + esac
  37354. + else
  37355. + shlibpath_overrides_runpath=yes
  37356. + fi
  37357. + ;;
  37358. -# save warnings/boilerplate of simple test code
  37359. -ac_outfile=conftest.$ac_objext
  37360. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  37361. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37362. -_lt_compiler_boilerplate=`cat conftest.err`
  37363. -$rm conftest*
  37364. +os2*)
  37365. + libname_spec='$name'
  37366. + shrext_cmds=".dll"
  37367. + need_lib_prefix=no
  37368. + library_names_spec='$libname${shared_ext} $libname.a'
  37369. + dynamic_linker='OS/2 ld.exe'
  37370. + shlibpath_var=LIBPATH
  37371. + ;;
  37372. -ac_outfile=conftest.$ac_objext
  37373. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  37374. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37375. -_lt_linker_boilerplate=`cat conftest.err`
  37376. -$rm -r conftest*
  37377. +osf3* | osf4* | osf5*)
  37378. + version_type=osf
  37379. + need_lib_prefix=no
  37380. + need_version=no
  37381. + soname_spec='${libname}${release}${shared_ext}$major'
  37382. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37383. + shlibpath_var=LD_LIBRARY_PATH
  37384. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  37385. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  37386. + ;;
  37387. +rdos*)
  37388. + dynamic_linker=no
  37389. + ;;
  37390. -# Allow CC to be a program name with arguments.
  37391. -lt_save_CC="$CC"
  37392. -CC=${RC-"windres"}
  37393. -compiler=$CC
  37394. -compiler_RC=$CC
  37395. -for cc_temp in $compiler""; do
  37396. - case $cc_temp in
  37397. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37398. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37399. - \-*) ;;
  37400. - *) break;;
  37401. - esac
  37402. -done
  37403. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37404. +solaris*)
  37405. + version_type=linux
  37406. + need_lib_prefix=no
  37407. + need_version=no
  37408. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37409. + soname_spec='${libname}${release}${shared_ext}$major'
  37410. + shlibpath_var=LD_LIBRARY_PATH
  37411. + shlibpath_overrides_runpath=yes
  37412. + hardcode_into_libs=yes
  37413. + # ldd complains unless libraries are executable
  37414. + postinstall_cmds='chmod +x $lib'
  37415. + ;;
  37416. -lt_cv_prog_compiler_c_o_RC=yes
  37417. +sunos4*)
  37418. + version_type=sunos
  37419. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37420. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  37421. + shlibpath_var=LD_LIBRARY_PATH
  37422. + shlibpath_overrides_runpath=yes
  37423. + if test "$with_gnu_ld" = yes; then
  37424. + need_lib_prefix=no
  37425. + fi
  37426. + need_version=yes
  37427. + ;;
  37428. -# The else clause should only fire when bootstrapping the
  37429. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37430. -# with your package, and you will get complaints that there are
  37431. -# no rules to generate ltmain.sh.
  37432. -if test -f "$ltmain"; then
  37433. - # See if we are running on zsh, and set the options which allow our commands through
  37434. - # without removal of \ escapes.
  37435. - if test -n "${ZSH_VERSION+set}" ; then
  37436. - setopt NO_GLOB_SUBST
  37437. - fi
  37438. - # Now quote all the things that may contain metacharacters while being
  37439. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37440. - # variables and quote the copies for generation of the libtool script.
  37441. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  37442. - SED SHELL STRIP \
  37443. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37444. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37445. - deplibs_check_method reload_flag reload_cmds need_locks \
  37446. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37447. - lt_cv_sys_global_symbol_to_c_name_address \
  37448. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37449. - old_postinstall_cmds old_postuninstall_cmds \
  37450. - compiler_RC \
  37451. - CC_RC \
  37452. - LD_RC \
  37453. - lt_prog_compiler_wl_RC \
  37454. - lt_prog_compiler_pic_RC \
  37455. - lt_prog_compiler_static_RC \
  37456. - lt_prog_compiler_no_builtin_flag_RC \
  37457. - export_dynamic_flag_spec_RC \
  37458. - thread_safe_flag_spec_RC \
  37459. - whole_archive_flag_spec_RC \
  37460. - enable_shared_with_static_runtimes_RC \
  37461. - old_archive_cmds_RC \
  37462. - old_archive_from_new_cmds_RC \
  37463. - predep_objects_RC \
  37464. - postdep_objects_RC \
  37465. - predeps_RC \
  37466. - postdeps_RC \
  37467. - compiler_lib_search_path_RC \
  37468. - compiler_lib_search_dirs_RC \
  37469. - archive_cmds_RC \
  37470. - archive_expsym_cmds_RC \
  37471. - postinstall_cmds_RC \
  37472. - postuninstall_cmds_RC \
  37473. - old_archive_from_expsyms_cmds_RC \
  37474. - allow_undefined_flag_RC \
  37475. - no_undefined_flag_RC \
  37476. - export_symbols_cmds_RC \
  37477. - hardcode_libdir_flag_spec_RC \
  37478. - hardcode_libdir_flag_spec_ld_RC \
  37479. - hardcode_libdir_separator_RC \
  37480. - hardcode_automatic_RC \
  37481. - module_cmds_RC \
  37482. - module_expsym_cmds_RC \
  37483. - lt_cv_prog_compiler_c_o_RC \
  37484. - fix_srcfile_path_RC \
  37485. - exclude_expsyms_RC \
  37486. - include_expsyms_RC; do
  37487. -
  37488. - case $var in
  37489. - old_archive_cmds_RC | \
  37490. - old_archive_from_new_cmds_RC | \
  37491. - archive_cmds_RC | \
  37492. - archive_expsym_cmds_RC | \
  37493. - module_cmds_RC | \
  37494. - module_expsym_cmds_RC | \
  37495. - old_archive_from_expsyms_cmds_RC | \
  37496. - export_symbols_cmds_RC | \
  37497. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37498. - postinstall_cmds | postuninstall_cmds | \
  37499. - old_postinstall_cmds | old_postuninstall_cmds | \
  37500. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37501. - # Double-quote double-evaled strings.
  37502. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37503. +sysv4 | sysv4.3*)
  37504. + version_type=linux
  37505. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37506. + soname_spec='${libname}${release}${shared_ext}$major'
  37507. + shlibpath_var=LD_LIBRARY_PATH
  37508. + case $host_vendor in
  37509. + sni)
  37510. + shlibpath_overrides_runpath=no
  37511. + need_lib_prefix=no
  37512. + runpath_var=LD_RUN_PATH
  37513. ;;
  37514. - *)
  37515. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37516. + siemens)
  37517. + need_lib_prefix=no
  37518. + ;;
  37519. + motorola)
  37520. + need_lib_prefix=no
  37521. + need_version=no
  37522. + shlibpath_overrides_runpath=no
  37523. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  37524. ;;
  37525. - esac
  37526. - done
  37527. -
  37528. - case $lt_echo in
  37529. - *'\$0 --fallback-echo"')
  37530. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37531. - ;;
  37532. esac
  37533. + ;;
  37534. -cfgfile="$ofile"
  37535. +sysv4*MP*)
  37536. + if test -d /usr/nec ;then
  37537. + version_type=linux
  37538. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  37539. + soname_spec='$libname${shared_ext}.$major'
  37540. + shlibpath_var=LD_LIBRARY_PATH
  37541. + fi
  37542. + ;;
  37543. - cat <<__EOF__ >> "$cfgfile"
  37544. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37545. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  37546. + version_type=freebsd-elf
  37547. + need_lib_prefix=no
  37548. + need_version=no
  37549. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37550. + soname_spec='${libname}${release}${shared_ext}$major'
  37551. + shlibpath_var=LD_LIBRARY_PATH
  37552. + shlibpath_overrides_runpath=yes
  37553. + hardcode_into_libs=yes
  37554. + if test "$with_gnu_ld" = yes; then
  37555. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  37556. + else
  37557. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  37558. + case $host_os in
  37559. + sco3.2v5*)
  37560. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  37561. + ;;
  37562. + esac
  37563. + fi
  37564. + sys_lib_dlsearch_path_spec='/usr/lib'
  37565. + ;;
  37566. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37567. +tpf*)
  37568. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  37569. + version_type=linux
  37570. + need_lib_prefix=no
  37571. + need_version=no
  37572. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37573. + shlibpath_var=LD_LIBRARY_PATH
  37574. + shlibpath_overrides_runpath=no
  37575. + hardcode_into_libs=yes
  37576. + ;;
  37577. -# Shell to use when invoking shell scripts.
  37578. -SHELL=$lt_SHELL
  37579. +uts4*)
  37580. + version_type=linux
  37581. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37582. + soname_spec='${libname}${release}${shared_ext}$major'
  37583. + shlibpath_var=LD_LIBRARY_PATH
  37584. + ;;
  37585. -# Whether or not to build shared libraries.
  37586. -build_libtool_libs=$enable_shared
  37587. +*)
  37588. + dynamic_linker=no
  37589. + ;;
  37590. +esac
  37591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  37592. +$as_echo "$dynamic_linker" >&6; }
  37593. +test "$dynamic_linker" = no && can_build_shared=no
  37594. -# Whether or not to build static libraries.
  37595. -build_old_libs=$enable_static
  37596. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  37597. +if test "$GCC" = yes; then
  37598. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  37599. +fi
  37600. -# Whether or not to add -lc for building shared libraries.
  37601. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  37602. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  37603. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  37604. +fi
  37605. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  37606. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  37607. +fi
  37608. -# Whether or not to disallow shared libs when runtime libs are static
  37609. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  37610. -# Whether or not to optimize for fast installation.
  37611. -fast_install=$enable_fast_install
  37612. -# The host system.
  37613. -host_alias=$host_alias
  37614. -host=$host
  37615. -host_os=$host_os
  37616. -# The build system.
  37617. -build_alias=$build_alias
  37618. -build=$build
  37619. -build_os=$build_os
  37620. -# An echo program that does not interpret backslashes.
  37621. -echo=$lt_echo
  37622. -# The archiver.
  37623. -AR=$lt_AR
  37624. -AR_FLAGS=$lt_AR_FLAGS
  37625. -# A C compiler.
  37626. -LTCC=$lt_LTCC
  37627. -# LTCC compiler flags.
  37628. -LTCFLAGS=$lt_LTCFLAGS
  37629. -# A language-specific compiler.
  37630. -CC=$lt_compiler_RC
  37631. -# Is the compiler the GNU C compiler?
  37632. -with_gcc=$GCC_RC
  37633. -# An ERE matcher.
  37634. -EGREP=$lt_EGREP
  37635. -# The linker used to build libraries.
  37636. -LD=$lt_LD_RC
  37637. -# Whether we need hard or soft links.
  37638. -LN_S=$lt_LN_S
  37639. -# A BSD-compatible nm program.
  37640. -NM=$lt_NM
  37641. -# A symbol stripping program
  37642. -STRIP=$lt_STRIP
  37643. -# Used to examine libraries when file_magic_cmd begins "file"
  37644. -MAGIC_CMD=$MAGIC_CMD
  37645. -# Used on cygwin: DLL creation program.
  37646. -DLLTOOL="$DLLTOOL"
  37647. -# Used on cygwin: object dumper.
  37648. -OBJDUMP="$OBJDUMP"
  37649. -# Used on cygwin: assembler.
  37650. -AS="$AS"
  37651. -# The name of the directory that contains temporary libtool files.
  37652. -objdir=$objdir
  37653. -# How to create reloadable object files.
  37654. -reload_flag=$lt_reload_flag
  37655. -reload_cmds=$lt_reload_cmds
  37656. -# How to pass a linker flag through the compiler.
  37657. -wl=$lt_lt_prog_compiler_wl_RC
  37658. -# Object file suffix (normally "o").
  37659. -objext="$ac_objext"
  37660. -# Old archive suffix (normally "a").
  37661. -libext="$libext"
  37662. -# Shared library suffix (normally ".so").
  37663. -shrext_cmds='$shrext_cmds'
  37664. -# Executable file suffix (normally "").
  37665. -exeext="$exeext"
  37666. -# Additional compiler flags for building library objects.
  37667. -pic_flag=$lt_lt_prog_compiler_pic_RC
  37668. -pic_mode=$pic_mode
  37669. -# What is the maximum length of a command?
  37670. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37671. -# Does compiler simultaneously support -c and -o options?
  37672. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  37673. -# Must we lock files when doing compilation?
  37674. -need_locks=$lt_need_locks
  37675. -# Do we need the lib prefix for modules?
  37676. -need_lib_prefix=$need_lib_prefix
  37677. -# Do we need a version for libraries?
  37678. -need_version=$need_version
  37679. -# Whether dlopen is supported.
  37680. -dlopen_support=$enable_dlopen
  37681. -# Whether dlopen of programs is supported.
  37682. -dlopen_self=$enable_dlopen_self
  37683. -# Whether dlopen of statically linked programs is supported.
  37684. -dlopen_self_static=$enable_dlopen_self_static
  37685. -# Compiler flag to prevent dynamic linking.
  37686. -link_static_flag=$lt_lt_prog_compiler_static_RC
  37687. -# Compiler flag to turn off builtin functions.
  37688. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  37689. -# Compiler flag to allow reflexive dlopens.
  37690. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  37691. -# Compiler flag to generate shared objects directly from archives.
  37692. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  37693. -# Compiler flag to generate thread-safe objects.
  37694. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  37695. -# Library versioning type.
  37696. -version_type=$version_type
  37697. -# Format of library name prefix.
  37698. -libname_spec=$lt_libname_spec
  37699. -# List of archive names. First name is the real one, the rest are links.
  37700. -# The last name is the one that the linker finds with -lNAME.
  37701. -library_names_spec=$lt_library_names_spec
  37702. -# The coded name of the library, if different from the real name.
  37703. -soname_spec=$lt_soname_spec
  37704. -# Commands used to build and install an old-style archive.
  37705. -RANLIB=$lt_RANLIB
  37706. -old_archive_cmds=$lt_old_archive_cmds_RC
  37707. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37708. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37709. -# Create an old-style archive from a shared archive.
  37710. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  37711. -# Create a temporary old-style archive to link instead of a shared archive.
  37712. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  37713. -# Commands used to build and install a shared archive.
  37714. -archive_cmds=$lt_archive_cmds_RC
  37715. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  37716. -postinstall_cmds=$lt_postinstall_cmds
  37717. -postuninstall_cmds=$lt_postuninstall_cmds
  37718. -# Commands used to build a loadable module (assumed same as above if empty)
  37719. -module_cmds=$lt_module_cmds_RC
  37720. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  37721. -# Commands to strip libraries.
  37722. -old_striplib=$lt_old_striplib
  37723. -striplib=$lt_striplib
  37724. -# Dependencies to place before the objects being linked to create a
  37725. -# shared library.
  37726. -predep_objects=$lt_predep_objects_RC
  37727. -
  37728. -# Dependencies to place after the objects being linked to create a
  37729. -# shared library.
  37730. -postdep_objects=$lt_postdep_objects_RC
  37731. -
  37732. -# Dependencies to place before the objects being linked to create a
  37733. -# shared library.
  37734. -predeps=$lt_predeps_RC
  37735. -
  37736. -# Dependencies to place after the objects being linked to create a
  37737. -# shared library.
  37738. -postdeps=$lt_postdeps_RC
  37739. -
  37740. -# The directories searched by this compiler when creating a shared
  37741. -# library
  37742. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  37743. -
  37744. -# The library search path used internally by the compiler when linking
  37745. -# a shared library.
  37746. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  37747. -# Method to check whether dependent libraries are shared objects.
  37748. -deplibs_check_method=$lt_deplibs_check_method
  37749. -# Command to use when deplibs_check_method == file_magic.
  37750. -file_magic_cmd=$lt_file_magic_cmd
  37751. -# Flag that allows shared libraries with undefined symbols to be built.
  37752. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  37753. -# Flag that forces no undefined symbols.
  37754. -no_undefined_flag=$lt_no_undefined_flag_RC
  37755. -# Commands used to finish a libtool library installation in a directory.
  37756. -finish_cmds=$lt_finish_cmds
  37757. -# Same as above, but a single script fragment to be evaled but not shown.
  37758. -finish_eval=$lt_finish_eval
  37759. -# Take the output of nm and produce a listing of raw symbols and C names.
  37760. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37761. -# Transform the output of nm in a proper C declaration
  37762. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37763. -# Transform the output of nm in a C name address pair
  37764. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37765. -# This is the shared library runtime path variable.
  37766. -runpath_var=$runpath_var
  37767. -# This is the shared library path variable.
  37768. -shlibpath_var=$shlibpath_var
  37769. -# Is shlibpath searched before the hard-coded library search path?
  37770. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37771. -# How to hardcode a shared library path into an executable.
  37772. -hardcode_action=$hardcode_action_RC
  37773. -# Whether we should hardcode library paths into libraries.
  37774. -hardcode_into_libs=$hardcode_into_libs
  37775. -# Flag to hardcode \$libdir into a binary during linking.
  37776. -# This must work even if \$libdir does not exist.
  37777. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  37778. -# If ld is used when linking, flag to hardcode \$libdir into
  37779. -# a binary during linking. This must work even if \$libdir does
  37780. -# not exist.
  37781. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  37782. -
  37783. -# Whether we need a single -rpath flag with a separated argument.
  37784. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  37785. -
  37786. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37787. -# resulting binary.
  37788. -hardcode_direct=$hardcode_direct_RC
  37789. -
  37790. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37791. -# resulting binary.
  37792. -hardcode_minus_L=$hardcode_minus_L_RC
  37793. -
  37794. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37795. -# the resulting binary.
  37796. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  37797. -
  37798. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37799. -# and all subsequent libraries and executables linked against it.
  37800. -hardcode_automatic=$hardcode_automatic_RC
  37801. -# Variables whose values should be saved in libtool wrapper scripts and
  37802. -# restored at relink time.
  37803. -variables_saved_for_relink="$variables_saved_for_relink"
  37804. -# Whether libtool must link a program against all its dependency libraries.
  37805. -link_all_deplibs=$link_all_deplibs_RC
  37806. -# Compile-time system search path for libraries
  37807. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37808. -# Run-time system search path for libraries
  37809. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37810. -# Fix the shell variable \$srcfile for the compiler.
  37811. -fix_srcfile_path=$lt_fix_srcfile_path
  37812. -# Set to yes if exported symbols are required.
  37813. -always_export_symbols=$always_export_symbols_RC
  37814. -# The commands to list exported symbols.
  37815. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  37816. -# The commands to extract the exported symbol list from a shared archive.
  37817. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37818. -# Symbols that should not be listed in the preloaded symbols.
  37819. -exclude_expsyms=$lt_exclude_expsyms_RC
  37820. -# Symbols that must always be exported.
  37821. -include_expsyms=$lt_include_expsyms_RC
  37822. -# ### END LIBTOOL TAG CONFIG: $tagname
  37823. -__EOF__
  37824. -else
  37825. - # If there is no Makefile yet, we rely on a make rule to execute
  37826. - # `config.status --recheck' to rerun these tests and create the
  37827. - # libtool script then.
  37828. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37829. - if test -f "$ltmain_in"; then
  37830. - test -f Makefile && make "$ltmain"
  37831. - fi
  37832. -fi
  37833. -ac_ext=c
  37834. -ac_cpp='$CPP $CPPFLAGS'
  37835. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37836. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37837. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37838. -CC="$lt_save_CC"
  37839. - ;;
  37840. - *)
  37841. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  37842. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  37843. - { (exit 1); exit 1; }; }
  37844. - ;;
  37845. - esac
  37846. - # Append the new tag name to the list of available tags.
  37847. - if test -n "$tagname" ; then
  37848. - available_tags="$available_tags $tagname"
  37849. - fi
  37850. - fi
  37851. - done
  37852. - IFS="$lt_save_ifs"
  37853. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  37854. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  37855. +hardcode_action=
  37856. +if test -n "$hardcode_libdir_flag_spec" ||
  37857. + test -n "$runpath_var" ||
  37858. + test "X$hardcode_automatic" = "Xyes" ; then
  37859. - # Now substitute the updated list of available tags.
  37860. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  37861. - mv "${ofile}T" "$ofile"
  37862. - chmod +x "$ofile"
  37863. + # We can hardcode non-existent directories.
  37864. + if test "$hardcode_direct" != no &&
  37865. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37866. + # have to relink, otherwise we might link with an installed library
  37867. + # when we should be linking with a yet-to-be-installed one
  37868. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  37869. + test "$hardcode_minus_L" != no; then
  37870. + # Linking always hardcodes the temporary library directory.
  37871. + hardcode_action=relink
  37872. else
  37873. - rm -f "${ofile}T"
  37874. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  37875. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  37876. - { (exit 1); exit 1; }; }
  37877. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37878. + hardcode_action=immediate
  37879. fi
  37880. +else
  37881. + # We cannot hardcode anything, or else we can only hardcode existing
  37882. + # directories.
  37883. + hardcode_action=unsupported
  37884. fi
  37885. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  37886. +$as_echo "$hardcode_action" >&6; }
  37887. -
  37888. -
  37889. -# This can be used to rebuild libtool when needed
  37890. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  37891. -
  37892. -# Always use our own libtool.
  37893. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  37894. -
  37895. -# Prevent multiple expansion
  37896. -
  37897. -
  37898. -
  37899. -
  37900. -
  37901. -
  37902. +if test "$hardcode_action" = relink ||
  37903. + test "$inherit_rpath" = yes; then
  37904. + # Fast installation is not supported
  37905. + enable_fast_install=no
  37906. +elif test "$shlibpath_overrides_runpath" = yes ||
  37907. + test "$enable_shared" = no; then
  37908. + # Fast installation is not necessary
  37909. + enable_fast_install=needless
  37910. +fi
  37911. + if test "x$enable_dlopen" != xyes; then
  37912. + enable_dlopen=unknown
  37913. + enable_dlopen_self=unknown
  37914. + enable_dlopen_self_static=unknown
  37915. +else
  37916. + lt_cv_dlopen=no
  37917. + lt_cv_dlopen_libs=
  37918. + case $host_os in
  37919. + beos*)
  37920. + lt_cv_dlopen="load_add_on"
  37921. + lt_cv_dlopen_libs=
  37922. + lt_cv_dlopen_self=yes
  37923. + ;;
  37924. + mingw* | pw32* | cegcc*)
  37925. + lt_cv_dlopen="LoadLibrary"
  37926. + lt_cv_dlopen_libs=
  37927. + ;;
  37928. + cygwin*)
  37929. + lt_cv_dlopen="dlopen"
  37930. + lt_cv_dlopen_libs=
  37931. + ;;
  37932. + darwin*)
  37933. + # if libdl is installed we need to link against it
  37934. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37935. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37936. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37937. + $as_echo_n "(cached) " >&6
  37938. +else
  37939. + ac_check_lib_save_LIBS=$LIBS
  37940. +LIBS="-ldl $LIBS"
  37941. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37942. +/* end confdefs.h. */
  37943. +/* Override any GCC internal prototype to avoid an error.
  37944. + Use char because int might match the return type of a GCC
  37945. + builtin and then its argument prototype would still apply. */
  37946. +#ifdef __cplusplus
  37947. +extern "C"
  37948. +#endif
  37949. +char dlopen ();
  37950. +int
  37951. +main ()
  37952. +{
  37953. +return dlopen ();
  37954. + ;
  37955. + return 0;
  37956. +}
  37957. +_ACEOF
  37958. +if ac_fn_c_try_link "$LINENO"; then :
  37959. + ac_cv_lib_dl_dlopen=yes
  37960. +else
  37961. + ac_cv_lib_dl_dlopen=no
  37962. +fi
  37963. +rm -f core conftest.err conftest.$ac_objext \
  37964. + conftest$ac_exeext conftest.$ac_ext
  37965. +LIBS=$ac_check_lib_save_LIBS
  37966. +fi
  37967. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37968. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37969. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37970. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  37971. +else
  37972. + lt_cv_dlopen="dyld"
  37973. + lt_cv_dlopen_libs=
  37974. + lt_cv_dlopen_self=yes
  37975. +fi
  37976. + ;;
  37977. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  37978. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  37979. -if test "${ac_cv_header_stdc+set}" = set; then
  37980. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37981. + *)
  37982. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  37983. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  37984. + lt_cv_dlopen="shl_load"
  37985. else
  37986. - cat >conftest.$ac_ext <<_ACEOF
  37987. -/* confdefs.h. */
  37988. -_ACEOF
  37989. -cat confdefs.h >>conftest.$ac_ext
  37990. -cat >>conftest.$ac_ext <<_ACEOF
  37991. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  37992. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  37993. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  37994. + $as_echo_n "(cached) " >&6
  37995. +else
  37996. + ac_check_lib_save_LIBS=$LIBS
  37997. +LIBS="-ldld $LIBS"
  37998. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37999. /* end confdefs.h. */
  38000. -#include <stdlib.h>
  38001. -#include <stdarg.h>
  38002. -#include <string.h>
  38003. -#include <float.h>
  38004. +/* Override any GCC internal prototype to avoid an error.
  38005. + Use char because int might match the return type of a GCC
  38006. + builtin and then its argument prototype would still apply. */
  38007. +#ifdef __cplusplus
  38008. +extern "C"
  38009. +#endif
  38010. +char shl_load ();
  38011. int
  38012. main ()
  38013. {
  38014. -
  38015. +return shl_load ();
  38016. ;
  38017. return 0;
  38018. }
  38019. _ACEOF
  38020. -rm -f conftest.$ac_objext
  38021. -if { (ac_try="$ac_compile"
  38022. -case "(($ac_try" in
  38023. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38024. - *) ac_try_echo=$ac_try;;
  38025. -esac
  38026. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38027. - (eval "$ac_compile") 2>conftest.er1
  38028. - ac_status=$?
  38029. - grep -v '^ *+' conftest.er1 >conftest.err
  38030. - rm -f conftest.er1
  38031. - cat conftest.err >&5
  38032. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38033. - (exit $ac_status); } && {
  38034. - test -z "$ac_c_werror_flag" ||
  38035. - test ! -s conftest.err
  38036. - } && test -s conftest.$ac_objext; then
  38037. - ac_cv_header_stdc=yes
  38038. +if ac_fn_c_try_link "$LINENO"; then :
  38039. + ac_cv_lib_dld_shl_load=yes
  38040. else
  38041. - echo "$as_me: failed program was:" >&5
  38042. -sed 's/^/| /' conftest.$ac_ext >&5
  38043. -
  38044. - ac_cv_header_stdc=no
  38045. + ac_cv_lib_dld_shl_load=no
  38046. fi
  38047. -
  38048. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38049. -
  38050. -if test $ac_cv_header_stdc = yes; then
  38051. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  38052. - cat >conftest.$ac_ext <<_ACEOF
  38053. -/* confdefs.h. */
  38054. -_ACEOF
  38055. -cat confdefs.h >>conftest.$ac_ext
  38056. -cat >>conftest.$ac_ext <<_ACEOF
  38057. +rm -f core conftest.err conftest.$ac_objext \
  38058. + conftest$ac_exeext conftest.$ac_ext
  38059. +LIBS=$ac_check_lib_save_LIBS
  38060. +fi
  38061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  38062. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  38063. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  38064. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  38065. +else
  38066. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  38067. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  38068. + lt_cv_dlopen="dlopen"
  38069. +else
  38070. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  38071. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  38072. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  38073. + $as_echo_n "(cached) " >&6
  38074. +else
  38075. + ac_check_lib_save_LIBS=$LIBS
  38076. +LIBS="-ldl $LIBS"
  38077. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38078. /* end confdefs.h. */
  38079. -#include <string.h>
  38080. +/* Override any GCC internal prototype to avoid an error.
  38081. + Use char because int might match the return type of a GCC
  38082. + builtin and then its argument prototype would still apply. */
  38083. +#ifdef __cplusplus
  38084. +extern "C"
  38085. +#endif
  38086. +char dlopen ();
  38087. +int
  38088. +main ()
  38089. +{
  38090. +return dlopen ();
  38091. + ;
  38092. + return 0;
  38093. +}
  38094. _ACEOF
  38095. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38096. - $EGREP "memchr" >/dev/null 2>&1; then
  38097. - :
  38098. +if ac_fn_c_try_link "$LINENO"; then :
  38099. + ac_cv_lib_dl_dlopen=yes
  38100. else
  38101. - ac_cv_header_stdc=no
  38102. + ac_cv_lib_dl_dlopen=no
  38103. fi
  38104. -rm -f conftest*
  38105. -
  38106. +rm -f core conftest.err conftest.$ac_objext \
  38107. + conftest$ac_exeext conftest.$ac_ext
  38108. +LIBS=$ac_check_lib_save_LIBS
  38109. fi
  38110. -
  38111. -if test $ac_cv_header_stdc = yes; then
  38112. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  38113. - cat >conftest.$ac_ext <<_ACEOF
  38114. -/* confdefs.h. */
  38115. -_ACEOF
  38116. -cat confdefs.h >>conftest.$ac_ext
  38117. -cat >>conftest.$ac_ext <<_ACEOF
  38118. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  38119. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  38120. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  38121. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  38122. +else
  38123. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  38124. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  38125. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  38126. + $as_echo_n "(cached) " >&6
  38127. +else
  38128. + ac_check_lib_save_LIBS=$LIBS
  38129. +LIBS="-lsvld $LIBS"
  38130. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38131. /* end confdefs.h. */
  38132. -#include <stdlib.h>
  38133. +/* Override any GCC internal prototype to avoid an error.
  38134. + Use char because int might match the return type of a GCC
  38135. + builtin and then its argument prototype would still apply. */
  38136. +#ifdef __cplusplus
  38137. +extern "C"
  38138. +#endif
  38139. +char dlopen ();
  38140. +int
  38141. +main ()
  38142. +{
  38143. +return dlopen ();
  38144. + ;
  38145. + return 0;
  38146. +}
  38147. _ACEOF
  38148. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38149. - $EGREP "free" >/dev/null 2>&1; then
  38150. - :
  38151. +if ac_fn_c_try_link "$LINENO"; then :
  38152. + ac_cv_lib_svld_dlopen=yes
  38153. else
  38154. - ac_cv_header_stdc=no
  38155. + ac_cv_lib_svld_dlopen=no
  38156. fi
  38157. -rm -f conftest*
  38158. -
  38159. +rm -f core conftest.err conftest.$ac_objext \
  38160. + conftest$ac_exeext conftest.$ac_ext
  38161. +LIBS=$ac_check_lib_save_LIBS
  38162. fi
  38163. -
  38164. -if test $ac_cv_header_stdc = yes; then
  38165. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  38166. - if test "$cross_compiling" = yes; then
  38167. - :
  38168. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  38169. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  38170. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  38171. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  38172. else
  38173. - cat >conftest.$ac_ext <<_ACEOF
  38174. -/* confdefs.h. */
  38175. -_ACEOF
  38176. -cat confdefs.h >>conftest.$ac_ext
  38177. -cat >>conftest.$ac_ext <<_ACEOF
  38178. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  38179. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  38180. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  38181. + $as_echo_n "(cached) " >&6
  38182. +else
  38183. + ac_check_lib_save_LIBS=$LIBS
  38184. +LIBS="-ldld $LIBS"
  38185. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38186. /* end confdefs.h. */
  38187. -#include <ctype.h>
  38188. -#include <stdlib.h>
  38189. -#if ((' ' & 0x0FF) == 0x020)
  38190. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  38191. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  38192. -#else
  38193. -# define ISLOWER(c) \
  38194. - (('a' <= (c) && (c) <= 'i') \
  38195. - || ('j' <= (c) && (c) <= 'r') \
  38196. - || ('s' <= (c) && (c) <= 'z'))
  38197. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  38198. -#endif
  38199. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  38200. +/* Override any GCC internal prototype to avoid an error.
  38201. + Use char because int might match the return type of a GCC
  38202. + builtin and then its argument prototype would still apply. */
  38203. +#ifdef __cplusplus
  38204. +extern "C"
  38205. +#endif
  38206. +char dld_link ();
  38207. int
  38208. main ()
  38209. {
  38210. - int i;
  38211. - for (i = 0; i < 256; i++)
  38212. - if (XOR (islower (i), ISLOWER (i))
  38213. - || toupper (i) != TOUPPER (i))
  38214. - return 2;
  38215. +return dld_link ();
  38216. + ;
  38217. return 0;
  38218. }
  38219. _ACEOF
  38220. -rm -f conftest$ac_exeext
  38221. -if { (ac_try="$ac_link"
  38222. -case "(($ac_try" in
  38223. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38224. - *) ac_try_echo=$ac_try;;
  38225. -esac
  38226. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38227. - (eval "$ac_link") 2>&5
  38228. - ac_status=$?
  38229. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38230. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  38231. - { (case "(($ac_try" in
  38232. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38233. - *) ac_try_echo=$ac_try;;
  38234. -esac
  38235. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38236. - (eval "$ac_try") 2>&5
  38237. - ac_status=$?
  38238. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38239. - (exit $ac_status); }; }; then
  38240. - :
  38241. +if ac_fn_c_try_link "$LINENO"; then :
  38242. + ac_cv_lib_dld_dld_link=yes
  38243. else
  38244. - echo "$as_me: program exited with status $ac_status" >&5
  38245. -echo "$as_me: failed program was:" >&5
  38246. -sed 's/^/| /' conftest.$ac_ext >&5
  38247. + ac_cv_lib_dld_dld_link=no
  38248. +fi
  38249. +rm -f core conftest.err conftest.$ac_objext \
  38250. + conftest$ac_exeext conftest.$ac_ext
  38251. +LIBS=$ac_check_lib_save_LIBS
  38252. +fi
  38253. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  38254. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  38255. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  38256. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  38257. +fi
  38258. +
  38259. +
  38260. +fi
  38261. +
  38262. +
  38263. +fi
  38264. +
  38265. +
  38266. +fi
  38267. +
  38268. +
  38269. +fi
  38270. +
  38271. +
  38272. +fi
  38273. +
  38274. + ;;
  38275. + esac
  38276. +
  38277. + if test "x$lt_cv_dlopen" != xno; then
  38278. + enable_dlopen=yes
  38279. + else
  38280. + enable_dlopen=no
  38281. + fi
  38282. +
  38283. + case $lt_cv_dlopen in
  38284. + dlopen)
  38285. + save_CPPFLAGS="$CPPFLAGS"
  38286. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  38287. +
  38288. + save_LDFLAGS="$LDFLAGS"
  38289. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  38290. +
  38291. + save_LIBS="$LIBS"
  38292. + LIBS="$lt_cv_dlopen_libs $LIBS"
  38293. +
  38294. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  38295. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  38296. +if test "${lt_cv_dlopen_self+set}" = set; then :
  38297. + $as_echo_n "(cached) " >&6
  38298. +else
  38299. + if test "$cross_compiling" = yes; then :
  38300. + lt_cv_dlopen_self=cross
  38301. +else
  38302. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  38303. + lt_status=$lt_dlunknown
  38304. + cat > conftest.$ac_ext <<_LT_EOF
  38305. +#line 11339 "configure"
  38306. +#include "confdefs.h"
  38307. +
  38308. +#if HAVE_DLFCN_H
  38309. +#include <dlfcn.h>
  38310. +#endif
  38311. +
  38312. +#include <stdio.h>
  38313. +
  38314. +#ifdef RTLD_GLOBAL
  38315. +# define LT_DLGLOBAL RTLD_GLOBAL
  38316. +#else
  38317. +# ifdef DL_GLOBAL
  38318. +# define LT_DLGLOBAL DL_GLOBAL
  38319. +# else
  38320. +# define LT_DLGLOBAL 0
  38321. +# endif
  38322. +#endif
  38323. +
  38324. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  38325. + find out it does not work in some platform. */
  38326. +#ifndef LT_DLLAZY_OR_NOW
  38327. +# ifdef RTLD_LAZY
  38328. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  38329. +# else
  38330. +# ifdef DL_LAZY
  38331. +# define LT_DLLAZY_OR_NOW DL_LAZY
  38332. +# else
  38333. +# ifdef RTLD_NOW
  38334. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  38335. +# else
  38336. +# ifdef DL_NOW
  38337. +# define LT_DLLAZY_OR_NOW DL_NOW
  38338. +# else
  38339. +# define LT_DLLAZY_OR_NOW 0
  38340. +# endif
  38341. +# endif
  38342. +# endif
  38343. +# endif
  38344. +#endif
  38345. -( exit $ac_status )
  38346. -ac_cv_header_stdc=no
  38347. -fi
  38348. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  38349. -fi
  38350. +void fnord() { int i=42;}
  38351. +int main ()
  38352. +{
  38353. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  38354. + int status = $lt_dlunknown;
  38355. + if (self)
  38356. + {
  38357. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  38358. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  38359. + /* dlclose (self); */
  38360. + }
  38361. + else
  38362. + puts (dlerror ());
  38363. + return status;
  38364. +}
  38365. +_LT_EOF
  38366. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  38367. + (eval $ac_link) 2>&5
  38368. + ac_status=$?
  38369. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38370. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  38371. + (./conftest; exit; ) >&5 2>/dev/null
  38372. + lt_status=$?
  38373. + case x$lt_status in
  38374. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  38375. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  38376. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  38377. + esac
  38378. + else :
  38379. + # compilation failed
  38380. + lt_cv_dlopen_self=no
  38381. + fi
  38382. fi
  38383. -fi
  38384. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  38385. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  38386. -if test $ac_cv_header_stdc = yes; then
  38387. +rm -fr conftest*
  38388. -cat >>confdefs.h <<\_ACEOF
  38389. -#define STDC_HEADERS 1
  38390. -_ACEOF
  38391. fi
  38392. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  38393. +$as_echo "$lt_cv_dlopen_self" >&6; }
  38394. -{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  38395. -echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  38396. -if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  38397. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38398. + if test "x$lt_cv_dlopen_self" = xyes; then
  38399. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  38400. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  38401. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  38402. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  38403. + $as_echo_n "(cached) " >&6
  38404. else
  38405. - cat >conftest.$ac_ext <<_ACEOF
  38406. -/* confdefs.h. */
  38407. -_ACEOF
  38408. -cat confdefs.h >>conftest.$ac_ext
  38409. -cat >>conftest.$ac_ext <<_ACEOF
  38410. -/* end confdefs.h. */
  38411. -#include <sys/types.h>
  38412. -int
  38413. -main ()
  38414. + if test "$cross_compiling" = yes; then :
  38415. + lt_cv_dlopen_self_static=cross
  38416. +else
  38417. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  38418. + lt_status=$lt_dlunknown
  38419. + cat > conftest.$ac_ext <<_LT_EOF
  38420. +#line 11435 "configure"
  38421. +#include "confdefs.h"
  38422. +
  38423. +#if HAVE_DLFCN_H
  38424. +#include <dlfcn.h>
  38425. +#endif
  38426. +
  38427. +#include <stdio.h>
  38428. +
  38429. +#ifdef RTLD_GLOBAL
  38430. +# define LT_DLGLOBAL RTLD_GLOBAL
  38431. +#else
  38432. +# ifdef DL_GLOBAL
  38433. +# define LT_DLGLOBAL DL_GLOBAL
  38434. +# else
  38435. +# define LT_DLGLOBAL 0
  38436. +# endif
  38437. +#endif
  38438. +
  38439. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  38440. + find out it does not work in some platform. */
  38441. +#ifndef LT_DLLAZY_OR_NOW
  38442. +# ifdef RTLD_LAZY
  38443. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  38444. +# else
  38445. +# ifdef DL_LAZY
  38446. +# define LT_DLLAZY_OR_NOW DL_LAZY
  38447. +# else
  38448. +# ifdef RTLD_NOW
  38449. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  38450. +# else
  38451. +# ifdef DL_NOW
  38452. +# define LT_DLLAZY_OR_NOW DL_NOW
  38453. +# else
  38454. +# define LT_DLLAZY_OR_NOW 0
  38455. +# endif
  38456. +# endif
  38457. +# endif
  38458. +# endif
  38459. +#endif
  38460. +
  38461. +void fnord() { int i=42;}
  38462. +int main ()
  38463. {
  38464. -return makedev(0, 0);
  38465. - ;
  38466. - return 0;
  38467. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  38468. + int status = $lt_dlunknown;
  38469. +
  38470. + if (self)
  38471. + {
  38472. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  38473. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  38474. + /* dlclose (self); */
  38475. + }
  38476. + else
  38477. + puts (dlerror ());
  38478. +
  38479. + return status;
  38480. }
  38481. -_ACEOF
  38482. -rm -f conftest.$ac_objext conftest$ac_exeext
  38483. -if { (ac_try="$ac_link"
  38484. -case "(($ac_try" in
  38485. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38486. - *) ac_try_echo=$ac_try;;
  38487. -esac
  38488. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38489. - (eval "$ac_link") 2>conftest.er1
  38490. +_LT_EOF
  38491. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  38492. + (eval $ac_link) 2>&5
  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. - test -z "$ac_c_werror_flag" ||
  38500. - test ! -s conftest.err
  38501. - } && test -s conftest$ac_exeext &&
  38502. - $as_test_x conftest$ac_exeext; then
  38503. - ac_cv_header_sys_types_h_makedev=yes
  38504. -else
  38505. - echo "$as_me: failed program was:" >&5
  38506. -sed 's/^/| /' conftest.$ac_ext >&5
  38507. -
  38508. - ac_cv_header_sys_types_h_makedev=no
  38509. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38510. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  38511. + (./conftest; exit; ) >&5 2>/dev/null
  38512. + lt_status=$?
  38513. + case x$lt_status in
  38514. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  38515. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  38516. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  38517. + esac
  38518. + else :
  38519. + # compilation failed
  38520. + lt_cv_dlopen_self_static=no
  38521. + fi
  38522. fi
  38523. +rm -fr conftest*
  38524. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38525. - conftest$ac_exeext conftest.$ac_ext
  38526. fi
  38527. -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  38528. -echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  38529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  38530. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  38531. + fi
  38532. -if test $ac_cv_header_sys_types_h_makedev = no; then
  38533. -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  38534. - { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  38535. -echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  38536. -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  38537. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38538. -fi
  38539. -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  38540. -echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  38541. -else
  38542. - # Is the header compilable?
  38543. -{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  38544. -echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  38545. -cat >conftest.$ac_ext <<_ACEOF
  38546. -/* confdefs.h. */
  38547. -_ACEOF
  38548. -cat confdefs.h >>conftest.$ac_ext
  38549. -cat >>conftest.$ac_ext <<_ACEOF
  38550. -/* end confdefs.h. */
  38551. -$ac_includes_default
  38552. -#include <sys/mkdev.h>
  38553. -_ACEOF
  38554. -rm -f conftest.$ac_objext
  38555. -if { (ac_try="$ac_compile"
  38556. -case "(($ac_try" in
  38557. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38558. - *) ac_try_echo=$ac_try;;
  38559. -esac
  38560. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38561. - (eval "$ac_compile") 2>conftest.er1
  38562. - ac_status=$?
  38563. - grep -v '^ *+' conftest.er1 >conftest.err
  38564. - rm -f conftest.er1
  38565. - cat conftest.err >&5
  38566. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38567. - (exit $ac_status); } && {
  38568. - test -z "$ac_c_werror_flag" ||
  38569. - test ! -s conftest.err
  38570. - } && test -s conftest.$ac_objext; then
  38571. - ac_header_compiler=yes
  38572. -else
  38573. - echo "$as_me: failed program was:" >&5
  38574. -sed 's/^/| /' conftest.$ac_ext >&5
  38575. + CPPFLAGS="$save_CPPFLAGS"
  38576. + LDFLAGS="$save_LDFLAGS"
  38577. + LIBS="$save_LIBS"
  38578. + ;;
  38579. + esac
  38580. +
  38581. + case $lt_cv_dlopen_self in
  38582. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  38583. + *) enable_dlopen_self=unknown ;;
  38584. + esac
  38585. - ac_header_compiler=no
  38586. + case $lt_cv_dlopen_self_static in
  38587. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  38588. + *) enable_dlopen_self_static=unknown ;;
  38589. + esac
  38590. fi
  38591. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38592. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38593. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  38594. -# Is the header present?
  38595. -{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  38596. -echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  38597. -cat >conftest.$ac_ext <<_ACEOF
  38598. -/* confdefs.h. */
  38599. -_ACEOF
  38600. -cat confdefs.h >>conftest.$ac_ext
  38601. -cat >>conftest.$ac_ext <<_ACEOF
  38602. -/* end confdefs.h. */
  38603. -#include <sys/mkdev.h>
  38604. -_ACEOF
  38605. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38606. -case "(($ac_try" in
  38607. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38608. - *) ac_try_echo=$ac_try;;
  38609. -esac
  38610. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38611. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38612. - ac_status=$?
  38613. - grep -v '^ *+' conftest.er1 >conftest.err
  38614. - rm -f conftest.er1
  38615. - cat conftest.err >&5
  38616. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38617. - (exit $ac_status); } >/dev/null && {
  38618. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38619. - test ! -s conftest.err
  38620. - }; then
  38621. - ac_header_preproc=yes
  38622. -else
  38623. - echo "$as_me: failed program was:" >&5
  38624. -sed 's/^/| /' conftest.$ac_ext >&5
  38625. - ac_header_preproc=no
  38626. -fi
  38627. -rm -f conftest.err conftest.$ac_ext
  38628. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38629. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  38630. -# So? What about this header?
  38631. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38632. - yes:no: )
  38633. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38634. -echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38635. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  38636. -echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  38637. - ac_header_preproc=yes
  38638. - ;;
  38639. - no:yes:* )
  38640. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  38641. -echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  38642. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  38643. -echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  38644. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  38645. -echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  38646. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  38647. -echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38648. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  38649. -echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  38650. - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  38651. -echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  38652. - ( cat <<\_ASBOX
  38653. -## ---------------------------------- ##
  38654. -## Report this to christos@astron.com ##
  38655. -## ---------------------------------- ##
  38656. -_ASBOX
  38657. - ) | sed "s/^/$as_me: WARNING: /" >&2
  38658. - ;;
  38659. -esac
  38660. -{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  38661. -echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  38662. -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  38663. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38664. -else
  38665. - ac_cv_header_sys_mkdev_h=$ac_header_preproc
  38666. -fi
  38667. -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  38668. -echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  38669. -fi
  38670. -if test $ac_cv_header_sys_mkdev_h = yes; then
  38671. -cat >>confdefs.h <<\_ACEOF
  38672. -#define MAJOR_IN_MKDEV 1
  38673. -_ACEOF
  38674. -fi
  38675. - if test $ac_cv_header_sys_mkdev_h = no; then
  38676. - if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  38677. - { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  38678. -echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  38679. -if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  38680. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38681. -fi
  38682. -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  38683. -echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  38684. -else
  38685. - # Is the header compilable?
  38686. -{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  38687. -echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  38688. -cat >conftest.$ac_ext <<_ACEOF
  38689. -/* confdefs.h. */
  38690. -_ACEOF
  38691. -cat confdefs.h >>conftest.$ac_ext
  38692. -cat >>conftest.$ac_ext <<_ACEOF
  38693. -/* end confdefs.h. */
  38694. -$ac_includes_default
  38695. -#include <sys/sysmacros.h>
  38696. -_ACEOF
  38697. -rm -f conftest.$ac_objext
  38698. -if { (ac_try="$ac_compile"
  38699. -case "(($ac_try" in
  38700. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38701. - *) ac_try_echo=$ac_try;;
  38702. -esac
  38703. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38704. - (eval "$ac_compile") 2>conftest.er1
  38705. - ac_status=$?
  38706. - grep -v '^ *+' conftest.er1 >conftest.err
  38707. - rm -f conftest.er1
  38708. - cat conftest.err >&5
  38709. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38710. - (exit $ac_status); } && {
  38711. - test -z "$ac_c_werror_flag" ||
  38712. - test ! -s conftest.err
  38713. - } && test -s conftest.$ac_objext; then
  38714. - ac_header_compiler=yes
  38715. -else
  38716. - echo "$as_me: failed program was:" >&5
  38717. -sed 's/^/| /' conftest.$ac_ext >&5
  38718. - ac_header_compiler=no
  38719. -fi
  38720. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38721. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38722. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  38723. -# Is the header present?
  38724. -{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  38725. -echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  38726. -cat >conftest.$ac_ext <<_ACEOF
  38727. -/* confdefs.h. */
  38728. -_ACEOF
  38729. -cat confdefs.h >>conftest.$ac_ext
  38730. -cat >>conftest.$ac_ext <<_ACEOF
  38731. -/* end confdefs.h. */
  38732. -#include <sys/sysmacros.h>
  38733. -_ACEOF
  38734. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38735. -case "(($ac_try" in
  38736. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38737. - *) ac_try_echo=$ac_try;;
  38738. -esac
  38739. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38740. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38741. - ac_status=$?
  38742. - grep -v '^ *+' conftest.er1 >conftest.err
  38743. - rm -f conftest.er1
  38744. - cat conftest.err >&5
  38745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38746. - (exit $ac_status); } >/dev/null && {
  38747. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38748. - test ! -s conftest.err
  38749. - }; then
  38750. - ac_header_preproc=yes
  38751. -else
  38752. - echo "$as_me: failed program was:" >&5
  38753. -sed 's/^/| /' conftest.$ac_ext >&5
  38754. - ac_header_preproc=no
  38755. -fi
  38756. -rm -f conftest.err conftest.$ac_ext
  38757. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38758. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  38759. -# So? What about this header?
  38760. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38761. - yes:no: )
  38762. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38763. -echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38764. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  38765. -echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  38766. - ac_header_preproc=yes
  38767. - ;;
  38768. - no:yes:* )
  38769. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  38770. -echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  38771. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  38772. -echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  38773. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  38774. -echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  38775. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  38776. -echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38777. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  38778. -echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  38779. - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  38780. -echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  38781. - ( cat <<\_ASBOX
  38782. -## ---------------------------------- ##
  38783. -## Report this to christos@astron.com ##
  38784. -## ---------------------------------- ##
  38785. -_ASBOX
  38786. - ) | sed "s/^/$as_me: WARNING: /" >&2
  38787. +striplib=
  38788. +old_striplib=
  38789. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  38790. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  38791. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  38792. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  38793. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  38794. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38795. +$as_echo "yes" >&6; }
  38796. +else
  38797. +# FIXME - insert some real tests, host_os isn't really good enough
  38798. + case $host_os in
  38799. + darwin*)
  38800. + if test -n "$STRIP" ; then
  38801. + striplib="$STRIP -x"
  38802. + old_striplib="$STRIP -S"
  38803. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38804. +$as_echo "yes" >&6; }
  38805. + else
  38806. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38807. +$as_echo "no" >&6; }
  38808. + fi
  38809. ;;
  38810. -esac
  38811. -{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  38812. -echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  38813. -if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  38814. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38815. -else
  38816. - ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  38817. + *)
  38818. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38819. +$as_echo "no" >&6; }
  38820. + ;;
  38821. + esac
  38822. fi
  38823. -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  38824. -echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  38825. -fi
  38826. -if test $ac_cv_header_sys_sysmacros_h = yes; then
  38827. -cat >>confdefs.h <<\_ACEOF
  38828. -#define MAJOR_IN_SYSMACROS 1
  38829. -_ACEOF
  38830. -fi
  38831. - fi
  38832. -fi
  38833. -{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  38834. -echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  38835. -if test "${ac_cv_header_sys_wait_h+set}" = set; then
  38836. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38837. -else
  38838. - cat >conftest.$ac_ext <<_ACEOF
  38839. -/* confdefs.h. */
  38840. -_ACEOF
  38841. -cat confdefs.h >>conftest.$ac_ext
  38842. -cat >>conftest.$ac_ext <<_ACEOF
  38843. -/* end confdefs.h. */
  38844. -#include <sys/types.h>
  38845. -#include <sys/wait.h>
  38846. -#ifndef WEXITSTATUS
  38847. -# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  38848. -#endif
  38849. -#ifndef WIFEXITED
  38850. -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  38851. -#endif
  38852. -int
  38853. -main ()
  38854. -{
  38855. - int s;
  38856. - wait (&s);
  38857. - s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  38858. - ;
  38859. - return 0;
  38860. -}
  38861. -_ACEOF
  38862. -rm -f conftest.$ac_objext
  38863. -if { (ac_try="$ac_compile"
  38864. -case "(($ac_try" in
  38865. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38866. - *) ac_try_echo=$ac_try;;
  38867. -esac
  38868. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38869. - (eval "$ac_compile") 2>conftest.er1
  38870. - ac_status=$?
  38871. - grep -v '^ *+' conftest.er1 >conftest.err
  38872. - rm -f conftest.er1
  38873. - cat conftest.err >&5
  38874. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38875. - (exit $ac_status); } && {
  38876. - test -z "$ac_c_werror_flag" ||
  38877. - test ! -s conftest.err
  38878. - } && test -s conftest.$ac_objext; then
  38879. - ac_cv_header_sys_wait_h=yes
  38880. -else
  38881. - echo "$as_me: failed program was:" >&5
  38882. -sed 's/^/| /' conftest.$ac_ext >&5
  38883. - ac_cv_header_sys_wait_h=no
  38884. -fi
  38885. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38886. -fi
  38887. -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  38888. -echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  38889. -if test $ac_cv_header_sys_wait_h = yes; then
  38890. -cat >>confdefs.h <<\_ACEOF
  38891. -#define HAVE_SYS_WAIT_H 1
  38892. -_ACEOF
  38893. -fi
  38894. + # Report which library types will actually be built
  38895. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  38896. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  38897. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  38898. +$as_echo "$can_build_shared" >&6; }
  38899. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  38900. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  38901. + test "$can_build_shared" = "no" && enable_shared=no
  38902. + # On AIX, shared libraries and static libraries use the same namespace, and
  38903. + # are all built from PIC.
  38904. + case $host_os in
  38905. + aix3*)
  38906. + test "$enable_shared" = yes && enable_static=no
  38907. + if test -n "$RANLIB"; then
  38908. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  38909. + postinstall_cmds='$RANLIB $lib'
  38910. + fi
  38911. + ;;
  38912. + aix[4-9]*)
  38913. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  38914. + test "$enable_shared" = yes && enable_static=no
  38915. + fi
  38916. + ;;
  38917. + esac
  38918. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  38919. +$as_echo "$enable_shared" >&6; }
  38920. +
  38921. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  38922. +$as_echo_n "checking whether to build static libraries... " >&6; }
  38923. + # Make sure either enable_shared or enable_static is yes.
  38924. + test "$enable_shared" = yes || enable_static=yes
  38925. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  38926. +$as_echo "$enable_static" >&6; }
  38927. -for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  38928. -do
  38929. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  38930. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38931. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  38932. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  38933. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  38934. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38935. -fi
  38936. -ac_res=`eval echo '${'$as_ac_Header'}'`
  38937. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38938. -echo "${ECHO_T}$ac_res" >&6; }
  38939. -else
  38940. - # Is the header compilable?
  38941. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  38942. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  38943. -cat >conftest.$ac_ext <<_ACEOF
  38944. -/* confdefs.h. */
  38945. -_ACEOF
  38946. -cat confdefs.h >>conftest.$ac_ext
  38947. -cat >>conftest.$ac_ext <<_ACEOF
  38948. -/* end confdefs.h. */
  38949. -$ac_includes_default
  38950. -#include <$ac_header>
  38951. -_ACEOF
  38952. -rm -f conftest.$ac_objext
  38953. -if { (ac_try="$ac_compile"
  38954. -case "(($ac_try" in
  38955. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38956. - *) ac_try_echo=$ac_try;;
  38957. -esac
  38958. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38959. - (eval "$ac_compile") 2>conftest.er1
  38960. - ac_status=$?
  38961. - grep -v '^ *+' conftest.er1 >conftest.err
  38962. - rm -f conftest.er1
  38963. - cat conftest.err >&5
  38964. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38965. - (exit $ac_status); } && {
  38966. - test -z "$ac_c_werror_flag" ||
  38967. - test ! -s conftest.err
  38968. - } && test -s conftest.$ac_objext; then
  38969. - ac_header_compiler=yes
  38970. -else
  38971. - echo "$as_me: failed program was:" >&5
  38972. -sed 's/^/| /' conftest.$ac_ext >&5
  38973. - ac_header_compiler=no
  38974. fi
  38975. +ac_ext=c
  38976. +ac_cpp='$CPP $CPPFLAGS'
  38977. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38978. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38979. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38980. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38981. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38982. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  38983. +CC="$lt_save_CC"
  38984. -# Is the header present?
  38985. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  38986. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  38987. -cat >conftest.$ac_ext <<_ACEOF
  38988. -/* confdefs.h. */
  38989. -_ACEOF
  38990. -cat confdefs.h >>conftest.$ac_ext
  38991. -cat >>conftest.$ac_ext <<_ACEOF
  38992. -/* end confdefs.h. */
  38993. -#include <$ac_header>
  38994. -_ACEOF
  38995. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38996. -case "(($ac_try" in
  38997. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38998. - *) ac_try_echo=$ac_try;;
  38999. -esac
  39000. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39001. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39002. - ac_status=$?
  39003. - grep -v '^ *+' conftest.er1 >conftest.err
  39004. - rm -f conftest.er1
  39005. - cat conftest.err >&5
  39006. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39007. - (exit $ac_status); } >/dev/null && {
  39008. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39009. - test ! -s conftest.err
  39010. - }; then
  39011. - ac_header_preproc=yes
  39012. -else
  39013. - echo "$as_me: failed program was:" >&5
  39014. -sed 's/^/| /' conftest.$ac_ext >&5
  39015. - ac_header_preproc=no
  39016. -fi
  39017. -rm -f conftest.err conftest.$ac_ext
  39018. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39019. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39020. -# So? What about this header?
  39021. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39022. - yes:no: )
  39023. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39024. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39025. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39026. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39027. - ac_header_preproc=yes
  39028. - ;;
  39029. - no:yes:* )
  39030. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39031. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39032. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39033. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39034. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39035. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39036. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39037. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39038. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39039. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39040. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39041. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39042. - ( cat <<\_ASBOX
  39043. -## ---------------------------------- ##
  39044. -## Report this to christos@astron.com ##
  39045. -## ---------------------------------- ##
  39046. -_ASBOX
  39047. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39048. - ;;
  39049. -esac
  39050. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39051. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39052. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39053. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39054. -else
  39055. - eval "$as_ac_Header=\$ac_header_preproc"
  39056. -fi
  39057. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39058. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39059. -echo "${ECHO_T}$ac_res" >&6; }
  39060. -fi
  39061. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39062. - cat >>confdefs.h <<_ACEOF
  39063. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39064. -_ACEOF
  39065. -fi
  39066. -done
  39067. -for ac_header in utime.h wchar.h wctype.h limits.h
  39068. -do
  39069. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39070. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39071. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  39072. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39073. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39074. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39075. -fi
  39076. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39077. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39078. -echo "${ECHO_T}$ac_res" >&6; }
  39079. +
  39080. + ac_config_commands="$ac_config_commands libtool"
  39081. +
  39082. +
  39083. +
  39084. +
  39085. +# Only expand once:
  39086. +
  39087. +
  39088. +
  39089. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  39090. +$as_echo_n "checking for ANSI C header files... " >&6; }
  39091. +if test "${ac_cv_header_stdc+set}" = set; then :
  39092. + $as_echo_n "(cached) " >&6
  39093. else
  39094. - # Is the header compilable?
  39095. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39096. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  39097. -cat >conftest.$ac_ext <<_ACEOF
  39098. -/* confdefs.h. */
  39099. -_ACEOF
  39100. -cat confdefs.h >>conftest.$ac_ext
  39101. -cat >>conftest.$ac_ext <<_ACEOF
  39102. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39103. /* end confdefs.h. */
  39104. -$ac_includes_default
  39105. -#include <$ac_header>
  39106. +#include <stdlib.h>
  39107. +#include <stdarg.h>
  39108. +#include <string.h>
  39109. +#include <float.h>
  39110. +
  39111. +int
  39112. +main ()
  39113. +{
  39114. +
  39115. + ;
  39116. + return 0;
  39117. +}
  39118. _ACEOF
  39119. -rm -f conftest.$ac_objext
  39120. -if { (ac_try="$ac_compile"
  39121. -case "(($ac_try" in
  39122. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39123. - *) ac_try_echo=$ac_try;;
  39124. -esac
  39125. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39126. - (eval "$ac_compile") 2>conftest.er1
  39127. - ac_status=$?
  39128. - grep -v '^ *+' conftest.er1 >conftest.err
  39129. - rm -f conftest.er1
  39130. - cat conftest.err >&5
  39131. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39132. - (exit $ac_status); } && {
  39133. - test -z "$ac_c_werror_flag" ||
  39134. - test ! -s conftest.err
  39135. - } && test -s conftest.$ac_objext; then
  39136. - ac_header_compiler=yes
  39137. +if ac_fn_c_try_compile "$LINENO"; then :
  39138. + ac_cv_header_stdc=yes
  39139. else
  39140. - echo "$as_me: failed program was:" >&5
  39141. -sed 's/^/| /' conftest.$ac_ext >&5
  39142. -
  39143. - ac_header_compiler=no
  39144. + ac_cv_header_stdc=no
  39145. fi
  39146. -
  39147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39148. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39149. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39150. -# Is the header present?
  39151. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39152. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39153. -cat >conftest.$ac_ext <<_ACEOF
  39154. -/* confdefs.h. */
  39155. -_ACEOF
  39156. -cat confdefs.h >>conftest.$ac_ext
  39157. -cat >>conftest.$ac_ext <<_ACEOF
  39158. +if test $ac_cv_header_stdc = yes; then
  39159. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  39160. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39161. /* end confdefs.h. */
  39162. -#include <$ac_header>
  39163. -_ACEOF
  39164. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39165. -case "(($ac_try" in
  39166. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39167. - *) ac_try_echo=$ac_try;;
  39168. -esac
  39169. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39170. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39171. - ac_status=$?
  39172. - grep -v '^ *+' conftest.er1 >conftest.err
  39173. - rm -f conftest.er1
  39174. - cat conftest.err >&5
  39175. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39176. - (exit $ac_status); } >/dev/null && {
  39177. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39178. - test ! -s conftest.err
  39179. - }; then
  39180. - ac_header_preproc=yes
  39181. -else
  39182. - echo "$as_me: failed program was:" >&5
  39183. -sed 's/^/| /' conftest.$ac_ext >&5
  39184. -
  39185. - ac_header_preproc=no
  39186. -fi
  39187. +#include <string.h>
  39188. -rm -f conftest.err conftest.$ac_ext
  39189. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39190. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39191. +_ACEOF
  39192. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  39193. + $EGREP "memchr" >/dev/null 2>&1; then :
  39194. -# So? What about this header?
  39195. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39196. - yes:no: )
  39197. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39198. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39199. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39200. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39201. - ac_header_preproc=yes
  39202. - ;;
  39203. - no:yes:* )
  39204. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39205. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39206. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39207. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39208. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39209. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39210. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39211. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39212. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39213. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39214. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39215. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39216. - ( cat <<\_ASBOX
  39217. -## ---------------------------------- ##
  39218. -## Report this to christos@astron.com ##
  39219. -## ---------------------------------- ##
  39220. -_ASBOX
  39221. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39222. - ;;
  39223. -esac
  39224. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39225. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39226. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39227. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39228. else
  39229. - eval "$as_ac_Header=\$ac_header_preproc"
  39230. + ac_cv_header_stdc=no
  39231. fi
  39232. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39233. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39234. -echo "${ECHO_T}$ac_res" >&6; }
  39235. +rm -f conftest*
  39236. fi
  39237. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39238. - cat >>confdefs.h <<_ACEOF
  39239. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39240. -_ACEOF
  39241. -fi
  39242. +if test $ac_cv_header_stdc = yes; then
  39243. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  39244. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39245. +/* end confdefs.h. */
  39246. +#include <stdlib.h>
  39247. -done
  39248. +_ACEOF
  39249. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  39250. + $EGREP "free" >/dev/null 2>&1; then :
  39251. +else
  39252. + ac_cv_header_stdc=no
  39253. +fi
  39254. +rm -f conftest*
  39255. +fi
  39256. -for ac_header in getopt.h err.h
  39257. -do
  39258. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39259. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39260. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  39261. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39262. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39263. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39264. -fi
  39265. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39266. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39267. -echo "${ECHO_T}$ac_res" >&6; }
  39268. +if test $ac_cv_header_stdc = yes; then
  39269. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  39270. + if test "$cross_compiling" = yes; then :
  39271. + :
  39272. else
  39273. - # Is the header compilable?
  39274. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39275. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  39276. -cat >conftest.$ac_ext <<_ACEOF
  39277. -/* confdefs.h. */
  39278. -_ACEOF
  39279. -cat confdefs.h >>conftest.$ac_ext
  39280. -cat >>conftest.$ac_ext <<_ACEOF
  39281. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39282. /* end confdefs.h. */
  39283. -$ac_includes_default
  39284. -#include <$ac_header>
  39285. +#include <ctype.h>
  39286. +#include <stdlib.h>
  39287. +#if ((' ' & 0x0FF) == 0x020)
  39288. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  39289. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  39290. +#else
  39291. +# define ISLOWER(c) \
  39292. + (('a' <= (c) && (c) <= 'i') \
  39293. + || ('j' <= (c) && (c) <= 'r') \
  39294. + || ('s' <= (c) && (c) <= 'z'))
  39295. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  39296. +#endif
  39297. +
  39298. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  39299. +int
  39300. +main ()
  39301. +{
  39302. + int i;
  39303. + for (i = 0; i < 256; i++)
  39304. + if (XOR (islower (i), ISLOWER (i))
  39305. + || toupper (i) != TOUPPER (i))
  39306. + return 2;
  39307. + return 0;
  39308. +}
  39309. _ACEOF
  39310. -rm -f conftest.$ac_objext
  39311. -if { (ac_try="$ac_compile"
  39312. -case "(($ac_try" in
  39313. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39314. - *) ac_try_echo=$ac_try;;
  39315. -esac
  39316. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39317. - (eval "$ac_compile") 2>conftest.er1
  39318. - ac_status=$?
  39319. - grep -v '^ *+' conftest.er1 >conftest.err
  39320. - rm -f conftest.er1
  39321. - cat conftest.err >&5
  39322. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39323. - (exit $ac_status); } && {
  39324. - test -z "$ac_c_werror_flag" ||
  39325. - test ! -s conftest.err
  39326. - } && test -s conftest.$ac_objext; then
  39327. - ac_header_compiler=yes
  39328. +if ac_fn_c_try_run "$LINENO"; then :
  39329. +
  39330. else
  39331. - echo "$as_me: failed program was:" >&5
  39332. -sed 's/^/| /' conftest.$ac_ext >&5
  39333. + ac_cv_header_stdc=no
  39334. +fi
  39335. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39336. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39337. +fi
  39338. - ac_header_compiler=no
  39339. fi
  39340. +fi
  39341. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  39342. +$as_echo "$ac_cv_header_stdc" >&6; }
  39343. +if test $ac_cv_header_stdc = yes; then
  39344. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39345. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39346. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39347. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  39348. -# Is the header present?
  39349. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39350. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39351. -cat >conftest.$ac_ext <<_ACEOF
  39352. -/* confdefs.h. */
  39353. -_ACEOF
  39354. -cat confdefs.h >>conftest.$ac_ext
  39355. -cat >>conftest.$ac_ext <<_ACEOF
  39356. +fi
  39357. +
  39358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  39359. +$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  39360. +if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
  39361. + $as_echo_n "(cached) " >&6
  39362. +else
  39363. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39364. /* end confdefs.h. */
  39365. -#include <$ac_header>
  39366. +#include <sys/types.h>
  39367. +int
  39368. +main ()
  39369. +{
  39370. +return makedev(0, 0);
  39371. + ;
  39372. + return 0;
  39373. +}
  39374. _ACEOF
  39375. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39376. -case "(($ac_try" in
  39377. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39378. - *) ac_try_echo=$ac_try;;
  39379. -esac
  39380. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39381. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39382. - ac_status=$?
  39383. - grep -v '^ *+' conftest.er1 >conftest.err
  39384. - rm -f conftest.er1
  39385. - cat conftest.err >&5
  39386. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39387. - (exit $ac_status); } >/dev/null && {
  39388. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39389. - test ! -s conftest.err
  39390. - }; then
  39391. - ac_header_preproc=yes
  39392. +if ac_fn_c_try_link "$LINENO"; then :
  39393. + ac_cv_header_sys_types_h_makedev=yes
  39394. else
  39395. - echo "$as_me: failed program was:" >&5
  39396. -sed 's/^/| /' conftest.$ac_ext >&5
  39397. + ac_cv_header_sys_types_h_makedev=no
  39398. +fi
  39399. +rm -f core conftest.err conftest.$ac_objext \
  39400. + conftest$ac_exeext conftest.$ac_ext
  39401. - ac_header_preproc=no
  39402. fi
  39403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  39404. +$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  39405. -rm -f conftest.err conftest.$ac_ext
  39406. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39407. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39408. +if test $ac_cv_header_sys_types_h_makedev = no; then
  39409. +ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  39410. +if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
  39411. -# So? What about this header?
  39412. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39413. - yes:no: )
  39414. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39415. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39416. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39417. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39418. - ac_header_preproc=yes
  39419. - ;;
  39420. - no:yes:* )
  39421. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39422. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39423. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39424. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39425. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39426. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39427. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39428. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39429. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39430. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39431. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39432. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39433. - ( cat <<\_ASBOX
  39434. -## ---------------------------------- ##
  39435. -## Report this to christos@astron.com ##
  39436. -## ---------------------------------- ##
  39437. -_ASBOX
  39438. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39439. - ;;
  39440. -esac
  39441. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39442. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39443. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39444. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39445. -else
  39446. - eval "$as_ac_Header=\$ac_header_preproc"
  39447. -fi
  39448. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39449. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39450. -echo "${ECHO_T}$ac_res" >&6; }
  39451. +$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  39452. fi
  39453. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39454. - cat >>confdefs.h <<_ACEOF
  39455. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39456. -_ACEOF
  39457. -fi
  39458. -done
  39459. + if test $ac_cv_header_sys_mkdev_h = no; then
  39460. + ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  39461. +if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
  39462. +$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  39463. +fi
  39464. + fi
  39465. +fi
  39466. -for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  39467. -do
  39468. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39469. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39470. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  39471. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39472. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39473. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39474. -fi
  39475. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39476. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39477. -echo "${ECHO_T}$ac_res" >&6; }
  39478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  39479. +$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  39480. +if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  39481. + $as_echo_n "(cached) " >&6
  39482. else
  39483. - # Is the header compilable?
  39484. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39485. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  39486. -cat >conftest.$ac_ext <<_ACEOF
  39487. -/* confdefs.h. */
  39488. -_ACEOF
  39489. -cat confdefs.h >>conftest.$ac_ext
  39490. -cat >>conftest.$ac_ext <<_ACEOF
  39491. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39492. /* end confdefs.h. */
  39493. -$ac_includes_default
  39494. -#include <$ac_header>
  39495. +#include <sys/types.h>
  39496. +#include <sys/wait.h>
  39497. +#ifndef WEXITSTATUS
  39498. +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  39499. +#endif
  39500. +#ifndef WIFEXITED
  39501. +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  39502. +#endif
  39503. +
  39504. +int
  39505. +main ()
  39506. +{
  39507. + int s;
  39508. + wait (&s);
  39509. + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  39510. + ;
  39511. + return 0;
  39512. +}
  39513. _ACEOF
  39514. -rm -f conftest.$ac_objext
  39515. -if { (ac_try="$ac_compile"
  39516. -case "(($ac_try" in
  39517. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39518. - *) ac_try_echo=$ac_try;;
  39519. -esac
  39520. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39521. - (eval "$ac_compile") 2>conftest.er1
  39522. - ac_status=$?
  39523. - grep -v '^ *+' conftest.er1 >conftest.err
  39524. - rm -f conftest.er1
  39525. - cat conftest.err >&5
  39526. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39527. - (exit $ac_status); } && {
  39528. - test -z "$ac_c_werror_flag" ||
  39529. - test ! -s conftest.err
  39530. - } && test -s conftest.$ac_objext; then
  39531. - ac_header_compiler=yes
  39532. +if ac_fn_c_try_compile "$LINENO"; then :
  39533. + ac_cv_header_sys_wait_h=yes
  39534. else
  39535. - echo "$as_me: failed program was:" >&5
  39536. -sed 's/^/| /' conftest.$ac_ext >&5
  39537. -
  39538. - ac_header_compiler=no
  39539. + ac_cv_header_sys_wait_h=no
  39540. fi
  39541. -
  39542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39543. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39544. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39545. -
  39546. -# Is the header present?
  39547. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39548. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39549. -cat >conftest.$ac_ext <<_ACEOF
  39550. -/* confdefs.h. */
  39551. -_ACEOF
  39552. -cat confdefs.h >>conftest.$ac_ext
  39553. -cat >>conftest.$ac_ext <<_ACEOF
  39554. -/* end confdefs.h. */
  39555. -#include <$ac_header>
  39556. -_ACEOF
  39557. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39558. -case "(($ac_try" in
  39559. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39560. - *) ac_try_echo=$ac_try;;
  39561. -esac
  39562. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39563. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39564. - ac_status=$?
  39565. - grep -v '^ *+' conftest.er1 >conftest.err
  39566. - rm -f conftest.er1
  39567. - cat conftest.err >&5
  39568. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39569. - (exit $ac_status); } >/dev/null && {
  39570. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39571. - test ! -s conftest.err
  39572. - }; then
  39573. - ac_header_preproc=yes
  39574. -else
  39575. - echo "$as_me: failed program was:" >&5
  39576. -sed 's/^/| /' conftest.$ac_ext >&5
  39577. -
  39578. - ac_header_preproc=no
  39579. fi
  39580. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  39581. +$as_echo "$ac_cv_header_sys_wait_h" >&6; }
  39582. +if test $ac_cv_header_sys_wait_h = yes; then
  39583. -rm -f conftest.err conftest.$ac_ext
  39584. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39585. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39586. +$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  39587. -# So? What about this header?
  39588. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39589. - yes:no: )
  39590. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39591. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39592. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39593. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39594. - ac_header_preproc=yes
  39595. - ;;
  39596. - no:yes:* )
  39597. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39598. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39599. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39600. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39601. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39602. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39603. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39604. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39605. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39606. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39607. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39608. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39609. - ( cat <<\_ASBOX
  39610. -## ---------------------------------- ##
  39611. -## Report this to christos@astron.com ##
  39612. -## ---------------------------------- ##
  39613. -_ASBOX
  39614. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39615. - ;;
  39616. -esac
  39617. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39618. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39619. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39620. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39621. -else
  39622. - eval "$as_ac_Header=\$ac_header_preproc"
  39623. fi
  39624. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39625. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39626. -echo "${ECHO_T}$ac_res" >&6; }
  39627. -fi
  39628. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39629. +for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  39630. +do :
  39631. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39632. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  39633. +eval as_val=\$$as_ac_Header
  39634. + if test "x$as_val" = x""yes; then :
  39635. cat >>confdefs.h <<_ACEOF
  39636. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39637. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39638. _ACEOF
  39639. fi
  39640. done
  39641. -
  39642. -for ac_header in zlib.h
  39643. -do
  39644. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39645. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39646. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  39647. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39648. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39649. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39650. -fi
  39651. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39652. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39653. -echo "${ECHO_T}$ac_res" >&6; }
  39654. -else
  39655. - # Is the header compilable?
  39656. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  39657. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  39658. -cat >conftest.$ac_ext <<_ACEOF
  39659. -/* confdefs.h. */
  39660. -_ACEOF
  39661. -cat confdefs.h >>conftest.$ac_ext
  39662. -cat >>conftest.$ac_ext <<_ACEOF
  39663. -/* end confdefs.h. */
  39664. -$ac_includes_default
  39665. -#include <$ac_header>
  39666. +for ac_header in utime.h wchar.h wctype.h limits.h
  39667. +do :
  39668. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39669. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  39670. +eval as_val=\$$as_ac_Header
  39671. + if test "x$as_val" = x""yes; then :
  39672. + cat >>confdefs.h <<_ACEOF
  39673. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39674. _ACEOF
  39675. -rm -f conftest.$ac_objext
  39676. -if { (ac_try="$ac_compile"
  39677. -case "(($ac_try" in
  39678. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39679. - *) ac_try_echo=$ac_try;;
  39680. -esac
  39681. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39682. - (eval "$ac_compile") 2>conftest.er1
  39683. - ac_status=$?
  39684. - grep -v '^ *+' conftest.er1 >conftest.err
  39685. - rm -f conftest.er1
  39686. - cat conftest.err >&5
  39687. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39688. - (exit $ac_status); } && {
  39689. - test -z "$ac_c_werror_flag" ||
  39690. - test ! -s conftest.err
  39691. - } && test -s conftest.$ac_objext; then
  39692. - ac_header_compiler=yes
  39693. -else
  39694. - echo "$as_me: failed program was:" >&5
  39695. -sed 's/^/| /' conftest.$ac_ext >&5
  39696. - ac_header_compiler=no
  39697. fi
  39698. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39699. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39700. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  39701. +done
  39702. -# Is the header present?
  39703. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  39704. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  39705. -cat >conftest.$ac_ext <<_ACEOF
  39706. -/* confdefs.h. */
  39707. -_ACEOF
  39708. -cat confdefs.h >>conftest.$ac_ext
  39709. -cat >>conftest.$ac_ext <<_ACEOF
  39710. -/* end confdefs.h. */
  39711. -#include <$ac_header>
  39712. +for ac_header in getopt.h err.h
  39713. +do :
  39714. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39715. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  39716. +eval as_val=\$$as_ac_Header
  39717. + if test "x$as_val" = x""yes; then :
  39718. + cat >>confdefs.h <<_ACEOF
  39719. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39720. _ACEOF
  39721. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  39722. -case "(($ac_try" in
  39723. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39724. - *) ac_try_echo=$ac_try;;
  39725. -esac
  39726. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39727. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39728. - ac_status=$?
  39729. - grep -v '^ *+' conftest.er1 >conftest.err
  39730. - rm -f conftest.er1
  39731. - cat conftest.err >&5
  39732. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39733. - (exit $ac_status); } >/dev/null && {
  39734. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39735. - test ! -s conftest.err
  39736. - }; then
  39737. - ac_header_preproc=yes
  39738. -else
  39739. - echo "$as_me: failed program was:" >&5
  39740. -sed 's/^/| /' conftest.$ac_ext >&5
  39741. - ac_header_preproc=no
  39742. fi
  39743. -rm -f conftest.err conftest.$ac_ext
  39744. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39745. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  39746. +done
  39747. -# So? What about this header?
  39748. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39749. - yes:no: )
  39750. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  39751. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39752. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  39753. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  39754. - ac_header_preproc=yes
  39755. - ;;
  39756. - no:yes:* )
  39757. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  39758. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  39759. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  39760. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  39761. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  39762. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  39763. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  39764. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  39765. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  39766. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  39767. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  39768. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  39769. - ( cat <<\_ASBOX
  39770. -## ---------------------------------- ##
  39771. -## Report this to christos@astron.com ##
  39772. -## ---------------------------------- ##
  39773. -_ASBOX
  39774. - ) | sed "s/^/$as_me: WARNING: /" >&2
  39775. - ;;
  39776. -esac
  39777. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  39778. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  39779. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  39780. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39781. -else
  39782. - eval "$as_ac_Header=\$ac_header_preproc"
  39783. -fi
  39784. -ac_res=`eval echo '${'$as_ac_Header'}'`
  39785. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  39786. -echo "${ECHO_T}$ac_res" >&6; }
  39787. +for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  39788. +do :
  39789. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  39790. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  39791. +eval as_val=\$$as_ac_Header
  39792. + if test "x$as_val" = x""yes; then :
  39793. + cat >>confdefs.h <<_ACEOF
  39794. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39795. +_ACEOF
  39796. fi
  39797. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  39798. +
  39799. +done
  39800. +
  39801. +for ac_header in zlib.h
  39802. +do :
  39803. + ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  39804. +if test "x$ac_cv_header_zlib_h" = x""yes; then :
  39805. cat >>confdefs.h <<_ACEOF
  39806. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  39807. +#define HAVE_ZLIB_H 1
  39808. _ACEOF
  39809. fi
  39810. @@ -21339,16 +11932,12 @@
  39811. done
  39812. -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  39813. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  39814. -if test "${ac_cv_c_const+set}" = set; then
  39815. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39816. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  39817. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  39818. +if test "${ac_cv_c_const+set}" = set; then :
  39819. + $as_echo_n "(cached) " >&6
  39820. else
  39821. - cat >conftest.$ac_ext <<_ACEOF
  39822. -/* confdefs.h. */
  39823. -_ACEOF
  39824. -cat confdefs.h >>conftest.$ac_ext
  39825. -cat >>conftest.$ac_ext <<_ACEOF
  39826. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39827. /* end confdefs.h. */
  39828. int
  39829. @@ -21396,275 +11985,57 @@
  39830. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  39831. struct s { int j; const int *ap[3]; };
  39832. struct s *b; b->j = 5;
  39833. - }
  39834. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  39835. - const int foo = 10;
  39836. - if (!foo) return 0;
  39837. - }
  39838. - return !cs[0] && !zero.x;
  39839. -#endif
  39840. -
  39841. - ;
  39842. - return 0;
  39843. -}
  39844. -_ACEOF
  39845. -rm -f conftest.$ac_objext
  39846. -if { (ac_try="$ac_compile"
  39847. -case "(($ac_try" in
  39848. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39849. - *) ac_try_echo=$ac_try;;
  39850. -esac
  39851. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39852. - (eval "$ac_compile") 2>conftest.er1
  39853. - ac_status=$?
  39854. - grep -v '^ *+' conftest.er1 >conftest.err
  39855. - rm -f conftest.er1
  39856. - cat conftest.err >&5
  39857. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39858. - (exit $ac_status); } && {
  39859. - test -z "$ac_c_werror_flag" ||
  39860. - test ! -s conftest.err
  39861. - } && test -s conftest.$ac_objext; then
  39862. - ac_cv_c_const=yes
  39863. -else
  39864. - echo "$as_me: failed program was:" >&5
  39865. -sed 's/^/| /' conftest.$ac_ext >&5
  39866. -
  39867. - ac_cv_c_const=no
  39868. -fi
  39869. -
  39870. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39871. -fi
  39872. -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  39873. -echo "${ECHO_T}$ac_cv_c_const" >&6; }
  39874. -if test $ac_cv_c_const = no; then
  39875. -
  39876. -cat >>confdefs.h <<\_ACEOF
  39877. -#define const
  39878. -_ACEOF
  39879. -
  39880. -fi
  39881. -
  39882. -{ echo "$as_me:$LINENO: checking for off_t" >&5
  39883. -echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  39884. -if test "${ac_cv_type_off_t+set}" = set; then
  39885. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39886. -else
  39887. - cat >conftest.$ac_ext <<_ACEOF
  39888. -/* confdefs.h. */
  39889. -_ACEOF
  39890. -cat confdefs.h >>conftest.$ac_ext
  39891. -cat >>conftest.$ac_ext <<_ACEOF
  39892. -/* end confdefs.h. */
  39893. -$ac_includes_default
  39894. -typedef off_t ac__type_new_;
  39895. -int
  39896. -main ()
  39897. -{
  39898. -if ((ac__type_new_ *) 0)
  39899. - return 0;
  39900. -if (sizeof (ac__type_new_))
  39901. - return 0;
  39902. - ;
  39903. - return 0;
  39904. -}
  39905. -_ACEOF
  39906. -rm -f conftest.$ac_objext
  39907. -if { (ac_try="$ac_compile"
  39908. -case "(($ac_try" in
  39909. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39910. - *) ac_try_echo=$ac_try;;
  39911. -esac
  39912. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39913. - (eval "$ac_compile") 2>conftest.er1
  39914. - ac_status=$?
  39915. - grep -v '^ *+' conftest.er1 >conftest.err
  39916. - rm -f conftest.er1
  39917. - cat conftest.err >&5
  39918. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39919. - (exit $ac_status); } && {
  39920. - test -z "$ac_c_werror_flag" ||
  39921. - test ! -s conftest.err
  39922. - } && test -s conftest.$ac_objext; then
  39923. - ac_cv_type_off_t=yes
  39924. -else
  39925. - echo "$as_me: failed program was:" >&5
  39926. -sed 's/^/| /' conftest.$ac_ext >&5
  39927. -
  39928. - ac_cv_type_off_t=no
  39929. -fi
  39930. -
  39931. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39932. -fi
  39933. -{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  39934. -echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  39935. -if test $ac_cv_type_off_t = yes; then
  39936. - :
  39937. -else
  39938. -
  39939. -cat >>confdefs.h <<_ACEOF
  39940. -#define off_t long int
  39941. -_ACEOF
  39942. -
  39943. -fi
  39944. + }
  39945. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  39946. + const int foo = 10;
  39947. + if (!foo) return 0;
  39948. + }
  39949. + return !cs[0] && !zero.x;
  39950. +#endif
  39951. -{ echo "$as_me:$LINENO: checking for size_t" >&5
  39952. -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  39953. -if test "${ac_cv_type_size_t+set}" = set; then
  39954. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39955. -else
  39956. - cat >conftest.$ac_ext <<_ACEOF
  39957. -/* confdefs.h. */
  39958. -_ACEOF
  39959. -cat confdefs.h >>conftest.$ac_ext
  39960. -cat >>conftest.$ac_ext <<_ACEOF
  39961. -/* end confdefs.h. */
  39962. -$ac_includes_default
  39963. -typedef size_t ac__type_new_;
  39964. -int
  39965. -main ()
  39966. -{
  39967. -if ((ac__type_new_ *) 0)
  39968. - return 0;
  39969. -if (sizeof (ac__type_new_))
  39970. - return 0;
  39971. ;
  39972. return 0;
  39973. }
  39974. _ACEOF
  39975. -rm -f conftest.$ac_objext
  39976. -if { (ac_try="$ac_compile"
  39977. -case "(($ac_try" in
  39978. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39979. - *) ac_try_echo=$ac_try;;
  39980. -esac
  39981. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39982. - (eval "$ac_compile") 2>conftest.er1
  39983. - ac_status=$?
  39984. - grep -v '^ *+' conftest.er1 >conftest.err
  39985. - rm -f conftest.er1
  39986. - cat conftest.err >&5
  39987. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39988. - (exit $ac_status); } && {
  39989. - test -z "$ac_c_werror_flag" ||
  39990. - test ! -s conftest.err
  39991. - } && test -s conftest.$ac_objext; then
  39992. - ac_cv_type_size_t=yes
  39993. +if ac_fn_c_try_compile "$LINENO"; then :
  39994. + ac_cv_c_const=yes
  39995. else
  39996. - echo "$as_me: failed program was:" >&5
  39997. -sed 's/^/| /' conftest.$ac_ext >&5
  39998. -
  39999. - ac_cv_type_size_t=no
  40000. + ac_cv_c_const=no
  40001. fi
  40002. -
  40003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40004. fi
  40005. -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  40006. -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  40007. -if test $ac_cv_type_size_t = yes; then
  40008. - :
  40009. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  40010. +$as_echo "$ac_cv_c_const" >&6; }
  40011. +if test $ac_cv_c_const = no; then
  40012. +
  40013. +$as_echo "#define const /**/" >>confdefs.h
  40014. +
  40015. +fi
  40016. +
  40017. +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  40018. +if test "x$ac_cv_type_off_t" = x""yes; then :
  40019. +
  40020. else
  40021. cat >>confdefs.h <<_ACEOF
  40022. -#define size_t unsigned int
  40023. +#define off_t long int
  40024. _ACEOF
  40025. fi
  40026. -{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  40027. -echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
  40028. -if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  40029. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40030. -else
  40031. - cat >conftest.$ac_ext <<_ACEOF
  40032. -/* confdefs.h. */
  40033. -_ACEOF
  40034. -cat confdefs.h >>conftest.$ac_ext
  40035. -cat >>conftest.$ac_ext <<_ACEOF
  40036. -/* end confdefs.h. */
  40037. -$ac_includes_default
  40038. -int
  40039. -main ()
  40040. -{
  40041. -static struct stat ac_aggr;
  40042. -if (ac_aggr.st_rdev)
  40043. -return 0;
  40044. - ;
  40045. - return 0;
  40046. -}
  40047. -_ACEOF
  40048. -rm -f conftest.$ac_objext
  40049. -if { (ac_try="$ac_compile"
  40050. -case "(($ac_try" in
  40051. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40052. - *) ac_try_echo=$ac_try;;
  40053. -esac
  40054. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40055. - (eval "$ac_compile") 2>conftest.er1
  40056. - ac_status=$?
  40057. - grep -v '^ *+' conftest.er1 >conftest.err
  40058. - rm -f conftest.er1
  40059. - cat conftest.err >&5
  40060. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40061. - (exit $ac_status); } && {
  40062. - test -z "$ac_c_werror_flag" ||
  40063. - test ! -s conftest.err
  40064. - } && test -s conftest.$ac_objext; then
  40065. - ac_cv_member_struct_stat_st_rdev=yes
  40066. -else
  40067. - echo "$as_me: failed program was:" >&5
  40068. -sed 's/^/| /' conftest.$ac_ext >&5
  40069. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  40070. +if test "x$ac_cv_type_size_t" = x""yes; then :
  40071. - cat >conftest.$ac_ext <<_ACEOF
  40072. -/* confdefs.h. */
  40073. -_ACEOF
  40074. -cat confdefs.h >>conftest.$ac_ext
  40075. -cat >>conftest.$ac_ext <<_ACEOF
  40076. -/* end confdefs.h. */
  40077. -$ac_includes_default
  40078. -int
  40079. -main ()
  40080. -{
  40081. -static struct stat ac_aggr;
  40082. -if (sizeof ac_aggr.st_rdev)
  40083. -return 0;
  40084. - ;
  40085. - return 0;
  40086. -}
  40087. -_ACEOF
  40088. -rm -f conftest.$ac_objext
  40089. -if { (ac_try="$ac_compile"
  40090. -case "(($ac_try" in
  40091. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40092. - *) ac_try_echo=$ac_try;;
  40093. -esac
  40094. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40095. - (eval "$ac_compile") 2>conftest.er1
  40096. - ac_status=$?
  40097. - grep -v '^ *+' conftest.er1 >conftest.err
  40098. - rm -f conftest.er1
  40099. - cat conftest.err >&5
  40100. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40101. - (exit $ac_status); } && {
  40102. - test -z "$ac_c_werror_flag" ||
  40103. - test ! -s conftest.err
  40104. - } && test -s conftest.$ac_objext; then
  40105. - ac_cv_member_struct_stat_st_rdev=yes
  40106. else
  40107. - echo "$as_me: failed program was:" >&5
  40108. -sed 's/^/| /' conftest.$ac_ext >&5
  40109. - ac_cv_member_struct_stat_st_rdev=no
  40110. -fi
  40111. +cat >>confdefs.h <<_ACEOF
  40112. +#define size_t unsigned int
  40113. +_ACEOF
  40114. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40115. fi
  40116. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40117. -fi
  40118. -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  40119. -echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
  40120. -if test $ac_cv_member_struct_stat_st_rdev = yes; then
  40121. +ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  40122. +if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
  40123. cat >>confdefs.h <<_ACEOF
  40124. #define HAVE_STRUCT_STAT_ST_RDEV 1
  40125. @@ -21674,16 +12045,12 @@
  40126. fi
  40127. -{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  40128. -echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  40129. -if test "${ac_cv_struct_tm+set}" = set; then
  40130. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40131. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  40132. +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  40133. +if test "${ac_cv_struct_tm+set}" = set; then :
  40134. + $as_echo_n "(cached) " >&6
  40135. else
  40136. - cat >conftest.$ac_ext <<_ACEOF
  40137. -/* confdefs.h. */
  40138. -_ACEOF
  40139. -cat confdefs.h >>conftest.$ac_ext
  40140. -cat >>conftest.$ac_ext <<_ACEOF
  40141. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40142. /* end confdefs.h. */
  40143. #include <sys/types.h>
  40144. #include <time.h>
  40145. @@ -21693,142 +12060,28 @@
  40146. {
  40147. struct tm tm;
  40148. int *p = &tm.tm_sec;
  40149. - return !p;
  40150. + return !p;
  40151. ;
  40152. return 0;
  40153. }
  40154. _ACEOF
  40155. -rm -f conftest.$ac_objext
  40156. -if { (ac_try="$ac_compile"
  40157. -case "(($ac_try" in
  40158. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40159. - *) ac_try_echo=$ac_try;;
  40160. -esac
  40161. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40162. - (eval "$ac_compile") 2>conftest.er1
  40163. - ac_status=$?
  40164. - grep -v '^ *+' conftest.er1 >conftest.err
  40165. - rm -f conftest.er1
  40166. - cat conftest.err >&5
  40167. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40168. - (exit $ac_status); } && {
  40169. - test -z "$ac_c_werror_flag" ||
  40170. - test ! -s conftest.err
  40171. - } && test -s conftest.$ac_objext; then
  40172. +if ac_fn_c_try_compile "$LINENO"; then :
  40173. ac_cv_struct_tm=time.h
  40174. else
  40175. - echo "$as_me: failed program was:" >&5
  40176. -sed 's/^/| /' conftest.$ac_ext >&5
  40177. -
  40178. - ac_cv_struct_tm=sys/time.h
  40179. + ac_cv_struct_tm=sys/time.h
  40180. fi
  40181. -
  40182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40183. fi
  40184. -{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  40185. -echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  40186. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  40187. +$as_echo "$ac_cv_struct_tm" >&6; }
  40188. if test $ac_cv_struct_tm = sys/time.h; then
  40189. -cat >>confdefs.h <<\_ACEOF
  40190. -#define TM_IN_SYS_TIME 1
  40191. -_ACEOF
  40192. -
  40193. -fi
  40194. -
  40195. -{ echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
  40196. -echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
  40197. -if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
  40198. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40199. -else
  40200. - cat >conftest.$ac_ext <<_ACEOF
  40201. -/* confdefs.h. */
  40202. -_ACEOF
  40203. -cat confdefs.h >>conftest.$ac_ext
  40204. -cat >>conftest.$ac_ext <<_ACEOF
  40205. -/* end confdefs.h. */
  40206. -$ac_includes_default
  40207. -int
  40208. -main ()
  40209. -{
  40210. -static struct tm ac_aggr;
  40211. -if (ac_aggr.tm_gmtoff)
  40212. -return 0;
  40213. - ;
  40214. - return 0;
  40215. -}
  40216. -_ACEOF
  40217. -rm -f conftest.$ac_objext
  40218. -if { (ac_try="$ac_compile"
  40219. -case "(($ac_try" in
  40220. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40221. - *) ac_try_echo=$ac_try;;
  40222. -esac
  40223. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40224. - (eval "$ac_compile") 2>conftest.er1
  40225. - ac_status=$?
  40226. - grep -v '^ *+' conftest.er1 >conftest.err
  40227. - rm -f conftest.er1
  40228. - cat conftest.err >&5
  40229. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40230. - (exit $ac_status); } && {
  40231. - test -z "$ac_c_werror_flag" ||
  40232. - test ! -s conftest.err
  40233. - } && test -s conftest.$ac_objext; then
  40234. - ac_cv_member_struct_tm_tm_gmtoff=yes
  40235. -else
  40236. - echo "$as_me: failed program was:" >&5
  40237. -sed 's/^/| /' conftest.$ac_ext >&5
  40238. -
  40239. - cat >conftest.$ac_ext <<_ACEOF
  40240. -/* confdefs.h. */
  40241. -_ACEOF
  40242. -cat confdefs.h >>conftest.$ac_ext
  40243. -cat >>conftest.$ac_ext <<_ACEOF
  40244. -/* end confdefs.h. */
  40245. -$ac_includes_default
  40246. -int
  40247. -main ()
  40248. -{
  40249. -static struct tm ac_aggr;
  40250. -if (sizeof ac_aggr.tm_gmtoff)
  40251. -return 0;
  40252. - ;
  40253. - return 0;
  40254. -}
  40255. -_ACEOF
  40256. -rm -f conftest.$ac_objext
  40257. -if { (ac_try="$ac_compile"
  40258. -case "(($ac_try" in
  40259. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40260. - *) ac_try_echo=$ac_try;;
  40261. -esac
  40262. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40263. - (eval "$ac_compile") 2>conftest.er1
  40264. - ac_status=$?
  40265. - grep -v '^ *+' conftest.er1 >conftest.err
  40266. - rm -f conftest.er1
  40267. - cat conftest.err >&5
  40268. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40269. - (exit $ac_status); } && {
  40270. - test -z "$ac_c_werror_flag" ||
  40271. - test ! -s conftest.err
  40272. - } && test -s conftest.$ac_objext; then
  40273. - ac_cv_member_struct_tm_tm_gmtoff=yes
  40274. -else
  40275. - echo "$as_me: failed program was:" >&5
  40276. -sed 's/^/| /' conftest.$ac_ext >&5
  40277. -
  40278. - ac_cv_member_struct_tm_tm_gmtoff=no
  40279. -fi
  40280. +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  40281. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40282. fi
  40283. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40284. -fi
  40285. -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
  40286. -echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
  40287. -if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
  40288. +ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
  40289. +if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
  40290. cat >>confdefs.h <<_ACEOF
  40291. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  40292. @@ -21836,100 +12089,8 @@
  40293. fi
  40294. -{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  40295. -echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  40296. -if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  40297. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40298. -else
  40299. - cat >conftest.$ac_ext <<_ACEOF
  40300. -/* confdefs.h. */
  40301. -_ACEOF
  40302. -cat confdefs.h >>conftest.$ac_ext
  40303. -cat >>conftest.$ac_ext <<_ACEOF
  40304. -/* end confdefs.h. */
  40305. -$ac_includes_default
  40306. -int
  40307. -main ()
  40308. -{
  40309. -static struct tm ac_aggr;
  40310. -if (ac_aggr.tm_zone)
  40311. -return 0;
  40312. - ;
  40313. - return 0;
  40314. -}
  40315. -_ACEOF
  40316. -rm -f conftest.$ac_objext
  40317. -if { (ac_try="$ac_compile"
  40318. -case "(($ac_try" in
  40319. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40320. - *) ac_try_echo=$ac_try;;
  40321. -esac
  40322. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40323. - (eval "$ac_compile") 2>conftest.er1
  40324. - ac_status=$?
  40325. - grep -v '^ *+' conftest.er1 >conftest.err
  40326. - rm -f conftest.er1
  40327. - cat conftest.err >&5
  40328. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40329. - (exit $ac_status); } && {
  40330. - test -z "$ac_c_werror_flag" ||
  40331. - test ! -s conftest.err
  40332. - } && test -s conftest.$ac_objext; then
  40333. - ac_cv_member_struct_tm_tm_zone=yes
  40334. -else
  40335. - echo "$as_me: failed program was:" >&5
  40336. -sed 's/^/| /' conftest.$ac_ext >&5
  40337. -
  40338. - cat >conftest.$ac_ext <<_ACEOF
  40339. -/* confdefs.h. */
  40340. -_ACEOF
  40341. -cat confdefs.h >>conftest.$ac_ext
  40342. -cat >>conftest.$ac_ext <<_ACEOF
  40343. -/* end confdefs.h. */
  40344. -$ac_includes_default
  40345. -int
  40346. -main ()
  40347. -{
  40348. -static struct tm ac_aggr;
  40349. -if (sizeof ac_aggr.tm_zone)
  40350. -return 0;
  40351. - ;
  40352. - return 0;
  40353. -}
  40354. -_ACEOF
  40355. -rm -f conftest.$ac_objext
  40356. -if { (ac_try="$ac_compile"
  40357. -case "(($ac_try" in
  40358. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40359. - *) ac_try_echo=$ac_try;;
  40360. -esac
  40361. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40362. - (eval "$ac_compile") 2>conftest.er1
  40363. - ac_status=$?
  40364. - grep -v '^ *+' conftest.er1 >conftest.err
  40365. - rm -f conftest.er1
  40366. - cat conftest.err >&5
  40367. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40368. - (exit $ac_status); } && {
  40369. - test -z "$ac_c_werror_flag" ||
  40370. - test ! -s conftest.err
  40371. - } && test -s conftest.$ac_objext; then
  40372. - ac_cv_member_struct_tm_tm_zone=yes
  40373. -else
  40374. - echo "$as_me: failed program was:" >&5
  40375. -sed 's/^/| /' conftest.$ac_ext >&5
  40376. -
  40377. - ac_cv_member_struct_tm_tm_zone=no
  40378. -fi
  40379. -
  40380. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40381. -fi
  40382. -
  40383. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40384. -fi
  40385. -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  40386. -echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  40387. -if test $ac_cv_member_struct_tm_tm_zone = yes; then
  40388. +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "$ac_includes_default"
  40389. +if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
  40390. cat >>confdefs.h <<_ACEOF
  40391. #define HAVE_STRUCT_TM_TM_ZONE 1
  40392. @@ -21938,16 +12099,12 @@
  40393. fi
  40394. -{ echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  40395. -echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
  40396. -if test "${ac_cv_struct_tm_zone+set}" = set; then
  40397. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40398. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  40399. +$as_echo_n "checking for tm_zone in struct tm... " >&6; }
  40400. +if test "${ac_cv_struct_tm_zone+set}" = set; then :
  40401. + $as_echo_n "(cached) " >&6
  40402. else
  40403. - cat >conftest.$ac_ext <<_ACEOF
  40404. -/* confdefs.h. */
  40405. -_ACEOF
  40406. -cat confdefs.h >>conftest.$ac_ext
  40407. -cat >>conftest.$ac_ext <<_ACEOF
  40408. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40409. /* end confdefs.h. */
  40410. #include <sys/types.h>
  40411. #include <$ac_cv_struct_tm>
  40412. @@ -21959,53 +12116,27 @@
  40413. return 0;
  40414. }
  40415. _ACEOF
  40416. -rm -f conftest.$ac_objext
  40417. -if { (ac_try="$ac_compile"
  40418. -case "(($ac_try" in
  40419. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40420. - *) ac_try_echo=$ac_try;;
  40421. -esac
  40422. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40423. - (eval "$ac_compile") 2>conftest.er1
  40424. - ac_status=$?
  40425. - grep -v '^ *+' conftest.er1 >conftest.err
  40426. - rm -f conftest.er1
  40427. - cat conftest.err >&5
  40428. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40429. - (exit $ac_status); } && {
  40430. - test -z "$ac_c_werror_flag" ||
  40431. - test ! -s conftest.err
  40432. - } && test -s conftest.$ac_objext; then
  40433. +if ac_fn_c_try_compile "$LINENO"; then :
  40434. ac_cv_struct_tm_zone=yes
  40435. else
  40436. - echo "$as_me: failed program was:" >&5
  40437. -sed 's/^/| /' conftest.$ac_ext >&5
  40438. -
  40439. - ac_cv_struct_tm_zone=no
  40440. + ac_cv_struct_tm_zone=no
  40441. fi
  40442. -
  40443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40444. fi
  40445. -{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  40446. -echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
  40447. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  40448. +$as_echo "$ac_cv_struct_tm_zone" >&6; }
  40449. if test "$ac_cv_struct_tm_zone" = yes; then
  40450. -cat >>confdefs.h <<\_ACEOF
  40451. -#define HAVE_TM_ZONE 1
  40452. -_ACEOF
  40453. +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  40454. fi
  40455. -{ echo "$as_me:$LINENO: checking for tzname" >&5
  40456. -echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  40457. -if test "${ac_cv_var_tzname+set}" = set; then
  40458. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  40460. +$as_echo_n "checking for tzname... " >&6; }
  40461. +if test "${ac_cv_var_tzname+set}" = set; then :
  40462. + $as_echo_n "(cached) " >&6
  40463. else
  40464. - cat >conftest.$ac_ext <<_ACEOF
  40465. -/* confdefs.h. */
  40466. -_ACEOF
  40467. -cat confdefs.h >>conftest.$ac_ext
  40468. -cat >>conftest.$ac_ext <<_ACEOF
  40469. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40470. /* end confdefs.h. */
  40471. #include <time.h>
  40472. #ifndef tzname /* For SGI. */
  40473. @@ -22019,55 +12150,28 @@
  40474. return 0;
  40475. }
  40476. _ACEOF
  40477. -rm -f conftest.$ac_objext conftest$ac_exeext
  40478. -if { (ac_try="$ac_link"
  40479. -case "(($ac_try" in
  40480. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40481. - *) ac_try_echo=$ac_try;;
  40482. -esac
  40483. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40484. - (eval "$ac_link") 2>conftest.er1
  40485. - ac_status=$?
  40486. - grep -v '^ *+' conftest.er1 >conftest.err
  40487. - rm -f conftest.er1
  40488. - cat conftest.err >&5
  40489. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40490. - (exit $ac_status); } && {
  40491. - test -z "$ac_c_werror_flag" ||
  40492. - test ! -s conftest.err
  40493. - } && test -s conftest$ac_exeext &&
  40494. - $as_test_x conftest$ac_exeext; then
  40495. +if ac_fn_c_try_link "$LINENO"; then :
  40496. ac_cv_var_tzname=yes
  40497. else
  40498. - echo "$as_me: failed program was:" >&5
  40499. -sed 's/^/| /' conftest.$ac_ext >&5
  40500. -
  40501. - ac_cv_var_tzname=no
  40502. + ac_cv_var_tzname=no
  40503. fi
  40504. -
  40505. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40506. - conftest$ac_exeext conftest.$ac_ext
  40507. +rm -f core conftest.err conftest.$ac_objext \
  40508. + conftest$ac_exeext conftest.$ac_ext
  40509. fi
  40510. -{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  40511. -echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  40512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  40513. +$as_echo "$ac_cv_var_tzname" >&6; }
  40514. if test $ac_cv_var_tzname = yes; then
  40515. -cat >>confdefs.h <<\_ACEOF
  40516. -#define HAVE_TZNAME 1
  40517. -_ACEOF
  40518. +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  40519. fi
  40520. -{ echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
  40521. -echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
  40522. -if test "${ac_cv_struct_tm_isdst+set}" = set; then
  40523. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  40525. +$as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  40526. +if test "${ac_cv_struct_tm_isdst+set}" = set; then :
  40527. + $as_echo_n "(cached) " >&6
  40528. else
  40529. - cat >conftest.$ac_ext <<_ACEOF
  40530. -/* confdefs.h. */
  40531. -_ACEOF
  40532. -cat confdefs.h >>conftest.$ac_ext
  40533. -cat >>conftest.$ac_ext <<_ACEOF
  40534. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40535. /* end confdefs.h. */
  40536. #include <sys/types.h>
  40537. #include <$ac_cv_struct_tm>
  40538. @@ -22079,53 +12183,27 @@
  40539. return 0;
  40540. }
  40541. _ACEOF
  40542. -rm -f conftest.$ac_objext
  40543. -if { (ac_try="$ac_compile"
  40544. -case "(($ac_try" in
  40545. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40546. - *) ac_try_echo=$ac_try;;
  40547. -esac
  40548. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40549. - (eval "$ac_compile") 2>conftest.er1
  40550. - ac_status=$?
  40551. - grep -v '^ *+' conftest.er1 >conftest.err
  40552. - rm -f conftest.er1
  40553. - cat conftest.err >&5
  40554. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40555. - (exit $ac_status); } && {
  40556. - test -z "$ac_c_werror_flag" ||
  40557. - test ! -s conftest.err
  40558. - } && test -s conftest.$ac_objext; then
  40559. +if ac_fn_c_try_compile "$LINENO"; then :
  40560. ac_cv_struct_tm_isdst=yes
  40561. else
  40562. - echo "$as_me: failed program was:" >&5
  40563. -sed 's/^/| /' conftest.$ac_ext >&5
  40564. -
  40565. - ac_cv_struct_tm_isdst=no
  40566. + ac_cv_struct_tm_isdst=no
  40567. fi
  40568. -
  40569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40570. fi
  40571. -{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
  40572. -echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
  40573. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  40574. +$as_echo "$ac_cv_struct_tm_isdst" >&6; }
  40575. if test "$ac_cv_struct_tm_isdst" = yes; then
  40576. -cat >>confdefs.h <<\_ACEOF
  40577. -#define HAVE_TM_ISDST 1
  40578. -_ACEOF
  40579. +$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  40580. fi
  40581. -{ echo "$as_me:$LINENO: checking for daylight" >&5
  40582. -echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
  40583. -if test "${ac_cv_var_daylight+set}" = set; then
  40584. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40585. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  40586. +$as_echo_n "checking for daylight... " >&6; }
  40587. +if test "${ac_cv_var_daylight+set}" = set; then :
  40588. + $as_echo_n "(cached) " >&6
  40589. else
  40590. - cat >conftest.$ac_ext <<_ACEOF
  40591. -/* confdefs.h. */
  40592. -_ACEOF
  40593. -cat confdefs.h >>conftest.$ac_ext
  40594. -cat >>conftest.$ac_ext <<_ACEOF
  40595. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40596. /* end confdefs.h. */
  40597. #include <time.h>
  40598. #ifndef daylight /* In case IRIX #defines this, too */
  40599. @@ -22134,61 +12212,38 @@
  40600. int
  40601. main ()
  40602. {
  40603. -atoi(daylight);
  40604. - ;
  40605. - return 0;
  40606. -}
  40607. -_ACEOF
  40608. -rm -f conftest.$ac_objext conftest$ac_exeext
  40609. -if { (ac_try="$ac_link"
  40610. -case "(($ac_try" in
  40611. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40612. - *) ac_try_echo=$ac_try;;
  40613. -esac
  40614. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40615. - (eval "$ac_link") 2>conftest.er1
  40616. - ac_status=$?
  40617. - grep -v '^ *+' conftest.er1 >conftest.err
  40618. - rm -f conftest.er1
  40619. - cat conftest.err >&5
  40620. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40621. - (exit $ac_status); } && {
  40622. - test -z "$ac_c_werror_flag" ||
  40623. - test ! -s conftest.err
  40624. - } && test -s conftest$ac_exeext &&
  40625. - $as_test_x conftest$ac_exeext; then
  40626. +atoi(daylight);
  40627. + ;
  40628. + return 0;
  40629. +}
  40630. +_ACEOF
  40631. +if ac_fn_c_try_link "$LINENO"; then :
  40632. ac_cv_var_daylight=yes
  40633. else
  40634. - echo "$as_me: failed program was:" >&5
  40635. -sed 's/^/| /' conftest.$ac_ext >&5
  40636. -
  40637. - ac_cv_var_daylight=no
  40638. + ac_cv_var_daylight=no
  40639. fi
  40640. -
  40641. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40642. - conftest$ac_exeext conftest.$ac_ext
  40643. +rm -f core conftest.err conftest.$ac_objext \
  40644. + conftest$ac_exeext conftest.$ac_ext
  40645. fi
  40646. -{ echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
  40647. -echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
  40648. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  40649. +$as_echo "$ac_cv_var_daylight" >&6; }
  40650. if test $ac_cv_var_daylight = yes; then
  40651. -cat >>confdefs.h <<\_ACEOF
  40652. -#define HAVE_DAYLIGHT 1
  40653. -_ACEOF
  40654. +$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  40655. fi
  40656. # Check whether --enable-largefile was given.
  40657. -if test "${enable_largefile+set}" = set; then
  40658. +if test "${enable_largefile+set}" = set; then :
  40659. enableval=$enable_largefile;
  40660. fi
  40661. if test "$enable_largefile" != no; then
  40662. - { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  40663. -echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  40664. -if test "${ac_cv_sys_largefile_CC+set}" = set; then
  40665. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40666. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  40667. +$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  40668. +if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  40669. + $as_echo_n "(cached) " >&6
  40670. else
  40671. ac_cv_sys_largefile_CC=no
  40672. if test "$GCC" != yes; then
  40673. @@ -22196,11 +12251,7 @@
  40674. while :; do
  40675. # IRIX 6.2 and later do not support large files by default,
  40676. # so use the C compiler's -n32 option if that helps.
  40677. - cat >conftest.$ac_ext <<_ACEOF
  40678. -/* confdefs.h. */
  40679. -_ACEOF
  40680. -cat confdefs.h >>conftest.$ac_ext
  40681. -cat >>conftest.$ac_ext <<_ACEOF
  40682. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40683. /* end confdefs.h. */
  40684. #include <sys/types.h>
  40685. /* Check that off_t can represent 2**63 - 1 correctly.
  40686. @@ -22219,58 +12270,14 @@
  40687. return 0;
  40688. }
  40689. _ACEOF
  40690. - rm -f conftest.$ac_objext
  40691. -if { (ac_try="$ac_compile"
  40692. -case "(($ac_try" in
  40693. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40694. - *) ac_try_echo=$ac_try;;
  40695. -esac
  40696. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40697. - (eval "$ac_compile") 2>conftest.er1
  40698. - ac_status=$?
  40699. - grep -v '^ *+' conftest.er1 >conftest.err
  40700. - rm -f conftest.er1
  40701. - cat conftest.err >&5
  40702. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40703. - (exit $ac_status); } && {
  40704. - test -z "$ac_c_werror_flag" ||
  40705. - test ! -s conftest.err
  40706. - } && test -s conftest.$ac_objext; then
  40707. + if ac_fn_c_try_compile "$LINENO"; then :
  40708. break
  40709. -else
  40710. - echo "$as_me: failed program was:" >&5
  40711. -sed 's/^/| /' conftest.$ac_ext >&5
  40712. -
  40713. -
  40714. fi
  40715. -
  40716. rm -f core conftest.err conftest.$ac_objext
  40717. CC="$CC -n32"
  40718. - rm -f conftest.$ac_objext
  40719. -if { (ac_try="$ac_compile"
  40720. -case "(($ac_try" in
  40721. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40722. - *) ac_try_echo=$ac_try;;
  40723. -esac
  40724. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40725. - (eval "$ac_compile") 2>conftest.er1
  40726. - ac_status=$?
  40727. - grep -v '^ *+' conftest.er1 >conftest.err
  40728. - rm -f conftest.er1
  40729. - cat conftest.err >&5
  40730. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40731. - (exit $ac_status); } && {
  40732. - test -z "$ac_c_werror_flag" ||
  40733. - test ! -s conftest.err
  40734. - } && test -s conftest.$ac_objext; then
  40735. + if ac_fn_c_try_compile "$LINENO"; then :
  40736. ac_cv_sys_largefile_CC=' -n32'; break
  40737. -else
  40738. - echo "$as_me: failed program was:" >&5
  40739. -sed 's/^/| /' conftest.$ac_ext >&5
  40740. -
  40741. -
  40742. fi
  40743. -
  40744. rm -f core conftest.err conftest.$ac_objext
  40745. break
  40746. done
  40747. @@ -22278,23 +12285,19 @@
  40748. rm -f conftest.$ac_ext
  40749. fi
  40750. fi
  40751. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  40752. -echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  40753. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  40754. +$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  40755. if test "$ac_cv_sys_largefile_CC" != no; then
  40756. CC=$CC$ac_cv_sys_largefile_CC
  40757. fi
  40758. - { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  40759. -echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  40760. -if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  40761. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40762. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  40763. +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  40764. +if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  40765. + $as_echo_n "(cached) " >&6
  40766. else
  40767. while :; do
  40768. - cat >conftest.$ac_ext <<_ACEOF
  40769. -/* confdefs.h. */
  40770. -_ACEOF
  40771. -cat confdefs.h >>conftest.$ac_ext
  40772. -cat >>conftest.$ac_ext <<_ACEOF
  40773. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40774. /* end confdefs.h. */
  40775. #include <sys/types.h>
  40776. /* Check that off_t can represent 2**63 - 1 correctly.
  40777. @@ -22313,37 +12316,11 @@
  40778. return 0;
  40779. }
  40780. _ACEOF
  40781. -rm -f conftest.$ac_objext
  40782. -if { (ac_try="$ac_compile"
  40783. -case "(($ac_try" in
  40784. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40785. - *) ac_try_echo=$ac_try;;
  40786. -esac
  40787. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40788. - (eval "$ac_compile") 2>conftest.er1
  40789. - ac_status=$?
  40790. - grep -v '^ *+' conftest.er1 >conftest.err
  40791. - rm -f conftest.er1
  40792. - cat conftest.err >&5
  40793. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40794. - (exit $ac_status); } && {
  40795. - test -z "$ac_c_werror_flag" ||
  40796. - test ! -s conftest.err
  40797. - } && test -s conftest.$ac_objext; then
  40798. +if ac_fn_c_try_compile "$LINENO"; then :
  40799. ac_cv_sys_file_offset_bits=no; break
  40800. -else
  40801. - echo "$as_me: failed program was:" >&5
  40802. -sed 's/^/| /' conftest.$ac_ext >&5
  40803. -
  40804. -
  40805. fi
  40806. -
  40807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40808. - cat >conftest.$ac_ext <<_ACEOF
  40809. -/* confdefs.h. */
  40810. -_ACEOF
  40811. -cat confdefs.h >>conftest.$ac_ext
  40812. -cat >>conftest.$ac_ext <<_ACEOF
  40813. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40814. /* end confdefs.h. */
  40815. #define _FILE_OFFSET_BITS 64
  40816. #include <sys/types.h>
  40817. @@ -22363,38 +12340,16 @@
  40818. return 0;
  40819. }
  40820. _ACEOF
  40821. -rm -f conftest.$ac_objext
  40822. -if { (ac_try="$ac_compile"
  40823. -case "(($ac_try" in
  40824. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40825. - *) ac_try_echo=$ac_try;;
  40826. -esac
  40827. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40828. - (eval "$ac_compile") 2>conftest.er1
  40829. - ac_status=$?
  40830. - grep -v '^ *+' conftest.er1 >conftest.err
  40831. - rm -f conftest.er1
  40832. - cat conftest.err >&5
  40833. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40834. - (exit $ac_status); } && {
  40835. - test -z "$ac_c_werror_flag" ||
  40836. - test ! -s conftest.err
  40837. - } && test -s conftest.$ac_objext; then
  40838. +if ac_fn_c_try_compile "$LINENO"; then :
  40839. ac_cv_sys_file_offset_bits=64; break
  40840. -else
  40841. - echo "$as_me: failed program was:" >&5
  40842. -sed 's/^/| /' conftest.$ac_ext >&5
  40843. -
  40844. -
  40845. fi
  40846. -
  40847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40848. ac_cv_sys_file_offset_bits=unknown
  40849. break
  40850. done
  40851. fi
  40852. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  40853. -echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  40854. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  40855. +$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  40856. case $ac_cv_sys_file_offset_bits in #(
  40857. no | unknown) ;;
  40858. *)
  40859. @@ -22403,19 +12358,15 @@
  40860. _ACEOF
  40861. ;;
  40862. esac
  40863. -rm -f conftest*
  40864. +rm -rf conftest*
  40865. if test $ac_cv_sys_file_offset_bits = unknown; then
  40866. - { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  40867. -echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  40868. -if test "${ac_cv_sys_large_files+set}" = set; then
  40869. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40870. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  40871. +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  40872. +if test "${ac_cv_sys_large_files+set}" = set; then :
  40873. + $as_echo_n "(cached) " >&6
  40874. else
  40875. while :; do
  40876. - cat >conftest.$ac_ext <<_ACEOF
  40877. -/* confdefs.h. */
  40878. -_ACEOF
  40879. -cat confdefs.h >>conftest.$ac_ext
  40880. -cat >>conftest.$ac_ext <<_ACEOF
  40881. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40882. /* end confdefs.h. */
  40883. #include <sys/types.h>
  40884. /* Check that off_t can represent 2**63 - 1 correctly.
  40885. @@ -22434,37 +12385,11 @@
  40886. return 0;
  40887. }
  40888. _ACEOF
  40889. -rm -f conftest.$ac_objext
  40890. -if { (ac_try="$ac_compile"
  40891. -case "(($ac_try" in
  40892. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40893. - *) ac_try_echo=$ac_try;;
  40894. -esac
  40895. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40896. - (eval "$ac_compile") 2>conftest.er1
  40897. - ac_status=$?
  40898. - grep -v '^ *+' conftest.er1 >conftest.err
  40899. - rm -f conftest.er1
  40900. - cat conftest.err >&5
  40901. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40902. - (exit $ac_status); } && {
  40903. - test -z "$ac_c_werror_flag" ||
  40904. - test ! -s conftest.err
  40905. - } && test -s conftest.$ac_objext; then
  40906. +if ac_fn_c_try_compile "$LINENO"; then :
  40907. ac_cv_sys_large_files=no; break
  40908. -else
  40909. - echo "$as_me: failed program was:" >&5
  40910. -sed 's/^/| /' conftest.$ac_ext >&5
  40911. -
  40912. -
  40913. fi
  40914. -
  40915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40916. - cat >conftest.$ac_ext <<_ACEOF
  40917. -/* confdefs.h. */
  40918. -_ACEOF
  40919. -cat confdefs.h >>conftest.$ac_ext
  40920. -cat >>conftest.$ac_ext <<_ACEOF
  40921. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40922. /* end confdefs.h. */
  40923. #define _LARGE_FILES 1
  40924. #include <sys/types.h>
  40925. @@ -22484,38 +12409,16 @@
  40926. return 0;
  40927. }
  40928. _ACEOF
  40929. -rm -f conftest.$ac_objext
  40930. -if { (ac_try="$ac_compile"
  40931. -case "(($ac_try" in
  40932. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40933. - *) ac_try_echo=$ac_try;;
  40934. -esac
  40935. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40936. - (eval "$ac_compile") 2>conftest.er1
  40937. - ac_status=$?
  40938. - grep -v '^ *+' conftest.er1 >conftest.err
  40939. - rm -f conftest.er1
  40940. - cat conftest.err >&5
  40941. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40942. - (exit $ac_status); } && {
  40943. - test -z "$ac_c_werror_flag" ||
  40944. - test ! -s conftest.err
  40945. - } && test -s conftest.$ac_objext; then
  40946. +if ac_fn_c_try_compile "$LINENO"; then :
  40947. ac_cv_sys_large_files=1; break
  40948. -else
  40949. - echo "$as_me: failed program was:" >&5
  40950. -sed 's/^/| /' conftest.$ac_ext >&5
  40951. -
  40952. -
  40953. fi
  40954. -
  40955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40956. ac_cv_sys_large_files=unknown
  40957. break
  40958. done
  40959. fi
  40960. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  40961. -echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  40962. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  40963. +$as_echo "$ac_cv_sys_large_files" >&6; }
  40964. case $ac_cv_sys_large_files in #(
  40965. no | unknown) ;;
  40966. *)
  40967. @@ -22524,109 +12427,59 @@
  40968. _ACEOF
  40969. ;;
  40970. esac
  40971. -rm -f conftest*
  40972. +rm -rf conftest*
  40973. fi
  40974. fi
  40975. -{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  40976. -echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  40977. -if test "${ac_cv_sys_largefile_source+set}" = set; then
  40978. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40979. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  40980. +$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  40981. +if test "${ac_cv_sys_largefile_source+set}" = set; then :
  40982. + $as_echo_n "(cached) " >&6
  40983. else
  40984. while :; do
  40985. - cat >conftest.$ac_ext <<_ACEOF
  40986. -/* confdefs.h. */
  40987. -_ACEOF
  40988. -cat confdefs.h >>conftest.$ac_ext
  40989. -cat >>conftest.$ac_ext <<_ACEOF
  40990. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40991. /* end confdefs.h. */
  40992. -#include <stdio.h>
  40993. +#include <sys/types.h> /* for off_t */
  40994. + #include <stdio.h>
  40995. int
  40996. main ()
  40997. {
  40998. -return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  40999. +int (*fp) (FILE *, off_t, int) = fseeko;
  41000. + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  41001. ;
  41002. return 0;
  41003. }
  41004. _ACEOF
  41005. -rm -f conftest.$ac_objext conftest$ac_exeext
  41006. -if { (ac_try="$ac_link"
  41007. -case "(($ac_try" in
  41008. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41009. - *) ac_try_echo=$ac_try;;
  41010. -esac
  41011. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41012. - (eval "$ac_link") 2>conftest.er1
  41013. - ac_status=$?
  41014. - grep -v '^ *+' conftest.er1 >conftest.err
  41015. - rm -f conftest.er1
  41016. - cat conftest.err >&5
  41017. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41018. - (exit $ac_status); } && {
  41019. - test -z "$ac_c_werror_flag" ||
  41020. - test ! -s conftest.err
  41021. - } && test -s conftest$ac_exeext &&
  41022. - $as_test_x conftest$ac_exeext; then
  41023. +if ac_fn_c_try_link "$LINENO"; then :
  41024. ac_cv_sys_largefile_source=no; break
  41025. -else
  41026. - echo "$as_me: failed program was:" >&5
  41027. -sed 's/^/| /' conftest.$ac_ext >&5
  41028. -
  41029. -
  41030. fi
  41031. -
  41032. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41033. - conftest$ac_exeext conftest.$ac_ext
  41034. - cat >conftest.$ac_ext <<_ACEOF
  41035. -/* confdefs.h. */
  41036. -_ACEOF
  41037. -cat confdefs.h >>conftest.$ac_ext
  41038. -cat >>conftest.$ac_ext <<_ACEOF
  41039. +rm -f core conftest.err conftest.$ac_objext \
  41040. + conftest$ac_exeext conftest.$ac_ext
  41041. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41042. /* end confdefs.h. */
  41043. #define _LARGEFILE_SOURCE 1
  41044. -#include <stdio.h>
  41045. +#include <sys/types.h> /* for off_t */
  41046. + #include <stdio.h>
  41047. int
  41048. main ()
  41049. {
  41050. -return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  41051. +int (*fp) (FILE *, off_t, int) = fseeko;
  41052. + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  41053. ;
  41054. return 0;
  41055. }
  41056. _ACEOF
  41057. -rm -f conftest.$ac_objext conftest$ac_exeext
  41058. -if { (ac_try="$ac_link"
  41059. -case "(($ac_try" in
  41060. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41061. - *) ac_try_echo=$ac_try;;
  41062. -esac
  41063. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41064. - (eval "$ac_link") 2>conftest.er1
  41065. - ac_status=$?
  41066. - grep -v '^ *+' conftest.er1 >conftest.err
  41067. - rm -f conftest.er1
  41068. - cat conftest.err >&5
  41069. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41070. - (exit $ac_status); } && {
  41071. - test -z "$ac_c_werror_flag" ||
  41072. - test ! -s conftest.err
  41073. - } && test -s conftest$ac_exeext &&
  41074. - $as_test_x conftest$ac_exeext; then
  41075. +if ac_fn_c_try_link "$LINENO"; then :
  41076. ac_cv_sys_largefile_source=1; break
  41077. -else
  41078. - echo "$as_me: failed program was:" >&5
  41079. -sed 's/^/| /' conftest.$ac_ext >&5
  41080. -
  41081. -
  41082. fi
  41083. -
  41084. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41085. - conftest$ac_exeext conftest.$ac_ext
  41086. +rm -f core conftest.err conftest.$ac_objext \
  41087. + conftest$ac_exeext conftest.$ac_ext
  41088. ac_cv_sys_largefile_source=unknown
  41089. break
  41090. done
  41091. fi
  41092. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  41093. -echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  41094. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  41095. +$as_echo "$ac_cv_sys_largefile_source" >&6; }
  41096. case $ac_cv_sys_largefile_source in #(
  41097. no | unknown) ;;
  41098. *)
  41099. @@ -22635,29 +12488,23 @@
  41100. _ACEOF
  41101. ;;
  41102. esac
  41103. -rm -f conftest*
  41104. +rm -rf conftest*
  41105. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  41106. # in glibc 2.1.3, but that breaks too many other things.
  41107. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  41108. if test $ac_cv_sys_largefile_source != unknown; then
  41109. -cat >>confdefs.h <<\_ACEOF
  41110. -#define HAVE_FSEEKO 1
  41111. -_ACEOF
  41112. +$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  41113. fi
  41114. -{ echo "$as_me:$LINENO: checking for mbstate_t" >&5
  41115. -echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
  41116. -if test "${ac_cv_type_mbstate_t+set}" = set; then
  41117. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41118. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  41119. +$as_echo_n "checking for mbstate_t... " >&6; }
  41120. +if test "${ac_cv_type_mbstate_t+set}" = set; then :
  41121. + $as_echo_n "(cached) " >&6
  41122. else
  41123. - cat >conftest.$ac_ext <<_ACEOF
  41124. -/* confdefs.h. */
  41125. -_ACEOF
  41126. -cat confdefs.h >>conftest.$ac_ext
  41127. -cat >>conftest.$ac_ext <<_ACEOF
  41128. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41129. /* end confdefs.h. */
  41130. $ac_includes_default
  41131. # include <wchar.h>
  41132. @@ -22669,59 +12516,31 @@
  41133. return 0;
  41134. }
  41135. _ACEOF
  41136. -rm -f conftest.$ac_objext
  41137. -if { (ac_try="$ac_compile"
  41138. -case "(($ac_try" in
  41139. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41140. - *) ac_try_echo=$ac_try;;
  41141. -esac
  41142. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41143. - (eval "$ac_compile") 2>conftest.er1
  41144. - ac_status=$?
  41145. - grep -v '^ *+' conftest.er1 >conftest.err
  41146. - rm -f conftest.er1
  41147. - cat conftest.err >&5
  41148. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41149. - (exit $ac_status); } && {
  41150. - test -z "$ac_c_werror_flag" ||
  41151. - test ! -s conftest.err
  41152. - } && test -s conftest.$ac_objext; then
  41153. +if ac_fn_c_try_compile "$LINENO"; then :
  41154. ac_cv_type_mbstate_t=yes
  41155. else
  41156. - echo "$as_me: failed program was:" >&5
  41157. -sed 's/^/| /' conftest.$ac_ext >&5
  41158. -
  41159. - ac_cv_type_mbstate_t=no
  41160. + ac_cv_type_mbstate_t=no
  41161. fi
  41162. -
  41163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41164. fi
  41165. -{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
  41166. -echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
  41167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  41168. +$as_echo "$ac_cv_type_mbstate_t" >&6; }
  41169. if test $ac_cv_type_mbstate_t = yes; then
  41170. -cat >>confdefs.h <<\_ACEOF
  41171. -#define HAVE_MBSTATE_T 1
  41172. -_ACEOF
  41173. +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  41174. else
  41175. -cat >>confdefs.h <<\_ACEOF
  41176. -#define mbstate_t int
  41177. -_ACEOF
  41178. +$as_echo "#define mbstate_t int" >>confdefs.h
  41179. fi
  41180. -{ echo "$as_me:$LINENO: checking for struct option in getopt" >&5
  41181. -echo $ECHO_N "checking for struct option in getopt... $ECHO_C" >&6; }
  41182. -if test "${ac_cv_struct_option_getopt_h+set}" = set; then
  41183. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41184. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  41185. +$as_echo_n "checking for struct option in getopt... " >&6; }
  41186. +if test "${ac_cv_struct_option_getopt_h+set}" = set; then :
  41187. + $as_echo_n "(cached) " >&6
  41188. else
  41189. - cat >conftest.$ac_ext <<_ACEOF
  41190. -/* confdefs.h. */
  41191. -_ACEOF
  41192. -cat confdefs.h >>conftest.$ac_ext
  41193. -cat >>conftest.$ac_ext <<_ACEOF
  41194. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41195. /* end confdefs.h. */
  41196. #include <getopt.h>
  41197. int
  41198. @@ -22732,2546 +12551,2551 @@
  41199. return 0;
  41200. }
  41201. _ACEOF
  41202. -rm -f conftest.$ac_objext
  41203. -if { (ac_try="$ac_compile"
  41204. -case "(($ac_try" in
  41205. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41206. - *) ac_try_echo=$ac_try;;
  41207. -esac
  41208. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41209. - (eval "$ac_compile") 2>conftest.er1
  41210. - ac_status=$?
  41211. - grep -v '^ *+' conftest.er1 >conftest.err
  41212. - rm -f conftest.er1
  41213. - cat conftest.err >&5
  41214. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41215. - (exit $ac_status); } && {
  41216. - test -z "$ac_c_werror_flag" ||
  41217. - test ! -s conftest.err
  41218. - } && test -s conftest.$ac_objext; then
  41219. +if ac_fn_c_try_compile "$LINENO"; then :
  41220. ac_cv_struct_option_getopt_h=yes
  41221. else
  41222. - echo "$as_me: failed program was:" >&5
  41223. -sed 's/^/| /' conftest.$ac_ext >&5
  41224. -
  41225. - ac_cv_struct_option_getopt_h=no
  41226. + ac_cv_struct_option_getopt_h=no
  41227. fi
  41228. -
  41229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41230. fi
  41231. -{ echo "$as_me:$LINENO: result: $ac_cv_struct_option_getopt_h" >&5
  41232. -echo "${ECHO_T}$ac_cv_struct_option_getopt_h" >&6; }
  41233. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  41234. +$as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  41235. if test "$ac_cv_struct_option_getopt_h" = yes; then
  41236. -cat >>confdefs.h <<\_ACEOF
  41237. -#define HAVE_STRUCT_OPTION 1
  41238. +$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  41239. +
  41240. +fi
  41241. +
  41242. +
  41243. +ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  41244. +if test "x$ac_cv_type_uint8_t" = x""yes; then :
  41245. +
  41246. +cat >>confdefs.h <<_ACEOF
  41247. +#define HAVE_UINT8_T 1
  41248. _ACEOF
  41249. +
  41250. fi
  41251. +ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  41252. +if test "x$ac_cv_type_uint16_t" = x""yes; then :
  41253. +cat >>confdefs.h <<_ACEOF
  41254. +#define HAVE_UINT16_T 1
  41255. +_ACEOF
  41256. -{ echo "$as_me:$LINENO: checking for uint8_t" >&5
  41257. -echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  41258. -if test "${ac_cv_type_uint8_t+set}" = set; then
  41259. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41260. -else
  41261. - cat >conftest.$ac_ext <<_ACEOF
  41262. -/* confdefs.h. */
  41263. +
  41264. +fi
  41265. +ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  41266. +if test "x$ac_cv_type_uint32_t" = x""yes; then :
  41267. +
  41268. +cat >>confdefs.h <<_ACEOF
  41269. +#define HAVE_UINT32_T 1
  41270. _ACEOF
  41271. -cat confdefs.h >>conftest.$ac_ext
  41272. -cat >>conftest.$ac_ext <<_ACEOF
  41273. -/* end confdefs.h. */
  41274. -$ac_includes_default
  41275. -typedef uint8_t ac__type_new_;
  41276. -int
  41277. -main ()
  41278. -{
  41279. -if ((ac__type_new_ *) 0)
  41280. - return 0;
  41281. -if (sizeof (ac__type_new_))
  41282. - return 0;
  41283. - ;
  41284. - return 0;
  41285. -}
  41286. +
  41287. +
  41288. +fi
  41289. +ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  41290. +if test "x$ac_cv_type_int32_t" = x""yes; then :
  41291. +
  41292. +cat >>confdefs.h <<_ACEOF
  41293. +#define HAVE_INT32_T 1
  41294. _ACEOF
  41295. -rm -f conftest.$ac_objext
  41296. -if { (ac_try="$ac_compile"
  41297. -case "(($ac_try" in
  41298. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41299. - *) ac_try_echo=$ac_try;;
  41300. -esac
  41301. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41302. - (eval "$ac_compile") 2>conftest.er1
  41303. - ac_status=$?
  41304. - grep -v '^ *+' conftest.er1 >conftest.err
  41305. - rm -f conftest.er1
  41306. - cat conftest.err >&5
  41307. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41308. - (exit $ac_status); } && {
  41309. - test -z "$ac_c_werror_flag" ||
  41310. - test ! -s conftest.err
  41311. - } && test -s conftest.$ac_objext; then
  41312. - ac_cv_type_uint8_t=yes
  41313. +
  41314. +
  41315. +fi
  41316. +ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
  41317. +if test "x$ac_cv_type_uint64_t" = x""yes; then :
  41318. +
  41319. +cat >>confdefs.h <<_ACEOF
  41320. +#define HAVE_UINT64_T 1
  41321. +_ACEOF
  41322. +
  41323. +
  41324. +fi
  41325. +ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
  41326. +if test "x$ac_cv_type_int64_t" = x""yes; then :
  41327. +
  41328. +cat >>confdefs.h <<_ACEOF
  41329. +#define HAVE_INT64_T 1
  41330. +_ACEOF
  41331. +
  41332. +
  41333. +fi
  41334. +
  41335. +# The cast to long int works around a bug in the HP C Compiler
  41336. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  41337. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  41338. +# This bug is HP SR number 8606223364.
  41339. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  41340. +$as_echo_n "checking size of long long... " >&6; }
  41341. +if test "${ac_cv_sizeof_long_long+set}" = set; then :
  41342. + $as_echo_n "(cached) " >&6
  41343. +else
  41344. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  41345. +
  41346. else
  41347. - echo "$as_me: failed program was:" >&5
  41348. -sed 's/^/| /' conftest.$ac_ext >&5
  41349. + if test "$ac_cv_type_long_long" = yes; then
  41350. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  41351. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  41352. +{ as_fn_set_status 77
  41353. +as_fn_error "cannot compute sizeof (long long)
  41354. +See \`config.log' for more details." "$LINENO" 5; }; }
  41355. + else
  41356. + ac_cv_sizeof_long_long=0
  41357. + fi
  41358. +fi
  41359. +
  41360. +fi
  41361. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  41362. +$as_echo "$ac_cv_sizeof_long_long" >&6; }
  41363. +
  41364. +
  41365. +
  41366. +cat >>confdefs.h <<_ACEOF
  41367. +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  41368. +_ACEOF
  41369. +
  41370. +
  41371. +
  41372. +
  41373. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  41374. +$as_echo_n "checking for gcc compiler warnings... " >&6; }
  41375. +# Check whether --enable-warnings was given.
  41376. +if test "${enable_warnings+set}" = set; then :
  41377. + enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  41378. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  41379. +$as_echo "no" >&6; }
  41380. + WARNINGS=
  41381. +else
  41382. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  41383. +$as_echo "yes" >&6; }
  41384. + WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  41385. + -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  41386. + -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  41387. + -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  41388. +fi
  41389. +else
  41390. +
  41391. +if test "$GCC" = yes; then
  41392. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  41393. +$as_echo "yes" >&6; }
  41394. + WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  41395. + -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  41396. + -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  41397. + -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  41398. +else
  41399. + WARNINGS=
  41400. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  41401. +$as_echo "no" >&6; }
  41402. +fi
  41403. +fi
  41404. +
  41405. +
  41406. +for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
  41407. +do :
  41408. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  41409. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  41410. +eval as_val=\$$as_ac_var
  41411. + if test "x$as_val" = x""yes; then :
  41412. + cat >>confdefs.h <<_ACEOF
  41413. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  41414. +_ACEOF
  41415. - ac_cv_type_uint8_t=no
  41416. fi
  41417. +done
  41418. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41419. -fi
  41420. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  41421. -echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  41422. -if test $ac_cv_type_uint8_t = yes; then
  41423. -cat >>confdefs.h <<_ACEOF
  41424. -#define HAVE_UINT8_T 1
  41425. +for ac_func in getopt_long asprintf vasprintf strlcpy strlcat
  41426. +do :
  41427. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  41428. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  41429. +eval as_val=\$$as_ac_var
  41430. + if test "x$as_val" = x""yes; then :
  41431. + cat >>confdefs.h <<_ACEOF
  41432. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  41433. _ACEOF
  41434. +else
  41435. + case " $LIBOBJS " in
  41436. + *" $ac_func.$ac_objext "* ) ;;
  41437. + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  41438. + ;;
  41439. +esac
  41440. fi
  41441. -{ echo "$as_me:$LINENO: checking for uint16_t" >&5
  41442. -echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  41443. -if test "${ac_cv_type_uint16_t+set}" = set; then
  41444. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41445. +done
  41446. +
  41447. +
  41448. +
  41449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  41450. +$as_echo_n "checking for gzopen in -lz... " >&6; }
  41451. +if test "${ac_cv_lib_z_gzopen+set}" = set; then :
  41452. + $as_echo_n "(cached) " >&6
  41453. else
  41454. - cat >conftest.$ac_ext <<_ACEOF
  41455. -/* confdefs.h. */
  41456. -_ACEOF
  41457. -cat confdefs.h >>conftest.$ac_ext
  41458. -cat >>conftest.$ac_ext <<_ACEOF
  41459. + ac_check_lib_save_LIBS=$LIBS
  41460. +LIBS="-lz $LIBS"
  41461. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41462. /* end confdefs.h. */
  41463. -$ac_includes_default
  41464. -typedef uint16_t ac__type_new_;
  41465. +
  41466. +/* Override any GCC internal prototype to avoid an error.
  41467. + Use char because int might match the return type of a GCC
  41468. + builtin and then its argument prototype would still apply. */
  41469. +#ifdef __cplusplus
  41470. +extern "C"
  41471. +#endif
  41472. +char gzopen ();
  41473. int
  41474. main ()
  41475. {
  41476. -if ((ac__type_new_ *) 0)
  41477. - return 0;
  41478. -if (sizeof (ac__type_new_))
  41479. - return 0;
  41480. +return gzopen ();
  41481. ;
  41482. return 0;
  41483. }
  41484. _ACEOF
  41485. -rm -f conftest.$ac_objext
  41486. -if { (ac_try="$ac_compile"
  41487. -case "(($ac_try" in
  41488. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41489. - *) ac_try_echo=$ac_try;;
  41490. -esac
  41491. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41492. - (eval "$ac_compile") 2>conftest.er1
  41493. - ac_status=$?
  41494. - grep -v '^ *+' conftest.er1 >conftest.err
  41495. - rm -f conftest.er1
  41496. - cat conftest.err >&5
  41497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41498. - (exit $ac_status); } && {
  41499. - test -z "$ac_c_werror_flag" ||
  41500. - test ! -s conftest.err
  41501. - } && test -s conftest.$ac_objext; then
  41502. - ac_cv_type_uint16_t=yes
  41503. +if ac_fn_c_try_link "$LINENO"; then :
  41504. + ac_cv_lib_z_gzopen=yes
  41505. else
  41506. - echo "$as_me: failed program was:" >&5
  41507. -sed 's/^/| /' conftest.$ac_ext >&5
  41508. + ac_cv_lib_z_gzopen=no
  41509. +fi
  41510. +rm -f core conftest.err conftest.$ac_objext \
  41511. + conftest$ac_exeext conftest.$ac_ext
  41512. +LIBS=$ac_check_lib_save_LIBS
  41513. +fi
  41514. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  41515. +$as_echo "$ac_cv_lib_z_gzopen" >&6; }
  41516. +if test "x$ac_cv_lib_z_gzopen" = x""yes; then :
  41517. + cat >>confdefs.h <<_ACEOF
  41518. +#define HAVE_LIBZ 1
  41519. +_ACEOF
  41520. +
  41521. + LIBS="-lz $LIBS"
  41522. - ac_cv_type_uint16_t=no
  41523. fi
  41524. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41525. +
  41526. + if test "$cross_compiling" = yes; then
  41527. + IS_CROSS_COMPILE_TRUE=
  41528. + IS_CROSS_COMPILE_FALSE='#'
  41529. +else
  41530. + IS_CROSS_COMPILE_TRUE='#'
  41531. + IS_CROSS_COMPILE_FALSE=
  41532. fi
  41533. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  41534. -echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  41535. -if test $ac_cv_type_uint16_t = yes; then
  41536. -cat >>confdefs.h <<_ACEOF
  41537. -#define HAVE_UINT16_T 1
  41538. +
  41539. +ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  41540. +
  41541. +cat >confcache <<\_ACEOF
  41542. +# This file is a shell script that caches the results of configure
  41543. +# tests run on this system so they can be shared between configure
  41544. +# scripts and configure runs, see configure's option --config-cache.
  41545. +# It is not useful on other systems. If it contains results you don't
  41546. +# want to keep, you may remove or edit it.
  41547. +#
  41548. +# config.status only pays attention to the cache file if you give it
  41549. +# the --recheck option to rerun configure.
  41550. +#
  41551. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  41552. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  41553. +# following values.
  41554. +
  41555. _ACEOF
  41556. +# The following way of writing the cache mishandles newlines in values,
  41557. +# but we know of no workaround that is simple, portable, and efficient.
  41558. +# So, we kill variables containing newlines.
  41559. +# Ultrix sh set writes to stderr and can't be redirected directly,
  41560. +# and sets the high bit in the cache file unless we assign to the vars.
  41561. +(
  41562. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  41563. + eval ac_val=\$$ac_var
  41564. + case $ac_val in #(
  41565. + *${as_nl}*)
  41566. + case $ac_var in #(
  41567. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  41568. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  41569. + esac
  41570. + case $ac_var in #(
  41571. + _ | IFS | as_nl) ;; #(
  41572. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  41573. + *) { eval $ac_var=; unset $ac_var;} ;;
  41574. + esac ;;
  41575. + esac
  41576. + done
  41577. + (set) 2>&1 |
  41578. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  41579. + *${as_nl}ac_space=\ *)
  41580. + # `set' does not quote correctly, so add quotes: double-quote
  41581. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  41582. + sed -n \
  41583. + "s/'/'\\\\''/g;
  41584. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  41585. + ;; #(
  41586. + *)
  41587. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  41588. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  41589. + ;;
  41590. + esac |
  41591. + sort
  41592. +) |
  41593. + sed '
  41594. + /^ac_cv_env_/b end
  41595. + t clear
  41596. + :clear
  41597. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  41598. + t end
  41599. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  41600. + :end' >>confcache
  41601. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  41602. + if test -w "$cache_file"; then
  41603. + test "x$cache_file" != "x/dev/null" &&
  41604. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  41605. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  41606. + cat confcache >$cache_file
  41607. + else
  41608. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  41609. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  41610. + fi
  41611. fi
  41612. -{ echo "$as_me:$LINENO: checking for uint32_t" >&5
  41613. -echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  41614. -if test "${ac_cv_type_uint32_t+set}" = set; then
  41615. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41616. -else
  41617. - cat >conftest.$ac_ext <<_ACEOF
  41618. -/* confdefs.h. */
  41619. -_ACEOF
  41620. -cat confdefs.h >>conftest.$ac_ext
  41621. -cat >>conftest.$ac_ext <<_ACEOF
  41622. -/* end confdefs.h. */
  41623. -$ac_includes_default
  41624. -typedef uint32_t ac__type_new_;
  41625. -int
  41626. -main ()
  41627. -{
  41628. -if ((ac__type_new_ *) 0)
  41629. - return 0;
  41630. -if (sizeof (ac__type_new_))
  41631. - return 0;
  41632. - ;
  41633. - return 0;
  41634. -}
  41635. -_ACEOF
  41636. -rm -f conftest.$ac_objext
  41637. -if { (ac_try="$ac_compile"
  41638. -case "(($ac_try" in
  41639. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41640. - *) ac_try_echo=$ac_try;;
  41641. -esac
  41642. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41643. - (eval "$ac_compile") 2>conftest.er1
  41644. - ac_status=$?
  41645. - grep -v '^ *+' conftest.er1 >conftest.err
  41646. - rm -f conftest.er1
  41647. - cat conftest.err >&5
  41648. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41649. - (exit $ac_status); } && {
  41650. - test -z "$ac_c_werror_flag" ||
  41651. - test ! -s conftest.err
  41652. - } && test -s conftest.$ac_objext; then
  41653. - ac_cv_type_uint32_t=yes
  41654. -else
  41655. - echo "$as_me: failed program was:" >&5
  41656. -sed 's/^/| /' conftest.$ac_ext >&5
  41657. +rm -f confcache
  41658. +
  41659. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  41660. +# Let make expand exec_prefix.
  41661. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  41662. +
  41663. +DEFS=-DHAVE_CONFIG_H
  41664. +
  41665. +ac_libobjs=
  41666. +ac_ltlibobjs=
  41667. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  41668. + # 1. Remove the extension, and $U if already installed.
  41669. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  41670. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  41671. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  41672. + # will be set to the directory where LIBOBJS objects are built.
  41673. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  41674. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  41675. +done
  41676. +LIBOBJS=$ac_libobjs
  41677. - ac_cv_type_uint32_t=no
  41678. +LTLIBOBJS=$ac_ltlibobjs
  41679. +
  41680. +
  41681. + if test -n "$EXEEXT"; then
  41682. + am__EXEEXT_TRUE=
  41683. + am__EXEEXT_FALSE='#'
  41684. +else
  41685. + am__EXEEXT_TRUE='#'
  41686. + am__EXEEXT_FALSE=
  41687. fi
  41688. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41689. +if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  41690. + as_fn_error "conditional \"FSECT5\" was never defined.
  41691. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  41692. +fi
  41693. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  41694. + as_fn_error "conditional \"AMDEP\" was never defined.
  41695. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  41696. +fi
  41697. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  41698. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  41699. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  41700. +fi
  41701. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  41702. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  41703. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  41704. +fi
  41705. +if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  41706. + as_fn_error "conditional \"IS_CROSS_COMPILE\" was never defined.
  41707. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  41708. fi
  41709. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  41710. -echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  41711. -if test $ac_cv_type_uint32_t = yes; then
  41712. -cat >>confdefs.h <<_ACEOF
  41713. -#define HAVE_UINT32_T 1
  41714. -_ACEOF
  41715. +: ${CONFIG_STATUS=./config.status}
  41716. +ac_write_fail=0
  41717. +ac_clean_files_save=$ac_clean_files
  41718. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  41719. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  41720. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  41721. +as_write_fail=0
  41722. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  41723. +#! $SHELL
  41724. +# Generated by $as_me.
  41725. +# Run this file to recreate the current configuration.
  41726. +# Compiler output produced by configure, useful for debugging
  41727. +# configure, is in config.log if it exists.
  41728. +
  41729. +debug=false
  41730. +ac_cs_recheck=false
  41731. +ac_cs_silent=false
  41732. +SHELL=\${CONFIG_SHELL-$SHELL}
  41733. +export SHELL
  41734. +_ASEOF
  41735. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  41736. +## -------------------- ##
  41737. +## M4sh Initialization. ##
  41738. +## -------------------- ##
  41739. -fi
  41740. -{ echo "$as_me:$LINENO: checking for int32_t" >&5
  41741. -echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  41742. -if test "${ac_cv_type_int32_t+set}" = set; then
  41743. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41744. +# Be more Bourne compatible
  41745. +DUALCASE=1; export DUALCASE # for MKS sh
  41746. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  41747. + emulate sh
  41748. + NULLCMD=:
  41749. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  41750. + # is contrary to our usage. Disable this feature.
  41751. + alias -g '${1+"$@"}'='"$@"'
  41752. + setopt NO_GLOB_SUBST
  41753. else
  41754. - cat >conftest.$ac_ext <<_ACEOF
  41755. -/* confdefs.h. */
  41756. -_ACEOF
  41757. -cat confdefs.h >>conftest.$ac_ext
  41758. -cat >>conftest.$ac_ext <<_ACEOF
  41759. -/* end confdefs.h. */
  41760. -$ac_includes_default
  41761. -typedef int32_t ac__type_new_;
  41762. -int
  41763. -main ()
  41764. -{
  41765. -if ((ac__type_new_ *) 0)
  41766. - return 0;
  41767. -if (sizeof (ac__type_new_))
  41768. - return 0;
  41769. - ;
  41770. - return 0;
  41771. -}
  41772. -_ACEOF
  41773. -rm -f conftest.$ac_objext
  41774. -if { (ac_try="$ac_compile"
  41775. -case "(($ac_try" in
  41776. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41777. - *) ac_try_echo=$ac_try;;
  41778. + case `(set -o) 2>/dev/null` in #(
  41779. + *posix*) :
  41780. + set -o posix ;; #(
  41781. + *) :
  41782. + ;;
  41783. esac
  41784. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41785. - (eval "$ac_compile") 2>conftest.er1
  41786. - ac_status=$?
  41787. - grep -v '^ *+' conftest.er1 >conftest.err
  41788. - rm -f conftest.er1
  41789. - cat conftest.err >&5
  41790. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41791. - (exit $ac_status); } && {
  41792. - test -z "$ac_c_werror_flag" ||
  41793. - test ! -s conftest.err
  41794. - } && test -s conftest.$ac_objext; then
  41795. - ac_cv_type_int32_t=yes
  41796. -else
  41797. - echo "$as_me: failed program was:" >&5
  41798. -sed 's/^/| /' conftest.$ac_ext >&5
  41799. +fi
  41800. +
  41801. +
  41802. +as_nl='
  41803. +'
  41804. +export as_nl
  41805. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  41806. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41807. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41808. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41809. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  41810. +# but without wasting forks for bash or zsh.
  41811. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  41812. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  41813. + as_echo='print -r --'
  41814. + as_echo_n='print -rn --'
  41815. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41816. + as_echo='printf %s\n'
  41817. + as_echo_n='printf %s'
  41818. +else
  41819. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  41820. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  41821. + as_echo_n='/usr/ucb/echo -n'
  41822. + else
  41823. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  41824. + as_echo_n_body='eval
  41825. + arg=$1;
  41826. + case $arg in #(
  41827. + *"$as_nl"*)
  41828. + expr "X$arg" : "X\\(.*\\)$as_nl";
  41829. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  41830. + esac;
  41831. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  41832. + '
  41833. + export as_echo_n_body
  41834. + as_echo_n='sh -c $as_echo_n_body as_echo'
  41835. + fi
  41836. + export as_echo_body
  41837. + as_echo='sh -c $as_echo_body as_echo'
  41838. +fi
  41839. +
  41840. +# The user is always right.
  41841. +if test "${PATH_SEPARATOR+set}" != set; then
  41842. + PATH_SEPARATOR=:
  41843. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  41844. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  41845. + PATH_SEPARATOR=';'
  41846. + }
  41847. +fi
  41848. +
  41849. +
  41850. +# IFS
  41851. +# We need space, tab and new line, in precisely that order. Quoting is
  41852. +# there to prevent editors from complaining about space-tab.
  41853. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  41854. +# splitting by setting IFS to empty value.)
  41855. +IFS=" "" $as_nl"
  41856. +
  41857. +# Find who we are. Look in the path if we contain no directory separator.
  41858. +case $0 in #((
  41859. + *[\\/]* ) as_myself=$0 ;;
  41860. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41861. +for as_dir in $PATH
  41862. +do
  41863. + IFS=$as_save_IFS
  41864. + test -z "$as_dir" && as_dir=.
  41865. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  41866. + done
  41867. +IFS=$as_save_IFS
  41868. - ac_cv_type_int32_t=no
  41869. + ;;
  41870. +esac
  41871. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  41872. +# in which case we are not to be found in the path.
  41873. +if test "x$as_myself" = x; then
  41874. + as_myself=$0
  41875. fi
  41876. -
  41877. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41878. +if test ! -f "$as_myself"; then
  41879. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  41880. + exit 1
  41881. fi
  41882. -{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  41883. -echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  41884. -if test $ac_cv_type_int32_t = yes; then
  41885. -cat >>confdefs.h <<_ACEOF
  41886. -#define HAVE_INT32_T 1
  41887. -_ACEOF
  41888. +# Unset variables that we do not need and which cause bugs (e.g. in
  41889. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  41890. +# suppresses any "Segmentation fault" message there. '((' could
  41891. +# trigger a bug in pdksh 5.2.14.
  41892. +for as_var in BASH_ENV ENV MAIL MAILPATH
  41893. +do eval test x\${$as_var+set} = xset \
  41894. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  41895. +done
  41896. +PS1='$ '
  41897. +PS2='> '
  41898. +PS4='+ '
  41899. +
  41900. +# NLS nuisances.
  41901. +LC_ALL=C
  41902. +export LC_ALL
  41903. +LANGUAGE=C
  41904. +export LANGUAGE
  41905. +# CDPATH.
  41906. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  41907. -fi
  41908. -{ echo "$as_me:$LINENO: checking for uint64_t" >&5
  41909. -echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  41910. -if test "${ac_cv_type_uint64_t+set}" = set; then
  41911. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41912. +
  41913. +# as_fn_error ERROR [LINENO LOG_FD]
  41914. +# ---------------------------------
  41915. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  41916. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  41917. +# script with status $?, using 1 if that was 0.
  41918. +as_fn_error ()
  41919. +{
  41920. + as_status=$?; test $as_status -eq 0 && as_status=1
  41921. + if test "$3"; then
  41922. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  41923. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  41924. + fi
  41925. + $as_echo "$as_me: error: $1" >&2
  41926. + as_fn_exit $as_status
  41927. +} # as_fn_error
  41928. +
  41929. +
  41930. +# as_fn_set_status STATUS
  41931. +# -----------------------
  41932. +# Set $? to STATUS, without forking.
  41933. +as_fn_set_status ()
  41934. +{
  41935. + return $1
  41936. +} # as_fn_set_status
  41937. +
  41938. +# as_fn_exit STATUS
  41939. +# -----------------
  41940. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  41941. +as_fn_exit ()
  41942. +{
  41943. + set +e
  41944. + as_fn_set_status $1
  41945. + exit $1
  41946. +} # as_fn_exit
  41947. +
  41948. +# as_fn_unset VAR
  41949. +# ---------------
  41950. +# Portably unset VAR.
  41951. +as_fn_unset ()
  41952. +{
  41953. + { eval $1=; unset $1;}
  41954. +}
  41955. +as_unset=as_fn_unset
  41956. +# as_fn_append VAR VALUE
  41957. +# ----------------------
  41958. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  41959. +# advantage of any shell optimizations that allow amortized linear growth over
  41960. +# repeated appends, instead of the typical quadratic growth present in naive
  41961. +# implementations.
  41962. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  41963. + eval 'as_fn_append ()
  41964. + {
  41965. + eval $1+=\$2
  41966. + }'
  41967. else
  41968. - cat >conftest.$ac_ext <<_ACEOF
  41969. -/* confdefs.h. */
  41970. -_ACEOF
  41971. -cat confdefs.h >>conftest.$ac_ext
  41972. -cat >>conftest.$ac_ext <<_ACEOF
  41973. -/* end confdefs.h. */
  41974. -$ac_includes_default
  41975. -typedef uint64_t ac__type_new_;
  41976. -int
  41977. -main ()
  41978. -{
  41979. -if ((ac__type_new_ *) 0)
  41980. - return 0;
  41981. -if (sizeof (ac__type_new_))
  41982. - return 0;
  41983. - ;
  41984. - return 0;
  41985. -}
  41986. -_ACEOF
  41987. -rm -f conftest.$ac_objext
  41988. -if { (ac_try="$ac_compile"
  41989. -case "(($ac_try" in
  41990. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41991. - *) ac_try_echo=$ac_try;;
  41992. -esac
  41993. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  41994. - (eval "$ac_compile") 2>conftest.er1
  41995. - ac_status=$?
  41996. - grep -v '^ *+' conftest.er1 >conftest.err
  41997. - rm -f conftest.er1
  41998. - cat conftest.err >&5
  41999. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42000. - (exit $ac_status); } && {
  42001. - test -z "$ac_c_werror_flag" ||
  42002. - test ! -s conftest.err
  42003. - } && test -s conftest.$ac_objext; then
  42004. - ac_cv_type_uint64_t=yes
  42005. + as_fn_append ()
  42006. + {
  42007. + eval $1=\$$1\$2
  42008. + }
  42009. +fi # as_fn_append
  42010. +
  42011. +# as_fn_arith ARG...
  42012. +# ------------------
  42013. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  42014. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  42015. +# must be portable across $(()) and expr.
  42016. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  42017. + eval 'as_fn_arith ()
  42018. + {
  42019. + as_val=$(( $* ))
  42020. + }'
  42021. else
  42022. - echo "$as_me: failed program was:" >&5
  42023. -sed 's/^/| /' conftest.$ac_ext >&5
  42024. + as_fn_arith ()
  42025. + {
  42026. + as_val=`expr "$@" || test $? -eq 1`
  42027. + }
  42028. +fi # as_fn_arith
  42029. +
  42030. - ac_cv_type_uint64_t=no
  42031. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  42032. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  42033. + as_expr=expr
  42034. +else
  42035. + as_expr=false
  42036. fi
  42037. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42038. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  42039. + as_basename=basename
  42040. +else
  42041. + as_basename=false
  42042. fi
  42043. -{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  42044. -echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  42045. -if test $ac_cv_type_uint64_t = yes; then
  42046. -cat >>confdefs.h <<_ACEOF
  42047. -#define HAVE_UINT64_T 1
  42048. -_ACEOF
  42049. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  42050. + as_dirname=dirname
  42051. +else
  42052. + as_dirname=false
  42053. +fi
  42054. +as_me=`$as_basename -- "$0" ||
  42055. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  42056. + X"$0" : 'X\(//\)$' \| \
  42057. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  42058. +$as_echo X/"$0" |
  42059. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  42060. + s//\1/
  42061. + q
  42062. + }
  42063. + /^X\/\(\/\/\)$/{
  42064. + s//\1/
  42065. + q
  42066. + }
  42067. + /^X\/\(\/\).*/{
  42068. + s//\1/
  42069. + q
  42070. + }
  42071. + s/.*/./; q'`
  42072. -fi
  42073. -{ echo "$as_me:$LINENO: checking for int64_t" >&5
  42074. -echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  42075. -if test "${ac_cv_type_int64_t+set}" = set; then
  42076. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42077. -else
  42078. - cat >conftest.$ac_ext <<_ACEOF
  42079. -/* confdefs.h. */
  42080. -_ACEOF
  42081. -cat confdefs.h >>conftest.$ac_ext
  42082. -cat >>conftest.$ac_ext <<_ACEOF
  42083. -/* end confdefs.h. */
  42084. -$ac_includes_default
  42085. -typedef int64_t ac__type_new_;
  42086. -int
  42087. -main ()
  42088. -{
  42089. -if ((ac__type_new_ *) 0)
  42090. - return 0;
  42091. -if (sizeof (ac__type_new_))
  42092. - return 0;
  42093. - ;
  42094. - return 0;
  42095. -}
  42096. -_ACEOF
  42097. -rm -f conftest.$ac_objext
  42098. -if { (ac_try="$ac_compile"
  42099. -case "(($ac_try" in
  42100. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42101. - *) ac_try_echo=$ac_try;;
  42102. +# Avoid depending upon Character Ranges.
  42103. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  42104. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  42105. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  42106. +as_cr_digits='0123456789'
  42107. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  42108. +
  42109. +ECHO_C= ECHO_N= ECHO_T=
  42110. +case `echo -n x` in #(((((
  42111. +-n*)
  42112. + case `echo 'xy\c'` in
  42113. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  42114. + xy) ECHO_C='\c';;
  42115. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  42116. + ECHO_T=' ';;
  42117. + esac;;
  42118. +*)
  42119. + ECHO_N='-n';;
  42120. esac
  42121. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42122. - (eval "$ac_compile") 2>conftest.er1
  42123. - ac_status=$?
  42124. - grep -v '^ *+' conftest.er1 >conftest.err
  42125. - rm -f conftest.er1
  42126. - cat conftest.err >&5
  42127. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42128. - (exit $ac_status); } && {
  42129. - test -z "$ac_c_werror_flag" ||
  42130. - test ! -s conftest.err
  42131. - } && test -s conftest.$ac_objext; then
  42132. - ac_cv_type_int64_t=yes
  42133. -else
  42134. - echo "$as_me: failed program was:" >&5
  42135. -sed 's/^/| /' conftest.$ac_ext >&5
  42136. - ac_cv_type_int64_t=no
  42137. +rm -f conf$$ conf$$.exe conf$$.file
  42138. +if test -d conf$$.dir; then
  42139. + rm -f conf$$.dir/conf$$.file
  42140. +else
  42141. + rm -f conf$$.dir
  42142. + mkdir conf$$.dir 2>/dev/null
  42143. fi
  42144. -
  42145. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42146. +if (echo >conf$$.file) 2>/dev/null; then
  42147. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  42148. + as_ln_s='ln -s'
  42149. + # ... but there are two gotchas:
  42150. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  42151. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  42152. + # In both cases, we have to default to `cp -p'.
  42153. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  42154. + as_ln_s='cp -p'
  42155. + elif ln conf$$.file conf$$ 2>/dev/null; then
  42156. + as_ln_s=ln
  42157. + else
  42158. + as_ln_s='cp -p'
  42159. + fi
  42160. +else
  42161. + as_ln_s='cp -p'
  42162. fi
  42163. -{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  42164. -echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
  42165. -if test $ac_cv_type_int64_t = yes; then
  42166. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  42167. +rmdir conf$$.dir 2>/dev/null
  42168. -cat >>confdefs.h <<_ACEOF
  42169. -#define HAVE_INT64_T 1
  42170. -_ACEOF
  42171. +# as_fn_mkdir_p
  42172. +# -------------
  42173. +# Create "$as_dir" as a directory, including parents if necessary.
  42174. +as_fn_mkdir_p ()
  42175. +{
  42176. -fi
  42177. + case $as_dir in #(
  42178. + -*) as_dir=./$as_dir;;
  42179. + esac
  42180. + test -d "$as_dir" || eval $as_mkdir_p || {
  42181. + as_dirs=
  42182. + while :; do
  42183. + case $as_dir in #(
  42184. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  42185. + *) as_qdir=$as_dir;;
  42186. + esac
  42187. + as_dirs="'$as_qdir' $as_dirs"
  42188. + as_dir=`$as_dirname -- "$as_dir" ||
  42189. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42190. + X"$as_dir" : 'X\(//\)[^/]' \| \
  42191. + X"$as_dir" : 'X\(//\)$' \| \
  42192. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  42193. +$as_echo X"$as_dir" |
  42194. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42195. + s//\1/
  42196. + q
  42197. + }
  42198. + /^X\(\/\/\)[^/].*/{
  42199. + s//\1/
  42200. + q
  42201. + }
  42202. + /^X\(\/\/\)$/{
  42203. + s//\1/
  42204. + q
  42205. + }
  42206. + /^X\(\/\).*/{
  42207. + s//\1/
  42208. + q
  42209. + }
  42210. + s/.*/./; q'`
  42211. + test -d "$as_dir" && break
  42212. + done
  42213. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  42214. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  42215. -{ echo "$as_me:$LINENO: checking for long long" >&5
  42216. -echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  42217. -if test "${ac_cv_type_long_long+set}" = set; then
  42218. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42219. -else
  42220. - cat >conftest.$ac_ext <<_ACEOF
  42221. -/* confdefs.h. */
  42222. -_ACEOF
  42223. -cat confdefs.h >>conftest.$ac_ext
  42224. -cat >>conftest.$ac_ext <<_ACEOF
  42225. -/* end confdefs.h. */
  42226. -$ac_includes_default
  42227. -typedef long long ac__type_new_;
  42228. -int
  42229. -main ()
  42230. -{
  42231. -if ((ac__type_new_ *) 0)
  42232. - return 0;
  42233. -if (sizeof (ac__type_new_))
  42234. - return 0;
  42235. - ;
  42236. - return 0;
  42237. -}
  42238. -_ACEOF
  42239. -rm -f conftest.$ac_objext
  42240. -if { (ac_try="$ac_compile"
  42241. -case "(($ac_try" in
  42242. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42243. - *) ac_try_echo=$ac_try;;
  42244. -esac
  42245. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42246. - (eval "$ac_compile") 2>conftest.er1
  42247. - ac_status=$?
  42248. - grep -v '^ *+' conftest.er1 >conftest.err
  42249. - rm -f conftest.er1
  42250. - cat conftest.err >&5
  42251. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42252. - (exit $ac_status); } && {
  42253. - test -z "$ac_c_werror_flag" ||
  42254. - test ! -s conftest.err
  42255. - } && test -s conftest.$ac_objext; then
  42256. - ac_cv_type_long_long=yes
  42257. -else
  42258. - echo "$as_me: failed program was:" >&5
  42259. -sed 's/^/| /' conftest.$ac_ext >&5
  42260. - ac_cv_type_long_long=no
  42261. +} # as_fn_mkdir_p
  42262. +if mkdir -p . 2>/dev/null; then
  42263. + as_mkdir_p='mkdir -p "$as_dir"'
  42264. +else
  42265. + test -d ./-p && rmdir ./-p
  42266. + as_mkdir_p=false
  42267. fi
  42268. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42269. +if test -x / >/dev/null 2>&1; then
  42270. + as_test_x='test -x'
  42271. +else
  42272. + if ls -dL / >/dev/null 2>&1; then
  42273. + as_ls_L_option=L
  42274. + else
  42275. + as_ls_L_option=
  42276. + fi
  42277. + as_test_x='
  42278. + eval sh -c '\''
  42279. + if test -d "$1"; then
  42280. + test -d "$1/.";
  42281. + else
  42282. + case $1 in #(
  42283. + -*)set "./$1";;
  42284. + esac;
  42285. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  42286. + ???[sx]*):;;*)false;;esac;fi
  42287. + '\'' sh
  42288. + '
  42289. fi
  42290. -{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  42291. -echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  42292. +as_executable_p=$as_test_x
  42293. -# The cast to long int works around a bug in the HP C Compiler
  42294. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  42295. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  42296. -# This bug is HP SR number 8606223364.
  42297. -{ echo "$as_me:$LINENO: checking size of long long" >&5
  42298. -echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  42299. -if test "${ac_cv_sizeof_long_long+set}" = set; then
  42300. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42301. -else
  42302. - if test "$cross_compiling" = yes; then
  42303. - # Depending upon the size, compute the lo and hi bounds.
  42304. -cat >conftest.$ac_ext <<_ACEOF
  42305. -/* confdefs.h. */
  42306. -_ACEOF
  42307. -cat confdefs.h >>conftest.$ac_ext
  42308. -cat >>conftest.$ac_ext <<_ACEOF
  42309. -/* end confdefs.h. */
  42310. -$ac_includes_default
  42311. - typedef long long ac__type_sizeof_;
  42312. -int
  42313. -main ()
  42314. -{
  42315. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  42316. -test_array [0] = 0
  42317. +# Sed expression to map a string onto a valid CPP name.
  42318. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  42319. +
  42320. +# Sed expression to map a string onto a valid variable name.
  42321. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  42322. +
  42323. +
  42324. +exec 6>&1
  42325. +## ----------------------------------- ##
  42326. +## Main body of $CONFIG_STATUS script. ##
  42327. +## ----------------------------------- ##
  42328. +_ASEOF
  42329. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  42330. +
  42331. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42332. +# Save the log message, to keep $0 and so on meaningful, and to
  42333. +# report actual input values of CONFIG_FILES etc. instead of their
  42334. +# values after options handling.
  42335. +ac_log="
  42336. +This file was extended by file $as_me 5.04, which was
  42337. +generated by GNU Autoconf 2.65. Invocation command line was
  42338. +
  42339. + CONFIG_FILES = $CONFIG_FILES
  42340. + CONFIG_HEADERS = $CONFIG_HEADERS
  42341. + CONFIG_LINKS = $CONFIG_LINKS
  42342. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  42343. + $ $0 $@
  42344. +
  42345. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  42346. +"
  42347. - ;
  42348. - return 0;
  42349. -}
  42350. _ACEOF
  42351. -rm -f conftest.$ac_objext
  42352. -if { (ac_try="$ac_compile"
  42353. -case "(($ac_try" in
  42354. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42355. - *) ac_try_echo=$ac_try;;
  42356. +
  42357. +case $ac_config_files in *"
  42358. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  42359. esac
  42360. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42361. - (eval "$ac_compile") 2>conftest.er1
  42362. - ac_status=$?
  42363. - grep -v '^ *+' conftest.er1 >conftest.err
  42364. - rm -f conftest.er1
  42365. - cat conftest.err >&5
  42366. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42367. - (exit $ac_status); } && {
  42368. - test -z "$ac_c_werror_flag" ||
  42369. - test ! -s conftest.err
  42370. - } && test -s conftest.$ac_objext; then
  42371. - ac_lo=0 ac_mid=0
  42372. - while :; do
  42373. - cat >conftest.$ac_ext <<_ACEOF
  42374. -/* confdefs.h. */
  42375. -_ACEOF
  42376. -cat confdefs.h >>conftest.$ac_ext
  42377. -cat >>conftest.$ac_ext <<_ACEOF
  42378. -/* end confdefs.h. */
  42379. -$ac_includes_default
  42380. - typedef long long ac__type_sizeof_;
  42381. -int
  42382. -main ()
  42383. -{
  42384. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  42385. -test_array [0] = 0
  42386. - ;
  42387. - return 0;
  42388. -}
  42389. -_ACEOF
  42390. -rm -f conftest.$ac_objext
  42391. -if { (ac_try="$ac_compile"
  42392. -case "(($ac_try" in
  42393. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42394. - *) ac_try_echo=$ac_try;;
  42395. +case $ac_config_headers in *"
  42396. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  42397. esac
  42398. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42399. - (eval "$ac_compile") 2>conftest.er1
  42400. - ac_status=$?
  42401. - grep -v '^ *+' conftest.er1 >conftest.err
  42402. - rm -f conftest.er1
  42403. - cat conftest.err >&5
  42404. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42405. - (exit $ac_status); } && {
  42406. - test -z "$ac_c_werror_flag" ||
  42407. - test ! -s conftest.err
  42408. - } && test -s conftest.$ac_objext; then
  42409. - ac_hi=$ac_mid; break
  42410. -else
  42411. - echo "$as_me: failed program was:" >&5
  42412. -sed 's/^/| /' conftest.$ac_ext >&5
  42413. - ac_lo=`expr $ac_mid + 1`
  42414. - if test $ac_lo -le $ac_mid; then
  42415. - ac_lo= ac_hi=
  42416. - break
  42417. - fi
  42418. - ac_mid=`expr 2 '*' $ac_mid + 1`
  42419. -fi
  42420. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42421. - done
  42422. -else
  42423. - echo "$as_me: failed program was:" >&5
  42424. -sed 's/^/| /' conftest.$ac_ext >&5
  42425. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42426. +# Files that config.status was made for.
  42427. +config_files="$ac_config_files"
  42428. +config_headers="$ac_config_headers"
  42429. +config_commands="$ac_config_commands"
  42430. - cat >conftest.$ac_ext <<_ACEOF
  42431. -/* confdefs.h. */
  42432. _ACEOF
  42433. -cat confdefs.h >>conftest.$ac_ext
  42434. -cat >>conftest.$ac_ext <<_ACEOF
  42435. -/* end confdefs.h. */
  42436. -$ac_includes_default
  42437. - typedef long long ac__type_sizeof_;
  42438. -int
  42439. -main ()
  42440. -{
  42441. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  42442. -test_array [0] = 0
  42443. - ;
  42444. - return 0;
  42445. -}
  42446. -_ACEOF
  42447. -rm -f conftest.$ac_objext
  42448. -if { (ac_try="$ac_compile"
  42449. -case "(($ac_try" in
  42450. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42451. - *) ac_try_echo=$ac_try;;
  42452. -esac
  42453. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42454. - (eval "$ac_compile") 2>conftest.er1
  42455. - ac_status=$?
  42456. - grep -v '^ *+' conftest.er1 >conftest.err
  42457. - rm -f conftest.er1
  42458. - cat conftest.err >&5
  42459. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42460. - (exit $ac_status); } && {
  42461. - test -z "$ac_c_werror_flag" ||
  42462. - test ! -s conftest.err
  42463. - } && test -s conftest.$ac_objext; then
  42464. - ac_hi=-1 ac_mid=-1
  42465. - while :; do
  42466. - cat >conftest.$ac_ext <<_ACEOF
  42467. -/* confdefs.h. */
  42468. -_ACEOF
  42469. -cat confdefs.h >>conftest.$ac_ext
  42470. -cat >>conftest.$ac_ext <<_ACEOF
  42471. -/* end confdefs.h. */
  42472. -$ac_includes_default
  42473. - typedef long long ac__type_sizeof_;
  42474. -int
  42475. -main ()
  42476. -{
  42477. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  42478. -test_array [0] = 0
  42479. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42480. +ac_cs_usage="\
  42481. +\`$as_me' instantiates files and other configuration actions
  42482. +from templates according to the current configuration. Unless the files
  42483. +and actions are specified as TAGs, all are instantiated by default.
  42484. - ;
  42485. - return 0;
  42486. -}
  42487. -_ACEOF
  42488. -rm -f conftest.$ac_objext
  42489. -if { (ac_try="$ac_compile"
  42490. -case "(($ac_try" in
  42491. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42492. - *) ac_try_echo=$ac_try;;
  42493. -esac
  42494. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42495. - (eval "$ac_compile") 2>conftest.er1
  42496. - ac_status=$?
  42497. - grep -v '^ *+' conftest.er1 >conftest.err
  42498. - rm -f conftest.er1
  42499. - cat conftest.err >&5
  42500. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42501. - (exit $ac_status); } && {
  42502. - test -z "$ac_c_werror_flag" ||
  42503. - test ! -s conftest.err
  42504. - } && test -s conftest.$ac_objext; then
  42505. - ac_lo=$ac_mid; break
  42506. -else
  42507. - echo "$as_me: failed program was:" >&5
  42508. -sed 's/^/| /' conftest.$ac_ext >&5
  42509. +Usage: $0 [OPTION]... [TAG]...
  42510. - ac_hi=`expr '(' $ac_mid ')' - 1`
  42511. - if test $ac_mid -le $ac_hi; then
  42512. - ac_lo= ac_hi=
  42513. - break
  42514. - fi
  42515. - ac_mid=`expr 2 '*' $ac_mid`
  42516. -fi
  42517. + -h, --help print this help, then exit
  42518. + -V, --version print version number and configuration settings, then exit
  42519. + --config print configuration, then exit
  42520. + -q, --quiet, --silent
  42521. + do not print progress messages
  42522. + -d, --debug don't remove temporary files
  42523. + --recheck update $as_me by reconfiguring in the same conditions
  42524. + --file=FILE[:TEMPLATE]
  42525. + instantiate the configuration file FILE
  42526. + --header=FILE[:TEMPLATE]
  42527. + instantiate the configuration header FILE
  42528. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42529. - done
  42530. -else
  42531. - echo "$as_me: failed program was:" >&5
  42532. -sed 's/^/| /' conftest.$ac_ext >&5
  42533. +Configuration files:
  42534. +$config_files
  42535. - ac_lo= ac_hi=
  42536. -fi
  42537. +Configuration headers:
  42538. +$config_headers
  42539. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42540. -fi
  42541. +Configuration commands:
  42542. +$config_commands
  42543. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42544. -# Binary search between lo and hi bounds.
  42545. -while test "x$ac_lo" != "x$ac_hi"; do
  42546. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  42547. - cat >conftest.$ac_ext <<_ACEOF
  42548. -/* confdefs.h. */
  42549. -_ACEOF
  42550. -cat confdefs.h >>conftest.$ac_ext
  42551. -cat >>conftest.$ac_ext <<_ACEOF
  42552. -/* end confdefs.h. */
  42553. -$ac_includes_default
  42554. - typedef long long ac__type_sizeof_;
  42555. -int
  42556. -main ()
  42557. -{
  42558. -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  42559. -test_array [0] = 0
  42560. +Report bugs to <christos@astron.com>."
  42561. - ;
  42562. - return 0;
  42563. -}
  42564. _ACEOF
  42565. -rm -f conftest.$ac_objext
  42566. -if { (ac_try="$ac_compile"
  42567. -case "(($ac_try" in
  42568. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42569. - *) ac_try_echo=$ac_try;;
  42570. -esac
  42571. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42572. - (eval "$ac_compile") 2>conftest.er1
  42573. - ac_status=$?
  42574. - grep -v '^ *+' conftest.er1 >conftest.err
  42575. - rm -f conftest.er1
  42576. - cat conftest.err >&5
  42577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42578. - (exit $ac_status); } && {
  42579. - test -z "$ac_c_werror_flag" ||
  42580. - test ! -s conftest.err
  42581. - } && test -s conftest.$ac_objext; then
  42582. - ac_hi=$ac_mid
  42583. -else
  42584. - echo "$as_me: failed program was:" >&5
  42585. -sed 's/^/| /' conftest.$ac_ext >&5
  42586. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42587. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  42588. +ac_cs_version="\\
  42589. +file config.status 5.04
  42590. +configured by $0, generated by GNU Autoconf 2.65,
  42591. + with options \\"\$ac_cs_config\\"
  42592. - ac_lo=`expr '(' $ac_mid ')' + 1`
  42593. -fi
  42594. +Copyright (C) 2009 Free Software Foundation, Inc.
  42595. +This config.status script is free software; the Free Software Foundation
  42596. +gives unlimited permission to copy, distribute and modify it."
  42597. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42598. -done
  42599. -case $ac_lo in
  42600. -?*) ac_cv_sizeof_long_long=$ac_lo;;
  42601. -'') if test "$ac_cv_type_long_long" = yes; then
  42602. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  42603. -See \`config.log' for more details." >&5
  42604. -echo "$as_me: error: cannot compute sizeof (long long)
  42605. -See \`config.log' for more details." >&2;}
  42606. - { (exit 77); exit 77; }; }
  42607. - else
  42608. - ac_cv_sizeof_long_long=0
  42609. - fi ;;
  42610. -esac
  42611. -else
  42612. - cat >conftest.$ac_ext <<_ACEOF
  42613. -/* confdefs.h. */
  42614. +ac_pwd='$ac_pwd'
  42615. +srcdir='$srcdir'
  42616. +INSTALL='$INSTALL'
  42617. +MKDIR_P='$MKDIR_P'
  42618. +AWK='$AWK'
  42619. +test -n "\$AWK" || AWK=awk
  42620. _ACEOF
  42621. -cat confdefs.h >>conftest.$ac_ext
  42622. -cat >>conftest.$ac_ext <<_ACEOF
  42623. -/* end confdefs.h. */
  42624. -$ac_includes_default
  42625. - typedef long long ac__type_sizeof_;
  42626. -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  42627. -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  42628. -#include <stdio.h>
  42629. -#include <stdlib.h>
  42630. -int
  42631. -main ()
  42632. -{
  42633. - FILE *f = fopen ("conftest.val", "w");
  42634. - if (! f)
  42635. - return 1;
  42636. - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  42637. - {
  42638. - long int i = longval ();
  42639. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  42640. - return 1;
  42641. - fprintf (f, "%ld\n", i);
  42642. - }
  42643. - else
  42644. - {
  42645. - unsigned long int i = ulongval ();
  42646. - if (i != ((long int) (sizeof (ac__type_sizeof_))))
  42647. - return 1;
  42648. - fprintf (f, "%lu\n", i);
  42649. - }
  42650. - return ferror (f) || fclose (f) != 0;
  42651. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42652. +# The default lists apply if the user does not specify any file.
  42653. +ac_need_defaults=:
  42654. +while test $# != 0
  42655. +do
  42656. + case $1 in
  42657. + --*=*)
  42658. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  42659. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  42660. + ac_shift=:
  42661. + ;;
  42662. + *)
  42663. + ac_option=$1
  42664. + ac_optarg=$2
  42665. + ac_shift=shift
  42666. + ;;
  42667. + esac
  42668. - ;
  42669. - return 0;
  42670. -}
  42671. -_ACEOF
  42672. -rm -f conftest$ac_exeext
  42673. -if { (ac_try="$ac_link"
  42674. -case "(($ac_try" in
  42675. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42676. - *) ac_try_echo=$ac_try;;
  42677. -esac
  42678. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42679. - (eval "$ac_link") 2>&5
  42680. - ac_status=$?
  42681. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42682. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  42683. - { (case "(($ac_try" in
  42684. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42685. - *) ac_try_echo=$ac_try;;
  42686. -esac
  42687. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42688. - (eval "$ac_try") 2>&5
  42689. - ac_status=$?
  42690. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42691. - (exit $ac_status); }; }; then
  42692. - ac_cv_sizeof_long_long=`cat conftest.val`
  42693. -else
  42694. - echo "$as_me: program exited with status $ac_status" >&5
  42695. -echo "$as_me: failed program was:" >&5
  42696. -sed 's/^/| /' conftest.$ac_ext >&5
  42697. + case $ac_option in
  42698. + # Handling of the options.
  42699. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  42700. + ac_cs_recheck=: ;;
  42701. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  42702. + $as_echo "$ac_cs_version"; exit ;;
  42703. + --config | --confi | --conf | --con | --co | --c )
  42704. + $as_echo "$ac_cs_config"; exit ;;
  42705. + --debug | --debu | --deb | --de | --d | -d )
  42706. + debug=: ;;
  42707. + --file | --fil | --fi | --f )
  42708. + $ac_shift
  42709. + case $ac_optarg in
  42710. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  42711. + esac
  42712. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  42713. + ac_need_defaults=false;;
  42714. + --header | --heade | --head | --hea )
  42715. + $ac_shift
  42716. + case $ac_optarg in
  42717. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  42718. + esac
  42719. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  42720. + ac_need_defaults=false;;
  42721. + --he | --h)
  42722. + # Conflict between --help and --header
  42723. + as_fn_error "ambiguous option: \`$1'
  42724. +Try \`$0 --help' for more information.";;
  42725. + --help | --hel | -h )
  42726. + $as_echo "$ac_cs_usage"; exit ;;
  42727. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  42728. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  42729. + ac_cs_silent=: ;;
  42730. -( exit $ac_status )
  42731. -if test "$ac_cv_type_long_long" = yes; then
  42732. - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  42733. -See \`config.log' for more details." >&5
  42734. -echo "$as_me: error: cannot compute sizeof (long long)
  42735. -See \`config.log' for more details." >&2;}
  42736. - { (exit 77); exit 77; }; }
  42737. - else
  42738. - ac_cv_sizeof_long_long=0
  42739. - fi
  42740. -fi
  42741. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42742. + # This is an error.
  42743. + -*) as_fn_error "unrecognized option: \`$1'
  42744. +Try \`$0 --help' for more information." ;;
  42745. +
  42746. + *) as_fn_append ac_config_targets " $1"
  42747. + ac_need_defaults=false ;;
  42748. +
  42749. + esac
  42750. + shift
  42751. +done
  42752. +
  42753. +ac_configure_extra_args=
  42754. +
  42755. +if $ac_cs_silent; then
  42756. + exec 6>/dev/null
  42757. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  42758. fi
  42759. -rm -f conftest.val
  42760. +
  42761. +_ACEOF
  42762. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42763. +if \$ac_cs_recheck; then
  42764. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  42765. + shift
  42766. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  42767. + CONFIG_SHELL='$SHELL'
  42768. + export CONFIG_SHELL
  42769. + exec "\$@"
  42770. fi
  42771. -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  42772. -echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  42773. +_ACEOF
  42774. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42775. +exec 5>>config.log
  42776. +{
  42777. + echo
  42778. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  42779. +## Running $as_me. ##
  42780. +_ASBOX
  42781. + $as_echo "$ac_log"
  42782. +} >&5
  42783. +
  42784. +_ACEOF
  42785. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42786. +#
  42787. +# INIT-COMMANDS
  42788. +#
  42789. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  42790. -cat >>confdefs.h <<_ACEOF
  42791. -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  42792. -_ACEOF
  42793. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  42794. +# if CDPATH is set.
  42795. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  42796. +sed_quote_subst='$sed_quote_subst'
  42797. +double_quote_subst='$double_quote_subst'
  42798. +delay_variable_subst='$delay_variable_subst'
  42799. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  42800. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  42801. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  42802. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  42803. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  42804. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  42805. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  42806. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  42807. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  42808. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  42809. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  42810. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  42811. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  42812. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  42813. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  42814. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  42815. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  42816. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  42817. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  42818. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  42819. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  42820. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  42821. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  42822. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  42823. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  42824. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  42825. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  42826. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42827. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  42828. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  42829. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  42830. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  42831. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  42832. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  42833. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  42834. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42835. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42836. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42837. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  42838. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  42839. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  42840. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  42841. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  42842. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  42843. +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"`'
  42844. +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"`'
  42845. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  42846. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  42847. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  42848. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  42849. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  42850. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  42851. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  42852. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  42853. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  42854. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  42855. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  42856. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  42857. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  42858. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  42859. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  42860. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  42861. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42862. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42863. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  42864. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  42865. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42866. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42867. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  42868. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42869. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42870. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42871. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42872. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42873. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42874. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  42875. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  42876. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  42877. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42878. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  42879. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  42880. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  42881. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  42882. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  42883. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  42884. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  42885. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  42886. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  42887. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  42888. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  42889. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42890. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  42891. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  42892. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42893. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42894. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  42895. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  42896. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  42897. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  42898. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  42899. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  42900. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  42901. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42902. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42903. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42904. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42905. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42906. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42907. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  42908. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  42909. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42910. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42911. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  42912. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  42913. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  42914. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  42915. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  42916. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  42917. +
  42918. +LTCC='$LTCC'
  42919. +LTCFLAGS='$LTCFLAGS'
  42920. +compiler='$compiler_DEFAULT'
  42921. +
  42922. +# Quote evaled strings.
  42923. +for var in SED \
  42924. +GREP \
  42925. +EGREP \
  42926. +FGREP \
  42927. +LD \
  42928. +NM \
  42929. +LN_S \
  42930. +lt_SP2NL \
  42931. +lt_NL2SP \
  42932. +reload_flag \
  42933. +OBJDUMP \
  42934. +deplibs_check_method \
  42935. +file_magic_cmd \
  42936. +AR \
  42937. +AR_FLAGS \
  42938. +STRIP \
  42939. +RANLIB \
  42940. +CC \
  42941. +CFLAGS \
  42942. +compiler \
  42943. +lt_cv_sys_global_symbol_pipe \
  42944. +lt_cv_sys_global_symbol_to_cdecl \
  42945. +lt_cv_sys_global_symbol_to_c_name_address \
  42946. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  42947. +SHELL \
  42948. +ECHO \
  42949. +lt_prog_compiler_no_builtin_flag \
  42950. +lt_prog_compiler_wl \
  42951. +lt_prog_compiler_pic \
  42952. +lt_prog_compiler_static \
  42953. +lt_cv_prog_compiler_c_o \
  42954. +need_locks \
  42955. +DSYMUTIL \
  42956. +NMEDIT \
  42957. +LIPO \
  42958. +OTOOL \
  42959. +OTOOL64 \
  42960. +shrext_cmds \
  42961. +export_dynamic_flag_spec \
  42962. +whole_archive_flag_spec \
  42963. +compiler_needs_object \
  42964. +with_gnu_ld \
  42965. +allow_undefined_flag \
  42966. +no_undefined_flag \
  42967. +hardcode_libdir_flag_spec \
  42968. +hardcode_libdir_flag_spec_ld \
  42969. +hardcode_libdir_separator \
  42970. +fix_srcfile_path \
  42971. +exclude_expsyms \
  42972. +include_expsyms \
  42973. +file_list_spec \
  42974. +variables_saved_for_relink \
  42975. +libname_spec \
  42976. +library_names_spec \
  42977. +soname_spec \
  42978. +finish_eval \
  42979. +old_striplib \
  42980. +striplib; do
  42981. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  42982. + *[\\\\\\\`\\"\\\$]*)
  42983. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  42984. + ;;
  42985. + *)
  42986. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  42987. + ;;
  42988. + esac
  42989. +done
  42990. +# Double-quote double-evaled strings.
  42991. +for var in reload_cmds \
  42992. +old_postinstall_cmds \
  42993. +old_postuninstall_cmds \
  42994. +old_archive_cmds \
  42995. +extract_expsyms_cmds \
  42996. +old_archive_from_new_cmds \
  42997. +old_archive_from_expsyms_cmds \
  42998. +archive_cmds \
  42999. +archive_expsym_cmds \
  43000. +module_cmds \
  43001. +module_expsym_cmds \
  43002. +export_symbols_cmds \
  43003. +prelink_cmds \
  43004. +postinstall_cmds \
  43005. +postuninstall_cmds \
  43006. +finish_cmds \
  43007. +sys_lib_search_path_spec \
  43008. +sys_lib_dlsearch_path_spec; do
  43009. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  43010. + *[\\\\\\\`\\"\\\$]*)
  43011. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  43012. + ;;
  43013. + *)
  43014. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  43015. + ;;
  43016. + esac
  43017. +done
  43018. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  43019. +case \$lt_ECHO in
  43020. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  43021. + ;;
  43022. +esac
  43023. +ac_aux_dir='$ac_aux_dir'
  43024. +xsi_shell='$xsi_shell'
  43025. +lt_shell_append='$lt_shell_append'
  43026. -{ echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
  43027. -echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
  43028. -# Check whether --enable-warnings was given.
  43029. -if test "${enable_warnings+set}" = set; then
  43030. - enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  43031. - { echo "$as_me:$LINENO: result: no" >&5
  43032. -echo "${ECHO_T}no" >&6; }
  43033. - WARNINGS=
  43034. -else
  43035. - { echo "$as_me:$LINENO: result: yes" >&5
  43036. -echo "${ECHO_T}yes" >&6; }
  43037. - WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  43038. - -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  43039. - -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  43040. - -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  43041. +# See if we are running on zsh, and set the options which allow our
  43042. +# commands through without removal of \ escapes INIT.
  43043. +if test -n "\${ZSH_VERSION+set}" ; then
  43044. + setopt NO_GLOB_SUBST
  43045. fi
  43046. -else
  43047. -if test "$GCC" = yes; then
  43048. - { echo "$as_me:$LINENO: result: yes" >&5
  43049. -echo "${ECHO_T}yes" >&6; }
  43050. - WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  43051. - -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  43052. - -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  43053. - -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
  43054. -else
  43055. - WARNINGS=
  43056. - { echo "$as_me:$LINENO: result: no" >&5
  43057. -echo "${ECHO_T}no" >&6; }
  43058. -fi
  43059. -fi
  43060. + PACKAGE='$PACKAGE'
  43061. + VERSION='$VERSION'
  43062. + TIMESTAMP='$TIMESTAMP'
  43063. + RM='$RM'
  43064. + ofile='$ofile'
  43065. +_ACEOF
  43066. +
  43067. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43068. +
  43069. +# Handling of arguments.
  43070. +for ac_config_target in $ac_config_targets
  43071. +do
  43072. + case $ac_config_target in
  43073. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  43074. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  43075. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  43076. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  43077. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  43078. + "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  43079. + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  43080. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  43081. + "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  43082. +
  43083. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  43084. + esac
  43085. +done
  43086. +# If the user did not use the arguments to specify the items to instantiate,
  43087. +# then the envvar interface is used. Set only those that are not.
  43088. +# We use the long form for the default assignment because of an extremely
  43089. +# bizarre bug on SunOS 4.1.3.
  43090. +if $ac_need_defaults; then
  43091. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  43092. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  43093. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  43094. +fi
  43095. +# Have a temporary directory for convenience. Make it in the build tree
  43096. +# simply because there is no reason against having it here, and in addition,
  43097. +# creating and moving files from /tmp can sometimes cause problems.
  43098. +# Hook for its removal unless debugging.
  43099. +# Note that there is a small window in which the directory will not be cleaned:
  43100. +# after its creation but before its name has been assigned to `$tmp'.
  43101. +$debug ||
  43102. +{
  43103. + tmp=
  43104. + trap 'exit_status=$?
  43105. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  43106. +' 0
  43107. + trap 'as_fn_exit 1' 1 2 13 15
  43108. +}
  43109. +# Create a (secure) tmp directory for tmp files.
  43110. +{
  43111. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  43112. + test -n "$tmp" && test -d "$tmp"
  43113. +} ||
  43114. +{
  43115. + tmp=./conf$$-$RANDOM
  43116. + (umask 077 && mkdir "$tmp")
  43117. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  43118. +# Set up the scripts for CONFIG_FILES section.
  43119. +# No need to generate them if there are no CONFIG_FILES.
  43120. +# This happens for instance with `./config.status config.h'.
  43121. +if test -n "$CONFIG_FILES"; then
  43122. -for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
  43123. -do
  43124. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  43125. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  43126. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  43127. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  43128. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43129. +ac_cr=`echo X | tr X '\015'`
  43130. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  43131. +# But we know of no other shell where ac_cr would be empty at this
  43132. +# point, so we can use a bashism as a fallback.
  43133. +if test "x$ac_cr" = x; then
  43134. + eval ac_cr=\$\'\\r\'
  43135. +fi
  43136. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  43137. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  43138. + ac_cs_awk_cr='\r'
  43139. else
  43140. - cat >conftest.$ac_ext <<_ACEOF
  43141. -/* confdefs.h. */
  43142. + ac_cs_awk_cr=$ac_cr
  43143. +fi
  43144. +
  43145. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  43146. _ACEOF
  43147. -cat confdefs.h >>conftest.$ac_ext
  43148. -cat >>conftest.$ac_ext <<_ACEOF
  43149. -/* end confdefs.h. */
  43150. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  43151. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  43152. -#define $ac_func innocuous_$ac_func
  43153. -/* System header to define __stub macros and hopefully few prototypes,
  43154. - which can conflict with char $ac_func (); below.
  43155. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  43156. - <limits.h> exists even on freestanding compilers. */
  43157. -#ifdef __STDC__
  43158. -# include <limits.h>
  43159. -#else
  43160. -# include <assert.h>
  43161. -#endif
  43162. +{
  43163. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  43164. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  43165. + echo "_ACEOF"
  43166. +} >conf$$subs.sh ||
  43167. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  43168. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  43169. +ac_delim='%!_!# '
  43170. +for ac_last_try in false false false false false :; do
  43171. + . ./conf$$subs.sh ||
  43172. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  43173. -#undef $ac_func
  43174. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  43175. + if test $ac_delim_n = $ac_delim_num; then
  43176. + break
  43177. + elif $ac_last_try; then
  43178. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  43179. + else
  43180. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  43181. + fi
  43182. +done
  43183. +rm -f conf$$subs.sh
  43184. -/* Override any GCC internal prototype to avoid an error.
  43185. - Use char because int might match the return type of a GCC
  43186. - builtin and then its argument prototype would still apply. */
  43187. -#ifdef __cplusplus
  43188. -extern "C"
  43189. -#endif
  43190. -char $ac_func ();
  43191. -/* The GNU C library defines this for functions which it implements
  43192. - to always fail with ENOSYS. Some functions are actually named
  43193. - something starting with __ and the normal name is an alias. */
  43194. -#if defined __stub_$ac_func || defined __stub___$ac_func
  43195. -choke me
  43196. -#endif
  43197. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43198. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  43199. +_ACEOF
  43200. +sed -n '
  43201. +h
  43202. +s/^/S["/; s/!.*/"]=/
  43203. +p
  43204. +g
  43205. +s/^[^!]*!//
  43206. +:repl
  43207. +t repl
  43208. +s/'"$ac_delim"'$//
  43209. +t delim
  43210. +:nl
  43211. +h
  43212. +s/\(.\{148\}\)..*/\1/
  43213. +t more1
  43214. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  43215. +p
  43216. +n
  43217. +b repl
  43218. +:more1
  43219. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  43220. +p
  43221. +g
  43222. +s/.\{148\}//
  43223. +t nl
  43224. +:delim
  43225. +h
  43226. +s/\(.\{148\}\)..*/\1/
  43227. +t more2
  43228. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  43229. +p
  43230. +b
  43231. +:more2
  43232. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  43233. +p
  43234. +g
  43235. +s/.\{148\}//
  43236. +t delim
  43237. +' <conf$$subs.awk | sed '
  43238. +/^[^""]/{
  43239. + N
  43240. + s/\n//
  43241. +}
  43242. +' >>$CONFIG_STATUS || ac_write_fail=1
  43243. +rm -f conf$$subs.awk
  43244. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43245. +_ACAWK
  43246. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  43247. + for (key in S) S_is_set[key] = 1
  43248. + FS = ""
  43249. -int
  43250. -main ()
  43251. +}
  43252. {
  43253. -return $ac_func ();
  43254. - ;
  43255. - return 0;
  43256. + line = $ 0
  43257. + nfields = split(line, field, "@")
  43258. + substed = 0
  43259. + len = length(field[1])
  43260. + for (i = 2; i < nfields; i++) {
  43261. + key = field[i]
  43262. + keylen = length(key)
  43263. + if (S_is_set[key]) {
  43264. + value = S[key]
  43265. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  43266. + len += length(value) + length(field[++i])
  43267. + substed = 1
  43268. + } else
  43269. + len += 1 + keylen
  43270. + }
  43271. +
  43272. + print line
  43273. }
  43274. +
  43275. +_ACAWK
  43276. _ACEOF
  43277. -rm -f conftest.$ac_objext conftest$ac_exeext
  43278. -if { (ac_try="$ac_link"
  43279. -case "(($ac_try" in
  43280. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43281. - *) ac_try_echo=$ac_try;;
  43282. -esac
  43283. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43284. - (eval "$ac_link") 2>conftest.er1
  43285. - ac_status=$?
  43286. - grep -v '^ *+' conftest.er1 >conftest.err
  43287. - rm -f conftest.er1
  43288. - cat conftest.err >&5
  43289. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43290. - (exit $ac_status); } && {
  43291. - test -z "$ac_c_werror_flag" ||
  43292. - test ! -s conftest.err
  43293. - } && test -s conftest$ac_exeext &&
  43294. - $as_test_x conftest$ac_exeext; then
  43295. - eval "$as_ac_var=yes"
  43296. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43297. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  43298. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  43299. else
  43300. - echo "$as_me: failed program was:" >&5
  43301. -sed 's/^/| /' conftest.$ac_ext >&5
  43302. + cat
  43303. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  43304. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  43305. +_ACEOF
  43306. - eval "$as_ac_var=no"
  43307. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  43308. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  43309. +# trailing colons and then remove the whole line if VPATH becomes empty
  43310. +# (actually we leave an empty line to preserve line numbers).
  43311. +if test "x$srcdir" = x.; then
  43312. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  43313. +s/:*\$(srcdir):*/:/
  43314. +s/:*\${srcdir}:*/:/
  43315. +s/:*@srcdir@:*/:/
  43316. +s/^\([^=]*=[ ]*\):*/\1/
  43317. +s/:*$//
  43318. +s/^[^=]*=[ ]*$//
  43319. +}'
  43320. fi
  43321. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43322. - conftest$ac_exeext conftest.$ac_ext
  43323. -fi
  43324. -ac_res=`eval echo '${'$as_ac_var'}'`
  43325. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  43326. -echo "${ECHO_T}$ac_res" >&6; }
  43327. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  43328. - cat >>confdefs.h <<_ACEOF
  43329. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  43330. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43331. +fi # test -n "$CONFIG_FILES"
  43332. +
  43333. +# Set up the scripts for CONFIG_HEADERS section.
  43334. +# No need to generate them if there are no CONFIG_HEADERS.
  43335. +# This happens for instance with `./config.status Makefile'.
  43336. +if test -n "$CONFIG_HEADERS"; then
  43337. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  43338. +BEGIN {
  43339. _ACEOF
  43340. -fi
  43341. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  43342. +# here-document in config.status, that substitutes the proper values into
  43343. +# config.h.in to produce config.h.
  43344. +
  43345. +# Create a delimiter string that does not exist in confdefs.h, to ease
  43346. +# handling of long lines.
  43347. +ac_delim='%!_!# '
  43348. +for ac_last_try in false false :; do
  43349. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  43350. + if test -z "$ac_t"; then
  43351. + break
  43352. + elif $ac_last_try; then
  43353. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  43354. + else
  43355. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  43356. + fi
  43357. done
  43358. +# For the awk script, D is an array of macro values keyed by name,
  43359. +# likewise P contains macro parameters if any. Preserve backslash
  43360. +# newline sequences.
  43361. +
  43362. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  43363. +sed -n '
  43364. +s/.\{148\}/&'"$ac_delim"'/g
  43365. +t rset
  43366. +:rset
  43367. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  43368. +t def
  43369. +d
  43370. +:def
  43371. +s/\\$//
  43372. +t bsnl
  43373. +s/["\\]/\\&/g
  43374. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  43375. +D["\1"]=" \3"/p
  43376. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  43377. +d
  43378. +:bsnl
  43379. +s/["\\]/\\&/g
  43380. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  43381. +D["\1"]=" \3\\\\\\n"\\/p
  43382. +t cont
  43383. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  43384. +t cont
  43385. +d
  43386. +:cont
  43387. +n
  43388. +s/.\{148\}/&'"$ac_delim"'/g
  43389. +t clear
  43390. +:clear
  43391. +s/\\$//
  43392. +t bsnlc
  43393. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  43394. +d
  43395. +:bsnlc
  43396. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  43397. +b cont
  43398. +' <confdefs.h | sed '
  43399. +s/'"$ac_delim"'/"\\\
  43400. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  43401. +
  43402. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43403. + for (key in D) D_is_set[key] = 1
  43404. + FS = ""
  43405. +}
  43406. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  43407. + line = \$ 0
  43408. + split(line, arg, " ")
  43409. + if (arg[1] == "#") {
  43410. + defundef = arg[2]
  43411. + mac1 = arg[3]
  43412. + } else {
  43413. + defundef = substr(arg[1], 2)
  43414. + mac1 = arg[2]
  43415. + }
  43416. + split(mac1, mac2, "(") #)
  43417. + macro = mac2[1]
  43418. + prefix = substr(line, 1, index(line, defundef) - 1)
  43419. + if (D_is_set[macro]) {
  43420. + # Preserve the white space surrounding the "#".
  43421. + print prefix "define", macro P[macro] D[macro]
  43422. + next
  43423. + } else {
  43424. + # Replace #undef with comments. This is necessary, for example,
  43425. + # in the case of _POSIX_SOURCE, which is predefined and required
  43426. + # on some systems where configure will not decide to define it.
  43427. + if (defundef == "undef") {
  43428. + print "/*", prefix defundef, macro, "*/"
  43429. + next
  43430. + }
  43431. + }
  43432. +}
  43433. +{ print }
  43434. +_ACAWK
  43435. +_ACEOF
  43436. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43437. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  43438. +fi # test -n "$CONFIG_HEADERS"
  43439. +
  43440. +
  43441. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  43442. +shift
  43443. +for ac_tag
  43444. +do
  43445. + case $ac_tag in
  43446. + :[FHLC]) ac_mode=$ac_tag; continue;;
  43447. + esac
  43448. + case $ac_mode$ac_tag in
  43449. + :[FHL]*:*);;
  43450. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  43451. + :[FH]-) ac_tag=-:-;;
  43452. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  43453. + esac
  43454. + ac_save_IFS=$IFS
  43455. + IFS=:
  43456. + set x $ac_tag
  43457. + IFS=$ac_save_IFS
  43458. + shift
  43459. + ac_file=$1
  43460. + shift
  43461. +
  43462. + case $ac_mode in
  43463. + :L) ac_source=$1;;
  43464. + :[FH])
  43465. + ac_file_inputs=
  43466. + for ac_f
  43467. + do
  43468. + case $ac_f in
  43469. + -) ac_f="$tmp/stdin";;
  43470. + *) # Look for the file first in the build tree, then in the source tree
  43471. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  43472. + # because $ac_f cannot contain `:'.
  43473. + test -f "$ac_f" ||
  43474. + case $ac_f in
  43475. + [\\/$]*) false;;
  43476. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  43477. + esac ||
  43478. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  43479. + esac
  43480. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  43481. + as_fn_append ac_file_inputs " '$ac_f'"
  43482. + done
  43483. +
  43484. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  43485. + # use $as_me), people would be surprised to read:
  43486. + # /* config.h. Generated by config.status. */
  43487. + configure_input='Generated from '`
  43488. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  43489. + `' by configure.'
  43490. + if test x"$ac_file" != x-; then
  43491. + configure_input="$ac_file. $configure_input"
  43492. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  43493. +$as_echo "$as_me: creating $ac_file" >&6;}
  43494. + fi
  43495. + # Neutralize special characters interpreted by sed in replacement strings.
  43496. + case $configure_input in #(
  43497. + *\&* | *\|* | *\\* )
  43498. + ac_sed_conf_input=`$as_echo "$configure_input" |
  43499. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  43500. + *) ac_sed_conf_input=$configure_input;;
  43501. + esac
  43502. +
  43503. + case $ac_tag in
  43504. + *:-:* | *:-) cat >"$tmp/stdin" \
  43505. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  43506. + esac
  43507. + ;;
  43508. + esac
  43509. + ac_dir=`$as_dirname -- "$ac_file" ||
  43510. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43511. + X"$ac_file" : 'X\(//\)[^/]' \| \
  43512. + X"$ac_file" : 'X\(//\)$' \| \
  43513. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  43514. +$as_echo X"$ac_file" |
  43515. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43516. + s//\1/
  43517. + q
  43518. + }
  43519. + /^X\(\/\/\)[^/].*/{
  43520. + s//\1/
  43521. + q
  43522. + }
  43523. + /^X\(\/\/\)$/{
  43524. + s//\1/
  43525. + q
  43526. + }
  43527. + /^X\(\/\).*/{
  43528. + s//\1/
  43529. + q
  43530. + }
  43531. + s/.*/./; q'`
  43532. + as_dir="$ac_dir"; as_fn_mkdir_p
  43533. + ac_builddir=.
  43534. +case "$ac_dir" in
  43535. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  43536. +*)
  43537. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  43538. + # A ".." for each directory in $ac_dir_suffix.
  43539. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  43540. + case $ac_top_builddir_sub in
  43541. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  43542. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  43543. + esac ;;
  43544. +esac
  43545. +ac_abs_top_builddir=$ac_pwd
  43546. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  43547. +# for backward compatibility:
  43548. +ac_top_builddir=$ac_top_build_prefix
  43549. +case $srcdir in
  43550. + .) # We are building in place.
  43551. + ac_srcdir=.
  43552. + ac_top_srcdir=$ac_top_builddir_sub
  43553. + ac_abs_top_srcdir=$ac_pwd ;;
  43554. + [\\/]* | ?:[\\/]* ) # Absolute name.
  43555. + ac_srcdir=$srcdir$ac_dir_suffix;
  43556. + ac_top_srcdir=$srcdir
  43557. + ac_abs_top_srcdir=$srcdir ;;
  43558. + *) # Relative name.
  43559. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  43560. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  43561. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  43562. +esac
  43563. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  43564. + case $ac_mode in
  43565. + :F)
  43566. + #
  43567. + # CONFIG_FILE
  43568. + #
  43569. -for ac_func in getopt_long asprintf vasprintf strlcpy strlcat
  43570. -do
  43571. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  43572. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  43573. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  43574. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  43575. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43576. -else
  43577. - cat >conftest.$ac_ext <<_ACEOF
  43578. -/* confdefs.h. */
  43579. + case $INSTALL in
  43580. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  43581. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  43582. + esac
  43583. + ac_MKDIR_P=$MKDIR_P
  43584. + case $MKDIR_P in
  43585. + [\\/$]* | ?:[\\/]* ) ;;
  43586. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  43587. + esac
  43588. _ACEOF
  43589. -cat confdefs.h >>conftest.$ac_ext
  43590. -cat >>conftest.$ac_ext <<_ACEOF
  43591. -/* end confdefs.h. */
  43592. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  43593. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  43594. -#define $ac_func innocuous_$ac_func
  43595. -
  43596. -/* System header to define __stub macros and hopefully few prototypes,
  43597. - which can conflict with char $ac_func (); below.
  43598. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  43599. - <limits.h> exists even on freestanding compilers. */
  43600. -
  43601. -#ifdef __STDC__
  43602. -# include <limits.h>
  43603. -#else
  43604. -# include <assert.h>
  43605. -#endif
  43606. -
  43607. -#undef $ac_func
  43608. -
  43609. -/* Override any GCC internal prototype to avoid an error.
  43610. - Use char because int might match the return type of a GCC
  43611. - builtin and then its argument prototype would still apply. */
  43612. -#ifdef __cplusplus
  43613. -extern "C"
  43614. -#endif
  43615. -char $ac_func ();
  43616. -/* The GNU C library defines this for functions which it implements
  43617. - to always fail with ENOSYS. Some functions are actually named
  43618. - something starting with __ and the normal name is an alias. */
  43619. -#if defined __stub_$ac_func || defined __stub___$ac_func
  43620. -choke me
  43621. -#endif
  43622. -int
  43623. -main ()
  43624. -{
  43625. -return $ac_func ();
  43626. - ;
  43627. - return 0;
  43628. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43629. +# If the template does not know about datarootdir, expand it.
  43630. +# FIXME: This hack should be removed a few years after 2.60.
  43631. +ac_datarootdir_hack=; ac_datarootdir_seen=
  43632. +ac_sed_dataroot='
  43633. +/datarootdir/ {
  43634. + p
  43635. + q
  43636. }
  43637. +/@datadir@/p
  43638. +/@docdir@/p
  43639. +/@infodir@/p
  43640. +/@localedir@/p
  43641. +/@mandir@/p'
  43642. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  43643. +*datarootdir*) ac_datarootdir_seen=yes;;
  43644. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  43645. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  43646. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  43647. _ACEOF
  43648. -rm -f conftest.$ac_objext conftest$ac_exeext
  43649. -if { (ac_try="$ac_link"
  43650. -case "(($ac_try" in
  43651. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43652. - *) ac_try_echo=$ac_try;;
  43653. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43654. + ac_datarootdir_hack='
  43655. + s&@datadir@&$datadir&g
  43656. + s&@docdir@&$docdir&g
  43657. + s&@infodir@&$infodir&g
  43658. + s&@localedir@&$localedir&g
  43659. + s&@mandir@&$mandir&g
  43660. + s&\\\${datarootdir}&$datarootdir&g' ;;
  43661. esac
  43662. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43663. - (eval "$ac_link") 2>conftest.er1
  43664. - ac_status=$?
  43665. - grep -v '^ *+' conftest.er1 >conftest.err
  43666. - rm -f conftest.er1
  43667. - cat conftest.err >&5
  43668. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43669. - (exit $ac_status); } && {
  43670. - test -z "$ac_c_werror_flag" ||
  43671. - test ! -s conftest.err
  43672. - } && test -s conftest$ac_exeext &&
  43673. - $as_test_x conftest$ac_exeext; then
  43674. - eval "$as_ac_var=yes"
  43675. -else
  43676. - echo "$as_me: failed program was:" >&5
  43677. -sed 's/^/| /' conftest.$ac_ext >&5
  43678. -
  43679. - eval "$as_ac_var=no"
  43680. -fi
  43681. +_ACEOF
  43682. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43683. - conftest$ac_exeext conftest.$ac_ext
  43684. -fi
  43685. -ac_res=`eval echo '${'$as_ac_var'}'`
  43686. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  43687. -echo "${ECHO_T}$ac_res" >&6; }
  43688. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  43689. - cat >>confdefs.h <<_ACEOF
  43690. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  43691. +# Neutralize VPATH when `$srcdir' = `.'.
  43692. +# Shell code in configure.ac might set extrasub.
  43693. +# FIXME: do we really want to maintain this feature?
  43694. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43695. +ac_sed_extra="$ac_vpsub
  43696. +$extrasub
  43697. _ACEOF
  43698. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43699. +:t
  43700. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  43701. +s|@configure_input@|$ac_sed_conf_input|;t t
  43702. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  43703. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  43704. +s&@srcdir@&$ac_srcdir&;t t
  43705. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  43706. +s&@top_srcdir@&$ac_top_srcdir&;t t
  43707. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  43708. +s&@builddir@&$ac_builddir&;t t
  43709. +s&@abs_builddir@&$ac_abs_builddir&;t t
  43710. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  43711. +s&@INSTALL@&$ac_INSTALL&;t t
  43712. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  43713. +$ac_datarootdir_hack
  43714. +"
  43715. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  43716. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  43717. -else
  43718. - case " $LIBOBJS " in
  43719. - *" $ac_func.$ac_objext "* ) ;;
  43720. - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  43721. - ;;
  43722. -esac
  43723. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  43724. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  43725. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  43726. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  43727. +which seems to be undefined. Please make sure it is defined." >&5
  43728. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  43729. +which seems to be undefined. Please make sure it is defined." >&2;}
  43730. -fi
  43731. + rm -f "$tmp/stdin"
  43732. + case $ac_file in
  43733. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  43734. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  43735. + esac \
  43736. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  43737. + ;;
  43738. + :H)
  43739. + #
  43740. + # CONFIG_HEADER
  43741. + #
  43742. + if test x"$ac_file" != x-; then
  43743. + {
  43744. + $as_echo "/* $configure_input */" \
  43745. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  43746. + } >"$tmp/config.h" \
  43747. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  43748. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  43749. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  43750. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  43751. + else
  43752. + rm -f "$ac_file"
  43753. + mv "$tmp/config.h" "$ac_file" \
  43754. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  43755. + fi
  43756. + else
  43757. + $as_echo "/* $configure_input */" \
  43758. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  43759. + || as_fn_error "could not create -" "$LINENO" 5
  43760. + fi
  43761. +# Compute "$ac_file"'s index in $config_headers.
  43762. +_am_arg="$ac_file"
  43763. +_am_stamp_count=1
  43764. +for _am_header in $config_headers :; do
  43765. + case $_am_header in
  43766. + $_am_arg | $_am_arg:* )
  43767. + break ;;
  43768. + * )
  43769. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  43770. + esac
  43771. done
  43772. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  43773. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43774. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  43775. + X"$_am_arg" : 'X\(//\)$' \| \
  43776. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  43777. +$as_echo X"$_am_arg" |
  43778. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43779. + s//\1/
  43780. + q
  43781. + }
  43782. + /^X\(\/\/\)[^/].*/{
  43783. + s//\1/
  43784. + q
  43785. + }
  43786. + /^X\(\/\/\)$/{
  43787. + s//\1/
  43788. + q
  43789. + }
  43790. + /^X\(\/\).*/{
  43791. + s//\1/
  43792. + q
  43793. + }
  43794. + s/.*/./; q'`/stamp-h$_am_stamp_count
  43795. + ;;
  43796. +
  43797. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  43798. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  43799. + ;;
  43800. + esac
  43801. + case $ac_file$ac_mode in
  43802. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  43803. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  43804. + # are listed without --file. Let's play safe and only enable the eval
  43805. + # if we detect the quoting.
  43806. + case $CONFIG_FILES in
  43807. + *\'*) eval set x "$CONFIG_FILES" ;;
  43808. + *) set x $CONFIG_FILES ;;
  43809. + esac
  43810. + shift
  43811. + for mf
  43812. + do
  43813. + # Strip MF so we end up with the name of the file.
  43814. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  43815. + # Check whether this is an Automake generated Makefile or not.
  43816. + # We used to match only the files named `Makefile.in', but
  43817. + # some people rename them; so instead we look at the file content.
  43818. + # Grep'ing the first line is not enough: some people post-process
  43819. + # each Makefile.in and add a new line on top of each file to say so.
  43820. + # Grep'ing the whole file is not good either: AIX grep has a line
  43821. + # limit of 2048, but all sed's we know have understand at least 4000.
  43822. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  43823. + dirpart=`$as_dirname -- "$mf" ||
  43824. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43825. + X"$mf" : 'X\(//\)[^/]' \| \
  43826. + X"$mf" : 'X\(//\)$' \| \
  43827. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  43828. +$as_echo X"$mf" |
  43829. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43830. + s//\1/
  43831. + q
  43832. + }
  43833. + /^X\(\/\/\)[^/].*/{
  43834. + s//\1/
  43835. + q
  43836. + }
  43837. + /^X\(\/\/\)$/{
  43838. + s//\1/
  43839. + q
  43840. + }
  43841. + /^X\(\/\).*/{
  43842. + s//\1/
  43843. + q
  43844. + }
  43845. + s/.*/./; q'`
  43846. + else
  43847. + continue
  43848. + fi
  43849. + # Extract the definition of DEPDIR, am__include, and am__quote
  43850. + # from the Makefile without running `make'.
  43851. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  43852. + test -z "$DEPDIR" && continue
  43853. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  43854. + test -z "am__include" && continue
  43855. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  43856. + # When using ansi2knr, U may be empty or an underscore; expand it
  43857. + U=`sed -n 's/^U = //p' < "$mf"`
  43858. + # Find all dependency output files, they are included files with
  43859. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  43860. + # simplest approach to changing $(DEPDIR) to its actual value in the
  43861. + # expansion.
  43862. + for file in `sed -n "
  43863. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  43864. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  43865. + # Make sure the directory exists.
  43866. + test -f "$dirpart/$file" && continue
  43867. + fdir=`$as_dirname -- "$file" ||
  43868. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43869. + X"$file" : 'X\(//\)[^/]' \| \
  43870. + X"$file" : 'X\(//\)$' \| \
  43871. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  43872. +$as_echo X"$file" |
  43873. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43874. + s//\1/
  43875. + q
  43876. + }
  43877. + /^X\(\/\/\)[^/].*/{
  43878. + s//\1/
  43879. + q
  43880. + }
  43881. + /^X\(\/\/\)$/{
  43882. + s//\1/
  43883. + q
  43884. + }
  43885. + /^X\(\/\).*/{
  43886. + s//\1/
  43887. + q
  43888. + }
  43889. + s/.*/./; q'`
  43890. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  43891. + # echo "creating $dirpart/$file"
  43892. + echo '# dummy' > "$dirpart/$file"
  43893. + done
  43894. + done
  43895. +}
  43896. + ;;
  43897. + "libtool":C)
  43898. + # See if we are running on zsh, and set the options which allow our
  43899. + # commands through without removal of \ escapes.
  43900. + if test -n "${ZSH_VERSION+set}" ; then
  43901. + setopt NO_GLOB_SUBST
  43902. + fi
  43903. -{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  43904. -echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
  43905. -if test "${ac_cv_lib_z_gzopen+set}" = set; then
  43906. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43907. -else
  43908. - ac_check_lib_save_LIBS=$LIBS
  43909. -LIBS="-lz $LIBS"
  43910. -cat >conftest.$ac_ext <<_ACEOF
  43911. -/* confdefs.h. */
  43912. -_ACEOF
  43913. -cat confdefs.h >>conftest.$ac_ext
  43914. -cat >>conftest.$ac_ext <<_ACEOF
  43915. -/* end confdefs.h. */
  43916. + cfgfile="${ofile}T"
  43917. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  43918. + $RM "$cfgfile"
  43919. -/* Override any GCC internal prototype to avoid an error.
  43920. - Use char because int might match the return type of a GCC
  43921. - builtin and then its argument prototype would still apply. */
  43922. -#ifdef __cplusplus
  43923. -extern "C"
  43924. -#endif
  43925. -char gzopen ();
  43926. -int
  43927. -main ()
  43928. -{
  43929. -return gzopen ();
  43930. - ;
  43931. - return 0;
  43932. -}
  43933. -_ACEOF
  43934. -rm -f conftest.$ac_objext conftest$ac_exeext
  43935. -if { (ac_try="$ac_link"
  43936. -case "(($ac_try" in
  43937. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43938. - *) ac_try_echo=$ac_try;;
  43939. -esac
  43940. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  43941. - (eval "$ac_link") 2>conftest.er1
  43942. - ac_status=$?
  43943. - grep -v '^ *+' conftest.er1 >conftest.err
  43944. - rm -f conftest.er1
  43945. - cat conftest.err >&5
  43946. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43947. - (exit $ac_status); } && {
  43948. - test -z "$ac_c_werror_flag" ||
  43949. - test ! -s conftest.err
  43950. - } && test -s conftest$ac_exeext &&
  43951. - $as_test_x conftest$ac_exeext; then
  43952. - ac_cv_lib_z_gzopen=yes
  43953. -else
  43954. - echo "$as_me: failed program was:" >&5
  43955. -sed 's/^/| /' conftest.$ac_ext >&5
  43956. + cat <<_LT_EOF >> "$cfgfile"
  43957. +#! $SHELL
  43958. - ac_cv_lib_z_gzopen=no
  43959. -fi
  43960. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  43961. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  43962. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  43963. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  43964. +#
  43965. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  43966. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  43967. +# Written by Gordon Matzigkeit, 1996
  43968. +#
  43969. +# This file is part of GNU Libtool.
  43970. +#
  43971. +# GNU Libtool is free software; you can redistribute it and/or
  43972. +# modify it under the terms of the GNU General Public License as
  43973. +# published by the Free Software Foundation; either version 2 of
  43974. +# the License, or (at your option) any later version.
  43975. +#
  43976. +# As a special exception to the GNU General Public License,
  43977. +# if you distribute this file as part of a program or library that
  43978. +# is built using GNU Libtool, you may include this file under the
  43979. +# same distribution terms that you use for the rest of that program.
  43980. +#
  43981. +# GNU Libtool is distributed in the hope that it will be useful,
  43982. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  43983. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  43984. +# GNU General Public License for more details.
  43985. +#
  43986. +# You should have received a copy of the GNU General Public License
  43987. +# along with GNU Libtool; see the file COPYING. If not, a copy
  43988. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  43989. +# obtained by writing to the Free Software Foundation, Inc.,
  43990. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  43991. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43992. - conftest$ac_exeext conftest.$ac_ext
  43993. -LIBS=$ac_check_lib_save_LIBS
  43994. -fi
  43995. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  43996. -echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
  43997. -if test $ac_cv_lib_z_gzopen = yes; then
  43998. - cat >>confdefs.h <<_ACEOF
  43999. -#define HAVE_LIBZ 1
  44000. -_ACEOF
  44001. - LIBS="-lz $LIBS"
  44002. +# The names of the tagged configurations supported by this script.
  44003. +available_tags=""
  44004. -fi
  44005. +# ### BEGIN LIBTOOL CONFIG
  44006. +# Which release of libtool.m4 was used?
  44007. +macro_version=$macro_version
  44008. +macro_revision=$macro_revision
  44009. - if test "$cross_compiling" = yes; then
  44010. - IS_CROSS_COMPILE_TRUE=
  44011. - IS_CROSS_COMPILE_FALSE='#'
  44012. -else
  44013. - IS_CROSS_COMPILE_TRUE='#'
  44014. - IS_CROSS_COMPILE_FALSE=
  44015. -fi
  44016. +# Whether or not to build shared libraries.
  44017. +build_libtool_libs=$enable_shared
  44018. +# Whether or not to build static libraries.
  44019. +build_old_libs=$enable_static
  44020. -ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  44021. +# What type of objects to build.
  44022. +pic_mode=$pic_mode
  44023. -cat >confcache <<\_ACEOF
  44024. -# This file is a shell script that caches the results of configure
  44025. -# tests run on this system so they can be shared between configure
  44026. -# scripts and configure runs, see configure's option --config-cache.
  44027. -# It is not useful on other systems. If it contains results you don't
  44028. -# want to keep, you may remove or edit it.
  44029. -#
  44030. -# config.status only pays attention to the cache file if you give it
  44031. -# the --recheck option to rerun configure.
  44032. -#
  44033. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  44034. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  44035. -# following values.
  44036. +# Whether or not to optimize for fast installation.
  44037. +fast_install=$enable_fast_install
  44038. -_ACEOF
  44039. +# The host system.
  44040. +host_alias=$host_alias
  44041. +host=$host
  44042. +host_os=$host_os
  44043. -# The following way of writing the cache mishandles newlines in values,
  44044. -# but we know of no workaround that is simple, portable, and efficient.
  44045. -# So, we kill variables containing newlines.
  44046. -# Ultrix sh set writes to stderr and can't be redirected directly,
  44047. -# and sets the high bit in the cache file unless we assign to the vars.
  44048. -(
  44049. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  44050. - eval ac_val=\$$ac_var
  44051. - case $ac_val in #(
  44052. - *${as_nl}*)
  44053. - case $ac_var in #(
  44054. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  44055. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  44056. - esac
  44057. - case $ac_var in #(
  44058. - _ | IFS | as_nl) ;; #(
  44059. - *) $as_unset $ac_var ;;
  44060. - esac ;;
  44061. - esac
  44062. - done
  44063. +# The build system.
  44064. +build_alias=$build_alias
  44065. +build=$build
  44066. +build_os=$build_os
  44067. - (set) 2>&1 |
  44068. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  44069. - *${as_nl}ac_space=\ *)
  44070. - # `set' does not quote correctly, so add quotes (double-quote
  44071. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  44072. - sed -n \
  44073. - "s/'/'\\\\''/g;
  44074. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  44075. - ;; #(
  44076. - *)
  44077. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  44078. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  44079. - ;;
  44080. - esac |
  44081. - sort
  44082. -) |
  44083. - sed '
  44084. - /^ac_cv_env_/b end
  44085. - t clear
  44086. - :clear
  44087. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  44088. - t end
  44089. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  44090. - :end' >>confcache
  44091. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  44092. - if test -w "$cache_file"; then
  44093. - test "x$cache_file" != "x/dev/null" &&
  44094. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  44095. -echo "$as_me: updating cache $cache_file" >&6;}
  44096. - cat confcache >$cache_file
  44097. - else
  44098. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  44099. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  44100. - fi
  44101. -fi
  44102. -rm -f confcache
  44103. +# A sed program that does not truncate output.
  44104. +SED=$lt_SED
  44105. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  44106. -# Let make expand exec_prefix.
  44107. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  44108. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  44109. +Xsed="\$SED -e 1s/^X//"
  44110. -DEFS=-DHAVE_CONFIG_H
  44111. +# A grep program that handles long lines.
  44112. +GREP=$lt_GREP
  44113. -ac_libobjs=
  44114. -ac_ltlibobjs=
  44115. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  44116. - # 1. Remove the extension, and $U if already installed.
  44117. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  44118. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  44119. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  44120. - # will be set to the directory where LIBOBJS objects are built.
  44121. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  44122. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  44123. -done
  44124. -LIBOBJS=$ac_libobjs
  44125. +# An ERE matcher.
  44126. +EGREP=$lt_EGREP
  44127. -LTLIBOBJS=$ac_ltlibobjs
  44128. +# A literal string matcher.
  44129. +FGREP=$lt_FGREP
  44130. +# A BSD- or MS-compatible name lister.
  44131. +NM=$lt_NM
  44132. -if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  44133. - { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
  44134. -Usually this means the macro was only invoked conditionally." >&5
  44135. -echo "$as_me: error: conditional \"FSECT5\" was never defined.
  44136. -Usually this means the macro was only invoked conditionally." >&2;}
  44137. - { (exit 1); exit 1; }; }
  44138. -fi
  44139. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  44140. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  44141. -Usually this means the macro was only invoked conditionally." >&5
  44142. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  44143. -Usually this means the macro was only invoked conditionally." >&2;}
  44144. - { (exit 1); exit 1; }; }
  44145. -fi
  44146. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  44147. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  44148. -Usually this means the macro was only invoked conditionally." >&5
  44149. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  44150. -Usually this means the macro was only invoked conditionally." >&2;}
  44151. - { (exit 1); exit 1; }; }
  44152. -fi
  44153. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  44154. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  44155. -Usually this means the macro was only invoked conditionally." >&5
  44156. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  44157. -Usually this means the macro was only invoked conditionally." >&2;}
  44158. - { (exit 1); exit 1; }; }
  44159. -fi
  44160. -if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  44161. - { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  44162. -Usually this means the macro was only invoked conditionally." >&5
  44163. -echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
  44164. -Usually this means the macro was only invoked conditionally." >&2;}
  44165. - { (exit 1); exit 1; }; }
  44166. -fi
  44167. +# Whether we need soft or hard links.
  44168. +LN_S=$lt_LN_S
  44169. -: ${CONFIG_STATUS=./config.status}
  44170. -ac_clean_files_save=$ac_clean_files
  44171. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  44172. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  44173. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  44174. -cat >$CONFIG_STATUS <<_ACEOF
  44175. -#! $SHELL
  44176. -# Generated by $as_me.
  44177. -# Run this file to recreate the current configuration.
  44178. -# Compiler output produced by configure, useful for debugging
  44179. -# configure, is in config.log if it exists.
  44180. +# What is the maximum length of a command?
  44181. +max_cmd_len=$max_cmd_len
  44182. -debug=false
  44183. -ac_cs_recheck=false
  44184. -ac_cs_silent=false
  44185. -SHELL=\${CONFIG_SHELL-$SHELL}
  44186. -_ACEOF
  44187. +# Object file suffix (normally "o").
  44188. +objext=$ac_objext
  44189. -cat >>$CONFIG_STATUS <<\_ACEOF
  44190. -## --------------------- ##
  44191. -## M4sh Initialization. ##
  44192. -## --------------------- ##
  44193. +# Executable file suffix (normally "").
  44194. +exeext=$exeext
  44195. -# Be more Bourne compatible
  44196. -DUALCASE=1; export DUALCASE # for MKS sh
  44197. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  44198. - emulate sh
  44199. - NULLCMD=:
  44200. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  44201. - # is contrary to our usage. Disable this feature.
  44202. - alias -g '${1+"$@"}'='"$@"'
  44203. - setopt NO_GLOB_SUBST
  44204. -else
  44205. - case `(set -o) 2>/dev/null` in
  44206. - *posix*) set -o posix ;;
  44207. -esac
  44208. +# whether the shell understands "unset".
  44209. +lt_unset=$lt_unset
  44210. -fi
  44211. +# turn spaces into newlines.
  44212. +SP2NL=$lt_lt_SP2NL
  44213. +# turn newlines into spaces.
  44214. +NL2SP=$lt_lt_NL2SP
  44215. +# How to create reloadable object files.
  44216. +reload_flag=$lt_reload_flag
  44217. +reload_cmds=$lt_reload_cmds
  44218. +# An object symbol dumper.
  44219. +OBJDUMP=$lt_OBJDUMP
  44220. -# PATH needs CR
  44221. -# Avoid depending upon Character Ranges.
  44222. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  44223. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  44224. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  44225. -as_cr_digits='0123456789'
  44226. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  44227. +# Method to check whether dependent libraries are shared objects.
  44228. +deplibs_check_method=$lt_deplibs_check_method
  44229. -# The user is always right.
  44230. -if test "${PATH_SEPARATOR+set}" != set; then
  44231. - echo "#! /bin/sh" >conf$$.sh
  44232. - echo "exit 0" >>conf$$.sh
  44233. - chmod +x conf$$.sh
  44234. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  44235. - PATH_SEPARATOR=';'
  44236. - else
  44237. - PATH_SEPARATOR=:
  44238. - fi
  44239. - rm -f conf$$.sh
  44240. -fi
  44241. +# Command to use when deplibs_check_method == "file_magic".
  44242. +file_magic_cmd=$lt_file_magic_cmd
  44243. -# Support unset when possible.
  44244. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  44245. - as_unset=unset
  44246. -else
  44247. - as_unset=false
  44248. -fi
  44249. +# The archiver.
  44250. +AR=$lt_AR
  44251. +AR_FLAGS=$lt_AR_FLAGS
  44252. +# A symbol stripping program.
  44253. +STRIP=$lt_STRIP
  44254. -# IFS
  44255. -# We need space, tab and new line, in precisely that order. Quoting is
  44256. -# there to prevent editors from complaining about space-tab.
  44257. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  44258. -# splitting by setting IFS to empty value.)
  44259. -as_nl='
  44260. -'
  44261. -IFS=" "" $as_nl"
  44262. +# Commands used to install an old-style archive.
  44263. +RANLIB=$lt_RANLIB
  44264. +old_postinstall_cmds=$lt_old_postinstall_cmds
  44265. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  44266. -# Find who we are. Look in the path if we contain no directory separator.
  44267. -case $0 in
  44268. - *[\\/]* ) as_myself=$0 ;;
  44269. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44270. -for as_dir in $PATH
  44271. -do
  44272. - IFS=$as_save_IFS
  44273. - test -z "$as_dir" && as_dir=.
  44274. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  44275. -done
  44276. -IFS=$as_save_IFS
  44277. +# A C compiler.
  44278. +LTCC=$lt_CC
  44279. - ;;
  44280. -esac
  44281. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  44282. -# in which case we are not to be found in the path.
  44283. -if test "x$as_myself" = x; then
  44284. - as_myself=$0
  44285. -fi
  44286. -if test ! -f "$as_myself"; then
  44287. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  44288. - { (exit 1); exit 1; }
  44289. -fi
  44290. +# LTCC compiler flags.
  44291. +LTCFLAGS=$lt_CFLAGS
  44292. -# Work around bugs in pre-3.0 UWIN ksh.
  44293. -for as_var in ENV MAIL MAILPATH
  44294. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  44295. -done
  44296. -PS1='$ '
  44297. -PS2='> '
  44298. -PS4='+ '
  44299. +# Take the output of nm and produce a listing of raw symbols and C names.
  44300. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  44301. -# NLS nuisances.
  44302. -for as_var in \
  44303. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  44304. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  44305. - LC_TELEPHONE LC_TIME
  44306. -do
  44307. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  44308. - eval $as_var=C; export $as_var
  44309. - else
  44310. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  44311. - fi
  44312. -done
  44313. +# Transform the output of nm in a proper C declaration.
  44314. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  44315. -# Required to use basename.
  44316. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  44317. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  44318. - as_expr=expr
  44319. -else
  44320. - as_expr=false
  44321. -fi
  44322. +# Transform the output of nm in a C name address pair.
  44323. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  44324. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  44325. - as_basename=basename
  44326. -else
  44327. - as_basename=false
  44328. -fi
  44329. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  44330. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  44331. +# The name of the directory that contains temporary libtool files.
  44332. +objdir=$objdir
  44333. -# Name of the executable.
  44334. -as_me=`$as_basename -- "$0" ||
  44335. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  44336. - X"$0" : 'X\(//\)$' \| \
  44337. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  44338. -echo X/"$0" |
  44339. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  44340. - s//\1/
  44341. - q
  44342. - }
  44343. - /^X\/\(\/\/\)$/{
  44344. - s//\1/
  44345. - q
  44346. - }
  44347. - /^X\/\(\/\).*/{
  44348. - s//\1/
  44349. - q
  44350. - }
  44351. - s/.*/./; q'`
  44352. +# Shell to use when invoking shell scripts.
  44353. +SHELL=$lt_SHELL
  44354. -# CDPATH.
  44355. -$as_unset CDPATH
  44356. +# An echo program that does not interpret backslashes.
  44357. +ECHO=$lt_ECHO
  44358. +# Used to examine libraries when file_magic_cmd begins with "file".
  44359. +MAGIC_CMD=$MAGIC_CMD
  44360. +# Must we lock files when doing compilation?
  44361. +need_locks=$lt_need_locks
  44362. - as_lineno_1=$LINENO
  44363. - as_lineno_2=$LINENO
  44364. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  44365. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  44366. -
  44367. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  44368. - # uniformly replaced by the line number. The first 'sed' inserts a
  44369. - # line-number line after each line using $LINENO; the second 'sed'
  44370. - # does the real work. The second script uses 'N' to pair each
  44371. - # line-number line with the line containing $LINENO, and appends
  44372. - # trailing '-' during substitution so that $LINENO is not a special
  44373. - # case at line end.
  44374. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  44375. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  44376. - # E. McMahon (1931-1989) for sed's syntax. :-)
  44377. - sed -n '
  44378. - p
  44379. - /[$]LINENO/=
  44380. - ' <$as_myself |
  44381. - sed '
  44382. - s/[$]LINENO.*/&-/
  44383. - t lineno
  44384. - b
  44385. - :lineno
  44386. - N
  44387. - :loop
  44388. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  44389. - t loop
  44390. - s/-\n.*//
  44391. - ' >$as_me.lineno &&
  44392. - chmod +x "$as_me.lineno" ||
  44393. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  44394. - { (exit 1); exit 1; }; }
  44395. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  44396. +DSYMUTIL=$lt_DSYMUTIL
  44397. - # Don't try to exec as it changes $[0], causing all sort of problems
  44398. - # (the dirname of $[0] is not the place where we might find the
  44399. - # original and so on. Autoconf is especially sensitive to this).
  44400. - . "./$as_me.lineno"
  44401. - # Exit status is that of the last command.
  44402. - exit
  44403. -}
  44404. +# Tool to change global to local symbols on Mac OS X.
  44405. +NMEDIT=$lt_NMEDIT
  44406. +# Tool to manipulate fat objects and archives on Mac OS X.
  44407. +LIPO=$lt_LIPO
  44408. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  44409. - as_dirname=dirname
  44410. -else
  44411. - as_dirname=false
  44412. -fi
  44413. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  44414. +OTOOL=$lt_OTOOL
  44415. -ECHO_C= ECHO_N= ECHO_T=
  44416. -case `echo -n x` in
  44417. --n*)
  44418. - case `echo 'x\c'` in
  44419. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  44420. - *) ECHO_C='\c';;
  44421. - esac;;
  44422. -*)
  44423. - ECHO_N='-n';;
  44424. -esac
  44425. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  44426. +OTOOL64=$lt_OTOOL64
  44427. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  44428. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  44429. - as_expr=expr
  44430. -else
  44431. - as_expr=false
  44432. -fi
  44433. +# Old archive suffix (normally "a").
  44434. +libext=$libext
  44435. -rm -f conf$$ conf$$.exe conf$$.file
  44436. -if test -d conf$$.dir; then
  44437. - rm -f conf$$.dir/conf$$.file
  44438. -else
  44439. - rm -f conf$$.dir
  44440. - mkdir conf$$.dir
  44441. -fi
  44442. -echo >conf$$.file
  44443. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  44444. - as_ln_s='ln -s'
  44445. - # ... but there are two gotchas:
  44446. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  44447. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  44448. - # In both cases, we have to default to `cp -p'.
  44449. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  44450. - as_ln_s='cp -p'
  44451. -elif ln conf$$.file conf$$ 2>/dev/null; then
  44452. - as_ln_s=ln
  44453. -else
  44454. - as_ln_s='cp -p'
  44455. -fi
  44456. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  44457. -rmdir conf$$.dir 2>/dev/null
  44458. +# Shared library suffix (normally ".so").
  44459. +shrext_cmds=$lt_shrext_cmds
  44460. -if mkdir -p . 2>/dev/null; then
  44461. - as_mkdir_p=:
  44462. -else
  44463. - test -d ./-p && rmdir ./-p
  44464. - as_mkdir_p=false
  44465. -fi
  44466. +# The commands to extract the exported symbol list from a shared archive.
  44467. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  44468. -if test -x / >/dev/null 2>&1; then
  44469. - as_test_x='test -x'
  44470. -else
  44471. - if ls -dL / >/dev/null 2>&1; then
  44472. - as_ls_L_option=L
  44473. - else
  44474. - as_ls_L_option=
  44475. - fi
  44476. - as_test_x='
  44477. - eval sh -c '\''
  44478. - if test -d "$1"; then
  44479. - test -d "$1/.";
  44480. - else
  44481. - case $1 in
  44482. - -*)set "./$1";;
  44483. - esac;
  44484. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  44485. - ???[sx]*):;;*)false;;esac;fi
  44486. - '\'' sh
  44487. - '
  44488. -fi
  44489. -as_executable_p=$as_test_x
  44490. +# Variables whose values should be saved in libtool wrapper scripts and
  44491. +# restored at link time.
  44492. +variables_saved_for_relink=$lt_variables_saved_for_relink
  44493. -# Sed expression to map a string onto a valid CPP name.
  44494. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  44495. +# Do we need the "lib" prefix for modules?
  44496. +need_lib_prefix=$need_lib_prefix
  44497. -# Sed expression to map a string onto a valid variable name.
  44498. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  44499. +# Do we need a version for libraries?
  44500. +need_version=$need_version
  44501. +# Library versioning type.
  44502. +version_type=$version_type
  44503. -exec 6>&1
  44504. +# Shared library runtime path variable.
  44505. +runpath_var=$runpath_var
  44506. -# Save the log message, to keep $[0] and so on meaningful, and to
  44507. -# report actual input values of CONFIG_FILES etc. instead of their
  44508. -# values after options handling.
  44509. -ac_log="
  44510. -This file was extended by file $as_me 5.04, which was
  44511. -generated by GNU Autoconf 2.61. Invocation command line was
  44512. +# Shared library path variable.
  44513. +shlibpath_var=$shlibpath_var
  44514. - CONFIG_FILES = $CONFIG_FILES
  44515. - CONFIG_HEADERS = $CONFIG_HEADERS
  44516. - CONFIG_LINKS = $CONFIG_LINKS
  44517. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  44518. - $ $0 $@
  44519. +# Is shlibpath searched before the hard-coded library search path?
  44520. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  44521. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  44522. -"
  44523. +# Format of library name prefix.
  44524. +libname_spec=$lt_libname_spec
  44525. -_ACEOF
  44526. +# List of archive names. First name is the real one, the rest are links.
  44527. +# The last name is the one that the linker finds with -lNAME
  44528. +library_names_spec=$lt_library_names_spec
  44529. -cat >>$CONFIG_STATUS <<_ACEOF
  44530. -# Files that config.status was made for.
  44531. -config_files="$ac_config_files"
  44532. -config_headers="$ac_config_headers"
  44533. -config_commands="$ac_config_commands"
  44534. +# The coded name of the library, if different from the real name.
  44535. +soname_spec=$lt_soname_spec
  44536. -_ACEOF
  44537. +# Command to use after installation of a shared archive.
  44538. +postinstall_cmds=$lt_postinstall_cmds
  44539. -cat >>$CONFIG_STATUS <<\_ACEOF
  44540. -ac_cs_usage="\
  44541. -\`$as_me' instantiates files from templates according to the
  44542. -current configuration.
  44543. +# Command to use after uninstallation of a shared archive.
  44544. +postuninstall_cmds=$lt_postuninstall_cmds
  44545. -Usage: $0 [OPTIONS] [FILE]...
  44546. +# Commands used to finish a libtool library installation in a directory.
  44547. +finish_cmds=$lt_finish_cmds
  44548. - -h, --help print this help, then exit
  44549. - -V, --version print version number and configuration settings, then exit
  44550. - -q, --quiet do not print progress messages
  44551. - -d, --debug don't remove temporary files
  44552. - --recheck update $as_me by reconfiguring in the same conditions
  44553. - --file=FILE[:TEMPLATE]
  44554. - instantiate the configuration file FILE
  44555. - --header=FILE[:TEMPLATE]
  44556. - instantiate the configuration header FILE
  44557. +# As "finish_cmds", except a single script fragment to be evaled but
  44558. +# not shown.
  44559. +finish_eval=$lt_finish_eval
  44560. -Configuration files:
  44561. -$config_files
  44562. +# Whether we should hardcode library paths into libraries.
  44563. +hardcode_into_libs=$hardcode_into_libs
  44564. -Configuration headers:
  44565. -$config_headers
  44566. +# Compile-time system search path for libraries.
  44567. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  44568. -Configuration commands:
  44569. -$config_commands
  44570. +# Run-time system search path for libraries.
  44571. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  44572. -Report bugs to <bug-autoconf@gnu.org>."
  44573. +# Whether dlopen is supported.
  44574. +dlopen_support=$enable_dlopen
  44575. -_ACEOF
  44576. -cat >>$CONFIG_STATUS <<_ACEOF
  44577. -ac_cs_version="\\
  44578. -file config.status 5.04
  44579. -configured by $0, generated by GNU Autoconf 2.61,
  44580. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  44581. +# Whether dlopen of programs is supported.
  44582. +dlopen_self=$enable_dlopen_self
  44583. -Copyright (C) 2006 Free Software Foundation, Inc.
  44584. -This config.status script is free software; the Free Software Foundation
  44585. -gives unlimited permission to copy, distribute and modify it."
  44586. +# Whether dlopen of statically linked programs is supported.
  44587. +dlopen_self_static=$enable_dlopen_self_static
  44588. -ac_pwd='$ac_pwd'
  44589. -srcdir='$srcdir'
  44590. -INSTALL='$INSTALL'
  44591. -MKDIR_P='$MKDIR_P'
  44592. -_ACEOF
  44593. +# Commands to strip libraries.
  44594. +old_striplib=$lt_old_striplib
  44595. +striplib=$lt_striplib
  44596. -cat >>$CONFIG_STATUS <<\_ACEOF
  44597. -# If no file are specified by the user, then we need to provide default
  44598. -# value. By we need to know if files were specified by the user.
  44599. -ac_need_defaults=:
  44600. -while test $# != 0
  44601. -do
  44602. - case $1 in
  44603. - --*=*)
  44604. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  44605. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  44606. - ac_shift=:
  44607. - ;;
  44608. - *)
  44609. - ac_option=$1
  44610. - ac_optarg=$2
  44611. - ac_shift=shift
  44612. - ;;
  44613. - esac
  44614. - case $ac_option in
  44615. - # Handling of the options.
  44616. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  44617. - ac_cs_recheck=: ;;
  44618. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  44619. - echo "$ac_cs_version"; exit ;;
  44620. - --debug | --debu | --deb | --de | --d | -d )
  44621. - debug=: ;;
  44622. - --file | --fil | --fi | --f )
  44623. - $ac_shift
  44624. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  44625. - ac_need_defaults=false;;
  44626. - --header | --heade | --head | --hea )
  44627. - $ac_shift
  44628. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  44629. - ac_need_defaults=false;;
  44630. - --he | --h)
  44631. - # Conflict between --help and --header
  44632. - { echo "$as_me: error: ambiguous option: $1
  44633. -Try \`$0 --help' for more information." >&2
  44634. - { (exit 1); exit 1; }; };;
  44635. - --help | --hel | -h )
  44636. - echo "$ac_cs_usage"; exit ;;
  44637. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  44638. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  44639. - ac_cs_silent=: ;;
  44640. +# The linker used to build libraries.
  44641. +LD=$lt_LD
  44642. - # This is an error.
  44643. - -*) { echo "$as_me: error: unrecognized option: $1
  44644. -Try \`$0 --help' for more information." >&2
  44645. - { (exit 1); exit 1; }; } ;;
  44646. +# Commands used to build an old-style archive.
  44647. +old_archive_cmds=$lt_old_archive_cmds
  44648. - *) ac_config_targets="$ac_config_targets $1"
  44649. - ac_need_defaults=false ;;
  44650. +# A language specific compiler.
  44651. +CC=$lt_compiler
  44652. - esac
  44653. - shift
  44654. -done
  44655. +# Is the compiler the GNU compiler?
  44656. +with_gcc=$GCC
  44657. -ac_configure_extra_args=
  44658. +# Compiler flag to turn off builtin functions.
  44659. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  44660. -if $ac_cs_silent; then
  44661. - exec 6>/dev/null
  44662. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  44663. -fi
  44664. +# How to pass a linker flag through the compiler.
  44665. +wl=$lt_lt_prog_compiler_wl
  44666. -_ACEOF
  44667. -cat >>$CONFIG_STATUS <<_ACEOF
  44668. -if \$ac_cs_recheck; then
  44669. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  44670. - CONFIG_SHELL=$SHELL
  44671. - export CONFIG_SHELL
  44672. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  44673. -fi
  44674. +# Additional compiler flags for building library objects.
  44675. +pic_flag=$lt_lt_prog_compiler_pic
  44676. -_ACEOF
  44677. -cat >>$CONFIG_STATUS <<\_ACEOF
  44678. -exec 5>>config.log
  44679. -{
  44680. - echo
  44681. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  44682. -## Running $as_me. ##
  44683. -_ASBOX
  44684. - echo "$ac_log"
  44685. -} >&5
  44686. +# Compiler flag to prevent dynamic linking.
  44687. +link_static_flag=$lt_lt_prog_compiler_static
  44688. -_ACEOF
  44689. -cat >>$CONFIG_STATUS <<_ACEOF
  44690. -#
  44691. -# INIT-COMMANDS
  44692. -#
  44693. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  44694. +# Does compiler simultaneously support -c and -o options?
  44695. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  44696. -_ACEOF
  44697. +# Whether or not to add -lc for building shared libraries.
  44698. +build_libtool_need_lc=$archive_cmds_need_lc
  44699. -cat >>$CONFIG_STATUS <<\_ACEOF
  44700. +# Whether or not to disallow shared libs when runtime libs are static.
  44701. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  44702. -# Handling of arguments.
  44703. -for ac_config_target in $ac_config_targets
  44704. -do
  44705. - case $ac_config_target in
  44706. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  44707. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  44708. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  44709. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  44710. - "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  44711. - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  44712. - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  44713. - "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  44714. +# Compiler flag to allow reflexive dlopens.
  44715. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  44716. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  44717. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  44718. - { (exit 1); exit 1; }; };;
  44719. - esac
  44720. -done
  44721. +# Compiler flag to generate shared objects directly from archives.
  44722. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  44723. +# Whether the compiler copes with passing no objects directly.
  44724. +compiler_needs_object=$lt_compiler_needs_object
  44725. -# If the user did not use the arguments to specify the items to instantiate,
  44726. -# then the envvar interface is used. Set only those that are not.
  44727. -# We use the long form for the default assignment because of an extremely
  44728. -# bizarre bug on SunOS 4.1.3.
  44729. -if $ac_need_defaults; then
  44730. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  44731. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  44732. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  44733. -fi
  44734. +# Create an old-style archive from a shared archive.
  44735. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  44736. -# Have a temporary directory for convenience. Make it in the build tree
  44737. -# simply because there is no reason against having it here, and in addition,
  44738. -# creating and moving files from /tmp can sometimes cause problems.
  44739. -# Hook for its removal unless debugging.
  44740. -# Note that there is a small window in which the directory will not be cleaned:
  44741. -# after its creation but before its name has been assigned to `$tmp'.
  44742. -$debug ||
  44743. -{
  44744. - tmp=
  44745. - trap 'exit_status=$?
  44746. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  44747. -' 0
  44748. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  44749. -}
  44750. -# Create a (secure) tmp directory for tmp files.
  44751. +# Create a temporary old-style archive to link instead of a shared archive.
  44752. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  44753. -{
  44754. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  44755. - test -n "$tmp" && test -d "$tmp"
  44756. -} ||
  44757. -{
  44758. - tmp=./conf$$-$RANDOM
  44759. - (umask 077 && mkdir "$tmp")
  44760. -} ||
  44761. -{
  44762. - echo "$me: cannot create a temporary directory in ." >&2
  44763. - { (exit 1); exit 1; }
  44764. -}
  44765. +# Commands used to build a shared archive.
  44766. +archive_cmds=$lt_archive_cmds
  44767. +archive_expsym_cmds=$lt_archive_expsym_cmds
  44768. -#
  44769. -# Set up the sed scripts for CONFIG_FILES section.
  44770. -#
  44771. +# Commands used to build a loadable module if different from building
  44772. +# a shared archive.
  44773. +module_cmds=$lt_module_cmds
  44774. +module_expsym_cmds=$lt_module_expsym_cmds
  44775. -# No need to generate the scripts if there are no CONFIG_FILES.
  44776. -# This happens for instance when ./config.status config.h
  44777. -if test -n "$CONFIG_FILES"; then
  44778. +# Whether we are building with GNU ld or not.
  44779. +with_gnu_ld=$lt_with_gnu_ld
  44780. -_ACEOF
  44781. +# Flag that allows shared libraries with undefined symbols to be built.
  44782. +allow_undefined_flag=$lt_allow_undefined_flag
  44783. +# Flag that enforces no undefined symbols.
  44784. +no_undefined_flag=$lt_no_undefined_flag
  44785. +# Flag to hardcode \$libdir into a binary during linking.
  44786. +# This must work even if \$libdir does not exist
  44787. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  44788. -ac_delim='%!_!# '
  44789. -for ac_last_try in false false false false false :; do
  44790. - cat >conf$$subs.sed <<_ACEOF
  44791. -SHELL!$SHELL$ac_delim
  44792. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  44793. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  44794. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  44795. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  44796. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  44797. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  44798. -exec_prefix!$exec_prefix$ac_delim
  44799. -prefix!$prefix$ac_delim
  44800. -program_transform_name!$program_transform_name$ac_delim
  44801. -bindir!$bindir$ac_delim
  44802. -sbindir!$sbindir$ac_delim
  44803. -libexecdir!$libexecdir$ac_delim
  44804. -datarootdir!$datarootdir$ac_delim
  44805. -datadir!$datadir$ac_delim
  44806. -sysconfdir!$sysconfdir$ac_delim
  44807. -sharedstatedir!$sharedstatedir$ac_delim
  44808. -localstatedir!$localstatedir$ac_delim
  44809. -includedir!$includedir$ac_delim
  44810. -oldincludedir!$oldincludedir$ac_delim
  44811. -docdir!$docdir$ac_delim
  44812. -infodir!$infodir$ac_delim
  44813. -htmldir!$htmldir$ac_delim
  44814. -dvidir!$dvidir$ac_delim
  44815. -pdfdir!$pdfdir$ac_delim
  44816. -psdir!$psdir$ac_delim
  44817. -libdir!$libdir$ac_delim
  44818. -localedir!$localedir$ac_delim
  44819. -mandir!$mandir$ac_delim
  44820. -DEFS!$DEFS$ac_delim
  44821. -ECHO_C!$ECHO_C$ac_delim
  44822. -ECHO_N!$ECHO_N$ac_delim
  44823. -ECHO_T!$ECHO_T$ac_delim
  44824. -LIBS!$LIBS$ac_delim
  44825. -build_alias!$build_alias$ac_delim
  44826. -host_alias!$host_alias$ac_delim
  44827. -target_alias!$target_alias$ac_delim
  44828. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  44829. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  44830. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  44831. -am__isrc!$am__isrc$ac_delim
  44832. -CYGPATH_W!$CYGPATH_W$ac_delim
  44833. -PACKAGE!$PACKAGE$ac_delim
  44834. -VERSION!$VERSION$ac_delim
  44835. -ACLOCAL!$ACLOCAL$ac_delim
  44836. -AUTOCONF!$AUTOCONF$ac_delim
  44837. -AUTOMAKE!$AUTOMAKE$ac_delim
  44838. -AUTOHEADER!$AUTOHEADER$ac_delim
  44839. -MAKEINFO!$MAKEINFO$ac_delim
  44840. -install_sh!$install_sh$ac_delim
  44841. -STRIP!$STRIP$ac_delim
  44842. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  44843. -mkdir_p!$mkdir_p$ac_delim
  44844. -AWK!$AWK$ac_delim
  44845. -SET_MAKE!$SET_MAKE$ac_delim
  44846. -am__leading_dot!$am__leading_dot$ac_delim
  44847. -AMTAR!$AMTAR$ac_delim
  44848. -am__tar!$am__tar$ac_delim
  44849. -am__untar!$am__untar$ac_delim
  44850. -pkgdatadir!$pkgdatadir$ac_delim
  44851. -fsect!$fsect$ac_delim
  44852. -FSECT5_TRUE!$FSECT5_TRUE$ac_delim
  44853. -FSECT5_FALSE!$FSECT5_FALSE$ac_delim
  44854. -WARNINGS!$WARNINGS$ac_delim
  44855. -CC!$CC$ac_delim
  44856. -CFLAGS!$CFLAGS$ac_delim
  44857. -LDFLAGS!$LDFLAGS$ac_delim
  44858. -CPPFLAGS!$CPPFLAGS$ac_delim
  44859. -ac_ct_CC!$ac_ct_CC$ac_delim
  44860. -EXEEXT!$EXEEXT$ac_delim
  44861. -OBJEXT!$OBJEXT$ac_delim
  44862. -DEPDIR!$DEPDIR$ac_delim
  44863. -am__include!$am__include$ac_delim
  44864. -am__quote!$am__quote$ac_delim
  44865. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  44866. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  44867. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  44868. -CCDEPMODE!$CCDEPMODE$ac_delim
  44869. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  44870. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  44871. -LN_S!$LN_S$ac_delim
  44872. -build!$build$ac_delim
  44873. -build_cpu!$build_cpu$ac_delim
  44874. -build_vendor!$build_vendor$ac_delim
  44875. -build_os!$build_os$ac_delim
  44876. -host!$host$ac_delim
  44877. -host_cpu!$host_cpu$ac_delim
  44878. -host_vendor!$host_vendor$ac_delim
  44879. -host_os!$host_os$ac_delim
  44880. -SED!$SED$ac_delim
  44881. -GREP!$GREP$ac_delim
  44882. -EGREP!$EGREP$ac_delim
  44883. -ECHO!$ECHO$ac_delim
  44884. -AR!$AR$ac_delim
  44885. -RANLIB!$RANLIB$ac_delim
  44886. -DSYMUTIL!$DSYMUTIL$ac_delim
  44887. -NMEDIT!$NMEDIT$ac_delim
  44888. -_ACEOF
  44889. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  44890. +# during linking. This must work even if \$libdir does not exist.
  44891. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  44892. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  44893. - break
  44894. - elif $ac_last_try; then
  44895. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  44896. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  44897. - { (exit 1); exit 1; }; }
  44898. - else
  44899. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44900. - fi
  44901. -done
  44902. +# Whether we need a single "-rpath" flag with a separated argument.
  44903. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  44904. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  44905. -if test -n "$ac_eof"; then
  44906. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  44907. - ac_eof=`expr $ac_eof + 1`
  44908. -fi
  44909. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44910. +# DIR into the resulting binary.
  44911. +hardcode_direct=$hardcode_direct
  44912. -cat >>$CONFIG_STATUS <<_ACEOF
  44913. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  44914. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44915. -_ACEOF
  44916. -sed '
  44917. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  44918. -s/^/s,@/; s/!/@,|#_!!_#|/
  44919. -:n
  44920. -t n
  44921. -s/'"$ac_delim"'$/,g/; t
  44922. -s/$/\\/; p
  44923. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  44924. -' >>$CONFIG_STATUS <conf$$subs.sed
  44925. -rm -f conf$$subs.sed
  44926. -cat >>$CONFIG_STATUS <<_ACEOF
  44927. -CEOF$ac_eof
  44928. -_ACEOF
  44929. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44930. +# DIR into the resulting binary and the resulting library dependency is
  44931. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  44932. +# library is relocated.
  44933. +hardcode_direct_absolute=$hardcode_direct_absolute
  44934. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  44935. +# into the resulting binary.
  44936. +hardcode_minus_L=$hardcode_minus_L
  44937. -ac_delim='%!_!# '
  44938. -for ac_last_try in false false false false false :; do
  44939. - cat >conf$$subs.sed <<_ACEOF
  44940. -CPP!$CPP$ac_delim
  44941. -CXX!$CXX$ac_delim
  44942. -CXXFLAGS!$CXXFLAGS$ac_delim
  44943. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  44944. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  44945. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  44946. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  44947. -CXXCPP!$CXXCPP$ac_delim
  44948. -F77!$F77$ac_delim
  44949. -FFLAGS!$FFLAGS$ac_delim
  44950. -ac_ct_F77!$ac_ct_F77$ac_delim
  44951. -LIBTOOL!$LIBTOOL$ac_delim
  44952. -LIBOBJS!$LIBOBJS$ac_delim
  44953. -IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
  44954. -IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
  44955. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  44956. -_ACEOF
  44957. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  44958. +# into the resulting binary.
  44959. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  44960. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
  44961. - break
  44962. - elif $ac_last_try; then
  44963. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  44964. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  44965. - { (exit 1); exit 1; }; }
  44966. - else
  44967. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44968. - fi
  44969. -done
  44970. +# Set to "yes" if building a shared library automatically hardcodes DIR
  44971. +# into the library and all subsequent libraries and executables linked
  44972. +# against it.
  44973. +hardcode_automatic=$hardcode_automatic
  44974. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  44975. -if test -n "$ac_eof"; then
  44976. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  44977. - ac_eof=`expr $ac_eof + 1`
  44978. -fi
  44979. -
  44980. -cat >>$CONFIG_STATUS <<_ACEOF
  44981. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  44982. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  44983. -_ACEOF
  44984. -sed '
  44985. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  44986. -s/^/s,@/; s/!/@,|#_!!_#|/
  44987. -:n
  44988. -t n
  44989. -s/'"$ac_delim"'$/,g/; t
  44990. -s/$/\\/; p
  44991. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  44992. -' >>$CONFIG_STATUS <conf$$subs.sed
  44993. -rm -f conf$$subs.sed
  44994. -cat >>$CONFIG_STATUS <<_ACEOF
  44995. -:end
  44996. -s/|#_!!_#|//g
  44997. -CEOF$ac_eof
  44998. -_ACEOF
  44999. +# Set to yes if linker adds runtime paths of dependent libraries
  45000. +# to runtime path list.
  45001. +inherit_rpath=$inherit_rpath
  45002. +# Whether libtool must link a program against all its dependency libraries.
  45003. +link_all_deplibs=$link_all_deplibs
  45004. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  45005. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  45006. -# trailing colons and then remove the whole line if VPATH becomes empty
  45007. -# (actually we leave an empty line to preserve line numbers).
  45008. -if test "x$srcdir" = x.; then
  45009. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  45010. -s/:*\$(srcdir):*/:/
  45011. -s/:*\${srcdir}:*/:/
  45012. -s/:*@srcdir@:*/:/
  45013. -s/^\([^=]*=[ ]*\):*/\1/
  45014. -s/:*$//
  45015. -s/^[^=]*=[ ]*$//
  45016. -}'
  45017. -fi
  45018. +# Fix the shell variable \$srcfile for the compiler.
  45019. +fix_srcfile_path=$lt_fix_srcfile_path
  45020. -cat >>$CONFIG_STATUS <<\_ACEOF
  45021. -fi # test -n "$CONFIG_FILES"
  45022. +# Set to "yes" if exported symbols are required.
  45023. +always_export_symbols=$always_export_symbols
  45024. +# The commands to list exported symbols.
  45025. +export_symbols_cmds=$lt_export_symbols_cmds
  45026. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  45027. -do
  45028. - case $ac_tag in
  45029. - :[FHLC]) ac_mode=$ac_tag; continue;;
  45030. - esac
  45031. - case $ac_mode$ac_tag in
  45032. - :[FHL]*:*);;
  45033. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  45034. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  45035. - { (exit 1); exit 1; }; };;
  45036. - :[FH]-) ac_tag=-:-;;
  45037. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  45038. - esac
  45039. - ac_save_IFS=$IFS
  45040. - IFS=:
  45041. - set x $ac_tag
  45042. - IFS=$ac_save_IFS
  45043. - shift
  45044. - ac_file=$1
  45045. - shift
  45046. +# Symbols that should not be listed in the preloaded symbols.
  45047. +exclude_expsyms=$lt_exclude_expsyms
  45048. - case $ac_mode in
  45049. - :L) ac_source=$1;;
  45050. - :[FH])
  45051. - ac_file_inputs=
  45052. - for ac_f
  45053. - do
  45054. - case $ac_f in
  45055. - -) ac_f="$tmp/stdin";;
  45056. - *) # Look for the file first in the build tree, then in the source tree
  45057. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  45058. - # because $ac_f cannot contain `:'.
  45059. - test -f "$ac_f" ||
  45060. - case $ac_f in
  45061. - [\\/$]*) false;;
  45062. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  45063. - esac ||
  45064. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  45065. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  45066. - { (exit 1); exit 1; }; };;
  45067. - esac
  45068. - ac_file_inputs="$ac_file_inputs $ac_f"
  45069. - done
  45070. +# Symbols that must always be exported.
  45071. +include_expsyms=$lt_include_expsyms
  45072. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  45073. - # use $as_me), people would be surprised to read:
  45074. - # /* config.h. Generated by config.status. */
  45075. - configure_input="Generated from "`IFS=:
  45076. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  45077. - if test x"$ac_file" != x-; then
  45078. - configure_input="$ac_file. $configure_input"
  45079. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  45080. -echo "$as_me: creating $ac_file" >&6;}
  45081. - fi
  45082. +# Commands necessary for linking programs (against libraries) with templates.
  45083. +prelink_cmds=$lt_prelink_cmds
  45084. - case $ac_tag in
  45085. - *:-:* | *:-) cat >"$tmp/stdin";;
  45086. - esac
  45087. - ;;
  45088. - esac
  45089. +# Specify filename containing input files.
  45090. +file_list_spec=$lt_file_list_spec
  45091. - ac_dir=`$as_dirname -- "$ac_file" ||
  45092. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45093. - X"$ac_file" : 'X\(//\)[^/]' \| \
  45094. - X"$ac_file" : 'X\(//\)$' \| \
  45095. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  45096. -echo X"$ac_file" |
  45097. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45098. - s//\1/
  45099. - q
  45100. - }
  45101. - /^X\(\/\/\)[^/].*/{
  45102. - s//\1/
  45103. - q
  45104. - }
  45105. - /^X\(\/\/\)$/{
  45106. - s//\1/
  45107. - q
  45108. - }
  45109. - /^X\(\/\).*/{
  45110. - s//\1/
  45111. - q
  45112. - }
  45113. - s/.*/./; q'`
  45114. - { as_dir="$ac_dir"
  45115. - case $as_dir in #(
  45116. - -*) as_dir=./$as_dir;;
  45117. - esac
  45118. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  45119. - as_dirs=
  45120. - while :; do
  45121. - case $as_dir in #(
  45122. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  45123. - *) as_qdir=$as_dir;;
  45124. - esac
  45125. - as_dirs="'$as_qdir' $as_dirs"
  45126. - as_dir=`$as_dirname -- "$as_dir" ||
  45127. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45128. - X"$as_dir" : 'X\(//\)[^/]' \| \
  45129. - X"$as_dir" : 'X\(//\)$' \| \
  45130. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  45131. -echo X"$as_dir" |
  45132. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45133. - s//\1/
  45134. - q
  45135. - }
  45136. - /^X\(\/\/\)[^/].*/{
  45137. - s//\1/
  45138. - q
  45139. - }
  45140. - /^X\(\/\/\)$/{
  45141. - s//\1/
  45142. - q
  45143. - }
  45144. - /^X\(\/\).*/{
  45145. - s//\1/
  45146. - q
  45147. - }
  45148. - s/.*/./; q'`
  45149. - test -d "$as_dir" && break
  45150. - done
  45151. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  45152. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  45153. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  45154. - { (exit 1); exit 1; }; }; }
  45155. - ac_builddir=.
  45156. +# How to hardcode a shared library path into an executable.
  45157. +hardcode_action=$hardcode_action
  45158. -case "$ac_dir" in
  45159. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  45160. -*)
  45161. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  45162. - # A ".." for each directory in $ac_dir_suffix.
  45163. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  45164. - case $ac_top_builddir_sub in
  45165. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  45166. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  45167. - esac ;;
  45168. -esac
  45169. -ac_abs_top_builddir=$ac_pwd
  45170. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  45171. -# for backward compatibility:
  45172. -ac_top_builddir=$ac_top_build_prefix
  45173. +# ### END LIBTOOL CONFIG
  45174. +
  45175. +_LT_EOF
  45176. +
  45177. + case $host_os in
  45178. + aix3*)
  45179. + cat <<\_LT_EOF >> "$cfgfile"
  45180. +# AIX sometimes has problems with the GCC collect2 program. For some
  45181. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  45182. +# vanish in a puff of smoke.
  45183. +if test "X${COLLECT_NAMES+set}" != Xset; then
  45184. + COLLECT_NAMES=
  45185. + export COLLECT_NAMES
  45186. +fi
  45187. +_LT_EOF
  45188. + ;;
  45189. + esac
  45190. -case $srcdir in
  45191. - .) # We are building in place.
  45192. - ac_srcdir=.
  45193. - ac_top_srcdir=$ac_top_builddir_sub
  45194. - ac_abs_top_srcdir=$ac_pwd ;;
  45195. - [\\/]* | ?:[\\/]* ) # Absolute name.
  45196. - ac_srcdir=$srcdir$ac_dir_suffix;
  45197. - ac_top_srcdir=$srcdir
  45198. - ac_abs_top_srcdir=$srcdir ;;
  45199. - *) # Relative name.
  45200. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  45201. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  45202. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  45203. -esac
  45204. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  45205. +ltmain="$ac_aux_dir/ltmain.sh"
  45206. - case $ac_mode in
  45207. - :F)
  45208. - #
  45209. - # CONFIG_FILE
  45210. - #
  45211. - case $INSTALL in
  45212. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  45213. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  45214. - esac
  45215. - ac_MKDIR_P=$MKDIR_P
  45216. - case $MKDIR_P in
  45217. - [\\/$]* | ?:[\\/]* ) ;;
  45218. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  45219. + # We use sed instead of cat because bash on DJGPP gets confused if
  45220. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  45221. + # text mode, it properly converts lines to CR/LF. This bash problem
  45222. + # is reportedly fixed, but why not run on old versions too?
  45223. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  45224. + || (rm -f "$cfgfile"; exit 1)
  45225. +
  45226. + case $xsi_shell in
  45227. + yes)
  45228. + cat << \_LT_EOF >> "$cfgfile"
  45229. +
  45230. +# func_dirname file append nondir_replacement
  45231. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  45232. +# otherwise set result to NONDIR_REPLACEMENT.
  45233. +func_dirname ()
  45234. +{
  45235. + case ${1} in
  45236. + */*) func_dirname_result="${1%/*}${2}" ;;
  45237. + * ) func_dirname_result="${3}" ;;
  45238. esac
  45239. -_ACEOF
  45240. +}
  45241. -cat >>$CONFIG_STATUS <<\_ACEOF
  45242. -# If the template does not know about datarootdir, expand it.
  45243. -# FIXME: This hack should be removed a few years after 2.60.
  45244. -ac_datarootdir_hack=; ac_datarootdir_seen=
  45245. +# func_basename file
  45246. +func_basename ()
  45247. +{
  45248. + func_basename_result="${1##*/}"
  45249. +}
  45250. -case `sed -n '/datarootdir/ {
  45251. - p
  45252. - q
  45253. +# func_dirname_and_basename file append nondir_replacement
  45254. +# perform func_basename and func_dirname in a single function
  45255. +# call:
  45256. +# dirname: Compute the dirname of FILE. If nonempty,
  45257. +# add APPEND to the result, otherwise set result
  45258. +# to NONDIR_REPLACEMENT.
  45259. +# value returned in "$func_dirname_result"
  45260. +# basename: Compute filename of FILE.
  45261. +# value retuned in "$func_basename_result"
  45262. +# Implementation must be kept synchronized with func_dirname
  45263. +# and func_basename. For efficiency, we do not delegate to
  45264. +# those functions but instead duplicate the functionality here.
  45265. +func_dirname_and_basename ()
  45266. +{
  45267. + case ${1} in
  45268. + */*) func_dirname_result="${1%/*}${2}" ;;
  45269. + * ) func_dirname_result="${3}" ;;
  45270. + esac
  45271. + func_basename_result="${1##*/}"
  45272. }
  45273. -/@datadir@/p
  45274. -/@docdir@/p
  45275. -/@infodir@/p
  45276. -/@localedir@/p
  45277. -/@mandir@/p
  45278. -' $ac_file_inputs` in
  45279. -*datarootdir*) ac_datarootdir_seen=yes;;
  45280. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  45281. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  45282. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  45283. -_ACEOF
  45284. -cat >>$CONFIG_STATUS <<_ACEOF
  45285. - ac_datarootdir_hack='
  45286. - s&@datadir@&$datadir&g
  45287. - s&@docdir@&$docdir&g
  45288. - s&@infodir@&$infodir&g
  45289. - s&@localedir@&$localedir&g
  45290. - s&@mandir@&$mandir&g
  45291. - s&\\\${datarootdir}&$datarootdir&g' ;;
  45292. -esac
  45293. -_ACEOF
  45294. -# Neutralize VPATH when `$srcdir' = `.'.
  45295. -# Shell code in configure.ac might set extrasub.
  45296. -# FIXME: do we really want to maintain this feature?
  45297. -cat >>$CONFIG_STATUS <<_ACEOF
  45298. - sed "$ac_vpsub
  45299. -$extrasub
  45300. -_ACEOF
  45301. -cat >>$CONFIG_STATUS <<\_ACEOF
  45302. -:t
  45303. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  45304. -s&@configure_input@&$configure_input&;t t
  45305. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  45306. -s&@srcdir@&$ac_srcdir&;t t
  45307. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  45308. -s&@top_srcdir@&$ac_top_srcdir&;t t
  45309. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  45310. -s&@builddir@&$ac_builddir&;t t
  45311. -s&@abs_builddir@&$ac_abs_builddir&;t t
  45312. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  45313. -s&@INSTALL@&$ac_INSTALL&;t t
  45314. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  45315. -$ac_datarootdir_hack
  45316. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  45317. +# func_stripname prefix suffix name
  45318. +# strip PREFIX and SUFFIX off of NAME.
  45319. +# PREFIX and SUFFIX must not contain globbing or regex special
  45320. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  45321. +# dot (in which case that matches only a dot).
  45322. +func_stripname ()
  45323. +{
  45324. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  45325. + # positional parameters, so assign one to ordinary parameter first.
  45326. + func_stripname_result=${3}
  45327. + func_stripname_result=${func_stripname_result#"${1}"}
  45328. + func_stripname_result=${func_stripname_result%"${2}"}
  45329. +}
  45330. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  45331. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  45332. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  45333. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  45334. -which seems to be undefined. Please make sure it is defined." >&5
  45335. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  45336. -which seems to be undefined. Please make sure it is defined." >&2;}
  45337. +# func_opt_split
  45338. +func_opt_split ()
  45339. +{
  45340. + func_opt_split_opt=${1%%=*}
  45341. + func_opt_split_arg=${1#*=}
  45342. +}
  45343. - rm -f "$tmp/stdin"
  45344. - case $ac_file in
  45345. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  45346. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  45347. +# func_lo2o object
  45348. +func_lo2o ()
  45349. +{
  45350. + case ${1} in
  45351. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  45352. + *) func_lo2o_result=${1} ;;
  45353. esac
  45354. - ;;
  45355. - :H)
  45356. - #
  45357. - # CONFIG_HEADER
  45358. - #
  45359. -_ACEOF
  45360. +}
  45361. -# Transform confdefs.h into a sed script `conftest.defines', that
  45362. -# substitutes the proper values into config.h.in to produce config.h.
  45363. -rm -f conftest.defines conftest.tail
  45364. -# First, append a space to every undef/define line, to ease matching.
  45365. -echo 's/$/ /' >conftest.defines
  45366. -# Then, protect against being on the right side of a sed subst, or in
  45367. -# an unquoted here document, in config.status. If some macros were
  45368. -# called several times there might be several #defines for the same
  45369. -# symbol, which is useless. But do not sort them, since the last
  45370. -# AC_DEFINE must be honored.
  45371. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  45372. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  45373. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  45374. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  45375. -# just an empty string.
  45376. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  45377. -ac_dB='\\)[ (].*,\\1define\\2'
  45378. -ac_dC=' '
  45379. -ac_dD=' ,'
  45380. +# func_xform libobj-or-source
  45381. +func_xform ()
  45382. +{
  45383. + func_xform_result=${1%.*}.lo
  45384. +}
  45385. -uniq confdefs.h |
  45386. - sed -n '
  45387. - t rset
  45388. - :rset
  45389. - s/^[ ]*#[ ]*define[ ][ ]*//
  45390. - t ok
  45391. - d
  45392. - :ok
  45393. - s/[\\&,]/\\&/g
  45394. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  45395. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  45396. - ' >>conftest.defines
  45397. -
  45398. -# Remove the space that was appended to ease matching.
  45399. -# Then replace #undef with comments. This is necessary, for
  45400. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  45401. -# on some systems where configure will not decide to define it.
  45402. -# (The regexp can be short, since the line contains either #define or #undef.)
  45403. -echo 's/ $//
  45404. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  45405. -
  45406. -# Break up conftest.defines:
  45407. -ac_max_sed_lines=50
  45408. -
  45409. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  45410. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  45411. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  45412. -# et cetera.
  45413. -ac_in='$ac_file_inputs'
  45414. -ac_out='"$tmp/out1"'
  45415. -ac_nxt='"$tmp/out2"'
  45416. +# func_arith arithmetic-term...
  45417. +func_arith ()
  45418. +{
  45419. + func_arith_result=$(( $* ))
  45420. +}
  45421. -while :
  45422. -do
  45423. - # Write a here document:
  45424. - cat >>$CONFIG_STATUS <<_ACEOF
  45425. - # First, check the format of the line:
  45426. - cat >"\$tmp/defines.sed" <<\\CEOF
  45427. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  45428. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  45429. -b
  45430. -:def
  45431. -_ACEOF
  45432. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  45433. - echo 'CEOF
  45434. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  45435. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  45436. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  45437. - grep . conftest.tail >/dev/null || break
  45438. - rm -f conftest.defines
  45439. - mv conftest.tail conftest.defines
  45440. -done
  45441. -rm -f conftest.defines conftest.tail
  45442. +# func_len string
  45443. +# STRING may not start with a hyphen.
  45444. +func_len ()
  45445. +{
  45446. + func_len_result=${#1}
  45447. +}
  45448. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  45449. -cat >>$CONFIG_STATUS <<\_ACEOF
  45450. - if test x"$ac_file" != x-; then
  45451. - echo "/* $configure_input */" >"$tmp/config.h"
  45452. - cat "$ac_result" >>"$tmp/config.h"
  45453. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  45454. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  45455. -echo "$as_me: $ac_file is unchanged" >&6;}
  45456. - else
  45457. - rm -f $ac_file
  45458. - mv "$tmp/config.h" $ac_file
  45459. - fi
  45460. +_LT_EOF
  45461. + ;;
  45462. + *) # Bourne compatible functions.
  45463. + cat << \_LT_EOF >> "$cfgfile"
  45464. +
  45465. +# func_dirname file append nondir_replacement
  45466. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  45467. +# otherwise set result to NONDIR_REPLACEMENT.
  45468. +func_dirname ()
  45469. +{
  45470. + # Extract subdirectory from the argument.
  45471. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  45472. + if test "X$func_dirname_result" = "X${1}"; then
  45473. + func_dirname_result="${3}"
  45474. else
  45475. - echo "/* $configure_input */"
  45476. - cat "$ac_result"
  45477. + func_dirname_result="$func_dirname_result${2}"
  45478. fi
  45479. - rm -f "$tmp/out12"
  45480. -# Compute $ac_file's index in $config_headers.
  45481. -_am_stamp_count=1
  45482. -for _am_header in $config_headers :; do
  45483. - case $_am_header in
  45484. - $ac_file | $ac_file:* )
  45485. - break ;;
  45486. - * )
  45487. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  45488. - esac
  45489. -done
  45490. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  45491. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45492. - X$ac_file : 'X\(//\)[^/]' \| \
  45493. - X$ac_file : 'X\(//\)$' \| \
  45494. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  45495. -echo X$ac_file |
  45496. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45497. - s//\1/
  45498. - q
  45499. - }
  45500. - /^X\(\/\/\)[^/].*/{
  45501. - s//\1/
  45502. - q
  45503. - }
  45504. - /^X\(\/\/\)$/{
  45505. - s//\1/
  45506. - q
  45507. - }
  45508. - /^X\(\/\).*/{
  45509. - s//\1/
  45510. - q
  45511. - }
  45512. - s/.*/./; q'`/stamp-h$_am_stamp_count
  45513. - ;;
  45514. +}
  45515. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  45516. -echo "$as_me: executing $ac_file commands" >&6;}
  45517. - ;;
  45518. +# func_basename file
  45519. +func_basename ()
  45520. +{
  45521. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  45522. +}
  45523. +
  45524. +
  45525. +# func_stripname prefix suffix name
  45526. +# strip PREFIX and SUFFIX off of NAME.
  45527. +# PREFIX and SUFFIX must not contain globbing or regex special
  45528. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  45529. +# dot (in which case that matches only a dot).
  45530. +# func_strip_suffix prefix name
  45531. +func_stripname ()
  45532. +{
  45533. + case ${2} in
  45534. + .*) func_stripname_result=`$ECHO "X${3}" \
  45535. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  45536. + *) func_stripname_result=`$ECHO "X${3}" \
  45537. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  45538. esac
  45539. +}
  45540. +# sed scripts:
  45541. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  45542. +my_sed_long_arg='1s/^-[^=]*=//'
  45543. - case $ac_file$ac_mode in
  45544. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  45545. - # Strip MF so we end up with the name of the file.
  45546. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  45547. - # Check whether this is an Automake generated Makefile or not.
  45548. - # We used to match only the files named `Makefile.in', but
  45549. - # some people rename them; so instead we look at the file content.
  45550. - # Grep'ing the first line is not enough: some people post-process
  45551. - # each Makefile.in and add a new line on top of each file to say so.
  45552. - # Grep'ing the whole file is not good either: AIX grep has a line
  45553. - # limit of 2048, but all sed's we know have understand at least 4000.
  45554. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  45555. - dirpart=`$as_dirname -- "$mf" ||
  45556. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45557. - X"$mf" : 'X\(//\)[^/]' \| \
  45558. - X"$mf" : 'X\(//\)$' \| \
  45559. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  45560. -echo X"$mf" |
  45561. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45562. - s//\1/
  45563. - q
  45564. - }
  45565. - /^X\(\/\/\)[^/].*/{
  45566. - s//\1/
  45567. - q
  45568. - }
  45569. - /^X\(\/\/\)$/{
  45570. - s//\1/
  45571. - q
  45572. - }
  45573. - /^X\(\/\).*/{
  45574. - s//\1/
  45575. - q
  45576. - }
  45577. - s/.*/./; q'`
  45578. - else
  45579. - continue
  45580. - fi
  45581. - # Extract the definition of DEPDIR, am__include, and am__quote
  45582. - # from the Makefile without running `make'.
  45583. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  45584. - test -z "$DEPDIR" && continue
  45585. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  45586. - test -z "am__include" && continue
  45587. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  45588. - # When using ansi2knr, U may be empty or an underscore; expand it
  45589. - U=`sed -n 's/^U = //p' < "$mf"`
  45590. - # Find all dependency output files, they are included files with
  45591. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  45592. - # simplest approach to changing $(DEPDIR) to its actual value in the
  45593. - # expansion.
  45594. - for file in `sed -n "
  45595. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  45596. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  45597. - # Make sure the directory exists.
  45598. - test -f "$dirpart/$file" && continue
  45599. - fdir=`$as_dirname -- "$file" ||
  45600. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45601. - X"$file" : 'X\(//\)[^/]' \| \
  45602. - X"$file" : 'X\(//\)$' \| \
  45603. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  45604. -echo X"$file" |
  45605. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45606. - s//\1/
  45607. - q
  45608. - }
  45609. - /^X\(\/\/\)[^/].*/{
  45610. - s//\1/
  45611. - q
  45612. - }
  45613. - /^X\(\/\/\)$/{
  45614. - s//\1/
  45615. - q
  45616. - }
  45617. - /^X\(\/\).*/{
  45618. - s//\1/
  45619. - q
  45620. - }
  45621. - s/.*/./; q'`
  45622. - { as_dir=$dirpart/$fdir
  45623. - case $as_dir in #(
  45624. - -*) as_dir=./$as_dir;;
  45625. +# func_opt_split
  45626. +func_opt_split ()
  45627. +{
  45628. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  45629. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  45630. +}
  45631. +
  45632. +# func_lo2o object
  45633. +func_lo2o ()
  45634. +{
  45635. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  45636. +}
  45637. +
  45638. +# func_xform libobj-or-source
  45639. +func_xform ()
  45640. +{
  45641. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  45642. +}
  45643. +
  45644. +# func_arith arithmetic-term...
  45645. +func_arith ()
  45646. +{
  45647. + func_arith_result=`expr "$@"`
  45648. +}
  45649. +
  45650. +# func_len string
  45651. +# STRING may not start with a hyphen.
  45652. +func_len ()
  45653. +{
  45654. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  45655. +}
  45656. +
  45657. +_LT_EOF
  45658. +esac
  45659. +
  45660. +case $lt_shell_append in
  45661. + yes)
  45662. + cat << \_LT_EOF >> "$cfgfile"
  45663. +
  45664. +# func_append var value
  45665. +# Append VALUE to the end of shell variable VAR.
  45666. +func_append ()
  45667. +{
  45668. + eval "$1+=\$2"
  45669. +}
  45670. +_LT_EOF
  45671. + ;;
  45672. + *)
  45673. + cat << \_LT_EOF >> "$cfgfile"
  45674. +
  45675. +# func_append var value
  45676. +# Append VALUE to the end of shell variable VAR.
  45677. +func_append ()
  45678. +{
  45679. + eval "$1=\$$1\$2"
  45680. +}
  45681. +
  45682. +_LT_EOF
  45683. + ;;
  45684. esac
  45685. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  45686. - as_dirs=
  45687. - while :; do
  45688. - case $as_dir in #(
  45689. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  45690. - *) as_qdir=$as_dir;;
  45691. - esac
  45692. - as_dirs="'$as_qdir' $as_dirs"
  45693. - as_dir=`$as_dirname -- "$as_dir" ||
  45694. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45695. - X"$as_dir" : 'X\(//\)[^/]' \| \
  45696. - X"$as_dir" : 'X\(//\)$' \| \
  45697. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  45698. -echo X"$as_dir" |
  45699. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  45700. - s//\1/
  45701. - q
  45702. - }
  45703. - /^X\(\/\/\)[^/].*/{
  45704. - s//\1/
  45705. - q
  45706. - }
  45707. - /^X\(\/\/\)$/{
  45708. - s//\1/
  45709. - q
  45710. - }
  45711. - /^X\(\/\).*/{
  45712. - s//\1/
  45713. - q
  45714. - }
  45715. - s/.*/./; q'`
  45716. - test -d "$as_dir" && break
  45717. - done
  45718. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  45719. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  45720. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  45721. - { (exit 1); exit 1; }; }; }
  45722. - # echo "creating $dirpart/$file"
  45723. - echo '# dummy' > "$dirpart/$file"
  45724. - done
  45725. -done
  45726. +
  45727. +
  45728. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  45729. + || (rm -f "$cfgfile"; exit 1)
  45730. +
  45731. + mv -f "$cfgfile" "$ofile" ||
  45732. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  45733. + chmod +x "$ofile"
  45734. +
  45735. ;;
  45736. esac
  45737. done # for ac_tag
  45738. -{ (exit 0); exit 0; }
  45739. +as_fn_exit 0
  45740. _ACEOF
  45741. -chmod +x $CONFIG_STATUS
  45742. ac_clean_files=$ac_clean_files_save
  45743. +test $ac_write_fail = 0 ||
  45744. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  45745. +
  45746. # configure is writing to config.log, and then calls config.status.
  45747. # config.status does its own redirection, appending to config.log.
  45748. @@ -25291,6 +15115,10 @@
  45749. exec 5>>config.log
  45750. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  45751. # would make configure fail if this is the last instruction.
  45752. - $ac_cs_success || { (exit 1); exit 1; }
  45753. + $ac_cs_success || as_fn_exit $?
  45754. +fi
  45755. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  45756. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  45757. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  45758. fi
  45759. diff -Nur file-5.04.orig/depcomp file-5.04/depcomp
  45760. --- file-5.04.orig/depcomp 2010-01-22 22:09:34.000000000 +0100
  45761. +++ file-5.04/depcomp 2011-02-24 20:54:42.253553084 +0100
  45762. @@ -1,10 +1,10 @@
  45763. #! /bin/sh
  45764. # depcomp - compile a program generating dependencies as side-effects
  45765. -scriptversion=2006-10-15.18
  45766. +scriptversion=2009-04-28.21; # UTC
  45767. -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
  45768. -# Foundation, Inc.
  45769. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  45770. +# Software Foundation, Inc.
  45771. # This program is free software; you can redistribute it and/or modify
  45772. # it under the terms of the GNU General Public License as published by
  45773. @@ -17,9 +17,7 @@
  45774. # GNU General Public License for more details.
  45775. # You should have received a copy of the GNU General Public License
  45776. -# along with this program; if not, write to the Free Software
  45777. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  45778. -# 02110-1301, USA.
  45779. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  45780. # As a special exception to the GNU General Public License, if you
  45781. # distribute this file as part of a program that contains a
  45782. @@ -87,6 +85,15 @@
  45783. depmode=dashmstdout
  45784. fi
  45785. +cygpath_u="cygpath -u -f -"
  45786. +if test "$depmode" = msvcmsys; then
  45787. + # This is just like msvisualcpp but w/o cygpath translation.
  45788. + # Just convert the backslash-escaped backslashes to single forward
  45789. + # slashes to satisfy depend.m4
  45790. + cygpath_u="sed s,\\\\\\\\,/,g"
  45791. + depmode=msvisualcpp
  45792. +fi
  45793. +
  45794. case "$depmode" in
  45795. gcc3)
  45796. ## gcc 3 implements dependency tracking that does exactly what
  45797. @@ -192,14 +199,14 @@
  45798. ' < "$tmpdepfile" \
  45799. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  45800. tr '
  45801. -' ' ' >> $depfile
  45802. - echo >> $depfile
  45803. +' ' ' >> "$depfile"
  45804. + echo >> "$depfile"
  45805. # The second pass generates a dummy entry for each header file.
  45806. tr ' ' '
  45807. ' < "$tmpdepfile" \
  45808. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  45809. - >> $depfile
  45810. + >> "$depfile"
  45811. else
  45812. # The sourcefile does not contain any dependencies, so just
  45813. # store a dummy comment line, to avoid errors with the Makefile
  45814. @@ -215,34 +222,39 @@
  45815. # current directory. Also, the AIX compiler puts `$object:' at the
  45816. # start of each line; $object doesn't have directory information.
  45817. # Version 6 uses the directory in both cases.
  45818. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  45819. - tmpdepfile="$stripped.u"
  45820. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  45821. + test "x$dir" = "x$object" && dir=
  45822. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  45823. if test "$libtool" = yes; then
  45824. + tmpdepfile1=$dir$base.u
  45825. + tmpdepfile2=$base.u
  45826. + tmpdepfile3=$dir.libs/$base.u
  45827. "$@" -Wc,-M
  45828. else
  45829. + tmpdepfile1=$dir$base.u
  45830. + tmpdepfile2=$dir$base.u
  45831. + tmpdepfile3=$dir$base.u
  45832. "$@" -M
  45833. fi
  45834. stat=$?
  45835. - if test -f "$tmpdepfile"; then :
  45836. - else
  45837. - stripped=`echo "$stripped" | sed 's,^.*/,,'`
  45838. - tmpdepfile="$stripped.u"
  45839. - fi
  45840. -
  45841. if test $stat -eq 0; then :
  45842. else
  45843. - rm -f "$tmpdepfile"
  45844. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  45845. exit $stat
  45846. fi
  45847. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  45848. + do
  45849. + test -f "$tmpdepfile" && break
  45850. + done
  45851. if test -f "$tmpdepfile"; then
  45852. - outname="$stripped.o"
  45853. # Each line is of the form `foo.o: dependent.h'.
  45854. # Do two passes, one to just change these to
  45855. # `$object: dependent.h' and one to simply `dependent.h:'.
  45856. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  45857. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  45858. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  45859. + # That's a tab and a space in the [].
  45860. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  45861. else
  45862. # The sourcefile does not contain any dependencies, so just
  45863. # store a dummy comment line, to avoid errors with the Makefile
  45864. @@ -323,7 +335,12 @@
  45865. if test -f "$tmpdepfile"; then
  45866. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  45867. # Add `dependent.h:' lines.
  45868. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  45869. + sed -ne '2,${
  45870. + s/^ *//
  45871. + s/ \\*$//
  45872. + s/$/:/
  45873. + p
  45874. + }' "$tmpdepfile" >> "$depfile"
  45875. else
  45876. echo "#dummy" > "$depfile"
  45877. fi
  45878. @@ -399,7 +416,7 @@
  45879. # Remove the call to Libtool.
  45880. if test "$libtool" = yes; then
  45881. - while test $1 != '--mode=compile'; do
  45882. + while test "X$1" != 'X--mode=compile'; do
  45883. shift
  45884. done
  45885. shift
  45886. @@ -450,32 +467,39 @@
  45887. "$@" || exit $?
  45888. # Remove any Libtool call
  45889. if test "$libtool" = yes; then
  45890. - while test $1 != '--mode=compile'; do
  45891. + while test "X$1" != 'X--mode=compile'; do
  45892. shift
  45893. done
  45894. shift
  45895. fi
  45896. # X makedepend
  45897. shift
  45898. - cleared=no
  45899. - for arg in "$@"; do
  45900. + cleared=no eat=no
  45901. + for arg
  45902. + do
  45903. case $cleared in
  45904. no)
  45905. set ""; shift
  45906. cleared=yes ;;
  45907. esac
  45908. + if test $eat = yes; then
  45909. + eat=no
  45910. + continue
  45911. + fi
  45912. case "$arg" in
  45913. -D*|-I*)
  45914. set fnord "$@" "$arg"; shift ;;
  45915. # Strip any option that makedepend may not understand. Remove
  45916. # the object too, otherwise makedepend will parse it as a source file.
  45917. + -arch)
  45918. + eat=yes ;;
  45919. -*|$object)
  45920. ;;
  45921. *)
  45922. set fnord "$@" "$arg"; shift ;;
  45923. esac
  45924. done
  45925. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  45926. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  45927. touch "$tmpdepfile"
  45928. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  45929. rm -f "$depfile"
  45930. @@ -495,7 +519,7 @@
  45931. # Remove the call to Libtool.
  45932. if test "$libtool" = yes; then
  45933. - while test $1 != '--mode=compile'; do
  45934. + while test "X$1" != 'X--mode=compile'; do
  45935. shift
  45936. done
  45937. shift
  45938. @@ -533,13 +557,27 @@
  45939. msvisualcpp)
  45940. # Important note: in order to support this mode, a compiler *must*
  45941. - # always write the preprocessed file to stdout, regardless of -o,
  45942. - # because we must use -o when running libtool.
  45943. + # always write the preprocessed file to stdout.
  45944. "$@" || exit $?
  45945. +
  45946. + # Remove the call to Libtool.
  45947. + if test "$libtool" = yes; then
  45948. + while test "X$1" != 'X--mode=compile'; do
  45949. + shift
  45950. + done
  45951. + shift
  45952. + fi
  45953. +
  45954. IFS=" "
  45955. for arg
  45956. do
  45957. case "$arg" in
  45958. + -o)
  45959. + shift
  45960. + ;;
  45961. + $object)
  45962. + shift
  45963. + ;;
  45964. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  45965. set fnord "$@"
  45966. shift
  45967. @@ -552,16 +590,23 @@
  45968. ;;
  45969. esac
  45970. done
  45971. - "$@" -E |
  45972. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  45973. + "$@" -E 2>/dev/null |
  45974. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  45975. rm -f "$depfile"
  45976. echo "$object : \\" > "$depfile"
  45977. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  45978. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  45979. echo " " >> "$depfile"
  45980. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  45981. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  45982. rm -f "$tmpdepfile"
  45983. ;;
  45984. +msvcmsys)
  45985. + # This case exists only to let depend.m4 do its work. It works by
  45986. + # looking at the text of this script. This case will never be run,
  45987. + # since it is checked for above.
  45988. + exit 1
  45989. + ;;
  45990. +
  45991. none)
  45992. exec "$@"
  45993. ;;
  45994. @@ -580,5 +625,6 @@
  45995. # eval: (add-hook 'write-file-hooks 'time-stamp)
  45996. # time-stamp-start: "scriptversion="
  45997. # time-stamp-format: "%:y-%02m-%02d.%02H"
  45998. -# time-stamp-end: "$"
  45999. +# time-stamp-time-zone: "UTC"
  46000. +# time-stamp-end: "; # UTC"
  46001. # End:
  46002. diff -Nur file-5.04.orig/doc/Makefile.in file-5.04/doc/Makefile.in
  46003. --- file-5.04.orig/doc/Makefile.in 2010-01-22 22:09:33.000000000 +0100
  46004. +++ file-5.04/doc/Makefile.in 2011-02-24 20:54:42.114811789 +0100
  46005. @@ -1,8 +1,9 @@
  46006. -# Makefile.in generated by automake 1.10 from Makefile.am.
  46007. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46008. # @configure_input@
  46009. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46010. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  46011. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46012. +# Inc.
  46013. # This Makefile.in is free software; the Free Software Foundation
  46014. # gives unlimited permission to copy and/or distribute it,
  46015. # with or without modifications, as long as this notice is preserved.
  46016. @@ -14,8 +15,9 @@
  46017. @SET_MAKE@
  46018. VPATH = @srcdir@
  46019. -pkglibdir = $(libdir)/@PACKAGE@
  46020. pkgincludedir = $(includedir)/@PACKAGE@
  46021. +pkglibdir = $(libdir)/@PACKAGE@
  46022. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46023. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46024. install_sh_DATA = $(install_sh) -c -m 644
  46025. install_sh_PROGRAM = $(install_sh) -c
  46026. @@ -40,8 +42,30 @@
  46027. mkinstalldirs = $(install_sh) -d
  46028. CONFIG_HEADER = $(top_builddir)/config.h
  46029. CONFIG_CLEAN_FILES =
  46030. +CONFIG_CLEAN_VPATH_FILES =
  46031. SOURCES =
  46032. DIST_SOURCES =
  46033. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  46034. +am__vpath_adj = case $$p in \
  46035. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  46036. + *) f=$$p;; \
  46037. + esac;
  46038. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  46039. +am__install_max = 40
  46040. +am__nobase_strip_setup = \
  46041. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  46042. +am__nobase_strip = \
  46043. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  46044. +am__nobase_list = $(am__nobase_strip_setup); \
  46045. + for p in $$list; do echo "$$p $$p"; done | \
  46046. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  46047. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  46048. + if (++n[$$2] == $(am__install_max)) \
  46049. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  46050. + END { for (dir in files) print dir, files[dir] }'
  46051. +am__base_list = \
  46052. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  46053. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  46054. man1dir = $(mandir)/man1
  46055. am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" \
  46056. "$(DESTDIR)$(man4dir)" "$(DESTDIR)$(man5dir)"
  46057. @@ -64,43 +88,45 @@
  46058. CFLAGS = @CFLAGS@
  46059. CPP = @CPP@
  46060. CPPFLAGS = @CPPFLAGS@
  46061. -CXX = @CXX@
  46062. -CXXCPP = @CXXCPP@
  46063. -CXXDEPMODE = @CXXDEPMODE@
  46064. -CXXFLAGS = @CXXFLAGS@
  46065. CYGPATH_W = @CYGPATH_W@
  46066. DEFS = @DEFS@
  46067. DEPDIR = @DEPDIR@
  46068. DSYMUTIL = @DSYMUTIL@
  46069. -ECHO = @ECHO@
  46070. +DUMPBIN = @DUMPBIN@
  46071. ECHO_C = @ECHO_C@
  46072. ECHO_N = @ECHO_N@
  46073. ECHO_T = @ECHO_T@
  46074. EGREP = @EGREP@
  46075. EXEEXT = @EXEEXT@
  46076. -F77 = @F77@
  46077. -FFLAGS = @FFLAGS@
  46078. +FGREP = @FGREP@
  46079. GREP = @GREP@
  46080. INSTALL = @INSTALL@
  46081. INSTALL_DATA = @INSTALL_DATA@
  46082. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46083. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46084. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46085. +LD = @LD@
  46086. LDFLAGS = @LDFLAGS@
  46087. LIBOBJS = @LIBOBJS@
  46088. LIBS = @LIBS@
  46089. LIBTOOL = @LIBTOOL@
  46090. +LIPO = @LIPO@
  46091. LN_S = @LN_S@
  46092. LTLIBOBJS = @LTLIBOBJS@
  46093. MAKEINFO = @MAKEINFO@
  46094. MKDIR_P = @MKDIR_P@
  46095. +NM = @NM@
  46096. NMEDIT = @NMEDIT@
  46097. +OBJDUMP = @OBJDUMP@
  46098. OBJEXT = @OBJEXT@
  46099. +OTOOL = @OTOOL@
  46100. +OTOOL64 = @OTOOL64@
  46101. PACKAGE = @PACKAGE@
  46102. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46103. PACKAGE_NAME = @PACKAGE_NAME@
  46104. PACKAGE_STRING = @PACKAGE_STRING@
  46105. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46106. +PACKAGE_URL = @PACKAGE_URL@
  46107. PACKAGE_VERSION = @PACKAGE_VERSION@
  46108. PATH_SEPARATOR = @PATH_SEPARATOR@
  46109. RANLIB = @RANLIB@
  46110. @@ -115,8 +141,7 @@
  46111. abs_top_builddir = @abs_top_builddir@
  46112. abs_top_srcdir = @abs_top_srcdir@
  46113. ac_ct_CC = @ac_ct_CC@
  46114. -ac_ct_CXX = @ac_ct_CXX@
  46115. -ac_ct_F77 = @ac_ct_F77@
  46116. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46117. am__include = @am__include@
  46118. am__leading_dot = @am__leading_dot@
  46119. am__quote = @am__quote@
  46120. @@ -148,6 +173,7 @@
  46121. libexecdir = @libexecdir@
  46122. localedir = @localedir@
  46123. localstatedir = @localstatedir@
  46124. +lt_ECHO = @lt_ECHO@
  46125. mandir = @mandir@
  46126. mkdir_p = @mkdir_p@
  46127. oldincludedir = @oldincludedir@
  46128. @@ -160,6 +186,7 @@
  46129. srcdir = @srcdir@
  46130. sysconfdir = @sysconfdir@
  46131. target_alias = @target_alias@
  46132. +top_build_prefix = @top_build_prefix@
  46133. top_builddir = @top_builddir@
  46134. top_srcdir = @top_srcdir@
  46135. MAGIC = $(pkgdatadir)/magic
  46136. @@ -175,14 +202,14 @@
  46137. @for dep in $?; do \
  46138. case '$(am__configure_deps)' in \
  46139. *$$dep*) \
  46140. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46141. - && exit 0; \
  46142. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46143. + && { if test -f $@; then exit 0; else break; fi; }; \
  46144. exit 1;; \
  46145. esac; \
  46146. done; \
  46147. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  46148. - cd $(top_srcdir) && \
  46149. - $(AUTOMAKE) --gnu doc/Makefile
  46150. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  46151. + $(am__cd) $(top_srcdir) && \
  46152. + $(AUTOMAKE) --gnu doc/Makefile
  46153. .PRECIOUS: Makefile
  46154. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46155. @case '$?' in \
  46156. @@ -200,192 +227,165 @@
  46157. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46158. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  46159. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46160. +$(am__aclocal_m4_deps):
  46161. mostlyclean-libtool:
  46162. -rm -f *.lo
  46163. clean-libtool:
  46164. -rm -rf .libs _libs
  46165. -install-man1: $(man1_MANS) $(man_MANS)
  46166. +install-man1: $(man_MANS)
  46167. @$(NORMAL_INSTALL)
  46168. test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
  46169. - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
  46170. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46171. - for i in $$l2; do \
  46172. - case "$$i" in \
  46173. - *.1*) list="$$list $$i" ;; \
  46174. - esac; \
  46175. + @list=''; test -n "$(man1dir)" || exit 0; \
  46176. + { for i in $$list; do echo "$$i"; done; \
  46177. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46178. + sed -n '/\.1[a-z]*$$/p'; \
  46179. + } | while read p; do \
  46180. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  46181. + echo "$$d$$p"; echo "$$p"; \
  46182. + done | \
  46183. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
  46184. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  46185. + sed 'N;N;s,\n, ,g' | { \
  46186. + list=; while read file base inst; do \
  46187. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  46188. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
  46189. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
  46190. + fi; \
  46191. done; \
  46192. - for i in $$list; do \
  46193. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  46194. - else file=$$i; fi; \
  46195. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46196. - case "$$ext" in \
  46197. - 1*) ;; \
  46198. - *) ext='1' ;; \
  46199. - esac; \
  46200. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46201. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46202. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46203. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
  46204. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
  46205. - done
  46206. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  46207. + while read files; do \
  46208. + test -z "$$files" || { \
  46209. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
  46210. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
  46211. + done; }
  46212. +
  46213. uninstall-man1:
  46214. @$(NORMAL_UNINSTALL)
  46215. - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
  46216. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46217. - for i in $$l2; do \
  46218. - case "$$i" in \
  46219. - *.1*) list="$$list $$i" ;; \
  46220. - esac; \
  46221. - done; \
  46222. - for i in $$list; do \
  46223. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46224. - case "$$ext" in \
  46225. - 1*) ;; \
  46226. - *) ext='1' ;; \
  46227. - esac; \
  46228. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46229. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46230. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46231. - echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
  46232. - rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
  46233. - done
  46234. -install-man3: $(man3_MANS) $(man_MANS)
  46235. + @list=''; test -n "$(man1dir)" || exit 0; \
  46236. + files=`{ for i in $$list; do echo "$$i"; done; \
  46237. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46238. + sed -n '/\.1[a-z]*$$/p'; \
  46239. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
  46240. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  46241. + test -z "$$files" || { \
  46242. + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
  46243. + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
  46244. +install-man3: $(man_MANS)
  46245. @$(NORMAL_INSTALL)
  46246. test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
  46247. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  46248. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46249. - for i in $$l2; do \
  46250. - case "$$i" in \
  46251. - *.3*) list="$$list $$i" ;; \
  46252. - esac; \
  46253. + @list=''; test -n "$(man3dir)" || exit 0; \
  46254. + { for i in $$list; do echo "$$i"; done; \
  46255. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46256. + sed -n '/\.3[a-z]*$$/p'; \
  46257. + } | while read p; do \
  46258. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  46259. + echo "$$d$$p"; echo "$$p"; \
  46260. + done | \
  46261. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  46262. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  46263. + sed 'N;N;s,\n, ,g' | { \
  46264. + list=; while read file base inst; do \
  46265. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  46266. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  46267. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
  46268. + fi; \
  46269. done; \
  46270. - for i in $$list; do \
  46271. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  46272. - else file=$$i; fi; \
  46273. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46274. - case "$$ext" in \
  46275. - 3*) ;; \
  46276. - *) ext='3' ;; \
  46277. - esac; \
  46278. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46279. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46280. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46281. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  46282. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
  46283. - done
  46284. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  46285. + while read files; do \
  46286. + test -z "$$files" || { \
  46287. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
  46288. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
  46289. + done; }
  46290. +
  46291. uninstall-man3:
  46292. @$(NORMAL_UNINSTALL)
  46293. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  46294. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46295. - for i in $$l2; do \
  46296. - case "$$i" in \
  46297. - *.3*) list="$$list $$i" ;; \
  46298. - esac; \
  46299. - done; \
  46300. - for i in $$list; do \
  46301. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46302. - case "$$ext" in \
  46303. - 3*) ;; \
  46304. - *) ext='3' ;; \
  46305. - esac; \
  46306. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46307. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46308. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46309. - echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
  46310. - rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
  46311. - done
  46312. -install-man4: $(man4_MANS) $(man_MANS)
  46313. + @list=''; test -n "$(man3dir)" || exit 0; \
  46314. + files=`{ for i in $$list; do echo "$$i"; done; \
  46315. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46316. + sed -n '/\.3[a-z]*$$/p'; \
  46317. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  46318. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  46319. + test -z "$$files" || { \
  46320. + echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
  46321. + cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
  46322. +install-man4: $(man_MANS)
  46323. @$(NORMAL_INSTALL)
  46324. test -z "$(man4dir)" || $(MKDIR_P) "$(DESTDIR)$(man4dir)"
  46325. - @list='$(man4_MANS) $(dist_man4_MANS) $(nodist_man4_MANS)'; \
  46326. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46327. - for i in $$l2; do \
  46328. - case "$$i" in \
  46329. - *.4*) list="$$list $$i" ;; \
  46330. - esac; \
  46331. + @list=''; test -n "$(man4dir)" || exit 0; \
  46332. + { for i in $$list; do echo "$$i"; done; \
  46333. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46334. + sed -n '/\.4[a-z]*$$/p'; \
  46335. + } | while read p; do \
  46336. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  46337. + echo "$$d$$p"; echo "$$p"; \
  46338. + done | \
  46339. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^4][0-9a-z]*$$,4,;x' \
  46340. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  46341. + sed 'N;N;s,\n, ,g' | { \
  46342. + list=; while read file base inst; do \
  46343. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  46344. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man4dir)/$$inst'"; \
  46345. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man4dir)/$$inst" || exit $$?; \
  46346. + fi; \
  46347. done; \
  46348. - for i in $$list; do \
  46349. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  46350. - else file=$$i; fi; \
  46351. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46352. - case "$$ext" in \
  46353. - 4*) ;; \
  46354. - *) ext='4' ;; \
  46355. - esac; \
  46356. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46357. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46358. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46359. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man4dir)/$$inst'"; \
  46360. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man4dir)/$$inst"; \
  46361. - done
  46362. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  46363. + while read files; do \
  46364. + test -z "$$files" || { \
  46365. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man4dir)'"; \
  46366. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man4dir)" || exit $$?; }; \
  46367. + done; }
  46368. +
  46369. uninstall-man4:
  46370. @$(NORMAL_UNINSTALL)
  46371. - @list='$(man4_MANS) $(dist_man4_MANS) $(nodist_man4_MANS)'; \
  46372. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46373. - for i in $$l2; do \
  46374. - case "$$i" in \
  46375. - *.4*) list="$$list $$i" ;; \
  46376. - esac; \
  46377. - done; \
  46378. - for i in $$list; do \
  46379. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46380. - case "$$ext" in \
  46381. - 4*) ;; \
  46382. - *) ext='4' ;; \
  46383. - esac; \
  46384. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46385. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46386. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46387. - echo " rm -f '$(DESTDIR)$(man4dir)/$$inst'"; \
  46388. - rm -f "$(DESTDIR)$(man4dir)/$$inst"; \
  46389. - done
  46390. -install-man5: $(man5_MANS) $(man_MANS)
  46391. + @list=''; test -n "$(man4dir)" || exit 0; \
  46392. + files=`{ for i in $$list; do echo "$$i"; done; \
  46393. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46394. + sed -n '/\.4[a-z]*$$/p'; \
  46395. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^4][0-9a-z]*$$,4,;x' \
  46396. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  46397. + test -z "$$files" || { \
  46398. + echo " ( cd '$(DESTDIR)$(man4dir)' && rm -f" $$files ")"; \
  46399. + cd "$(DESTDIR)$(man4dir)" && rm -f $$files; }
  46400. +install-man5: $(man_MANS)
  46401. @$(NORMAL_INSTALL)
  46402. test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)"
  46403. - @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
  46404. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46405. - for i in $$l2; do \
  46406. - case "$$i" in \
  46407. - *.5*) list="$$list $$i" ;; \
  46408. - esac; \
  46409. + @list=''; test -n "$(man5dir)" || exit 0; \
  46410. + { for i in $$list; do echo "$$i"; done; \
  46411. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46412. + sed -n '/\.5[a-z]*$$/p'; \
  46413. + } | while read p; do \
  46414. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  46415. + echo "$$d$$p"; echo "$$p"; \
  46416. + done | \
  46417. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
  46418. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  46419. + sed 'N;N;s,\n, ,g' | { \
  46420. + list=; while read file base inst; do \
  46421. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  46422. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
  46423. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \
  46424. + fi; \
  46425. done; \
  46426. - for i in $$list; do \
  46427. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  46428. - else file=$$i; fi; \
  46429. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46430. - case "$$ext" in \
  46431. - 5*) ;; \
  46432. - *) ext='5' ;; \
  46433. - esac; \
  46434. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46435. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46436. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46437. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
  46438. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst"; \
  46439. - done
  46440. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  46441. + while read files; do \
  46442. + test -z "$$files" || { \
  46443. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \
  46444. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \
  46445. + done; }
  46446. +
  46447. uninstall-man5:
  46448. @$(NORMAL_UNINSTALL)
  46449. - @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
  46450. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46451. - for i in $$l2; do \
  46452. - case "$$i" in \
  46453. - *.5*) list="$$list $$i" ;; \
  46454. - esac; \
  46455. - done; \
  46456. - for i in $$list; do \
  46457. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46458. - case "$$ext" in \
  46459. - 5*) ;; \
  46460. - *) ext='5' ;; \
  46461. - esac; \
  46462. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46463. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46464. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46465. - echo " rm -f '$(DESTDIR)$(man5dir)/$$inst'"; \
  46466. - rm -f "$(DESTDIR)$(man5dir)/$$inst"; \
  46467. - done
  46468. + @list=''; test -n "$(man5dir)" || exit 0; \
  46469. + files=`{ for i in $$list; do echo "$$i"; done; \
  46470. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46471. + sed -n '/\.5[a-z]*$$/p'; \
  46472. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
  46473. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  46474. + test -z "$$files" || { \
  46475. + echo " ( cd '$(DESTDIR)$(man5dir)' && rm -f" $$files ")"; \
  46476. + cd "$(DESTDIR)$(man5dir)" && rm -f $$files; }
  46477. tags: TAGS
  46478. TAGS:
  46479. @@ -394,6 +394,19 @@
  46480. distdir: $(DISTFILES)
  46481. + @list='$(MANS)'; if test -n "$$list"; then \
  46482. + list=`for p in $$list; do \
  46483. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  46484. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  46485. + if test -n "$$list" && \
  46486. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  46487. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  46488. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  46489. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  46490. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  46491. + exit 1; \
  46492. + else :; fi; \
  46493. + else :; fi
  46494. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  46495. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  46496. list='$(DISTFILES)'; \
  46497. @@ -409,13 +422,17 @@
  46498. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46499. if test -d $$d/$$file; then \
  46500. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46501. + if test -d "$(distdir)/$$file"; then \
  46502. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46503. + fi; \
  46504. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46505. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46506. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46507. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46508. fi; \
  46509. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46510. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46511. else \
  46512. - test -f $(distdir)/$$file \
  46513. - || cp -p $$d/$$file $(distdir)/$$file \
  46514. + test -f "$(distdir)/$$file" \
  46515. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46516. || exit 1; \
  46517. fi; \
  46518. done
  46519. @@ -447,6 +464,7 @@
  46520. distclean-generic:
  46521. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46522. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46523. maintainer-clean-generic:
  46524. @echo "This command is intended for maintainers to use"
  46525. @@ -465,6 +483,8 @@
  46526. html: html-am
  46527. +html-am:
  46528. +
  46529. info: info-am
  46530. info-am:
  46531. @@ -473,18 +493,28 @@
  46532. install-dvi: install-dvi-am
  46533. +install-dvi-am:
  46534. +
  46535. install-exec-am:
  46536. install-html: install-html-am
  46537. +install-html-am:
  46538. +
  46539. install-info: install-info-am
  46540. +install-info-am:
  46541. +
  46542. install-man: install-man1 install-man3 install-man4 install-man5
  46543. install-pdf: install-pdf-am
  46544. +install-pdf-am:
  46545. +
  46546. install-ps: install-ps-am
  46547. +install-ps-am:
  46548. +
  46549. installcheck-am:
  46550. maintainer-clean: maintainer-clean-am
  46551. @@ -545,6 +575,7 @@
  46552. -e s@__FSECTION__@${fsect}@g \
  46553. -e s@__VERSION__@${VERSION}@g \
  46554. -e s@__MAGIC__@${MAGIC}@g $(srcdir)/libmagic.man > $@
  46555. +
  46556. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  46557. # Otherwise a system limit (for SysV at least) may be exceeded.
  46558. .NOEXPORT:
  46559. diff -Nur file-5.04.orig/INSTALL file-5.04/INSTALL
  46560. --- file-5.04.orig/INSTALL 2010-01-22 22:09:34.000000000 +0100
  46561. +++ file-5.04/INSTALL 2011-02-24 20:54:42.293553011 +0100
  46562. @@ -2,18 +2,24 @@
  46563. *************************
  46564. Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  46565. -2006 Free Software Foundation, Inc.
  46566. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  46567. -This file is free documentation; the Free Software Foundation gives
  46568. -unlimited permission to copy, distribute and modify it.
  46569. + Copying and distribution of this file, with or without modification,
  46570. +are permitted in any medium without royalty provided the copyright
  46571. +notice and this notice are preserved. This file is offered as-is,
  46572. +without warranty of any kind.
  46573. Basic Installation
  46574. ==================
  46575. -Briefly, the shell commands `./configure; make; make install' should
  46576. + Briefly, the shell commands `./configure; make; make install' should
  46577. configure, build, and install this package. The following
  46578. more-detailed instructions are generic; see the `README' file for
  46579. -instructions specific to this package.
  46580. +instructions specific to this package. Some packages provide this
  46581. +`INSTALL' file but do not implement all of the features documented
  46582. +below. The lack of an optional feature in a given package is not
  46583. +necessarily a bug. More recommendations for GNU packages can be found
  46584. +in *note Makefile Conventions: (standards)Makefile Conventions.
  46585. The `configure' shell script attempts to guess correct values for
  46586. various system-dependent variables used during compilation. It uses
  46587. @@ -42,7 +48,7 @@
  46588. you want to change it or regenerate `configure' using a newer version
  46589. of `autoconf'.
  46590. -The simplest way to compile this package is:
  46591. + The simplest way to compile this package is:
  46592. 1. `cd' to the directory containing the package's source code and type
  46593. `./configure' to configure the package for your system.
  46594. @@ -53,12 +59,22 @@
  46595. 2. Type `make' to compile the package.
  46596. 3. Optionally, type `make check' to run any self-tests that come with
  46597. - the package.
  46598. + the package, generally using the just-built uninstalled binaries.
  46599. 4. Type `make install' to install the programs and any data files and
  46600. - documentation.
  46601. + documentation. When installing into a prefix owned by root, it is
  46602. + recommended that the package be configured and built as a regular
  46603. + user, and only the `make install' phase executed with root
  46604. + privileges.
  46605. +
  46606. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  46607. + this time using the binaries in their final installed location.
  46608. + This target does not install anything. Running this target as a
  46609. + regular user, particularly if the prior `make install' required
  46610. + root privileges, verifies that the installation completed
  46611. + correctly.
  46612. - 5. You can remove the program binaries and object files from the
  46613. + 6. You can remove the program binaries and object files from the
  46614. source code directory by typing `make clean'. To also remove the
  46615. files that `configure' created (so you can compile the package for
  46616. a different kind of computer), type `make distclean'. There is
  46617. @@ -67,12 +83,22 @@
  46618. all sorts of other programs in order to regenerate files that came
  46619. with the distribution.
  46620. + 7. Often, you can also type `make uninstall' to remove the installed
  46621. + files again. In practice, not all packages have tested that
  46622. + uninstallation works correctly, even though it is required by the
  46623. + GNU Coding Standards.
  46624. +
  46625. + 8. Some packages, particularly those that use Automake, provide `make
  46626. + distcheck', which can by used by developers to test that all other
  46627. + targets like `make install' and `make uninstall' work correctly.
  46628. + This target is generally not run by end users.
  46629. +
  46630. Compilers and Options
  46631. =====================
  46632. -Some systems require unusual options for compilation or linking that the
  46633. -`configure' script does not know about. Run `./configure --help' for
  46634. -details on some of the pertinent environment variables.
  46635. + Some systems require unusual options for compilation or linking that
  46636. +the `configure' script does not know about. Run `./configure --help'
  46637. +for details on some of the pertinent environment variables.
  46638. You can give `configure' initial values for configuration parameters
  46639. by setting variables in the command line or in the environment. Here
  46640. @@ -85,25 +111,41 @@
  46641. Compiling For Multiple Architectures
  46642. ====================================
  46643. -You can compile the package for more than one kind of computer at the
  46644. + You can compile the package for more than one kind of computer at the
  46645. same time, by placing the object files for each architecture in their
  46646. own directory. To do this, you can use GNU `make'. `cd' to the
  46647. directory where you want the object files and executables to go and run
  46648. the `configure' script. `configure' automatically checks for the
  46649. -source code in the directory that `configure' is in and in `..'.
  46650. +source code in the directory that `configure' is in and in `..'. This
  46651. +is known as a "VPATH" build.
  46652. With a non-GNU `make', it is safer to compile the package for one
  46653. architecture at a time in the source code directory. After you have
  46654. installed the package for one architecture, use `make distclean' before
  46655. reconfiguring for another architecture.
  46656. + On MacOS X 10.5 and later systems, you can create libraries and
  46657. +executables that work on multiple system types--known as "fat" or
  46658. +"universal" binaries--by specifying multiple `-arch' options to the
  46659. +compiler but only a single `-arch' option to the preprocessor. Like
  46660. +this:
  46661. +
  46662. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  46663. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  46664. + CPP="gcc -E" CXXCPP="g++ -E"
  46665. +
  46666. + This is not guaranteed to produce working output in all cases, you
  46667. +may have to build one architecture at a time and combine the results
  46668. +using the `lipo' tool if you have problems.
  46669. +
  46670. Installation Names
  46671. ==================
  46672. -By default, `make install' installs the package's commands under
  46673. + By default, `make install' installs the package's commands under
  46674. `/usr/local/bin', include files under `/usr/local/include', etc. You
  46675. can specify an installation prefix other than `/usr/local' by giving
  46676. -`configure' the option `--prefix=PREFIX'.
  46677. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  46678. +absolute file name.
  46679. You can specify separate installation prefixes for
  46680. architecture-specific files and architecture-independent files. If you
  46681. @@ -114,16 +156,47 @@
  46682. In addition, if you use an unusual directory layout you can give
  46683. options like `--bindir=DIR' to specify different values for particular
  46684. kinds of files. Run `configure --help' for a list of the directories
  46685. -you can set and what kinds of files go in them.
  46686. +you can set and what kinds of files go in them. In general, the
  46687. +default for these options is expressed in terms of `${prefix}', so that
  46688. +specifying just `--prefix' will affect all of the other directory
  46689. +specifications that were not explicitly provided.
  46690. +
  46691. + The most portable way to affect installation locations is to pass the
  46692. +correct locations to `configure'; however, many packages provide one or
  46693. +both of the following shortcuts of passing variable assignments to the
  46694. +`make install' command line to change installation locations without
  46695. +having to reconfigure or recompile.
  46696. +
  46697. + The first method involves providing an override variable for each
  46698. +affected directory. For example, `make install
  46699. +prefix=/alternate/directory' will choose an alternate location for all
  46700. +directory configuration variables that were expressed in terms of
  46701. +`${prefix}'. Any directories that were specified during `configure',
  46702. +but not in terms of `${prefix}', must each be overridden at install
  46703. +time for the entire installation to be relocated. The approach of
  46704. +makefile variable overrides for each directory variable is required by
  46705. +the GNU Coding Standards, and ideally causes no recompilation.
  46706. +However, some platforms have known limitations with the semantics of
  46707. +shared libraries that end up requiring recompilation when using this
  46708. +method, particularly noticeable in packages that use GNU Libtool.
  46709. +
  46710. + The second method involves providing the `DESTDIR' variable. For
  46711. +example, `make install DESTDIR=/alternate/directory' will prepend
  46712. +`/alternate/directory' before all installation names. The approach of
  46713. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  46714. +does not work on platforms that have drive letters. On the other hand,
  46715. +it does better at avoiding recompilation issues, and works well even
  46716. +when some directory options were not specified in terms of `${prefix}'
  46717. +at `configure' time.
  46718. +
  46719. +Optional Features
  46720. +=================
  46721. If the package supports it, you can cause programs to be installed
  46722. with an extra prefix or suffix on their names by giving `configure' the
  46723. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  46724. -Optional Features
  46725. -=================
  46726. -
  46727. -Some packages pay attention to `--enable-FEATURE' options to
  46728. + Some packages pay attention to `--enable-FEATURE' options to
  46729. `configure', where FEATURE indicates an optional part of the package.
  46730. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  46731. is something like `gnu-as' or `x' (for the X Window System). The
  46732. @@ -135,14 +208,53 @@
  46733. you can use the `configure' options `--x-includes=DIR' and
  46734. `--x-libraries=DIR' to specify their locations.
  46735. + Some packages offer the ability to configure how verbose the
  46736. +execution of `make' will be. For these packages, running `./configure
  46737. +--enable-silent-rules' sets the default to minimal output, which can be
  46738. +overridden with `make V=1'; while running `./configure
  46739. +--disable-silent-rules' sets the default to verbose, which can be
  46740. +overridden with `make V=0'.
  46741. +
  46742. +Particular systems
  46743. +==================
  46744. +
  46745. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  46746. +CC is not installed, it is recommended to use the following options in
  46747. +order to use an ANSI C compiler:
  46748. +
  46749. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  46750. +
  46751. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  46752. +
  46753. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  46754. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  46755. +a workaround. If GNU CC is not installed, it is therefore recommended
  46756. +to try
  46757. +
  46758. + ./configure CC="cc"
  46759. +
  46760. +and if that doesn't work, try
  46761. +
  46762. + ./configure CC="cc -nodtk"
  46763. +
  46764. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  46765. +directory contains several dysfunctional programs; working variants of
  46766. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  46767. +in your `PATH', put it _after_ `/usr/bin'.
  46768. +
  46769. + On Haiku, software installed for all users goes in `/boot/common',
  46770. +not `/usr/local'. It is recommended to use the following options:
  46771. +
  46772. + ./configure --prefix=/boot/common
  46773. +
  46774. Specifying the System Type
  46775. ==========================
  46776. -There may be some features `configure' cannot figure out automatically,
  46777. -but needs to determine by the type of machine the package will run on.
  46778. -Usually, assuming the package is built to be run on the _same_
  46779. -architectures, `configure' can figure that out, but if it prints a
  46780. -message saying it cannot guess the machine type, give it the
  46781. + There may be some features `configure' cannot figure out
  46782. +automatically, but needs to determine by the type of machine the package
  46783. +will run on. Usually, assuming the package is built to be run on the
  46784. +_same_ architectures, `configure' can figure that out, but if it prints
  46785. +a message saying it cannot guess the machine type, give it the
  46786. `--build=TYPE' option. TYPE can either be a short name for the system
  46787. type, such as `sun4', or a canonical name which has the form:
  46788. @@ -150,7 +262,8 @@
  46789. where SYSTEM can have one of these forms:
  46790. - OS KERNEL-OS
  46791. + OS
  46792. + KERNEL-OS
  46793. See the file `config.sub' for the possible values of each field. If
  46794. `config.sub' isn't included in this package, then this package doesn't
  46795. @@ -168,9 +281,9 @@
  46796. Sharing Defaults
  46797. ================
  46798. -If you want to set default values for `configure' scripts to share, you
  46799. -can create a site shell script called `config.site' that gives default
  46800. -values for variables like `CC', `cache_file', and `prefix'.
  46801. + If you want to set default values for `configure' scripts to share,
  46802. +you can create a site shell script called `config.site' that gives
  46803. +default values for variables like `CC', `cache_file', and `prefix'.
  46804. `configure' looks for `PREFIX/share/config.site' if it exists, then
  46805. `PREFIX/etc/config.site' if it exists. Or, you can set the
  46806. `CONFIG_SITE' environment variable to the location of the site script.
  46807. @@ -179,7 +292,7 @@
  46808. Defining Variables
  46809. ==================
  46810. -Variables not defined in a site shell script can be set in the
  46811. + Variables not defined in a site shell script can be set in the
  46812. environment passed to `configure'. However, some packages may run
  46813. configure again during the build, and the customized values of these
  46814. variables may be lost. In order to avoid this problem, you should set
  46815. @@ -198,11 +311,19 @@
  46816. `configure' Invocation
  46817. ======================
  46818. -`configure' recognizes the following options to control how it operates.
  46819. + `configure' recognizes the following options to control how it
  46820. +operates.
  46821. `--help'
  46822. `-h'
  46823. - Print a summary of the options to `configure', and exit.
  46824. + Print a summary of all of the options to `configure', and exit.
  46825. +
  46826. +`--help=short'
  46827. +`--help=recursive'
  46828. + Print a summary of the options unique to this package's
  46829. + `configure', and exit. The `short' variant lists options used
  46830. + only in the top level, while the `recursive' variant lists options
  46831. + also present in any nested packages.
  46832. `--version'
  46833. `-V'
  46834. @@ -229,6 +350,16 @@
  46835. Look for the package's source code in directory DIR. Usually
  46836. `configure' can determine that directory automatically.
  46837. +`--prefix=DIR'
  46838. + Use DIR as the installation prefix. *note Installation Names::
  46839. + for more details, including other options available for fine-tuning
  46840. + the installation locations.
  46841. +
  46842. +`--no-create'
  46843. +`-n'
  46844. + Run the configure checks, but stop before creating any output
  46845. + files.
  46846. +
  46847. `configure' also accepts some other, not widely useful, options. Run
  46848. `configure --help' for more details.
  46849. diff -Nur file-5.04.orig/install-sh file-5.04/install-sh
  46850. --- file-5.04.orig/install-sh 2010-01-22 22:09:33.000000000 +0100
  46851. +++ file-5.04/install-sh 2011-02-24 20:54:42.054813774 +0100
  46852. @@ -1,7 +1,7 @@
  46853. #!/bin/sh
  46854. # install - install a program, script, or datafile
  46855. -scriptversion=2006-10-14.15
  46856. +scriptversion=2009-04-28.21; # UTC
  46857. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  46858. # later released in X11R6 (xc/config/util/install.sh) with the
  46859. @@ -48,7 +48,7 @@
  46860. # set DOITPROG to echo to test this script
  46861. # Don't use :- since 4.3BSD and earlier shells don't like it.
  46862. -doit="${DOITPROG-}"
  46863. +doit=${DOITPROG-}
  46864. if test -z "$doit"; then
  46865. doit_exec=exec
  46866. else
  46867. @@ -58,34 +58,49 @@
  46868. # Put in absolute file names if you don't have them in your path;
  46869. # or use environment vars.
  46870. -mvprog="${MVPROG-mv}"
  46871. -cpprog="${CPPROG-cp}"
  46872. -chmodprog="${CHMODPROG-chmod}"
  46873. -chownprog="${CHOWNPROG-chown}"
  46874. -chgrpprog="${CHGRPPROG-chgrp}"
  46875. -stripprog="${STRIPPROG-strip}"
  46876. -rmprog="${RMPROG-rm}"
  46877. -mkdirprog="${MKDIRPROG-mkdir}"
  46878. +chgrpprog=${CHGRPPROG-chgrp}
  46879. +chmodprog=${CHMODPROG-chmod}
  46880. +chownprog=${CHOWNPROG-chown}
  46881. +cmpprog=${CMPPROG-cmp}
  46882. +cpprog=${CPPROG-cp}
  46883. +mkdirprog=${MKDIRPROG-mkdir}
  46884. +mvprog=${MVPROG-mv}
  46885. +rmprog=${RMPROG-rm}
  46886. +stripprog=${STRIPPROG-strip}
  46887. +
  46888. +posix_glob='?'
  46889. +initialize_posix_glob='
  46890. + test "$posix_glob" != "?" || {
  46891. + if (set -f) 2>/dev/null; then
  46892. + posix_glob=
  46893. + else
  46894. + posix_glob=:
  46895. + fi
  46896. + }
  46897. +'
  46898. -posix_glob=
  46899. posix_mkdir=
  46900. # Desired mode of installed file.
  46901. mode=0755
  46902. +chgrpcmd=
  46903. chmodcmd=$chmodprog
  46904. chowncmd=
  46905. -chgrpcmd=
  46906. -stripcmd=
  46907. +mvcmd=$mvprog
  46908. rmcmd="$rmprog -f"
  46909. -mvcmd="$mvprog"
  46910. +stripcmd=
  46911. +
  46912. src=
  46913. dst=
  46914. dir_arg=
  46915. -dstarg=
  46916. +dst_arg=
  46917. +
  46918. +copy_on_change=false
  46919. no_target_directory=
  46920. -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  46921. +usage="\
  46922. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  46923. or: $0 [OPTION]... SRCFILES... DIRECTORY
  46924. or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  46925. or: $0 [OPTION]... -d DIRECTORIES...
  46926. @@ -95,65 +110,55 @@
  46927. In the 4th, create DIRECTORIES.
  46928. Options:
  46929. --c (ignored)
  46930. --d create directories instead of installing files.
  46931. --g GROUP $chgrpprog installed files to GROUP.
  46932. --m MODE $chmodprog installed files to MODE.
  46933. --o USER $chownprog installed files to USER.
  46934. --s $stripprog installed files.
  46935. --t DIRECTORY install into DIRECTORY.
  46936. --T report an error if DSTFILE is a directory.
  46937. ---help display this help and exit.
  46938. ---version display version info and exit.
  46939. + --help display this help and exit.
  46940. + --version display version info and exit.
  46941. +
  46942. + -c (ignored)
  46943. + -C install only if different (preserve the last data modification time)
  46944. + -d create directories instead of installing files.
  46945. + -g GROUP $chgrpprog installed files to GROUP.
  46946. + -m MODE $chmodprog installed files to MODE.
  46947. + -o USER $chownprog installed files to USER.
  46948. + -s $stripprog installed files.
  46949. + -t DIRECTORY install into DIRECTORY.
  46950. + -T report an error if DSTFILE is a directory.
  46951. Environment variables override the default commands:
  46952. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  46953. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  46954. + RMPROG STRIPPROG
  46955. "
  46956. while test $# -ne 0; do
  46957. case $1 in
  46958. - -c) shift
  46959. - continue;;
  46960. + -c) ;;
  46961. +
  46962. + -C) copy_on_change=true;;
  46963. - -d) dir_arg=true
  46964. - shift
  46965. - continue;;
  46966. + -d) dir_arg=true;;
  46967. -g) chgrpcmd="$chgrpprog $2"
  46968. - shift
  46969. - shift
  46970. - continue;;
  46971. + shift;;
  46972. --help) echo "$usage"; exit $?;;
  46973. -m) mode=$2
  46974. - shift
  46975. - shift
  46976. case $mode in
  46977. *' '* | *' '* | *'
  46978. '* | *'*'* | *'?'* | *'['*)
  46979. echo "$0: invalid mode: $mode" >&2
  46980. exit 1;;
  46981. esac
  46982. - continue;;
  46983. + shift;;
  46984. -o) chowncmd="$chownprog $2"
  46985. - shift
  46986. - shift
  46987. - continue;;
  46988. -
  46989. - -s) stripcmd=$stripprog
  46990. - shift
  46991. - continue;;
  46992. -
  46993. - -t) dstarg=$2
  46994. - shift
  46995. - shift
  46996. - continue;;
  46997. -
  46998. - -T) no_target_directory=true
  46999. - shift
  47000. - continue;;
  47001. + shift;;
  47002. +
  47003. + -s) stripcmd=$stripprog;;
  47004. +
  47005. + -t) dst_arg=$2
  47006. + shift;;
  47007. +
  47008. + -T) no_target_directory=true;;
  47009. --version) echo "$0 $scriptversion"; exit $?;;
  47010. @@ -165,21 +170,22 @@
  47011. *) break;;
  47012. esac
  47013. + shift
  47014. done
  47015. -if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
  47016. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  47017. # When -d is used, all remaining arguments are directories to create.
  47018. # When -t is used, the destination is already specified.
  47019. # Otherwise, the last argument is the destination. Remove it from $@.
  47020. for arg
  47021. do
  47022. - if test -n "$dstarg"; then
  47023. + if test -n "$dst_arg"; then
  47024. # $@ is not empty: it contains at least $arg.
  47025. - set fnord "$@" "$dstarg"
  47026. + set fnord "$@" "$dst_arg"
  47027. shift # fnord
  47028. fi
  47029. shift # arg
  47030. - dstarg=$arg
  47031. + dst_arg=$arg
  47032. done
  47033. fi
  47034. @@ -224,7 +230,7 @@
  47035. do
  47036. # Protect names starting with `-'.
  47037. case $src in
  47038. - -*) src=./$src ;;
  47039. + -*) src=./$src;;
  47040. esac
  47041. if test -n "$dir_arg"; then
  47042. @@ -242,22 +248,22 @@
  47043. exit 1
  47044. fi
  47045. - if test -z "$dstarg"; then
  47046. + if test -z "$dst_arg"; then
  47047. echo "$0: no destination specified." >&2
  47048. exit 1
  47049. fi
  47050. - dst=$dstarg
  47051. + dst=$dst_arg
  47052. # Protect names starting with `-'.
  47053. case $dst in
  47054. - -*) dst=./$dst ;;
  47055. + -*) dst=./$dst;;
  47056. esac
  47057. # If destination is a directory, append the input filename; won't work
  47058. # if double slashes aren't ignored.
  47059. if test -d "$dst"; then
  47060. if test -n "$no_target_directory"; then
  47061. - echo "$0: $dstarg: Is a directory" >&2
  47062. + echo "$0: $dst_arg: Is a directory" >&2
  47063. exit 1
  47064. fi
  47065. dstdir=$dst
  47066. @@ -378,26 +384,19 @@
  47067. # directory the slow way, step by step, checking for races as we go.
  47068. case $dstdir in
  47069. - /*) prefix=/ ;;
  47070. - -*) prefix=./ ;;
  47071. - *) prefix= ;;
  47072. + /*) prefix='/';;
  47073. + -*) prefix='./';;
  47074. + *) prefix='';;
  47075. esac
  47076. - case $posix_glob in
  47077. - '')
  47078. - if (set -f) 2>/dev/null; then
  47079. - posix_glob=true
  47080. - else
  47081. - posix_glob=false
  47082. - fi ;;
  47083. - esac
  47084. + eval "$initialize_posix_glob"
  47085. oIFS=$IFS
  47086. IFS=/
  47087. - $posix_glob && set -f
  47088. + $posix_glob set -f
  47089. set fnord $dstdir
  47090. shift
  47091. - $posix_glob && set +f
  47092. + $posix_glob set +f
  47093. IFS=$oIFS
  47094. prefixes=
  47095. @@ -459,41 +458,54 @@
  47096. # ignore errors from any of these, just make sure not to ignore
  47097. # errors from the above "$doit $cpprog $src $dsttmp" command.
  47098. #
  47099. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  47100. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  47101. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  47102. - && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  47103. -
  47104. - # Now rename the file to the real destination.
  47105. - { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
  47106. - || {
  47107. - # The rename failed, perhaps because mv can't rename something else
  47108. - # to itself, or perhaps because mv is so ancient that it does not
  47109. - # support -f.
  47110. -
  47111. - # Now remove or move aside any old file at destination location.
  47112. - # We try this two ways since rm can't unlink itself on some
  47113. - # systems and the destination file might be busy for other
  47114. - # reasons. In this case, the final cleanup might fail but the new
  47115. - # file should still install successfully.
  47116. - {
  47117. - if test -f "$dst"; then
  47118. - $doit $rmcmd -f "$dst" 2>/dev/null \
  47119. - || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
  47120. - && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
  47121. - || {
  47122. - echo "$0: cannot unlink or rename $dst" >&2
  47123. - (exit 1); exit 1
  47124. - }
  47125. - else
  47126. - :
  47127. - fi
  47128. - } &&
  47129. -
  47130. - # Now rename the file to the real destination.
  47131. - $doit $mvcmd "$dsttmp" "$dst"
  47132. - }
  47133. - } || exit 1
  47134. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  47135. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  47136. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  47137. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  47138. +
  47139. + # If -C, don't bother to copy if it wouldn't change the file.
  47140. + if $copy_on_change &&
  47141. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  47142. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  47143. +
  47144. + eval "$initialize_posix_glob" &&
  47145. + $posix_glob set -f &&
  47146. + set X $old && old=:$2:$4:$5:$6 &&
  47147. + set X $new && new=:$2:$4:$5:$6 &&
  47148. + $posix_glob set +f &&
  47149. +
  47150. + test "$old" = "$new" &&
  47151. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  47152. + then
  47153. + rm -f "$dsttmp"
  47154. + else
  47155. + # Rename the file to the real destination.
  47156. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  47157. +
  47158. + # The rename failed, perhaps because mv can't rename something else
  47159. + # to itself, or perhaps because mv is so ancient that it does not
  47160. + # support -f.
  47161. + {
  47162. + # Now remove or move aside any old file at destination location.
  47163. + # We try this two ways since rm can't unlink itself on some
  47164. + # systems and the destination file might be busy for other
  47165. + # reasons. In this case, the final cleanup might fail but the new
  47166. + # file should still install successfully.
  47167. + {
  47168. + test ! -f "$dst" ||
  47169. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  47170. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  47171. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  47172. + } ||
  47173. + { echo "$0: cannot unlink or rename $dst" >&2
  47174. + (exit 1); exit 1
  47175. + }
  47176. + } &&
  47177. +
  47178. + # Now rename the file to the real destination.
  47179. + $doit $mvcmd "$dsttmp" "$dst"
  47180. + }
  47181. + fi || exit 1
  47182. trap '' 0
  47183. fi
  47184. @@ -503,5 +515,6 @@
  47185. # eval: (add-hook 'write-file-hooks 'time-stamp)
  47186. # time-stamp-start: "scriptversion="
  47187. # time-stamp-format: "%:y-%02m-%02d.%02H"
  47188. -# time-stamp-end: "$"
  47189. +# time-stamp-time-zone: "UTC"
  47190. +# time-stamp-end: "; # UTC"
  47191. # End:
  47192. diff -Nur file-5.04.orig/ltmain.sh file-5.04/ltmain.sh
  47193. --- file-5.04.orig/ltmain.sh 2009-02-09 17:40:06.000000000 +0100
  47194. +++ file-5.04/ltmain.sh 2011-02-24 20:54:38.173551343 +0100
  47195. @@ -1,52 +1,83 @@
  47196. -# ltmain.sh - Provide generalized library-building support services.
  47197. -# NOTE: Changing this file will not affect anything until you rerun configure.
  47198. -#
  47199. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  47200. -# 2007, 2008 Free Software Foundation, Inc.
  47201. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  47202. -#
  47203. -# This program is free software; you can redistribute it and/or modify
  47204. +# Generated from ltmain.m4sh.
  47205. +
  47206. +# ltmain.sh (GNU libtool) 2.2.6b
  47207. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  47208. +
  47209. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  47210. +# This is free software; see the source for copying conditions. There is NO
  47211. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  47212. +
  47213. +# GNU Libtool is free software; you can redistribute it and/or modify
  47214. # it under the terms of the GNU General Public License as published by
  47215. # the Free Software Foundation; either version 2 of the License, or
  47216. # (at your option) any later version.
  47217. #
  47218. -# This program is distributed in the hope that it will be useful, but
  47219. +# As a special exception to the GNU General Public License,
  47220. +# if you distribute this file as part of a program or library that
  47221. +# is built using GNU Libtool, you may include this file under the
  47222. +# same distribution terms that you use for the rest of that program.
  47223. +#
  47224. +# GNU Libtool is distributed in the hope that it will be useful, but
  47225. # WITHOUT ANY WARRANTY; without even the implied warranty of
  47226. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  47227. # General Public License for more details.
  47228. #
  47229. # You should have received a copy of the GNU General Public License
  47230. -# along with this program; if not, write to the Free Software
  47231. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47232. -#
  47233. -# As a special exception to the GNU General Public License, if you
  47234. -# distribute this file as part of a program that contains a
  47235. -# configuration script generated by Autoconf, you may include it under
  47236. -# the same distribution terms that you use for the rest of that program.
  47237. -
  47238. -basename="s,^.*/,,g"
  47239. -
  47240. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  47241. -# is ksh but when the shell is invoked as "sh" and the current value of
  47242. -# the _XPG environment variable is not equal to 1 (one), the special
  47243. -# positional parameter $0, within a function call, is the name of the
  47244. -# function.
  47245. -progpath="$0"
  47246. -
  47247. -# The name of this program:
  47248. -progname=`echo "$progpath" | $SED $basename`
  47249. -modename="$progname"
  47250. +# along with GNU Libtool; see the file COPYING. If not, a copy
  47251. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  47252. +# or obtained by writing to the Free Software Foundation, Inc.,
  47253. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47254. -# Global variables:
  47255. -EXIT_SUCCESS=0
  47256. -EXIT_FAILURE=1
  47257. +# Usage: $progname [OPTION]... [MODE-ARG]...
  47258. +#
  47259. +# Provide generalized library-building support services.
  47260. +#
  47261. +# --config show all configuration variables
  47262. +# --debug enable verbose shell tracing
  47263. +# -n, --dry-run display commands without modifying any files
  47264. +# --features display basic configuration information and exit
  47265. +# --mode=MODE use operation mode MODE
  47266. +# --preserve-dup-deps don't remove duplicate dependency libraries
  47267. +# --quiet, --silent don't print informational messages
  47268. +# --tag=TAG use configuration variables from tag TAG
  47269. +# -v, --verbose print informational messages (default)
  47270. +# --version print version information
  47271. +# -h, --help print short or long help message
  47272. +#
  47273. +# MODE must be one of the following:
  47274. +#
  47275. +# clean remove files from the build directory
  47276. +# compile compile a source file into a libtool object
  47277. +# execute automatically set library path, then run a program
  47278. +# finish complete the installation of libtool libraries
  47279. +# install install libraries or executables
  47280. +# link create a library or an executable
  47281. +# uninstall remove libraries from an installed directory
  47282. +#
  47283. +# MODE-ARGS vary depending on the MODE.
  47284. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  47285. +#
  47286. +# When reporting a bug, please describe a test case to reproduce it and
  47287. +# include the following information:
  47288. +#
  47289. +# host-triplet: $host
  47290. +# shell: $SHELL
  47291. +# compiler: $LTCC
  47292. +# compiler flags: $LTCFLAGS
  47293. +# linker: $LD (gnu? $with_gnu_ld)
  47294. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  47295. +# automake: $automake_version
  47296. +# autoconf: $autoconf_version
  47297. +#
  47298. +# Report bugs to <bug-libtool@gnu.org>.
  47299. PROGRAM=ltmain.sh
  47300. PACKAGE=libtool
  47301. -VERSION=1.5.26
  47302. -TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
  47303. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  47304. +TIMESTAMP=""
  47305. +package_revision=1.3017
  47306. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  47307. +# Be Bourne compatible
  47308. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  47309. emulate sh
  47310. NULLCMD=:
  47311. @@ -60,104 +91,261 @@
  47312. BIN_SH=xpg4; export BIN_SH # for Tru64
  47313. DUALCASE=1; export DUALCASE # for MKS sh
  47314. -# Check that we have a working $echo.
  47315. -if test "X$1" = X--no-reexec; then
  47316. - # Discard the --no-reexec flag, and continue.
  47317. - shift
  47318. -elif test "X$1" = X--fallback-echo; then
  47319. - # Avoid inline document here, it may be left over
  47320. - :
  47321. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  47322. - # Yippee, $echo works!
  47323. - :
  47324. -else
  47325. - # Restart under the correct shell, and then maybe $echo will work.
  47326. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  47327. -fi
  47328. -
  47329. -if test "X$1" = X--fallback-echo; then
  47330. - # used as fallback echo
  47331. - shift
  47332. - cat <<EOF
  47333. -$*
  47334. -EOF
  47335. - exit $EXIT_SUCCESS
  47336. -fi
  47337. -
  47338. -default_mode=
  47339. -help="Try \`$progname --help' for more information."
  47340. -magic="%%%MAGIC variable%%%"
  47341. -mkdir="mkdir"
  47342. -mv="mv -f"
  47343. -rm="rm -f"
  47344. -
  47345. -# Sed substitution that helps us do robust quoting. It backslashifies
  47346. -# metacharacters that are still active within double-quoted strings.
  47347. -Xsed="${SED}"' -e 1s/^X//'
  47348. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  47349. -# test EBCDIC or ASCII
  47350. -case `echo X|tr X '\101'` in
  47351. - A) # ASCII based system
  47352. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  47353. - SP2NL='tr \040 \012'
  47354. - NL2SP='tr \015\012 \040\040'
  47355. - ;;
  47356. - *) # EBCDIC based system
  47357. - SP2NL='tr \100 \n'
  47358. - NL2SP='tr \r\n \100\100'
  47359. - ;;
  47360. -esac
  47361. -
  47362. -# NLS nuisances.
  47363. +# NLS nuisances: We save the old values to restore during execute mode.
  47364. # Only set LANG and LC_ALL to C if already set.
  47365. # These must not be set unconditionally because not all systems understand
  47366. # e.g. LANG=C (notably SCO).
  47367. -# We save the old values to restore during execute mode.
  47368. -lt_env=
  47369. +lt_user_locale=
  47370. +lt_safe_locale=
  47371. for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  47372. do
  47373. eval "if test \"\${$lt_var+set}\" = set; then
  47374. - save_$lt_var=\$$lt_var
  47375. - lt_env=\"$lt_var=\$$lt_var \$lt_env\"
  47376. - $lt_var=C
  47377. + save_$lt_var=\$$lt_var
  47378. + $lt_var=C
  47379. export $lt_var
  47380. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  47381. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  47382. fi"
  47383. done
  47384. -if test -n "$lt_env"; then
  47385. - lt_env="env $lt_env"
  47386. -fi
  47387. +$lt_unset CDPATH
  47388. +
  47389. +
  47390. +
  47391. +
  47392. +
  47393. +: ${CP="cp -f"}
  47394. +: ${ECHO="echo"}
  47395. +: ${EGREP="/bin/grep -E"}
  47396. +: ${FGREP="/bin/grep -F"}
  47397. +: ${GREP="/bin/grep"}
  47398. +: ${LN_S="ln -s"}
  47399. +: ${MAKE="make"}
  47400. +: ${MKDIR="mkdir"}
  47401. +: ${MV="mv -f"}
  47402. +: ${RM="rm -f"}
  47403. +: ${SED="/bin/sed"}
  47404. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  47405. +: ${Xsed="$SED -e 1s/^X//"}
  47406. +
  47407. +# Global variables:
  47408. +EXIT_SUCCESS=0
  47409. +EXIT_FAILURE=1
  47410. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  47411. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  47412. +
  47413. +exit_status=$EXIT_SUCCESS
  47414. # Make sure IFS has a sensible default
  47415. lt_nl='
  47416. '
  47417. IFS=" $lt_nl"
  47418. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  47419. - $echo "$modename: not configured to build any kind of library" 1>&2
  47420. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  47421. - exit $EXIT_FAILURE
  47422. -fi
  47423. +dirname="s,/[^/]*$,,"
  47424. +basename="s,^.*/,,"
  47425. -# Global variables.
  47426. -mode=$default_mode
  47427. -nonopt=
  47428. -prev=
  47429. -prevopt=
  47430. -run=
  47431. -show="$echo"
  47432. -show_help=
  47433. -execute_dlfiles=
  47434. -duplicate_deps=no
  47435. -preserve_args=
  47436. -lo2o="s/\\.lo\$/.${objext}/"
  47437. -o2lo="s/\\.${objext}\$/.lo/"
  47438. -extracted_archives=
  47439. -extracted_serial=0
  47440. +# func_dirname_and_basename file append nondir_replacement
  47441. +# perform func_basename and func_dirname in a single function
  47442. +# call:
  47443. +# dirname: Compute the dirname of FILE. If nonempty,
  47444. +# add APPEND to the result, otherwise set result
  47445. +# to NONDIR_REPLACEMENT.
  47446. +# value returned in "$func_dirname_result"
  47447. +# basename: Compute filename of FILE.
  47448. +# value retuned in "$func_basename_result"
  47449. +# Implementation must be kept synchronized with func_dirname
  47450. +# and func_basename. For efficiency, we do not delegate to
  47451. +# those functions but instead duplicate the functionality here.
  47452. +func_dirname_and_basename ()
  47453. +{
  47454. + # Extract subdirectory from the argument.
  47455. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  47456. + if test "X$func_dirname_result" = "X${1}"; then
  47457. + func_dirname_result="${3}"
  47458. + else
  47459. + func_dirname_result="$func_dirname_result${2}"
  47460. + fi
  47461. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  47462. +}
  47463. +
  47464. +# Generated shell functions inserted here.
  47465. +
  47466. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  47467. +# is ksh but when the shell is invoked as "sh" and the current value of
  47468. +# the _XPG environment variable is not equal to 1 (one), the special
  47469. +# positional parameter $0, within a function call, is the name of the
  47470. +# function.
  47471. +progpath="$0"
  47472. +
  47473. +# The name of this program:
  47474. +# In the unlikely event $progname began with a '-', it would play havoc with
  47475. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  47476. +func_dirname_and_basename "$progpath"
  47477. +progname=$func_basename_result
  47478. +case $progname in
  47479. + -*) progname=./$progname ;;
  47480. +esac
  47481. +
  47482. +# Make sure we have an absolute path for reexecution:
  47483. +case $progpath in
  47484. + [\\/]*|[A-Za-z]:\\*) ;;
  47485. + *[\\/]*)
  47486. + progdir=$func_dirname_result
  47487. + progdir=`cd "$progdir" && pwd`
  47488. + progpath="$progdir/$progname"
  47489. + ;;
  47490. + *)
  47491. + save_IFS="$IFS"
  47492. + IFS=:
  47493. + for progdir in $PATH; do
  47494. + IFS="$save_IFS"
  47495. + test -x "$progdir/$progname" && break
  47496. + done
  47497. + IFS="$save_IFS"
  47498. + test -n "$progdir" || progdir=`pwd`
  47499. + progpath="$progdir/$progname"
  47500. + ;;
  47501. +esac
  47502. +
  47503. +# Sed substitution that helps us do robust quoting. It backslashifies
  47504. +# metacharacters that are still active within double-quoted strings.
  47505. +Xsed="${SED}"' -e 1s/^X//'
  47506. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  47507. +
  47508. +# Same as above, but do not quote variable references.
  47509. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  47510. +
  47511. +# Re-`\' parameter expansions in output of double_quote_subst that were
  47512. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  47513. +# in input to double_quote_subst, that '$' was protected from expansion.
  47514. +# Since each input `\' is now two `\'s, look for any number of runs of
  47515. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  47516. +bs='\\'
  47517. +bs2='\\\\'
  47518. +bs4='\\\\\\\\'
  47519. +dollar='\$'
  47520. +sed_double_backslash="\
  47521. + s/$bs4/&\\
  47522. +/g
  47523. + s/^$bs2$dollar/$bs&/
  47524. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  47525. + s/\n//g"
  47526. +
  47527. +# Standard options:
  47528. +opt_dry_run=false
  47529. +opt_help=false
  47530. +opt_quiet=false
  47531. +opt_verbose=false
  47532. +opt_warning=:
  47533. +
  47534. +# func_echo arg...
  47535. +# Echo program name prefixed message, along with the current mode
  47536. +# name if it has been set yet.
  47537. +func_echo ()
  47538. +{
  47539. + $ECHO "$progname${mode+: }$mode: $*"
  47540. +}
  47541. +
  47542. +# func_verbose arg...
  47543. +# Echo program name prefixed message in verbose mode only.
  47544. +func_verbose ()
  47545. +{
  47546. + $opt_verbose && func_echo ${1+"$@"}
  47547. +
  47548. + # A bug in bash halts the script if the last line of a function
  47549. + # fails when set -e is in force, so we need another command to
  47550. + # work around that:
  47551. + :
  47552. +}
  47553. +
  47554. +# func_error arg...
  47555. +# Echo program name prefixed message to standard error.
  47556. +func_error ()
  47557. +{
  47558. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  47559. +}
  47560. +
  47561. +# func_warning arg...
  47562. +# Echo program name prefixed warning message to standard error.
  47563. +func_warning ()
  47564. +{
  47565. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  47566. +
  47567. + # bash bug again:
  47568. + :
  47569. +}
  47570. +
  47571. +# func_fatal_error arg...
  47572. +# Echo program name prefixed message to standard error, and exit.
  47573. +func_fatal_error ()
  47574. +{
  47575. + func_error ${1+"$@"}
  47576. + exit $EXIT_FAILURE
  47577. +}
  47578. +
  47579. +# func_fatal_help arg...
  47580. +# Echo program name prefixed message to standard error, followed by
  47581. +# a help hint, and exit.
  47582. +func_fatal_help ()
  47583. +{
  47584. + func_error ${1+"$@"}
  47585. + func_fatal_error "$help"
  47586. +}
  47587. +help="Try \`$progname --help' for more information." ## default
  47588. +
  47589. +
  47590. +# func_grep expression filename
  47591. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  47592. +func_grep ()
  47593. +{
  47594. + $GREP "$1" "$2" >/dev/null 2>&1
  47595. +}
  47596. +
  47597. +
  47598. +# func_mkdir_p directory-path
  47599. +# Make sure the entire path to DIRECTORY-PATH is available.
  47600. +func_mkdir_p ()
  47601. +{
  47602. + my_directory_path="$1"
  47603. + my_dir_list=
  47604. +
  47605. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  47606. +
  47607. + # Protect directory names starting with `-'
  47608. + case $my_directory_path in
  47609. + -*) my_directory_path="./$my_directory_path" ;;
  47610. + esac
  47611. +
  47612. + # While some portion of DIR does not yet exist...
  47613. + while test ! -d "$my_directory_path"; do
  47614. + # ...make a list in topmost first order. Use a colon delimited
  47615. + # list incase some portion of path contains whitespace.
  47616. + my_dir_list="$my_directory_path:$my_dir_list"
  47617. +
  47618. + # If the last portion added has no slash in it, the list is done
  47619. + case $my_directory_path in */*) ;; *) break ;; esac
  47620. +
  47621. + # ...otherwise throw away the child directory and loop
  47622. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  47623. + done
  47624. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  47625. +
  47626. + save_mkdir_p_IFS="$IFS"; IFS=':'
  47627. + for my_dir in $my_dir_list; do
  47628. + IFS="$save_mkdir_p_IFS"
  47629. + # mkdir can fail with a `File exist' error if two processes
  47630. + # try to create one of the directories concurrently. Don't
  47631. + # stop in that case!
  47632. + $MKDIR "$my_dir" 2>/dev/null || :
  47633. + done
  47634. + IFS="$save_mkdir_p_IFS"
  47635. +
  47636. + # Bail out if we (or some other process) failed to create a directory.
  47637. + test -d "$my_directory_path" || \
  47638. + func_fatal_error "Failed to create \`$1'"
  47639. + fi
  47640. +}
  47641. -#####################################
  47642. -# Shell function definitions:
  47643. -# This seems to be the best place for them
  47644. # func_mktempdir [string]
  47645. # Make a temporary directory that won't clash with other running
  47646. @@ -167,7 +355,7 @@
  47647. {
  47648. my_template="${TMPDIR-/tmp}/${1-$progname}"
  47649. - if test "$run" = ":"; then
  47650. + if test "$opt_dry_run" = ":"; then
  47651. # Return a directory name, but don't create it in dry-run mode
  47652. my_tmpdir="${my_template}-$$"
  47653. else
  47654. @@ -176,569 +364,784 @@
  47655. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  47656. if test ! -d "$my_tmpdir"; then
  47657. - # Failing that, at least try and use $RANDOM to avoid a race
  47658. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  47659. + # Failing that, at least try and use $RANDOM to avoid a race
  47660. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  47661. - save_mktempdir_umask=`umask`
  47662. - umask 0077
  47663. - $mkdir "$my_tmpdir"
  47664. - umask $save_mktempdir_umask
  47665. + save_mktempdir_umask=`umask`
  47666. + umask 0077
  47667. + $MKDIR "$my_tmpdir"
  47668. + umask $save_mktempdir_umask
  47669. fi
  47670. # If we're not in dry-run mode, bomb out on failure
  47671. - test -d "$my_tmpdir" || {
  47672. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  47673. - exit $EXIT_FAILURE
  47674. - }
  47675. + test -d "$my_tmpdir" || \
  47676. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  47677. fi
  47678. - $echo "X$my_tmpdir" | $Xsed
  47679. + $ECHO "X$my_tmpdir" | $Xsed
  47680. }
  47681. -# func_win32_libid arg
  47682. -# return the library type of file 'arg'
  47683. -#
  47684. -# Need a lot of goo to handle *both* DLLs and import libs
  47685. -# Has to be a shell function in order to 'eat' the argument
  47686. -# that is supplied when $file_magic_command is called.
  47687. -func_win32_libid ()
  47688. +# func_quote_for_eval arg
  47689. +# Aesthetically quote ARG to be evaled later.
  47690. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  47691. +# is double-quoted, suitable for a subsequent eval, whereas
  47692. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  47693. +# which are still active within double quotes backslashified.
  47694. +func_quote_for_eval ()
  47695. {
  47696. - win32_libid_type="unknown"
  47697. - win32_fileres=`file -L $1 2>/dev/null`
  47698. - case $win32_fileres in
  47699. - *ar\ archive\ import\ library*) # definitely import
  47700. - win32_libid_type="x86 archive import"
  47701. - ;;
  47702. - *ar\ archive*) # could be an import, or static
  47703. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  47704. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  47705. - win32_nmres=`eval $NM -f posix -A $1 | \
  47706. - $SED -n -e '1,100{
  47707. - / I /{
  47708. - s,.*,import,
  47709. - p
  47710. - q
  47711. - }
  47712. - }'`
  47713. - case $win32_nmres in
  47714. - import*) win32_libid_type="x86 archive import";;
  47715. - *) win32_libid_type="x86 archive static";;
  47716. - esac
  47717. - fi
  47718. - ;;
  47719. - *DLL*)
  47720. - win32_libid_type="x86 DLL"
  47721. - ;;
  47722. - *executable*) # but shell scripts are "executable" too...
  47723. - case $win32_fileres in
  47724. - *MS\ Windows\ PE\ Intel*)
  47725. - win32_libid_type="x86 DLL"
  47726. - ;;
  47727. + case $1 in
  47728. + *[\\\`\"\$]*)
  47729. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  47730. + *)
  47731. + func_quote_for_eval_unquoted_result="$1" ;;
  47732. + esac
  47733. +
  47734. + case $func_quote_for_eval_unquoted_result in
  47735. + # Double-quote args containing shell metacharacters to delay
  47736. + # word splitting, command substitution and and variable
  47737. + # expansion for a subsequent eval.
  47738. + # Many Bourne shells cannot handle close brackets correctly
  47739. + # in scan sets, so we specify it separately.
  47740. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47741. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  47742. + ;;
  47743. + *)
  47744. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  47745. esac
  47746. - ;;
  47747. - esac
  47748. - $echo $win32_libid_type
  47749. }
  47750. -# func_infer_tag arg
  47751. -# Infer tagged configuration to use if any are available and
  47752. -# if one wasn't chosen via the "--tag" command line option.
  47753. -# Only attempt this if the compiler in the base compile
  47754. -# command doesn't match the default compiler.
  47755. -# arg is usually of the form 'gcc ...'
  47756. -func_infer_tag ()
  47757. +# func_quote_for_expand arg
  47758. +# Aesthetically quote ARG to be evaled later; same as above,
  47759. +# but do not quote variable references.
  47760. +func_quote_for_expand ()
  47761. {
  47762. - # Set the commonly-used compilers for some tags.
  47763. - tag_compilers_CC="*cc *xlc"
  47764. - tag_compilers_CXX="*++ *CC"
  47765. - tag_compilers_F77="*77 *fort"
  47766. - base_compiler=`set -- "$@"; $echo $1`
  47767. - # If $tagname still isn't set, then try to infer if the default
  47768. - # "CC" tag applies by matching up the base compile command to some
  47769. - # compilers commonly used for the "CC" tag.
  47770. - if test -z "$tagname"; then
  47771. - z=CC
  47772. - eval "tag_compilers=\$tag_compilers_${z}"
  47773. - if test -n "$tag_compilers"; then
  47774. - for zp in $tag_compilers; do
  47775. - case $base_compiler in
  47776. - $zp)
  47777. - # The compiler in the base compile command matches
  47778. - # one of the common compilers for the current tag.
  47779. - # Assume this is the tagged configuration we want.
  47780. - tagname=$z
  47781. - break
  47782. - ;;
  47783. - esac
  47784. - done
  47785. - fi
  47786. - fi
  47787. - if test -n "$available_tags" && test -z "$tagname"; then
  47788. - CC_quoted=
  47789. - for arg in $CC; do
  47790. - case $arg in
  47791. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47792. - arg="\"$arg\""
  47793. - ;;
  47794. - esac
  47795. - CC_quoted="$CC_quoted $arg"
  47796. - done
  47797. - case $@ in
  47798. - # Blanks in the command may have been stripped by the calling shell,
  47799. - # but not from the CC environment variable when configure was run.
  47800. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  47801. - # Blanks at the start of $base_compile will cause this to fail
  47802. - # if we don't check for them as well.
  47803. + case $1 in
  47804. + *[\\\`\"]*)
  47805. + my_arg=`$ECHO "X$1" | $Xsed \
  47806. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  47807. *)
  47808. - for z in $available_tags; do
  47809. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  47810. - # Evaluate the configuration.
  47811. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  47812. - CC_quoted=
  47813. - for arg in $CC; do
  47814. - # Double-quote args containing other shell metacharacters.
  47815. - case $arg in
  47816. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47817. - arg="\"$arg\""
  47818. - ;;
  47819. - esac
  47820. - CC_quoted="$CC_quoted $arg"
  47821. - done
  47822. - case "$@ " in
  47823. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  47824. - # The compiler in the base compile command matches
  47825. - # the one in the tagged configuration.
  47826. - # Assume this is the tagged configuration we want.
  47827. - tagname=$z
  47828. - break
  47829. - ;;
  47830. - esac
  47831. - # If $tagname still isn't set, then try to infer it by
  47832. - # matching up the base compile command to some compilers
  47833. - # commonly used for certain tags.
  47834. - base_compiler=`set -- "$@"; $echo $1`
  47835. - eval "tag_compilers=\$tag_compilers_${z}"
  47836. - if test -n "$tag_compilers"; then
  47837. - for zp in $tag_compilers; do
  47838. - case $base_compiler in
  47839. - $zp)
  47840. - # The compiler in the base compile command matches
  47841. - # one of the common compilers for the current tag.
  47842. - # Assume this is the tagged configuration we want.
  47843. - tagname=$z
  47844. - break
  47845. - ;;
  47846. - esac
  47847. - done
  47848. - if test -n "$tagname"; then
  47849. - break
  47850. - fi
  47851. - fi
  47852. - fi
  47853. - done
  47854. - # If $tagname still isn't set, then no tagged configuration
  47855. - # was found and let the user know that the "--tag" command
  47856. - # line option must be used.
  47857. - if test -z "$tagname"; then
  47858. - $echo "$modename: unable to infer tagged configuration"
  47859. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  47860. - exit $EXIT_FAILURE
  47861. -# else
  47862. -# $echo "$modename: using $tagname tagged configuration"
  47863. - fi
  47864. - ;;
  47865. - esac
  47866. - fi
  47867. + my_arg="$1" ;;
  47868. + esac
  47869. +
  47870. + case $my_arg in
  47871. + # Double-quote args containing shell metacharacters to delay
  47872. + # word splitting and command substitution for a subsequent eval.
  47873. + # Many Bourne shells cannot handle close brackets correctly
  47874. + # in scan sets, so we specify it separately.
  47875. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47876. + my_arg="\"$my_arg\""
  47877. + ;;
  47878. + esac
  47879. +
  47880. + func_quote_for_expand_result="$my_arg"
  47881. }
  47882. -# func_extract_an_archive dir oldlib
  47883. -func_extract_an_archive ()
  47884. +# func_show_eval cmd [fail_exp]
  47885. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  47886. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  47887. +# is given, then evaluate it.
  47888. +func_show_eval ()
  47889. {
  47890. - f_ex_an_ar_dir="$1"; shift
  47891. - f_ex_an_ar_oldlib="$1"
  47892. + my_cmd="$1"
  47893. + my_fail_exp="${2-:}"
  47894. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  47895. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  47896. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  47897. - :
  47898. - else
  47899. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  47900. - exit $EXIT_FAILURE
  47901. + ${opt_silent-false} || {
  47902. + func_quote_for_expand "$my_cmd"
  47903. + eval "func_echo $func_quote_for_expand_result"
  47904. + }
  47905. +
  47906. + if ${opt_dry_run-false}; then :; else
  47907. + eval "$my_cmd"
  47908. + my_status=$?
  47909. + if test "$my_status" -eq 0; then :; else
  47910. + eval "(exit $my_status); $my_fail_exp"
  47911. + fi
  47912. fi
  47913. }
  47914. -# func_extract_archives gentop oldlib ...
  47915. -func_extract_archives ()
  47916. +
  47917. +# func_show_eval_locale cmd [fail_exp]
  47918. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  47919. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  47920. +# is given, then evaluate it. Use the saved locale for evaluation.
  47921. +func_show_eval_locale ()
  47922. {
  47923. - my_gentop="$1"; shift
  47924. - my_oldlibs=${1+"$@"}
  47925. - my_oldobjs=""
  47926. - my_xlib=""
  47927. - my_xabs=""
  47928. - my_xdir=""
  47929. - my_status=""
  47930. + my_cmd="$1"
  47931. + my_fail_exp="${2-:}"
  47932. +
  47933. + ${opt_silent-false} || {
  47934. + func_quote_for_expand "$my_cmd"
  47935. + eval "func_echo $func_quote_for_expand_result"
  47936. + }
  47937. - $show "${rm}r $my_gentop"
  47938. - $run ${rm}r "$my_gentop"
  47939. - $show "$mkdir $my_gentop"
  47940. - $run $mkdir "$my_gentop"
  47941. - my_status=$?
  47942. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  47943. - exit $my_status
  47944. + if ${opt_dry_run-false}; then :; else
  47945. + eval "$lt_user_locale
  47946. + $my_cmd"
  47947. + my_status=$?
  47948. + eval "$lt_safe_locale"
  47949. + if test "$my_status" -eq 0; then :; else
  47950. + eval "(exit $my_status); $my_fail_exp"
  47951. + fi
  47952. fi
  47953. +}
  47954. - for my_xlib in $my_oldlibs; do
  47955. - # Extract the objects.
  47956. - case $my_xlib in
  47957. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  47958. - *) my_xabs=`pwd`"/$my_xlib" ;;
  47959. - esac
  47960. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  47961. - my_xlib_u=$my_xlib
  47962. - while :; do
  47963. - case " $extracted_archives " in
  47964. - *" $my_xlib_u "*)
  47965. - extracted_serial=`expr $extracted_serial + 1`
  47966. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  47967. - *) break ;;
  47968. - esac
  47969. - done
  47970. - extracted_archives="$extracted_archives $my_xlib_u"
  47971. - my_xdir="$my_gentop/$my_xlib_u"
  47972. - $show "${rm}r $my_xdir"
  47973. - $run ${rm}r "$my_xdir"
  47974. - $show "$mkdir $my_xdir"
  47975. - $run $mkdir "$my_xdir"
  47976. - exit_status=$?
  47977. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  47978. - exit $exit_status
  47979. - fi
  47980. - case $host in
  47981. - *-darwin*)
  47982. - $show "Extracting $my_xabs"
  47983. - # Do not bother doing anything if just a dry run
  47984. - if test -z "$run"; then
  47985. - darwin_orig_dir=`pwd`
  47986. - cd $my_xdir || exit $?
  47987. - darwin_archive=$my_xabs
  47988. - darwin_curdir=`pwd`
  47989. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  47990. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  47991. - if test -n "$darwin_arches"; then
  47992. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  47993. - darwin_arch=
  47994. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  47995. - for darwin_arch in $darwin_arches ; do
  47996. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  47997. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  47998. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  47999. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  48000. - cd "$darwin_curdir"
  48001. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  48002. - done # $darwin_arches
  48003. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  48004. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  48005. - darwin_file=
  48006. - darwin_files=
  48007. - for darwin_file in $darwin_filelist; do
  48008. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  48009. - lipo -create -output "$darwin_file" $darwin_files
  48010. - done # $darwin_filelist
  48011. - ${rm}r unfat-$$
  48012. - cd "$darwin_orig_dir"
  48013. - else
  48014. - cd "$darwin_orig_dir"
  48015. - func_extract_an_archive "$my_xdir" "$my_xabs"
  48016. - fi # $darwin_arches
  48017. - fi # $run
  48018. - ;;
  48019. - *)
  48020. - func_extract_an_archive "$my_xdir" "$my_xabs"
  48021. - ;;
  48022. - esac
  48023. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  48024. - done
  48025. - func_extract_archives_result="$my_oldobjs"
  48026. +
  48027. +
  48028. +
  48029. +# func_version
  48030. +# Echo version message to standard output and exit.
  48031. +func_version ()
  48032. +{
  48033. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  48034. + s/^# //
  48035. + s/^# *$//
  48036. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  48037. + p
  48038. + }' < "$progpath"
  48039. + exit $?
  48040. +}
  48041. +
  48042. +# func_usage
  48043. +# Echo short help message to standard output and exit.
  48044. +func_usage ()
  48045. +{
  48046. + $SED -n '/^# Usage:/,/# -h/ {
  48047. + s/^# //
  48048. + s/^# *$//
  48049. + s/\$progname/'$progname'/
  48050. + p
  48051. + }' < "$progpath"
  48052. + $ECHO
  48053. + $ECHO "run \`$progname --help | more' for full usage"
  48054. + exit $?
  48055. +}
  48056. +
  48057. +# func_help
  48058. +# Echo long help message to standard output and exit.
  48059. +func_help ()
  48060. +{
  48061. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  48062. + s/^# //
  48063. + s/^# *$//
  48064. + s*\$progname*'$progname'*
  48065. + s*\$host*'"$host"'*
  48066. + s*\$SHELL*'"$SHELL"'*
  48067. + s*\$LTCC*'"$LTCC"'*
  48068. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  48069. + s*\$LD*'"$LD"'*
  48070. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  48071. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  48072. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  48073. + p
  48074. + }' < "$progpath"
  48075. + exit $?
  48076. +}
  48077. +
  48078. +# func_missing_arg argname
  48079. +# Echo program name prefixed message to standard error and set global
  48080. +# exit_cmd.
  48081. +func_missing_arg ()
  48082. +{
  48083. + func_error "missing argument for $1"
  48084. + exit_cmd=exit
  48085. }
  48086. -# End of Shell function definitions
  48087. -#####################################
  48088. -# Darwin sucks
  48089. -eval std_shrext=\"$shrext_cmds\"
  48090. +exit_cmd=:
  48091. -disable_libs=no
  48092. -# Parse our command line options once, thoroughly.
  48093. -while test "$#" -gt 0
  48094. -do
  48095. - arg="$1"
  48096. +
  48097. +
  48098. +
  48099. +# Check that we have a working $ECHO.
  48100. +if test "X$1" = X--no-reexec; then
  48101. + # Discard the --no-reexec flag, and continue.
  48102. shift
  48103. +elif test "X$1" = X--fallback-echo; then
  48104. + # Avoid inline document here, it may be left over
  48105. + :
  48106. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  48107. + # Yippee, $ECHO works!
  48108. + :
  48109. +else
  48110. + # Restart under the correct shell, and then maybe $ECHO will work.
  48111. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  48112. +fi
  48113. - case $arg in
  48114. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  48115. - *) optarg= ;;
  48116. - esac
  48117. +if test "X$1" = X--fallback-echo; then
  48118. + # used as fallback echo
  48119. + shift
  48120. + cat <<EOF
  48121. +$*
  48122. +EOF
  48123. + exit $EXIT_SUCCESS
  48124. +fi
  48125. - # If the previous option needs an argument, assign it.
  48126. - if test -n "$prev"; then
  48127. - case $prev in
  48128. - execute_dlfiles)
  48129. - execute_dlfiles="$execute_dlfiles $arg"
  48130. - ;;
  48131. - tag)
  48132. - tagname="$arg"
  48133. - preserve_args="${preserve_args}=$arg"
  48134. -
  48135. - # Check whether tagname contains only valid characters
  48136. - case $tagname in
  48137. - *[!-_A-Za-z0-9,/]*)
  48138. - $echo "$progname: invalid tag name: $tagname" 1>&2
  48139. - exit $EXIT_FAILURE
  48140. - ;;
  48141. - esac
  48142. +magic="%%%MAGIC variable%%%"
  48143. +magic_exe="%%%MAGIC EXE variable%%%"
  48144. - case $tagname in
  48145. - CC)
  48146. - # Don't test for the "default" C tag, as we know, it's there, but
  48147. - # not specially marked.
  48148. - ;;
  48149. - *)
  48150. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  48151. - taglist="$taglist $tagname"
  48152. - # Evaluate the configuration.
  48153. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  48154. - else
  48155. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  48156. - fi
  48157. - ;;
  48158. - esac
  48159. - ;;
  48160. - *)
  48161. - eval "$prev=\$arg"
  48162. - ;;
  48163. - esac
  48164. +# Global variables.
  48165. +# $mode is unset
  48166. +nonopt=
  48167. +execute_dlfiles=
  48168. +preserve_args=
  48169. +lo2o="s/\\.lo\$/.${objext}/"
  48170. +o2lo="s/\\.${objext}\$/.lo/"
  48171. +extracted_archives=
  48172. +extracted_serial=0
  48173. - prev=
  48174. - prevopt=
  48175. - continue
  48176. - fi
  48177. +opt_dry_run=false
  48178. +opt_duplicate_deps=false
  48179. +opt_silent=false
  48180. +opt_debug=:
  48181. - # Have we seen a non-optional argument yet?
  48182. - case $arg in
  48183. - --help)
  48184. - show_help=yes
  48185. - ;;
  48186. +# If this variable is set in any of the actions, the command in it
  48187. +# will be execed at the end. This prevents here-documents from being
  48188. +# left over by shells.
  48189. +exec_cmd=
  48190. - --version)
  48191. - echo "\
  48192. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  48193. -
  48194. -Copyright (C) 2008 Free Software Foundation, Inc.
  48195. -This is free software; see the source for copying conditions. There is NO
  48196. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  48197. - exit $?
  48198. - ;;
  48199. +# func_fatal_configuration arg...
  48200. +# Echo program name prefixed message to standard error, followed by
  48201. +# a configuration failure hint, and exit.
  48202. +func_fatal_configuration ()
  48203. +{
  48204. + func_error ${1+"$@"}
  48205. + func_error "See the $PACKAGE documentation for more information."
  48206. + func_fatal_error "Fatal configuration error."
  48207. +}
  48208. +
  48209. +
  48210. +# func_config
  48211. +# Display the configuration for all the tags in this script.
  48212. +func_config ()
  48213. +{
  48214. + re_begincf='^# ### BEGIN LIBTOOL'
  48215. + re_endcf='^# ### END LIBTOOL'
  48216. +
  48217. + # Default configuration.
  48218. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  48219. - --config)
  48220. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  48221. # Now print the configurations for the tags.
  48222. for tagname in $taglist; do
  48223. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  48224. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  48225. done
  48226. - exit $?
  48227. - ;;
  48228. - --debug)
  48229. - $echo "$progname: enabling shell trace mode"
  48230. - set -x
  48231. - preserve_args="$preserve_args $arg"
  48232. - ;;
  48233. -
  48234. - --dry-run | -n)
  48235. - run=:
  48236. - ;;
  48237. + exit $?
  48238. +}
  48239. - --features)
  48240. - $echo "host: $host"
  48241. +# func_features
  48242. +# Display the features supported by this script.
  48243. +func_features ()
  48244. +{
  48245. + $ECHO "host: $host"
  48246. if test "$build_libtool_libs" = yes; then
  48247. - $echo "enable shared libraries"
  48248. + $ECHO "enable shared libraries"
  48249. else
  48250. - $echo "disable shared libraries"
  48251. + $ECHO "disable shared libraries"
  48252. fi
  48253. if test "$build_old_libs" = yes; then
  48254. - $echo "enable static libraries"
  48255. + $ECHO "enable static libraries"
  48256. else
  48257. - $echo "disable static libraries"
  48258. + $ECHO "disable static libraries"
  48259. fi
  48260. +
  48261. exit $?
  48262. - ;;
  48263. +}
  48264. +
  48265. +# func_enable_tag tagname
  48266. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  48267. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  48268. +# variable here.
  48269. +func_enable_tag ()
  48270. +{
  48271. + # Global variable:
  48272. + tagname="$1"
  48273. +
  48274. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  48275. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  48276. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  48277. +
  48278. + # Validate tagname.
  48279. + case $tagname in
  48280. + *[!-_A-Za-z0-9,/]*)
  48281. + func_fatal_error "invalid tag name: $tagname"
  48282. + ;;
  48283. + esac
  48284. - --finish) mode="finish" ;;
  48285. + # Don't test for the "default" C tag, as we know it's
  48286. + # there but not specially marked.
  48287. + case $tagname in
  48288. + CC) ;;
  48289. + *)
  48290. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  48291. + taglist="$taglist $tagname"
  48292. - --mode) prevopt="--mode" prev=mode ;;
  48293. - --mode=*) mode="$optarg" ;;
  48294. + # Evaluate the configuration. Be careful to quote the path
  48295. + # and the sed script, to avoid splitting on whitespace, but
  48296. + # also don't use non-portable quotes within backquotes within
  48297. + # quotes we have to do it in 2 steps:
  48298. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  48299. + eval "$extractedcf"
  48300. + else
  48301. + func_error "ignoring unknown tag $tagname"
  48302. + fi
  48303. + ;;
  48304. + esac
  48305. +}
  48306. - --preserve-dup-deps) duplicate_deps="yes" ;;
  48307. +# Parse options once, thoroughly. This comes as soon as possible in
  48308. +# the script to make things like `libtool --version' happen quickly.
  48309. +{
  48310. - --quiet | --silent)
  48311. - show=:
  48312. - preserve_args="$preserve_args $arg"
  48313. + # Shorthand for --mode=foo, only valid as the first argument
  48314. + case $1 in
  48315. + clean|clea|cle|cl)
  48316. + shift; set dummy --mode clean ${1+"$@"}; shift
  48317. ;;
  48318. -
  48319. - --tag)
  48320. - prevopt="--tag"
  48321. - prev=tag
  48322. - preserve_args="$preserve_args --tag"
  48323. + compile|compil|compi|comp|com|co|c)
  48324. + shift; set dummy --mode compile ${1+"$@"}; shift
  48325. ;;
  48326. - --tag=*)
  48327. - set tag "$optarg" ${1+"$@"}
  48328. - shift
  48329. - prev=tag
  48330. - preserve_args="$preserve_args --tag"
  48331. + execute|execut|execu|exec|exe|ex|e)
  48332. + shift; set dummy --mode execute ${1+"$@"}; shift
  48333. ;;
  48334. -
  48335. - -dlopen)
  48336. - prevopt="-dlopen"
  48337. - prev=execute_dlfiles
  48338. + finish|finis|fini|fin|fi|f)
  48339. + shift; set dummy --mode finish ${1+"$@"}; shift
  48340. ;;
  48341. -
  48342. - -*)
  48343. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  48344. - $echo "$help" 1>&2
  48345. - exit $EXIT_FAILURE
  48346. + install|instal|insta|inst|ins|in|i)
  48347. + shift; set dummy --mode install ${1+"$@"}; shift
  48348. ;;
  48349. -
  48350. - *)
  48351. - nonopt="$arg"
  48352. - break
  48353. + link|lin|li|l)
  48354. + shift; set dummy --mode link ${1+"$@"}; shift
  48355. + ;;
  48356. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  48357. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  48358. ;;
  48359. esac
  48360. -done
  48361. -if test -n "$prevopt"; then
  48362. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  48363. - $echo "$help" 1>&2
  48364. - exit $EXIT_FAILURE
  48365. -fi
  48366. + # Parse non-mode specific arguments:
  48367. + while test "$#" -gt 0; do
  48368. + opt="$1"
  48369. + shift
  48370. -case $disable_libs in
  48371. -no)
  48372. - ;;
  48373. -shared)
  48374. - build_libtool_libs=no
  48375. - build_old_libs=yes
  48376. - ;;
  48377. -static)
  48378. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  48379. - ;;
  48380. -esac
  48381. + case $opt in
  48382. + --config) func_config ;;
  48383. -# If this variable is set in any of the actions, the command in it
  48384. -# will be execed at the end. This prevents here-documents from being
  48385. -# left over by shells.
  48386. -exec_cmd=
  48387. + --debug) preserve_args="$preserve_args $opt"
  48388. + func_echo "enabling shell trace mode"
  48389. + opt_debug='set -x'
  48390. + $opt_debug
  48391. + ;;
  48392. -if test -z "$show_help"; then
  48393. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48394. + execute_dlfiles="$execute_dlfiles $1"
  48395. + shift
  48396. + ;;
  48397. - # Infer the operation mode.
  48398. - if test -z "$mode"; then
  48399. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  48400. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  48401. - case $nonopt in
  48402. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc* | *CC)
  48403. - mode=link
  48404. - for arg
  48405. - do
  48406. - case $arg in
  48407. - -c)
  48408. - mode=compile
  48409. - break
  48410. - ;;
  48411. - esac
  48412. - done
  48413. - ;;
  48414. - *db | *dbx | *strace | *truss)
  48415. - mode=execute
  48416. - ;;
  48417. - *install*|cp|mv)
  48418. - mode=install
  48419. - ;;
  48420. - *rm)
  48421. - mode=uninstall
  48422. + --dry-run | -n) opt_dry_run=: ;;
  48423. + --features) func_features ;;
  48424. + --finish) mode="finish" ;;
  48425. +
  48426. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48427. + case $1 in
  48428. + # Valid mode arguments:
  48429. + clean) ;;
  48430. + compile) ;;
  48431. + execute) ;;
  48432. + finish) ;;
  48433. + install) ;;
  48434. + link) ;;
  48435. + relink) ;;
  48436. + uninstall) ;;
  48437. +
  48438. + # Catch anything else as an error
  48439. + *) func_error "invalid argument for $opt"
  48440. + exit_cmd=exit
  48441. + break
  48442. + ;;
  48443. + esac
  48444. +
  48445. + mode="$1"
  48446. + shift
  48447. + ;;
  48448. +
  48449. + --preserve-dup-deps)
  48450. + opt_duplicate_deps=: ;;
  48451. +
  48452. + --quiet|--silent) preserve_args="$preserve_args $opt"
  48453. + opt_silent=:
  48454. + ;;
  48455. +
  48456. + --verbose| -v) preserve_args="$preserve_args $opt"
  48457. + opt_silent=false
  48458. + ;;
  48459. +
  48460. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48461. + preserve_args="$preserve_args $opt $1"
  48462. + func_enable_tag "$1" # tagname is set here
  48463. + shift
  48464. + ;;
  48465. +
  48466. + # Separate optargs to long options:
  48467. + -dlopen=*|--mode=*|--tag=*)
  48468. + func_opt_split "$opt"
  48469. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  48470. + shift
  48471. + ;;
  48472. +
  48473. + -\?|-h) func_usage ;;
  48474. + --help) opt_help=: ;;
  48475. + --version) func_version ;;
  48476. +
  48477. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  48478. +
  48479. + *) nonopt="$opt"
  48480. + break
  48481. + ;;
  48482. + esac
  48483. + done
  48484. +
  48485. +
  48486. + case $host in
  48487. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  48488. + # don't eliminate duplications in $postdeps and $predeps
  48489. + opt_duplicate_compiler_generated_deps=:
  48490. ;;
  48491. *)
  48492. - # If we have no mode, but dlfiles were specified, then do execute mode.
  48493. - test -n "$execute_dlfiles" && mode=execute
  48494. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  48495. + ;;
  48496. + esac
  48497. - # Just use the default operation mode.
  48498. - if test -z "$mode"; then
  48499. - if test -n "$nonopt"; then
  48500. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  48501. - else
  48502. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  48503. - fi
  48504. + # Having warned about all mis-specified options, bail out if
  48505. + # anything was wrong.
  48506. + $exit_cmd $EXIT_FAILURE
  48507. +}
  48508. +
  48509. +# func_check_version_match
  48510. +# Ensure that we are using m4 macros, and libtool script from the same
  48511. +# release of libtool.
  48512. +func_check_version_match ()
  48513. +{
  48514. + if test "$package_revision" != "$macro_revision"; then
  48515. + if test "$VERSION" != "$macro_version"; then
  48516. + if test -z "$macro_version"; then
  48517. + cat >&2 <<_LT_EOF
  48518. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  48519. +$progname: definition of this LT_INIT comes from an older release.
  48520. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  48521. +$progname: and run autoconf again.
  48522. +_LT_EOF
  48523. + else
  48524. + cat >&2 <<_LT_EOF
  48525. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  48526. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  48527. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  48528. +$progname: and run autoconf again.
  48529. +_LT_EOF
  48530. fi
  48531. - ;;
  48532. - esac
  48533. + else
  48534. + cat >&2 <<_LT_EOF
  48535. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  48536. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  48537. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  48538. +$progname: of $PACKAGE $VERSION and run autoconf again.
  48539. +_LT_EOF
  48540. + fi
  48541. +
  48542. + exit $EXIT_MISMATCH
  48543. + fi
  48544. +}
  48545. +
  48546. +
  48547. +## ----------- ##
  48548. +## Main. ##
  48549. +## ----------- ##
  48550. +
  48551. +$opt_help || {
  48552. + # Sanity checks first:
  48553. + func_check_version_match
  48554. +
  48555. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  48556. + func_fatal_configuration "not configured to build any kind of library"
  48557. fi
  48558. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  48559. +
  48560. +
  48561. + # Darwin sucks
  48562. + eval std_shrext=\"$shrext_cmds\"
  48563. +
  48564. +
  48565. # Only execute mode is allowed to have -dlopen flags.
  48566. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  48567. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  48568. - $echo "$help" 1>&2
  48569. + func_error "unrecognized option \`-dlopen'"
  48570. + $ECHO "$help" 1>&2
  48571. exit $EXIT_FAILURE
  48572. fi
  48573. # Change the help message to a mode-specific one.
  48574. generic_help="$help"
  48575. - help="Try \`$modename --help --mode=$mode' for more information."
  48576. + help="Try \`$progname --help --mode=$mode' for more information."
  48577. +}
  48578. - # These modes are in order of execution frequency so that they run quickly.
  48579. - case $mode in
  48580. - # libtool compile mode
  48581. - compile)
  48582. - modename="$modename: compile"
  48583. - # Get the compilation command and the source file.
  48584. - base_compile=
  48585. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  48586. - suppress_opt=yes
  48587. - suppress_output=
  48588. - arg_mode=normal
  48589. - libobj=
  48590. - later=
  48591. - for arg
  48592. - do
  48593. - case $arg_mode in
  48594. - arg )
  48595. - # do not "continue". Instead, add this to base_compile
  48596. - lastarg="$arg"
  48597. - arg_mode=normal
  48598. - ;;
  48599. +# func_lalib_p file
  48600. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  48601. +# This function is only a basic sanity check; it will hardly flush out
  48602. +# determined imposters.
  48603. +func_lalib_p ()
  48604. +{
  48605. + test -f "$1" &&
  48606. + $SED -e 4q "$1" 2>/dev/null \
  48607. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  48608. +}
  48609. - target )
  48610. - libobj="$arg"
  48611. - arg_mode=normal
  48612. - continue
  48613. - ;;
  48614. +# func_lalib_unsafe_p file
  48615. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  48616. +# This function implements the same check as func_lalib_p without
  48617. +# resorting to external programs. To this end, it redirects stdin and
  48618. +# closes it afterwards, without saving the original file descriptor.
  48619. +# As a safety measure, use it only where a negative result would be
  48620. +# fatal anyway. Works if `file' does not exist.
  48621. +func_lalib_unsafe_p ()
  48622. +{
  48623. + lalib_p=no
  48624. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  48625. + for lalib_p_l in 1 2 3 4
  48626. + do
  48627. + read lalib_p_line
  48628. + case "$lalib_p_line" in
  48629. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  48630. + esac
  48631. + done
  48632. + exec 0<&5 5<&-
  48633. + fi
  48634. + test "$lalib_p" = yes
  48635. +}
  48636. - normal )
  48637. - # Accept any command-line options.
  48638. - case $arg in
  48639. - -o)
  48640. - if test -n "$libobj" ; then
  48641. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  48642. - exit $EXIT_FAILURE
  48643. +# func_ltwrapper_script_p file
  48644. +# True iff FILE is a libtool wrapper script
  48645. +# This function is only a basic sanity check; it will hardly flush out
  48646. +# determined imposters.
  48647. +func_ltwrapper_script_p ()
  48648. +{
  48649. + func_lalib_p "$1"
  48650. +}
  48651. +
  48652. +# func_ltwrapper_executable_p file
  48653. +# True iff FILE is a libtool wrapper executable
  48654. +# This function is only a basic sanity check; it will hardly flush out
  48655. +# determined imposters.
  48656. +func_ltwrapper_executable_p ()
  48657. +{
  48658. + func_ltwrapper_exec_suffix=
  48659. + case $1 in
  48660. + *.exe) ;;
  48661. + *) func_ltwrapper_exec_suffix=.exe ;;
  48662. + esac
  48663. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  48664. +}
  48665. +
  48666. +# func_ltwrapper_scriptname file
  48667. +# Assumes file is an ltwrapper_executable
  48668. +# uses $file to determine the appropriate filename for a
  48669. +# temporary ltwrapper_script.
  48670. +func_ltwrapper_scriptname ()
  48671. +{
  48672. + func_ltwrapper_scriptname_result=""
  48673. + if func_ltwrapper_executable_p "$1"; then
  48674. + func_dirname_and_basename "$1" "" "."
  48675. + func_stripname '' '.exe' "$func_basename_result"
  48676. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  48677. + fi
  48678. +}
  48679. +
  48680. +# func_ltwrapper_p file
  48681. +# True iff FILE is a libtool wrapper script or wrapper executable
  48682. +# This function is only a basic sanity check; it will hardly flush out
  48683. +# determined imposters.
  48684. +func_ltwrapper_p ()
  48685. +{
  48686. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  48687. +}
  48688. +
  48689. +
  48690. +# func_execute_cmds commands fail_cmd
  48691. +# Execute tilde-delimited COMMANDS.
  48692. +# If FAIL_CMD is given, eval that upon failure.
  48693. +# FAIL_CMD may read-access the current command in variable CMD!
  48694. +func_execute_cmds ()
  48695. +{
  48696. + $opt_debug
  48697. + save_ifs=$IFS; IFS='~'
  48698. + for cmd in $1; do
  48699. + IFS=$save_ifs
  48700. + eval cmd=\"$cmd\"
  48701. + func_show_eval "$cmd" "${2-:}"
  48702. + done
  48703. + IFS=$save_ifs
  48704. +}
  48705. +
  48706. +
  48707. +# func_source file
  48708. +# Source FILE, adding directory component if necessary.
  48709. +# Note that it is not necessary on cygwin/mingw to append a dot to
  48710. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  48711. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  48712. +# `FILE.' does not work on cygwin managed mounts.
  48713. +func_source ()
  48714. +{
  48715. + $opt_debug
  48716. + case $1 in
  48717. + */* | *\\*) . "$1" ;;
  48718. + *) . "./$1" ;;
  48719. + esac
  48720. +}
  48721. +
  48722. +
  48723. +# func_infer_tag arg
  48724. +# Infer tagged configuration to use if any are available and
  48725. +# if one wasn't chosen via the "--tag" command line option.
  48726. +# Only attempt this if the compiler in the base compile
  48727. +# command doesn't match the default compiler.
  48728. +# arg is usually of the form 'gcc ...'
  48729. +func_infer_tag ()
  48730. +{
  48731. + $opt_debug
  48732. + if test -n "$available_tags" && test -z "$tagname"; then
  48733. + CC_quoted=
  48734. + for arg in $CC; do
  48735. + func_quote_for_eval "$arg"
  48736. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  48737. + done
  48738. + case $@ in
  48739. + # Blanks in the command may have been stripped by the calling shell,
  48740. + # but not from the CC environment variable when configure was run.
  48741. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  48742. + # Blanks at the start of $base_compile will cause this to fail
  48743. + # if we don't check for them as well.
  48744. + *)
  48745. + for z in $available_tags; do
  48746. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  48747. + # Evaluate the configuration.
  48748. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  48749. + CC_quoted=
  48750. + for arg in $CC; do
  48751. + # Double-quote args containing other shell metacharacters.
  48752. + func_quote_for_eval "$arg"
  48753. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  48754. + done
  48755. + case "$@ " in
  48756. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  48757. + # The compiler in the base compile command matches
  48758. + # the one in the tagged configuration.
  48759. + # Assume this is the tagged configuration we want.
  48760. + tagname=$z
  48761. + break
  48762. + ;;
  48763. + esac
  48764. fi
  48765. + done
  48766. + # If $tagname still isn't set, then no tagged configuration
  48767. + # was found and let the user know that the "--tag" command
  48768. + # line option must be used.
  48769. + if test -z "$tagname"; then
  48770. + func_echo "unable to infer tagged configuration"
  48771. + func_fatal_error "specify a tag with \`--tag'"
  48772. +# else
  48773. +# func_verbose "using $tagname tagged configuration"
  48774. + fi
  48775. + ;;
  48776. + esac
  48777. + fi
  48778. +}
  48779. +
  48780. +
  48781. +
  48782. +# func_write_libtool_object output_name pic_name nonpic_name
  48783. +# Create a libtool object file (analogous to a ".la" file),
  48784. +# but don't create it if we're doing a dry run.
  48785. +func_write_libtool_object ()
  48786. +{
  48787. + write_libobj=${1}
  48788. + if test "$build_libtool_libs" = yes; then
  48789. + write_lobj=\'${2}\'
  48790. + else
  48791. + write_lobj=none
  48792. + fi
  48793. +
  48794. + if test "$build_old_libs" = yes; then
  48795. + write_oldobj=\'${3}\'
  48796. + else
  48797. + write_oldobj=none
  48798. + fi
  48799. +
  48800. + $opt_dry_run || {
  48801. + cat >${write_libobj}T <<EOF
  48802. +# $write_libobj - a libtool object file
  48803. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  48804. +#
  48805. +# Please DO NOT delete this file!
  48806. +# It is necessary for linking the library.
  48807. +
  48808. +# Name of the PIC object.
  48809. +pic_object=$write_lobj
  48810. +
  48811. +# Name of the non-PIC object
  48812. +non_pic_object=$write_oldobj
  48813. +
  48814. +EOF
  48815. + $MV "${write_libobj}T" "${write_libobj}"
  48816. + }
  48817. +}
  48818. +
  48819. +# func_mode_compile arg...
  48820. +func_mode_compile ()
  48821. +{
  48822. + $opt_debug
  48823. + # Get the compilation command and the source file.
  48824. + base_compile=
  48825. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  48826. + suppress_opt=yes
  48827. + suppress_output=
  48828. + arg_mode=normal
  48829. + libobj=
  48830. + later=
  48831. + pie_flag=
  48832. +
  48833. + for arg
  48834. + do
  48835. + case $arg_mode in
  48836. + arg )
  48837. + # do not "continue". Instead, add this to base_compile
  48838. + lastarg="$arg"
  48839. + arg_mode=normal
  48840. + ;;
  48841. +
  48842. + target )
  48843. + libobj="$arg"
  48844. + arg_mode=normal
  48845. + continue
  48846. + ;;
  48847. +
  48848. + normal )
  48849. + # Accept any command-line options.
  48850. + case $arg in
  48851. + -o)
  48852. + test -n "$libobj" && \
  48853. + func_fatal_error "you cannot specify \`-o' more than once"
  48854. arg_mode=target
  48855. continue
  48856. ;;
  48857. - -static | -prefer-pic | -prefer-non-pic)
  48858. + -pie | -fpie | -fPIE)
  48859. + pie_flag="$pie_flag $arg"
  48860. + continue
  48861. + ;;
  48862. +
  48863. + -shared | -static | -prefer-pic | -prefer-non-pic)
  48864. later="$later $arg"
  48865. continue
  48866. ;;
  48867. @@ -754,31 +1157,25 @@
  48868. ;; # replaced later. I would guess that would be a bug.
  48869. -Wc,*)
  48870. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  48871. + func_stripname '-Wc,' '' "$arg"
  48872. + args=$func_stripname_result
  48873. lastarg=
  48874. save_ifs="$IFS"; IFS=','
  48875. - for arg in $args; do
  48876. + for arg in $args; do
  48877. IFS="$save_ifs"
  48878. -
  48879. - # Double-quote args containing other shell metacharacters.
  48880. - # Many Bourne shells cannot handle close brackets correctly
  48881. - # in scan sets, so we specify it separately.
  48882. - case $arg in
  48883. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48884. - arg="\"$arg\""
  48885. - ;;
  48886. - esac
  48887. - lastarg="$lastarg $arg"
  48888. + func_quote_for_eval "$arg"
  48889. + lastarg="$lastarg $func_quote_for_eval_result"
  48890. done
  48891. IFS="$save_ifs"
  48892. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  48893. + func_stripname ' ' '' "$lastarg"
  48894. + lastarg=$func_stripname_result
  48895. # Add the arguments to base_compile.
  48896. base_compile="$base_compile $lastarg"
  48897. continue
  48898. ;;
  48899. - * )
  48900. + *)
  48901. # Accept the current argument as the source file.
  48902. # The previous "srcfile" becomes the current argument.
  48903. #
  48904. @@ -790,66 +1187,42 @@
  48905. esac # case $arg_mode
  48906. # Aesthetically quote the previous argument.
  48907. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  48908. -
  48909. - case $lastarg in
  48910. - # Double-quote args containing other shell metacharacters.
  48911. - # Many Bourne shells cannot handle close brackets correctly
  48912. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  48913. - # in scan sets (worked around with variable expansion),
  48914. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  48915. - # at all, so we specify them separately.
  48916. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48917. - lastarg="\"$lastarg\""
  48918. - ;;
  48919. - esac
  48920. -
  48921. - base_compile="$base_compile $lastarg"
  48922. + func_quote_for_eval "$lastarg"
  48923. + base_compile="$base_compile $func_quote_for_eval_result"
  48924. done # for arg
  48925. case $arg_mode in
  48926. arg)
  48927. - $echo "$modename: you must specify an argument for -Xcompile"
  48928. - exit $EXIT_FAILURE
  48929. + func_fatal_error "you must specify an argument for -Xcompile"
  48930. ;;
  48931. target)
  48932. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  48933. - exit $EXIT_FAILURE
  48934. + func_fatal_error "you must specify a target with \`-o'"
  48935. ;;
  48936. *)
  48937. # Get the name of the library object.
  48938. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  48939. + test -z "$libobj" && {
  48940. + func_basename "$srcfile"
  48941. + libobj="$func_basename_result"
  48942. + }
  48943. ;;
  48944. esac
  48945. # Recognize several different file suffixes.
  48946. # If the user specifies -o file.o, it is replaced with file.lo
  48947. - xform='[cCFSifmso]'
  48948. case $libobj in
  48949. - *.ada) xform=ada ;;
  48950. - *.adb) xform=adb ;;
  48951. - *.ads) xform=ads ;;
  48952. - *.asm) xform=asm ;;
  48953. - *.c++) xform=c++ ;;
  48954. - *.cc) xform=cc ;;
  48955. - *.ii) xform=ii ;;
  48956. - *.class) xform=class ;;
  48957. - *.cpp) xform=cpp ;;
  48958. - *.cxx) xform=cxx ;;
  48959. - *.[fF][09]?) xform=[fF][09]. ;;
  48960. - *.for) xform=for ;;
  48961. - *.java) xform=java ;;
  48962. - *.obj) xform=obj ;;
  48963. - *.sx) xform=sx ;;
  48964. + *.[cCFSifmso] | \
  48965. + *.ada | *.adb | *.ads | *.asm | \
  48966. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  48967. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  48968. + func_xform "$libobj"
  48969. + libobj=$func_xform_result
  48970. + ;;
  48971. esac
  48972. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  48973. -
  48974. case $libobj in
  48975. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  48976. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  48977. *)
  48978. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  48979. - exit $EXIT_FAILURE
  48980. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  48981. ;;
  48982. esac
  48983. @@ -857,7 +1230,15 @@
  48984. for arg in $later; do
  48985. case $arg in
  48986. + -shared)
  48987. + test "$build_libtool_libs" != yes && \
  48988. + func_fatal_configuration "can not build a shared library"
  48989. + build_old_libs=no
  48990. + continue
  48991. + ;;
  48992. +
  48993. -static)
  48994. + build_libtool_libs=no
  48995. build_old_libs=yes
  48996. continue
  48997. ;;
  48998. @@ -874,28 +1255,17 @@
  48999. esac
  49000. done
  49001. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  49002. - case $qlibobj in
  49003. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49004. - qlibobj="\"$qlibobj\"" ;;
  49005. - esac
  49006. - test "X$libobj" != "X$qlibobj" \
  49007. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  49008. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  49009. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  49010. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  49011. - if test "X$xdir" = "X$obj"; then
  49012. - xdir=
  49013. - else
  49014. - xdir=$xdir/
  49015. - fi
  49016. + func_quote_for_eval "$libobj"
  49017. + test "X$libobj" != "X$func_quote_for_eval_result" \
  49018. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  49019. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  49020. + func_dirname_and_basename "$obj" "/" ""
  49021. + objname="$func_basename_result"
  49022. + xdir="$func_dirname_result"
  49023. lobj=${xdir}$objdir/$objname
  49024. - if test -z "$base_compile"; then
  49025. - $echo "$modename: you must specify a compilation command" 1>&2
  49026. - $echo "$help" 1>&2
  49027. - exit $EXIT_FAILURE
  49028. - fi
  49029. + test -z "$base_compile" && \
  49030. + func_fatal_help "you must specify a compilation command"
  49031. # Delete any leftover library objects.
  49032. if test "$build_old_libs" = yes; then
  49033. @@ -904,12 +1274,9 @@
  49034. removelist="$lobj $libobj ${libobj}T"
  49035. fi
  49036. - $run $rm $removelist
  49037. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  49038. -
  49039. # On Cygwin there's no "real" PIC flag so we must build both object types
  49040. case $host_os in
  49041. - cygwin* | mingw* | pw32* | os2*)
  49042. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  49043. pic_mode=default
  49044. ;;
  49045. esac
  49046. @@ -921,10 +1288,8 @@
  49047. # Calculate the filename of the output object if compiler does
  49048. # not support -o with -c
  49049. if test "$compiler_c_o" = no; then
  49050. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  49051. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  49052. lockfile="$output_obj.lock"
  49053. - removelist="$removelist $output_obj $lockfile"
  49054. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  49055. else
  49056. output_obj=
  49057. need_locks=no
  49058. @@ -934,13 +1299,13 @@
  49059. # Lock this critical section if it is needed
  49060. # We use this script file to make the link, it avoids creating a new file
  49061. if test "$need_locks" = yes; then
  49062. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  49063. - $show "Waiting for $lockfile to be removed"
  49064. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  49065. + func_echo "Waiting for $lockfile to be removed"
  49066. sleep 2
  49067. done
  49068. elif test "$need_locks" = warn; then
  49069. if test -f "$lockfile"; then
  49070. - $echo "\
  49071. + $ECHO "\
  49072. *** ERROR, $lockfile exists and contains:
  49073. `cat $lockfile 2>/dev/null`
  49074. @@ -951,34 +1316,22 @@
  49075. avoid parallel builds (make -j) in this platform, or get a better
  49076. compiler."
  49077. - $run $rm $removelist
  49078. + $opt_dry_run || $RM $removelist
  49079. exit $EXIT_FAILURE
  49080. fi
  49081. - $echo "$srcfile" > "$lockfile"
  49082. + removelist="$removelist $output_obj"
  49083. + $ECHO "$srcfile" > "$lockfile"
  49084. fi
  49085. + $opt_dry_run || $RM $removelist
  49086. + removelist="$removelist $lockfile"
  49087. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  49088. +
  49089. if test -n "$fix_srcfile_path"; then
  49090. eval srcfile=\"$fix_srcfile_path\"
  49091. fi
  49092. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  49093. - case $qsrcfile in
  49094. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49095. - qsrcfile="\"$qsrcfile\"" ;;
  49096. - esac
  49097. -
  49098. - $run $rm "$libobj" "${libobj}T"
  49099. -
  49100. - # Create a libtool object file (analogous to a ".la" file),
  49101. - # but don't create it if we're doing a dry run.
  49102. - test -z "$run" && cat > ${libobj}T <<EOF
  49103. -# $libobj - a libtool object file
  49104. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  49105. -#
  49106. -# Please DO NOT delete this file!
  49107. -# It is necessary for linking the library.
  49108. -
  49109. -# Name of the PIC object.
  49110. -EOF
  49111. + func_quote_for_eval "$srcfile"
  49112. + qsrcfile=$func_quote_for_eval_result
  49113. # Only build a PIC object if we are building libtool libraries.
  49114. if test "$build_libtool_libs" = yes; then
  49115. @@ -992,32 +1345,19 @@
  49116. command="$base_compile $qsrcfile"
  49117. fi
  49118. - if test ! -d "${xdir}$objdir"; then
  49119. - $show "$mkdir ${xdir}$objdir"
  49120. - $run $mkdir ${xdir}$objdir
  49121. - exit_status=$?
  49122. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  49123. - exit $exit_status
  49124. - fi
  49125. - fi
  49126. + func_mkdir_p "$xdir$objdir"
  49127. if test -z "$output_obj"; then
  49128. # Place PIC objects in $objdir
  49129. command="$command -o $lobj"
  49130. fi
  49131. - $run $rm "$lobj" "$output_obj"
  49132. -
  49133. - $show "$command"
  49134. - if $run eval $lt_env "$command"; then :
  49135. - else
  49136. - test -n "$output_obj" && $run $rm $removelist
  49137. - exit $EXIT_FAILURE
  49138. - fi
  49139. + func_show_eval_locale "$command" \
  49140. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  49141. if test "$need_locks" = warn &&
  49142. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49143. - $echo "\
  49144. + $ECHO "\
  49145. *** ERROR, $lockfile contains:
  49146. `cat $lockfile 2>/dev/null`
  49147. @@ -1031,45 +1371,27 @@
  49148. avoid parallel builds (make -j) in this platform, or get a better
  49149. compiler."
  49150. - $run $rm $removelist
  49151. + $opt_dry_run || $RM $removelist
  49152. exit $EXIT_FAILURE
  49153. fi
  49154. # Just move the object if needed, then go on to compile the next one
  49155. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  49156. - $show "$mv $output_obj $lobj"
  49157. - if $run $mv $output_obj $lobj; then :
  49158. - else
  49159. - error=$?
  49160. - $run $rm $removelist
  49161. - exit $error
  49162. - fi
  49163. + func_show_eval '$MV "$output_obj" "$lobj"' \
  49164. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  49165. fi
  49166. - # Append the name of the PIC object to the libtool object file.
  49167. - test -z "$run" && cat >> ${libobj}T <<EOF
  49168. -pic_object='$objdir/$objname'
  49169. -
  49170. -EOF
  49171. -
  49172. # Allow error messages only from the first compilation.
  49173. if test "$suppress_opt" = yes; then
  49174. - suppress_output=' >/dev/null 2>&1'
  49175. + suppress_output=' >/dev/null 2>&1'
  49176. fi
  49177. - else
  49178. - # No PIC object so indicate it doesn't exist in the libtool
  49179. - # object file.
  49180. - test -z "$run" && cat >> ${libobj}T <<EOF
  49181. -pic_object=none
  49182. -
  49183. -EOF
  49184. fi
  49185. # Only build a position-dependent object if we build old libraries.
  49186. if test "$build_old_libs" = yes; then
  49187. if test "$pic_mode" != yes; then
  49188. # Don't build PIC code
  49189. - command="$base_compile $qsrcfile"
  49190. + command="$base_compile $qsrcfile$pie_flag"
  49191. else
  49192. command="$base_compile $qsrcfile $pic_flag"
  49193. fi
  49194. @@ -1079,17 +1401,12 @@
  49195. # Suppress compiler output if we already did a PIC compilation.
  49196. command="$command$suppress_output"
  49197. - $run $rm "$obj" "$output_obj"
  49198. - $show "$command"
  49199. - if $run eval $lt_env "$command"; then :
  49200. - else
  49201. - $run $rm $removelist
  49202. - exit $EXIT_FAILURE
  49203. - fi
  49204. + func_show_eval_locale "$command" \
  49205. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  49206. if test "$need_locks" = warn &&
  49207. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49208. - $echo "\
  49209. + $ECHO "\
  49210. *** ERROR, $lockfile contains:
  49211. `cat $lockfile 2>/dev/null`
  49212. @@ -1103,5525 +1420,6784 @@
  49213. avoid parallel builds (make -j) in this platform, or get a better
  49214. compiler."
  49215. - $run $rm $removelist
  49216. + $opt_dry_run || $RM $removelist
  49217. exit $EXIT_FAILURE
  49218. fi
  49219. # Just move the object if needed
  49220. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  49221. - $show "$mv $output_obj $obj"
  49222. - if $run $mv $output_obj $obj; then :
  49223. - else
  49224. - error=$?
  49225. - $run $rm $removelist
  49226. - exit $error
  49227. - fi
  49228. + func_show_eval '$MV "$output_obj" "$obj"' \
  49229. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  49230. fi
  49231. -
  49232. - # Append the name of the non-PIC object the libtool object file.
  49233. - # Only append if the libtool object file exists.
  49234. - test -z "$run" && cat >> ${libobj}T <<EOF
  49235. -# Name of the non-PIC object.
  49236. -non_pic_object='$objname'
  49237. -
  49238. -EOF
  49239. - else
  49240. - # Append the name of the non-PIC object the libtool object file.
  49241. - # Only append if the libtool object file exists.
  49242. - test -z "$run" && cat >> ${libobj}T <<EOF
  49243. -# Name of the non-PIC object.
  49244. -non_pic_object=none
  49245. -
  49246. -EOF
  49247. fi
  49248. - $run $mv "${libobj}T" "${libobj}"
  49249. + $opt_dry_run || {
  49250. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  49251. - # Unlock the critical section if it was locked
  49252. - if test "$need_locks" != no; then
  49253. - $run $rm "$lockfile"
  49254. - fi
  49255. + # Unlock the critical section if it was locked
  49256. + if test "$need_locks" != no; then
  49257. + removelist=$lockfile
  49258. + $RM "$lockfile"
  49259. + fi
  49260. + }
  49261. exit $EXIT_SUCCESS
  49262. - ;;
  49263. +}
  49264. - # libtool link mode
  49265. - link | relink)
  49266. - modename="$modename: link"
  49267. - case $host in
  49268. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49269. - # It is impossible to link a dll without this setting, and
  49270. - # we shouldn't force the makefile maintainer to figure out
  49271. - # which system we are compiling for in order to pass an extra
  49272. - # flag for every libtool invocation.
  49273. - # allow_undefined=no
  49274. +$opt_help || {
  49275. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  49276. +}
  49277. - # FIXME: Unfortunately, there are problems with the above when trying
  49278. - # to make a dll which has undefined symbols, in which case not
  49279. - # even a static library is built. For now, we need to specify
  49280. - # -no-undefined on the libtool link line when we can be certain
  49281. - # that all symbols are satisfied, otherwise we get a static library.
  49282. - allow_undefined=yes
  49283. - ;;
  49284. - *)
  49285. - allow_undefined=yes
  49286. - ;;
  49287. - esac
  49288. - libtool_args="$nonopt"
  49289. - base_compile="$nonopt $@"
  49290. - compile_command="$nonopt"
  49291. - finalize_command="$nonopt"
  49292. +func_mode_help ()
  49293. +{
  49294. + # We need to display help for each of the modes.
  49295. + case $mode in
  49296. + "")
  49297. + # Generic help is extracted from the usage comments
  49298. + # at the start of this file.
  49299. + func_help
  49300. + ;;
  49301. - compile_rpath=
  49302. - finalize_rpath=
  49303. - compile_shlibpath=
  49304. - finalize_shlibpath=
  49305. - convenience=
  49306. - old_convenience=
  49307. - deplibs=
  49308. - old_deplibs=
  49309. - compiler_flags=
  49310. - linker_flags=
  49311. - dllsearchpath=
  49312. - lib_search_path=`pwd`
  49313. - inst_prefix_dir=
  49314. + clean)
  49315. + $ECHO \
  49316. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  49317. - avoid_version=no
  49318. - dlfiles=
  49319. - dlprefiles=
  49320. - dlself=no
  49321. - export_dynamic=no
  49322. - export_symbols=
  49323. - export_symbols_regex=
  49324. - generated=
  49325. - libobjs=
  49326. - ltlibs=
  49327. - module=no
  49328. - no_install=no
  49329. - objs=
  49330. - non_pic_objects=
  49331. - notinst_path= # paths that contain not-installed libtool libraries
  49332. - precious_files_regex=
  49333. - prefer_static_libs=no
  49334. - preload=no
  49335. - prev=
  49336. - prevarg=
  49337. - release=
  49338. - rpath=
  49339. - xrpath=
  49340. - perm_rpath=
  49341. - temp_rpath=
  49342. - thread_safe=no
  49343. - vinfo=
  49344. - vinfo_number=no
  49345. - single_module="${wl}-single_module"
  49346. +Remove files from the build directory.
  49347. - func_infer_tag $base_compile
  49348. +RM is the name of the program to use to delete files associated with each FILE
  49349. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  49350. +to RM.
  49351. - # We need to know -static, to get the right output filenames.
  49352. - for arg
  49353. - do
  49354. - case $arg in
  49355. - -all-static | -static | -static-libtool-libs)
  49356. - case $arg in
  49357. - -all-static)
  49358. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  49359. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  49360. - fi
  49361. - if test -n "$link_static_flag"; then
  49362. - dlopen_self=$dlopen_self_static
  49363. - fi
  49364. - prefer_static_libs=yes
  49365. - ;;
  49366. - -static)
  49367. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49368. - dlopen_self=$dlopen_self_static
  49369. - fi
  49370. - prefer_static_libs=built
  49371. - ;;
  49372. - -static-libtool-libs)
  49373. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49374. - dlopen_self=$dlopen_self_static
  49375. - fi
  49376. - prefer_static_libs=yes
  49377. - ;;
  49378. - esac
  49379. - build_libtool_libs=no
  49380. - build_old_libs=yes
  49381. - break
  49382. - ;;
  49383. - esac
  49384. - done
  49385. +If FILE is a libtool library, object or program, all the files associated
  49386. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  49387. + ;;
  49388. - # See if our shared archives depend on static archives.
  49389. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  49390. + compile)
  49391. + $ECHO \
  49392. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  49393. - # Go through the arguments, transforming them on the way.
  49394. - while test "$#" -gt 0; do
  49395. - arg="$1"
  49396. - shift
  49397. - case $arg in
  49398. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49399. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  49400. - ;;
  49401. - *) qarg=$arg ;;
  49402. - esac
  49403. - libtool_args="$libtool_args $qarg"
  49404. +Compile a source file into a libtool library object.
  49405. - # If the previous option needs an argument, assign it.
  49406. - if test -n "$prev"; then
  49407. - case $prev in
  49408. - output)
  49409. - compile_command="$compile_command @OUTPUT@"
  49410. - finalize_command="$finalize_command @OUTPUT@"
  49411. - ;;
  49412. - esac
  49413. +This mode accepts the following additional options:
  49414. - case $prev in
  49415. - dlfiles|dlprefiles)
  49416. - if test "$preload" = no; then
  49417. - # Add the symbol object into the linking commands.
  49418. - compile_command="$compile_command @SYMFILE@"
  49419. - finalize_command="$finalize_command @SYMFILE@"
  49420. - preload=yes
  49421. - fi
  49422. - case $arg in
  49423. - *.la | *.lo) ;; # We handle these cases below.
  49424. - force)
  49425. - if test "$dlself" = no; then
  49426. - dlself=needless
  49427. - export_dynamic=yes
  49428. - fi
  49429. - prev=
  49430. - continue
  49431. - ;;
  49432. - self)
  49433. - if test "$prev" = dlprefiles; then
  49434. - dlself=yes
  49435. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  49436. - dlself=yes
  49437. - else
  49438. - dlself=needless
  49439. - export_dynamic=yes
  49440. - fi
  49441. - prev=
  49442. - continue
  49443. - ;;
  49444. - *)
  49445. - if test "$prev" = dlfiles; then
  49446. - dlfiles="$dlfiles $arg"
  49447. - else
  49448. - dlprefiles="$dlprefiles $arg"
  49449. - fi
  49450. - prev=
  49451. - continue
  49452. - ;;
  49453. - esac
  49454. - ;;
  49455. - expsyms)
  49456. - export_symbols="$arg"
  49457. - if test ! -f "$arg"; then
  49458. - $echo "$modename: symbol file \`$arg' does not exist"
  49459. - exit $EXIT_FAILURE
  49460. - fi
  49461. - prev=
  49462. - continue
  49463. - ;;
  49464. - expsyms_regex)
  49465. - export_symbols_regex="$arg"
  49466. - prev=
  49467. - continue
  49468. - ;;
  49469. - inst_prefix)
  49470. - inst_prefix_dir="$arg"
  49471. - prev=
  49472. - continue
  49473. - ;;
  49474. - precious_regex)
  49475. - precious_files_regex="$arg"
  49476. - prev=
  49477. - continue
  49478. - ;;
  49479. - release)
  49480. - release="-$arg"
  49481. - prev=
  49482. - continue
  49483. - ;;
  49484. - objectlist)
  49485. - if test -f "$arg"; then
  49486. - save_arg=$arg
  49487. - moreargs=
  49488. - for fil in `cat $save_arg`
  49489. - do
  49490. -# moreargs="$moreargs $fil"
  49491. - arg=$fil
  49492. - # A libtool-controlled object.
  49493. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  49494. + -no-suppress do not suppress compiler output for multiple passes
  49495. + -prefer-pic try to building PIC objects only
  49496. + -prefer-non-pic try to building non-PIC objects only
  49497. + -shared do not build a \`.o' file suitable for static linking
  49498. + -static only build a \`.o' file suitable for static linking
  49499. - # Check to see that this really is a libtool object.
  49500. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49501. - pic_object=
  49502. - non_pic_object=
  49503. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  49504. +from the given SOURCEFILE.
  49505. - # Read the .lo file
  49506. - # If there is no directory component, then add one.
  49507. - case $arg in
  49508. - */* | *\\*) . $arg ;;
  49509. - *) . ./$arg ;;
  49510. - esac
  49511. +The output file name is determined by removing the directory component from
  49512. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  49513. +library object suffix, \`.lo'."
  49514. + ;;
  49515. - if test -z "$pic_object" || \
  49516. - test -z "$non_pic_object" ||
  49517. - test "$pic_object" = none && \
  49518. - test "$non_pic_object" = none; then
  49519. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  49520. - exit $EXIT_FAILURE
  49521. - fi
  49522. + execute)
  49523. + $ECHO \
  49524. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  49525. - # Extract subdirectory from the argument.
  49526. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49527. - if test "X$xdir" = "X$arg"; then
  49528. - xdir=
  49529. - else
  49530. - xdir="$xdir/"
  49531. - fi
  49532. +Automatically set library path, then run a program.
  49533. - if test "$pic_object" != none; then
  49534. - # Prepend the subdirectory the object is found in.
  49535. - pic_object="$xdir$pic_object"
  49536. +This mode accepts the following additional options:
  49537. - if test "$prev" = dlfiles; then
  49538. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  49539. - dlfiles="$dlfiles $pic_object"
  49540. - prev=
  49541. - continue
  49542. - else
  49543. - # If libtool objects are unsupported, then we need to preload.
  49544. - prev=dlprefiles
  49545. - fi
  49546. - fi
  49547. + -dlopen FILE add the directory containing FILE to the library path
  49548. - # CHECK ME: I think I busted this. -Ossama
  49549. - if test "$prev" = dlprefiles; then
  49550. - # Preload the old-style object.
  49551. - dlprefiles="$dlprefiles $pic_object"
  49552. - prev=
  49553. - fi
  49554. +This mode sets the library path environment variable according to \`-dlopen'
  49555. +flags.
  49556. - # A PIC object.
  49557. - libobjs="$libobjs $pic_object"
  49558. - arg="$pic_object"
  49559. - fi
  49560. +If any of the ARGS are libtool executable wrappers, then they are translated
  49561. +into their corresponding uninstalled binary, and any of their required library
  49562. +directories are added to the library path.
  49563. - # Non-PIC object.
  49564. - if test "$non_pic_object" != none; then
  49565. - # Prepend the subdirectory the object is found in.
  49566. - non_pic_object="$xdir$non_pic_object"
  49567. +Then, COMMAND is executed, with ARGS as arguments."
  49568. + ;;
  49569. - # A standard non-PIC object
  49570. - non_pic_objects="$non_pic_objects $non_pic_object"
  49571. - if test -z "$pic_object" || test "$pic_object" = none ; then
  49572. - arg="$non_pic_object"
  49573. - fi
  49574. - else
  49575. - # If the PIC object exists, use it instead.
  49576. - # $xdir was prepended to $pic_object above.
  49577. - non_pic_object="$pic_object"
  49578. - non_pic_objects="$non_pic_objects $non_pic_object"
  49579. - fi
  49580. - else
  49581. - # Only an error if not doing a dry-run.
  49582. - if test -z "$run"; then
  49583. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  49584. - exit $EXIT_FAILURE
  49585. - else
  49586. - # Dry-run case.
  49587. + finish)
  49588. + $ECHO \
  49589. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  49590. - # Extract subdirectory from the argument.
  49591. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49592. - if test "X$xdir" = "X$arg"; then
  49593. - xdir=
  49594. - else
  49595. - xdir="$xdir/"
  49596. - fi
  49597. +Complete the installation of libtool libraries.
  49598. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  49599. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  49600. - libobjs="$libobjs $pic_object"
  49601. - non_pic_objects="$non_pic_objects $non_pic_object"
  49602. - fi
  49603. - fi
  49604. - done
  49605. - else
  49606. - $echo "$modename: link input file \`$save_arg' does not exist"
  49607. - exit $EXIT_FAILURE
  49608. - fi
  49609. - arg=$save_arg
  49610. - prev=
  49611. - continue
  49612. - ;;
  49613. - rpath | xrpath)
  49614. - # We need an absolute path.
  49615. - case $arg in
  49616. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49617. - *)
  49618. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  49619. - exit $EXIT_FAILURE
  49620. - ;;
  49621. - esac
  49622. - # Canonicalise the pathname
  49623. - tmp=""
  49624. - while test "$arg" != "$tmp"
  49625. - do
  49626. - tmp=$arg
  49627. - arg=`$echo "X$arg" | $Xsed -e 's%[^/.][^/.]*/\.\.%%g' -e 's%/\./%/%g' -e 's%//*%/%g' -e 's%/$%%g'`
  49628. - done
  49629. - if test "$prev" = rpath; then
  49630. - case "$rpath " in
  49631. - *" $arg "*) ;;
  49632. - *) rpath="$rpath $arg" ;;
  49633. - esac
  49634. - else
  49635. - case "$xrpath " in
  49636. - *" $arg "*) ;;
  49637. - *) xrpath="$xrpath $arg" ;;
  49638. - esac
  49639. - fi
  49640. - prev=
  49641. - continue
  49642. - ;;
  49643. - xcompiler)
  49644. - compiler_flags="$compiler_flags $qarg"
  49645. - prev=
  49646. - compile_command="$compile_command $qarg"
  49647. - finalize_command="$finalize_command $qarg"
  49648. - continue
  49649. - ;;
  49650. - xlinker)
  49651. - linker_flags="$linker_flags $qarg"
  49652. - compiler_flags="$compiler_flags $wl$qarg"
  49653. - prev=
  49654. - compile_command="$compile_command $wl$qarg"
  49655. - finalize_command="$finalize_command $wl$qarg"
  49656. - continue
  49657. - ;;
  49658. - xcclinker)
  49659. - linker_flags="$linker_flags $qarg"
  49660. - compiler_flags="$compiler_flags $qarg"
  49661. - prev=
  49662. - compile_command="$compile_command $qarg"
  49663. - finalize_command="$finalize_command $qarg"
  49664. - continue
  49665. - ;;
  49666. - shrext)
  49667. - shrext_cmds="$arg"
  49668. - prev=
  49669. - continue
  49670. - ;;
  49671. - darwin_framework|darwin_framework_skip)
  49672. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  49673. - compile_command="$compile_command $arg"
  49674. - finalize_command="$finalize_command $arg"
  49675. - prev=
  49676. - continue
  49677. - ;;
  49678. - *)
  49679. - eval "$prev=\"\$arg\""
  49680. - prev=
  49681. - continue
  49682. - ;;
  49683. - esac
  49684. - fi # test -n "$prev"
  49685. +Each LIBDIR is a directory that contains libtool libraries.
  49686. - prevarg="$arg"
  49687. +The commands that this mode executes may require superuser privileges. Use
  49688. +the \`--dry-run' option if you just want to see what would be executed."
  49689. + ;;
  49690. - case $arg in
  49691. - -all-static)
  49692. - if test -n "$link_static_flag"; then
  49693. - compile_command="$compile_command $link_static_flag"
  49694. - finalize_command="$finalize_command $link_static_flag"
  49695. - fi
  49696. - continue
  49697. - ;;
  49698. + install)
  49699. + $ECHO \
  49700. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  49701. - -allow-undefined)
  49702. - # FIXME: remove this flag sometime in the future.
  49703. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  49704. - continue
  49705. - ;;
  49706. +Install executables or libraries.
  49707. - -avoid-version)
  49708. - avoid_version=yes
  49709. - continue
  49710. - ;;
  49711. +INSTALL-COMMAND is the installation command. The first component should be
  49712. +either the \`install' or \`cp' program.
  49713. - -dlopen)
  49714. - prev=dlfiles
  49715. - continue
  49716. - ;;
  49717. +The following components of INSTALL-COMMAND are treated specially:
  49718. - -dlpreopen)
  49719. - prev=dlprefiles
  49720. - continue
  49721. - ;;
  49722. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  49723. - -export-dynamic)
  49724. - export_dynamic=yes
  49725. - continue
  49726. - ;;
  49727. +The rest of the components are interpreted as arguments to that command (only
  49728. +BSD-compatible install options are recognized)."
  49729. + ;;
  49730. - -export-symbols | -export-symbols-regex)
  49731. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  49732. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  49733. - exit $EXIT_FAILURE
  49734. - fi
  49735. - if test "X$arg" = "X-export-symbols"; then
  49736. - prev=expsyms
  49737. - else
  49738. - prev=expsyms_regex
  49739. - fi
  49740. - continue
  49741. - ;;
  49742. + link)
  49743. + $ECHO \
  49744. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  49745. - -framework|-arch|-isysroot)
  49746. - case " $CC " in
  49747. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  49748. - prev=darwin_framework_skip ;;
  49749. - *) compiler_flags="$compiler_flags $arg"
  49750. - prev=darwin_framework ;;
  49751. - esac
  49752. - compile_command="$compile_command $arg"
  49753. - finalize_command="$finalize_command $arg"
  49754. - continue
  49755. - ;;
  49756. +Link object files or libraries together to form another library, or to
  49757. +create an executable program.
  49758. - -inst-prefix-dir)
  49759. - prev=inst_prefix
  49760. - continue
  49761. - ;;
  49762. +LINK-COMMAND is a command using the C compiler that you would use to create
  49763. +a program from several object files.
  49764. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  49765. - # so, if we see these flags be careful not to treat them like -L
  49766. - -L[A-Z][A-Z]*:*)
  49767. - case $with_gcc/$host in
  49768. - no/*-*-irix* | /*-*-irix*)
  49769. - compile_command="$compile_command $arg"
  49770. - finalize_command="$finalize_command $arg"
  49771. - ;;
  49772. - esac
  49773. - continue
  49774. - ;;
  49775. +The following components of LINK-COMMAND are treated specially:
  49776. - -L*)
  49777. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  49778. - # We need an absolute path.
  49779. - case $dir in
  49780. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49781. - *)
  49782. - absdir=`cd "$dir" && pwd`
  49783. - if test -z "$absdir"; then
  49784. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  49785. - absdir="$dir"
  49786. - notinst_path="$notinst_path $dir"
  49787. - fi
  49788. - dir="$absdir"
  49789. - ;;
  49790. - esac
  49791. - case "$deplibs " in
  49792. - *" -L$dir "*) ;;
  49793. - *)
  49794. - deplibs="$deplibs -L$dir"
  49795. - lib_search_path="$lib_search_path $dir"
  49796. - ;;
  49797. - esac
  49798. - case $host in
  49799. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49800. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  49801. - case :$dllsearchpath: in
  49802. - *":$dir:"*) ;;
  49803. - *) dllsearchpath="$dllsearchpath:$dir";;
  49804. - esac
  49805. - case :$dllsearchpath: in
  49806. - *":$testbindir:"*) ;;
  49807. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  49808. - esac
  49809. - ;;
  49810. - esac
  49811. - continue
  49812. - ;;
  49813. + -all-static do not do any dynamic linking at all
  49814. + -avoid-version do not add a version suffix if possible
  49815. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  49816. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  49817. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  49818. + -export-symbols SYMFILE
  49819. + try to export only the symbols listed in SYMFILE
  49820. + -export-symbols-regex REGEX
  49821. + try to export only the symbols matching REGEX
  49822. + -LLIBDIR search LIBDIR for required installed libraries
  49823. + -lNAME OUTPUT-FILE requires the installed library libNAME
  49824. + -module build a library that can dlopened
  49825. + -no-fast-install disable the fast-install mode
  49826. + -no-install link a not-installable executable
  49827. + -no-undefined declare that a library does not refer to external symbols
  49828. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  49829. + -objectlist FILE Use a list of object files found in FILE to specify objects
  49830. + -precious-files-regex REGEX
  49831. + don't remove output files matching REGEX
  49832. + -release RELEASE specify package release information
  49833. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  49834. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  49835. + -shared only do dynamic linking of libtool libraries
  49836. + -shrext SUFFIX override the standard shared library file extension
  49837. + -static do not do any dynamic linking of uninstalled libtool libraries
  49838. + -static-libtool-libs
  49839. + do not do any dynamic linking of libtool libraries
  49840. + -version-info CURRENT[:REVISION[:AGE]]
  49841. + specify library version info [each variable defaults to 0]
  49842. + -weak LIBNAME declare that the target provides the LIBNAME interface
  49843. - -l*)
  49844. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  49845. - case $host in
  49846. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  49847. - # These systems don't actually have a C or math library (as such)
  49848. - continue
  49849. - ;;
  49850. - *-*-os2*)
  49851. - # These systems don't actually have a C library (as such)
  49852. - test "X$arg" = "X-lc" && continue
  49853. - ;;
  49854. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  49855. - # Do not include libc due to us having libc/libc_r.
  49856. - test "X$arg" = "X-lc" && continue
  49857. - ;;
  49858. - *-*-rhapsody* | *-*-darwin1.[012])
  49859. - # Rhapsody C and math libraries are in the System framework
  49860. - deplibs="$deplibs -framework System"
  49861. - continue
  49862. - ;;
  49863. - *-*-sco3.2v5* | *-*-sco5v6*)
  49864. - # Causes problems with __ctype
  49865. - test "X$arg" = "X-lc" && continue
  49866. - ;;
  49867. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  49868. - # Compiler inserts libc in the correct place for threads to work
  49869. - test "X$arg" = "X-lc" && continue
  49870. - ;;
  49871. - esac
  49872. - elif test "X$arg" = "X-lc_r"; then
  49873. - case $host in
  49874. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  49875. - # Do not include libc_r directly, use -pthread flag.
  49876. - continue
  49877. - ;;
  49878. - esac
  49879. - fi
  49880. - deplibs="$deplibs $arg"
  49881. - continue
  49882. - ;;
  49883. +All other options (arguments beginning with \`-') are ignored.
  49884. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  49885. - # classes, name mangling, and exception handling.
  49886. - -model)
  49887. - compile_command="$compile_command $arg"
  49888. - compiler_flags="$compiler_flags $arg"
  49889. - finalize_command="$finalize_command $arg"
  49890. - prev=xcompiler
  49891. - continue
  49892. - ;;
  49893. +Every other argument is treated as a filename. Files ending in \`.la' are
  49894. +treated as uninstalled libtool libraries, other files are standard or library
  49895. +object files.
  49896. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  49897. - compiler_flags="$compiler_flags $arg"
  49898. - compile_command="$compile_command $arg"
  49899. - finalize_command="$finalize_command $arg"
  49900. - case $host:$arg in
  49901. - *-*-dragonfly*:-pthread)
  49902. - # pkgsrc hack to use -pthread in .la file for final linking
  49903. - deplibs="$deplibs $arg"
  49904. - ;;
  49905. - esac
  49906. - continue
  49907. - ;;
  49908. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  49909. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  49910. +required, except when creating a convenience library.
  49911. - -multi_module)
  49912. - single_module="${wl}-multi_module"
  49913. - continue
  49914. - ;;
  49915. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  49916. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  49917. - -module)
  49918. - module=yes
  49919. - continue
  49920. - ;;
  49921. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  49922. +is created, otherwise an executable program is created."
  49923. + ;;
  49924. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  49925. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  49926. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  49927. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  49928. - # -q* pass through compiler args for the IBM compiler
  49929. - # -m* pass through architecture-specific compiler args for GCC
  49930. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  49931. - # compiler args for GCC
  49932. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  49933. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  49934. - # @file GCC response files
  49935. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  49936. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  49937. + uninstall)
  49938. + $ECHO \
  49939. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  49940. - # Unknown arguments in both finalize_command and compile_command need
  49941. - # to be aesthetically quoted because they are evaled later.
  49942. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  49943. - case $arg in
  49944. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49945. - arg="\"$arg\""
  49946. - ;;
  49947. - esac
  49948. - compile_command="$compile_command $arg"
  49949. - finalize_command="$finalize_command $arg"
  49950. - compiler_flags="$compiler_flags $arg"
  49951. - continue
  49952. +Remove libraries from an installation directory.
  49953. +
  49954. +RM is the name of the program to use to delete files associated with each FILE
  49955. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  49956. +to RM.
  49957. +
  49958. +If FILE is a libtool library, all the files associated with it are deleted.
  49959. +Otherwise, only FILE itself is deleted using RM."
  49960. ;;
  49961. - -shrext)
  49962. - prev=shrext
  49963. - continue
  49964. - ;;
  49965. + *)
  49966. + func_fatal_help "invalid operation mode \`$mode'"
  49967. + ;;
  49968. + esac
  49969. - -no-fast-install)
  49970. - fast_install=no
  49971. - continue
  49972. - ;;
  49973. + $ECHO
  49974. + $ECHO "Try \`$progname --help' for more information about other modes."
  49975. - -no-install)
  49976. - case $host in
  49977. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  49978. - # The PATH hackery in wrapper scripts is required on Windows
  49979. - # and Darwin in order for the loader to find any dlls it needs.
  49980. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  49981. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  49982. - fast_install=no
  49983. - ;;
  49984. - *) no_install=yes ;;
  49985. - esac
  49986. - continue
  49987. - ;;
  49988. + exit $?
  49989. +}
  49990. - -no-undefined)
  49991. - allow_undefined=no
  49992. - continue
  49993. - ;;
  49994. + # Now that we've collected a possible --mode arg, show help if necessary
  49995. + $opt_help && func_mode_help
  49996. - -objectlist)
  49997. - prev=objectlist
  49998. - continue
  49999. - ;;
  50000. - -o) prev=output ;;
  50001. +# func_mode_execute arg...
  50002. +func_mode_execute ()
  50003. +{
  50004. + $opt_debug
  50005. + # The first argument is the command name.
  50006. + cmd="$nonopt"
  50007. + test -z "$cmd" && \
  50008. + func_fatal_help "you must specify a COMMAND"
  50009. - -precious-files-regex)
  50010. - prev=precious_regex
  50011. - continue
  50012. - ;;
  50013. + # Handle -dlopen flags immediately.
  50014. + for file in $execute_dlfiles; do
  50015. + test -f "$file" \
  50016. + || func_fatal_help "\`$file' is not a file"
  50017. - -release)
  50018. - prev=release
  50019. - continue
  50020. - ;;
  50021. + dir=
  50022. + case $file in
  50023. + *.la)
  50024. + # Check to see that this really is a libtool archive.
  50025. + func_lalib_unsafe_p "$file" \
  50026. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  50027. - -rpath)
  50028. - prev=rpath
  50029. - continue
  50030. - ;;
  50031. + # Read the libtool library.
  50032. + dlname=
  50033. + library_names=
  50034. + func_source "$file"
  50035. - -R)
  50036. - prev=xrpath
  50037. - continue
  50038. - ;;
  50039. + # Skip this library if it cannot be dlopened.
  50040. + if test -z "$dlname"; then
  50041. + # Warn if it was a shared library.
  50042. + test -n "$library_names" && \
  50043. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  50044. + continue
  50045. + fi
  50046. - -R*)
  50047. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  50048. - # We need an absolute path.
  50049. - case $dir in
  50050. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  50051. - *)
  50052. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  50053. - exit $EXIT_FAILURE
  50054. - ;;
  50055. - esac
  50056. - case "$xrpath " in
  50057. - *" $dir "*) ;;
  50058. - *) xrpath="$xrpath $dir" ;;
  50059. - esac
  50060. - continue
  50061. - ;;
  50062. + func_dirname "$file" "" "."
  50063. + dir="$func_dirname_result"
  50064. - -static | -static-libtool-libs)
  50065. - # The effects of -static are defined in a previous loop.
  50066. - # We used to do the same as -all-static on platforms that
  50067. - # didn't have a PIC flag, but the assumption that the effects
  50068. - # would be equivalent was wrong. It would break on at least
  50069. - # Digital Unix and AIX.
  50070. - continue
  50071. + if test -f "$dir/$objdir/$dlname"; then
  50072. + dir="$dir/$objdir"
  50073. + else
  50074. + if test ! -f "$dir/$dlname"; then
  50075. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  50076. + fi
  50077. + fi
  50078. ;;
  50079. - -thread-safe)
  50080. - thread_safe=yes
  50081. - continue
  50082. + *.lo)
  50083. + # Just add the directory containing the .lo file.
  50084. + func_dirname "$file" "" "."
  50085. + dir="$func_dirname_result"
  50086. ;;
  50087. - -version-info)
  50088. - prev=vinfo
  50089. - continue
  50090. - ;;
  50091. - -version-number)
  50092. - prev=vinfo
  50093. - vinfo_number=yes
  50094. + *)
  50095. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  50096. continue
  50097. ;;
  50098. + esac
  50099. - -Wc,*)
  50100. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  50101. - arg=
  50102. - save_ifs="$IFS"; IFS=','
  50103. - for flag in $args; do
  50104. - IFS="$save_ifs"
  50105. - case $flag in
  50106. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50107. - flag="\"$flag\""
  50108. - ;;
  50109. - esac
  50110. - arg="$arg $wl$flag"
  50111. - compiler_flags="$compiler_flags $flag"
  50112. - done
  50113. - IFS="$save_ifs"
  50114. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  50115. - ;;
  50116. + # Get the absolute pathname.
  50117. + absdir=`cd "$dir" && pwd`
  50118. + test -n "$absdir" && dir="$absdir"
  50119. - -Wl,*)
  50120. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  50121. - arg=
  50122. - save_ifs="$IFS"; IFS=','
  50123. - for flag in $args; do
  50124. - IFS="$save_ifs"
  50125. - case $flag in
  50126. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50127. - flag="\"$flag\""
  50128. - ;;
  50129. - esac
  50130. - arg="$arg $wl$flag"
  50131. - compiler_flags="$compiler_flags $wl$flag"
  50132. - linker_flags="$linker_flags $flag"
  50133. - done
  50134. - IFS="$save_ifs"
  50135. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  50136. - ;;
  50137. + # Now add the directory to shlibpath_var.
  50138. + if eval "test -z \"\$$shlibpath_var\""; then
  50139. + eval "$shlibpath_var=\"\$dir\""
  50140. + else
  50141. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  50142. + fi
  50143. + done
  50144. - -Xcompiler)
  50145. - prev=xcompiler
  50146. - continue
  50147. - ;;
  50148. + # This variable tells wrapper scripts just to set shlibpath_var
  50149. + # rather than running their programs.
  50150. + libtool_execute_magic="$magic"
  50151. - -Xlinker)
  50152. - prev=xlinker
  50153. - continue
  50154. + # Check if any of the arguments is a wrapper script.
  50155. + args=
  50156. + for file
  50157. + do
  50158. + case $file in
  50159. + -*) ;;
  50160. + *)
  50161. + # Do a test to see if this is really a libtool program.
  50162. + if func_ltwrapper_script_p "$file"; then
  50163. + func_source "$file"
  50164. + # Transform arg to wrapped name.
  50165. + file="$progdir/$program"
  50166. + elif func_ltwrapper_executable_p "$file"; then
  50167. + func_ltwrapper_scriptname "$file"
  50168. + func_source "$func_ltwrapper_scriptname_result"
  50169. + # Transform arg to wrapped name.
  50170. + file="$progdir/$program"
  50171. + fi
  50172. ;;
  50173. + esac
  50174. + # Quote arguments (to preserve shell metacharacters).
  50175. + func_quote_for_eval "$file"
  50176. + args="$args $func_quote_for_eval_result"
  50177. + done
  50178. - -XCClinker)
  50179. - prev=xcclinker
  50180. - continue
  50181. - ;;
  50182. + if test "X$opt_dry_run" = Xfalse; then
  50183. + if test -n "$shlibpath_var"; then
  50184. + # Export the shlibpath_var.
  50185. + eval "export $shlibpath_var"
  50186. + fi
  50187. - # Some other compiler flag.
  50188. - -* | +*)
  50189. - # Unknown arguments in both finalize_command and compile_command need
  50190. - # to be aesthetically quoted because they are evaled later.
  50191. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50192. - case $arg in
  50193. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50194. - arg="\"$arg\""
  50195. - ;;
  50196. - esac
  50197. - ;;
  50198. + # Restore saved environment variables
  50199. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  50200. + do
  50201. + eval "if test \"\${save_$lt_var+set}\" = set; then
  50202. + $lt_var=\$save_$lt_var; export $lt_var
  50203. + else
  50204. + $lt_unset $lt_var
  50205. + fi"
  50206. + done
  50207. - *.$objext)
  50208. - # A standard object.
  50209. - objs="$objs $arg"
  50210. - ;;
  50211. + # Now prepare to actually exec the command.
  50212. + exec_cmd="\$cmd$args"
  50213. + else
  50214. + # Display what would be done.
  50215. + if test -n "$shlibpath_var"; then
  50216. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  50217. + $ECHO "export $shlibpath_var"
  50218. + fi
  50219. + $ECHO "$cmd$args"
  50220. + exit $EXIT_SUCCESS
  50221. + fi
  50222. +}
  50223. - *.lo)
  50224. - # A libtool-controlled object.
  50225. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  50226. - # Check to see that this really is a libtool object.
  50227. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50228. - pic_object=
  50229. - non_pic_object=
  50230. - # Read the .lo file
  50231. - # If there is no directory component, then add one.
  50232. - case $arg in
  50233. - */* | *\\*) . $arg ;;
  50234. - *) . ./$arg ;;
  50235. - esac
  50236. +# func_mode_finish arg...
  50237. +func_mode_finish ()
  50238. +{
  50239. + $opt_debug
  50240. + libdirs="$nonopt"
  50241. + admincmds=
  50242. - if test -z "$pic_object" || \
  50243. - test -z "$non_pic_object" ||
  50244. - test "$pic_object" = none && \
  50245. - test "$non_pic_object" = none; then
  50246. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  50247. - exit $EXIT_FAILURE
  50248. - fi
  50249. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  50250. + for dir
  50251. + do
  50252. + libdirs="$libdirs $dir"
  50253. + done
  50254. - # Extract subdirectory from the argument.
  50255. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50256. - if test "X$xdir" = "X$arg"; then
  50257. - xdir=
  50258. - else
  50259. - xdir="$xdir/"
  50260. - fi
  50261. + for libdir in $libdirs; do
  50262. + if test -n "$finish_cmds"; then
  50263. + # Do each command in the finish commands.
  50264. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  50265. +'"$cmd"'"'
  50266. + fi
  50267. + if test -n "$finish_eval"; then
  50268. + # Do the single finish_eval.
  50269. + eval cmds=\"$finish_eval\"
  50270. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  50271. + $cmds"
  50272. + fi
  50273. + done
  50274. + fi
  50275. - if test "$pic_object" != none; then
  50276. - # Prepend the subdirectory the object is found in.
  50277. - pic_object="$xdir$pic_object"
  50278. + # Exit here if they wanted silent mode.
  50279. + $opt_silent && exit $EXIT_SUCCESS
  50280. - if test "$prev" = dlfiles; then
  50281. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  50282. - dlfiles="$dlfiles $pic_object"
  50283. - prev=
  50284. - continue
  50285. - else
  50286. - # If libtool objects are unsupported, then we need to preload.
  50287. - prev=dlprefiles
  50288. - fi
  50289. - fi
  50290. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  50291. + $ECHO "Libraries have been installed in:"
  50292. + for libdir in $libdirs; do
  50293. + $ECHO " $libdir"
  50294. + done
  50295. + $ECHO
  50296. + $ECHO "If you ever happen to want to link against installed libraries"
  50297. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  50298. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  50299. + $ECHO "flag during linking and do at least one of the following:"
  50300. + if test -n "$shlibpath_var"; then
  50301. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  50302. + $ECHO " during execution"
  50303. + fi
  50304. + if test -n "$runpath_var"; then
  50305. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  50306. + $ECHO " during linking"
  50307. + fi
  50308. + if test -n "$hardcode_libdir_flag_spec"; then
  50309. + libdir=LIBDIR
  50310. + eval flag=\"$hardcode_libdir_flag_spec\"
  50311. - # CHECK ME: I think I busted this. -Ossama
  50312. - if test "$prev" = dlprefiles; then
  50313. - # Preload the old-style object.
  50314. - dlprefiles="$dlprefiles $pic_object"
  50315. - prev=
  50316. - fi
  50317. + $ECHO " - use the \`$flag' linker flag"
  50318. + fi
  50319. + if test -n "$admincmds"; then
  50320. + $ECHO " - have your system administrator run these commands:$admincmds"
  50321. + fi
  50322. + if test -f /etc/ld.so.conf; then
  50323. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  50324. + fi
  50325. + $ECHO
  50326. - # A PIC object.
  50327. - libobjs="$libobjs $pic_object"
  50328. - arg="$pic_object"
  50329. - fi
  50330. + $ECHO "See any operating system documentation about shared libraries for"
  50331. + case $host in
  50332. + solaris2.[6789]|solaris2.1[0-9])
  50333. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  50334. + $ECHO "pages."
  50335. + ;;
  50336. + *)
  50337. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  50338. + ;;
  50339. + esac
  50340. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  50341. + exit $EXIT_SUCCESS
  50342. +}
  50343. - # Non-PIC object.
  50344. - if test "$non_pic_object" != none; then
  50345. - # Prepend the subdirectory the object is found in.
  50346. - non_pic_object="$xdir$non_pic_object"
  50347. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  50348. - # A standard non-PIC object
  50349. - non_pic_objects="$non_pic_objects $non_pic_object"
  50350. - if test -z "$pic_object" || test "$pic_object" = none ; then
  50351. - arg="$non_pic_object"
  50352. - fi
  50353. - else
  50354. - # If the PIC object exists, use it instead.
  50355. - # $xdir was prepended to $pic_object above.
  50356. - non_pic_object="$pic_object"
  50357. - non_pic_objects="$non_pic_objects $non_pic_object"
  50358. - fi
  50359. - else
  50360. - # Only an error if not doing a dry-run.
  50361. - if test -z "$run"; then
  50362. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  50363. - exit $EXIT_FAILURE
  50364. - else
  50365. - # Dry-run case.
  50366. - # Extract subdirectory from the argument.
  50367. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50368. - if test "X$xdir" = "X$arg"; then
  50369. - xdir=
  50370. - else
  50371. - xdir="$xdir/"
  50372. - fi
  50373. +# func_mode_install arg...
  50374. +func_mode_install ()
  50375. +{
  50376. + $opt_debug
  50377. + # There may be an optional sh(1) argument at the beginning of
  50378. + # install_prog (especially on Windows NT).
  50379. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  50380. + # Allow the use of GNU shtool's install command.
  50381. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  50382. + # Aesthetically quote it.
  50383. + func_quote_for_eval "$nonopt"
  50384. + install_prog="$func_quote_for_eval_result "
  50385. + arg=$1
  50386. + shift
  50387. + else
  50388. + install_prog=
  50389. + arg=$nonopt
  50390. + fi
  50391. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  50392. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  50393. - libobjs="$libobjs $pic_object"
  50394. - non_pic_objects="$non_pic_objects $non_pic_object"
  50395. - fi
  50396. - fi
  50397. - ;;
  50398. + # The real first argument should be the name of the installation program.
  50399. + # Aesthetically quote it.
  50400. + func_quote_for_eval "$arg"
  50401. + install_prog="$install_prog$func_quote_for_eval_result"
  50402. - *.$libext)
  50403. - # An archive.
  50404. - deplibs="$deplibs $arg"
  50405. - old_deplibs="$old_deplibs $arg"
  50406. + # We need to accept at least all the BSD install flags.
  50407. + dest=
  50408. + files=
  50409. + opts=
  50410. + prev=
  50411. + install_type=
  50412. + isdir=no
  50413. + stripme=
  50414. + for arg
  50415. + do
  50416. + if test -n "$dest"; then
  50417. + files="$files $dest"
  50418. + dest=$arg
  50419. continue
  50420. - ;;
  50421. -
  50422. - *.la)
  50423. - # A libtool-controlled library.
  50424. + fi
  50425. - if test "$prev" = dlfiles; then
  50426. - # This library was specified with -dlopen.
  50427. - dlfiles="$dlfiles $arg"
  50428. - prev=
  50429. - elif test "$prev" = dlprefiles; then
  50430. - # The library was specified with -dlpreopen.
  50431. - dlprefiles="$dlprefiles $arg"
  50432. + case $arg in
  50433. + -d) isdir=yes ;;
  50434. + -f)
  50435. + case " $install_prog " in
  50436. + *[\\\ /]cp\ *) ;;
  50437. + *) prev=$arg ;;
  50438. + esac
  50439. + ;;
  50440. + -g | -m | -o)
  50441. + prev=$arg
  50442. + ;;
  50443. + -s)
  50444. + stripme=" -s"
  50445. + continue
  50446. + ;;
  50447. + -*)
  50448. + ;;
  50449. + *)
  50450. + # If the previous option needed an argument, then skip it.
  50451. + if test -n "$prev"; then
  50452. prev=
  50453. else
  50454. - deplibs="$deplibs $arg"
  50455. + dest=$arg
  50456. + continue
  50457. fi
  50458. - continue
  50459. ;;
  50460. + esac
  50461. - # Some other compiler argument.
  50462. - *)
  50463. - # Unknown arguments in both finalize_command and compile_command need
  50464. - # to be aesthetically quoted because they are evaled later.
  50465. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50466. - case $arg in
  50467. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50468. - arg="\"$arg\""
  50469. - ;;
  50470. - esac
  50471. - ;;
  50472. - esac # arg
  50473. + # Aesthetically quote the argument.
  50474. + func_quote_for_eval "$arg"
  50475. + install_prog="$install_prog $func_quote_for_eval_result"
  50476. + done
  50477. - # Now actually substitute the argument into the commands.
  50478. - if test -n "$arg"; then
  50479. - compile_command="$compile_command $arg"
  50480. - finalize_command="$finalize_command $arg"
  50481. - fi
  50482. - done # argument parsing loop
  50483. + test -z "$install_prog" && \
  50484. + func_fatal_help "you must specify an install program"
  50485. - if test -n "$prev"; then
  50486. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  50487. - $echo "$help" 1>&2
  50488. - exit $EXIT_FAILURE
  50489. - fi
  50490. + test -n "$prev" && \
  50491. + func_fatal_help "the \`$prev' option requires an argument"
  50492. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  50493. - eval arg=\"$export_dynamic_flag_spec\"
  50494. - compile_command="$compile_command $arg"
  50495. - finalize_command="$finalize_command $arg"
  50496. + if test -z "$files"; then
  50497. + if test -z "$dest"; then
  50498. + func_fatal_help "no file or destination specified"
  50499. + else
  50500. + func_fatal_help "you must specify a destination"
  50501. + fi
  50502. fi
  50503. - oldlibs=
  50504. - # calculate the name of the file, without its directory
  50505. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  50506. - libobjs_save="$libobjs"
  50507. + # Strip any trailing slash from the destination.
  50508. + func_stripname '' '/' "$dest"
  50509. + dest=$func_stripname_result
  50510. - if test -n "$shlibpath_var"; then
  50511. - # get the directories listed in $shlibpath_var
  50512. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  50513. + # Check to see that the destination is a directory.
  50514. + test -d "$dest" && isdir=yes
  50515. + if test "$isdir" = yes; then
  50516. + destdir="$dest"
  50517. + destname=
  50518. else
  50519. - shlib_search_path=
  50520. - fi
  50521. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  50522. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  50523. + func_dirname_and_basename "$dest" "" "."
  50524. + destdir="$func_dirname_result"
  50525. + destname="$func_basename_result"
  50526. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  50527. - if test "X$output_objdir" = "X$output"; then
  50528. - output_objdir="$objdir"
  50529. - else
  50530. - output_objdir="$output_objdir/$objdir"
  50531. - fi
  50532. - # Create the object directory.
  50533. - if test ! -d "$output_objdir"; then
  50534. - $show "$mkdir $output_objdir"
  50535. - $run $mkdir $output_objdir
  50536. - exit_status=$?
  50537. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  50538. - exit $exit_status
  50539. - fi
  50540. + # Not a directory, so check to see that there is only one file specified.
  50541. + set dummy $files; shift
  50542. + test "$#" -gt 1 && \
  50543. + func_fatal_help "\`$dest' is not a directory"
  50544. fi
  50545. -
  50546. - # Determine the type of output
  50547. - case $output in
  50548. - "")
  50549. - $echo "$modename: you must specify an output file" 1>&2
  50550. - $echo "$help" 1>&2
  50551. - exit $EXIT_FAILURE
  50552. - ;;
  50553. - *.$libext) linkmode=oldlib ;;
  50554. - *.lo | *.$objext) linkmode=obj ;;
  50555. - *.la) linkmode=lib ;;
  50556. - *) linkmode=prog ;; # Anything else should be a program.
  50557. - esac
  50558. -
  50559. - case $host in
  50560. - *cygwin* | *mingw* | *pw32*)
  50561. - # don't eliminate duplications in $postdeps and $predeps
  50562. - duplicate_compiler_generated_deps=yes
  50563. - ;;
  50564. + case $destdir in
  50565. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  50566. *)
  50567. - duplicate_compiler_generated_deps=$duplicate_deps
  50568. + for file in $files; do
  50569. + case $file in
  50570. + *.lo) ;;
  50571. + *)
  50572. + func_fatal_help "\`$destdir' must be an absolute directory name"
  50573. + ;;
  50574. + esac
  50575. + done
  50576. ;;
  50577. esac
  50578. - specialdeplibs=
  50579. - libs=
  50580. - # Find all interdependent deplibs by searching for libraries
  50581. - # that are linked more than once (e.g. -la -lb -la)
  50582. - for deplib in $deplibs; do
  50583. - if test "X$duplicate_deps" = "Xyes" ; then
  50584. - case "$libs " in
  50585. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50586. - esac
  50587. - fi
  50588. - libs="$libs $deplib"
  50589. - done
  50590. + # This variable tells wrapper scripts just to set variables rather
  50591. + # than running their programs.
  50592. + libtool_install_magic="$magic"
  50593. - if test "$linkmode" = lib; then
  50594. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  50595. + staticlibs=
  50596. + future_libdirs=
  50597. + current_libdirs=
  50598. + for file in $files; do
  50599. - # Compute libraries that are listed more than once in $predeps
  50600. - # $postdeps and mark them as special (i.e., whose duplicates are
  50601. - # not to be eliminated).
  50602. - pre_post_deps=
  50603. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  50604. - for pre_post_dep in $predeps $postdeps; do
  50605. - case "$pre_post_deps " in
  50606. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  50607. + # Do each installation.
  50608. + case $file in
  50609. + *.$libext)
  50610. + # Do the static libraries later.
  50611. + staticlibs="$staticlibs $file"
  50612. + ;;
  50613. +
  50614. + *.la)
  50615. + # Check to see that this really is a libtool archive.
  50616. + func_lalib_unsafe_p "$file" \
  50617. + || func_fatal_help "\`$file' is not a valid libtool archive"
  50618. +
  50619. + library_names=
  50620. + old_library=
  50621. + relink_command=
  50622. + func_source "$file"
  50623. +
  50624. + # Add the libdir to current_libdirs if it is the destination.
  50625. + if test "X$destdir" = "X$libdir"; then
  50626. + case "$current_libdirs " in
  50627. + *" $libdir "*) ;;
  50628. + *) current_libdirs="$current_libdirs $libdir" ;;
  50629. esac
  50630. - pre_post_deps="$pre_post_deps $pre_post_dep"
  50631. - done
  50632. - fi
  50633. - pre_post_deps=
  50634. - fi
  50635. + else
  50636. + # Note the libdir as a future libdir.
  50637. + case "$future_libdirs " in
  50638. + *" $libdir "*) ;;
  50639. + *) future_libdirs="$future_libdirs $libdir" ;;
  50640. + esac
  50641. + fi
  50642. - deplibs=
  50643. - newdependency_libs=
  50644. - newlib_search_path=
  50645. - need_relink=no # whether we're linking any uninstalled libtool libraries
  50646. - notinst_deplibs= # not-installed libtool libraries
  50647. - case $linkmode in
  50648. - lib)
  50649. - passes="conv link"
  50650. - for file in $dlfiles $dlprefiles; do
  50651. - case $file in
  50652. - *.la) ;;
  50653. - *)
  50654. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  50655. - exit $EXIT_FAILURE
  50656. + func_dirname "$file" "/" ""
  50657. + dir="$func_dirname_result"
  50658. + dir="$dir$objdir"
  50659. +
  50660. + if test -n "$relink_command"; then
  50661. + # Determine the prefix the user has applied to our future dir.
  50662. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  50663. +
  50664. + # Don't allow the user to place us outside of our expected
  50665. + # location b/c this prevents finding dependent libraries that
  50666. + # are installed to the same prefix.
  50667. + # At present, this check doesn't affect windows .dll's that
  50668. + # are installed into $libdir/../bin (currently, that works fine)
  50669. + # but it's something to keep an eye on.
  50670. + test "$inst_prefix_dir" = "$destdir" && \
  50671. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  50672. +
  50673. + if test -n "$inst_prefix_dir"; then
  50674. + # Stick the inst_prefix_dir data into the link command.
  50675. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  50676. + else
  50677. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  50678. + fi
  50679. +
  50680. + func_warning "relinking \`$file'"
  50681. + func_show_eval "$relink_command" \
  50682. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  50683. + fi
  50684. +
  50685. + # See the names of the shared library.
  50686. + set dummy $library_names; shift
  50687. + if test -n "$1"; then
  50688. + realname="$1"
  50689. + shift
  50690. +
  50691. + srcname="$realname"
  50692. + test -n "$relink_command" && srcname="$realname"T
  50693. +
  50694. + # Install the shared library and build the symlinks.
  50695. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  50696. + 'exit $?'
  50697. + tstripme="$stripme"
  50698. + case $host_os in
  50699. + cygwin* | mingw* | pw32* | cegcc*)
  50700. + case $realname in
  50701. + *.dll.a)
  50702. + tstripme=""
  50703. + ;;
  50704. + esac
  50705. ;;
  50706. esac
  50707. - done
  50708. + if test -n "$tstripme" && test -n "$striplib"; then
  50709. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  50710. + fi
  50711. +
  50712. + if test "$#" -gt 0; then
  50713. + # Delete the old symlinks, and create new ones.
  50714. + # Try `ln -sf' first, because the `ln' binary might depend on
  50715. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  50716. + # so we also need to try rm && ln -s.
  50717. + for linkname
  50718. + do
  50719. + test "$linkname" != "$realname" \
  50720. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  50721. + done
  50722. + fi
  50723. +
  50724. + # Do each command in the postinstall commands.
  50725. + lib="$destdir/$realname"
  50726. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  50727. + fi
  50728. +
  50729. + # Install the pseudo-library for information purposes.
  50730. + func_basename "$file"
  50731. + name="$func_basename_result"
  50732. + instname="$dir/$name"i
  50733. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  50734. +
  50735. + # Maybe install the static library, too.
  50736. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  50737. ;;
  50738. - prog)
  50739. - compile_deplibs=
  50740. - finalize_deplibs=
  50741. - alldeplibs=no
  50742. - newdlfiles=
  50743. - newdlprefiles=
  50744. - passes="conv scan dlopen dlpreopen link"
  50745. - ;;
  50746. - *) passes="conv"
  50747. +
  50748. + *.lo)
  50749. + # Install (i.e. copy) a libtool object.
  50750. +
  50751. + # Figure out destination file name, if it wasn't already specified.
  50752. + if test -n "$destname"; then
  50753. + destfile="$destdir/$destname"
  50754. + else
  50755. + func_basename "$file"
  50756. + destfile="$func_basename_result"
  50757. + destfile="$destdir/$destfile"
  50758. + fi
  50759. +
  50760. + # Deduce the name of the destination old-style object file.
  50761. + case $destfile in
  50762. + *.lo)
  50763. + func_lo2o "$destfile"
  50764. + staticdest=$func_lo2o_result
  50765. + ;;
  50766. + *.$objext)
  50767. + staticdest="$destfile"
  50768. + destfile=
  50769. + ;;
  50770. + *)
  50771. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  50772. + ;;
  50773. + esac
  50774. +
  50775. + # Install the libtool object if requested.
  50776. + test -n "$destfile" && \
  50777. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  50778. +
  50779. + # Install the old object if enabled.
  50780. + if test "$build_old_libs" = yes; then
  50781. + # Deduce the name of the old-style object file.
  50782. + func_lo2o "$file"
  50783. + staticobj=$func_lo2o_result
  50784. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  50785. + fi
  50786. + exit $EXIT_SUCCESS
  50787. ;;
  50788. - esac
  50789. - for pass in $passes; do
  50790. - if test "$linkmode,$pass" = "lib,link" ||
  50791. - test "$linkmode,$pass" = "prog,scan"; then
  50792. - libs="$deplibs"
  50793. - deplibs=
  50794. - fi
  50795. - if test "$linkmode" = prog; then
  50796. - case $pass in
  50797. - dlopen) libs="$dlfiles" ;;
  50798. - dlpreopen) libs="$dlprefiles" ;;
  50799. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  50800. +
  50801. + *)
  50802. + # Figure out destination file name, if it wasn't already specified.
  50803. + if test -n "$destname"; then
  50804. + destfile="$destdir/$destname"
  50805. + else
  50806. + func_basename "$file"
  50807. + destfile="$func_basename_result"
  50808. + destfile="$destdir/$destfile"
  50809. + fi
  50810. +
  50811. + # If the file is missing, and there is a .exe on the end, strip it
  50812. + # because it is most likely a libtool script we actually want to
  50813. + # install
  50814. + stripped_ext=""
  50815. + case $file in
  50816. + *.exe)
  50817. + if test ! -f "$file"; then
  50818. + func_stripname '' '.exe' "$file"
  50819. + file=$func_stripname_result
  50820. + stripped_ext=".exe"
  50821. + fi
  50822. + ;;
  50823. esac
  50824. - fi
  50825. - if test "$pass" = dlopen; then
  50826. - # Collect dlpreopened libraries
  50827. - save_deplibs="$deplibs"
  50828. - deplibs=
  50829. - fi
  50830. - for deplib in $libs; do
  50831. - lib=
  50832. - found=no
  50833. - case $deplib in
  50834. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  50835. - if test "$linkmode,$pass" = "prog,link"; then
  50836. - compile_deplibs="$deplib $compile_deplibs"
  50837. - finalize_deplibs="$deplib $finalize_deplibs"
  50838. - else
  50839. - compiler_flags="$compiler_flags $deplib"
  50840. - fi
  50841. - case $host:$deplib in
  50842. - *-*-dragonfly*:-pthread)
  50843. - # pkgsrc hack to use -pthread in .la file for final linking
  50844. - case $linkmode in
  50845. - lib)
  50846. - deplibs="$deplib $deplibs"
  50847. - test "$pass" = conv && continue
  50848. - newdependency_libs="$deplib $newdependency_libs"
  50849. - ;;
  50850. - prog)
  50851. - if test "$pass" = conv; then
  50852. - deplibs="$deplib $deplibs"
  50853. - continue
  50854. - fi
  50855. - if test "$pass" = scan; then
  50856. - deplibs="$deplib $deplibs"
  50857. +
  50858. + # Do a test to see if this is really a libtool program.
  50859. + case $host in
  50860. + *cygwin* | *mingw*)
  50861. + if func_ltwrapper_executable_p "$file"; then
  50862. + func_ltwrapper_scriptname "$file"
  50863. + wrapper=$func_ltwrapper_scriptname_result
  50864. + else
  50865. + func_stripname '' '.exe' "$file"
  50866. + wrapper=$func_stripname_result
  50867. + fi
  50868. + ;;
  50869. + *)
  50870. + wrapper=$file
  50871. + ;;
  50872. + esac
  50873. + if func_ltwrapper_script_p "$wrapper"; then
  50874. + notinst_deplibs=
  50875. + relink_command=
  50876. +
  50877. + func_source "$wrapper"
  50878. +
  50879. + # Check the variables that should have been set.
  50880. + test -z "$generated_by_libtool_version" && \
  50881. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  50882. +
  50883. + finalize=yes
  50884. + for lib in $notinst_deplibs; do
  50885. + # Check to see that each library is installed.
  50886. + libdir=
  50887. + if test -f "$lib"; then
  50888. + func_source "$lib"
  50889. + fi
  50890. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  50891. + if test -n "$libdir" && test ! -f "$libfile"; then
  50892. + func_warning "\`$lib' has not been installed in \`$libdir'"
  50893. + finalize=no
  50894. + fi
  50895. + done
  50896. +
  50897. + relink_command=
  50898. + func_source "$wrapper"
  50899. +
  50900. + outputname=
  50901. + if test "$fast_install" = no && test -n "$relink_command"; then
  50902. + $opt_dry_run || {
  50903. + if test "$finalize" = yes; then
  50904. + tmpdir=`func_mktempdir`
  50905. + func_basename "$file$stripped_ext"
  50906. + file="$func_basename_result"
  50907. + outputname="$tmpdir/$file"
  50908. + # Replace the output file specification.
  50909. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  50910. +
  50911. + $opt_silent || {
  50912. + func_quote_for_expand "$relink_command"
  50913. + eval "func_echo $func_quote_for_expand_result"
  50914. + }
  50915. + if eval "$relink_command"; then :
  50916. + else
  50917. + func_error "error: relink \`$file' with the above command before installing it"
  50918. + $opt_dry_run || ${RM}r "$tmpdir"
  50919. + continue
  50920. + fi
  50921. + file="$outputname"
  50922. else
  50923. - compile_deplibs="$deplib $compile_deplibs"
  50924. - finalize_deplibs="$deplib $finalize_deplibs"
  50925. + func_warning "cannot relink \`$file'"
  50926. fi
  50927. - ;;
  50928. - esac
  50929. + }
  50930. + else
  50931. + # Install the binary that we compiled earlier.
  50932. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  50933. + fi
  50934. + fi
  50935. +
  50936. + # remove .exe since cygwin /usr/bin/install will append another
  50937. + # one anyway
  50938. + case $install_prog,$host in
  50939. + */usr/bin/install*,*cygwin*)
  50940. + case $file:$destfile in
  50941. + *.exe:*.exe)
  50942. + # this is ok
  50943. + ;;
  50944. + *.exe:*)
  50945. + destfile=$destfile.exe
  50946. + ;;
  50947. + *:*.exe)
  50948. + func_stripname '' '.exe' "$destfile"
  50949. + destfile=$func_stripname_result
  50950. ;;
  50951. esac
  50952. - continue
  50953. ;;
  50954. - -l*)
  50955. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  50956. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  50957. - continue
  50958. + esac
  50959. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  50960. + $opt_dry_run || if test -n "$outputname"; then
  50961. + ${RM}r "$tmpdir"
  50962. + fi
  50963. + ;;
  50964. + esac
  50965. + done
  50966. +
  50967. + for file in $staticlibs; do
  50968. + func_basename "$file"
  50969. + name="$func_basename_result"
  50970. +
  50971. + # Set up the ranlib parameters.
  50972. + oldlib="$destdir/$name"
  50973. +
  50974. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  50975. +
  50976. + if test -n "$stripme" && test -n "$old_striplib"; then
  50977. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  50978. + fi
  50979. +
  50980. + # Do each command in the postinstall commands.
  50981. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  50982. + done
  50983. +
  50984. + test -n "$future_libdirs" && \
  50985. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  50986. +
  50987. + if test -n "$current_libdirs"; then
  50988. + # Maybe just do a dry run.
  50989. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  50990. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  50991. + else
  50992. + exit $EXIT_SUCCESS
  50993. + fi
  50994. +}
  50995. +
  50996. +test "$mode" = install && func_mode_install ${1+"$@"}
  50997. +
  50998. +
  50999. +# func_generate_dlsyms outputname originator pic_p
  51000. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  51001. +# a dlpreopen symbol table.
  51002. +func_generate_dlsyms ()
  51003. +{
  51004. + $opt_debug
  51005. + my_outputname="$1"
  51006. + my_originator="$2"
  51007. + my_pic_p="${3-no}"
  51008. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  51009. + my_dlsyms=
  51010. +
  51011. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51012. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  51013. + my_dlsyms="${my_outputname}S.c"
  51014. + else
  51015. + func_error "not configured to extract global symbols from dlpreopened files"
  51016. + fi
  51017. + fi
  51018. +
  51019. + if test -n "$my_dlsyms"; then
  51020. + case $my_dlsyms in
  51021. + "") ;;
  51022. + *.c)
  51023. + # Discover the nlist of each of the dlfiles.
  51024. + nlist="$output_objdir/${my_outputname}.nm"
  51025. +
  51026. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  51027. +
  51028. + # Parse the name list into a source file.
  51029. + func_verbose "creating $output_objdir/$my_dlsyms"
  51030. +
  51031. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  51032. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  51033. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  51034. +
  51035. +#ifdef __cplusplus
  51036. +extern \"C\" {
  51037. +#endif
  51038. +
  51039. +/* External symbol declarations for the compiler. */\
  51040. +"
  51041. +
  51042. + if test "$dlself" = yes; then
  51043. + func_verbose "generating symbol list for \`$output'"
  51044. +
  51045. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  51046. +
  51047. + # Add our own program objects to the symbol list.
  51048. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51049. + for progfile in $progfiles; do
  51050. + func_verbose "extracting global C symbols from \`$progfile'"
  51051. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  51052. + done
  51053. +
  51054. + if test -n "$exclude_expsyms"; then
  51055. + $opt_dry_run || {
  51056. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  51057. + eval '$MV "$nlist"T "$nlist"'
  51058. + }
  51059. fi
  51060. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  51061. - if test "$linkmode" = lib; then
  51062. - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  51063. - else
  51064. - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  51065. +
  51066. + if test -n "$export_symbols_regex"; then
  51067. + $opt_dry_run || {
  51068. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  51069. + eval '$MV "$nlist"T "$nlist"'
  51070. + }
  51071. fi
  51072. - for searchdir in $searchdirs; do
  51073. - for search_ext in .la $std_shrext .so .a; do
  51074. - # Search the libtool library
  51075. - lib="$searchdir/lib${name}${search_ext}"
  51076. - if test -f "$lib"; then
  51077. - if test "$search_ext" = ".la"; then
  51078. - found=yes
  51079. - else
  51080. - found=no
  51081. - fi
  51082. - break 2
  51083. - fi
  51084. - done
  51085. - done
  51086. - if test "$found" != yes; then
  51087. - # deplib doesn't seem to be a libtool library
  51088. - if test "$linkmode,$pass" = "prog,link"; then
  51089. - compile_deplibs="$deplib $compile_deplibs"
  51090. - finalize_deplibs="$deplib $finalize_deplibs"
  51091. - else
  51092. - deplibs="$deplib $deplibs"
  51093. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  51094. - fi
  51095. - continue
  51096. - else # deplib is a libtool library
  51097. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  51098. - # We need to do some special things here, and not later.
  51099. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51100. - case " $predeps $postdeps " in
  51101. - *" $deplib "*)
  51102. - if (${SED} -e '2q' $lib |
  51103. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  51104. - library_names=
  51105. - old_library=
  51106. - case $lib in
  51107. - */* | *\\*) . $lib ;;
  51108. - *) . ./$lib ;;
  51109. - esac
  51110. - for l in $old_library $library_names; do
  51111. - ll="$l"
  51112. - done
  51113. - if test "X$ll" = "X$old_library" ; then # only static version available
  51114. - found=no
  51115. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  51116. - test "X$ladir" = "X$lib" && ladir="."
  51117. - lib=$ladir/$old_library
  51118. - if test "$linkmode,$pass" = "prog,link"; then
  51119. - compile_deplibs="$deplib $compile_deplibs"
  51120. - finalize_deplibs="$deplib $finalize_deplibs"
  51121. - else
  51122. - deplibs="$deplib $deplibs"
  51123. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  51124. - fi
  51125. - continue
  51126. - fi
  51127. - fi
  51128. +
  51129. + # Prepare the list of exported symbols
  51130. + if test -z "$export_symbols"; then
  51131. + export_symbols="$output_objdir/$outputname.exp"
  51132. + $opt_dry_run || {
  51133. + $RM $export_symbols
  51134. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  51135. + case $host in
  51136. + *cygwin* | *mingw* | *cegcc* )
  51137. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  51138. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  51139. ;;
  51140. - *) ;;
  51141. esac
  51142. - fi
  51143. + }
  51144. + else
  51145. + $opt_dry_run || {
  51146. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  51147. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  51148. + eval '$MV "$nlist"T "$nlist"'
  51149. + case $host in
  51150. + *cygwin | *mingw* | *cegcc* )
  51151. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  51152. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  51153. + ;;
  51154. + esac
  51155. + }
  51156. fi
  51157. - ;; # -l
  51158. - -L*)
  51159. - case $linkmode in
  51160. - lib)
  51161. - deplibs="$deplib $deplibs"
  51162. - test "$pass" = conv && continue
  51163. - newdependency_libs="$deplib $newdependency_libs"
  51164. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  51165. - ;;
  51166. - prog)
  51167. - if test "$pass" = conv; then
  51168. - deplibs="$deplib $deplibs"
  51169. - continue
  51170. - fi
  51171. - if test "$pass" = scan; then
  51172. - deplibs="$deplib $deplibs"
  51173. - else
  51174. - compile_deplibs="$deplib $compile_deplibs"
  51175. - finalize_deplibs="$deplib $finalize_deplibs"
  51176. - fi
  51177. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  51178. - ;;
  51179. - *)
  51180. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  51181. - ;;
  51182. - esac # linkmode
  51183. - continue
  51184. - ;; # -L
  51185. - -R*)
  51186. - if test "$pass" = link; then
  51187. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  51188. - # Make sure the xrpath contains only unique directories.
  51189. - case "$xrpath " in
  51190. - *" $dir "*) ;;
  51191. - *) xrpath="$xrpath $dir" ;;
  51192. - esac
  51193. + fi
  51194. +
  51195. + for dlprefile in $dlprefiles; do
  51196. + func_verbose "extracting global C symbols from \`$dlprefile'"
  51197. + func_basename "$dlprefile"
  51198. + name="$func_basename_result"
  51199. + $opt_dry_run || {
  51200. + eval '$ECHO ": $name " >> "$nlist"'
  51201. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  51202. + }
  51203. + done
  51204. +
  51205. + $opt_dry_run || {
  51206. + # Make sure we have at least an empty file.
  51207. + test -f "$nlist" || : > "$nlist"
  51208. +
  51209. + if test -n "$exclude_expsyms"; then
  51210. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  51211. + $MV "$nlist"T "$nlist"
  51212. fi
  51213. - deplibs="$deplib $deplibs"
  51214. - continue
  51215. - ;;
  51216. - *.la) lib="$deplib" ;;
  51217. - *.$libext)
  51218. - if test "$pass" = conv; then
  51219. - deplibs="$deplib $deplibs"
  51220. - continue
  51221. +
  51222. + # Try sorting and uniquifying the output.
  51223. + if $GREP -v "^: " < "$nlist" |
  51224. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  51225. + sort -k 3
  51226. + else
  51227. + sort +2
  51228. + fi |
  51229. + uniq > "$nlist"S; then
  51230. + :
  51231. + else
  51232. + $GREP -v "^: " < "$nlist" > "$nlist"S
  51233. fi
  51234. - case $linkmode in
  51235. - lib)
  51236. - valid_a_lib=no
  51237. - case $deplibs_check_method in
  51238. - match_pattern*)
  51239. - set dummy $deplibs_check_method
  51240. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  51241. - if eval $echo \"$deplib\" 2>/dev/null \
  51242. - | $SED 10q \
  51243. - | $EGREP "$match_pattern_regex" > /dev/null; then
  51244. - valid_a_lib=yes
  51245. - fi
  51246. - ;;
  51247. - pass_all)
  51248. - valid_a_lib=yes
  51249. - ;;
  51250. - esac
  51251. - if test "$valid_a_lib" != yes; then
  51252. - $echo
  51253. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  51254. - $echo "*** I have the capability to make that library automatically link in when"
  51255. - $echo "*** you link to this library. But I can only do this if you have a"
  51256. - $echo "*** shared version of the library, which you do not appear to have"
  51257. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  51258. - $echo "*** that it is just a static archive that I should not used here."
  51259. - else
  51260. - $echo
  51261. - $echo "*** Warning: Linking the shared library $output against the"
  51262. - $echo "*** static library $deplib is not portable!"
  51263. - deplibs="$deplib $deplibs"
  51264. - fi
  51265. - continue
  51266. - ;;
  51267. - prog)
  51268. - if test "$pass" != link; then
  51269. - deplibs="$deplib $deplibs"
  51270. - else
  51271. - compile_deplibs="$deplib $compile_deplibs"
  51272. - finalize_deplibs="$deplib $finalize_deplibs"
  51273. - fi
  51274. - continue
  51275. - ;;
  51276. - esac # linkmode
  51277. - ;; # *.$libext
  51278. - *.lo | *.$objext)
  51279. - if test "$pass" = conv; then
  51280. - deplibs="$deplib $deplibs"
  51281. - elif test "$linkmode" = prog; then
  51282. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  51283. - # If there is no dlopen support or we're linking statically,
  51284. - # we need to preload.
  51285. - newdlprefiles="$newdlprefiles $deplib"
  51286. - compile_deplibs="$deplib $compile_deplibs"
  51287. - finalize_deplibs="$deplib $finalize_deplibs"
  51288. - else
  51289. - newdlfiles="$newdlfiles $deplib"
  51290. - fi
  51291. +
  51292. + if test -f "$nlist"S; then
  51293. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  51294. + else
  51295. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  51296. fi
  51297. - continue
  51298. - ;;
  51299. - %DEPLIBS%)
  51300. - alldeplibs=yes
  51301. - continue
  51302. - ;;
  51303. - esac # case $deplib
  51304. - if test "$found" = yes || test -f "$lib"; then :
  51305. - else
  51306. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  51307. - exit $EXIT_FAILURE
  51308. - fi
  51309. - # Check to see that this really is a libtool archive.
  51310. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  51311. - else
  51312. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  51313. - exit $EXIT_FAILURE
  51314. - fi
  51315. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51316. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  51317. - test "X$ladir" = "X$lib" && ladir="."
  51318. +/* The mapping between symbol names and symbols. */
  51319. +typedef struct {
  51320. + const char *name;
  51321. + void *address;
  51322. +} lt_dlsymlist;
  51323. +"
  51324. + case $host in
  51325. + *cygwin* | *mingw* | *cegcc* )
  51326. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51327. +/* DATA imports from DLLs on WIN32 con't be const, because
  51328. + runtime relocations are performed -- see ld's documentation
  51329. + on pseudo-relocs. */"
  51330. + lt_dlsym_const= ;;
  51331. + *osf5*)
  51332. + echo >> "$output_objdir/$my_dlsyms" "\
  51333. +/* This system does not cope well with relocations in const data */"
  51334. + lt_dlsym_const= ;;
  51335. + *)
  51336. + lt_dlsym_const=const ;;
  51337. + esac
  51338. - dlname=
  51339. - dlopen=
  51340. - dlpreopen=
  51341. - libdir=
  51342. - library_names=
  51343. - old_library=
  51344. - # If the library was installed with an old release of libtool,
  51345. - # it will not redefine variables installed, or shouldnotlink
  51346. - installed=yes
  51347. - shouldnotlink=no
  51348. - avoidtemprpath=
  51349. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51350. +extern $lt_dlsym_const lt_dlsymlist
  51351. +lt_${my_prefix}_LTX_preloaded_symbols[];
  51352. +$lt_dlsym_const lt_dlsymlist
  51353. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  51354. +{\
  51355. + { \"$my_originator\", (void *) 0 },"
  51356. + case $need_lib_prefix in
  51357. + no)
  51358. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  51359. + ;;
  51360. + *)
  51361. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  51362. + ;;
  51363. + esac
  51364. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51365. + {0, (void *) 0}
  51366. +};
  51367. - # Read the .la file
  51368. - case $lib in
  51369. - */* | *\\*) . $lib ;;
  51370. - *) . ./$lib ;;
  51371. - esac
  51372. +/* This works around a problem in FreeBSD linker */
  51373. +#ifdef FREEBSD_WORKAROUND
  51374. +static const void *lt_preloaded_setup() {
  51375. + return lt_${my_prefix}_LTX_preloaded_symbols;
  51376. +}
  51377. +#endif
  51378. - if test "$linkmode,$pass" = "lib,link" ||
  51379. - test "$linkmode,$pass" = "prog,scan" ||
  51380. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  51381. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  51382. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  51383. - fi
  51384. +#ifdef __cplusplus
  51385. +}
  51386. +#endif\
  51387. +"
  51388. + } # !$opt_dry_run
  51389. - if test "$pass" = conv; then
  51390. - # Only check for convenience libraries
  51391. - deplibs="$lib $deplibs"
  51392. - if test -z "$libdir"; then
  51393. - if test -z "$old_library"; then
  51394. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  51395. - exit $EXIT_FAILURE
  51396. + pic_flag_for_symtable=
  51397. + case "$compile_command " in
  51398. + *" -static "*) ;;
  51399. + *)
  51400. + case $host in
  51401. + # compiling the symbol table file with pic_flag works around
  51402. + # a FreeBSD bug that causes programs to crash when -lm is
  51403. + # linked before any other PIC object. But we must not use
  51404. + # pic_flag when linking with -static. The problem exists in
  51405. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  51406. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  51407. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  51408. + *-*-hpux*)
  51409. + pic_flag_for_symtable=" $pic_flag" ;;
  51410. + *)
  51411. + if test "X$my_pic_p" != Xno; then
  51412. + pic_flag_for_symtable=" $pic_flag"
  51413. fi
  51414. - # It is a libtool convenience library, so add in its objects.
  51415. - convenience="$convenience $ladir/$objdir/$old_library"
  51416. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  51417. - tmp_libs=
  51418. - for deplib in $dependency_libs; do
  51419. - deplibs="$deplib $deplibs"
  51420. - if test "X$duplicate_deps" = "Xyes" ; then
  51421. - case "$tmp_libs " in
  51422. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51423. - esac
  51424. - fi
  51425. - tmp_libs="$tmp_libs $deplib"
  51426. - done
  51427. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  51428. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  51429. - exit $EXIT_FAILURE
  51430. - fi
  51431. - continue
  51432. - fi # $pass = conv
  51433. + ;;
  51434. + esac
  51435. + ;;
  51436. + esac
  51437. + symtab_cflags=
  51438. + for arg in $LTCFLAGS; do
  51439. + case $arg in
  51440. + -pie | -fpie | -fPIE) ;;
  51441. + *) symtab_cflags="$symtab_cflags $arg" ;;
  51442. + esac
  51443. + done
  51444. + # Now compile the dynamic symbol file.
  51445. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  51446. - # Get the name of the library we link against.
  51447. - linklib=
  51448. - for l in $old_library $library_names; do
  51449. - linklib="$l"
  51450. - done
  51451. - if test -z "$linklib"; then
  51452. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  51453. - exit $EXIT_FAILURE
  51454. - fi
  51455. + # Clean up the generated files.
  51456. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  51457. - # This library was specified with -dlopen.
  51458. - if test "$pass" = dlopen; then
  51459. - if test -z "$libdir"; then
  51460. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  51461. - exit $EXIT_FAILURE
  51462. - fi
  51463. - if test -z "$dlname" ||
  51464. - test "$dlopen_support" != yes ||
  51465. - test "$build_libtool_libs" = no; then
  51466. - # If there is no dlname, no dlopen support or we're linking
  51467. - # statically, we need to preload. We also need to preload any
  51468. - # dependent libraries so libltdl's deplib preloader doesn't
  51469. - # bomb out in the load deplibs phase.
  51470. - dlprefiles="$dlprefiles $lib $dependency_libs"
  51471. + # Transform the symbol file into the correct name.
  51472. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  51473. + case $host in
  51474. + *cygwin* | *mingw* | *cegcc* )
  51475. + if test -f "$output_objdir/$my_outputname.def"; then
  51476. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  51477. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  51478. else
  51479. - newdlfiles="$newdlfiles $lib"
  51480. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51481. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51482. fi
  51483. - continue
  51484. - fi # $pass = dlopen
  51485. -
  51486. - # We need an absolute path.
  51487. - case $ladir in
  51488. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  51489. + ;;
  51490. *)
  51491. - abs_ladir=`cd "$ladir" && pwd`
  51492. - if test -z "$abs_ladir"; then
  51493. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  51494. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  51495. - abs_ladir="$ladir"
  51496. - fi
  51497. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51498. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51499. ;;
  51500. esac
  51501. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  51502. -
  51503. - # Find the relevant object directory and library name.
  51504. - if test "X$installed" = Xyes; then
  51505. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51506. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  51507. - dir="$ladir"
  51508. - absdir="$abs_ladir"
  51509. - libdir="$abs_ladir"
  51510. - else
  51511. - dir="$libdir"
  51512. - absdir="$libdir"
  51513. - fi
  51514. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  51515. - else
  51516. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51517. - dir="$ladir"
  51518. - absdir="$abs_ladir"
  51519. - # Remove this search path later
  51520. - notinst_path="$notinst_path $abs_ladir"
  51521. - else
  51522. - dir="$ladir/$objdir"
  51523. - absdir="$abs_ladir/$objdir"
  51524. - # Remove this search path later
  51525. - notinst_path="$notinst_path $abs_ladir"
  51526. - fi
  51527. - fi # $installed = yes
  51528. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  51529. + ;;
  51530. + *)
  51531. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  51532. + ;;
  51533. + esac
  51534. + else
  51535. + # We keep going just in case the user didn't refer to
  51536. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  51537. + # really was required.
  51538. +
  51539. + # Nullify the symbol file.
  51540. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  51541. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  51542. + fi
  51543. +}
  51544. - # This library was specified with -dlpreopen.
  51545. - if test "$pass" = dlpreopen; then
  51546. - if test -z "$libdir"; then
  51547. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  51548. - exit $EXIT_FAILURE
  51549. - fi
  51550. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  51551. - # are required to link).
  51552. - if test -n "$old_library"; then
  51553. - newdlprefiles="$newdlprefiles $dir/$old_library"
  51554. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  51555. - elif test -n "$dlname"; then
  51556. - newdlprefiles="$newdlprefiles $dir/$dlname"
  51557. - else
  51558. - newdlprefiles="$newdlprefiles $dir/$linklib"
  51559. - fi
  51560. - fi # $pass = dlpreopen
  51561. -
  51562. - if test -z "$libdir"; then
  51563. - # Link the convenience library
  51564. - if test "$linkmode" = lib; then
  51565. - deplibs="$dir/$old_library $deplibs"
  51566. - elif test "$linkmode,$pass" = "prog,link"; then
  51567. - compile_deplibs="$dir/$old_library $compile_deplibs"
  51568. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  51569. - else
  51570. - deplibs="$lib $deplibs" # used for prog,scan pass
  51571. - fi
  51572. - continue
  51573. - fi
  51574. +# func_win32_libid arg
  51575. +# return the library type of file 'arg'
  51576. +#
  51577. +# Need a lot of goo to handle *both* DLLs and import libs
  51578. +# Has to be a shell function in order to 'eat' the argument
  51579. +# that is supplied when $file_magic_command is called.
  51580. +func_win32_libid ()
  51581. +{
  51582. + $opt_debug
  51583. + win32_libid_type="unknown"
  51584. + win32_fileres=`file -L $1 2>/dev/null`
  51585. + case $win32_fileres in
  51586. + *ar\ archive\ import\ library*) # definitely import
  51587. + win32_libid_type="x86 archive import"
  51588. + ;;
  51589. + *ar\ archive*) # could be an import, or static
  51590. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  51591. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  51592. + win32_nmres=`eval $NM -f posix -A $1 |
  51593. + $SED -n -e '
  51594. + 1,100{
  51595. + / I /{
  51596. + s,.*,import,
  51597. + p
  51598. + q
  51599. + }
  51600. + }'`
  51601. + case $win32_nmres in
  51602. + import*) win32_libid_type="x86 archive import";;
  51603. + *) win32_libid_type="x86 archive static";;
  51604. + esac
  51605. + fi
  51606. + ;;
  51607. + *DLL*)
  51608. + win32_libid_type="x86 DLL"
  51609. + ;;
  51610. + *executable*) # but shell scripts are "executable" too...
  51611. + case $win32_fileres in
  51612. + *MS\ Windows\ PE\ Intel*)
  51613. + win32_libid_type="x86 DLL"
  51614. + ;;
  51615. + esac
  51616. + ;;
  51617. + esac
  51618. + $ECHO "$win32_libid_type"
  51619. +}
  51620. - if test "$linkmode" = prog && test "$pass" != link; then
  51621. - newlib_search_path="$newlib_search_path $ladir"
  51622. - deplibs="$lib $deplibs"
  51623. - linkalldeplibs=no
  51624. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  51625. - test "$build_libtool_libs" = no; then
  51626. - linkalldeplibs=yes
  51627. - fi
  51628. +# func_extract_an_archive dir oldlib
  51629. +func_extract_an_archive ()
  51630. +{
  51631. + $opt_debug
  51632. + f_ex_an_ar_dir="$1"; shift
  51633. + f_ex_an_ar_oldlib="$1"
  51634. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  51635. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  51636. + :
  51637. + else
  51638. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  51639. + fi
  51640. +}
  51641. - tmp_libs=
  51642. - for deplib in $dependency_libs; do
  51643. - case $deplib in
  51644. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  51645. - esac
  51646. - # Need to link against all dependency_libs?
  51647. - if test "$linkalldeplibs" = yes; then
  51648. - deplibs="$deplib $deplibs"
  51649. - else
  51650. - # Need to hardcode shared library paths
  51651. - # or/and link against static libraries
  51652. - newdependency_libs="$deplib $newdependency_libs"
  51653. - fi
  51654. - if test "X$duplicate_deps" = "Xyes" ; then
  51655. - case "$tmp_libs " in
  51656. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51657. - esac
  51658. - fi
  51659. - tmp_libs="$tmp_libs $deplib"
  51660. - done # for deplib
  51661. - continue
  51662. - fi # $linkmode = prog...
  51663. - if test "$linkmode,$pass" = "prog,link"; then
  51664. - if test -n "$library_names" &&
  51665. - { { test "$prefer_static_libs" = no ||
  51666. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  51667. - test -z "$old_library"; }; then
  51668. - # We need to hardcode the library path
  51669. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  51670. - # Make sure the rpath contains only unique directories.
  51671. - case "$temp_rpath " in
  51672. - *" $dir "*) ;;
  51673. - *" $absdir "*) ;;
  51674. - *) temp_rpath="$temp_rpath $absdir" ;;
  51675. - esac
  51676. - fi
  51677. +# func_extract_archives gentop oldlib ...
  51678. +func_extract_archives ()
  51679. +{
  51680. + $opt_debug
  51681. + my_gentop="$1"; shift
  51682. + my_oldlibs=${1+"$@"}
  51683. + my_oldobjs=""
  51684. + my_xlib=""
  51685. + my_xabs=""
  51686. + my_xdir=""
  51687. - # Hardcode the library path.
  51688. - # Skip directories that are in the system default run-time
  51689. - # search path.
  51690. - case " $sys_lib_dlsearch_path " in
  51691. - *" $absdir "*) ;;
  51692. - *)
  51693. - case "$compile_rpath " in
  51694. - *" $absdir "*) ;;
  51695. - *) compile_rpath="$compile_rpath $absdir"
  51696. - esac
  51697. - ;;
  51698. - esac
  51699. - case " $sys_lib_dlsearch_path " in
  51700. - *" $libdir "*) ;;
  51701. - *)
  51702. - case "$finalize_rpath " in
  51703. - *" $libdir "*) ;;
  51704. - *) finalize_rpath="$finalize_rpath $libdir"
  51705. - esac
  51706. - ;;
  51707. - esac
  51708. - fi # $linkmode,$pass = prog,link...
  51709. + for my_xlib in $my_oldlibs; do
  51710. + # Extract the objects.
  51711. + case $my_xlib in
  51712. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  51713. + *) my_xabs=`pwd`"/$my_xlib" ;;
  51714. + esac
  51715. + func_basename "$my_xlib"
  51716. + my_xlib="$func_basename_result"
  51717. + my_xlib_u=$my_xlib
  51718. + while :; do
  51719. + case " $extracted_archives " in
  51720. + *" $my_xlib_u "*)
  51721. + func_arith $extracted_serial + 1
  51722. + extracted_serial=$func_arith_result
  51723. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  51724. + *) break ;;
  51725. + esac
  51726. + done
  51727. + extracted_archives="$extracted_archives $my_xlib_u"
  51728. + my_xdir="$my_gentop/$my_xlib_u"
  51729. - if test "$alldeplibs" = yes &&
  51730. - { test "$deplibs_check_method" = pass_all ||
  51731. - { test "$build_libtool_libs" = yes &&
  51732. - test -n "$library_names"; }; }; then
  51733. - # We only need to search for static libraries
  51734. - continue
  51735. - fi
  51736. - fi
  51737. + func_mkdir_p "$my_xdir"
  51738. - link_static=no # Whether the deplib will be linked statically
  51739. - use_static_libs=$prefer_static_libs
  51740. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  51741. - use_static_libs=no
  51742. - fi
  51743. - if test -n "$library_names" &&
  51744. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  51745. - if test "$installed" = no; then
  51746. - notinst_deplibs="$notinst_deplibs $lib"
  51747. - need_relink=yes
  51748. - fi
  51749. - # This is a shared library
  51750. + case $host in
  51751. + *-darwin*)
  51752. + func_verbose "Extracting $my_xabs"
  51753. + # Do not bother doing anything if just a dry run
  51754. + $opt_dry_run || {
  51755. + darwin_orig_dir=`pwd`
  51756. + cd $my_xdir || exit $?
  51757. + darwin_archive=$my_xabs
  51758. + darwin_curdir=`pwd`
  51759. + darwin_base_archive=`basename "$darwin_archive"`
  51760. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  51761. + if test -n "$darwin_arches"; then
  51762. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  51763. + darwin_arch=
  51764. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  51765. + for darwin_arch in $darwin_arches ; do
  51766. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  51767. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  51768. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  51769. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  51770. + cd "$darwin_curdir"
  51771. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  51772. + done # $darwin_arches
  51773. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  51774. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  51775. + darwin_file=
  51776. + darwin_files=
  51777. + for darwin_file in $darwin_filelist; do
  51778. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  51779. + $LIPO -create -output "$darwin_file" $darwin_files
  51780. + done # $darwin_filelist
  51781. + $RM -rf unfat-$$
  51782. + cd "$darwin_orig_dir"
  51783. + else
  51784. + cd $darwin_orig_dir
  51785. + func_extract_an_archive "$my_xdir" "$my_xabs"
  51786. + fi # $darwin_arches
  51787. + } # !$opt_dry_run
  51788. + ;;
  51789. + *)
  51790. + func_extract_an_archive "$my_xdir" "$my_xabs"
  51791. + ;;
  51792. + esac
  51793. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  51794. + done
  51795. - # Warn about portability, can't link against -module's on
  51796. - # some systems (darwin)
  51797. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  51798. - $echo
  51799. - if test "$linkmode" = prog; then
  51800. - $echo "*** Warning: Linking the executable $output against the loadable module"
  51801. - else
  51802. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  51803. - fi
  51804. - $echo "*** $linklib is not portable!"
  51805. - fi
  51806. - if test "$linkmode" = lib &&
  51807. - test "$hardcode_into_libs" = yes; then
  51808. - # Hardcode the library path.
  51809. - # Skip directories that are in the system default run-time
  51810. - # search path.
  51811. - case " $sys_lib_dlsearch_path " in
  51812. - *" $absdir "*) ;;
  51813. - *)
  51814. - case "$compile_rpath " in
  51815. - *" $absdir "*) ;;
  51816. - *) compile_rpath="$compile_rpath $absdir"
  51817. - esac
  51818. - ;;
  51819. - esac
  51820. - case " $sys_lib_dlsearch_path " in
  51821. - *" $libdir "*) ;;
  51822. - *)
  51823. - case "$finalize_rpath " in
  51824. - *" $libdir "*) ;;
  51825. - *) finalize_rpath="$finalize_rpath $libdir"
  51826. - esac
  51827. - ;;
  51828. - esac
  51829. - fi
  51830. + func_extract_archives_result="$my_oldobjs"
  51831. +}
  51832. - if test -n "$old_archive_from_expsyms_cmds"; then
  51833. - # figure out the soname
  51834. - set dummy $library_names
  51835. - realname="$2"
  51836. - shift; shift
  51837. - libname=`eval \\$echo \"$libname_spec\"`
  51838. - # use dlname if we got it. it's perfectly good, no?
  51839. - if test -n "$dlname"; then
  51840. - soname="$dlname"
  51841. - elif test -n "$soname_spec"; then
  51842. - # bleh windows
  51843. - case $host in
  51844. - *cygwin* | mingw*)
  51845. - major=`expr $current - $age`
  51846. - versuffix="-$major"
  51847. - ;;
  51848. - esac
  51849. - eval soname=\"$soname_spec\"
  51850. - else
  51851. - soname="$realname"
  51852. - fi
  51853. - # Make a new name for the extract_expsyms_cmds to use
  51854. - soroot="$soname"
  51855. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  51856. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  51857. - # If the library has no export list, then create one now
  51858. - if test -f "$output_objdir/$soname-def"; then :
  51859. - else
  51860. - $show "extracting exported symbol list from \`$soname'"
  51861. - save_ifs="$IFS"; IFS='~'
  51862. - cmds=$extract_expsyms_cmds
  51863. - for cmd in $cmds; do
  51864. - IFS="$save_ifs"
  51865. - eval cmd=\"$cmd\"
  51866. - $show "$cmd"
  51867. - $run eval "$cmd" || exit $?
  51868. - done
  51869. - IFS="$save_ifs"
  51870. - fi
  51871. +# func_emit_wrapper_part1 [arg=no]
  51872. +#
  51873. +# Emit the first part of a libtool wrapper script on stdout.
  51874. +# For more information, see the description associated with
  51875. +# func_emit_wrapper(), below.
  51876. +func_emit_wrapper_part1 ()
  51877. +{
  51878. + func_emit_wrapper_part1_arg1=no
  51879. + if test -n "$1" ; then
  51880. + func_emit_wrapper_part1_arg1=$1
  51881. + fi
  51882. - # Create $newlib
  51883. - if test -f "$output_objdir/$newlib"; then :; else
  51884. - $show "generating import library for \`$soname'"
  51885. - save_ifs="$IFS"; IFS='~'
  51886. - cmds=$old_archive_from_expsyms_cmds
  51887. - for cmd in $cmds; do
  51888. - IFS="$save_ifs"
  51889. - eval cmd=\"$cmd\"
  51890. - $show "$cmd"
  51891. - $run eval "$cmd" || exit $?
  51892. - done
  51893. - IFS="$save_ifs"
  51894. - fi
  51895. - # make sure the library variables are pointing to the new library
  51896. - dir=$output_objdir
  51897. - linklib=$newlib
  51898. - fi # test -n "$old_archive_from_expsyms_cmds"
  51899. + $ECHO "\
  51900. +#! $SHELL
  51901. - if test "$linkmode" = prog || test "$mode" != relink; then
  51902. - add_shlibpath=
  51903. - add_dir=
  51904. - add=
  51905. - lib_linked=yes
  51906. - case $hardcode_action in
  51907. - immediate | unsupported)
  51908. - if test "$hardcode_direct" = no; then
  51909. - add="$dir/$linklib"
  51910. - case $host in
  51911. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  51912. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  51913. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  51914. - *-*-unixware7*) add_dir="-L$dir" ;;
  51915. - *-*-darwin* )
  51916. - # if the lib is a module then we can not link against
  51917. - # it, someone is ignoring the new warnings I added
  51918. - if /usr/bin/file -L $add 2> /dev/null |
  51919. - $EGREP ": [^:]* bundle" >/dev/null ; then
  51920. - $echo "** Warning, lib $linklib is a module, not a shared library"
  51921. - if test -z "$old_library" ; then
  51922. - $echo
  51923. - $echo "** And there doesn't seem to be a static archive available"
  51924. - $echo "** The link will probably fail, sorry"
  51925. - else
  51926. - add="$dir/$old_library"
  51927. - fi
  51928. - fi
  51929. - esac
  51930. - elif test "$hardcode_minus_L" = no; then
  51931. - case $host in
  51932. - *-*-sunos*) add_shlibpath="$dir" ;;
  51933. - esac
  51934. - add_dir="-L$dir"
  51935. - add="-l$name"
  51936. - elif test "$hardcode_shlibpath_var" = no; then
  51937. - add_shlibpath="$dir"
  51938. - add="-l$name"
  51939. - else
  51940. - lib_linked=no
  51941. - fi
  51942. - ;;
  51943. - relink)
  51944. - if test "$hardcode_direct" = yes; then
  51945. - add="$dir/$linklib"
  51946. - elif test "$hardcode_minus_L" = yes; then
  51947. - add_dir="-L$dir"
  51948. - # Try looking first in the location we're being installed to.
  51949. - if test -n "$inst_prefix_dir"; then
  51950. - case $libdir in
  51951. - [\\/]*)
  51952. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51953. - ;;
  51954. - esac
  51955. - fi
  51956. - add="-l$name"
  51957. - elif test "$hardcode_shlibpath_var" = yes; then
  51958. - add_shlibpath="$dir"
  51959. - add="-l$name"
  51960. - else
  51961. - lib_linked=no
  51962. - fi
  51963. - ;;
  51964. - *) lib_linked=no ;;
  51965. - esac
  51966. +# $output - temporary wrapper script for $objdir/$outputname
  51967. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  51968. +#
  51969. +# The $output program cannot be directly executed until all the libtool
  51970. +# libraries that it depends on are installed.
  51971. +#
  51972. +# This wrapper script should never be moved out of the build directory.
  51973. +# If it is, it will not operate correctly.
  51974. - if test "$lib_linked" != yes; then
  51975. - $echo "$modename: configuration error: unsupported hardcode properties"
  51976. - exit $EXIT_FAILURE
  51977. - fi
  51978. +# Sed substitution that helps us do robust quoting. It backslashifies
  51979. +# metacharacters that are still active within double-quoted strings.
  51980. +Xsed='${SED} -e 1s/^X//'
  51981. +sed_quote_subst='$sed_quote_subst'
  51982. - if test -n "$add_shlibpath"; then
  51983. - case :$compile_shlibpath: in
  51984. - *":$add_shlibpath:"*) ;;
  51985. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  51986. - esac
  51987. - fi
  51988. - if test "$linkmode" = prog; then
  51989. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  51990. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  51991. - else
  51992. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51993. - test -n "$add" && deplibs="$add $deplibs"
  51994. - if test "$hardcode_direct" != yes && \
  51995. - test "$hardcode_minus_L" != yes && \
  51996. - test "$hardcode_shlibpath_var" = yes; then
  51997. - case :$finalize_shlibpath: in
  51998. - *":$libdir:"*) ;;
  51999. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  52000. - esac
  52001. - fi
  52002. - fi
  52003. - fi
  52004. +# Be Bourne compatible
  52005. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  52006. + emulate sh
  52007. + NULLCMD=:
  52008. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  52009. + # is contrary to our usage. Disable this feature.
  52010. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  52011. + setopt NO_GLOB_SUBST
  52012. +else
  52013. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  52014. +fi
  52015. +BIN_SH=xpg4; export BIN_SH # for Tru64
  52016. +DUALCASE=1; export DUALCASE # for MKS sh
  52017. - if test "$linkmode" = prog || test "$mode" = relink; then
  52018. - add_shlibpath=
  52019. - add_dir=
  52020. - add=
  52021. - # Finalize command for both is simple: just hardcode it.
  52022. - if test "$hardcode_direct" = yes; then
  52023. - add="$libdir/$linklib"
  52024. - elif test "$hardcode_minus_L" = yes; then
  52025. - add_dir="-L$libdir"
  52026. - add="-l$name"
  52027. - elif test "$hardcode_shlibpath_var" = yes; then
  52028. - case :$finalize_shlibpath: in
  52029. - *":$libdir:"*) ;;
  52030. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  52031. - esac
  52032. - add="-l$name"
  52033. - elif test "$hardcode_automatic" = yes; then
  52034. - if test -n "$inst_prefix_dir" &&
  52035. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  52036. - add="$inst_prefix_dir$libdir/$linklib"
  52037. - else
  52038. - add="$libdir/$linklib"
  52039. - fi
  52040. - else
  52041. - # We cannot seem to hardcode it, guess we'll fake it.
  52042. - add_dir="-L$libdir"
  52043. - # Try looking first in the location we're being installed to.
  52044. - if test -n "$inst_prefix_dir"; then
  52045. - case $libdir in
  52046. - [\\/]*)
  52047. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  52048. - ;;
  52049. - esac
  52050. - fi
  52051. - add="-l$name"
  52052. - fi
  52053. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  52054. +# if CDPATH is set.
  52055. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  52056. - if test "$linkmode" = prog; then
  52057. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  52058. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  52059. - else
  52060. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  52061. - test -n "$add" && deplibs="$add $deplibs"
  52062. - fi
  52063. - fi
  52064. - elif test "$linkmode" = prog; then
  52065. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  52066. - # is not unsupported. This is valid on all known static and
  52067. - # shared platforms.
  52068. - if test "$hardcode_direct" != unsupported; then
  52069. - test -n "$old_library" && linklib="$old_library"
  52070. - compile_deplibs="$dir/$linklib $compile_deplibs"
  52071. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  52072. - else
  52073. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  52074. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  52075. - fi
  52076. - elif test "$build_libtool_libs" = yes; then
  52077. - # Not a shared library
  52078. - if test "$deplibs_check_method" != pass_all; then
  52079. - # We're trying link a shared library against a static one
  52080. - # but the system doesn't support it.
  52081. +relink_command=\"$relink_command\"
  52082. - # Just print a warning and add the library to dependency_libs so
  52083. - # that the program can be linked against the static library.
  52084. - $echo
  52085. - $echo "*** Warning: This system can not link to static lib archive $lib."
  52086. - $echo "*** I have the capability to make that library automatically link in when"
  52087. - $echo "*** you link to this library. But I can only do this if you have a"
  52088. - $echo "*** shared version of the library, which you do not appear to have."
  52089. - if test "$module" = yes; then
  52090. - $echo "*** But as you try to build a module library, libtool will still create "
  52091. - $echo "*** a static module, that should work as long as the dlopening application"
  52092. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  52093. - if test -z "$global_symbol_pipe"; then
  52094. - $echo
  52095. - $echo "*** However, this would only work if libtool was able to extract symbol"
  52096. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  52097. - $echo "*** not find such a program. So, this module is probably useless."
  52098. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  52099. - fi
  52100. - if test "$build_old_libs" = no; then
  52101. - build_libtool_libs=module
  52102. - build_old_libs=yes
  52103. - else
  52104. - build_libtool_libs=no
  52105. - fi
  52106. - fi
  52107. - else
  52108. - deplibs="$dir/$old_library $deplibs"
  52109. - link_static=yes
  52110. - fi
  52111. - fi # link shared/static library?
  52112. +# This environment variable determines our operation mode.
  52113. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  52114. + # install mode needs the following variables:
  52115. + generated_by_libtool_version='$macro_version'
  52116. + notinst_deplibs='$notinst_deplibs'
  52117. +else
  52118. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  52119. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52120. + ECHO=\"$qecho\"
  52121. + file=\"\$0\"
  52122. + # Make sure echo works.
  52123. + if test \"X\$1\" = X--no-reexec; then
  52124. + # Discard the --no-reexec flag, and continue.
  52125. + shift
  52126. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  52127. + # Yippee, \$ECHO works!
  52128. + :
  52129. + else
  52130. + # Restart under the correct shell, and then maybe \$ECHO will work.
  52131. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  52132. + fi
  52133. + fi\
  52134. +"
  52135. + $ECHO "\
  52136. - if test "$linkmode" = lib; then
  52137. - if test -n "$dependency_libs" &&
  52138. - { test "$hardcode_into_libs" != yes ||
  52139. - test "$build_old_libs" = yes ||
  52140. - test "$link_static" = yes; }; then
  52141. - # Extract -R from dependency_libs
  52142. - temp_deplibs=
  52143. - for libdir in $dependency_libs; do
  52144. - case $libdir in
  52145. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  52146. - case " $xrpath " in
  52147. - *" $temp_xrpath "*) ;;
  52148. - *) xrpath="$xrpath $temp_xrpath";;
  52149. - esac;;
  52150. - *) temp_deplibs="$temp_deplibs $libdir";;
  52151. - esac
  52152. - done
  52153. - dependency_libs="$temp_deplibs"
  52154. - fi
  52155. + # Find the directory that this script lives in.
  52156. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  52157. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  52158. - newlib_search_path="$newlib_search_path $absdir"
  52159. - # Link against this library
  52160. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  52161. - # ... and its dependency_libs
  52162. - tmp_libs=
  52163. - for deplib in $dependency_libs; do
  52164. - newdependency_libs="$deplib $newdependency_libs"
  52165. - if test "X$duplicate_deps" = "Xyes" ; then
  52166. - case "$tmp_libs " in
  52167. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  52168. - esac
  52169. - fi
  52170. - tmp_libs="$tmp_libs $deplib"
  52171. - done
  52172. + # Follow symbolic links until we get to the real thisdir.
  52173. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  52174. + while test -n \"\$file\"; do
  52175. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  52176. - if test "$link_all_deplibs" != no; then
  52177. - # Add the search paths of all dependency libraries
  52178. - for deplib in $dependency_libs; do
  52179. - case $deplib in
  52180. - -L*) path="$deplib" ;;
  52181. - *.la)
  52182. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  52183. - test "X$dir" = "X$deplib" && dir="."
  52184. - # We need an absolute path.
  52185. - case $dir in
  52186. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  52187. - *)
  52188. - absdir=`cd "$dir" && pwd`
  52189. - if test -z "$absdir"; then
  52190. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  52191. - absdir="$dir"
  52192. - fi
  52193. - ;;
  52194. - esac
  52195. - if grep "^installed=no" $deplib > /dev/null; then
  52196. - path="$absdir/$objdir"
  52197. - else
  52198. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  52199. - if test -z "$libdir"; then
  52200. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  52201. - exit $EXIT_FAILURE
  52202. - fi
  52203. - if test "$absdir" != "$libdir"; then
  52204. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  52205. - fi
  52206. - path="$absdir"
  52207. - fi
  52208. - depdepl=
  52209. - case $host in
  52210. - *-*-darwin*)
  52211. - # we do not want to link against static libs,
  52212. - # but need to link against shared
  52213. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  52214. - eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  52215. - if test -n "$deplibrary_names" ; then
  52216. - for tmp in $deplibrary_names ; do
  52217. - depdepl=$tmp
  52218. - done
  52219. - if test -f "$deplibdir/$depdepl" ; then
  52220. - depdepl="$deplibdir/$depdepl"
  52221. - elif test -f "$path/$depdepl" ; then
  52222. - depdepl="$path/$depdepl"
  52223. - else
  52224. - # Can't find it, oh well...
  52225. - depdepl=
  52226. - fi
  52227. - # do not add paths which are already there
  52228. - case " $newlib_search_path " in
  52229. - *" $path "*) ;;
  52230. - *) newlib_search_path="$newlib_search_path $path";;
  52231. - esac
  52232. - fi
  52233. - path=""
  52234. - ;;
  52235. - *)
  52236. - path="-L$path"
  52237. - ;;
  52238. - esac
  52239. - ;;
  52240. - -l*)
  52241. - case $host in
  52242. - *-*-darwin*)
  52243. - # Again, we only want to link against shared libraries
  52244. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  52245. - for tmp in $newlib_search_path ; do
  52246. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  52247. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  52248. - break
  52249. - fi
  52250. - done
  52251. - path=""
  52252. - ;;
  52253. - *) continue ;;
  52254. - esac
  52255. - ;;
  52256. - *) continue ;;
  52257. - esac
  52258. - case " $deplibs " in
  52259. - *" $path "*) ;;
  52260. - *) deplibs="$path $deplibs" ;;
  52261. - esac
  52262. - case " $deplibs " in
  52263. - *" $depdepl "*) ;;
  52264. - *) deplibs="$depdepl $deplibs" ;;
  52265. - esac
  52266. - done
  52267. - fi # link_all_deplibs != no
  52268. - fi # linkmode = lib
  52269. - done # for deplib in $libs
  52270. - dependency_libs="$newdependency_libs"
  52271. - if test "$pass" = dlpreopen; then
  52272. - # Link the dlpreopened libraries before other libraries
  52273. - for deplib in $save_deplibs; do
  52274. - deplibs="$deplib $deplibs"
  52275. - done
  52276. - fi
  52277. - if test "$pass" != dlopen; then
  52278. - if test "$pass" != conv; then
  52279. - # Make sure lib_search_path contains only unique directories.
  52280. - lib_search_path=
  52281. - for dir in $newlib_search_path; do
  52282. - case "$lib_search_path " in
  52283. - *" $dir "*) ;;
  52284. - *) lib_search_path="$lib_search_path $dir" ;;
  52285. - esac
  52286. - done
  52287. - newlib_search_path=
  52288. - fi
  52289. -
  52290. - if test "$linkmode,$pass" != "prog,link"; then
  52291. - vars="deplibs"
  52292. - else
  52293. - vars="compile_deplibs finalize_deplibs"
  52294. - fi
  52295. - for var in $vars dependency_libs; do
  52296. - # Add libraries to $var in reverse order
  52297. - eval tmp_libs=\"\$$var\"
  52298. - new_libs=
  52299. - for deplib in $tmp_libs; do
  52300. - # FIXME: Pedantically, this is the right thing to do, so
  52301. - # that some nasty dependency loop isn't accidentally
  52302. - # broken:
  52303. - #new_libs="$deplib $new_libs"
  52304. - # Pragmatically, this seems to cause very few problems in
  52305. - # practice:
  52306. - case $deplib in
  52307. - -L*) new_libs="$deplib $new_libs" ;;
  52308. - -R*) ;;
  52309. - *)
  52310. - # And here is the reason: when a library appears more
  52311. - # than once as an explicit dependence of a library, or
  52312. - # is implicitly linked in more than once by the
  52313. - # compiler, it is considered special, and multiple
  52314. - # occurrences thereof are not removed. Compare this
  52315. - # with having the same library being listed as a
  52316. - # dependency of multiple other libraries: in this case,
  52317. - # we know (pedantically, we assume) the library does not
  52318. - # need to be listed more than once, so we keep only the
  52319. - # last copy. This is not always right, but it is rare
  52320. - # enough that we require users that really mean to play
  52321. - # such unportable linking tricks to link the library
  52322. - # using -Wl,-lname, so that libtool does not consider it
  52323. - # for duplicate removal.
  52324. - case " $specialdeplibs " in
  52325. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  52326. - *)
  52327. - case " $new_libs " in
  52328. - *" $deplib "*) ;;
  52329. - *) new_libs="$deplib $new_libs" ;;
  52330. - esac
  52331. - ;;
  52332. - esac
  52333. - ;;
  52334. - esac
  52335. - done
  52336. - tmp_libs=
  52337. - for deplib in $new_libs; do
  52338. - case $deplib in
  52339. - -L*)
  52340. - case " $tmp_libs " in
  52341. - *" $deplib "*) ;;
  52342. - *) tmp_libs="$tmp_libs $deplib" ;;
  52343. - esac
  52344. - ;;
  52345. - *) tmp_libs="$tmp_libs $deplib" ;;
  52346. - esac
  52347. - done
  52348. - eval $var=\"$tmp_libs\"
  52349. - done # for var
  52350. - fi
  52351. - # Last step: remove runtime libs from dependency_libs
  52352. - # (they stay in deplibs)
  52353. - tmp_libs=
  52354. - for i in $dependency_libs ; do
  52355. - case " $predeps $postdeps $compiler_lib_search_path " in
  52356. - *" $i "*)
  52357. - i=""
  52358. - ;;
  52359. - esac
  52360. - if test -n "$i" ; then
  52361. - tmp_libs="$tmp_libs $i"
  52362. - fi
  52363. - done
  52364. - dependency_libs=$tmp_libs
  52365. - done # for pass
  52366. - if test "$linkmode" = prog; then
  52367. - dlfiles="$newdlfiles"
  52368. - dlprefiles="$newdlprefiles"
  52369. + # If there was a directory component, then change thisdir.
  52370. + if test \"x\$destdir\" != \"x\$file\"; then
  52371. + case \"\$destdir\" in
  52372. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  52373. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  52374. + esac
  52375. fi
  52376. - case $linkmode in
  52377. - oldlib)
  52378. - case " $deplibs" in
  52379. - *\ -l* | *\ -L*)
  52380. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
  52381. - esac
  52382. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  52383. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  52384. + done
  52385. +"
  52386. +}
  52387. +# end: func_emit_wrapper_part1
  52388. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  52389. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  52390. - fi
  52391. +# func_emit_wrapper_part2 [arg=no]
  52392. +#
  52393. +# Emit the second part of a libtool wrapper script on stdout.
  52394. +# For more information, see the description associated with
  52395. +# func_emit_wrapper(), below.
  52396. +func_emit_wrapper_part2 ()
  52397. +{
  52398. + func_emit_wrapper_part2_arg1=no
  52399. + if test -n "$1" ; then
  52400. + func_emit_wrapper_part2_arg1=$1
  52401. + fi
  52402. +
  52403. + $ECHO "\
  52404. +
  52405. + # Usually 'no', except on cygwin/mingw when embedded into
  52406. + # the cwrapper.
  52407. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  52408. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  52409. + # special case for '.'
  52410. + if test \"\$thisdir\" = \".\"; then
  52411. + thisdir=\`pwd\`
  52412. + fi
  52413. + # remove .libs from thisdir
  52414. + case \"\$thisdir\" in
  52415. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  52416. + $objdir ) thisdir=. ;;
  52417. + esac
  52418. + fi
  52419. - if test -n "$rpath"; then
  52420. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  52421. - fi
  52422. + # Try to get the absolute directory name.
  52423. + absdir=\`cd \"\$thisdir\" && pwd\`
  52424. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  52425. +"
  52426. - if test -n "$xrpath"; then
  52427. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  52428. - fi
  52429. + if test "$fast_install" = yes; then
  52430. + $ECHO "\
  52431. + program=lt-'$outputname'$exeext
  52432. + progdir=\"\$thisdir/$objdir\"
  52433. - if test -n "$vinfo"; then
  52434. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  52435. - fi
  52436. + if test ! -f \"\$progdir/\$program\" ||
  52437. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  52438. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  52439. - if test -n "$release"; then
  52440. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  52441. - fi
  52442. + file=\"\$\$-\$program\"
  52443. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  52444. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  52445. - fi
  52446. + if test ! -d \"\$progdir\"; then
  52447. + $MKDIR \"\$progdir\"
  52448. + else
  52449. + $RM \"\$progdir/\$file\"
  52450. + fi"
  52451. - # Now set the variables for building old libraries.
  52452. - build_libtool_libs=no
  52453. - oldlibs="$output"
  52454. - objs="$objs$old_deplibs"
  52455. - ;;
  52456. + $ECHO "\
  52457. - lib)
  52458. - # Make sure we only generate libraries of the form `libNAME.la'.
  52459. - case $outputname in
  52460. - lib*)
  52461. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  52462. - eval shared_ext=\"$shrext_cmds\"
  52463. - eval libname=\"$libname_spec\"
  52464. - ;;
  52465. - *)
  52466. - if test "$module" = no; then
  52467. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  52468. - $echo "$help" 1>&2
  52469. - exit $EXIT_FAILURE
  52470. - fi
  52471. - if test "$need_lib_prefix" != no; then
  52472. - # Add the "lib" prefix for modules if required
  52473. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  52474. - eval shared_ext=\"$shrext_cmds\"
  52475. - eval libname=\"$libname_spec\"
  52476. - else
  52477. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  52478. - fi
  52479. - ;;
  52480. - esac
  52481. + # relink executable if necessary
  52482. + if test -n \"\$relink_command\"; then
  52483. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  52484. + else
  52485. + $ECHO \"\$relink_command_output\" >&2
  52486. + $RM \"\$progdir/\$file\"
  52487. + exit 1
  52488. + fi
  52489. + fi
  52490. - if test -n "$objs"; then
  52491. - if test "$deplibs_check_method" != pass_all; then
  52492. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  52493. - exit $EXIT_FAILURE
  52494. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  52495. + { $RM \"\$progdir/\$program\";
  52496. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  52497. + $RM \"\$progdir/\$file\"
  52498. + fi"
  52499. else
  52500. - $echo
  52501. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  52502. - $echo "*** objects $objs is not portable!"
  52503. - libobjs="$libobjs $objs"
  52504. + $ECHO "\
  52505. + program='$outputname'
  52506. + progdir=\"\$thisdir/$objdir\"
  52507. +"
  52508. fi
  52509. - fi
  52510. - if test "$dlself" != no; then
  52511. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  52512. - fi
  52513. + $ECHO "\
  52514. - set dummy $rpath
  52515. - if test "$#" -gt 2; then
  52516. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  52517. - fi
  52518. - install_libdir="$2"
  52519. + if test -f \"\$progdir/\$program\"; then"
  52520. - oldlibs=
  52521. - if test -z "$rpath"; then
  52522. - if test "$build_libtool_libs" = yes; then
  52523. - # Building a libtool convenience library.
  52524. - # Some compilers have problems with a `.al' extension so
  52525. - # convenience libraries should have the same extension an
  52526. - # archive normally would.
  52527. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  52528. - build_libtool_libs=convenience
  52529. - build_old_libs=yes
  52530. - fi
  52531. + # Export our shlibpath_var if we have one.
  52532. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  52533. + $ECHO "\
  52534. + # Add our own library path to $shlibpath_var
  52535. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  52536. - if test -n "$vinfo"; then
  52537. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  52538. - fi
  52539. + # Some systems cannot cope with colon-terminated $shlibpath_var
  52540. + # The second colon is a workaround for a bug in BeOS R4 sed
  52541. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  52542. - if test -n "$release"; then
  52543. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  52544. + export $shlibpath_var
  52545. +"
  52546. fi
  52547. - else
  52548. -
  52549. - # Parse the version information argument.
  52550. - save_ifs="$IFS"; IFS=':'
  52551. - set dummy $vinfo 0 0 0
  52552. - IFS="$save_ifs"
  52553. - if test -n "$8"; then
  52554. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  52555. - $echo "$help" 1>&2
  52556. - exit $EXIT_FAILURE
  52557. + # fixup the dll searchpath if we need to.
  52558. + if test -n "$dllsearchpath"; then
  52559. + $ECHO "\
  52560. + # Add the dll search path components to the executable PATH
  52561. + PATH=$dllsearchpath:\$PATH
  52562. +"
  52563. fi
  52564. - # convert absolute version numbers to libtool ages
  52565. - # this retains compatibility with .la files and attempts
  52566. - # to make the code below a bit more comprehensible
  52567. + $ECHO "\
  52568. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52569. + # Run the actual program with our arguments.
  52570. +"
  52571. + case $host in
  52572. + # Backslashes separate directories on plain windows
  52573. + *-*-mingw | *-*-os2* | *-cegcc*)
  52574. + $ECHO "\
  52575. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  52576. +"
  52577. + ;;
  52578. - case $vinfo_number in
  52579. - yes)
  52580. - number_major="$2"
  52581. - number_minor="$3"
  52582. - number_revision="$4"
  52583. - #
  52584. - # There are really only two kinds -- those that
  52585. - # use the current revision as the major version
  52586. - # and those that subtract age and use age as
  52587. - # a minor version. But, then there is irix
  52588. - # which has an extra 1 added just for fun
  52589. - #
  52590. - case $version_type in
  52591. - darwin|linux|osf|windows|none)
  52592. - current=`expr $number_major + $number_minor`
  52593. - age="$number_minor"
  52594. - revision="$number_revision"
  52595. - ;;
  52596. - freebsd-aout|freebsd-elf|sunos)
  52597. - current="$number_major"
  52598. - revision="$number_minor"
  52599. - age="0"
  52600. - ;;
  52601. - irix|nonstopux)
  52602. - current=`expr $number_major + $number_minor`
  52603. - age="$number_minor"
  52604. - revision="$number_minor"
  52605. - lt_irix_increment=no
  52606. - ;;
  52607. - esac
  52608. - ;;
  52609. - no)
  52610. - current="$2"
  52611. - revision="$3"
  52612. - age="$4"
  52613. - ;;
  52614. - esac
  52615. -
  52616. - # Check that each of the things are valid numbers.
  52617. - case $current in
  52618. - 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]) ;;
  52619. - *)
  52620. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  52621. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52622. - exit $EXIT_FAILURE
  52623. - ;;
  52624. - esac
  52625. -
  52626. - case $revision in
  52627. - 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]) ;;
  52628. *)
  52629. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  52630. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52631. - exit $EXIT_FAILURE
  52632. + $ECHO "\
  52633. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  52634. +"
  52635. ;;
  52636. esac
  52637. + $ECHO "\
  52638. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  52639. + exit 1
  52640. + fi
  52641. + else
  52642. + # The program doesn't exist.
  52643. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  52644. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  52645. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  52646. + exit 1
  52647. + fi
  52648. +fi\
  52649. +"
  52650. +}
  52651. +# end: func_emit_wrapper_part2
  52652. - case $age in
  52653. - 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]) ;;
  52654. - *)
  52655. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  52656. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52657. - exit $EXIT_FAILURE
  52658. - ;;
  52659. - esac
  52660. - if test "$age" -gt "$current"; then
  52661. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  52662. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52663. - exit $EXIT_FAILURE
  52664. +# func_emit_wrapper [arg=no]
  52665. +#
  52666. +# Emit a libtool wrapper script on stdout.
  52667. +# Don't directly open a file because we may want to
  52668. +# incorporate the script contents within a cygwin/mingw
  52669. +# wrapper executable. Must ONLY be called from within
  52670. +# func_mode_link because it depends on a number of variables
  52671. +# set therein.
  52672. +#
  52673. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  52674. +# variable will take. If 'yes', then the emitted script
  52675. +# will assume that the directory in which it is stored is
  52676. +# the $objdir directory. This is a cygwin/mingw-specific
  52677. +# behavior.
  52678. +func_emit_wrapper ()
  52679. +{
  52680. + func_emit_wrapper_arg1=no
  52681. + if test -n "$1" ; then
  52682. + func_emit_wrapper_arg1=$1
  52683. fi
  52684. - # Calculate the version variables.
  52685. - major=
  52686. - versuffix=
  52687. - versuffix2=
  52688. - verstring=
  52689. - case $version_type in
  52690. - none) ;;
  52691. + # split this up so that func_emit_cwrapperexe_src
  52692. + # can call each part independently.
  52693. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  52694. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  52695. +}
  52696. - darwin)
  52697. - # Like Linux, but with the current version available in
  52698. - # verstring for coding it into the library header
  52699. - major=.`expr $current - $age`
  52700. - versuffix="$major.$age.$revision"
  52701. - # Darwin ld doesn't like 0 for these options...
  52702. - minor_current=`expr $current + 1`
  52703. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  52704. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  52705. - ;;
  52706. - freebsd-aout)
  52707. - major=".$current"
  52708. - versuffix=".$current.$revision";
  52709. - ;;
  52710. +# func_to_host_path arg
  52711. +#
  52712. +# Convert paths to host format when used with build tools.
  52713. +# Intended for use with "native" mingw (where libtool itself
  52714. +# is running under the msys shell), or in the following cross-
  52715. +# build environments:
  52716. +# $build $host
  52717. +# mingw (msys) mingw [e.g. native]
  52718. +# cygwin mingw
  52719. +# *nix + wine mingw
  52720. +# where wine is equipped with the `winepath' executable.
  52721. +# In the native mingw case, the (msys) shell automatically
  52722. +# converts paths for any non-msys applications it launches,
  52723. +# but that facility isn't available from inside the cwrapper.
  52724. +# Similar accommodations are necessary for $host mingw and
  52725. +# $build cygwin. Calling this function does no harm for other
  52726. +# $host/$build combinations not listed above.
  52727. +#
  52728. +# ARG is the path (on $build) that should be converted to
  52729. +# the proper representation for $host. The result is stored
  52730. +# in $func_to_host_path_result.
  52731. +func_to_host_path ()
  52732. +{
  52733. + func_to_host_path_result="$1"
  52734. + if test -n "$1" ; then
  52735. + case $host in
  52736. + *mingw* )
  52737. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  52738. + case $build in
  52739. + *mingw* ) # actually, msys
  52740. + # awkward: cmd appends spaces to result
  52741. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  52742. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  52743. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  52744. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52745. + $SED -e "$lt_sed_naive_backslashify"`
  52746. + ;;
  52747. + *cygwin* )
  52748. + func_to_host_path_tmp1=`cygpath -w "$1"`
  52749. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52750. + $SED -e "$lt_sed_naive_backslashify"`
  52751. + ;;
  52752. + * )
  52753. + # Unfortunately, winepath does not exit with a non-zero
  52754. + # error code, so we are forced to check the contents of
  52755. + # stdout. On the other hand, if the command is not
  52756. + # found, the shell will set an exit code of 127 and print
  52757. + # *an error message* to stdout. So we must check for both
  52758. + # error code of zero AND non-empty stdout, which explains
  52759. + # the odd construction:
  52760. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  52761. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  52762. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52763. + $SED -e "$lt_sed_naive_backslashify"`
  52764. + else
  52765. + # Allow warning below.
  52766. + func_to_host_path_result=""
  52767. + fi
  52768. + ;;
  52769. + esac
  52770. + if test -z "$func_to_host_path_result" ; then
  52771. + func_error "Could not determine host path corresponding to"
  52772. + func_error " '$1'"
  52773. + func_error "Continuing, but uninstalled executables may not work."
  52774. + # Fallback:
  52775. + func_to_host_path_result="$1"
  52776. + fi
  52777. + ;;
  52778. + esac
  52779. + fi
  52780. +}
  52781. +# end: func_to_host_path
  52782. - freebsd-elf)
  52783. - major=".$current"
  52784. - versuffix=".$current";
  52785. - ;;
  52786. +# func_to_host_pathlist arg
  52787. +#
  52788. +# Convert pathlists to host format when used with build tools.
  52789. +# See func_to_host_path(), above. This function supports the
  52790. +# following $build/$host combinations (but does no harm for
  52791. +# combinations not listed here):
  52792. +# $build $host
  52793. +# mingw (msys) mingw [e.g. native]
  52794. +# cygwin mingw
  52795. +# *nix + wine mingw
  52796. +#
  52797. +# Path separators are also converted from $build format to
  52798. +# $host format. If ARG begins or ends with a path separator
  52799. +# character, it is preserved (but converted to $host format)
  52800. +# on output.
  52801. +#
  52802. +# ARG is a pathlist (on $build) that should be converted to
  52803. +# the proper representation on $host. The result is stored
  52804. +# in $func_to_host_pathlist_result.
  52805. +func_to_host_pathlist ()
  52806. +{
  52807. + func_to_host_pathlist_result="$1"
  52808. + if test -n "$1" ; then
  52809. + case $host in
  52810. + *mingw* )
  52811. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  52812. + # Remove leading and trailing path separator characters from
  52813. + # ARG. msys behavior is inconsistent here, cygpath turns them
  52814. + # into '.;' and ';.', and winepath ignores them completely.
  52815. + func_to_host_pathlist_tmp2="$1"
  52816. + # Once set for this call, this variable should not be
  52817. + # reassigned. It is used in tha fallback case.
  52818. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  52819. + $SED -e 's|^:*||' -e 's|:*$||'`
  52820. + case $build in
  52821. + *mingw* ) # Actually, msys.
  52822. + # Awkward: cmd appends spaces to result.
  52823. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  52824. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  52825. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  52826. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  52827. + $SED -e "$lt_sed_naive_backslashify"`
  52828. + ;;
  52829. + *cygwin* )
  52830. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  52831. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  52832. + $SED -e "$lt_sed_naive_backslashify"`
  52833. + ;;
  52834. + * )
  52835. + # unfortunately, winepath doesn't convert pathlists
  52836. + func_to_host_pathlist_result=""
  52837. + func_to_host_pathlist_oldIFS=$IFS
  52838. + IFS=:
  52839. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  52840. + IFS=$func_to_host_pathlist_oldIFS
  52841. + if test -n "$func_to_host_pathlist_f" ; then
  52842. + func_to_host_path "$func_to_host_pathlist_f"
  52843. + if test -n "$func_to_host_path_result" ; then
  52844. + if test -z "$func_to_host_pathlist_result" ; then
  52845. + func_to_host_pathlist_result="$func_to_host_path_result"
  52846. + else
  52847. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  52848. + fi
  52849. + fi
  52850. + fi
  52851. + IFS=:
  52852. + done
  52853. + IFS=$func_to_host_pathlist_oldIFS
  52854. + ;;
  52855. + esac
  52856. + if test -z "$func_to_host_pathlist_result" ; then
  52857. + func_error "Could not determine the host path(s) corresponding to"
  52858. + func_error " '$1'"
  52859. + func_error "Continuing, but uninstalled executables may not work."
  52860. + # Fallback. This may break if $1 contains DOS-style drive
  52861. + # specifications. The fix is not to complicate the expression
  52862. + # below, but for the user to provide a working wine installation
  52863. + # with winepath so that path translation in the cross-to-mingw
  52864. + # case works properly.
  52865. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  52866. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  52867. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  52868. + fi
  52869. + # Now, add the leading and trailing path separators back
  52870. + case "$1" in
  52871. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  52872. + ;;
  52873. + esac
  52874. + case "$1" in
  52875. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  52876. + ;;
  52877. + esac
  52878. + ;;
  52879. + esac
  52880. + fi
  52881. +}
  52882. +# end: func_to_host_pathlist
  52883. - irix | nonstopux)
  52884. - if test "X$lt_irix_increment" = "Xno"; then
  52885. - major=`expr $current - $age`
  52886. - else
  52887. - major=`expr $current - $age + 1`
  52888. - fi
  52889. - case $version_type in
  52890. - nonstopux) verstring_prefix=nonstopux ;;
  52891. - *) verstring_prefix=sgi ;;
  52892. - esac
  52893. - verstring="$verstring_prefix$major.$revision"
  52894. +# func_emit_cwrapperexe_src
  52895. +# emit the source code for a wrapper executable on stdout
  52896. +# Must ONLY be called from within func_mode_link because
  52897. +# it depends on a number of variable set therein.
  52898. +func_emit_cwrapperexe_src ()
  52899. +{
  52900. + cat <<EOF
  52901. - # Add in all the interfaces that we are compatible with.
  52902. - loop=$revision
  52903. - while test "$loop" -ne 0; do
  52904. - iface=`expr $revision - $loop`
  52905. - loop=`expr $loop - 1`
  52906. - verstring="$verstring_prefix$major.$iface:$verstring"
  52907. - done
  52908. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  52909. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  52910. - # Before this point, $major must not contain `.'.
  52911. - major=.$major
  52912. - versuffix="$major.$revision"
  52913. - ;;
  52914. + The $output program cannot be directly executed until all the libtool
  52915. + libraries that it depends on are installed.
  52916. - linux)
  52917. - major=.`expr $current - $age`
  52918. - versuffix="$major.$age.$revision"
  52919. - versuffix2="$major.$age"
  52920. - ;;
  52921. + This wrapper executable should never be moved out of the build directory.
  52922. + If it is, it will not operate correctly.
  52923. - osf)
  52924. - major=.`expr $current - $age`
  52925. - versuffix=".$current.$age.$revision"
  52926. - verstring="$current.$age.$revision"
  52927. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  52928. + but could eventually absorb all of the scripts functionality and
  52929. + exec $objdir/$outputname directly.
  52930. +*/
  52931. +EOF
  52932. + cat <<"EOF"
  52933. +#include <stdio.h>
  52934. +#include <stdlib.h>
  52935. +#ifdef _MSC_VER
  52936. +# include <direct.h>
  52937. +# include <process.h>
  52938. +# include <io.h>
  52939. +# define setmode _setmode
  52940. +#else
  52941. +# include <unistd.h>
  52942. +# include <stdint.h>
  52943. +# ifdef __CYGWIN__
  52944. +# include <io.h>
  52945. +# define HAVE_SETENV
  52946. +# ifdef __STRICT_ANSI__
  52947. +char *realpath (const char *, char *);
  52948. +int putenv (char *);
  52949. +int setenv (const char *, const char *, int);
  52950. +# endif
  52951. +# endif
  52952. +#endif
  52953. +#include <malloc.h>
  52954. +#include <stdarg.h>
  52955. +#include <assert.h>
  52956. +#include <string.h>
  52957. +#include <ctype.h>
  52958. +#include <errno.h>
  52959. +#include <fcntl.h>
  52960. +#include <sys/stat.h>
  52961. - # Add in all the interfaces that we are compatible with.
  52962. - loop=$age
  52963. - while test "$loop" -ne 0; do
  52964. - iface=`expr $current - $loop`
  52965. - loop=`expr $loop - 1`
  52966. - verstring="$verstring:${iface}.0"
  52967. - done
  52968. +#if defined(PATH_MAX)
  52969. +# define LT_PATHMAX PATH_MAX
  52970. +#elif defined(MAXPATHLEN)
  52971. +# define LT_PATHMAX MAXPATHLEN
  52972. +#else
  52973. +# define LT_PATHMAX 1024
  52974. +#endif
  52975. - # Make executables depend on our current version.
  52976. - verstring="$verstring:${current}.0"
  52977. - ;;
  52978. +#ifndef S_IXOTH
  52979. +# define S_IXOTH 0
  52980. +#endif
  52981. +#ifndef S_IXGRP
  52982. +# define S_IXGRP 0
  52983. +#endif
  52984. - sunos)
  52985. - major=".$current"
  52986. - versuffix=".$current.$revision"
  52987. - ;;
  52988. +#ifdef _MSC_VER
  52989. +# define S_IXUSR _S_IEXEC
  52990. +# define stat _stat
  52991. +# ifndef _INTPTR_T_DEFINED
  52992. +# define intptr_t int
  52993. +# endif
  52994. +#endif
  52995. - windows)
  52996. - # Use '-' rather than '.', since we only want one
  52997. - # extension on DOS 8.3 filesystems.
  52998. - major=`expr $current - $age`
  52999. - versuffix="-$major"
  53000. - ;;
  53001. +#ifndef DIR_SEPARATOR
  53002. +# define DIR_SEPARATOR '/'
  53003. +# define PATH_SEPARATOR ':'
  53004. +#endif
  53005. - *)
  53006. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  53007. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  53008. - exit $EXIT_FAILURE
  53009. - ;;
  53010. - esac
  53011. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  53012. + defined (__OS2__)
  53013. +# define HAVE_DOS_BASED_FILE_SYSTEM
  53014. +# define FOPEN_WB "wb"
  53015. +# ifndef DIR_SEPARATOR_2
  53016. +# define DIR_SEPARATOR_2 '\\'
  53017. +# endif
  53018. +# ifndef PATH_SEPARATOR_2
  53019. +# define PATH_SEPARATOR_2 ';'
  53020. +# endif
  53021. +#endif
  53022. - # Clear the version info if we defaulted, and they specified a release.
  53023. - if test -z "$vinfo" && test -n "$release"; then
  53024. - major=
  53025. - case $version_type in
  53026. - darwin)
  53027. - # we can't check for "0.0" in archive_cmds due to quoting
  53028. - # problems, so we reset it completely
  53029. - verstring=
  53030. - ;;
  53031. - *)
  53032. - verstring="0.0"
  53033. - ;;
  53034. - esac
  53035. - if test "$need_version" = no; then
  53036. - versuffix=
  53037. - else
  53038. - versuffix=".0.0"
  53039. - fi
  53040. - fi
  53041. +#ifndef DIR_SEPARATOR_2
  53042. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  53043. +#else /* DIR_SEPARATOR_2 */
  53044. +# define IS_DIR_SEPARATOR(ch) \
  53045. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  53046. +#endif /* DIR_SEPARATOR_2 */
  53047. - # Remove version info from name if versioning should be avoided
  53048. - if test "$avoid_version" = yes && test "$need_version" = no; then
  53049. - major=
  53050. - versuffix=
  53051. - versuffix2=
  53052. - verstring=""
  53053. - fi
  53054. +#ifndef PATH_SEPARATOR_2
  53055. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  53056. +#else /* PATH_SEPARATOR_2 */
  53057. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  53058. +#endif /* PATH_SEPARATOR_2 */
  53059. - # Check to see if the archive will have undefined symbols.
  53060. - if test "$allow_undefined" = yes; then
  53061. - if test "$allow_undefined_flag" = unsupported; then
  53062. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  53063. - build_libtool_libs=no
  53064. - build_old_libs=yes
  53065. - fi
  53066. - else
  53067. - # Don't allow undefined symbols.
  53068. - allow_undefined_flag="$no_undefined_flag"
  53069. - fi
  53070. - fi
  53071. +#ifdef __CYGWIN__
  53072. +# define FOPEN_WB "wb"
  53073. +#endif
  53074. - if test "$mode" != relink; then
  53075. - # Remove our outputs, but don't remove object files since they
  53076. - # may have been created when compiling PIC objects.
  53077. - removelist=
  53078. - tempremovelist=`$echo "$output_objdir/*"`
  53079. - for p in $tempremovelist; do
  53080. - case $p in
  53081. - *.$objext)
  53082. - ;;
  53083. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  53084. - if test "X$precious_files_regex" != "X"; then
  53085. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  53086. - then
  53087. - continue
  53088. - fi
  53089. - fi
  53090. - removelist="$removelist $p"
  53091. - ;;
  53092. - *) ;;
  53093. - esac
  53094. - done
  53095. - if test -n "$removelist"; then
  53096. - $show "${rm}r $removelist"
  53097. - $run ${rm}r $removelist
  53098. - fi
  53099. - fi
  53100. +#ifndef FOPEN_WB
  53101. +# define FOPEN_WB "w"
  53102. +#endif
  53103. +#ifndef _O_BINARY
  53104. +# define _O_BINARY 0
  53105. +#endif
  53106. - # Now set the variables for building old libraries.
  53107. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  53108. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  53109. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  53110. +#define XFREE(stale) do { \
  53111. + if (stale) { free ((void *) stale); stale = 0; } \
  53112. +} while (0)
  53113. - # Transform .lo files to .o files.
  53114. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  53115. - fi
  53116. +#undef LTWRAPPER_DEBUGPRINTF
  53117. +#if defined DEBUGWRAPPER
  53118. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  53119. +static void
  53120. +ltwrapper_debugprintf (const char *fmt, ...)
  53121. +{
  53122. + va_list args;
  53123. + va_start (args, fmt);
  53124. + (void) vfprintf (stderr, fmt, args);
  53125. + va_end (args);
  53126. +}
  53127. +#else
  53128. +# define LTWRAPPER_DEBUGPRINTF(args)
  53129. +#endif
  53130. - # Eliminate all temporary directories.
  53131. - #for path in $notinst_path; do
  53132. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  53133. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  53134. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  53135. - #done
  53136. +const char *program_name = NULL;
  53137. - if test -n "$xrpath"; then
  53138. - # If the user specified any rpath flags, then add them.
  53139. - temp_xrpath=
  53140. - for libdir in $xrpath; do
  53141. - temp_xrpath="$temp_xrpath -R$libdir"
  53142. - case "$finalize_rpath " in
  53143. - *" $libdir "*) ;;
  53144. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  53145. - esac
  53146. - done
  53147. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  53148. - dependency_libs="$temp_xrpath $dependency_libs"
  53149. - fi
  53150. - fi
  53151. +void *xmalloc (size_t num);
  53152. +char *xstrdup (const char *string);
  53153. +const char *base_name (const char *name);
  53154. +char *find_executable (const char *wrapper);
  53155. +char *chase_symlinks (const char *pathspec);
  53156. +int make_executable (const char *path);
  53157. +int check_executable (const char *path);
  53158. +char *strendzap (char *str, const char *pat);
  53159. +void lt_fatal (const char *message, ...);
  53160. +void lt_setenv (const char *name, const char *value);
  53161. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  53162. +void lt_opt_process_env_set (const char *arg);
  53163. +void lt_opt_process_env_prepend (const char *arg);
  53164. +void lt_opt_process_env_append (const char *arg);
  53165. +int lt_split_name_value (const char *arg, char** name, char** value);
  53166. +void lt_update_exe_path (const char *name, const char *value);
  53167. +void lt_update_lib_path (const char *name, const char *value);
  53168. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  53169. - old_dlfiles="$dlfiles"
  53170. - dlfiles=
  53171. - for lib in $old_dlfiles; do
  53172. - case " $dlprefiles $dlfiles " in
  53173. - *" $lib "*) ;;
  53174. - *) dlfiles="$dlfiles $lib" ;;
  53175. - esac
  53176. - done
  53177. +static const char *script_text_part1 =
  53178. +EOF
  53179. - # Make sure dlprefiles contains only unique files
  53180. - old_dlprefiles="$dlprefiles"
  53181. - dlprefiles=
  53182. - for lib in $old_dlprefiles; do
  53183. - case "$dlprefiles " in
  53184. - *" $lib "*) ;;
  53185. - *) dlprefiles="$dlprefiles $lib" ;;
  53186. - esac
  53187. - done
  53188. + func_emit_wrapper_part1 yes |
  53189. + $SED -e 's/\([\\"]\)/\\\1/g' \
  53190. + -e 's/^/ "/' -e 's/$/\\n"/'
  53191. + echo ";"
  53192. + cat <<EOF
  53193. - if test "$build_libtool_libs" = yes; then
  53194. - if test -n "$rpath"; then
  53195. - case $host in
  53196. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  53197. - # these systems don't actually have a c library (as such)!
  53198. - ;;
  53199. - *-*-rhapsody* | *-*-darwin1.[012])
  53200. - # Rhapsody C library is in the System framework
  53201. - deplibs="$deplibs -framework System"
  53202. - ;;
  53203. - *-*-netbsd*)
  53204. - # Don't link with libc until the a.out ld.so is fixed.
  53205. - ;;
  53206. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53207. - # Do not include libc due to us having libc/libc_r.
  53208. - ;;
  53209. - *-*-sco3.2v5* | *-*-sco5v6*)
  53210. - # Causes problems with __ctype
  53211. - ;;
  53212. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  53213. - # Compiler inserts libc in the correct place for threads to work
  53214. - ;;
  53215. - *)
  53216. - # Add libc to deplibs on all other systems if necessary.
  53217. - if test "$build_libtool_need_lc" = "yes"; then
  53218. - deplibs="$deplibs -lc"
  53219. - fi
  53220. - ;;
  53221. - esac
  53222. - fi
  53223. +static const char *script_text_part2 =
  53224. +EOF
  53225. + func_emit_wrapper_part2 yes |
  53226. + $SED -e 's/\([\\"]\)/\\\1/g' \
  53227. + -e 's/^/ "/' -e 's/$/\\n"/'
  53228. + echo ";"
  53229. +
  53230. + cat <<EOF
  53231. +const char * MAGIC_EXE = "$magic_exe";
  53232. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  53233. +EOF
  53234. - # Transform deplibs into only deplibs that can be linked in shared.
  53235. - name_save=$name
  53236. - libname_save=$libname
  53237. - release_save=$release
  53238. - versuffix_save=$versuffix
  53239. - major_save=$major
  53240. - # I'm not sure if I'm treating the release correctly. I think
  53241. - # release should show up in the -l (ie -lgmp5) so we don't want to
  53242. - # add it in twice. Is that correct?
  53243. - release=""
  53244. - versuffix=""
  53245. - major=""
  53246. - newdeplibs=
  53247. - droppeddeps=no
  53248. - case $deplibs_check_method in
  53249. - pass_all)
  53250. - # Don't check for shared/static. Everything works.
  53251. - # This might be a little naive. We might want to check
  53252. - # whether the library exists or not. But this is on
  53253. - # osf3 & osf4 and I'm not really sure... Just
  53254. - # implementing what was already the behavior.
  53255. - newdeplibs=$deplibs
  53256. - ;;
  53257. - test_compile)
  53258. - # This code stresses the "libraries are programs" paradigm to its
  53259. - # limits. Maybe even breaks it. We compile a program, linking it
  53260. - # against the deplibs as a proxy for the library. Then we can check
  53261. - # whether they linked in statically or dynamically with ldd.
  53262. - $rm conftest.c
  53263. - cat > conftest.c <<EOF
  53264. - int main() { return 0; }
  53265. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  53266. + func_to_host_pathlist "$temp_rpath"
  53267. + cat <<EOF
  53268. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  53269. EOF
  53270. - $rm conftest
  53271. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  53272. - ldd_output=`ldd conftest`
  53273. - for i in $deplibs; do
  53274. - name=`expr $i : '-l\(.*\)'`
  53275. - # If $name is empty we are operating on a -L argument.
  53276. - if test "$name" != "" && test "$name" != "0"; then
  53277. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53278. - case " $predeps $postdeps " in
  53279. - *" $i "*)
  53280. - newdeplibs="$newdeplibs $i"
  53281. - i=""
  53282. - ;;
  53283. - esac
  53284. - fi
  53285. - if test -n "$i" ; then
  53286. - libname=`eval \\$echo \"$libname_spec\"`
  53287. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  53288. - set dummy $deplib_matches
  53289. - deplib_match=$2
  53290. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  53291. - newdeplibs="$newdeplibs $i"
  53292. - else
  53293. - droppeddeps=yes
  53294. - $echo
  53295. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  53296. - $echo "*** I have the capability to make that library automatically link in when"
  53297. - $echo "*** you link to this library. But I can only do this if you have a"
  53298. - $echo "*** shared version of the library, which I believe you do not have"
  53299. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  53300. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  53301. - fi
  53302. - fi
  53303. - else
  53304. - newdeplibs="$newdeplibs $i"
  53305. - fi
  53306. - done
  53307. - else
  53308. - # Error occurred in the first compile. Let's try to salvage
  53309. - # the situation: Compile a separate program for each library.
  53310. - for i in $deplibs; do
  53311. - name=`expr $i : '-l\(.*\)'`
  53312. - # If $name is empty we are operating on a -L argument.
  53313. - if test "$name" != "" && test "$name" != "0"; then
  53314. - $rm conftest
  53315. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  53316. - ldd_output=`ldd conftest`
  53317. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53318. - case " $predeps $postdeps " in
  53319. - *" $i "*)
  53320. - newdeplibs="$newdeplibs $i"
  53321. - i=""
  53322. - ;;
  53323. - esac
  53324. - fi
  53325. - if test -n "$i" ; then
  53326. - libname=`eval \\$echo \"$libname_spec\"`
  53327. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  53328. - set dummy $deplib_matches
  53329. - deplib_match=$2
  53330. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  53331. - newdeplibs="$newdeplibs $i"
  53332. - else
  53333. - droppeddeps=yes
  53334. - $echo
  53335. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  53336. - $echo "*** I have the capability to make that library automatically link in when"
  53337. - $echo "*** you link to this library. But I can only do this if you have a"
  53338. - $echo "*** shared version of the library, which you do not appear to have"
  53339. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  53340. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  53341. - fi
  53342. - fi
  53343. - else
  53344. - droppeddeps=yes
  53345. - $echo
  53346. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  53347. - $echo "*** make it link in! You will probably need to install it or some"
  53348. - $echo "*** library that it depends on before this library will be fully"
  53349. - $echo "*** functional. Installing it before continuing would be even better."
  53350. - fi
  53351. - else
  53352. - newdeplibs="$newdeplibs $i"
  53353. - fi
  53354. - done
  53355. - fi
  53356. - ;;
  53357. - file_magic*)
  53358. - set dummy $deplibs_check_method
  53359. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  53360. - for a_deplib in $deplibs; do
  53361. - name=`expr $a_deplib : '-l\(.*\)'`
  53362. - # If $name is empty we are operating on a -L argument.
  53363. - if test "$name" != "" && test "$name" != "0"; then
  53364. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53365. - case " $predeps $postdeps " in
  53366. - *" $a_deplib "*)
  53367. - newdeplibs="$newdeplibs $a_deplib"
  53368. - a_deplib=""
  53369. - ;;
  53370. - esac
  53371. - fi
  53372. - if test -n "$a_deplib" ; then
  53373. - libname=`eval \\$echo \"$libname_spec\"`
  53374. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53375. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53376. - for potent_lib in $potential_libs; do
  53377. - # Follow soft links.
  53378. - if ls -lLd "$potent_lib" 2>/dev/null \
  53379. - | grep " -> " >/dev/null; then
  53380. - continue
  53381. - fi
  53382. - # The statement above tries to avoid entering an
  53383. - # endless loop below, in case of cyclic links.
  53384. - # We might still enter an endless loop, since a link
  53385. - # loop can be closed while we follow links,
  53386. - # but so what?
  53387. - potlib="$potent_lib"
  53388. - while test -h "$potlib" 2>/dev/null; do
  53389. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  53390. - case $potliblink in
  53391. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  53392. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  53393. - esac
  53394. - done
  53395. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  53396. - | ${SED} 10q \
  53397. - | $EGREP "$file_magic_regex" > /dev/null; then
  53398. - newdeplibs="$newdeplibs $a_deplib"
  53399. - a_deplib=""
  53400. - break 2
  53401. - fi
  53402. - done
  53403. - done
  53404. - fi
  53405. - if test -n "$a_deplib" ; then
  53406. - droppeddeps=yes
  53407. - $echo
  53408. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  53409. - $echo "*** I have the capability to make that library automatically link in when"
  53410. - $echo "*** you link to this library. But I can only do this if you have a"
  53411. - $echo "*** shared version of the library, which you do not appear to have"
  53412. - $echo "*** because I did check the linker path looking for a file starting"
  53413. - if test -z "$potlib" ; then
  53414. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  53415. - else
  53416. - $echo "*** with $libname and none of the candidates passed a file format test"
  53417. - $echo "*** using a file magic. Last file checked: $potlib"
  53418. - fi
  53419. - fi
  53420. else
  53421. - # Add a -L argument.
  53422. - newdeplibs="$newdeplibs $a_deplib"
  53423. + cat <<"EOF"
  53424. +const char * LIB_PATH_VALUE = "";
  53425. +EOF
  53426. fi
  53427. - done # Gone through all deplibs.
  53428. - ;;
  53429. - match_pattern*)
  53430. - set dummy $deplibs_check_method
  53431. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  53432. - for a_deplib in $deplibs; do
  53433. - name=`expr $a_deplib : '-l\(.*\)'`
  53434. - # If $name is empty we are operating on a -L argument.
  53435. - if test -n "$name" && test "$name" != "0"; then
  53436. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53437. - case " $predeps $postdeps " in
  53438. - *" $a_deplib "*)
  53439. - newdeplibs="$newdeplibs $a_deplib"
  53440. - a_deplib=""
  53441. - ;;
  53442. - esac
  53443. - fi
  53444. - if test -n "$a_deplib" ; then
  53445. - libname=`eval \\$echo \"$libname_spec\"`
  53446. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53447. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53448. - for potent_lib in $potential_libs; do
  53449. - potlib="$potent_lib" # see symlink-check above in file_magic test
  53450. - if eval $echo \"$potent_lib\" 2>/dev/null \
  53451. - | ${SED} 10q \
  53452. - | $EGREP "$match_pattern_regex" > /dev/null; then
  53453. - newdeplibs="$newdeplibs $a_deplib"
  53454. - a_deplib=""
  53455. - break 2
  53456. - fi
  53457. - done
  53458. - done
  53459. - fi
  53460. - if test -n "$a_deplib" ; then
  53461. - droppeddeps=yes
  53462. - $echo
  53463. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  53464. - $echo "*** I have the capability to make that library automatically link in when"
  53465. - $echo "*** you link to this library. But I can only do this if you have a"
  53466. - $echo "*** shared version of the library, which you do not appear to have"
  53467. - $echo "*** because I did check the linker path looking for a file starting"
  53468. - if test -z "$potlib" ; then
  53469. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  53470. - else
  53471. - $echo "*** with $libname and none of the candidates passed a file format test"
  53472. - $echo "*** using a regex pattern. Last file checked: $potlib"
  53473. - fi
  53474. - fi
  53475. +
  53476. + if test -n "$dllsearchpath"; then
  53477. + func_to_host_pathlist "$dllsearchpath:"
  53478. + cat <<EOF
  53479. +const char * EXE_PATH_VARNAME = "PATH";
  53480. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  53481. +EOF
  53482. else
  53483. - # Add a -L argument.
  53484. - newdeplibs="$newdeplibs $a_deplib"
  53485. + cat <<"EOF"
  53486. +const char * EXE_PATH_VARNAME = "";
  53487. +const char * EXE_PATH_VALUE = "";
  53488. +EOF
  53489. fi
  53490. - done # Gone through all deplibs.
  53491. - ;;
  53492. - none | unknown | *)
  53493. - newdeplibs=""
  53494. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  53495. - -e 's/ -[LR][^ ]*//g'`
  53496. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53497. - for i in $predeps $postdeps ; do
  53498. - # can't use Xsed below, because $i might contain '/'
  53499. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  53500. - done
  53501. - fi
  53502. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  53503. - | grep . >/dev/null; then
  53504. - $echo
  53505. - if test "X$deplibs_check_method" = "Xnone"; then
  53506. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  53507. - else
  53508. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  53509. - fi
  53510. - $echo "*** All declared inter-library dependencies are being dropped."
  53511. - droppeddeps=yes
  53512. - fi
  53513. - ;;
  53514. - esac
  53515. - versuffix=$versuffix_save
  53516. - major=$major_save
  53517. - release=$release_save
  53518. - libname=$libname_save
  53519. - name=$name_save
  53520. -
  53521. - case $host in
  53522. - *-*-rhapsody* | *-*-darwin1.[012])
  53523. - # On Rhapsody replace the C library is the System framework
  53524. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53525. - ;;
  53526. - esac
  53527. - if test "$droppeddeps" = yes; then
  53528. - if test "$module" = yes; then
  53529. - $echo
  53530. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  53531. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  53532. - $echo "*** a static module, that should work as long as the dlopening"
  53533. - $echo "*** application is linked with the -dlopen flag."
  53534. - if test -z "$global_symbol_pipe"; then
  53535. - $echo
  53536. - $echo "*** However, this would only work if libtool was able to extract symbol"
  53537. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  53538. - $echo "*** not find such a program. So, this module is probably useless."
  53539. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  53540. - fi
  53541. - if test "$build_old_libs" = no; then
  53542. - oldlibs="$output_objdir/$libname.$libext"
  53543. - build_libtool_libs=module
  53544. - build_old_libs=yes
  53545. + if test "$fast_install" = yes; then
  53546. + cat <<EOF
  53547. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  53548. +EOF
  53549. else
  53550. - build_libtool_libs=no
  53551. + cat <<EOF
  53552. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  53553. +EOF
  53554. fi
  53555. - else
  53556. - $echo "*** The inter-library dependencies that have been dropped here will be"
  53557. - $echo "*** automatically added whenever a program is linked with this library"
  53558. - $echo "*** or is declared to -dlopen it."
  53559. - if test "$allow_undefined" = no; then
  53560. - $echo
  53561. - $echo "*** Since this library must not contain undefined symbols,"
  53562. - $echo "*** because either the platform does not support them or"
  53563. - $echo "*** it was explicitly requested with -no-undefined,"
  53564. - $echo "*** libtool will only create a static version of it."
  53565. - if test "$build_old_libs" = no; then
  53566. - oldlibs="$output_objdir/$libname.$libext"
  53567. - build_libtool_libs=module
  53568. - build_old_libs=yes
  53569. - else
  53570. - build_libtool_libs=no
  53571. - fi
  53572. - fi
  53573. - fi
  53574. - fi
  53575. - # Done checking deplibs!
  53576. - deplibs=$newdeplibs
  53577. - fi
  53578. + cat <<"EOF"
  53579. - # move library search paths that coincide with paths to not yet
  53580. - # installed libraries to the beginning of the library search list
  53581. - new_libs=
  53582. - for path in $notinst_path; do
  53583. - case " $new_libs " in
  53584. - *" -L$path/$objdir "*) ;;
  53585. - *)
  53586. - case " $deplibs " in
  53587. - *" -L$path/$objdir "*)
  53588. - new_libs="$new_libs -L$path/$objdir" ;;
  53589. - esac
  53590. - ;;
  53591. - esac
  53592. - done
  53593. - for deplib in $deplibs; do
  53594. - case $deplib in
  53595. - -L*)
  53596. - case " $new_libs " in
  53597. - *" $deplib "*) ;;
  53598. - *) new_libs="$new_libs $deplib" ;;
  53599. - esac
  53600. - ;;
  53601. - *) new_libs="$new_libs $deplib" ;;
  53602. - esac
  53603. - done
  53604. - deplibs="$new_libs"
  53605. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  53606. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  53607. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  53608. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  53609. - # All the library-specific variables (install_libdir is set above).
  53610. - library_names=
  53611. - old_library=
  53612. - dlname=
  53613. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  53614. - # Test again, we may have decided not to build it any more
  53615. - if test "$build_libtool_libs" = yes; then
  53616. - if test "$hardcode_into_libs" = yes; then
  53617. - # Hardcode the library paths
  53618. - hardcode_libdirs=
  53619. - dep_rpath=
  53620. - rpath="$finalize_rpath"
  53621. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  53622. - for libdir in $rpath; do
  53623. - if test -n "$hardcode_libdir_flag_spec"; then
  53624. - if test -n "$hardcode_libdir_separator"; then
  53625. - if test -z "$hardcode_libdirs"; then
  53626. - hardcode_libdirs="$libdir"
  53627. - else
  53628. - # Just accumulate the unique libdirs.
  53629. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53630. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53631. - ;;
  53632. - *)
  53633. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53634. - ;;
  53635. - esac
  53636. - fi
  53637. - else
  53638. - eval flag=\"$hardcode_libdir_flag_spec\"
  53639. - dep_rpath="$dep_rpath $flag"
  53640. - fi
  53641. - elif test -n "$runpath_var"; then
  53642. - case "$perm_rpath " in
  53643. - *" $libdir "*) ;;
  53644. - *) perm_rpath="$perm_rpath $libdir" ;;
  53645. - esac
  53646. - fi
  53647. - done
  53648. - # Substitute the hardcoded libdirs into the rpath.
  53649. - if test -n "$hardcode_libdir_separator" &&
  53650. - test -n "$hardcode_libdirs"; then
  53651. - libdir="$hardcode_libdirs"
  53652. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  53653. - case $archive_cmds in
  53654. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  53655. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  53656. - esac
  53657. - else
  53658. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  53659. - fi
  53660. - fi
  53661. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  53662. - # We should set the runpath_var.
  53663. - rpath=
  53664. - for dir in $perm_rpath; do
  53665. - rpath="$rpath$dir:"
  53666. - done
  53667. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  53668. - fi
  53669. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  53670. - fi
  53671. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  53672. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  53673. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  53674. - shlibpath="$finalize_shlibpath"
  53675. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  53676. - if test -n "$shlibpath"; then
  53677. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  53678. - fi
  53679. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  53680. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  53681. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  53682. - # Get the real and link names of the library.
  53683. - eval shared_ext=\"$shrext_cmds\"
  53684. - eval library_names=\"$library_names_spec\"
  53685. - set dummy $library_names
  53686. - realname="$2"
  53687. - shift; shift
  53688. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  53689. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  53690. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  53691. - if test -n "$soname_spec"; then
  53692. - eval soname=\"$soname_spec\"
  53693. - else
  53694. - soname="$realname"
  53695. - fi
  53696. - if test -z "$dlname"; then
  53697. - dlname=$soname
  53698. - fi
  53699. +int
  53700. +main (int argc, char *argv[])
  53701. +{
  53702. + char **newargz;
  53703. + int newargc;
  53704. + char *tmp_pathspec;
  53705. + char *actual_cwrapper_path;
  53706. + char *actual_cwrapper_name;
  53707. + char *target_name;
  53708. + char *lt_argv_zero;
  53709. + intptr_t rval = 127;
  53710. - lib="$output_objdir/$realname"
  53711. - linknames=
  53712. - for link
  53713. - do
  53714. - linknames="$linknames $link"
  53715. - done
  53716. + int i;
  53717. - # Use standard objects if they are pic
  53718. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53719. + program_name = (char *) xstrdup (base_name (argv[0]));
  53720. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  53721. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  53722. - # Prepare the list of exported symbols
  53723. - if test -z "$export_symbols"; then
  53724. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  53725. - $show "generating symbol list for \`$libname.la'"
  53726. - export_symbols="$output_objdir/$libname.exp"
  53727. - $run $rm $export_symbols
  53728. - cmds=$export_symbols_cmds
  53729. - save_ifs="$IFS"; IFS='~'
  53730. - for cmd in $cmds; do
  53731. - IFS="$save_ifs"
  53732. - eval cmd=\"$cmd\"
  53733. - if len=`expr "X$cmd" : ".*"` &&
  53734. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  53735. - $show "$cmd"
  53736. - $run eval "$cmd" || exit $?
  53737. - skipped_export=false
  53738. - else
  53739. - # The command line is too long to execute in one step.
  53740. - $show "using reloadable object file for export list..."
  53741. - skipped_export=:
  53742. - # Break out early, otherwise skipped_export may be
  53743. - # set to false by a later but shorter cmd.
  53744. - break
  53745. - fi
  53746. - done
  53747. - IFS="$save_ifs"
  53748. - if test -n "$export_symbols_regex"; then
  53749. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  53750. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  53751. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  53752. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  53753. - fi
  53754. - fi
  53755. - fi
  53756. + /* very simple arg parsing; don't want to rely on getopt */
  53757. + for (i = 1; i < argc; i++)
  53758. + {
  53759. + if (strcmp (argv[i], dumpscript_opt) == 0)
  53760. + {
  53761. +EOF
  53762. + case "$host" in
  53763. + *mingw* | *cygwin* )
  53764. + # make stdout use "unix" line endings
  53765. + echo " setmode(1,_O_BINARY);"
  53766. + ;;
  53767. + esac
  53768. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  53769. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  53770. - fi
  53771. + cat <<"EOF"
  53772. + printf ("%s", script_text_part1);
  53773. + printf ("%s", script_text_part2);
  53774. + return 0;
  53775. + }
  53776. + }
  53777. - tmp_deplibs=
  53778. - for test_deplib in $deplibs; do
  53779. - case " $convenience " in
  53780. - *" $test_deplib "*) ;;
  53781. - *)
  53782. - tmp_deplibs="$tmp_deplibs $test_deplib"
  53783. - ;;
  53784. - esac
  53785. - done
  53786. - deplibs="$tmp_deplibs"
  53787. + newargz = XMALLOC (char *, argc + 1);
  53788. + tmp_pathspec = find_executable (argv[0]);
  53789. + if (tmp_pathspec == NULL)
  53790. + lt_fatal ("Couldn't find %s", argv[0]);
  53791. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  53792. + tmp_pathspec));
  53793. +
  53794. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  53795. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  53796. + actual_cwrapper_path));
  53797. + XFREE (tmp_pathspec);
  53798. +
  53799. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  53800. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  53801. +
  53802. + /* wrapper name transforms */
  53803. + strendzap (actual_cwrapper_name, ".exe");
  53804. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  53805. + XFREE (actual_cwrapper_name);
  53806. + actual_cwrapper_name = tmp_pathspec;
  53807. + tmp_pathspec = 0;
  53808. +
  53809. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  53810. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  53811. + strendzap (target_name, ".exe");
  53812. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  53813. + XFREE (target_name);
  53814. + target_name = tmp_pathspec;
  53815. + tmp_pathspec = 0;
  53816. - if test -n "$convenience"; then
  53817. - if test -n "$whole_archive_flag_spec"; then
  53818. - save_libobjs=$libobjs
  53819. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  53820. - else
  53821. - gentop="$output_objdir/${outputname}x"
  53822. - generated="$generated $gentop"
  53823. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  53824. + target_name));
  53825. +EOF
  53826. - func_extract_archives $gentop $convenience
  53827. - libobjs="$libobjs $func_extract_archives_result"
  53828. - fi
  53829. - fi
  53830. -
  53831. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  53832. - eval flag=\"$thread_safe_flag_spec\"
  53833. - linker_flags="$linker_flags $flag"
  53834. - fi
  53835. + cat <<EOF
  53836. + newargz[0] =
  53837. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  53838. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  53839. + strcpy (newargz[0], actual_cwrapper_path);
  53840. + strcat (newargz[0], "$objdir");
  53841. + strcat (newargz[0], "/");
  53842. +EOF
  53843. - # Make a backup of the uninstalled library when relinking
  53844. - if test "$mode" = relink; then
  53845. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  53846. - fi
  53847. + cat <<"EOF"
  53848. + /* stop here, and copy so we don't have to do this twice */
  53849. + tmp_pathspec = xstrdup (newargz[0]);
  53850. +
  53851. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  53852. + strcat (newargz[0], actual_cwrapper_name);
  53853. +
  53854. + /* DO want the lt- prefix here if it exists, so use target_name */
  53855. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  53856. + XFREE (tmp_pathspec);
  53857. + tmp_pathspec = NULL;
  53858. +EOF
  53859. - # Do each of the archive commands.
  53860. - if test "$module" = yes && test -n "$module_cmds" ; then
  53861. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  53862. - eval test_cmds=\"$module_expsym_cmds\"
  53863. - cmds=$module_expsym_cmds
  53864. - else
  53865. - eval test_cmds=\"$module_cmds\"
  53866. - cmds=$module_cmds
  53867. - fi
  53868. - else
  53869. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  53870. - eval test_cmds=\"$archive_expsym_cmds\"
  53871. - cmds=$archive_expsym_cmds
  53872. - else
  53873. - eval test_cmds=\"$archive_cmds\"
  53874. - cmds=$archive_cmds
  53875. - fi
  53876. - fi
  53877. + case $host_os in
  53878. + mingw*)
  53879. + cat <<"EOF"
  53880. + {
  53881. + char* p;
  53882. + while ((p = strchr (newargz[0], '\\')) != NULL)
  53883. + {
  53884. + *p = '/';
  53885. + }
  53886. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  53887. + {
  53888. + *p = '/';
  53889. + }
  53890. + }
  53891. +EOF
  53892. + ;;
  53893. + esac
  53894. - if test "X$skipped_export" != "X:" &&
  53895. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  53896. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  53897. - :
  53898. - else
  53899. - # The command line is too long to link in one step, link piecewise.
  53900. - $echo "creating reloadable object files..."
  53901. + cat <<"EOF"
  53902. + XFREE (target_name);
  53903. + XFREE (actual_cwrapper_path);
  53904. + XFREE (actual_cwrapper_name);
  53905. +
  53906. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  53907. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  53908. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  53909. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  53910. - # Save the value of $output and $libobjs because we want to
  53911. - # use them later. If we have whole_archive_flag_spec, we
  53912. - # want to use save_libobjs as it was before
  53913. - # whole_archive_flag_spec was expanded, because we can't
  53914. - # assume the linker understands whole_archive_flag_spec.
  53915. - # This may have to be revisited, in case too many
  53916. - # convenience libraries get linked in and end up exceeding
  53917. - # the spec.
  53918. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  53919. - save_libobjs=$libobjs
  53920. - fi
  53921. - save_output=$output
  53922. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  53923. -
  53924. - # Clear the reloadable object creation command queue and
  53925. - # initialize k to one.
  53926. - test_cmds=
  53927. - concat_cmds=
  53928. - objlist=
  53929. - delfiles=
  53930. - last_robj=
  53931. - k=1
  53932. - output=$output_objdir/$output_la-${k}.$objext
  53933. - # Loop over the list of objects to be linked.
  53934. - for obj in $save_libobjs
  53935. - do
  53936. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  53937. - if test "X$objlist" = X ||
  53938. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  53939. - test "$len" -le "$max_cmd_len"; }; then
  53940. - objlist="$objlist $obj"
  53941. - else
  53942. - # The command $test_cmds is almost too long, add a
  53943. - # command to the queue.
  53944. - if test "$k" -eq 1 ; then
  53945. - # The first file doesn't have a previous command to add.
  53946. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  53947. - else
  53948. - # All subsequent reloadable object files will link in
  53949. - # the last one created.
  53950. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  53951. - fi
  53952. - last_robj=$output_objdir/$output_la-${k}.$objext
  53953. - k=`expr $k + 1`
  53954. - output=$output_objdir/$output_la-${k}.$objext
  53955. - objlist=$obj
  53956. - len=1
  53957. - fi
  53958. - done
  53959. - # Handle the remaining objects by creating one last
  53960. - # reloadable object file. All subsequent reloadable object
  53961. - # files will link in the last one created.
  53962. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  53963. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  53964. + newargc=0;
  53965. + for (i = 1; i < argc; i++)
  53966. + {
  53967. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  53968. + {
  53969. + if (argv[i][env_set_opt_len] == '=')
  53970. + {
  53971. + const char *p = argv[i] + env_set_opt_len + 1;
  53972. + lt_opt_process_env_set (p);
  53973. + }
  53974. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  53975. + {
  53976. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  53977. + }
  53978. + else
  53979. + lt_fatal ("%s missing required argument", env_set_opt);
  53980. + continue;
  53981. + }
  53982. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  53983. + {
  53984. + if (argv[i][env_prepend_opt_len] == '=')
  53985. + {
  53986. + const char *p = argv[i] + env_prepend_opt_len + 1;
  53987. + lt_opt_process_env_prepend (p);
  53988. + }
  53989. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  53990. + {
  53991. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  53992. + }
  53993. + else
  53994. + lt_fatal ("%s missing required argument", env_prepend_opt);
  53995. + continue;
  53996. + }
  53997. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  53998. + {
  53999. + if (argv[i][env_append_opt_len] == '=')
  54000. + {
  54001. + const char *p = argv[i] + env_append_opt_len + 1;
  54002. + lt_opt_process_env_append (p);
  54003. + }
  54004. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  54005. + {
  54006. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  54007. + }
  54008. + else
  54009. + lt_fatal ("%s missing required argument", env_append_opt);
  54010. + continue;
  54011. + }
  54012. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  54013. + {
  54014. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  54015. + namespace, but it is not one of the ones we know about and
  54016. + have already dealt with, above (inluding dump-script), then
  54017. + report an error. Otherwise, targets might begin to believe
  54018. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  54019. + namespace. The first time any user complains about this, we'll
  54020. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  54021. + or a configure.ac-settable value.
  54022. + */
  54023. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  54024. + ltwrapper_option_prefix, argv[i]);
  54025. + }
  54026. + /* otherwise ... */
  54027. + newargz[++newargc] = xstrdup (argv[i]);
  54028. + }
  54029. + newargz[++newargc] = NULL;
  54030. - if ${skipped_export-false}; then
  54031. - $show "generating symbol list for \`$libname.la'"
  54032. - export_symbols="$output_objdir/$libname.exp"
  54033. - $run $rm $export_symbols
  54034. - libobjs=$output
  54035. - # Append the command to create the export file.
  54036. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  54037. - fi
  54038. -
  54039. - # Set up a command to remove the reloadable object files
  54040. - # after they are used.
  54041. - i=0
  54042. - while test "$i" -lt "$k"
  54043. - do
  54044. - i=`expr $i + 1`
  54045. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  54046. - done
  54047. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  54048. + for (i = 0; i < newargc; i++)
  54049. + {
  54050. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  54051. + }
  54052. - $echo "creating a temporary reloadable object file: $output"
  54053. +EOF
  54054. - # Loop through the commands generated above and execute them.
  54055. - save_ifs="$IFS"; IFS='~'
  54056. - for cmd in $concat_cmds; do
  54057. - IFS="$save_ifs"
  54058. - $show "$cmd"
  54059. - $run eval "$cmd" || exit $?
  54060. - done
  54061. - IFS="$save_ifs"
  54062. + case $host_os in
  54063. + mingw*)
  54064. + cat <<"EOF"
  54065. + /* execv doesn't actually work on mingw as expected on unix */
  54066. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  54067. + if (rval == -1)
  54068. + {
  54069. + /* failed to start process */
  54070. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  54071. + return 127;
  54072. + }
  54073. + return rval;
  54074. +EOF
  54075. + ;;
  54076. + *)
  54077. + cat <<"EOF"
  54078. + execv (lt_argv_zero, newargz);
  54079. + return rval; /* =127, but avoids unused variable warning */
  54080. +EOF
  54081. + ;;
  54082. + esac
  54083. - libobjs=$output
  54084. - # Restore the value of output.
  54085. - output=$save_output
  54086. + cat <<"EOF"
  54087. +}
  54088. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  54089. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  54090. - fi
  54091. - # Expand the library linking commands again to reset the
  54092. - # value of $libobjs for piecewise linking.
  54093. +void *
  54094. +xmalloc (size_t num)
  54095. +{
  54096. + void *p = (void *) malloc (num);
  54097. + if (!p)
  54098. + lt_fatal ("Memory exhausted");
  54099. - # Do each of the archive commands.
  54100. - if test "$module" = yes && test -n "$module_cmds" ; then
  54101. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  54102. - cmds=$module_expsym_cmds
  54103. - else
  54104. - cmds=$module_cmds
  54105. - fi
  54106. - else
  54107. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  54108. - cmds=$archive_expsym_cmds
  54109. - else
  54110. - cmds=$archive_cmds
  54111. - fi
  54112. - fi
  54113. + return p;
  54114. +}
  54115. - # Append the command to remove the reloadable object files
  54116. - # to the just-reset $cmds.
  54117. - eval cmds=\"\$cmds~\$rm $delfiles\"
  54118. - fi
  54119. - save_ifs="$IFS"; IFS='~'
  54120. - for cmd in $cmds; do
  54121. - IFS="$save_ifs"
  54122. - eval cmd=\"$cmd\"
  54123. - $show "$cmd"
  54124. - $run eval "$cmd" || {
  54125. - lt_exit=$?
  54126. +char *
  54127. +xstrdup (const char *string)
  54128. +{
  54129. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  54130. + string) : NULL;
  54131. +}
  54132. - # Restore the uninstalled library and exit
  54133. - if test "$mode" = relink; then
  54134. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  54135. - fi
  54136. +const char *
  54137. +base_name (const char *name)
  54138. +{
  54139. + const char *base;
  54140. - exit $lt_exit
  54141. - }
  54142. - done
  54143. - IFS="$save_ifs"
  54144. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54145. + /* Skip over the disk name in MSDOS pathnames. */
  54146. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  54147. + name += 2;
  54148. +#endif
  54149. - # Restore the uninstalled library and exit
  54150. - if test "$mode" = relink; then
  54151. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  54152. + for (base = name; *name; name++)
  54153. + if (IS_DIR_SEPARATOR (*name))
  54154. + base = name + 1;
  54155. + return base;
  54156. +}
  54157. - if test -n "$convenience"; then
  54158. - if test -z "$whole_archive_flag_spec"; then
  54159. - $show "${rm}r $gentop"
  54160. - $run ${rm}r "$gentop"
  54161. - fi
  54162. - fi
  54163. +int
  54164. +check_executable (const char *path)
  54165. +{
  54166. + struct stat st;
  54167. - exit $EXIT_SUCCESS
  54168. - fi
  54169. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  54170. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  54171. + if ((!path) || (!*path))
  54172. + return 0;
  54173. - # Create links to the real library.
  54174. - for linkname in $linknames; do
  54175. - if test "$realname" != "$linkname"; then
  54176. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  54177. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  54178. - fi
  54179. - done
  54180. + if ((stat (path, &st) >= 0)
  54181. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  54182. + return 1;
  54183. + else
  54184. + return 0;
  54185. +}
  54186. - # If -module or -export-dynamic was specified, set the dlname.
  54187. - if test "$module" = yes || test "$export_dynamic" = yes; then
  54188. - # On all known operating systems, these are identical.
  54189. - dlname="$soname"
  54190. - fi
  54191. - fi
  54192. - ;;
  54193. +int
  54194. +make_executable (const char *path)
  54195. +{
  54196. + int rval = 0;
  54197. + struct stat st;
  54198. - obj)
  54199. - case " $deplibs" in
  54200. - *\ -l* | *\ -L*)
  54201. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
  54202. - esac
  54203. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  54204. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  54205. + if ((!path) || (!*path))
  54206. + return 0;
  54207. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54208. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  54209. - fi
  54210. + if (stat (path, &st) >= 0)
  54211. + {
  54212. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  54213. + }
  54214. + return rval;
  54215. +}
  54216. - if test -n "$rpath"; then
  54217. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  54218. - fi
  54219. +/* Searches for the full path of the wrapper. Returns
  54220. + newly allocated full path name if found, NULL otherwise
  54221. + Does not chase symlinks, even on platforms that support them.
  54222. +*/
  54223. +char *
  54224. +find_executable (const char *wrapper)
  54225. +{
  54226. + int has_slash = 0;
  54227. + const char *p;
  54228. + const char *p_next;
  54229. + /* static buffer for getcwd */
  54230. + char tmp[LT_PATHMAX + 1];
  54231. + int tmp_len;
  54232. + char *concat_name;
  54233. - if test -n "$xrpath"; then
  54234. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  54235. - fi
  54236. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  54237. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  54238. - if test -n "$vinfo"; then
  54239. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  54240. - fi
  54241. + if ((wrapper == NULL) || (*wrapper == '\0'))
  54242. + return NULL;
  54243. - if test -n "$release"; then
  54244. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  54245. - fi
  54246. + /* Absolute path? */
  54247. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54248. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  54249. + {
  54250. + concat_name = xstrdup (wrapper);
  54251. + if (check_executable (concat_name))
  54252. + return concat_name;
  54253. + XFREE (concat_name);
  54254. + }
  54255. + else
  54256. + {
  54257. +#endif
  54258. + if (IS_DIR_SEPARATOR (wrapper[0]))
  54259. + {
  54260. + concat_name = xstrdup (wrapper);
  54261. + if (check_executable (concat_name))
  54262. + return concat_name;
  54263. + XFREE (concat_name);
  54264. + }
  54265. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54266. + }
  54267. +#endif
  54268. - case $output in
  54269. - *.lo)
  54270. - if test -n "$objs$old_deplibs"; then
  54271. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  54272. - exit $EXIT_FAILURE
  54273. - fi
  54274. - libobj="$output"
  54275. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  54276. - ;;
  54277. - *)
  54278. - libobj=
  54279. - obj="$output"
  54280. - ;;
  54281. - esac
  54282. + for (p = wrapper; *p; p++)
  54283. + if (*p == '/')
  54284. + {
  54285. + has_slash = 1;
  54286. + break;
  54287. + }
  54288. + if (!has_slash)
  54289. + {
  54290. + /* no slashes; search PATH */
  54291. + const char *path = getenv ("PATH");
  54292. + if (path != NULL)
  54293. + {
  54294. + for (p = path; *p; p = p_next)
  54295. + {
  54296. + const char *q;
  54297. + size_t p_len;
  54298. + for (q = p; *q; q++)
  54299. + if (IS_PATH_SEPARATOR (*q))
  54300. + break;
  54301. + p_len = q - p;
  54302. + p_next = (*q == '\0' ? q : q + 1);
  54303. + if (p_len == 0)
  54304. + {
  54305. + /* empty path: current directory */
  54306. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  54307. + lt_fatal ("getcwd failed");
  54308. + tmp_len = strlen (tmp);
  54309. + concat_name =
  54310. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  54311. + memcpy (concat_name, tmp, tmp_len);
  54312. + concat_name[tmp_len] = '/';
  54313. + strcpy (concat_name + tmp_len + 1, wrapper);
  54314. + }
  54315. + else
  54316. + {
  54317. + concat_name =
  54318. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  54319. + memcpy (concat_name, p, p_len);
  54320. + concat_name[p_len] = '/';
  54321. + strcpy (concat_name + p_len + 1, wrapper);
  54322. + }
  54323. + if (check_executable (concat_name))
  54324. + return concat_name;
  54325. + XFREE (concat_name);
  54326. + }
  54327. + }
  54328. + /* not found in PATH; assume curdir */
  54329. + }
  54330. + /* Relative path | not found in path: prepend cwd */
  54331. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  54332. + lt_fatal ("getcwd failed");
  54333. + tmp_len = strlen (tmp);
  54334. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  54335. + memcpy (concat_name, tmp, tmp_len);
  54336. + concat_name[tmp_len] = '/';
  54337. + strcpy (concat_name + tmp_len + 1, wrapper);
  54338. - # Delete the old objects.
  54339. - $run $rm $obj $libobj
  54340. + if (check_executable (concat_name))
  54341. + return concat_name;
  54342. + XFREE (concat_name);
  54343. + return NULL;
  54344. +}
  54345. - # Objects from convenience libraries. This assumes
  54346. - # single-version convenience libraries. Whenever we create
  54347. - # different ones for PIC/non-PIC, this we'll have to duplicate
  54348. - # the extraction.
  54349. - reload_conv_objs=
  54350. - gentop=
  54351. - # reload_cmds runs $LD directly, so let us get rid of
  54352. - # -Wl from whole_archive_flag_spec and hope we can get by with
  54353. - # turning comma into space..
  54354. - wl=
  54355. +char *
  54356. +chase_symlinks (const char *pathspec)
  54357. +{
  54358. +#ifndef S_ISLNK
  54359. + return xstrdup (pathspec);
  54360. +#else
  54361. + char buf[LT_PATHMAX];
  54362. + struct stat s;
  54363. + char *tmp_pathspec = xstrdup (pathspec);
  54364. + char *p;
  54365. + int has_symlinks = 0;
  54366. + while (strlen (tmp_pathspec) && !has_symlinks)
  54367. + {
  54368. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  54369. + tmp_pathspec));
  54370. + if (lstat (tmp_pathspec, &s) == 0)
  54371. + {
  54372. + if (S_ISLNK (s.st_mode) != 0)
  54373. + {
  54374. + has_symlinks = 1;
  54375. + break;
  54376. + }
  54377. - if test -n "$convenience"; then
  54378. - if test -n "$whole_archive_flag_spec"; then
  54379. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  54380. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  54381. - else
  54382. - gentop="$output_objdir/${obj}x"
  54383. - generated="$generated $gentop"
  54384. + /* search backwards for last DIR_SEPARATOR */
  54385. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  54386. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  54387. + p--;
  54388. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  54389. + {
  54390. + /* no more DIR_SEPARATORS left */
  54391. + break;
  54392. + }
  54393. + *p = '\0';
  54394. + }
  54395. + else
  54396. + {
  54397. + char *errstr = strerror (errno);
  54398. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  54399. + }
  54400. + }
  54401. + XFREE (tmp_pathspec);
  54402. - func_extract_archives $gentop $convenience
  54403. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  54404. - fi
  54405. - fi
  54406. + if (!has_symlinks)
  54407. + {
  54408. + return xstrdup (pathspec);
  54409. + }
  54410. - # Create the old-style object.
  54411. - 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
  54412. + tmp_pathspec = realpath (pathspec, buf);
  54413. + if (tmp_pathspec == 0)
  54414. + {
  54415. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  54416. + }
  54417. + return xstrdup (tmp_pathspec);
  54418. +#endif
  54419. +}
  54420. - output="$obj"
  54421. - cmds=$reload_cmds
  54422. - save_ifs="$IFS"; IFS='~'
  54423. - for cmd in $cmds; do
  54424. - IFS="$save_ifs"
  54425. - eval cmd=\"$cmd\"
  54426. - $show "$cmd"
  54427. - $run eval "$cmd" || exit $?
  54428. - done
  54429. - IFS="$save_ifs"
  54430. +char *
  54431. +strendzap (char *str, const char *pat)
  54432. +{
  54433. + size_t len, patlen;
  54434. - # Exit if we aren't doing a library object file.
  54435. - if test -z "$libobj"; then
  54436. - if test -n "$gentop"; then
  54437. - $show "${rm}r $gentop"
  54438. - $run ${rm}r $gentop
  54439. - fi
  54440. + assert (str != NULL);
  54441. + assert (pat != NULL);
  54442. - exit $EXIT_SUCCESS
  54443. - fi
  54444. + len = strlen (str);
  54445. + patlen = strlen (pat);
  54446. - if test "$build_libtool_libs" != yes; then
  54447. - if test -n "$gentop"; then
  54448. - $show "${rm}r $gentop"
  54449. - $run ${rm}r $gentop
  54450. - fi
  54451. + if (patlen <= len)
  54452. + {
  54453. + str += len - patlen;
  54454. + if (strcmp (str, pat) == 0)
  54455. + *str = '\0';
  54456. + }
  54457. + return str;
  54458. +}
  54459. - # Create an invalid libtool object if no PIC, so that we don't
  54460. - # accidentally link it into a program.
  54461. - # $show "echo timestamp > $libobj"
  54462. - # $run eval "echo timestamp > $libobj" || exit $?
  54463. - exit $EXIT_SUCCESS
  54464. - fi
  54465. -
  54466. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  54467. - # Only do commands if we really have different PIC objects.
  54468. - reload_objs="$libobjs $reload_conv_objs"
  54469. - output="$libobj"
  54470. - cmds=$reload_cmds
  54471. - save_ifs="$IFS"; IFS='~'
  54472. - for cmd in $cmds; do
  54473. - IFS="$save_ifs"
  54474. - eval cmd=\"$cmd\"
  54475. - $show "$cmd"
  54476. - $run eval "$cmd" || exit $?
  54477. - done
  54478. - IFS="$save_ifs"
  54479. - fi
  54480. -
  54481. - if test -n "$gentop"; then
  54482. - $show "${rm}r $gentop"
  54483. - $run ${rm}r $gentop
  54484. - fi
  54485. -
  54486. - exit $EXIT_SUCCESS
  54487. - ;;
  54488. +static void
  54489. +lt_error_core (int exit_status, const char *mode,
  54490. + const char *message, va_list ap)
  54491. +{
  54492. + fprintf (stderr, "%s: %s: ", program_name, mode);
  54493. + vfprintf (stderr, message, ap);
  54494. + fprintf (stderr, ".\n");
  54495. - prog)
  54496. - case $host in
  54497. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  54498. - esac
  54499. - if test -n "$vinfo"; then
  54500. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  54501. - fi
  54502. + if (exit_status >= 0)
  54503. + exit (exit_status);
  54504. +}
  54505. - if test -n "$release"; then
  54506. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  54507. - fi
  54508. +void
  54509. +lt_fatal (const char *message, ...)
  54510. +{
  54511. + va_list ap;
  54512. + va_start (ap, message);
  54513. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  54514. + va_end (ap);
  54515. +}
  54516. - if test "$preload" = yes; then
  54517. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  54518. - test "$dlopen_self_static" = unknown; then
  54519. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  54520. - fi
  54521. - fi
  54522. +void
  54523. +lt_setenv (const char *name, const char *value)
  54524. +{
  54525. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  54526. + (name ? name : "<NULL>"),
  54527. + (value ? value : "<NULL>")));
  54528. + {
  54529. +#ifdef HAVE_SETENV
  54530. + /* always make a copy, for consistency with !HAVE_SETENV */
  54531. + char *str = xstrdup (value);
  54532. + setenv (name, str, 1);
  54533. +#else
  54534. + int len = strlen (name) + 1 + strlen (value) + 1;
  54535. + char *str = XMALLOC (char, len);
  54536. + sprintf (str, "%s=%s", name, value);
  54537. + if (putenv (str) != EXIT_SUCCESS)
  54538. + {
  54539. + XFREE (str);
  54540. + }
  54541. +#endif
  54542. + }
  54543. +}
  54544. - case $host in
  54545. - *-*-rhapsody* | *-*-darwin1.[012])
  54546. - # On Rhapsody replace the C library is the System framework
  54547. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54548. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54549. - ;;
  54550. - esac
  54551. +char *
  54552. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  54553. +{
  54554. + char *new_value;
  54555. + if (orig_value && *orig_value)
  54556. + {
  54557. + int orig_value_len = strlen (orig_value);
  54558. + int add_len = strlen (add);
  54559. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  54560. + if (to_end)
  54561. + {
  54562. + strcpy (new_value, orig_value);
  54563. + strcpy (new_value + orig_value_len, add);
  54564. + }
  54565. + else
  54566. + {
  54567. + strcpy (new_value, add);
  54568. + strcpy (new_value + add_len, orig_value);
  54569. + }
  54570. + }
  54571. + else
  54572. + {
  54573. + new_value = xstrdup (add);
  54574. + }
  54575. + return new_value;
  54576. +}
  54577. - case $host in
  54578. - *darwin*)
  54579. - # Don't allow lazy linking, it breaks C++ global constructors
  54580. - if test "$tagname" = CXX ; then
  54581. - compile_command="$compile_command ${wl}-bind_at_load"
  54582. - finalize_command="$finalize_command ${wl}-bind_at_load"
  54583. - fi
  54584. - ;;
  54585. - esac
  54586. +int
  54587. +lt_split_name_value (const char *arg, char** name, char** value)
  54588. +{
  54589. + const char *p;
  54590. + int len;
  54591. + if (!arg || !*arg)
  54592. + return 1;
  54593. + p = strchr (arg, (int)'=');
  54594. - # move library search paths that coincide with paths to not yet
  54595. - # installed libraries to the beginning of the library search list
  54596. - new_libs=
  54597. - for path in $notinst_path; do
  54598. - case " $new_libs " in
  54599. - *" -L$path/$objdir "*) ;;
  54600. - *)
  54601. - case " $compile_deplibs " in
  54602. - *" -L$path/$objdir "*)
  54603. - new_libs="$new_libs -L$path/$objdir" ;;
  54604. - esac
  54605. - ;;
  54606. - esac
  54607. - done
  54608. - for deplib in $compile_deplibs; do
  54609. - case $deplib in
  54610. - -L*)
  54611. - case " $new_libs " in
  54612. - *" $deplib "*) ;;
  54613. - *) new_libs="$new_libs $deplib" ;;
  54614. - esac
  54615. - ;;
  54616. - *) new_libs="$new_libs $deplib" ;;
  54617. - esac
  54618. - done
  54619. - compile_deplibs="$new_libs"
  54620. + if (!p)
  54621. + return 1;
  54622. + *value = xstrdup (++p);
  54623. - compile_command="$compile_command $compile_deplibs"
  54624. - finalize_command="$finalize_command $finalize_deplibs"
  54625. + len = strlen (arg) - strlen (*value);
  54626. + *name = XMALLOC (char, len);
  54627. + strncpy (*name, arg, len-1);
  54628. + (*name)[len - 1] = '\0';
  54629. - if test -n "$rpath$xrpath"; then
  54630. - # If the user specified any rpath flags, then add them.
  54631. - for libdir in $rpath $xrpath; do
  54632. - # This is the magic to use -rpath.
  54633. - case "$finalize_rpath " in
  54634. - *" $libdir "*) ;;
  54635. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  54636. - esac
  54637. - done
  54638. - fi
  54639. + return 0;
  54640. +}
  54641. - # Now hardcode the library paths
  54642. - rpath=
  54643. - hardcode_libdirs=
  54644. - for libdir in $compile_rpath $finalize_rpath; do
  54645. - if test -n "$hardcode_libdir_flag_spec"; then
  54646. - if test -n "$hardcode_libdir_separator"; then
  54647. - if test -z "$hardcode_libdirs"; then
  54648. - hardcode_libdirs="$libdir"
  54649. - else
  54650. - # Just accumulate the unique libdirs.
  54651. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54652. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54653. - ;;
  54654. - *)
  54655. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54656. - ;;
  54657. - esac
  54658. - fi
  54659. - else
  54660. - eval flag=\"$hardcode_libdir_flag_spec\"
  54661. - rpath="$rpath $flag"
  54662. - fi
  54663. - elif test -n "$runpath_var"; then
  54664. - case "$perm_rpath " in
  54665. - *" $libdir "*) ;;
  54666. - *) perm_rpath="$perm_rpath $libdir" ;;
  54667. - esac
  54668. - fi
  54669. - case $host in
  54670. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  54671. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  54672. - case :$dllsearchpath: in
  54673. - *":$libdir:"*) ;;
  54674. - *) dllsearchpath="$dllsearchpath:$libdir";;
  54675. - esac
  54676. - case :$dllsearchpath: in
  54677. - *":$testbindir:"*) ;;
  54678. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  54679. - esac
  54680. - ;;
  54681. - esac
  54682. - done
  54683. - # Substitute the hardcoded libdirs into the rpath.
  54684. - if test -n "$hardcode_libdir_separator" &&
  54685. - test -n "$hardcode_libdirs"; then
  54686. - libdir="$hardcode_libdirs"
  54687. - eval rpath=\" $hardcode_libdir_flag_spec\"
  54688. - fi
  54689. - compile_rpath="$rpath"
  54690. +void
  54691. +lt_opt_process_env_set (const char *arg)
  54692. +{
  54693. + char *name = NULL;
  54694. + char *value = NULL;
  54695. - rpath=
  54696. - hardcode_libdirs=
  54697. - for libdir in $finalize_rpath; do
  54698. - if test -n "$hardcode_libdir_flag_spec"; then
  54699. - if test -n "$hardcode_libdir_separator"; then
  54700. - if test -z "$hardcode_libdirs"; then
  54701. - hardcode_libdirs="$libdir"
  54702. - else
  54703. - # Just accumulate the unique libdirs.
  54704. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54705. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54706. - ;;
  54707. - *)
  54708. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54709. - ;;
  54710. - esac
  54711. - fi
  54712. - else
  54713. - eval flag=\"$hardcode_libdir_flag_spec\"
  54714. - rpath="$rpath $flag"
  54715. - fi
  54716. - elif test -n "$runpath_var"; then
  54717. - case "$finalize_perm_rpath " in
  54718. - *" $libdir "*) ;;
  54719. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  54720. - esac
  54721. - fi
  54722. - done
  54723. - # Substitute the hardcoded libdirs into the rpath.
  54724. - if test -n "$hardcode_libdir_separator" &&
  54725. - test -n "$hardcode_libdirs"; then
  54726. - libdir="$hardcode_libdirs"
  54727. - eval rpath=\" $hardcode_libdir_flag_spec\"
  54728. - fi
  54729. - finalize_rpath="$rpath"
  54730. + if (lt_split_name_value (arg, &name, &value) != 0)
  54731. + {
  54732. + XFREE (name);
  54733. + XFREE (value);
  54734. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  54735. + }
  54736. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  54737. - # Transform all the library objects into standard objects.
  54738. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54739. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54740. - fi
  54741. + lt_setenv (name, value);
  54742. + XFREE (name);
  54743. + XFREE (value);
  54744. +}
  54745. - dlsyms=
  54746. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54747. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  54748. - dlsyms="${outputname}S.c"
  54749. - else
  54750. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  54751. - fi
  54752. - fi
  54753. +void
  54754. +lt_opt_process_env_prepend (const char *arg)
  54755. +{
  54756. + char *name = NULL;
  54757. + char *value = NULL;
  54758. + char *new_value = NULL;
  54759. - if test -n "$dlsyms"; then
  54760. - case $dlsyms in
  54761. - "") ;;
  54762. - *.c)
  54763. - # Discover the nlist of each of the dlfiles.
  54764. - nlist="$output_objdir/${outputname}.nm"
  54765. + if (lt_split_name_value (arg, &name, &value) != 0)
  54766. + {
  54767. + XFREE (name);
  54768. + XFREE (value);
  54769. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  54770. + }
  54771. - $show "$rm $nlist ${nlist}S ${nlist}T"
  54772. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  54773. + new_value = lt_extend_str (getenv (name), value, 0);
  54774. + lt_setenv (name, new_value);
  54775. + XFREE (new_value);
  54776. + XFREE (name);
  54777. + XFREE (value);
  54778. +}
  54779. - # Parse the name list into a source file.
  54780. - $show "creating $output_objdir/$dlsyms"
  54781. +void
  54782. +lt_opt_process_env_append (const char *arg)
  54783. +{
  54784. + char *name = NULL;
  54785. + char *value = NULL;
  54786. + char *new_value = NULL;
  54787. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  54788. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  54789. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  54790. + if (lt_split_name_value (arg, &name, &value) != 0)
  54791. + {
  54792. + XFREE (name);
  54793. + XFREE (value);
  54794. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  54795. + }
  54796. -#ifdef __cplusplus
  54797. -extern \"C\" {
  54798. -#endif
  54799. + new_value = lt_extend_str (getenv (name), value, 1);
  54800. + lt_setenv (name, new_value);
  54801. + XFREE (new_value);
  54802. + XFREE (name);
  54803. + XFREE (value);
  54804. +}
  54805. -/* Prevent the only kind of declaration conflicts we can make. */
  54806. -#define lt_preloaded_symbols some_other_symbol
  54807. +void
  54808. +lt_update_exe_path (const char *name, const char *value)
  54809. +{
  54810. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  54811. + (name ? name : "<NULL>"),
  54812. + (value ? value : "<NULL>")));
  54813. -/* External symbol declarations for the compiler. */\
  54814. -"
  54815. + if (name && *name && value && *value)
  54816. + {
  54817. + char *new_value = lt_extend_str (getenv (name), value, 0);
  54818. + /* some systems can't cope with a ':'-terminated path #' */
  54819. + int len = strlen (new_value);
  54820. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  54821. + {
  54822. + new_value[len-1] = '\0';
  54823. + }
  54824. + lt_setenv (name, new_value);
  54825. + XFREE (new_value);
  54826. + }
  54827. +}
  54828. - if test "$dlself" = yes; then
  54829. - $show "generating symbol list for \`$output'"
  54830. +void
  54831. +lt_update_lib_path (const char *name, const char *value)
  54832. +{
  54833. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  54834. + (name ? name : "<NULL>"),
  54835. + (value ? value : "<NULL>")));
  54836. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  54837. + if (name && *name && value && *value)
  54838. + {
  54839. + char *new_value = lt_extend_str (getenv (name), value, 0);
  54840. + lt_setenv (name, new_value);
  54841. + XFREE (new_value);
  54842. + }
  54843. +}
  54844. - # Add our own program objects to the symbol list.
  54845. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54846. - for arg in $progfiles; do
  54847. - $show "extracting global C symbols from \`$arg'"
  54848. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  54849. - done
  54850. - if test -n "$exclude_expsyms"; then
  54851. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  54852. - $run eval '$mv "$nlist"T "$nlist"'
  54853. - fi
  54854. -
  54855. - if test -n "$export_symbols_regex"; then
  54856. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  54857. - $run eval '$mv "$nlist"T "$nlist"'
  54858. - fi
  54859. -
  54860. - # Prepare the list of exported symbols
  54861. - if test -z "$export_symbols"; then
  54862. - export_symbols="$output_objdir/$outputname.exp"
  54863. - $run $rm $export_symbols
  54864. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  54865. - case $host in
  54866. - *cygwin* | *mingw* )
  54867. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  54868. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  54869. - ;;
  54870. - esac
  54871. - else
  54872. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  54873. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  54874. - $run eval 'mv "$nlist"T "$nlist"'
  54875. - case $host in
  54876. - *cygwin* | *mingw* )
  54877. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  54878. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  54879. - ;;
  54880. - esac
  54881. - fi
  54882. - fi
  54883. +EOF
  54884. +}
  54885. +# end: func_emit_cwrapperexe_src
  54886. - for arg in $dlprefiles; do
  54887. - $show "extracting global C symbols from \`$arg'"
  54888. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  54889. - $run eval '$echo ": $name " >> "$nlist"'
  54890. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  54891. - done
  54892. +# func_mode_link arg...
  54893. +func_mode_link ()
  54894. +{
  54895. + $opt_debug
  54896. + case $host in
  54897. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  54898. + # It is impossible to link a dll without this setting, and
  54899. + # we shouldn't force the makefile maintainer to figure out
  54900. + # which system we are compiling for in order to pass an extra
  54901. + # flag for every libtool invocation.
  54902. + # allow_undefined=no
  54903. - if test -z "$run"; then
  54904. - # Make sure we have at least an empty file.
  54905. - test -f "$nlist" || : > "$nlist"
  54906. -
  54907. - if test -n "$exclude_expsyms"; then
  54908. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  54909. - $mv "$nlist"T "$nlist"
  54910. - fi
  54911. -
  54912. - # Try sorting and uniquifying the output.
  54913. - if grep -v "^: " < "$nlist" |
  54914. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  54915. - sort -k 3
  54916. - else
  54917. - sort +2
  54918. - fi |
  54919. - uniq > "$nlist"S; then
  54920. - :
  54921. - else
  54922. - grep -v "^: " < "$nlist" > "$nlist"S
  54923. - fi
  54924. -
  54925. - if test -f "$nlist"S; then
  54926. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  54927. - else
  54928. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  54929. - fi
  54930. -
  54931. - $echo >> "$output_objdir/$dlsyms" "\
  54932. -
  54933. -#undef lt_preloaded_symbols
  54934. -
  54935. -#if defined (__STDC__) && __STDC__
  54936. -# define lt_ptr void *
  54937. -#else
  54938. -# define lt_ptr char *
  54939. -# define const
  54940. -#endif
  54941. -
  54942. -/* The mapping between symbol names and symbols. */
  54943. -"
  54944. + # FIXME: Unfortunately, there are problems with the above when trying
  54945. + # to make a dll which has undefined symbols, in which case not
  54946. + # even a static library is built. For now, we need to specify
  54947. + # -no-undefined on the libtool link line when we can be certain
  54948. + # that all symbols are satisfied, otherwise we get a static library.
  54949. + allow_undefined=yes
  54950. + ;;
  54951. + *)
  54952. + allow_undefined=yes
  54953. + ;;
  54954. + esac
  54955. + libtool_args=$nonopt
  54956. + base_compile="$nonopt $@"
  54957. + compile_command=$nonopt
  54958. + finalize_command=$nonopt
  54959. - case $host in
  54960. - *cygwin* | *mingw* )
  54961. - $echo >> "$output_objdir/$dlsyms" "\
  54962. -/* DATA imports from DLLs on WIN32 can't be const, because
  54963. - runtime relocations are performed -- see ld's documentation
  54964. - on pseudo-relocs */
  54965. -struct {
  54966. -"
  54967. - ;;
  54968. - * )
  54969. - $echo >> "$output_objdir/$dlsyms" "\
  54970. -const struct {
  54971. -"
  54972. - ;;
  54973. - esac
  54974. + compile_rpath=
  54975. + finalize_rpath=
  54976. + compile_shlibpath=
  54977. + finalize_shlibpath=
  54978. + convenience=
  54979. + old_convenience=
  54980. + deplibs=
  54981. + old_deplibs=
  54982. + compiler_flags=
  54983. + linker_flags=
  54984. + dllsearchpath=
  54985. + lib_search_path=`pwd`
  54986. + inst_prefix_dir=
  54987. + new_inherited_linker_flags=
  54988. + avoid_version=no
  54989. + dlfiles=
  54990. + dlprefiles=
  54991. + dlself=no
  54992. + export_dynamic=no
  54993. + export_symbols=
  54994. + export_symbols_regex=
  54995. + generated=
  54996. + libobjs=
  54997. + ltlibs=
  54998. + module=no
  54999. + no_install=no
  55000. + objs=
  55001. + non_pic_objects=
  55002. + precious_files_regex=
  55003. + prefer_static_libs=no
  55004. + preload=no
  55005. + prev=
  55006. + prevarg=
  55007. + release=
  55008. + rpath=
  55009. + xrpath=
  55010. + perm_rpath=
  55011. + temp_rpath=
  55012. + thread_safe=no
  55013. + vinfo=
  55014. + vinfo_number=no
  55015. + weak_libs=
  55016. + single_module="${wl}-single_module"
  55017. + func_infer_tag $base_compile
  55018. - $echo >> "$output_objdir/$dlsyms" "\
  55019. - const char *name;
  55020. - lt_ptr address;
  55021. -}
  55022. -lt_preloaded_symbols[] =
  55023. -{\
  55024. -"
  55025. + # We need to know -static, to get the right output filenames.
  55026. + for arg
  55027. + do
  55028. + case $arg in
  55029. + -shared)
  55030. + test "$build_libtool_libs" != yes && \
  55031. + func_fatal_configuration "can not build a shared library"
  55032. + build_old_libs=no
  55033. + break
  55034. + ;;
  55035. + -all-static | -static | -static-libtool-libs)
  55036. + case $arg in
  55037. + -all-static)
  55038. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  55039. + func_warning "complete static linking is impossible in this configuration"
  55040. + fi
  55041. + if test -n "$link_static_flag"; then
  55042. + dlopen_self=$dlopen_self_static
  55043. + fi
  55044. + prefer_static_libs=yes
  55045. + ;;
  55046. + -static)
  55047. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  55048. + dlopen_self=$dlopen_self_static
  55049. + fi
  55050. + prefer_static_libs=built
  55051. + ;;
  55052. + -static-libtool-libs)
  55053. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  55054. + dlopen_self=$dlopen_self_static
  55055. + fi
  55056. + prefer_static_libs=yes
  55057. + ;;
  55058. + esac
  55059. + build_libtool_libs=no
  55060. + build_old_libs=yes
  55061. + break
  55062. + ;;
  55063. + esac
  55064. + done
  55065. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  55066. + # See if our shared archives depend on static archives.
  55067. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  55068. - $echo >> "$output_objdir/$dlsyms" "\
  55069. - {0, (lt_ptr) 0}
  55070. -};
  55071. + # Go through the arguments, transforming them on the way.
  55072. + while test "$#" -gt 0; do
  55073. + arg="$1"
  55074. + shift
  55075. + func_quote_for_eval "$arg"
  55076. + qarg=$func_quote_for_eval_unquoted_result
  55077. + func_append libtool_args " $func_quote_for_eval_result"
  55078. -/* This works around a problem in FreeBSD linker */
  55079. -#ifdef FREEBSD_WORKAROUND
  55080. -static const void *lt_preloaded_setup() {
  55081. - return lt_preloaded_symbols;
  55082. -}
  55083. -#endif
  55084. + # If the previous option needs an argument, assign it.
  55085. + if test -n "$prev"; then
  55086. + case $prev in
  55087. + output)
  55088. + func_append compile_command " @OUTPUT@"
  55089. + func_append finalize_command " @OUTPUT@"
  55090. + ;;
  55091. + esac
  55092. -#ifdef __cplusplus
  55093. -}
  55094. -#endif\
  55095. -"
  55096. + case $prev in
  55097. + dlfiles|dlprefiles)
  55098. + if test "$preload" = no; then
  55099. + # Add the symbol object into the linking commands.
  55100. + func_append compile_command " @SYMFILE@"
  55101. + func_append finalize_command " @SYMFILE@"
  55102. + preload=yes
  55103. fi
  55104. -
  55105. - pic_flag_for_symtable=
  55106. + case $arg in
  55107. + *.la | *.lo) ;; # We handle these cases below.
  55108. + force)
  55109. + if test "$dlself" = no; then
  55110. + dlself=needless
  55111. + export_dynamic=yes
  55112. + fi
  55113. + prev=
  55114. + continue
  55115. + ;;
  55116. + self)
  55117. + if test "$prev" = dlprefiles; then
  55118. + dlself=yes
  55119. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  55120. + dlself=yes
  55121. + else
  55122. + dlself=needless
  55123. + export_dynamic=yes
  55124. + fi
  55125. + prev=
  55126. + continue
  55127. + ;;
  55128. + *)
  55129. + if test "$prev" = dlfiles; then
  55130. + dlfiles="$dlfiles $arg"
  55131. + else
  55132. + dlprefiles="$dlprefiles $arg"
  55133. + fi
  55134. + prev=
  55135. + continue
  55136. + ;;
  55137. + esac
  55138. + ;;
  55139. + expsyms)
  55140. + export_symbols="$arg"
  55141. + test -f "$arg" \
  55142. + || func_fatal_error "symbol file \`$arg' does not exist"
  55143. + prev=
  55144. + continue
  55145. + ;;
  55146. + expsyms_regex)
  55147. + export_symbols_regex="$arg"
  55148. + prev=
  55149. + continue
  55150. + ;;
  55151. + framework)
  55152. case $host in
  55153. - # compiling the symbol table file with pic_flag works around
  55154. - # a FreeBSD bug that causes programs to crash when -lm is
  55155. - # linked before any other PIC object. But we must not use
  55156. - # pic_flag when linking with -static. The problem exists in
  55157. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  55158. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  55159. - case "$compile_command " in
  55160. - *" -static "*) ;;
  55161. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  55162. - esac;;
  55163. - *-*-hpux*)
  55164. - case "$compile_command " in
  55165. - *" -static "*) ;;
  55166. - *) pic_flag_for_symtable=" $pic_flag";;
  55167. - esac
  55168. + *-*-darwin*)
  55169. + case "$deplibs " in
  55170. + *" $qarg.ltframework "*) ;;
  55171. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  55172. + ;;
  55173. + esac
  55174. + ;;
  55175. esac
  55176. -
  55177. - # Now compile the dynamic symbol file.
  55178. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  55179. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  55180. -
  55181. - # Clean up the generated files.
  55182. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  55183. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  55184. -
  55185. - # Transform the symbol file into the correct name.
  55186. - case $host in
  55187. - *cygwin* | *mingw* )
  55188. - if test -f "$output_objdir/${outputname}.def" ; then
  55189. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55190. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55191. - else
  55192. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55193. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55194. - fi
  55195. - ;;
  55196. - * )
  55197. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55198. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  55199. - ;;
  55200. - esac
  55201. + prev=
  55202. + continue
  55203. ;;
  55204. - *)
  55205. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  55206. - exit $EXIT_FAILURE
  55207. + inst_prefix)
  55208. + inst_prefix_dir="$arg"
  55209. + prev=
  55210. + continue
  55211. ;;
  55212. - esac
  55213. - else
  55214. - # We keep going just in case the user didn't refer to
  55215. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  55216. - # really was required.
  55217. + objectlist)
  55218. + if test -f "$arg"; then
  55219. + save_arg=$arg
  55220. + moreargs=
  55221. + for fil in `cat "$save_arg"`
  55222. + do
  55223. +# moreargs="$moreargs $fil"
  55224. + arg=$fil
  55225. + # A libtool-controlled object.
  55226. - # Nullify the symbol file.
  55227. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  55228. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  55229. - fi
  55230. + # Check to see that this really is a libtool object.
  55231. + if func_lalib_unsafe_p "$arg"; then
  55232. + pic_object=
  55233. + non_pic_object=
  55234. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  55235. - # Replace the output file specification.
  55236. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  55237. - link_command="$compile_command$compile_rpath"
  55238. + # Read the .lo file
  55239. + func_source "$arg"
  55240. - # We have no uninstalled library dependencies, so finalize right now.
  55241. - $show "$link_command"
  55242. - $run eval "$link_command"
  55243. - exit_status=$?
  55244. + if test -z "$pic_object" ||
  55245. + test -z "$non_pic_object" ||
  55246. + test "$pic_object" = none &&
  55247. + test "$non_pic_object" = none; then
  55248. + func_fatal_error "cannot find name of object for \`$arg'"
  55249. + fi
  55250. - # Delete the generated files.
  55251. - if test -n "$dlsyms"; then
  55252. - $show "$rm $output_objdir/${outputname}S.${objext}"
  55253. - $run $rm "$output_objdir/${outputname}S.${objext}"
  55254. - fi
  55255. + # Extract subdirectory from the argument.
  55256. + func_dirname "$arg" "/" ""
  55257. + xdir="$func_dirname_result"
  55258. - exit $exit_status
  55259. - fi
  55260. + if test "$pic_object" != none; then
  55261. + # Prepend the subdirectory the object is found in.
  55262. + pic_object="$xdir$pic_object"
  55263. - if test -n "$shlibpath_var"; then
  55264. - # We should set the shlibpath_var
  55265. - rpath=
  55266. - for dir in $temp_rpath; do
  55267. - case $dir in
  55268. - [\\/]* | [A-Za-z]:[\\/]*)
  55269. - # Absolute path.
  55270. - rpath="$rpath$dir:"
  55271. - ;;
  55272. - *)
  55273. - # Relative path: add a thisdir entry.
  55274. - rpath="$rpath\$thisdir/$dir:"
  55275. - ;;
  55276. - esac
  55277. - done
  55278. - temp_rpath="$rpath"
  55279. - fi
  55280. + if test "$prev" = dlfiles; then
  55281. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  55282. + dlfiles="$dlfiles $pic_object"
  55283. + prev=
  55284. + continue
  55285. + else
  55286. + # If libtool objects are unsupported, then we need to preload.
  55287. + prev=dlprefiles
  55288. + fi
  55289. + fi
  55290. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  55291. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  55292. - fi
  55293. - if test -n "$finalize_shlibpath"; then
  55294. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  55295. - fi
  55296. + # CHECK ME: I think I busted this. -Ossama
  55297. + if test "$prev" = dlprefiles; then
  55298. + # Preload the old-style object.
  55299. + dlprefiles="$dlprefiles $pic_object"
  55300. + prev=
  55301. + fi
  55302. - compile_var=
  55303. - finalize_var=
  55304. - if test -n "$runpath_var"; then
  55305. - if test -n "$perm_rpath"; then
  55306. - # We should set the runpath_var.
  55307. - rpath=
  55308. - for dir in $perm_rpath; do
  55309. - rpath="$rpath$dir:"
  55310. - done
  55311. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  55312. - fi
  55313. - if test -n "$finalize_perm_rpath"; then
  55314. - # We should set the runpath_var.
  55315. - rpath=
  55316. - for dir in $finalize_perm_rpath; do
  55317. - rpath="$rpath$dir:"
  55318. - done
  55319. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  55320. - fi
  55321. - fi
  55322. + # A PIC object.
  55323. + func_append libobjs " $pic_object"
  55324. + arg="$pic_object"
  55325. + fi
  55326. - if test "$no_install" = yes; then
  55327. - # We don't need to create a wrapper script.
  55328. - link_command="$compile_var$compile_command$compile_rpath"
  55329. - # Replace the output file specification.
  55330. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  55331. - # Delete the old output file.
  55332. - $run $rm $output
  55333. - # Link the executable and exit
  55334. - $show "$link_command"
  55335. - $run eval "$link_command" || exit $?
  55336. - exit $EXIT_SUCCESS
  55337. - fi
  55338. + # Non-PIC object.
  55339. + if test "$non_pic_object" != none; then
  55340. + # Prepend the subdirectory the object is found in.
  55341. + non_pic_object="$xdir$non_pic_object"
  55342. - if test "$hardcode_action" = relink; then
  55343. - # Fast installation is not supported
  55344. - link_command="$compile_var$compile_command$compile_rpath"
  55345. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  55346. + # A standard non-PIC object
  55347. + func_append non_pic_objects " $non_pic_object"
  55348. + if test -z "$pic_object" || test "$pic_object" = none ; then
  55349. + arg="$non_pic_object"
  55350. + fi
  55351. + else
  55352. + # If the PIC object exists, use it instead.
  55353. + # $xdir was prepended to $pic_object above.
  55354. + non_pic_object="$pic_object"
  55355. + func_append non_pic_objects " $non_pic_object"
  55356. + fi
  55357. + else
  55358. + # Only an error if not doing a dry-run.
  55359. + if $opt_dry_run; then
  55360. + # Extract subdirectory from the argument.
  55361. + func_dirname "$arg" "/" ""
  55362. + xdir="$func_dirname_result"
  55363. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  55364. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  55365. - else
  55366. - if test "$fast_install" != no; then
  55367. - link_command="$finalize_var$compile_command$finalize_rpath"
  55368. - if test "$fast_install" = yes; then
  55369. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  55370. + func_lo2o "$arg"
  55371. + pic_object=$xdir$objdir/$func_lo2o_result
  55372. + non_pic_object=$xdir$func_lo2o_result
  55373. + func_append libobjs " $pic_object"
  55374. + func_append non_pic_objects " $non_pic_object"
  55375. + else
  55376. + func_fatal_error "\`$arg' is not a valid libtool object"
  55377. + fi
  55378. + fi
  55379. + done
  55380. else
  55381. - # fast_install is set to needless
  55382. - relink_command=
  55383. + func_fatal_error "link input file \`$arg' does not exist"
  55384. fi
  55385. - else
  55386. - link_command="$compile_var$compile_command$compile_rpath"
  55387. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  55388. - fi
  55389. - fi
  55390. -
  55391. - # Replace the output file specification.
  55392. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  55393. -
  55394. - # Delete the old output files.
  55395. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  55396. -
  55397. - $show "$link_command"
  55398. - $run eval "$link_command" || exit $?
  55399. -
  55400. - # Now create the wrapper script.
  55401. - $show "creating $output"
  55402. -
  55403. - # Quote the relink command for shipping.
  55404. - if test -n "$relink_command"; then
  55405. - # Preserve any variables that may affect compiler behavior
  55406. - for var in $variables_saved_for_relink; do
  55407. - if eval test -z \"\${$var+set}\"; then
  55408. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  55409. - elif eval var_value=\$$var; test -z "$var_value"; then
  55410. - relink_command="$var=; export $var; $relink_command"
  55411. + arg=$save_arg
  55412. + prev=
  55413. + continue
  55414. + ;;
  55415. + precious_regex)
  55416. + precious_files_regex="$arg"
  55417. + prev=
  55418. + continue
  55419. + ;;
  55420. + release)
  55421. + release="-$arg"
  55422. + prev=
  55423. + continue
  55424. + ;;
  55425. + rpath | xrpath)
  55426. + # We need an absolute path.
  55427. + case $arg in
  55428. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55429. + *)
  55430. + func_fatal_error "only absolute run-paths are allowed"
  55431. + ;;
  55432. + esac
  55433. + if test "$prev" = rpath; then
  55434. + case "$rpath " in
  55435. + *" $arg "*) ;;
  55436. + *) rpath="$rpath $arg" ;;
  55437. + esac
  55438. else
  55439. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  55440. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  55441. + case "$xrpath " in
  55442. + *" $arg "*) ;;
  55443. + *) xrpath="$xrpath $arg" ;;
  55444. + esac
  55445. fi
  55446. - done
  55447. - relink_command="(cd `pwd`; $relink_command)"
  55448. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  55449. - fi
  55450. -
  55451. - # Quote $echo for shipping.
  55452. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  55453. - case $progpath in
  55454. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  55455. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  55456. + prev=
  55457. + continue
  55458. + ;;
  55459. + shrext)
  55460. + shrext_cmds="$arg"
  55461. + prev=
  55462. + continue
  55463. + ;;
  55464. + weak)
  55465. + weak_libs="$weak_libs $arg"
  55466. + prev=
  55467. + continue
  55468. + ;;
  55469. + xcclinker)
  55470. + linker_flags="$linker_flags $qarg"
  55471. + compiler_flags="$compiler_flags $qarg"
  55472. + prev=
  55473. + func_append compile_command " $qarg"
  55474. + func_append finalize_command " $qarg"
  55475. + continue
  55476. + ;;
  55477. + xcompiler)
  55478. + compiler_flags="$compiler_flags $qarg"
  55479. + prev=
  55480. + func_append compile_command " $qarg"
  55481. + func_append finalize_command " $qarg"
  55482. + continue
  55483. + ;;
  55484. + xlinker)
  55485. + linker_flags="$linker_flags $qarg"
  55486. + compiler_flags="$compiler_flags $wl$qarg"
  55487. + prev=
  55488. + func_append compile_command " $wl$qarg"
  55489. + func_append finalize_command " $wl$qarg"
  55490. + continue
  55491. + ;;
  55492. + *)
  55493. + eval "$prev=\"\$arg\""
  55494. + prev=
  55495. + continue
  55496. + ;;
  55497. esac
  55498. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  55499. - else
  55500. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  55501. - fi
  55502. + fi # test -n "$prev"
  55503. - # Only actually do things if our run command is non-null.
  55504. - if test -z "$run"; then
  55505. - # win32 will think the script is a binary if it has
  55506. - # a .exe suffix, so we strip it off here.
  55507. - case $output in
  55508. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  55509. - esac
  55510. - # test for cygwin because mv fails w/o .exe extensions
  55511. - case $host in
  55512. - *cygwin*)
  55513. - exeext=.exe
  55514. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  55515. - *) exeext= ;;
  55516. - esac
  55517. - case $host in
  55518. - *cygwin* | *mingw* )
  55519. - output_name=`basename $output`
  55520. - output_path=`dirname $output`
  55521. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  55522. - cwrapper="$output_path/$output_name.exe"
  55523. - $rm $cwrappersource $cwrapper
  55524. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  55525. + prevarg="$arg"
  55526. - cat > $cwrappersource <<EOF
  55527. + case $arg in
  55528. + -all-static)
  55529. + if test -n "$link_static_flag"; then
  55530. + # See comment for -static flag below, for more details.
  55531. + func_append compile_command " $link_static_flag"
  55532. + func_append finalize_command " $link_static_flag"
  55533. + fi
  55534. + continue
  55535. + ;;
  55536. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  55537. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  55538. + -allow-undefined)
  55539. + # FIXME: remove this flag sometime in the future.
  55540. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  55541. + ;;
  55542. - The $output program cannot be directly executed until all the libtool
  55543. - libraries that it depends on are installed.
  55544. + -avoid-version)
  55545. + avoid_version=yes
  55546. + continue
  55547. + ;;
  55548. - This wrapper executable should never be moved out of the build directory.
  55549. - If it is, it will not operate correctly.
  55550. + -dlopen)
  55551. + prev=dlfiles
  55552. + continue
  55553. + ;;
  55554. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  55555. - but could eventually absorb all of the scripts functionality and
  55556. - exec $objdir/$outputname directly.
  55557. -*/
  55558. -EOF
  55559. - cat >> $cwrappersource<<"EOF"
  55560. -#include <stdio.h>
  55561. -#include <stdlib.h>
  55562. -#include <unistd.h>
  55563. -#include <malloc.h>
  55564. -#include <stdarg.h>
  55565. -#include <assert.h>
  55566. -#include <string.h>
  55567. -#include <ctype.h>
  55568. -#include <sys/stat.h>
  55569. + -dlpreopen)
  55570. + prev=dlprefiles
  55571. + continue
  55572. + ;;
  55573. -#if defined(PATH_MAX)
  55574. -# define LT_PATHMAX PATH_MAX
  55575. -#elif defined(MAXPATHLEN)
  55576. -# define LT_PATHMAX MAXPATHLEN
  55577. -#else
  55578. -# define LT_PATHMAX 1024
  55579. -#endif
  55580. + -export-dynamic)
  55581. + export_dynamic=yes
  55582. + continue
  55583. + ;;
  55584. -#ifndef DIR_SEPARATOR
  55585. -# define DIR_SEPARATOR '/'
  55586. -# define PATH_SEPARATOR ':'
  55587. -#endif
  55588. + -export-symbols | -export-symbols-regex)
  55589. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  55590. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  55591. + fi
  55592. + if test "X$arg" = "X-export-symbols"; then
  55593. + prev=expsyms
  55594. + else
  55595. + prev=expsyms_regex
  55596. + fi
  55597. + continue
  55598. + ;;
  55599. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  55600. - defined (__OS2__)
  55601. -# define HAVE_DOS_BASED_FILE_SYSTEM
  55602. -# ifndef DIR_SEPARATOR_2
  55603. -# define DIR_SEPARATOR_2 '\\'
  55604. -# endif
  55605. -# ifndef PATH_SEPARATOR_2
  55606. -# define PATH_SEPARATOR_2 ';'
  55607. -# endif
  55608. -#endif
  55609. + -framework)
  55610. + prev=framework
  55611. + continue
  55612. + ;;
  55613. -#ifndef DIR_SEPARATOR_2
  55614. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  55615. -#else /* DIR_SEPARATOR_2 */
  55616. -# define IS_DIR_SEPARATOR(ch) \
  55617. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  55618. -#endif /* DIR_SEPARATOR_2 */
  55619. + -inst-prefix-dir)
  55620. + prev=inst_prefix
  55621. + continue
  55622. + ;;
  55623. -#ifndef PATH_SEPARATOR_2
  55624. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  55625. -#else /* PATH_SEPARATOR_2 */
  55626. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  55627. -#endif /* PATH_SEPARATOR_2 */
  55628. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  55629. + # so, if we see these flags be careful not to treat them like -L
  55630. + -L[A-Z][A-Z]*:*)
  55631. + case $with_gcc/$host in
  55632. + no/*-*-irix* | /*-*-irix*)
  55633. + func_append compile_command " $arg"
  55634. + func_append finalize_command " $arg"
  55635. + ;;
  55636. + esac
  55637. + continue
  55638. + ;;
  55639. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  55640. -#define XFREE(stale) do { \
  55641. - if (stale) { free ((void *) stale); stale = 0; } \
  55642. -} while (0)
  55643. + -L*)
  55644. + func_stripname '-L' '' "$arg"
  55645. + dir=$func_stripname_result
  55646. + if test -z "$dir"; then
  55647. + if test "$#" -gt 0; then
  55648. + func_fatal_error "require no space between \`-L' and \`$1'"
  55649. + else
  55650. + func_fatal_error "need path for \`-L' option"
  55651. + fi
  55652. + fi
  55653. + # We need an absolute path.
  55654. + case $dir in
  55655. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55656. + *)
  55657. + absdir=`cd "$dir" && pwd`
  55658. + test -z "$absdir" && \
  55659. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  55660. + dir="$absdir"
  55661. + ;;
  55662. + esac
  55663. + case "$deplibs " in
  55664. + *" -L$dir "*) ;;
  55665. + *)
  55666. + deplibs="$deplibs -L$dir"
  55667. + lib_search_path="$lib_search_path $dir"
  55668. + ;;
  55669. + esac
  55670. + case $host in
  55671. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  55672. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  55673. + case :$dllsearchpath: in
  55674. + *":$dir:"*) ;;
  55675. + ::) dllsearchpath=$dir;;
  55676. + *) dllsearchpath="$dllsearchpath:$dir";;
  55677. + esac
  55678. + case :$dllsearchpath: in
  55679. + *":$testbindir:"*) ;;
  55680. + ::) dllsearchpath=$testbindir;;
  55681. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  55682. + esac
  55683. + ;;
  55684. + esac
  55685. + continue
  55686. + ;;
  55687. -/* -DDEBUG is fairly common in CFLAGS. */
  55688. -#undef DEBUG
  55689. -#if defined DEBUGWRAPPER
  55690. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  55691. -#else
  55692. -# define DEBUG(format, ...)
  55693. -#endif
  55694. + -l*)
  55695. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  55696. + case $host in
  55697. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  55698. + # These systems don't actually have a C or math library (as such)
  55699. + continue
  55700. + ;;
  55701. + *-*-os2*)
  55702. + # These systems don't actually have a C library (as such)
  55703. + test "X$arg" = "X-lc" && continue
  55704. + ;;
  55705. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55706. + # Do not include libc due to us having libc/libc_r.
  55707. + test "X$arg" = "X-lc" && continue
  55708. + ;;
  55709. + *-*-rhapsody* | *-*-darwin1.[012])
  55710. + # Rhapsody C and math libraries are in the System framework
  55711. + deplibs="$deplibs System.ltframework"
  55712. + continue
  55713. + ;;
  55714. + *-*-sco3.2v5* | *-*-sco5v6*)
  55715. + # Causes problems with __ctype
  55716. + test "X$arg" = "X-lc" && continue
  55717. + ;;
  55718. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  55719. + # Compiler inserts libc in the correct place for threads to work
  55720. + test "X$arg" = "X-lc" && continue
  55721. + ;;
  55722. + esac
  55723. + elif test "X$arg" = "X-lc_r"; then
  55724. + case $host in
  55725. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55726. + # Do not include libc_r directly, use -pthread flag.
  55727. + continue
  55728. + ;;
  55729. + esac
  55730. + fi
  55731. + deplibs="$deplibs $arg"
  55732. + continue
  55733. + ;;
  55734. -const char *program_name = NULL;
  55735. + -module)
  55736. + module=yes
  55737. + continue
  55738. + ;;
  55739. -void * xmalloc (size_t num);
  55740. -char * xstrdup (const char *string);
  55741. -const char * base_name (const char *name);
  55742. -char * find_executable(const char *wrapper);
  55743. -int check_executable(const char *path);
  55744. -char * strendzap(char *str, const char *pat);
  55745. -void lt_fatal (const char *message, ...);
  55746. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  55747. + # classes, name mangling, and exception handling.
  55748. + # Darwin uses the -arch flag to determine output architecture.
  55749. + -model|-arch|-isysroot)
  55750. + compiler_flags="$compiler_flags $arg"
  55751. + func_append compile_command " $arg"
  55752. + func_append finalize_command " $arg"
  55753. + prev=xcompiler
  55754. + continue
  55755. + ;;
  55756. -int
  55757. -main (int argc, char *argv[])
  55758. -{
  55759. - char **newargz;
  55760. - int i;
  55761. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  55762. + compiler_flags="$compiler_flags $arg"
  55763. + func_append compile_command " $arg"
  55764. + func_append finalize_command " $arg"
  55765. + case "$new_inherited_linker_flags " in
  55766. + *" $arg "*) ;;
  55767. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  55768. + esac
  55769. + continue
  55770. + ;;
  55771. - program_name = (char *) xstrdup (base_name (argv[0]));
  55772. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  55773. - DEBUG("(main) program_name : %s\n",program_name);
  55774. - newargz = XMALLOC(char *, argc+2);
  55775. -EOF
  55776. + -multi_module)
  55777. + single_module="${wl}-multi_module"
  55778. + continue
  55779. + ;;
  55780. - cat >> $cwrappersource <<EOF
  55781. - newargz[0] = (char *) xstrdup("$SHELL");
  55782. -EOF
  55783. + -no-fast-install)
  55784. + fast_install=no
  55785. + continue
  55786. + ;;
  55787. - cat >> $cwrappersource <<"EOF"
  55788. - newargz[1] = find_executable(argv[0]);
  55789. - if (newargz[1] == NULL)
  55790. - lt_fatal("Couldn't find %s", argv[0]);
  55791. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  55792. - /* we know the script has the same name, without the .exe */
  55793. - /* so make sure newargz[1] doesn't end in .exe */
  55794. - strendzap(newargz[1],".exe");
  55795. - for (i = 1; i < argc; i++)
  55796. - newargz[i+1] = xstrdup(argv[i]);
  55797. - newargz[argc+1] = NULL;
  55798. + -no-install)
  55799. + case $host in
  55800. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  55801. + # The PATH hackery in wrapper scripts is required on Windows
  55802. + # and Darwin in order for the loader to find any dlls it needs.
  55803. + func_warning "\`-no-install' is ignored for $host"
  55804. + func_warning "assuming \`-no-fast-install' instead"
  55805. + fast_install=no
  55806. + ;;
  55807. + *) no_install=yes ;;
  55808. + esac
  55809. + continue
  55810. + ;;
  55811. - for (i=0; i<argc+1; i++)
  55812. - {
  55813. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  55814. - ;
  55815. - }
  55816. + -no-undefined)
  55817. + allow_undefined=no
  55818. + continue
  55819. + ;;
  55820. -EOF
  55821. + -objectlist)
  55822. + prev=objectlist
  55823. + continue
  55824. + ;;
  55825. - case $host_os in
  55826. - mingw*)
  55827. - cat >> $cwrappersource <<EOF
  55828. - execv("$SHELL",(char const **)newargz);
  55829. -EOF
  55830. - ;;
  55831. - *)
  55832. - cat >> $cwrappersource <<EOF
  55833. - execv("$SHELL",newargz);
  55834. -EOF
  55835. - ;;
  55836. - esac
  55837. + -o) prev=output ;;
  55838. - cat >> $cwrappersource <<"EOF"
  55839. - return 127;
  55840. -}
  55841. + -precious-files-regex)
  55842. + prev=precious_regex
  55843. + continue
  55844. + ;;
  55845. -void *
  55846. -xmalloc (size_t num)
  55847. -{
  55848. - void * p = (void *) malloc (num);
  55849. - if (!p)
  55850. - lt_fatal ("Memory exhausted");
  55851. + -release)
  55852. + prev=release
  55853. + continue
  55854. + ;;
  55855. - return p;
  55856. -}
  55857. + -rpath)
  55858. + prev=rpath
  55859. + continue
  55860. + ;;
  55861. -char *
  55862. -xstrdup (const char *string)
  55863. -{
  55864. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  55865. -;
  55866. -}
  55867. + -R)
  55868. + prev=xrpath
  55869. + continue
  55870. + ;;
  55871. -const char *
  55872. -base_name (const char *name)
  55873. -{
  55874. - const char *base;
  55875. + -R*)
  55876. + func_stripname '-R' '' "$arg"
  55877. + dir=$func_stripname_result
  55878. + # We need an absolute path.
  55879. + case $dir in
  55880. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55881. + *)
  55882. + func_fatal_error "only absolute run-paths are allowed"
  55883. + ;;
  55884. + esac
  55885. + case "$xrpath " in
  55886. + *" $dir "*) ;;
  55887. + *) xrpath="$xrpath $dir" ;;
  55888. + esac
  55889. + continue
  55890. + ;;
  55891. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55892. - /* Skip over the disk name in MSDOS pathnames. */
  55893. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  55894. - name += 2;
  55895. -#endif
  55896. + -shared)
  55897. + # The effects of -shared are defined in a previous loop.
  55898. + continue
  55899. + ;;
  55900. - for (base = name; *name; name++)
  55901. - if (IS_DIR_SEPARATOR (*name))
  55902. - base = name + 1;
  55903. - return base;
  55904. -}
  55905. + -shrext)
  55906. + prev=shrext
  55907. + continue
  55908. + ;;
  55909. -int
  55910. -check_executable(const char * path)
  55911. -{
  55912. - struct stat st;
  55913. + -static | -static-libtool-libs)
  55914. + # The effects of -static are defined in a previous loop.
  55915. + # We used to do the same as -all-static on platforms that
  55916. + # didn't have a PIC flag, but the assumption that the effects
  55917. + # would be equivalent was wrong. It would break on at least
  55918. + # Digital Unix and AIX.
  55919. + continue
  55920. + ;;
  55921. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  55922. - if ((!path) || (!*path))
  55923. - return 0;
  55924. + -thread-safe)
  55925. + thread_safe=yes
  55926. + continue
  55927. + ;;
  55928. - if ((stat (path, &st) >= 0) &&
  55929. - (
  55930. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  55931. -#if defined (S_IXOTH)
  55932. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  55933. -#endif
  55934. -#if defined (S_IXGRP)
  55935. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  55936. -#endif
  55937. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  55938. - )
  55939. - return 1;
  55940. - else
  55941. - return 0;
  55942. -}
  55943. + -version-info)
  55944. + prev=vinfo
  55945. + continue
  55946. + ;;
  55947. -/* Searches for the full path of the wrapper. Returns
  55948. - newly allocated full path name if found, NULL otherwise */
  55949. -char *
  55950. -find_executable (const char* wrapper)
  55951. -{
  55952. - int has_slash = 0;
  55953. - const char* p;
  55954. - const char* p_next;
  55955. - /* static buffer for getcwd */
  55956. - char tmp[LT_PATHMAX + 1];
  55957. - int tmp_len;
  55958. - char* concat_name;
  55959. + -version-number)
  55960. + prev=vinfo
  55961. + vinfo_number=yes
  55962. + continue
  55963. + ;;
  55964. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  55965. + -weak)
  55966. + prev=weak
  55967. + continue
  55968. + ;;
  55969. - if ((wrapper == NULL) || (*wrapper == '\0'))
  55970. - return NULL;
  55971. + -Wc,*)
  55972. + func_stripname '-Wc,' '' "$arg"
  55973. + args=$func_stripname_result
  55974. + arg=
  55975. + save_ifs="$IFS"; IFS=','
  55976. + for flag in $args; do
  55977. + IFS="$save_ifs"
  55978. + func_quote_for_eval "$flag"
  55979. + arg="$arg $wl$func_quote_for_eval_result"
  55980. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  55981. + done
  55982. + IFS="$save_ifs"
  55983. + func_stripname ' ' '' "$arg"
  55984. + arg=$func_stripname_result
  55985. + ;;
  55986. - /* Absolute path? */
  55987. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55988. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  55989. - {
  55990. - concat_name = xstrdup (wrapper);
  55991. - if (check_executable(concat_name))
  55992. - return concat_name;
  55993. - XFREE(concat_name);
  55994. - }
  55995. - else
  55996. - {
  55997. -#endif
  55998. - if (IS_DIR_SEPARATOR (wrapper[0]))
  55999. - {
  56000. - concat_name = xstrdup (wrapper);
  56001. - if (check_executable(concat_name))
  56002. - return concat_name;
  56003. - XFREE(concat_name);
  56004. - }
  56005. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  56006. - }
  56007. -#endif
  56008. + -Wl,*)
  56009. + func_stripname '-Wl,' '' "$arg"
  56010. + args=$func_stripname_result
  56011. + arg=
  56012. + save_ifs="$IFS"; IFS=','
  56013. + for flag in $args; do
  56014. + IFS="$save_ifs"
  56015. + func_quote_for_eval "$flag"
  56016. + arg="$arg $wl$func_quote_for_eval_result"
  56017. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  56018. + linker_flags="$linker_flags $func_quote_for_eval_result"
  56019. + done
  56020. + IFS="$save_ifs"
  56021. + func_stripname ' ' '' "$arg"
  56022. + arg=$func_stripname_result
  56023. + ;;
  56024. - for (p = wrapper; *p; p++)
  56025. - if (*p == '/')
  56026. - {
  56027. - has_slash = 1;
  56028. - break;
  56029. - }
  56030. - if (!has_slash)
  56031. - {
  56032. - /* no slashes; search PATH */
  56033. - const char* path = getenv ("PATH");
  56034. - if (path != NULL)
  56035. - {
  56036. - for (p = path; *p; p = p_next)
  56037. - {
  56038. - const char* q;
  56039. - size_t p_len;
  56040. - for (q = p; *q; q++)
  56041. - if (IS_PATH_SEPARATOR(*q))
  56042. - break;
  56043. - p_len = q - p;
  56044. - p_next = (*q == '\0' ? q : q + 1);
  56045. - if (p_len == 0)
  56046. - {
  56047. - /* empty path: current directory */
  56048. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  56049. - lt_fatal ("getcwd failed");
  56050. - tmp_len = strlen(tmp);
  56051. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  56052. - memcpy (concat_name, tmp, tmp_len);
  56053. - concat_name[tmp_len] = '/';
  56054. - strcpy (concat_name + tmp_len + 1, wrapper);
  56055. - }
  56056. - else
  56057. - {
  56058. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  56059. - memcpy (concat_name, p, p_len);
  56060. - concat_name[p_len] = '/';
  56061. - strcpy (concat_name + p_len + 1, wrapper);
  56062. - }
  56063. - if (check_executable(concat_name))
  56064. - return concat_name;
  56065. - XFREE(concat_name);
  56066. - }
  56067. - }
  56068. - /* not found in PATH; assume curdir */
  56069. - }
  56070. - /* Relative path | not found in path: prepend cwd */
  56071. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  56072. - lt_fatal ("getcwd failed");
  56073. - tmp_len = strlen(tmp);
  56074. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  56075. - memcpy (concat_name, tmp, tmp_len);
  56076. - concat_name[tmp_len] = '/';
  56077. - strcpy (concat_name + tmp_len + 1, wrapper);
  56078. + -Xcompiler)
  56079. + prev=xcompiler
  56080. + continue
  56081. + ;;
  56082. - if (check_executable(concat_name))
  56083. - return concat_name;
  56084. - XFREE(concat_name);
  56085. - return NULL;
  56086. -}
  56087. + -Xlinker)
  56088. + prev=xlinker
  56089. + continue
  56090. + ;;
  56091. -char *
  56092. -strendzap(char *str, const char *pat)
  56093. -{
  56094. - size_t len, patlen;
  56095. + -XCClinker)
  56096. + prev=xcclinker
  56097. + continue
  56098. + ;;
  56099. - assert(str != NULL);
  56100. - assert(pat != NULL);
  56101. + # -msg_* for osf cc
  56102. + -msg_*)
  56103. + func_quote_for_eval "$arg"
  56104. + arg="$func_quote_for_eval_result"
  56105. + ;;
  56106. - len = strlen(str);
  56107. - patlen = strlen(pat);
  56108. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  56109. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  56110. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  56111. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  56112. + # -q* pass through compiler args for the IBM compiler
  56113. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  56114. + # compiler args for GCC
  56115. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  56116. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  56117. + # @file GCC response files
  56118. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  56119. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto)
  56120. + func_quote_for_eval "$arg"
  56121. + arg="$func_quote_for_eval_result"
  56122. + func_append compile_command " $arg"
  56123. + func_append finalize_command " $arg"
  56124. + compiler_flags="$compiler_flags $arg"
  56125. + continue
  56126. + ;;
  56127. - if (patlen <= len)
  56128. - {
  56129. - str += len - patlen;
  56130. - if (strcmp(str, pat) == 0)
  56131. - *str = '\0';
  56132. - }
  56133. - return str;
  56134. -}
  56135. + # Some other compiler flag.
  56136. + -* | +*)
  56137. + func_quote_for_eval "$arg"
  56138. + arg="$func_quote_for_eval_result"
  56139. + ;;
  56140. -static void
  56141. -lt_error_core (int exit_status, const char * mode,
  56142. - const char * message, va_list ap)
  56143. -{
  56144. - fprintf (stderr, "%s: %s: ", program_name, mode);
  56145. - vfprintf (stderr, message, ap);
  56146. - fprintf (stderr, ".\n");
  56147. + *.$objext)
  56148. + # A standard object.
  56149. + objs="$objs $arg"
  56150. + ;;
  56151. - if (exit_status >= 0)
  56152. - exit (exit_status);
  56153. -}
  56154. + *.lo)
  56155. + # A libtool-controlled object.
  56156. -void
  56157. -lt_fatal (const char *message, ...)
  56158. -{
  56159. - va_list ap;
  56160. - va_start (ap, message);
  56161. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  56162. - va_end (ap);
  56163. -}
  56164. -EOF
  56165. - # we should really use a build-platform specific compiler
  56166. - # here, but OTOH, the wrappers (shell script and this C one)
  56167. - # are only useful if you want to execute the "real" binary.
  56168. - # Since the "real" binary is built for $host, then this
  56169. - # wrapper might as well be built for $host, too.
  56170. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  56171. - ;;
  56172. - esac
  56173. - $rm $output
  56174. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  56175. + # Check to see that this really is a libtool object.
  56176. + if func_lalib_unsafe_p "$arg"; then
  56177. + pic_object=
  56178. + non_pic_object=
  56179. - $echo > $output "\
  56180. -#! $SHELL
  56181. + # Read the .lo file
  56182. + func_source "$arg"
  56183. -# $output - temporary wrapper script for $objdir/$outputname
  56184. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  56185. -#
  56186. -# The $output program cannot be directly executed until all the libtool
  56187. -# libraries that it depends on are installed.
  56188. -#
  56189. -# This wrapper script should never be moved out of the build directory.
  56190. -# If it is, it will not operate correctly.
  56191. + if test -z "$pic_object" ||
  56192. + test -z "$non_pic_object" ||
  56193. + test "$pic_object" = none &&
  56194. + test "$non_pic_object" = none; then
  56195. + func_fatal_error "cannot find name of object for \`$arg'"
  56196. + fi
  56197. -# Sed substitution that helps us do robust quoting. It backslashifies
  56198. -# metacharacters that are still active within double-quoted strings.
  56199. -Xsed='${SED} -e 1s/^X//'
  56200. -sed_quote_subst='$sed_quote_subst'
  56201. + # Extract subdirectory from the argument.
  56202. + func_dirname "$arg" "/" ""
  56203. + xdir="$func_dirname_result"
  56204. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  56205. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  56206. - emulate sh
  56207. - NULLCMD=:
  56208. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  56209. - # is contrary to our usage. Disable this feature.
  56210. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  56211. - setopt NO_GLOB_SUBST
  56212. -else
  56213. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  56214. -fi
  56215. -BIN_SH=xpg4; export BIN_SH # for Tru64
  56216. -DUALCASE=1; export DUALCASE # for MKS sh
  56217. + if test "$pic_object" != none; then
  56218. + # Prepend the subdirectory the object is found in.
  56219. + pic_object="$xdir$pic_object"
  56220. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  56221. -# if CDPATH is set.
  56222. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  56223. + if test "$prev" = dlfiles; then
  56224. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  56225. + dlfiles="$dlfiles $pic_object"
  56226. + prev=
  56227. + continue
  56228. + else
  56229. + # If libtool objects are unsupported, then we need to preload.
  56230. + prev=dlprefiles
  56231. + fi
  56232. + fi
  56233. -relink_command=\"$relink_command\"
  56234. + # CHECK ME: I think I busted this. -Ossama
  56235. + if test "$prev" = dlprefiles; then
  56236. + # Preload the old-style object.
  56237. + dlprefiles="$dlprefiles $pic_object"
  56238. + prev=
  56239. + fi
  56240. -# This environment variable determines our operation mode.
  56241. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  56242. - # install mode needs the following variable:
  56243. - notinst_deplibs='$notinst_deplibs'
  56244. -else
  56245. - # When we are sourced in execute mode, \$file and \$echo are already set.
  56246. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  56247. - echo=\"$qecho\"
  56248. - file=\"\$0\"
  56249. - # Make sure echo works.
  56250. - if test \"X\$1\" = X--no-reexec; then
  56251. - # Discard the --no-reexec flag, and continue.
  56252. - shift
  56253. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  56254. - # Yippee, \$echo works!
  56255. - :
  56256. - else
  56257. - # Restart under the correct shell, and then maybe \$echo will work.
  56258. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  56259. - fi
  56260. - fi\
  56261. -"
  56262. - $echo >> $output "\
  56263. + # A PIC object.
  56264. + func_append libobjs " $pic_object"
  56265. + arg="$pic_object"
  56266. + fi
  56267. - # Find the directory that this script lives in.
  56268. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  56269. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  56270. + # Non-PIC object.
  56271. + if test "$non_pic_object" != none; then
  56272. + # Prepend the subdirectory the object is found in.
  56273. + non_pic_object="$xdir$non_pic_object"
  56274. - # Follow symbolic links until we get to the real thisdir.
  56275. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  56276. - while test -n \"\$file\"; do
  56277. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  56278. + # A standard non-PIC object
  56279. + func_append non_pic_objects " $non_pic_object"
  56280. + if test -z "$pic_object" || test "$pic_object" = none ; then
  56281. + arg="$non_pic_object"
  56282. + fi
  56283. + else
  56284. + # If the PIC object exists, use it instead.
  56285. + # $xdir was prepended to $pic_object above.
  56286. + non_pic_object="$pic_object"
  56287. + func_append non_pic_objects " $non_pic_object"
  56288. + fi
  56289. + else
  56290. + # Only an error if not doing a dry-run.
  56291. + if $opt_dry_run; then
  56292. + # Extract subdirectory from the argument.
  56293. + func_dirname "$arg" "/" ""
  56294. + xdir="$func_dirname_result"
  56295. - # If there was a directory component, then change thisdir.
  56296. - if test \"x\$destdir\" != \"x\$file\"; then
  56297. - case \"\$destdir\" in
  56298. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  56299. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  56300. - esac
  56301. - fi
  56302. + func_lo2o "$arg"
  56303. + pic_object=$xdir$objdir/$func_lo2o_result
  56304. + non_pic_object=$xdir$func_lo2o_result
  56305. + func_append libobjs " $pic_object"
  56306. + func_append non_pic_objects " $non_pic_object"
  56307. + else
  56308. + func_fatal_error "\`$arg' is not a valid libtool object"
  56309. + fi
  56310. + fi
  56311. + ;;
  56312. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  56313. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  56314. - done
  56315. + *.$libext)
  56316. + # An archive.
  56317. + deplibs="$deplibs $arg"
  56318. + old_deplibs="$old_deplibs $arg"
  56319. + continue
  56320. + ;;
  56321. - # Try to get the absolute directory name.
  56322. - absdir=\`cd \"\$thisdir\" && pwd\`
  56323. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  56324. -"
  56325. + *.la)
  56326. + # A libtool-controlled library.
  56327. +
  56328. + if test "$prev" = dlfiles; then
  56329. + # This library was specified with -dlopen.
  56330. + dlfiles="$dlfiles $arg"
  56331. + prev=
  56332. + elif test "$prev" = dlprefiles; then
  56333. + # The library was specified with -dlpreopen.
  56334. + dlprefiles="$dlprefiles $arg"
  56335. + prev=
  56336. + else
  56337. + deplibs="$deplibs $arg"
  56338. + fi
  56339. + continue
  56340. + ;;
  56341. +
  56342. + # Some other compiler argument.
  56343. + *)
  56344. + # Unknown arguments in both finalize_command and compile_command need
  56345. + # to be aesthetically quoted because they are evaled later.
  56346. + func_quote_for_eval "$arg"
  56347. + arg="$func_quote_for_eval_result"
  56348. + ;;
  56349. + esac # arg
  56350. +
  56351. + # Now actually substitute the argument into the commands.
  56352. + if test -n "$arg"; then
  56353. + func_append compile_command " $arg"
  56354. + func_append finalize_command " $arg"
  56355. + fi
  56356. + done # argument parsing loop
  56357. +
  56358. + test -n "$prev" && \
  56359. + func_fatal_help "the \`$prevarg' option requires an argument"
  56360. +
  56361. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  56362. + eval arg=\"$export_dynamic_flag_spec\"
  56363. + func_append compile_command " $arg"
  56364. + func_append finalize_command " $arg"
  56365. + fi
  56366. +
  56367. + oldlibs=
  56368. + # calculate the name of the file, without its directory
  56369. + func_basename "$output"
  56370. + outputname="$func_basename_result"
  56371. + libobjs_save="$libobjs"
  56372. +
  56373. + if test -n "$shlibpath_var"; then
  56374. + # get the directories listed in $shlibpath_var
  56375. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  56376. + else
  56377. + shlib_search_path=
  56378. + fi
  56379. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  56380. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  56381. +
  56382. + func_dirname "$output" "/" ""
  56383. + output_objdir="$func_dirname_result$objdir"
  56384. + # Create the object directory.
  56385. + func_mkdir_p "$output_objdir"
  56386. +
  56387. + # Determine the type of output
  56388. + case $output in
  56389. + "")
  56390. + func_fatal_help "you must specify an output file"
  56391. + ;;
  56392. + *.$libext) linkmode=oldlib ;;
  56393. + *.lo | *.$objext) linkmode=obj ;;
  56394. + *.la) linkmode=lib ;;
  56395. + *) linkmode=prog ;; # Anything else should be a program.
  56396. + esac
  56397. +
  56398. + specialdeplibs=
  56399. +
  56400. + libs=
  56401. + # Find all interdependent deplibs by searching for libraries
  56402. + # that are linked more than once (e.g. -la -lb -la)
  56403. + for deplib in $deplibs; do
  56404. + if $opt_duplicate_deps ; then
  56405. + case "$libs " in
  56406. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56407. + esac
  56408. + fi
  56409. + libs="$libs $deplib"
  56410. + done
  56411. +
  56412. + if test "$linkmode" = lib; then
  56413. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  56414. +
  56415. + # Compute libraries that are listed more than once in $predeps
  56416. + # $postdeps and mark them as special (i.e., whose duplicates are
  56417. + # not to be eliminated).
  56418. + pre_post_deps=
  56419. + if $opt_duplicate_compiler_generated_deps; then
  56420. + for pre_post_dep in $predeps $postdeps; do
  56421. + case "$pre_post_deps " in
  56422. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  56423. + esac
  56424. + pre_post_deps="$pre_post_deps $pre_post_dep"
  56425. + done
  56426. + fi
  56427. + pre_post_deps=
  56428. + fi
  56429. +
  56430. + deplibs=
  56431. + newdependency_libs=
  56432. + newlib_search_path=
  56433. + need_relink=no # whether we're linking any uninstalled libtool libraries
  56434. + notinst_deplibs= # not-installed libtool libraries
  56435. + notinst_path= # paths that contain not-installed libtool libraries
  56436. +
  56437. + case $linkmode in
  56438. + lib)
  56439. + passes="conv dlpreopen link"
  56440. + for file in $dlfiles $dlprefiles; do
  56441. + case $file in
  56442. + *.la) ;;
  56443. + *)
  56444. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  56445. + ;;
  56446. + esac
  56447. + done
  56448. + ;;
  56449. + prog)
  56450. + compile_deplibs=
  56451. + finalize_deplibs=
  56452. + alldeplibs=no
  56453. + newdlfiles=
  56454. + newdlprefiles=
  56455. + passes="conv scan dlopen dlpreopen link"
  56456. + ;;
  56457. + *) passes="conv"
  56458. + ;;
  56459. + esac
  56460. +
  56461. + for pass in $passes; do
  56462. + # The preopen pass in lib mode reverses $deplibs; put it back here
  56463. + # so that -L comes before libs that need it for instance...
  56464. + if test "$linkmode,$pass" = "lib,link"; then
  56465. + ## FIXME: Find the place where the list is rebuilt in the wrong
  56466. + ## order, and fix it there properly
  56467. + tmp_deplibs=
  56468. + for deplib in $deplibs; do
  56469. + tmp_deplibs="$deplib $tmp_deplibs"
  56470. + done
  56471. + deplibs="$tmp_deplibs"
  56472. + fi
  56473. +
  56474. + if test "$linkmode,$pass" = "lib,link" ||
  56475. + test "$linkmode,$pass" = "prog,scan"; then
  56476. + libs="$deplibs"
  56477. + deplibs=
  56478. + fi
  56479. + if test "$linkmode" = prog; then
  56480. + case $pass in
  56481. + dlopen) libs="$dlfiles" ;;
  56482. + dlpreopen) libs="$dlprefiles" ;;
  56483. + link)
  56484. + libs="$deplibs %DEPLIBS%"
  56485. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  56486. + ;;
  56487. + esac
  56488. + fi
  56489. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  56490. + # Collect and forward deplibs of preopened libtool libs
  56491. + for lib in $dlprefiles; do
  56492. + # Ignore non-libtool-libs
  56493. + dependency_libs=
  56494. + case $lib in
  56495. + *.la) func_source "$lib" ;;
  56496. + esac
  56497. +
  56498. + # Collect preopened libtool deplibs, except any this library
  56499. + # has declared as weak libs
  56500. + for deplib in $dependency_libs; do
  56501. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  56502. + case " $weak_libs " in
  56503. + *" $deplib_base "*) ;;
  56504. + *) deplibs="$deplibs $deplib" ;;
  56505. + esac
  56506. + done
  56507. + done
  56508. + libs="$dlprefiles"
  56509. + fi
  56510. + if test "$pass" = dlopen; then
  56511. + # Collect dlpreopened libraries
  56512. + save_deplibs="$deplibs"
  56513. + deplibs=
  56514. + fi
  56515. +
  56516. + for deplib in $libs; do
  56517. + lib=
  56518. + found=no
  56519. + case $deplib in
  56520. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  56521. + if test "$linkmode,$pass" = "prog,link"; then
  56522. + compile_deplibs="$deplib $compile_deplibs"
  56523. + finalize_deplibs="$deplib $finalize_deplibs"
  56524. + else
  56525. + compiler_flags="$compiler_flags $deplib"
  56526. + if test "$linkmode" = lib ; then
  56527. + case "$new_inherited_linker_flags " in
  56528. + *" $deplib "*) ;;
  56529. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56530. + esac
  56531. + fi
  56532. + fi
  56533. + continue
  56534. + ;;
  56535. + -l*)
  56536. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  56537. + func_warning "\`-l' is ignored for archives/objects"
  56538. + continue
  56539. + fi
  56540. + func_stripname '-l' '' "$deplib"
  56541. + name=$func_stripname_result
  56542. + if test "$linkmode" = lib; then
  56543. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  56544. + else
  56545. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  56546. + fi
  56547. + for searchdir in $searchdirs; do
  56548. + for search_ext in .la $std_shrext .so .a; do
  56549. + # Search the libtool library
  56550. + lib="$searchdir/lib${name}${search_ext}"
  56551. + if test -f "$lib"; then
  56552. + if test "$search_ext" = ".la"; then
  56553. + found=yes
  56554. + else
  56555. + found=no
  56556. + fi
  56557. + break 2
  56558. + fi
  56559. + done
  56560. + done
  56561. + if test "$found" != yes; then
  56562. + # deplib doesn't seem to be a libtool library
  56563. + if test "$linkmode,$pass" = "prog,link"; then
  56564. + compile_deplibs="$deplib $compile_deplibs"
  56565. + finalize_deplibs="$deplib $finalize_deplibs"
  56566. + else
  56567. + deplibs="$deplib $deplibs"
  56568. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56569. + fi
  56570. + continue
  56571. + else # deplib is a libtool library
  56572. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  56573. + # We need to do some special things here, and not later.
  56574. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56575. + case " $predeps $postdeps " in
  56576. + *" $deplib "*)
  56577. + if func_lalib_p "$lib"; then
  56578. + library_names=
  56579. + old_library=
  56580. + func_source "$lib"
  56581. + for l in $old_library $library_names; do
  56582. + ll="$l"
  56583. + done
  56584. + if test "X$ll" = "X$old_library" ; then # only static version available
  56585. + found=no
  56586. + func_dirname "$lib" "" "."
  56587. + ladir="$func_dirname_result"
  56588. + lib=$ladir/$old_library
  56589. + if test "$linkmode,$pass" = "prog,link"; then
  56590. + compile_deplibs="$deplib $compile_deplibs"
  56591. + finalize_deplibs="$deplib $finalize_deplibs"
  56592. + else
  56593. + deplibs="$deplib $deplibs"
  56594. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56595. + fi
  56596. + continue
  56597. + fi
  56598. + fi
  56599. + ;;
  56600. + *) ;;
  56601. + esac
  56602. + fi
  56603. + fi
  56604. + ;; # -l
  56605. + *.ltframework)
  56606. + if test "$linkmode,$pass" = "prog,link"; then
  56607. + compile_deplibs="$deplib $compile_deplibs"
  56608. + finalize_deplibs="$deplib $finalize_deplibs"
  56609. + else
  56610. + deplibs="$deplib $deplibs"
  56611. + if test "$linkmode" = lib ; then
  56612. + case "$new_inherited_linker_flags " in
  56613. + *" $deplib "*) ;;
  56614. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56615. + esac
  56616. + fi
  56617. + fi
  56618. + continue
  56619. + ;;
  56620. + -L*)
  56621. + case $linkmode in
  56622. + lib)
  56623. + deplibs="$deplib $deplibs"
  56624. + test "$pass" = conv && continue
  56625. + newdependency_libs="$deplib $newdependency_libs"
  56626. + func_stripname '-L' '' "$deplib"
  56627. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56628. + ;;
  56629. + prog)
  56630. + if test "$pass" = conv; then
  56631. + deplibs="$deplib $deplibs"
  56632. + continue
  56633. + fi
  56634. + if test "$pass" = scan; then
  56635. + deplibs="$deplib $deplibs"
  56636. + else
  56637. + compile_deplibs="$deplib $compile_deplibs"
  56638. + finalize_deplibs="$deplib $finalize_deplibs"
  56639. + fi
  56640. + func_stripname '-L' '' "$deplib"
  56641. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56642. + ;;
  56643. + *)
  56644. + func_warning "\`-L' is ignored for archives/objects"
  56645. + ;;
  56646. + esac # linkmode
  56647. + continue
  56648. + ;; # -L
  56649. + -R*)
  56650. + if test "$pass" = link; then
  56651. + func_stripname '-R' '' "$deplib"
  56652. + dir=$func_stripname_result
  56653. + # Make sure the xrpath contains only unique directories.
  56654. + case "$xrpath " in
  56655. + *" $dir "*) ;;
  56656. + *) xrpath="$xrpath $dir" ;;
  56657. + esac
  56658. + fi
  56659. + deplibs="$deplib $deplibs"
  56660. + continue
  56661. + ;;
  56662. + *.la) lib="$deplib" ;;
  56663. + *.$libext)
  56664. + if test "$pass" = conv; then
  56665. + deplibs="$deplib $deplibs"
  56666. + continue
  56667. + fi
  56668. + case $linkmode in
  56669. + lib)
  56670. + # Linking convenience modules into shared libraries is allowed,
  56671. + # but linking other static libraries is non-portable.
  56672. + case " $dlpreconveniencelibs " in
  56673. + *" $deplib "*) ;;
  56674. + *)
  56675. + valid_a_lib=no
  56676. + case $deplibs_check_method in
  56677. + match_pattern*)
  56678. + set dummy $deplibs_check_method; shift
  56679. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56680. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  56681. + | $EGREP "$match_pattern_regex" > /dev/null; then
  56682. + valid_a_lib=yes
  56683. + fi
  56684. + ;;
  56685. + pass_all)
  56686. + valid_a_lib=yes
  56687. + ;;
  56688. + esac
  56689. + if test "$valid_a_lib" != yes; then
  56690. + $ECHO
  56691. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  56692. + $ECHO "*** I have the capability to make that library automatically link in when"
  56693. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56694. + $ECHO "*** shared version of the library, which you do not appear to have"
  56695. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  56696. + $ECHO "*** that it is just a static archive that I should not use here."
  56697. + else
  56698. + $ECHO
  56699. + $ECHO "*** Warning: Linking the shared library $output against the"
  56700. + $ECHO "*** static library $deplib is not portable!"
  56701. + deplibs="$deplib $deplibs"
  56702. + fi
  56703. + ;;
  56704. + esac
  56705. + continue
  56706. + ;;
  56707. + prog)
  56708. + if test "$pass" != link; then
  56709. + deplibs="$deplib $deplibs"
  56710. + else
  56711. + compile_deplibs="$deplib $compile_deplibs"
  56712. + finalize_deplibs="$deplib $finalize_deplibs"
  56713. + fi
  56714. + continue
  56715. + ;;
  56716. + esac # linkmode
  56717. + ;; # *.$libext
  56718. + *.lo | *.$objext)
  56719. + if test "$pass" = conv; then
  56720. + deplibs="$deplib $deplibs"
  56721. + elif test "$linkmode" = prog; then
  56722. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  56723. + # If there is no dlopen support or we're linking statically,
  56724. + # we need to preload.
  56725. + newdlprefiles="$newdlprefiles $deplib"
  56726. + compile_deplibs="$deplib $compile_deplibs"
  56727. + finalize_deplibs="$deplib $finalize_deplibs"
  56728. + else
  56729. + newdlfiles="$newdlfiles $deplib"
  56730. + fi
  56731. + fi
  56732. + continue
  56733. + ;;
  56734. + %DEPLIBS%)
  56735. + alldeplibs=yes
  56736. + continue
  56737. + ;;
  56738. + esac # case $deplib
  56739. +
  56740. + if test "$found" = yes || test -f "$lib"; then :
  56741. + else
  56742. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  56743. + fi
  56744. +
  56745. + # Check to see that this really is a libtool archive.
  56746. + func_lalib_unsafe_p "$lib" \
  56747. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  56748. +
  56749. + func_dirname "$lib" "" "."
  56750. + ladir="$func_dirname_result"
  56751. +
  56752. + dlname=
  56753. + dlopen=
  56754. + dlpreopen=
  56755. + libdir=
  56756. + library_names=
  56757. + old_library=
  56758. + inherited_linker_flags=
  56759. + # If the library was installed with an old release of libtool,
  56760. + # it will not redefine variables installed, or shouldnotlink
  56761. + installed=yes
  56762. + shouldnotlink=no
  56763. + avoidtemprpath=
  56764. +
  56765. +
  56766. + # Read the .la file
  56767. + func_source "$lib"
  56768. +
  56769. + # Convert "-framework foo" to "foo.ltframework"
  56770. + if test -n "$inherited_linker_flags"; then
  56771. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  56772. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  56773. + case " $new_inherited_linker_flags " in
  56774. + *" $tmp_inherited_linker_flag "*) ;;
  56775. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  56776. + esac
  56777. + done
  56778. + fi
  56779. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56780. + if test "$linkmode,$pass" = "lib,link" ||
  56781. + test "$linkmode,$pass" = "prog,scan" ||
  56782. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  56783. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  56784. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  56785. + fi
  56786. +
  56787. + if test "$pass" = conv; then
  56788. + # Only check for convenience libraries
  56789. + deplibs="$lib $deplibs"
  56790. + if test -z "$libdir"; then
  56791. + if test -z "$old_library"; then
  56792. + func_fatal_error "cannot find name of link library for \`$lib'"
  56793. + fi
  56794. + # It is a libtool convenience library, so add in its objects.
  56795. + convenience="$convenience $ladir/$objdir/$old_library"
  56796. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  56797. + tmp_libs=
  56798. + for deplib in $dependency_libs; do
  56799. + deplibs="$deplib $deplibs"
  56800. + if $opt_duplicate_deps ; then
  56801. + case "$tmp_libs " in
  56802. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56803. + esac
  56804. + fi
  56805. + tmp_libs="$tmp_libs $deplib"
  56806. + done
  56807. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  56808. + func_fatal_error "\`$lib' is not a convenience library"
  56809. + fi
  56810. + continue
  56811. + fi # $pass = conv
  56812. +
  56813. +
  56814. + # Get the name of the library we link against.
  56815. + linklib=
  56816. + for l in $old_library $library_names; do
  56817. + linklib="$l"
  56818. + done
  56819. + if test -z "$linklib"; then
  56820. + func_fatal_error "cannot find name of link library for \`$lib'"
  56821. + fi
  56822. +
  56823. + # This library was specified with -dlopen.
  56824. + if test "$pass" = dlopen; then
  56825. + if test -z "$libdir"; then
  56826. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  56827. + fi
  56828. + if test -z "$dlname" ||
  56829. + test "$dlopen_support" != yes ||
  56830. + test "$build_libtool_libs" = no; then
  56831. + # If there is no dlname, no dlopen support or we're linking
  56832. + # statically, we need to preload. We also need to preload any
  56833. + # dependent libraries so libltdl's deplib preloader doesn't
  56834. + # bomb out in the load deplibs phase.
  56835. + dlprefiles="$dlprefiles $lib $dependency_libs"
  56836. + else
  56837. + newdlfiles="$newdlfiles $lib"
  56838. + fi
  56839. + continue
  56840. + fi # $pass = dlopen
  56841. +
  56842. + # We need an absolute path.
  56843. + case $ladir in
  56844. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  56845. + *)
  56846. + abs_ladir=`cd "$ladir" && pwd`
  56847. + if test -z "$abs_ladir"; then
  56848. + func_warning "cannot determine absolute directory name of \`$ladir'"
  56849. + func_warning "passing it literally to the linker, although it might fail"
  56850. + abs_ladir="$ladir"
  56851. + fi
  56852. + ;;
  56853. + esac
  56854. + func_basename "$lib"
  56855. + laname="$func_basename_result"
  56856. +
  56857. + # Find the relevant object directory and library name.
  56858. + if test "X$installed" = Xyes; then
  56859. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56860. + func_warning "library \`$lib' was moved."
  56861. + dir="$ladir"
  56862. + absdir="$abs_ladir"
  56863. + libdir="$abs_ladir"
  56864. + else
  56865. + dir="$libdir"
  56866. + absdir="$libdir"
  56867. + fi
  56868. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  56869. + else
  56870. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56871. + dir="$ladir"
  56872. + absdir="$abs_ladir"
  56873. + # Remove this search path later
  56874. + notinst_path="$notinst_path $abs_ladir"
  56875. + else
  56876. + dir="$ladir/$objdir"
  56877. + absdir="$abs_ladir/$objdir"
  56878. + # Remove this search path later
  56879. + notinst_path="$notinst_path $abs_ladir"
  56880. + fi
  56881. + fi # $installed = yes
  56882. + func_stripname 'lib' '.la' "$laname"
  56883. + name=$func_stripname_result
  56884. +
  56885. + # This library was specified with -dlpreopen.
  56886. + if test "$pass" = dlpreopen; then
  56887. + if test -z "$libdir" && test "$linkmode" = prog; then
  56888. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  56889. + fi
  56890. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  56891. + # are required to link).
  56892. + if test -n "$old_library"; then
  56893. + newdlprefiles="$newdlprefiles $dir/$old_library"
  56894. + # Keep a list of preopened convenience libraries to check
  56895. + # that they are being used correctly in the link pass.
  56896. + test -z "$libdir" && \
  56897. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  56898. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  56899. + elif test -n "$dlname"; then
  56900. + newdlprefiles="$newdlprefiles $dir/$dlname"
  56901. + else
  56902. + newdlprefiles="$newdlprefiles $dir/$linklib"
  56903. + fi
  56904. + fi # $pass = dlpreopen
  56905. +
  56906. + if test -z "$libdir"; then
  56907. + # Link the convenience library
  56908. + if test "$linkmode" = lib; then
  56909. + deplibs="$dir/$old_library $deplibs"
  56910. + elif test "$linkmode,$pass" = "prog,link"; then
  56911. + compile_deplibs="$dir/$old_library $compile_deplibs"
  56912. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  56913. + else
  56914. + deplibs="$lib $deplibs" # used for prog,scan pass
  56915. + fi
  56916. + continue
  56917. + fi
  56918. +
  56919. +
  56920. + if test "$linkmode" = prog && test "$pass" != link; then
  56921. + newlib_search_path="$newlib_search_path $ladir"
  56922. + deplibs="$lib $deplibs"
  56923. +
  56924. + linkalldeplibs=no
  56925. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  56926. + test "$build_libtool_libs" = no; then
  56927. + linkalldeplibs=yes
  56928. + fi
  56929. +
  56930. + tmp_libs=
  56931. + for deplib in $dependency_libs; do
  56932. + case $deplib in
  56933. + -L*) func_stripname '-L' '' "$deplib"
  56934. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56935. + ;;
  56936. + esac
  56937. + # Need to link against all dependency_libs?
  56938. + if test "$linkalldeplibs" = yes; then
  56939. + deplibs="$deplib $deplibs"
  56940. + else
  56941. + # Need to hardcode shared library paths
  56942. + # or/and link against static libraries
  56943. + newdependency_libs="$deplib $newdependency_libs"
  56944. + fi
  56945. + if $opt_duplicate_deps ; then
  56946. + case "$tmp_libs " in
  56947. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56948. + esac
  56949. + fi
  56950. + tmp_libs="$tmp_libs $deplib"
  56951. + done # for deplib
  56952. + continue
  56953. + fi # $linkmode = prog...
  56954. +
  56955. + if test "$linkmode,$pass" = "prog,link"; then
  56956. + if test -n "$library_names" &&
  56957. + { { test "$prefer_static_libs" = no ||
  56958. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  56959. + test -z "$old_library"; }; then
  56960. + # We need to hardcode the library path
  56961. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  56962. + # Make sure the rpath contains only unique directories.
  56963. + case "$temp_rpath:" in
  56964. + *"$absdir:"*) ;;
  56965. + *) temp_rpath="$temp_rpath$absdir:" ;;
  56966. + esac
  56967. + fi
  56968. +
  56969. + # Hardcode the library path.
  56970. + # Skip directories that are in the system default run-time
  56971. + # search path.
  56972. + case " $sys_lib_dlsearch_path " in
  56973. + *" $absdir "*) ;;
  56974. + *)
  56975. + case "$compile_rpath " in
  56976. + *" $absdir "*) ;;
  56977. + *) compile_rpath="$compile_rpath $absdir"
  56978. + esac
  56979. + ;;
  56980. + esac
  56981. + case " $sys_lib_dlsearch_path " in
  56982. + *" $libdir "*) ;;
  56983. + *)
  56984. + case "$finalize_rpath " in
  56985. + *" $libdir "*) ;;
  56986. + *) finalize_rpath="$finalize_rpath $libdir"
  56987. + esac
  56988. + ;;
  56989. + esac
  56990. + fi # $linkmode,$pass = prog,link...
  56991. +
  56992. + if test "$alldeplibs" = yes &&
  56993. + { test "$deplibs_check_method" = pass_all ||
  56994. + { test "$build_libtool_libs" = yes &&
  56995. + test -n "$library_names"; }; }; then
  56996. + # We only need to search for static libraries
  56997. + continue
  56998. + fi
  56999. + fi
  57000. +
  57001. + link_static=no # Whether the deplib will be linked statically
  57002. + use_static_libs=$prefer_static_libs
  57003. + if test "$use_static_libs" = built && test "$installed" = yes; then
  57004. + use_static_libs=no
  57005. + fi
  57006. + if test -n "$library_names" &&
  57007. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  57008. + case $host in
  57009. + *cygwin* | *mingw* | *cegcc*)
  57010. + # No point in relinking DLLs because paths are not encoded
  57011. + notinst_deplibs="$notinst_deplibs $lib"
  57012. + need_relink=no
  57013. + ;;
  57014. + *)
  57015. + if test "$installed" = no; then
  57016. + notinst_deplibs="$notinst_deplibs $lib"
  57017. + need_relink=yes
  57018. + fi
  57019. + ;;
  57020. + esac
  57021. + # This is a shared library
  57022. +
  57023. + # Warn about portability, can't link against -module's on some
  57024. + # systems (darwin). Don't bleat about dlopened modules though!
  57025. + dlopenmodule=""
  57026. + for dlpremoduletest in $dlprefiles; do
  57027. + if test "X$dlpremoduletest" = "X$lib"; then
  57028. + dlopenmodule="$dlpremoduletest"
  57029. + break
  57030. + fi
  57031. + done
  57032. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  57033. + $ECHO
  57034. + if test "$linkmode" = prog; then
  57035. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  57036. + else
  57037. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  57038. + fi
  57039. + $ECHO "*** $linklib is not portable!"
  57040. + fi
  57041. + if test "$linkmode" = lib &&
  57042. + test "$hardcode_into_libs" = yes; then
  57043. + # Hardcode the library path.
  57044. + # Skip directories that are in the system default run-time
  57045. + # search path.
  57046. + case " $sys_lib_dlsearch_path " in
  57047. + *" $absdir "*) ;;
  57048. + *)
  57049. + case "$compile_rpath " in
  57050. + *" $absdir "*) ;;
  57051. + *) compile_rpath="$compile_rpath $absdir"
  57052. + esac
  57053. + ;;
  57054. + esac
  57055. + case " $sys_lib_dlsearch_path " in
  57056. + *" $libdir "*) ;;
  57057. + *)
  57058. + case "$finalize_rpath " in
  57059. + *" $libdir "*) ;;
  57060. + *) finalize_rpath="$finalize_rpath $libdir"
  57061. + esac
  57062. + ;;
  57063. + esac
  57064. + fi
  57065. +
  57066. + if test -n "$old_archive_from_expsyms_cmds"; then
  57067. + # figure out the soname
  57068. + set dummy $library_names
  57069. + shift
  57070. + realname="$1"
  57071. + shift
  57072. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57073. + # use dlname if we got it. it's perfectly good, no?
  57074. + if test -n "$dlname"; then
  57075. + soname="$dlname"
  57076. + elif test -n "$soname_spec"; then
  57077. + # bleh windows
  57078. + case $host in
  57079. + *cygwin* | mingw* | *cegcc*)
  57080. + func_arith $current - $age
  57081. + major=$func_arith_result
  57082. + versuffix="-$major"
  57083. + ;;
  57084. + esac
  57085. + eval soname=\"$soname_spec\"
  57086. + else
  57087. + soname="$realname"
  57088. + fi
  57089. +
  57090. + # Make a new name for the extract_expsyms_cmds to use
  57091. + soroot="$soname"
  57092. + func_basename "$soroot"
  57093. + soname="$func_basename_result"
  57094. + func_stripname 'lib' '.dll' "$soname"
  57095. + newlib=libimp-$func_stripname_result.a
  57096. +
  57097. + # If the library has no export list, then create one now
  57098. + if test -f "$output_objdir/$soname-def"; then :
  57099. + else
  57100. + func_verbose "extracting exported symbol list from \`$soname'"
  57101. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  57102. + fi
  57103. +
  57104. + # Create $newlib
  57105. + if test -f "$output_objdir/$newlib"; then :; else
  57106. + func_verbose "generating import library for \`$soname'"
  57107. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  57108. + fi
  57109. + # make sure the library variables are pointing to the new library
  57110. + dir=$output_objdir
  57111. + linklib=$newlib
  57112. + fi # test -n "$old_archive_from_expsyms_cmds"
  57113. +
  57114. + if test "$linkmode" = prog || test "$mode" != relink; then
  57115. + add_shlibpath=
  57116. + add_dir=
  57117. + add=
  57118. + lib_linked=yes
  57119. + case $hardcode_action in
  57120. + immediate | unsupported)
  57121. + if test "$hardcode_direct" = no; then
  57122. + add="$dir/$linklib"
  57123. + case $host in
  57124. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  57125. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  57126. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  57127. + *-*-unixware7*) add_dir="-L$dir" ;;
  57128. + *-*-darwin* )
  57129. + # if the lib is a (non-dlopened) module then we can not
  57130. + # link against it, someone is ignoring the earlier warnings
  57131. + if /usr/bin/file -L $add 2> /dev/null |
  57132. + $GREP ": [^:]* bundle" >/dev/null ; then
  57133. + if test "X$dlopenmodule" != "X$lib"; then
  57134. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  57135. + if test -z "$old_library" ; then
  57136. + $ECHO
  57137. + $ECHO "*** And there doesn't seem to be a static archive available"
  57138. + $ECHO "*** The link will probably fail, sorry"
  57139. + else
  57140. + add="$dir/$old_library"
  57141. + fi
  57142. + elif test -n "$old_library"; then
  57143. + add="$dir/$old_library"
  57144. + fi
  57145. + fi
  57146. + esac
  57147. + elif test "$hardcode_minus_L" = no; then
  57148. + case $host in
  57149. + *-*-sunos*) add_shlibpath="$dir" ;;
  57150. + esac
  57151. + add_dir="-L$dir"
  57152. + add="-l$name"
  57153. + elif test "$hardcode_shlibpath_var" = no; then
  57154. + add_shlibpath="$dir"
  57155. + add="-l$name"
  57156. + else
  57157. + lib_linked=no
  57158. + fi
  57159. + ;;
  57160. + relink)
  57161. + if test "$hardcode_direct" = yes &&
  57162. + test "$hardcode_direct_absolute" = no; then
  57163. + add="$dir/$linklib"
  57164. + elif test "$hardcode_minus_L" = yes; then
  57165. + add_dir="-L$dir"
  57166. + # Try looking first in the location we're being installed to.
  57167. + if test -n "$inst_prefix_dir"; then
  57168. + case $libdir in
  57169. + [\\/]*)
  57170. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57171. + ;;
  57172. + esac
  57173. + fi
  57174. + add="-l$name"
  57175. + elif test "$hardcode_shlibpath_var" = yes; then
  57176. + add_shlibpath="$dir"
  57177. + add="-l$name"
  57178. + else
  57179. + lib_linked=no
  57180. + fi
  57181. + ;;
  57182. + *) lib_linked=no ;;
  57183. + esac
  57184. +
  57185. + if test "$lib_linked" != yes; then
  57186. + func_fatal_configuration "unsupported hardcode properties"
  57187. + fi
  57188. +
  57189. + if test -n "$add_shlibpath"; then
  57190. + case :$compile_shlibpath: in
  57191. + *":$add_shlibpath:"*) ;;
  57192. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  57193. + esac
  57194. + fi
  57195. + if test "$linkmode" = prog; then
  57196. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  57197. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  57198. + else
  57199. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57200. + test -n "$add" && deplibs="$add $deplibs"
  57201. + if test "$hardcode_direct" != yes &&
  57202. + test "$hardcode_minus_L" != yes &&
  57203. + test "$hardcode_shlibpath_var" = yes; then
  57204. + case :$finalize_shlibpath: in
  57205. + *":$libdir:"*) ;;
  57206. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57207. + esac
  57208. + fi
  57209. + fi
  57210. + fi
  57211. +
  57212. + if test "$linkmode" = prog || test "$mode" = relink; then
  57213. + add_shlibpath=
  57214. + add_dir=
  57215. + add=
  57216. + # Finalize command for both is simple: just hardcode it.
  57217. + if test "$hardcode_direct" = yes &&
  57218. + test "$hardcode_direct_absolute" = no; then
  57219. + add="$libdir/$linklib"
  57220. + elif test "$hardcode_minus_L" = yes; then
  57221. + add_dir="-L$libdir"
  57222. + add="-l$name"
  57223. + elif test "$hardcode_shlibpath_var" = yes; then
  57224. + case :$finalize_shlibpath: in
  57225. + *":$libdir:"*) ;;
  57226. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57227. + esac
  57228. + add="-l$name"
  57229. + elif test "$hardcode_automatic" = yes; then
  57230. + if test -n "$inst_prefix_dir" &&
  57231. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  57232. + add="$inst_prefix_dir$libdir/$linklib"
  57233. + else
  57234. + add="$libdir/$linklib"
  57235. + fi
  57236. + else
  57237. + # We cannot seem to hardcode it, guess we'll fake it.
  57238. + add_dir="-L$libdir"
  57239. + # Try looking first in the location we're being installed to.
  57240. + if test -n "$inst_prefix_dir"; then
  57241. + case $libdir in
  57242. + [\\/]*)
  57243. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57244. + ;;
  57245. + esac
  57246. + fi
  57247. + add="-l$name"
  57248. + fi
  57249. +
  57250. + if test "$linkmode" = prog; then
  57251. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  57252. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  57253. + else
  57254. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57255. + test -n "$add" && deplibs="$add $deplibs"
  57256. + fi
  57257. + fi
  57258. + elif test "$linkmode" = prog; then
  57259. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  57260. + # is not unsupported. This is valid on all known static and
  57261. + # shared platforms.
  57262. + if test "$hardcode_direct" != unsupported; then
  57263. + test -n "$old_library" && linklib="$old_library"
  57264. + compile_deplibs="$dir/$linklib $compile_deplibs"
  57265. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  57266. + else
  57267. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  57268. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  57269. + fi
  57270. + elif test "$build_libtool_libs" = yes; then
  57271. + # Not a shared library
  57272. + if test "$deplibs_check_method" != pass_all; then
  57273. + # We're trying link a shared library against a static one
  57274. + # but the system doesn't support it.
  57275. +
  57276. + # Just print a warning and add the library to dependency_libs so
  57277. + # that the program can be linked against the static library.
  57278. + $ECHO
  57279. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  57280. + $ECHO "*** I have the capability to make that library automatically link in when"
  57281. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57282. + $ECHO "*** shared version of the library, which you do not appear to have."
  57283. + if test "$module" = yes; then
  57284. + $ECHO "*** But as you try to build a module library, libtool will still create "
  57285. + $ECHO "*** a static module, that should work as long as the dlopening application"
  57286. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  57287. + if test -z "$global_symbol_pipe"; then
  57288. + $ECHO
  57289. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  57290. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  57291. + $ECHO "*** not find such a program. So, this module is probably useless."
  57292. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  57293. + fi
  57294. + if test "$build_old_libs" = no; then
  57295. + build_libtool_libs=module
  57296. + build_old_libs=yes
  57297. + else
  57298. + build_libtool_libs=no
  57299. + fi
  57300. + fi
  57301. + else
  57302. + deplibs="$dir/$old_library $deplibs"
  57303. + link_static=yes
  57304. + fi
  57305. + fi # link shared/static library?
  57306. +
  57307. + if test "$linkmode" = lib; then
  57308. + if test -n "$dependency_libs" &&
  57309. + { test "$hardcode_into_libs" != yes ||
  57310. + test "$build_old_libs" = yes ||
  57311. + test "$link_static" = yes; }; then
  57312. + # Extract -R from dependency_libs
  57313. + temp_deplibs=
  57314. + for libdir in $dependency_libs; do
  57315. + case $libdir in
  57316. + -R*) func_stripname '-R' '' "$libdir"
  57317. + temp_xrpath=$func_stripname_result
  57318. + case " $xrpath " in
  57319. + *" $temp_xrpath "*) ;;
  57320. + *) xrpath="$xrpath $temp_xrpath";;
  57321. + esac;;
  57322. + *) temp_deplibs="$temp_deplibs $libdir";;
  57323. + esac
  57324. + done
  57325. + dependency_libs="$temp_deplibs"
  57326. + fi
  57327. +
  57328. + newlib_search_path="$newlib_search_path $absdir"
  57329. + # Link against this library
  57330. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  57331. + # ... and its dependency_libs
  57332. + tmp_libs=
  57333. + for deplib in $dependency_libs; do
  57334. + newdependency_libs="$deplib $newdependency_libs"
  57335. + if $opt_duplicate_deps ; then
  57336. + case "$tmp_libs " in
  57337. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57338. + esac
  57339. + fi
  57340. + tmp_libs="$tmp_libs $deplib"
  57341. + done
  57342. +
  57343. + if test "$link_all_deplibs" != no; then
  57344. + # Add the search paths of all dependency libraries
  57345. + for deplib in $dependency_libs; do
  57346. + path=
  57347. + case $deplib in
  57348. + -L*) path="$deplib" ;;
  57349. + *.la)
  57350. + func_dirname "$deplib" "" "."
  57351. + dir="$func_dirname_result"
  57352. + # We need an absolute path.
  57353. + case $dir in
  57354. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  57355. + *)
  57356. + absdir=`cd "$dir" && pwd`
  57357. + if test -z "$absdir"; then
  57358. + func_warning "cannot determine absolute directory name of \`$dir'"
  57359. + absdir="$dir"
  57360. + fi
  57361. + ;;
  57362. + esac
  57363. + if $GREP "^installed=no" $deplib > /dev/null; then
  57364. + case $host in
  57365. + *-*-darwin*)
  57366. + depdepl=
  57367. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  57368. + if test -n "$deplibrary_names" ; then
  57369. + for tmp in $deplibrary_names ; do
  57370. + depdepl=$tmp
  57371. + done
  57372. + if test -f "$absdir/$objdir/$depdepl" ; then
  57373. + depdepl="$absdir/$objdir/$depdepl"
  57374. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57375. + if test -z "$darwin_install_name"; then
  57376. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57377. + fi
  57378. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  57379. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  57380. + path=
  57381. + fi
  57382. + fi
  57383. + ;;
  57384. + *)
  57385. + path="-L$absdir/$objdir"
  57386. + ;;
  57387. + esac
  57388. + else
  57389. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57390. + test -z "$libdir" && \
  57391. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  57392. + test "$absdir" != "$libdir" && \
  57393. + func_warning "\`$deplib' seems to be moved"
  57394. +
  57395. + path="-L$absdir"
  57396. + fi
  57397. + ;;
  57398. + esac
  57399. + case " $deplibs " in
  57400. + *" $path "*) ;;
  57401. + *) deplibs="$path $deplibs" ;;
  57402. + esac
  57403. + done
  57404. + fi # link_all_deplibs != no
  57405. + fi # linkmode = lib
  57406. + done # for deplib in $libs
  57407. + if test "$pass" = link; then
  57408. + if test "$linkmode" = "prog"; then
  57409. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  57410. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  57411. + else
  57412. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57413. + fi
  57414. + fi
  57415. + dependency_libs="$newdependency_libs"
  57416. + if test "$pass" = dlpreopen; then
  57417. + # Link the dlpreopened libraries before other libraries
  57418. + for deplib in $save_deplibs; do
  57419. + deplibs="$deplib $deplibs"
  57420. + done
  57421. + fi
  57422. + if test "$pass" != dlopen; then
  57423. + if test "$pass" != conv; then
  57424. + # Make sure lib_search_path contains only unique directories.
  57425. + lib_search_path=
  57426. + for dir in $newlib_search_path; do
  57427. + case "$lib_search_path " in
  57428. + *" $dir "*) ;;
  57429. + *) lib_search_path="$lib_search_path $dir" ;;
  57430. + esac
  57431. + done
  57432. + newlib_search_path=
  57433. + fi
  57434. +
  57435. + if test "$linkmode,$pass" != "prog,link"; then
  57436. + vars="deplibs"
  57437. + else
  57438. + vars="compile_deplibs finalize_deplibs"
  57439. + fi
  57440. + for var in $vars dependency_libs; do
  57441. + # Add libraries to $var in reverse order
  57442. + eval tmp_libs=\"\$$var\"
  57443. + new_libs=
  57444. + for deplib in $tmp_libs; do
  57445. + # FIXME: Pedantically, this is the right thing to do, so
  57446. + # that some nasty dependency loop isn't accidentally
  57447. + # broken:
  57448. + #new_libs="$deplib $new_libs"
  57449. + # Pragmatically, this seems to cause very few problems in
  57450. + # practice:
  57451. + case $deplib in
  57452. + -L*) new_libs="$deplib $new_libs" ;;
  57453. + -R*) ;;
  57454. + *)
  57455. + # And here is the reason: when a library appears more
  57456. + # than once as an explicit dependence of a library, or
  57457. + # is implicitly linked in more than once by the
  57458. + # compiler, it is considered special, and multiple
  57459. + # occurrences thereof are not removed. Compare this
  57460. + # with having the same library being listed as a
  57461. + # dependency of multiple other libraries: in this case,
  57462. + # we know (pedantically, we assume) the library does not
  57463. + # need to be listed more than once, so we keep only the
  57464. + # last copy. This is not always right, but it is rare
  57465. + # enough that we require users that really mean to play
  57466. + # such unportable linking tricks to link the library
  57467. + # using -Wl,-lname, so that libtool does not consider it
  57468. + # for duplicate removal.
  57469. + case " $specialdeplibs " in
  57470. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  57471. + *)
  57472. + case " $new_libs " in
  57473. + *" $deplib "*) ;;
  57474. + *) new_libs="$deplib $new_libs" ;;
  57475. + esac
  57476. + ;;
  57477. + esac
  57478. + ;;
  57479. + esac
  57480. + done
  57481. + tmp_libs=
  57482. + for deplib in $new_libs; do
  57483. + case $deplib in
  57484. + -L*)
  57485. + case " $tmp_libs " in
  57486. + *" $deplib "*) ;;
  57487. + *) tmp_libs="$tmp_libs $deplib" ;;
  57488. + esac
  57489. + ;;
  57490. + *) tmp_libs="$tmp_libs $deplib" ;;
  57491. + esac
  57492. + done
  57493. + eval $var=\"$tmp_libs\"
  57494. + done # for var
  57495. + fi
  57496. + # Last step: remove runtime libs from dependency_libs
  57497. + # (they stay in deplibs)
  57498. + tmp_libs=
  57499. + for i in $dependency_libs ; do
  57500. + case " $predeps $postdeps $compiler_lib_search_path " in
  57501. + *" $i "*)
  57502. + i=""
  57503. + ;;
  57504. + esac
  57505. + if test -n "$i" ; then
  57506. + tmp_libs="$tmp_libs $i"
  57507. + fi
  57508. + done
  57509. + dependency_libs=$tmp_libs
  57510. + done # for pass
  57511. + if test "$linkmode" = prog; then
  57512. + dlfiles="$newdlfiles"
  57513. + fi
  57514. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  57515. + dlprefiles="$newdlprefiles"
  57516. + fi
  57517. +
  57518. + case $linkmode in
  57519. + oldlib)
  57520. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57521. + func_warning "\`-dlopen' is ignored for archives"
  57522. + fi
  57523. +
  57524. + case " $deplibs" in
  57525. + *\ -l* | *\ -L*)
  57526. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  57527. + esac
  57528. +
  57529. + test -n "$rpath" && \
  57530. + func_warning "\`-rpath' is ignored for archives"
  57531. +
  57532. + test -n "$xrpath" && \
  57533. + func_warning "\`-R' is ignored for archives"
  57534. +
  57535. + test -n "$vinfo" && \
  57536. + func_warning "\`-version-info/-version-number' is ignored for archives"
  57537. +
  57538. + test -n "$release" && \
  57539. + func_warning "\`-release' is ignored for archives"
  57540. +
  57541. + test -n "$export_symbols$export_symbols_regex" && \
  57542. + func_warning "\`-export-symbols' is ignored for archives"
  57543. +
  57544. + # Now set the variables for building old libraries.
  57545. + build_libtool_libs=no
  57546. + oldlibs="$output"
  57547. + objs="$objs$old_deplibs"
  57548. + ;;
  57549. +
  57550. + lib)
  57551. + # Make sure we only generate libraries of the form `libNAME.la'.
  57552. + case $outputname in
  57553. + lib*)
  57554. + func_stripname 'lib' '.la' "$outputname"
  57555. + name=$func_stripname_result
  57556. + eval shared_ext=\"$shrext_cmds\"
  57557. + eval libname=\"$libname_spec\"
  57558. + ;;
  57559. + *)
  57560. + test "$module" = no && \
  57561. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  57562. +
  57563. + if test "$need_lib_prefix" != no; then
  57564. + # Add the "lib" prefix for modules if required
  57565. + func_stripname '' '.la' "$outputname"
  57566. + name=$func_stripname_result
  57567. + eval shared_ext=\"$shrext_cmds\"
  57568. + eval libname=\"$libname_spec\"
  57569. + else
  57570. + func_stripname '' '.la' "$outputname"
  57571. + libname=$func_stripname_result
  57572. + fi
  57573. + ;;
  57574. + esac
  57575. +
  57576. + if test -n "$objs"; then
  57577. + if test "$deplibs_check_method" != pass_all; then
  57578. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  57579. + else
  57580. + $ECHO
  57581. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  57582. + $ECHO "*** objects $objs is not portable!"
  57583. + libobjs="$libobjs $objs"
  57584. + fi
  57585. + fi
  57586. +
  57587. + test "$dlself" != no && \
  57588. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  57589. +
  57590. + set dummy $rpath
  57591. + shift
  57592. + test "$#" -gt 1 && \
  57593. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  57594. +
  57595. + install_libdir="$1"
  57596. +
  57597. + oldlibs=
  57598. + if test -z "$rpath"; then
  57599. + if test "$build_libtool_libs" = yes; then
  57600. + # Building a libtool convenience library.
  57601. + # Some compilers have problems with a `.al' extension so
  57602. + # convenience libraries should have the same extension an
  57603. + # archive normally would.
  57604. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  57605. + build_libtool_libs=convenience
  57606. + build_old_libs=yes
  57607. + fi
  57608. +
  57609. + test -n "$vinfo" && \
  57610. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  57611. +
  57612. + test -n "$release" && \
  57613. + func_warning "\`-release' is ignored for convenience libraries"
  57614. + else
  57615. +
  57616. + # Parse the version information argument.
  57617. + save_ifs="$IFS"; IFS=':'
  57618. + set dummy $vinfo 0 0 0
  57619. + shift
  57620. + IFS="$save_ifs"
  57621. +
  57622. + test -n "$7" && \
  57623. + func_fatal_help "too many parameters to \`-version-info'"
  57624. +
  57625. + # convert absolute version numbers to libtool ages
  57626. + # this retains compatibility with .la files and attempts
  57627. + # to make the code below a bit more comprehensible
  57628. +
  57629. + case $vinfo_number in
  57630. + yes)
  57631. + number_major="$1"
  57632. + number_minor="$2"
  57633. + number_revision="$3"
  57634. + #
  57635. + # There are really only two kinds -- those that
  57636. + # use the current revision as the major version
  57637. + # and those that subtract age and use age as
  57638. + # a minor version. But, then there is irix
  57639. + # which has an extra 1 added just for fun
  57640. + #
  57641. + case $version_type in
  57642. + darwin|linux|osf|windows|none)
  57643. + func_arith $number_major + $number_minor
  57644. + current=$func_arith_result
  57645. + age="$number_minor"
  57646. + revision="$number_revision"
  57647. + ;;
  57648. + freebsd-aout|freebsd-elf|sunos)
  57649. + current="$number_major"
  57650. + revision="$number_minor"
  57651. + age="0"
  57652. + ;;
  57653. + irix|nonstopux)
  57654. + func_arith $number_major + $number_minor
  57655. + current=$func_arith_result
  57656. + age="$number_minor"
  57657. + revision="$number_minor"
  57658. + lt_irix_increment=no
  57659. + ;;
  57660. + *)
  57661. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  57662. + ;;
  57663. + esac
  57664. + ;;
  57665. + no)
  57666. + current="$1"
  57667. + revision="$2"
  57668. + age="$3"
  57669. + ;;
  57670. + esac
  57671. +
  57672. + # Check that each of the things are valid numbers.
  57673. + case $current in
  57674. + 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]) ;;
  57675. + *)
  57676. + func_error "CURRENT \`$current' must be a nonnegative integer"
  57677. + func_fatal_error "\`$vinfo' is not valid version information"
  57678. + ;;
  57679. + esac
  57680. +
  57681. + case $revision in
  57682. + 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]) ;;
  57683. + *)
  57684. + func_error "REVISION \`$revision' must be a nonnegative integer"
  57685. + func_fatal_error "\`$vinfo' is not valid version information"
  57686. + ;;
  57687. + esac
  57688. +
  57689. + case $age in
  57690. + 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]) ;;
  57691. + *)
  57692. + func_error "AGE \`$age' must be a nonnegative integer"
  57693. + func_fatal_error "\`$vinfo' is not valid version information"
  57694. + ;;
  57695. + esac
  57696. +
  57697. + if test "$age" -gt "$current"; then
  57698. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  57699. + func_fatal_error "\`$vinfo' is not valid version information"
  57700. + fi
  57701. +
  57702. + # Calculate the version variables.
  57703. + major=
  57704. + versuffix=
  57705. + verstring=
  57706. + case $version_type in
  57707. + none) ;;
  57708. +
  57709. + darwin)
  57710. + # Like Linux, but with the current version available in
  57711. + # verstring for coding it into the library header
  57712. + func_arith $current - $age
  57713. + major=.$func_arith_result
  57714. + versuffix="$major.$age.$revision"
  57715. + # Darwin ld doesn't like 0 for these options...
  57716. + func_arith $current + 1
  57717. + minor_current=$func_arith_result
  57718. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  57719. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  57720. + ;;
  57721. +
  57722. + freebsd-aout)
  57723. + major=".$current"
  57724. + versuffix=".$current.$revision";
  57725. + ;;
  57726. +
  57727. + freebsd-elf)
  57728. + major=".$current"
  57729. + versuffix=".$current"
  57730. + ;;
  57731. +
  57732. + irix | nonstopux)
  57733. + if test "X$lt_irix_increment" = "Xno"; then
  57734. + func_arith $current - $age
  57735. + else
  57736. + func_arith $current - $age + 1
  57737. + fi
  57738. + major=$func_arith_result
  57739. +
  57740. + case $version_type in
  57741. + nonstopux) verstring_prefix=nonstopux ;;
  57742. + *) verstring_prefix=sgi ;;
  57743. + esac
  57744. + verstring="$verstring_prefix$major.$revision"
  57745. +
  57746. + # Add in all the interfaces that we are compatible with.
  57747. + loop=$revision
  57748. + while test "$loop" -ne 0; do
  57749. + func_arith $revision - $loop
  57750. + iface=$func_arith_result
  57751. + func_arith $loop - 1
  57752. + loop=$func_arith_result
  57753. + verstring="$verstring_prefix$major.$iface:$verstring"
  57754. + done
  57755. +
  57756. + # Before this point, $major must not contain `.'.
  57757. + major=.$major
  57758. + versuffix="$major.$revision"
  57759. + ;;
  57760. +
  57761. + linux)
  57762. + func_arith $current - $age
  57763. + major=.$func_arith_result
  57764. + versuffix="$major.$age.$revision"
  57765. + ;;
  57766. +
  57767. + osf)
  57768. + func_arith $current - $age
  57769. + major=.$func_arith_result
  57770. + versuffix=".$current.$age.$revision"
  57771. + verstring="$current.$age.$revision"
  57772. +
  57773. + # Add in all the interfaces that we are compatible with.
  57774. + loop=$age
  57775. + while test "$loop" -ne 0; do
  57776. + func_arith $current - $loop
  57777. + iface=$func_arith_result
  57778. + func_arith $loop - 1
  57779. + loop=$func_arith_result
  57780. + verstring="$verstring:${iface}.0"
  57781. + done
  57782. +
  57783. + # Make executables depend on our current version.
  57784. + verstring="$verstring:${current}.0"
  57785. + ;;
  57786. +
  57787. + qnx)
  57788. + major=".$current"
  57789. + versuffix=".$current"
  57790. + ;;
  57791. +
  57792. + sunos)
  57793. + major=".$current"
  57794. + versuffix=".$current.$revision"
  57795. + ;;
  57796. +
  57797. + windows)
  57798. + # Use '-' rather than '.', since we only want one
  57799. + # extension on DOS 8.3 filesystems.
  57800. + func_arith $current - $age
  57801. + major=$func_arith_result
  57802. + versuffix="-$major"
  57803. + ;;
  57804. +
  57805. + *)
  57806. + func_fatal_configuration "unknown library version type \`$version_type'"
  57807. + ;;
  57808. + esac
  57809. +
  57810. + # Clear the version info if we defaulted, and they specified a release.
  57811. + if test -z "$vinfo" && test -n "$release"; then
  57812. + major=
  57813. + case $version_type in
  57814. + darwin)
  57815. + # we can't check for "0.0" in archive_cmds due to quoting
  57816. + # problems, so we reset it completely
  57817. + verstring=
  57818. + ;;
  57819. + *)
  57820. + verstring="0.0"
  57821. + ;;
  57822. + esac
  57823. + if test "$need_version" = no; then
  57824. + versuffix=
  57825. + else
  57826. + versuffix=".0.0"
  57827. + fi
  57828. + fi
  57829. +
  57830. + # Remove version info from name if versioning should be avoided
  57831. + if test "$avoid_version" = yes && test "$need_version" = no; then
  57832. + major=
  57833. + versuffix=
  57834. + verstring=""
  57835. + fi
  57836. +
  57837. + # Check to see if the archive will have undefined symbols.
  57838. + if test "$allow_undefined" = yes; then
  57839. + if test "$allow_undefined_flag" = unsupported; then
  57840. + func_warning "undefined symbols not allowed in $host shared libraries"
  57841. + build_libtool_libs=no
  57842. + build_old_libs=yes
  57843. + fi
  57844. + else
  57845. + # Don't allow undefined symbols.
  57846. + allow_undefined_flag="$no_undefined_flag"
  57847. + fi
  57848. +
  57849. + fi
  57850. +
  57851. + func_generate_dlsyms "$libname" "$libname" "yes"
  57852. + libobjs="$libobjs $symfileobj"
  57853. + test "X$libobjs" = "X " && libobjs=
  57854. +
  57855. + if test "$mode" != relink; then
  57856. + # Remove our outputs, but don't remove object files since they
  57857. + # may have been created when compiling PIC objects.
  57858. + removelist=
  57859. + tempremovelist=`$ECHO "$output_objdir/*"`
  57860. + for p in $tempremovelist; do
  57861. + case $p in
  57862. + *.$objext | *.gcno)
  57863. + ;;
  57864. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  57865. + if test "X$precious_files_regex" != "X"; then
  57866. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  57867. + then
  57868. + continue
  57869. + fi
  57870. + fi
  57871. + removelist="$removelist $p"
  57872. + ;;
  57873. + *) ;;
  57874. + esac
  57875. + done
  57876. + test -n "$removelist" && \
  57877. + func_show_eval "${RM}r \$removelist"
  57878. + fi
  57879. +
  57880. + # Now set the variables for building old libraries.
  57881. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  57882. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  57883. +
  57884. + # Transform .lo files to .o files.
  57885. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  57886. + fi
  57887. +
  57888. + # Eliminate all temporary directories.
  57889. + #for path in $notinst_path; do
  57890. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  57891. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  57892. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  57893. + #done
  57894. +
  57895. + if test -n "$xrpath"; then
  57896. + # If the user specified any rpath flags, then add them.
  57897. + temp_xrpath=
  57898. + for libdir in $xrpath; do
  57899. + temp_xrpath="$temp_xrpath -R$libdir"
  57900. + case "$finalize_rpath " in
  57901. + *" $libdir "*) ;;
  57902. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  57903. + esac
  57904. + done
  57905. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  57906. + dependency_libs="$temp_xrpath $dependency_libs"
  57907. + fi
  57908. + fi
  57909. +
  57910. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  57911. + old_dlfiles="$dlfiles"
  57912. + dlfiles=
  57913. + for lib in $old_dlfiles; do
  57914. + case " $dlprefiles $dlfiles " in
  57915. + *" $lib "*) ;;
  57916. + *) dlfiles="$dlfiles $lib" ;;
  57917. + esac
  57918. + done
  57919. +
  57920. + # Make sure dlprefiles contains only unique files
  57921. + old_dlprefiles="$dlprefiles"
  57922. + dlprefiles=
  57923. + for lib in $old_dlprefiles; do
  57924. + case "$dlprefiles " in
  57925. + *" $lib "*) ;;
  57926. + *) dlprefiles="$dlprefiles $lib" ;;
  57927. + esac
  57928. + done
  57929. +
  57930. + if test "$build_libtool_libs" = yes; then
  57931. + if test -n "$rpath"; then
  57932. + case $host in
  57933. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  57934. + # these systems don't actually have a c library (as such)!
  57935. + ;;
  57936. + *-*-rhapsody* | *-*-darwin1.[012])
  57937. + # Rhapsody C library is in the System framework
  57938. + deplibs="$deplibs System.ltframework"
  57939. + ;;
  57940. + *-*-netbsd*)
  57941. + # Don't link with libc until the a.out ld.so is fixed.
  57942. + ;;
  57943. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  57944. + # Do not include libc due to us having libc/libc_r.
  57945. + ;;
  57946. + *-*-sco3.2v5* | *-*-sco5v6*)
  57947. + # Causes problems with __ctype
  57948. + ;;
  57949. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  57950. + # Compiler inserts libc in the correct place for threads to work
  57951. + ;;
  57952. + *)
  57953. + # Add libc to deplibs on all other systems if necessary.
  57954. + if test "$build_libtool_need_lc" = "yes"; then
  57955. + deplibs="$deplibs -lc"
  57956. + fi
  57957. + ;;
  57958. + esac
  57959. + fi
  57960. +
  57961. + # Transform deplibs into only deplibs that can be linked in shared.
  57962. + name_save=$name
  57963. + libname_save=$libname
  57964. + release_save=$release
  57965. + versuffix_save=$versuffix
  57966. + major_save=$major
  57967. + # I'm not sure if I'm treating the release correctly. I think
  57968. + # release should show up in the -l (ie -lgmp5) so we don't want to
  57969. + # add it in twice. Is that correct?
  57970. + release=""
  57971. + versuffix=""
  57972. + major=""
  57973. + newdeplibs=
  57974. + droppeddeps=no
  57975. + case $deplibs_check_method in
  57976. + pass_all)
  57977. + # Don't check for shared/static. Everything works.
  57978. + # This might be a little naive. We might want to check
  57979. + # whether the library exists or not. But this is on
  57980. + # osf3 & osf4 and I'm not really sure... Just
  57981. + # implementing what was already the behavior.
  57982. + newdeplibs=$deplibs
  57983. + ;;
  57984. + test_compile)
  57985. + # This code stresses the "libraries are programs" paradigm to its
  57986. + # limits. Maybe even breaks it. We compile a program, linking it
  57987. + # against the deplibs as a proxy for the library. Then we can check
  57988. + # whether they linked in statically or dynamically with ldd.
  57989. + $opt_dry_run || $RM conftest.c
  57990. + cat > conftest.c <<EOF
  57991. + int main() { return 0; }
  57992. +EOF
  57993. + $opt_dry_run || $RM conftest
  57994. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  57995. + ldd_output=`ldd conftest`
  57996. + for i in $deplibs; do
  57997. + case $i in
  57998. + -l*)
  57999. + func_stripname -l '' "$i"
  58000. + name=$func_stripname_result
  58001. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58002. + case " $predeps $postdeps " in
  58003. + *" $i "*)
  58004. + newdeplibs="$newdeplibs $i"
  58005. + i=""
  58006. + ;;
  58007. + esac
  58008. + fi
  58009. + if test -n "$i" ; then
  58010. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58011. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58012. + set dummy $deplib_matches; shift
  58013. + deplib_match=$1
  58014. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58015. + newdeplibs="$newdeplibs $i"
  58016. + else
  58017. + droppeddeps=yes
  58018. + $ECHO
  58019. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58020. + $ECHO "*** I have the capability to make that library automatically link in when"
  58021. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58022. + $ECHO "*** shared version of the library, which I believe you do not have"
  58023. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  58024. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  58025. + fi
  58026. + fi
  58027. + ;;
  58028. + *)
  58029. + newdeplibs="$newdeplibs $i"
  58030. + ;;
  58031. + esac
  58032. + done
  58033. + else
  58034. + # Error occurred in the first compile. Let's try to salvage
  58035. + # the situation: Compile a separate program for each library.
  58036. + for i in $deplibs; do
  58037. + case $i in
  58038. + -l*)
  58039. + func_stripname -l '' "$i"
  58040. + name=$func_stripname_result
  58041. + $opt_dry_run || $RM conftest
  58042. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  58043. + ldd_output=`ldd conftest`
  58044. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58045. + case " $predeps $postdeps " in
  58046. + *" $i "*)
  58047. + newdeplibs="$newdeplibs $i"
  58048. + i=""
  58049. + ;;
  58050. + esac
  58051. + fi
  58052. + if test -n "$i" ; then
  58053. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58054. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58055. + set dummy $deplib_matches; shift
  58056. + deplib_match=$1
  58057. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58058. + newdeplibs="$newdeplibs $i"
  58059. + else
  58060. + droppeddeps=yes
  58061. + $ECHO
  58062. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58063. + $ECHO "*** I have the capability to make that library automatically link in when"
  58064. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58065. + $ECHO "*** shared version of the library, which you do not appear to have"
  58066. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  58067. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  58068. + fi
  58069. + fi
  58070. + else
  58071. + droppeddeps=yes
  58072. + $ECHO
  58073. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  58074. + $ECHO "*** make it link in! You will probably need to install it or some"
  58075. + $ECHO "*** library that it depends on before this library will be fully"
  58076. + $ECHO "*** functional. Installing it before continuing would be even better."
  58077. + fi
  58078. + ;;
  58079. + *)
  58080. + newdeplibs="$newdeplibs $i"
  58081. + ;;
  58082. + esac
  58083. + done
  58084. + fi
  58085. + ;;
  58086. + file_magic*)
  58087. + set dummy $deplibs_check_method; shift
  58088. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58089. + for a_deplib in $deplibs; do
  58090. + case $a_deplib in
  58091. + -l*)
  58092. + func_stripname -l '' "$a_deplib"
  58093. + name=$func_stripname_result
  58094. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58095. + case " $predeps $postdeps " in
  58096. + *" $a_deplib "*)
  58097. + newdeplibs="$newdeplibs $a_deplib"
  58098. + a_deplib=""
  58099. + ;;
  58100. + esac
  58101. + fi
  58102. + if test -n "$a_deplib" ; then
  58103. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58104. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58105. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58106. + for potent_lib in $potential_libs; do
  58107. + # Follow soft links.
  58108. + if ls -lLd "$potent_lib" 2>/dev/null |
  58109. + $GREP " -> " >/dev/null; then
  58110. + continue
  58111. + fi
  58112. + # The statement above tries to avoid entering an
  58113. + # endless loop below, in case of cyclic links.
  58114. + # We might still enter an endless loop, since a link
  58115. + # loop can be closed while we follow links,
  58116. + # but so what?
  58117. + potlib="$potent_lib"
  58118. + while test -h "$potlib" 2>/dev/null; do
  58119. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  58120. + case $potliblink in
  58121. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  58122. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  58123. + esac
  58124. + done
  58125. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  58126. + $SED -e 10q |
  58127. + $EGREP "$file_magic_regex" > /dev/null; then
  58128. + newdeplibs="$newdeplibs $a_deplib"
  58129. + a_deplib=""
  58130. + break 2
  58131. + fi
  58132. + done
  58133. + done
  58134. + fi
  58135. + if test -n "$a_deplib" ; then
  58136. + droppeddeps=yes
  58137. + $ECHO
  58138. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58139. + $ECHO "*** I have the capability to make that library automatically link in when"
  58140. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58141. + $ECHO "*** shared version of the library, which you do not appear to have"
  58142. + $ECHO "*** because I did check the linker path looking for a file starting"
  58143. + if test -z "$potlib" ; then
  58144. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  58145. + else
  58146. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58147. + $ECHO "*** using a file magic. Last file checked: $potlib"
  58148. + fi
  58149. + fi
  58150. + ;;
  58151. + *)
  58152. + # Add a -L argument.
  58153. + newdeplibs="$newdeplibs $a_deplib"
  58154. + ;;
  58155. + esac
  58156. + done # Gone through all deplibs.
  58157. + ;;
  58158. + match_pattern*)
  58159. + set dummy $deplibs_check_method; shift
  58160. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58161. + for a_deplib in $deplibs; do
  58162. + case $a_deplib in
  58163. + -l*)
  58164. + func_stripname -l '' "$a_deplib"
  58165. + name=$func_stripname_result
  58166. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58167. + case " $predeps $postdeps " in
  58168. + *" $a_deplib "*)
  58169. + newdeplibs="$newdeplibs $a_deplib"
  58170. + a_deplib=""
  58171. + ;;
  58172. + esac
  58173. + fi
  58174. + if test -n "$a_deplib" ; then
  58175. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58176. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58177. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58178. + for potent_lib in $potential_libs; do
  58179. + potlib="$potent_lib" # see symlink-check above in file_magic test
  58180. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  58181. + $EGREP "$match_pattern_regex" > /dev/null; then
  58182. + newdeplibs="$newdeplibs $a_deplib"
  58183. + a_deplib=""
  58184. + break 2
  58185. + fi
  58186. + done
  58187. + done
  58188. + fi
  58189. + if test -n "$a_deplib" ; then
  58190. + droppeddeps=yes
  58191. + $ECHO
  58192. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58193. + $ECHO "*** I have the capability to make that library automatically link in when"
  58194. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58195. + $ECHO "*** shared version of the library, which you do not appear to have"
  58196. + $ECHO "*** because I did check the linker path looking for a file starting"
  58197. + if test -z "$potlib" ; then
  58198. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  58199. + else
  58200. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58201. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  58202. + fi
  58203. + fi
  58204. + ;;
  58205. + *)
  58206. + # Add a -L argument.
  58207. + newdeplibs="$newdeplibs $a_deplib"
  58208. + ;;
  58209. + esac
  58210. + done # Gone through all deplibs.
  58211. + ;;
  58212. + none | unknown | *)
  58213. + newdeplibs=""
  58214. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  58215. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  58216. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58217. + for i in $predeps $postdeps ; do
  58218. + # can't use Xsed below, because $i might contain '/'
  58219. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  58220. + done
  58221. + fi
  58222. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  58223. + $GREP . >/dev/null; then
  58224. + $ECHO
  58225. + if test "X$deplibs_check_method" = "Xnone"; then
  58226. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  58227. + else
  58228. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  58229. + fi
  58230. + $ECHO "*** All declared inter-library dependencies are being dropped."
  58231. + droppeddeps=yes
  58232. + fi
  58233. + ;;
  58234. + esac
  58235. + versuffix=$versuffix_save
  58236. + major=$major_save
  58237. + release=$release_save
  58238. + libname=$libname_save
  58239. + name=$name_save
  58240. +
  58241. + case $host in
  58242. + *-*-rhapsody* | *-*-darwin1.[012])
  58243. + # On Rhapsody replace the C library with the System framework
  58244. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58245. + ;;
  58246. + esac
  58247. +
  58248. + if test "$droppeddeps" = yes; then
  58249. + if test "$module" = yes; then
  58250. + $ECHO
  58251. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  58252. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  58253. + $ECHO "*** a static module, that should work as long as the dlopening"
  58254. + $ECHO "*** application is linked with the -dlopen flag."
  58255. + if test -z "$global_symbol_pipe"; then
  58256. + $ECHO
  58257. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  58258. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  58259. + $ECHO "*** not find such a program. So, this module is probably useless."
  58260. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  58261. + fi
  58262. + if test "$build_old_libs" = no; then
  58263. + oldlibs="$output_objdir/$libname.$libext"
  58264. + build_libtool_libs=module
  58265. + build_old_libs=yes
  58266. + else
  58267. + build_libtool_libs=no
  58268. + fi
  58269. + else
  58270. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  58271. + $ECHO "*** automatically added whenever a program is linked with this library"
  58272. + $ECHO "*** or is declared to -dlopen it."
  58273. +
  58274. + if test "$allow_undefined" = no; then
  58275. + $ECHO
  58276. + $ECHO "*** Since this library must not contain undefined symbols,"
  58277. + $ECHO "*** because either the platform does not support them or"
  58278. + $ECHO "*** it was explicitly requested with -no-undefined,"
  58279. + $ECHO "*** libtool will only create a static version of it."
  58280. + if test "$build_old_libs" = no; then
  58281. + oldlibs="$output_objdir/$libname.$libext"
  58282. + build_libtool_libs=module
  58283. + build_old_libs=yes
  58284. + else
  58285. + build_libtool_libs=no
  58286. + fi
  58287. + fi
  58288. + fi
  58289. + fi
  58290. + # Done checking deplibs!
  58291. + deplibs=$newdeplibs
  58292. + fi
  58293. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  58294. + case $host in
  58295. + *-*-darwin*)
  58296. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58297. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58298. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58299. + ;;
  58300. + esac
  58301. +
  58302. + # move library search paths that coincide with paths to not yet
  58303. + # installed libraries to the beginning of the library search list
  58304. + new_libs=
  58305. + for path in $notinst_path; do
  58306. + case " $new_libs " in
  58307. + *" -L$path/$objdir "*) ;;
  58308. + *)
  58309. + case " $deplibs " in
  58310. + *" -L$path/$objdir "*)
  58311. + new_libs="$new_libs -L$path/$objdir" ;;
  58312. + esac
  58313. + ;;
  58314. + esac
  58315. + done
  58316. + for deplib in $deplibs; do
  58317. + case $deplib in
  58318. + -L*)
  58319. + case " $new_libs " in
  58320. + *" $deplib "*) ;;
  58321. + *) new_libs="$new_libs $deplib" ;;
  58322. + esac
  58323. + ;;
  58324. + *) new_libs="$new_libs $deplib" ;;
  58325. + esac
  58326. + done
  58327. + deplibs="$new_libs"
  58328. +
  58329. + # All the library-specific variables (install_libdir is set above).
  58330. + library_names=
  58331. + old_library=
  58332. + dlname=
  58333. +
  58334. + # Test again, we may have decided not to build it any more
  58335. + if test "$build_libtool_libs" = yes; then
  58336. + if test "$hardcode_into_libs" = yes; then
  58337. + # Hardcode the library paths
  58338. + hardcode_libdirs=
  58339. + dep_rpath=
  58340. + rpath="$finalize_rpath"
  58341. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  58342. + for libdir in $rpath; do
  58343. + if test -n "$hardcode_libdir_flag_spec"; then
  58344. + if test -n "$hardcode_libdir_separator"; then
  58345. + if test -z "$hardcode_libdirs"; then
  58346. + hardcode_libdirs="$libdir"
  58347. + else
  58348. + # Just accumulate the unique libdirs.
  58349. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58350. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58351. + ;;
  58352. + *)
  58353. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58354. + ;;
  58355. + esac
  58356. + fi
  58357. + else
  58358. + eval flag=\"$hardcode_libdir_flag_spec\"
  58359. + dep_rpath="$dep_rpath $flag"
  58360. + fi
  58361. + elif test -n "$runpath_var"; then
  58362. + case "$perm_rpath " in
  58363. + *" $libdir "*) ;;
  58364. + *) perm_rpath="$perm_rpath $libdir" ;;
  58365. + esac
  58366. + fi
  58367. + done
  58368. + # Substitute the hardcoded libdirs into the rpath.
  58369. + if test -n "$hardcode_libdir_separator" &&
  58370. + test -n "$hardcode_libdirs"; then
  58371. + libdir="$hardcode_libdirs"
  58372. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  58373. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  58374. + else
  58375. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  58376. + fi
  58377. + fi
  58378. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  58379. + # We should set the runpath_var.
  58380. + rpath=
  58381. + for dir in $perm_rpath; do
  58382. + rpath="$rpath$dir:"
  58383. + done
  58384. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  58385. + fi
  58386. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  58387. + fi
  58388. - if test "$fast_install" = yes; then
  58389. - $echo >> $output "\
  58390. - program=lt-'$outputname'$exeext
  58391. - progdir=\"\$thisdir/$objdir\"
  58392. + shlibpath="$finalize_shlibpath"
  58393. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  58394. + if test -n "$shlibpath"; then
  58395. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  58396. + fi
  58397. - if test ! -f \"\$progdir/\$program\" || \\
  58398. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  58399. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  58400. + # Get the real and link names of the library.
  58401. + eval shared_ext=\"$shrext_cmds\"
  58402. + eval library_names=\"$library_names_spec\"
  58403. + set dummy $library_names
  58404. + shift
  58405. + realname="$1"
  58406. + shift
  58407. - file=\"\$\$-\$program\"
  58408. + if test -n "$soname_spec"; then
  58409. + eval soname=\"$soname_spec\"
  58410. + else
  58411. + soname="$realname"
  58412. + fi
  58413. + if test -z "$dlname"; then
  58414. + dlname=$soname
  58415. + fi
  58416. - if test ! -d \"\$progdir\"; then
  58417. - $mkdir \"\$progdir\"
  58418. - else
  58419. - $rm \"\$progdir/\$file\"
  58420. - fi"
  58421. + lib="$output_objdir/$realname"
  58422. + linknames=
  58423. + for link
  58424. + do
  58425. + linknames="$linknames $link"
  58426. + done
  58427. - $echo >> $output "\
  58428. + # Use standard objects if they are pic
  58429. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58430. + test "X$libobjs" = "X " && libobjs=
  58431. - # relink executable if necessary
  58432. - if test -n \"\$relink_command\"; then
  58433. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  58434. - else
  58435. - $echo \"\$relink_command_output\" >&2
  58436. - $rm \"\$progdir/\$file\"
  58437. - exit $EXIT_FAILURE
  58438. - fi
  58439. - fi
  58440. + delfiles=
  58441. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58442. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  58443. + export_symbols="$output_objdir/$libname.uexp"
  58444. + delfiles="$delfiles $export_symbols"
  58445. + fi
  58446. +
  58447. + orig_export_symbols=
  58448. + case $host_os in
  58449. + cygwin* | mingw* | cegcc*)
  58450. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  58451. + # exporting using user supplied symfile
  58452. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  58453. + # and it's NOT already a .def file. Must figure out
  58454. + # which of the given symbols are data symbols and tag
  58455. + # them as such. So, trigger use of export_symbols_cmds.
  58456. + # export_symbols gets reassigned inside the "prepare
  58457. + # the list of exported symbols" if statement, so the
  58458. + # include_expsyms logic still works.
  58459. + orig_export_symbols="$export_symbols"
  58460. + export_symbols=
  58461. + always_export_symbols=yes
  58462. + fi
  58463. + fi
  58464. + ;;
  58465. + esac
  58466. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  58467. - { $rm \"\$progdir/\$program\";
  58468. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  58469. - $rm \"\$progdir/\$file\"
  58470. - fi"
  58471. - else
  58472. - $echo >> $output "\
  58473. - program='$outputname'
  58474. - progdir=\"\$thisdir/$objdir\"
  58475. -"
  58476. + # Prepare the list of exported symbols
  58477. + if test -z "$export_symbols"; then
  58478. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  58479. + func_verbose "generating symbol list for \`$libname.la'"
  58480. + export_symbols="$output_objdir/$libname.exp"
  58481. + $opt_dry_run || $RM $export_symbols
  58482. + cmds=$export_symbols_cmds
  58483. + save_ifs="$IFS"; IFS='~'
  58484. + for cmd in $cmds; do
  58485. + IFS="$save_ifs"
  58486. + eval cmd=\"$cmd\"
  58487. + func_len " $cmd"
  58488. + len=$func_len_result
  58489. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58490. + func_show_eval "$cmd" 'exit $?'
  58491. + skipped_export=false
  58492. + else
  58493. + # The command line is too long to execute in one step.
  58494. + func_verbose "using reloadable object file for export list..."
  58495. + skipped_export=:
  58496. + # Break out early, otherwise skipped_export may be
  58497. + # set to false by a later but shorter cmd.
  58498. + break
  58499. + fi
  58500. + done
  58501. + IFS="$save_ifs"
  58502. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  58503. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  58504. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  58505. + fi
  58506. + fi
  58507. fi
  58508. - $echo >> $output "\
  58509. -
  58510. - if test -f \"\$progdir/\$program\"; then"
  58511. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58512. + tmp_export_symbols="$export_symbols"
  58513. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  58514. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  58515. + fi
  58516. +
  58517. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  58518. + # The given exports_symbols file has to be filtered, so filter it.
  58519. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  58520. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  58521. + # 's' commands which not all seds can handle. GNU sed should be fine
  58522. + # though. Also, the filter scales superlinearly with the number of
  58523. + # global variables. join(1) would be nice here, but unfortunately
  58524. + # isn't a blessed tool.
  58525. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  58526. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  58527. + export_symbols=$output_objdir/$libname.def
  58528. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  58529. + fi
  58530. - # Export our shlibpath_var if we have one.
  58531. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  58532. - $echo >> $output "\
  58533. - # Add our own library path to $shlibpath_var
  58534. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  58535. + tmp_deplibs=
  58536. + for test_deplib in $deplibs; do
  58537. + case " $convenience " in
  58538. + *" $test_deplib "*) ;;
  58539. + *)
  58540. + tmp_deplibs="$tmp_deplibs $test_deplib"
  58541. + ;;
  58542. + esac
  58543. + done
  58544. + deplibs="$tmp_deplibs"
  58545. - # Some systems cannot cope with colon-terminated $shlibpath_var
  58546. - # The second colon is a workaround for a bug in BeOS R4 sed
  58547. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  58548. + if test -n "$convenience"; then
  58549. + if test -n "$whole_archive_flag_spec" &&
  58550. + test "$compiler_needs_object" = yes &&
  58551. + test -z "$libobjs"; then
  58552. + # extract the archives, so we have objects to list.
  58553. + # TODO: could optimize this to just extract one archive.
  58554. + whole_archive_flag_spec=
  58555. + fi
  58556. + if test -n "$whole_archive_flag_spec"; then
  58557. + save_libobjs=$libobjs
  58558. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  58559. + test "X$libobjs" = "X " && libobjs=
  58560. + else
  58561. + gentop="$output_objdir/${outputname}x"
  58562. + generated="$generated $gentop"
  58563. - export $shlibpath_var
  58564. -"
  58565. + func_extract_archives $gentop $convenience
  58566. + libobjs="$libobjs $func_extract_archives_result"
  58567. + test "X$libobjs" = "X " && libobjs=
  58568. + fi
  58569. fi
  58570. - # fixup the dll searchpath if we need to.
  58571. - if test -n "$dllsearchpath"; then
  58572. - $echo >> $output "\
  58573. - # Add the dll search path components to the executable PATH
  58574. - PATH=$dllsearchpath:\$PATH
  58575. -"
  58576. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  58577. + eval flag=\"$thread_safe_flag_spec\"
  58578. + linker_flags="$linker_flags $flag"
  58579. fi
  58580. - $echo >> $output "\
  58581. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58582. - # Run the actual program with our arguments.
  58583. -"
  58584. - case $host in
  58585. - # Backslashes separate directories on plain windows
  58586. - *-*-mingw | *-*-os2*)
  58587. - $echo >> $output "\
  58588. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  58589. -"
  58590. - ;;
  58591. -
  58592. - *)
  58593. - $echo >> $output "\
  58594. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  58595. -"
  58596. - ;;
  58597. - esac
  58598. - $echo >> $output "\
  58599. - \$echo \"\$0: cannot exec \$program \$*\"
  58600. - exit $EXIT_FAILURE
  58601. - fi
  58602. - else
  58603. - # The program doesn't exist.
  58604. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  58605. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  58606. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  58607. - exit $EXIT_FAILURE
  58608. - fi
  58609. -fi\
  58610. -"
  58611. - chmod +x $output
  58612. - fi
  58613. - exit $EXIT_SUCCESS
  58614. - ;;
  58615. - esac
  58616. -
  58617. - # See if we need to build an old-fashioned archive.
  58618. - for oldlib in $oldlibs; do
  58619. + # Make a backup of the uninstalled library when relinking
  58620. + if test "$mode" = relink; then
  58621. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  58622. + fi
  58623. - if test "$build_libtool_libs" = convenience; then
  58624. - oldobjs="$libobjs_save"
  58625. - addlibs="$convenience"
  58626. - build_libtool_libs=no
  58627. - else
  58628. - if test "$build_libtool_libs" = module; then
  58629. - oldobjs="$libobjs_save"
  58630. - build_libtool_libs=no
  58631. + # Do each of the archive commands.
  58632. + if test "$module" = yes && test -n "$module_cmds" ; then
  58633. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  58634. + eval test_cmds=\"$module_expsym_cmds\"
  58635. + cmds=$module_expsym_cmds
  58636. + else
  58637. + eval test_cmds=\"$module_cmds\"
  58638. + cmds=$module_cmds
  58639. + fi
  58640. else
  58641. - oldobjs="$old_deplibs $non_pic_objects"
  58642. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  58643. + eval test_cmds=\"$archive_expsym_cmds\"
  58644. + cmds=$archive_expsym_cmds
  58645. + else
  58646. + eval test_cmds=\"$archive_cmds\"
  58647. + cmds=$archive_cmds
  58648. + fi
  58649. fi
  58650. - addlibs="$old_convenience"
  58651. - fi
  58652. - if test -n "$addlibs"; then
  58653. - gentop="$output_objdir/${outputname}x"
  58654. - generated="$generated $gentop"
  58655. + if test "X$skipped_export" != "X:" &&
  58656. + func_len " $test_cmds" &&
  58657. + len=$func_len_result &&
  58658. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58659. + :
  58660. + else
  58661. + # The command line is too long to link in one step, link piecewise
  58662. + # or, if using GNU ld and skipped_export is not :, use a linker
  58663. + # script.
  58664. - func_extract_archives $gentop $addlibs
  58665. - oldobjs="$oldobjs $func_extract_archives_result"
  58666. - fi
  58667. + # Save the value of $output and $libobjs because we want to
  58668. + # use them later. If we have whole_archive_flag_spec, we
  58669. + # want to use save_libobjs as it was before
  58670. + # whole_archive_flag_spec was expanded, because we can't
  58671. + # assume the linker understands whole_archive_flag_spec.
  58672. + # This may have to be revisited, in case too many
  58673. + # convenience libraries get linked in and end up exceeding
  58674. + # the spec.
  58675. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  58676. + save_libobjs=$libobjs
  58677. + fi
  58678. + save_output=$output
  58679. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  58680. - # Do each command in the archive commands.
  58681. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  58682. - cmds=$old_archive_from_new_cmds
  58683. - else
  58684. - # POSIX demands no paths to be encoded in archives. We have
  58685. - # to avoid creating archives with duplicate basenames if we
  58686. - # might have to extract them afterwards, e.g., when creating a
  58687. - # static archive out of a convenience library, or when linking
  58688. - # the entirety of a libtool archive into another (currently
  58689. - # not supported by libtool).
  58690. - if (for obj in $oldobjs
  58691. + # Clear the reloadable object creation command queue and
  58692. + # initialize k to one.
  58693. + test_cmds=
  58694. + concat_cmds=
  58695. + objlist=
  58696. + last_robj=
  58697. + k=1
  58698. +
  58699. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  58700. + output=${output_objdir}/${output_la}.lnkscript
  58701. + func_verbose "creating GNU ld script: $output"
  58702. + $ECHO 'INPUT (' > $output
  58703. + for obj in $save_libobjs
  58704. do
  58705. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  58706. - done | sort | sort -uc >/dev/null 2>&1); then
  58707. - :
  58708. - else
  58709. - $echo "copying selected object files to avoid basename conflicts..."
  58710. + $ECHO "$obj" >> $output
  58711. + done
  58712. + $ECHO ')' >> $output
  58713. + delfiles="$delfiles $output"
  58714. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  58715. + output=${output_objdir}/${output_la}.lnk
  58716. + func_verbose "creating linker input file list: $output"
  58717. + : > $output
  58718. + set x $save_libobjs
  58719. + shift
  58720. + firstobj=
  58721. + if test "$compiler_needs_object" = yes; then
  58722. + firstobj="$1 "
  58723. + shift
  58724. + fi
  58725. + for obj
  58726. + do
  58727. + $ECHO "$obj" >> $output
  58728. + done
  58729. + delfiles="$delfiles $output"
  58730. + output=$firstobj\"$file_list_spec$output\"
  58731. + else
  58732. + if test -n "$save_libobjs"; then
  58733. + func_verbose "creating reloadable object files..."
  58734. + output=$output_objdir/$output_la-${k}.$objext
  58735. + eval test_cmds=\"$reload_cmds\"
  58736. + func_len " $test_cmds"
  58737. + len0=$func_len_result
  58738. + len=$len0
  58739. +
  58740. + # Loop over the list of objects to be linked.
  58741. + for obj in $save_libobjs
  58742. + do
  58743. + func_len " $obj"
  58744. + func_arith $len + $func_len_result
  58745. + len=$func_arith_result
  58746. + if test "X$objlist" = X ||
  58747. + test "$len" -lt "$max_cmd_len"; then
  58748. + func_append objlist " $obj"
  58749. + else
  58750. + # The command $test_cmds is almost too long, add a
  58751. + # command to the queue.
  58752. + if test "$k" -eq 1 ; then
  58753. + # The first file doesn't have a previous command to add.
  58754. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  58755. + else
  58756. + # All subsequent reloadable object files will link in
  58757. + # the last one created.
  58758. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  58759. + fi
  58760. + last_robj=$output_objdir/$output_la-${k}.$objext
  58761. + func_arith $k + 1
  58762. + k=$func_arith_result
  58763. + output=$output_objdir/$output_la-${k}.$objext
  58764. + objlist=$obj
  58765. + func_len " $last_robj"
  58766. + func_arith $len0 + $func_len_result
  58767. + len=$func_arith_result
  58768. + fi
  58769. + done
  58770. + # Handle the remaining objects by creating one last
  58771. + # reloadable object file. All subsequent reloadable object
  58772. + # files will link in the last one created.
  58773. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58774. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  58775. + if test -n "$last_robj"; then
  58776. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  58777. + fi
  58778. + delfiles="$delfiles $output"
  58779. - if test -z "$gentop"; then
  58780. - gentop="$output_objdir/${outputname}x"
  58781. - generated="$generated $gentop"
  58782. + else
  58783. + output=
  58784. + fi
  58785. +
  58786. + if ${skipped_export-false}; then
  58787. + func_verbose "generating symbol list for \`$libname.la'"
  58788. + export_symbols="$output_objdir/$libname.exp"
  58789. + $opt_dry_run || $RM $export_symbols
  58790. + libobjs=$output
  58791. + # Append the command to create the export file.
  58792. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58793. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  58794. + if test -n "$last_robj"; then
  58795. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  58796. + fi
  58797. + fi
  58798. +
  58799. + test -n "$save_libobjs" &&
  58800. + func_verbose "creating a temporary reloadable object file: $output"
  58801. +
  58802. + # Loop through the commands generated above and execute them.
  58803. + save_ifs="$IFS"; IFS='~'
  58804. + for cmd in $concat_cmds; do
  58805. + IFS="$save_ifs"
  58806. + $opt_silent || {
  58807. + func_quote_for_expand "$cmd"
  58808. + eval "func_echo $func_quote_for_expand_result"
  58809. + }
  58810. + $opt_dry_run || eval "$cmd" || {
  58811. + lt_exit=$?
  58812. +
  58813. + # Restore the uninstalled library and exit
  58814. + if test "$mode" = relink; then
  58815. + ( cd "$output_objdir" && \
  58816. + $RM "${realname}T" && \
  58817. + $MV "${realname}U" "$realname" )
  58818. + fi
  58819. +
  58820. + exit $lt_exit
  58821. + }
  58822. + done
  58823. + IFS="$save_ifs"
  58824. - $show "${rm}r $gentop"
  58825. - $run ${rm}r "$gentop"
  58826. - $show "$mkdir $gentop"
  58827. - $run $mkdir "$gentop"
  58828. - exit_status=$?
  58829. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  58830. - exit $exit_status
  58831. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  58832. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  58833. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  58834. fi
  58835. fi
  58836. - save_oldobjs=$oldobjs
  58837. - oldobjs=
  58838. - counter=1
  58839. - for obj in $save_oldobjs
  58840. - do
  58841. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  58842. - case " $oldobjs " in
  58843. - " ") oldobjs=$obj ;;
  58844. - *[\ /]"$objbase "*)
  58845. - while :; do
  58846. - # Make sure we don't pick an alternate name that also
  58847. - # overlaps.
  58848. - newobj=lt$counter-$objbase
  58849. - counter=`expr $counter + 1`
  58850. - case " $oldobjs " in
  58851. - *[\ /]"$newobj "*) ;;
  58852. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  58853. - esac
  58854. - done
  58855. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  58856. - $run ln "$obj" "$gentop/$newobj" ||
  58857. - $run cp "$obj" "$gentop/$newobj"
  58858. - oldobjs="$oldobjs $gentop/$newobj"
  58859. - ;;
  58860. - *) oldobjs="$oldobjs $obj" ;;
  58861. - esac
  58862. - done
  58863. - fi
  58864. + if ${skipped_export-false}; then
  58865. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58866. + tmp_export_symbols="$export_symbols"
  58867. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  58868. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  58869. + fi
  58870. +
  58871. + if test -n "$orig_export_symbols"; then
  58872. + # The given exports_symbols file has to be filtered, so filter it.
  58873. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  58874. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  58875. + # 's' commands which not all seds can handle. GNU sed should be fine
  58876. + # though. Also, the filter scales superlinearly with the number of
  58877. + # global variables. join(1) would be nice here, but unfortunately
  58878. + # isn't a blessed tool.
  58879. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  58880. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  58881. + export_symbols=$output_objdir/$libname.def
  58882. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  58883. + fi
  58884. + fi
  58885. - eval cmds=\"$old_archive_cmds\"
  58886. + libobjs=$output
  58887. + # Restore the value of output.
  58888. + output=$save_output
  58889. - if len=`expr "X$cmds" : ".*"` &&
  58890. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58891. - cmds=$old_archive_cmds
  58892. - else
  58893. - # the command line is too long to link in one step, link in parts
  58894. - $echo "using piecewise archive linking..."
  58895. - save_RANLIB=$RANLIB
  58896. - RANLIB=:
  58897. - objlist=
  58898. - concat_cmds=
  58899. - save_oldobjs=$oldobjs
  58900. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  58901. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  58902. + test "X$libobjs" = "X " && libobjs=
  58903. + fi
  58904. + # Expand the library linking commands again to reset the
  58905. + # value of $libobjs for piecewise linking.
  58906. - # Is there a better way of finding the last object in the list?
  58907. - for obj in $save_oldobjs
  58908. - do
  58909. - last_oldobj=$obj
  58910. - done
  58911. - for obj in $save_oldobjs
  58912. - do
  58913. - oldobjs="$objlist $obj"
  58914. - objlist="$objlist $obj"
  58915. - eval test_cmds=\"$old_archive_cmds\"
  58916. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  58917. - test "$len" -le "$max_cmd_len"; then
  58918. - :
  58919. + # Do each of the archive commands.
  58920. + if test "$module" = yes && test -n "$module_cmds" ; then
  58921. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  58922. + cmds=$module_expsym_cmds
  58923. else
  58924. - # the above command should be used before it gets too long
  58925. - oldobjs=$objlist
  58926. - if test "$obj" = "$last_oldobj" ; then
  58927. - RANLIB=$save_RANLIB
  58928. - fi
  58929. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58930. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  58931. - objlist=
  58932. + cmds=$module_cmds
  58933. fi
  58934. - done
  58935. - RANLIB=$save_RANLIB
  58936. - oldobjs=$objlist
  58937. - if test "X$oldobjs" = "X" ; then
  58938. - eval cmds=\"\$concat_cmds\"
  58939. else
  58940. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  58941. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  58942. + cmds=$archive_expsym_cmds
  58943. + else
  58944. + cmds=$archive_cmds
  58945. + fi
  58946. fi
  58947. fi
  58948. - fi
  58949. - save_ifs="$IFS"; IFS='~'
  58950. - for cmd in $cmds; do
  58951. - eval cmd=\"$cmd\"
  58952. - IFS="$save_ifs"
  58953. - $show "$cmd"
  58954. - $run eval "$cmd" || exit $?
  58955. - done
  58956. - IFS="$save_ifs"
  58957. - done
  58958. - if test -n "$generated"; then
  58959. - $show "${rm}r$generated"
  58960. - $run ${rm}r$generated
  58961. - fi
  58962. + if test -n "$delfiles"; then
  58963. + # Append the command to remove temporary files to $cmds.
  58964. + eval cmds=\"\$cmds~\$RM $delfiles\"
  58965. + fi
  58966. - # Now create the libtool archive.
  58967. - case $output in
  58968. - *.la)
  58969. - old_library=
  58970. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  58971. - $show "creating $output"
  58972. + # Add any objects from preloaded convenience libraries
  58973. + if test -n "$dlprefiles"; then
  58974. + gentop="$output_objdir/${outputname}x"
  58975. + generated="$generated $gentop"
  58976. - # Preserve any variables that may affect compiler behavior
  58977. - for var in $variables_saved_for_relink; do
  58978. - if eval test -z \"\${$var+set}\"; then
  58979. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  58980. - elif eval var_value=\$$var; test -z "$var_value"; then
  58981. - relink_command="$var=; export $var; $relink_command"
  58982. - else
  58983. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  58984. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  58985. + func_extract_archives $gentop $dlprefiles
  58986. + libobjs="$libobjs $func_extract_archives_result"
  58987. + test "X$libobjs" = "X " && libobjs=
  58988. fi
  58989. - done
  58990. - # Quote the link command for shipping.
  58991. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  58992. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  58993. - if test "$hardcode_automatic" = yes ; then
  58994. - relink_command=
  58995. - fi
  58996. + save_ifs="$IFS"; IFS='~'
  58997. + for cmd in $cmds; do
  58998. + IFS="$save_ifs"
  58999. + eval cmd=\"$cmd\"
  59000. + $opt_silent || {
  59001. + func_quote_for_expand "$cmd"
  59002. + eval "func_echo $func_quote_for_expand_result"
  59003. + }
  59004. + $opt_dry_run || eval "$cmd" || {
  59005. + lt_exit=$?
  59006. - # Only create the output if not a dry run.
  59007. - if test -z "$run"; then
  59008. - for installed in no yes; do
  59009. - if test "$installed" = yes; then
  59010. - if test -z "$install_libdir"; then
  59011. - break
  59012. + # Restore the uninstalled library and exit
  59013. + if test "$mode" = relink; then
  59014. + ( cd "$output_objdir" && \
  59015. + $RM "${realname}T" && \
  59016. + $MV "${realname}U" "$realname" )
  59017. fi
  59018. - output="$output_objdir/$outputname"i
  59019. - # Replace all uninstalled libtool libraries with the installed ones
  59020. - newdependency_libs=
  59021. - for deplib in $dependency_libs; do
  59022. - case $deplib in
  59023. - *.la)
  59024. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  59025. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  59026. - if test -z "$libdir"; then
  59027. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  59028. - exit $EXIT_FAILURE
  59029. - fi
  59030. - newdependency_libs="$newdependency_libs $libdir/$name"
  59031. - ;;
  59032. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  59033. - esac
  59034. - done
  59035. - dependency_libs="$newdependency_libs"
  59036. - newdlfiles=
  59037. - for lib in $dlfiles; do
  59038. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59039. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59040. - if test -z "$libdir"; then
  59041. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59042. - exit $EXIT_FAILURE
  59043. - fi
  59044. - newdlfiles="$newdlfiles $libdir/$name"
  59045. - done
  59046. - dlfiles="$newdlfiles"
  59047. - newdlprefiles=
  59048. - for lib in $dlprefiles; do
  59049. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59050. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59051. - if test -z "$libdir"; then
  59052. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59053. - exit $EXIT_FAILURE
  59054. - fi
  59055. - newdlprefiles="$newdlprefiles $libdir/$name"
  59056. - done
  59057. - dlprefiles="$newdlprefiles"
  59058. - else
  59059. - newdlfiles=
  59060. - for lib in $dlfiles; do
  59061. - case $lib in
  59062. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59063. - *) abs=`pwd`"/$lib" ;;
  59064. - esac
  59065. - newdlfiles="$newdlfiles $abs"
  59066. - done
  59067. - dlfiles="$newdlfiles"
  59068. - newdlprefiles=
  59069. - for lib in $dlprefiles; do
  59070. - case $lib in
  59071. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59072. - *) abs=`pwd`"/$lib" ;;
  59073. - esac
  59074. - newdlprefiles="$newdlprefiles $abs"
  59075. - done
  59076. - dlprefiles="$newdlprefiles"
  59077. - fi
  59078. - $rm $output
  59079. - # place dlname in correct position for cygwin
  59080. - tdlname=$dlname
  59081. - case $host,$output,$installed,$module,$dlname in
  59082. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  59083. - esac
  59084. - $echo > $output "\
  59085. -# $outputname - a libtool library file
  59086. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  59087. -#
  59088. -# Please DO NOT delete this file!
  59089. -# It is necessary for linking the library.
  59090. -# The name that we can dlopen(3).
  59091. -dlname='$tdlname'
  59092. + exit $lt_exit
  59093. + }
  59094. + done
  59095. + IFS="$save_ifs"
  59096. -# Names of this library.
  59097. -library_names='$library_names'
  59098. + # Restore the uninstalled library and exit
  59099. + if test "$mode" = relink; then
  59100. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  59101. -# The name of the static archive.
  59102. -old_library='$old_library'
  59103. + if test -n "$convenience"; then
  59104. + if test -z "$whole_archive_flag_spec"; then
  59105. + func_show_eval '${RM}r "$gentop"'
  59106. + fi
  59107. + fi
  59108. -# Libraries that this one depends upon.
  59109. -dependency_libs='$dependency_libs'
  59110. + exit $EXIT_SUCCESS
  59111. + fi
  59112. -# Version information for $libname.
  59113. -current=$current
  59114. -age=$age
  59115. -revision=$revision
  59116. + # Create links to the real library.
  59117. + for linkname in $linknames; do
  59118. + if test "$realname" != "$linkname"; then
  59119. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  59120. + fi
  59121. + done
  59122. -# Is this an already installed library?
  59123. -installed=$installed
  59124. + # If -module or -export-dynamic was specified, set the dlname.
  59125. + if test "$module" = yes || test "$export_dynamic" = yes; then
  59126. + # On all known operating systems, these are identical.
  59127. + dlname="$soname"
  59128. + fi
  59129. + fi
  59130. + ;;
  59131. -# Should we warn about portability when linking against -modules?
  59132. -shouldnotlink=$module
  59133. + obj)
  59134. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  59135. + func_warning "\`-dlopen' is ignored for objects"
  59136. + fi
  59137. -# Files to dlopen/dlpreopen
  59138. -dlopen='$dlfiles'
  59139. -dlpreopen='$dlprefiles'
  59140. + case " $deplibs" in
  59141. + *\ -l* | *\ -L*)
  59142. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  59143. + esac
  59144. -# Directory that this library needs to be installed in:
  59145. -libdir='$install_libdir'"
  59146. - if test "$installed" = no && test "$need_relink" = yes; then
  59147. - $echo >> $output "\
  59148. -relink_command=\"$relink_command\""
  59149. - fi
  59150. - done
  59151. - fi
  59152. + test -n "$rpath" && \
  59153. + func_warning "\`-rpath' is ignored for objects"
  59154. - # Do a symbolic link so that the libtool archive can be found in
  59155. - # LD_LIBRARY_PATH before the program is installed.
  59156. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  59157. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  59158. - ;;
  59159. - esac
  59160. - exit $EXIT_SUCCESS
  59161. - ;;
  59162. + test -n "$xrpath" && \
  59163. + func_warning "\`-R' is ignored for objects"
  59164. - # libtool install mode
  59165. - install)
  59166. - modename="$modename: install"
  59167. + test -n "$vinfo" && \
  59168. + func_warning "\`-version-info' is ignored for objects"
  59169. - # There may be an optional sh(1) argument at the beginning of
  59170. - # install_prog (especially on Windows NT).
  59171. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  59172. - # Allow the use of GNU shtool's install command.
  59173. - $echo "X$nonopt" | grep shtool > /dev/null; then
  59174. - # Aesthetically quote it.
  59175. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  59176. - case $arg in
  59177. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  59178. - arg="\"$arg\""
  59179. + test -n "$release" && \
  59180. + func_warning "\`-release' is ignored for objects"
  59181. +
  59182. + case $output in
  59183. + *.lo)
  59184. + test -n "$objs$old_deplibs" && \
  59185. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  59186. +
  59187. + libobj=$output
  59188. + func_lo2o "$libobj"
  59189. + obj=$func_lo2o_result
  59190. + ;;
  59191. + *)
  59192. + libobj=
  59193. + obj="$output"
  59194. ;;
  59195. esac
  59196. - install_prog="$arg "
  59197. - arg="$1"
  59198. - shift
  59199. - else
  59200. - install_prog=
  59201. - arg=$nonopt
  59202. - fi
  59203. - # The real first argument should be the name of the installation program.
  59204. - # Aesthetically quote it.
  59205. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59206. - case $arg in
  59207. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  59208. - arg="\"$arg\""
  59209. - ;;
  59210. - esac
  59211. - install_prog="$install_prog$arg"
  59212. + # Delete the old objects.
  59213. + $opt_dry_run || $RM $obj $libobj
  59214. - # We need to accept at least all the BSD install flags.
  59215. - dest=
  59216. - files=
  59217. - opts=
  59218. - prev=
  59219. - install_type=
  59220. - isdir=no
  59221. - stripme=
  59222. - for arg
  59223. - do
  59224. - if test -n "$dest"; then
  59225. - files="$files $dest"
  59226. - dest=$arg
  59227. - continue
  59228. - fi
  59229. + # Objects from convenience libraries. This assumes
  59230. + # single-version convenience libraries. Whenever we create
  59231. + # different ones for PIC/non-PIC, this we'll have to duplicate
  59232. + # the extraction.
  59233. + reload_conv_objs=
  59234. + gentop=
  59235. + # reload_cmds runs $LD directly, so let us get rid of
  59236. + # -Wl from whole_archive_flag_spec and hope we can get by with
  59237. + # turning comma into space..
  59238. + wl=
  59239. - case $arg in
  59240. - -d) isdir=yes ;;
  59241. - -f)
  59242. - case " $install_prog " in
  59243. - *[\\\ /]cp\ *) ;;
  59244. - *) prev=$arg ;;
  59245. - esac
  59246. - ;;
  59247. - -g | -m | -o) prev=$arg ;;
  59248. - -s)
  59249. - stripme=" -s"
  59250. - continue
  59251. - ;;
  59252. - -*)
  59253. - ;;
  59254. - *)
  59255. - # If the previous option needed an argument, then skip it.
  59256. - if test -n "$prev"; then
  59257. - prev=
  59258. + if test -n "$convenience"; then
  59259. + if test -n "$whole_archive_flag_spec"; then
  59260. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  59261. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  59262. else
  59263. - dest=$arg
  59264. - continue
  59265. + gentop="$output_objdir/${obj}x"
  59266. + generated="$generated $gentop"
  59267. +
  59268. + func_extract_archives $gentop $convenience
  59269. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  59270. fi
  59271. - ;;
  59272. - esac
  59273. + fi
  59274. - # Aesthetically quote the argument.
  59275. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59276. - case $arg in
  59277. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  59278. - arg="\"$arg\""
  59279. - ;;
  59280. - esac
  59281. - install_prog="$install_prog $arg"
  59282. - done
  59283. + # Create the old-style object.
  59284. + 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
  59285. - if test -z "$install_prog"; then
  59286. - $echo "$modename: you must specify an install program" 1>&2
  59287. - $echo "$help" 1>&2
  59288. - exit $EXIT_FAILURE
  59289. - fi
  59290. + output="$obj"
  59291. + func_execute_cmds "$reload_cmds" 'exit $?'
  59292. - if test -n "$prev"; then
  59293. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  59294. - $echo "$help" 1>&2
  59295. - exit $EXIT_FAILURE
  59296. - fi
  59297. + # Exit if we aren't doing a library object file.
  59298. + if test -z "$libobj"; then
  59299. + if test -n "$gentop"; then
  59300. + func_show_eval '${RM}r "$gentop"'
  59301. + fi
  59302. - if test -z "$files"; then
  59303. - if test -z "$dest"; then
  59304. - $echo "$modename: no file or destination specified" 1>&2
  59305. - else
  59306. - $echo "$modename: you must specify a destination" 1>&2
  59307. + exit $EXIT_SUCCESS
  59308. fi
  59309. - $echo "$help" 1>&2
  59310. - exit $EXIT_FAILURE
  59311. - fi
  59312. - # Canonicalise the pathname:
  59313. - # - remove foo/../
  59314. - # - replace //
  59315. - # - remove /./
  59316. - # - strip any trailing /
  59317. - tmp=""
  59318. - while test "$dest" != "$tmp"; do
  59319. - tmp=$dest
  59320. - dest=`$echo "X$dest" | $Xsed -e 's%[^/.][^/.]*/\.\.%%g' -e 's%/\./%/%g' -e 's%//*%/%g' -e 's%/$%%g'`
  59321. - done
  59322. + if test "$build_libtool_libs" != yes; then
  59323. + if test -n "$gentop"; then
  59324. + func_show_eval '${RM}r "$gentop"'
  59325. + fi
  59326. - # Check to see that the destination is a directory.
  59327. - test -d "$dest" && isdir=yes
  59328. - if test "$isdir" = yes; then
  59329. - destdir="$dest"
  59330. - destname=
  59331. - else
  59332. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  59333. - test "X$destdir" = "X$dest" && destdir=.
  59334. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  59335. + # Create an invalid libtool object if no PIC, so that we don't
  59336. + # accidentally link it into a program.
  59337. + # $show "echo timestamp > $libobj"
  59338. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  59339. + exit $EXIT_SUCCESS
  59340. + fi
  59341. - # Not a directory, so check to see that there is only one file specified.
  59342. - set dummy $files
  59343. - if test "$#" -gt 2; then
  59344. - $echo "$modename: \`$dest' is not a directory" 1>&2
  59345. - $echo "$help" 1>&2
  59346. - exit $EXIT_FAILURE
  59347. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  59348. + # Only do commands if we really have different PIC objects.
  59349. + reload_objs="$libobjs $reload_conv_objs"
  59350. + output="$libobj"
  59351. + func_execute_cmds "$reload_cmds" 'exit $?'
  59352. fi
  59353. - fi
  59354. - case $destdir in
  59355. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  59356. - *)
  59357. - for file in $files; do
  59358. - case $file in
  59359. - *.lo) ;;
  59360. - *)
  59361. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  59362. - $echo "$help" 1>&2
  59363. - exit $EXIT_FAILURE
  59364. - ;;
  59365. - esac
  59366. - done
  59367. +
  59368. + if test -n "$gentop"; then
  59369. + func_show_eval '${RM}r "$gentop"'
  59370. + fi
  59371. +
  59372. + exit $EXIT_SUCCESS
  59373. ;;
  59374. - esac
  59375. - # This variable tells wrapper scripts just to set variables rather
  59376. - # than running their programs.
  59377. - libtool_install_magic="$magic"
  59378. + prog)
  59379. + case $host in
  59380. + *cygwin*) func_stripname '' '.exe' "$output"
  59381. + output=$func_stripname_result.exe;;
  59382. + esac
  59383. + test -n "$vinfo" && \
  59384. + func_warning "\`-version-info' is ignored for programs"
  59385. - staticlibs=
  59386. - future_libdirs=
  59387. - current_libdirs=
  59388. - for file in $files; do
  59389. + test -n "$release" && \
  59390. + func_warning "\`-release' is ignored for programs"
  59391. - # Do each installation.
  59392. - case $file in
  59393. - *.$libext)
  59394. - # Do the static libraries later.
  59395. - staticlibs="$staticlibs $file"
  59396. + test "$preload" = yes \
  59397. + && test "$dlopen_support" = unknown \
  59398. + && test "$dlopen_self" = unknown \
  59399. + && test "$dlopen_self_static" = unknown && \
  59400. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  59401. +
  59402. + case $host in
  59403. + *-*-rhapsody* | *-*-darwin1.[012])
  59404. + # On Rhapsody replace the C library is the System framework
  59405. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59406. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59407. ;;
  59408. + esac
  59409. - *.la)
  59410. - # Check to see that this really is a libtool archive.
  59411. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  59412. - else
  59413. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  59414. - $echo "$help" 1>&2
  59415. - exit $EXIT_FAILURE
  59416. + case $host in
  59417. + *-*-darwin*)
  59418. + # Don't allow lazy linking, it breaks C++ global constructors
  59419. + # But is supposedly fixed on 10.4 or later (yay!).
  59420. + if test "$tagname" = CXX ; then
  59421. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  59422. + 10.[0123])
  59423. + compile_command="$compile_command ${wl}-bind_at_load"
  59424. + finalize_command="$finalize_command ${wl}-bind_at_load"
  59425. + ;;
  59426. + esac
  59427. fi
  59428. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  59429. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59430. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59431. + ;;
  59432. + esac
  59433. - library_names=
  59434. - old_library=
  59435. - relink_command=
  59436. - # If there is no directory component, then add one.
  59437. - case $file in
  59438. - */* | *\\*) . $file ;;
  59439. - *) . ./$file ;;
  59440. - esac
  59441. - # Add the libdir to current_libdirs if it is the destination.
  59442. - if test "X$destdir" = "X$libdir"; then
  59443. - case "$current_libdirs " in
  59444. - *" $libdir "*) ;;
  59445. - *) current_libdirs="$current_libdirs $libdir" ;;
  59446. + # move library search paths that coincide with paths to not yet
  59447. + # installed libraries to the beginning of the library search list
  59448. + new_libs=
  59449. + for path in $notinst_path; do
  59450. + case " $new_libs " in
  59451. + *" -L$path/$objdir "*) ;;
  59452. + *)
  59453. + case " $compile_deplibs " in
  59454. + *" -L$path/$objdir "*)
  59455. + new_libs="$new_libs -L$path/$objdir" ;;
  59456. esac
  59457. - else
  59458. - # Note the libdir as a future libdir.
  59459. - case "$future_libdirs " in
  59460. - *" $libdir "*) ;;
  59461. - *) future_libdirs="$future_libdirs $libdir" ;;
  59462. + ;;
  59463. + esac
  59464. + done
  59465. + for deplib in $compile_deplibs; do
  59466. + case $deplib in
  59467. + -L*)
  59468. + case " $new_libs " in
  59469. + *" $deplib "*) ;;
  59470. + *) new_libs="$new_libs $deplib" ;;
  59471. esac
  59472. - fi
  59473. + ;;
  59474. + *) new_libs="$new_libs $deplib" ;;
  59475. + esac
  59476. + done
  59477. + compile_deplibs="$new_libs"
  59478. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  59479. - test "X$dir" = "X$file/" && dir=
  59480. - dir="$dir$objdir"
  59481. - if test -n "$relink_command"; then
  59482. - # Determine the prefix the user has applied to our future dir.
  59483. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  59484. + compile_command="$compile_command $compile_deplibs"
  59485. + finalize_command="$finalize_command $finalize_deplibs"
  59486. - # Don't allow the user to place us outside of our expected
  59487. - # location b/c this prevents finding dependent libraries that
  59488. - # are installed to the same prefix.
  59489. - # At present, this check doesn't affect windows .dll's that
  59490. - # are installed into $libdir/../bin (currently, that works fine)
  59491. - # but it's something to keep an eye on.
  59492. - if test "$inst_prefix_dir" = "$destdir"; then
  59493. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  59494. - exit $EXIT_FAILURE
  59495. - fi
  59496. + if test -n "$rpath$xrpath"; then
  59497. + # If the user specified any rpath flags, then add them.
  59498. + for libdir in $rpath $xrpath; do
  59499. + # This is the magic to use -rpath.
  59500. + case "$finalize_rpath " in
  59501. + *" $libdir "*) ;;
  59502. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  59503. + esac
  59504. + done
  59505. + fi
  59506. - if test -n "$inst_prefix_dir"; then
  59507. - # Stick the inst_prefix_dir data into the link command.
  59508. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  59509. + # Now hardcode the library paths
  59510. + rpath=
  59511. + hardcode_libdirs=
  59512. + for libdir in $compile_rpath $finalize_rpath; do
  59513. + if test -n "$hardcode_libdir_flag_spec"; then
  59514. + if test -n "$hardcode_libdir_separator"; then
  59515. + if test -z "$hardcode_libdirs"; then
  59516. + hardcode_libdirs="$libdir"
  59517. + else
  59518. + # Just accumulate the unique libdirs.
  59519. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59520. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59521. + ;;
  59522. + *)
  59523. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59524. + ;;
  59525. + esac
  59526. + fi
  59527. else
  59528. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  59529. + eval flag=\"$hardcode_libdir_flag_spec\"
  59530. + rpath="$rpath $flag"
  59531. fi
  59532. + elif test -n "$runpath_var"; then
  59533. + case "$perm_rpath " in
  59534. + *" $libdir "*) ;;
  59535. + *) perm_rpath="$perm_rpath $libdir" ;;
  59536. + esac
  59537. + fi
  59538. + case $host in
  59539. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  59540. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  59541. + case :$dllsearchpath: in
  59542. + *":$libdir:"*) ;;
  59543. + ::) dllsearchpath=$libdir;;
  59544. + *) dllsearchpath="$dllsearchpath:$libdir";;
  59545. + esac
  59546. + case :$dllsearchpath: in
  59547. + *":$testbindir:"*) ;;
  59548. + ::) dllsearchpath=$testbindir;;
  59549. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  59550. + esac
  59551. + ;;
  59552. + esac
  59553. + done
  59554. + # Substitute the hardcoded libdirs into the rpath.
  59555. + if test -n "$hardcode_libdir_separator" &&
  59556. + test -n "$hardcode_libdirs"; then
  59557. + libdir="$hardcode_libdirs"
  59558. + eval rpath=\" $hardcode_libdir_flag_spec\"
  59559. + fi
  59560. + compile_rpath="$rpath"
  59561. - $echo "$modename: warning: relinking \`$file'" 1>&2
  59562. - $show "$relink_command"
  59563. - if $run eval "$relink_command"; then :
  59564. + rpath=
  59565. + hardcode_libdirs=
  59566. + for libdir in $finalize_rpath; do
  59567. + if test -n "$hardcode_libdir_flag_spec"; then
  59568. + if test -n "$hardcode_libdir_separator"; then
  59569. + if test -z "$hardcode_libdirs"; then
  59570. + hardcode_libdirs="$libdir"
  59571. + else
  59572. + # Just accumulate the unique libdirs.
  59573. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59574. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59575. + ;;
  59576. + *)
  59577. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59578. + ;;
  59579. + esac
  59580. + fi
  59581. else
  59582. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  59583. - exit $EXIT_FAILURE
  59584. + eval flag=\"$hardcode_libdir_flag_spec\"
  59585. + rpath="$rpath $flag"
  59586. fi
  59587. + elif test -n "$runpath_var"; then
  59588. + case "$finalize_perm_rpath " in
  59589. + *" $libdir "*) ;;
  59590. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  59591. + esac
  59592. fi
  59593. + done
  59594. + # Substitute the hardcoded libdirs into the rpath.
  59595. + if test -n "$hardcode_libdir_separator" &&
  59596. + test -n "$hardcode_libdirs"; then
  59597. + libdir="$hardcode_libdirs"
  59598. + eval rpath=\" $hardcode_libdir_flag_spec\"
  59599. + fi
  59600. + finalize_rpath="$rpath"
  59601. - # See the names of the shared library.
  59602. - set dummy $library_names
  59603. - if test -n "$2"; then
  59604. - realname="$2"
  59605. - shift
  59606. - shift
  59607. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  59608. + # Transform all the library objects into standard objects.
  59609. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59610. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59611. + fi
  59612. - srcname="$realname"
  59613. - test -n "$relink_command" && srcname="$realname"T
  59614. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  59615. - # Install the shared library and build the symlinks.
  59616. - $show "$install_prog $dir/$srcname $destdir/$realname"
  59617. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  59618. - if test -n "$stripme" && test -n "$striplib"; then
  59619. - $show "$striplib $destdir/$realname"
  59620. - $run eval "$striplib $destdir/$realname" || exit $?
  59621. - fi
  59622. + # template prelinking step
  59623. + if test -n "$prelink_cmds"; then
  59624. + func_execute_cmds "$prelink_cmds" 'exit $?'
  59625. + fi
  59626. - if test "$#" -gt 0; then
  59627. - # Delete the old symlinks, and create new ones.
  59628. - # Try `ln -sf' first, because the `ln' binary might depend on
  59629. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  59630. - # so we also need to try rm && ln -s.
  59631. - for linkname
  59632. - do
  59633. - if test "$linkname" != "$realname"; then
  59634. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  59635. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  59636. - fi
  59637. - done
  59638. - fi
  59639. + wrappers_required=yes
  59640. + case $host in
  59641. + *cygwin* | *mingw* )
  59642. + if test "$build_libtool_libs" != yes; then
  59643. + wrappers_required=no
  59644. + fi
  59645. + ;;
  59646. + *cegcc)
  59647. + # Disable wrappers for cegcc, we are cross compiling anyway.
  59648. + wrappers_required=no
  59649. + ;;
  59650. + *)
  59651. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  59652. + wrappers_required=no
  59653. + fi
  59654. + ;;
  59655. + esac
  59656. + if test "$wrappers_required" = no; then
  59657. + # Replace the output file specification.
  59658. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  59659. + link_command="$compile_command$compile_rpath"
  59660. - # Do each command in the postinstall commands.
  59661. - lib="$destdir/$realname"
  59662. - cmds=$postinstall_cmds
  59663. - save_ifs="$IFS"; IFS='~'
  59664. - for cmd in $cmds; do
  59665. - IFS="$save_ifs"
  59666. - eval cmd=\"$cmd\"
  59667. - $show "$cmd"
  59668. - $run eval "$cmd" || {
  59669. - lt_exit=$?
  59670. -
  59671. - # Restore the uninstalled library and exit
  59672. - if test "$mode" = relink; then
  59673. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  59674. - fi
  59675. + # We have no uninstalled library dependencies, so finalize right now.
  59676. + exit_status=0
  59677. + func_show_eval "$link_command" 'exit_status=$?'
  59678. - exit $lt_exit
  59679. - }
  59680. - done
  59681. - IFS="$save_ifs"
  59682. + # Delete the generated files.
  59683. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  59684. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  59685. fi
  59686. - # Install the pseudo-library for information purposes.
  59687. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59688. - instname="$dir/$name"i
  59689. - $show "$install_prog $instname $destdir/$name"
  59690. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  59691. -
  59692. - # Maybe install the static library, too.
  59693. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  59694. - ;;
  59695. + exit $exit_status
  59696. + fi
  59697. - *.lo)
  59698. - # Install (i.e. copy) a libtool object.
  59699. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  59700. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  59701. + fi
  59702. + if test -n "$finalize_shlibpath"; then
  59703. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  59704. + fi
  59705. - # Figure out destination file name, if it wasn't already specified.
  59706. - if test -n "$destname"; then
  59707. - destfile="$destdir/$destname"
  59708. - else
  59709. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59710. - destfile="$destdir/$destfile"
  59711. + compile_var=
  59712. + finalize_var=
  59713. + if test -n "$runpath_var"; then
  59714. + if test -n "$perm_rpath"; then
  59715. + # We should set the runpath_var.
  59716. + rpath=
  59717. + for dir in $perm_rpath; do
  59718. + rpath="$rpath$dir:"
  59719. + done
  59720. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  59721. fi
  59722. -
  59723. - # Deduce the name of the destination old-style object file.
  59724. - case $destfile in
  59725. - *.lo)
  59726. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  59727. - ;;
  59728. - *.$objext)
  59729. - staticdest="$destfile"
  59730. - destfile=
  59731. - ;;
  59732. - *)
  59733. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  59734. - $echo "$help" 1>&2
  59735. - exit $EXIT_FAILURE
  59736. - ;;
  59737. - esac
  59738. -
  59739. - # Install the libtool object if requested.
  59740. - if test -n "$destfile"; then
  59741. - $show "$install_prog $file $destfile"
  59742. - $run eval "$install_prog $file $destfile" || exit $?
  59743. + if test -n "$finalize_perm_rpath"; then
  59744. + # We should set the runpath_var.
  59745. + rpath=
  59746. + for dir in $finalize_perm_rpath; do
  59747. + rpath="$rpath$dir:"
  59748. + done
  59749. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  59750. fi
  59751. + fi
  59752. - # Install the old object if enabled.
  59753. - if test "$build_old_libs" = yes; then
  59754. - # Deduce the name of the old-style object file.
  59755. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  59756. -
  59757. - $show "$install_prog $staticobj $staticdest"
  59758. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  59759. - fi
  59760. + if test "$no_install" = yes; then
  59761. + # We don't need to create a wrapper script.
  59762. + link_command="$compile_var$compile_command$compile_rpath"
  59763. + # Replace the output file specification.
  59764. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  59765. + # Delete the old output file.
  59766. + $opt_dry_run || $RM $output
  59767. + # Link the executable and exit
  59768. + func_show_eval "$link_command" 'exit $?'
  59769. exit $EXIT_SUCCESS
  59770. - ;;
  59771. + fi
  59772. - *)
  59773. - # Figure out destination file name, if it wasn't already specified.
  59774. - if test -n "$destname"; then
  59775. - destfile="$destdir/$destname"
  59776. + if test "$hardcode_action" = relink; then
  59777. + # Fast installation is not supported
  59778. + link_command="$compile_var$compile_command$compile_rpath"
  59779. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  59780. +
  59781. + func_warning "this platform does not like uninstalled shared libraries"
  59782. + func_warning "\`$output' will be relinked during installation"
  59783. + else
  59784. + if test "$fast_install" != no; then
  59785. + link_command="$finalize_var$compile_command$finalize_rpath"
  59786. + if test "$fast_install" = yes; then
  59787. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  59788. + else
  59789. + # fast_install is set to needless
  59790. + relink_command=
  59791. + fi
  59792. else
  59793. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59794. - destfile="$destdir/$destfile"
  59795. + link_command="$compile_var$compile_command$compile_rpath"
  59796. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  59797. fi
  59798. + fi
  59799. - # If the file is missing, and there is a .exe on the end, strip it
  59800. - # because it is most likely a libtool script we actually want to
  59801. - # install
  59802. - stripped_ext=""
  59803. - case $file in
  59804. - *.exe)
  59805. - if test ! -f "$file"; then
  59806. - file=`$echo $file|${SED} 's,.exe$,,'`
  59807. - stripped_ext=".exe"
  59808. - fi
  59809. - ;;
  59810. - esac
  59811. -
  59812. - # Do a test to see if this is really a libtool program.
  59813. - case $host in
  59814. - *cygwin*|*mingw*)
  59815. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  59816. - ;;
  59817. - *)
  59818. - wrapper=$file
  59819. - ;;
  59820. - esac
  59821. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  59822. - notinst_deplibs=
  59823. - relink_command=
  59824. -
  59825. - # Note that it is not necessary on cygwin/mingw to append a dot to
  59826. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  59827. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  59828. - # `FILE.' does not work on cygwin managed mounts.
  59829. - #
  59830. - # If there is no directory component, then add one.
  59831. - case $wrapper in
  59832. - */* | *\\*) . ${wrapper} ;;
  59833. - *) . ./${wrapper} ;;
  59834. - esac
  59835. -
  59836. - # Check the variables that should have been set.
  59837. - if test -z "$notinst_deplibs"; then
  59838. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  59839. - exit $EXIT_FAILURE
  59840. - fi
  59841. + # Replace the output file specification.
  59842. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  59843. - finalize=yes
  59844. - for lib in $notinst_deplibs; do
  59845. - # Check to see that each library is installed.
  59846. - libdir=
  59847. - if test -f "$lib"; then
  59848. - # If there is no directory component, then add one.
  59849. - case $lib in
  59850. - */* | *\\*) . $lib ;;
  59851. - *) . ./$lib ;;
  59852. - esac
  59853. - fi
  59854. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  59855. - if test -n "$libdir" && test ! -f "$libfile"; then
  59856. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  59857. - finalize=no
  59858. - fi
  59859. - done
  59860. + # Delete the old output files.
  59861. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  59862. - relink_command=
  59863. - # Note that it is not necessary on cygwin/mingw to append a dot to
  59864. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  59865. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  59866. - # `FILE.' does not work on cygwin managed mounts.
  59867. - #
  59868. - # If there is no directory component, then add one.
  59869. - case $wrapper in
  59870. - */* | *\\*) . ${wrapper} ;;
  59871. - *) . ./${wrapper} ;;
  59872. - esac
  59873. + func_show_eval "$link_command" 'exit $?'
  59874. - outputname=
  59875. - if test "$fast_install" = no && test -n "$relink_command"; then
  59876. - if test "$finalize" = yes && test -z "$run"; then
  59877. - tmpdir=`func_mktempdir`
  59878. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  59879. - outputname="$tmpdir/$file"
  59880. - # Replace the output file specification.
  59881. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  59882. + # Now create the wrapper script.
  59883. + func_verbose "creating $output"
  59884. - $show "$relink_command"
  59885. - if $run eval "$relink_command"; then :
  59886. - else
  59887. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  59888. - ${rm}r "$tmpdir"
  59889. - continue
  59890. - fi
  59891. - file="$outputname"
  59892. - else
  59893. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  59894. - fi
  59895. + # Quote the relink command for shipping.
  59896. + if test -n "$relink_command"; then
  59897. + # Preserve any variables that may affect compiler behavior
  59898. + for var in $variables_saved_for_relink; do
  59899. + if eval test -z \"\${$var+set}\"; then
  59900. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  59901. + elif eval var_value=\$$var; test -z "$var_value"; then
  59902. + relink_command="$var=; export $var; $relink_command"
  59903. else
  59904. - # Install the binary that we compiled earlier.
  59905. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  59906. + func_quote_for_eval "$var_value"
  59907. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  59908. fi
  59909. - fi
  59910. + done
  59911. + relink_command="(cd `pwd`; $relink_command)"
  59912. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  59913. + fi
  59914. - # remove .exe since cygwin /usr/bin/install will append another
  59915. - # one anyway
  59916. - case $install_prog,$host in
  59917. - */usr/bin/install*,*cygwin*)
  59918. - case $file:$destfile in
  59919. - *.exe:*.exe)
  59920. - # this is ok
  59921. - ;;
  59922. - *.exe:*)
  59923. - destfile=$destfile.exe
  59924. - ;;
  59925. - *:*.exe)
  59926. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  59927. - ;;
  59928. - esac
  59929. - ;;
  59930. + # Quote $ECHO for shipping.
  59931. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  59932. + case $progpath in
  59933. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  59934. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  59935. + esac
  59936. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  59937. + else
  59938. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  59939. + fi
  59940. +
  59941. + # Only actually do things if not in dry run mode.
  59942. + $opt_dry_run || {
  59943. + # win32 will think the script is a binary if it has
  59944. + # a .exe suffix, so we strip it off here.
  59945. + case $output in
  59946. + *.exe) func_stripname '' '.exe' "$output"
  59947. + output=$func_stripname_result ;;
  59948. + esac
  59949. + # test for cygwin because mv fails w/o .exe extensions
  59950. + case $host in
  59951. + *cygwin*)
  59952. + exeext=.exe
  59953. + func_stripname '' '.exe' "$outputname"
  59954. + outputname=$func_stripname_result ;;
  59955. + *) exeext= ;;
  59956. esac
  59957. - $show "$install_prog$stripme $file $destfile"
  59958. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  59959. - test -n "$outputname" && ${rm}r "$tmpdir"
  59960. - ;;
  59961. - esac
  59962. - done
  59963. + case $host in
  59964. + *cygwin* | *mingw* )
  59965. + func_dirname_and_basename "$output" "" "."
  59966. + output_name=$func_basename_result
  59967. + output_path=$func_dirname_result
  59968. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  59969. + cwrapper="$output_path/$output_name.exe"
  59970. + $RM $cwrappersource $cwrapper
  59971. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  59972. +
  59973. + func_emit_cwrapperexe_src > $cwrappersource
  59974. +
  59975. + # The wrapper executable is built using the $host compiler,
  59976. + # because it contains $host paths and files. If cross-
  59977. + # compiling, it, like the target executable, must be
  59978. + # executed on the $host or under an emulation environment.
  59979. + $opt_dry_run || {
  59980. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  59981. + $STRIP $cwrapper
  59982. + }
  59983. - for file in $staticlibs; do
  59984. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59985. + # Now, create the wrapper script for func_source use:
  59986. + func_ltwrapper_scriptname $cwrapper
  59987. + $RM $func_ltwrapper_scriptname_result
  59988. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  59989. + $opt_dry_run || {
  59990. + # note: this script will not be executed, so do not chmod.
  59991. + if test "x$build" = "x$host" ; then
  59992. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  59993. + else
  59994. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  59995. + fi
  59996. + }
  59997. + ;;
  59998. + * )
  59999. + $RM $output
  60000. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  60001. - # Set up the ranlib parameters.
  60002. - oldlib="$destdir/$name"
  60003. + func_emit_wrapper no > $output
  60004. + chmod +x $output
  60005. + ;;
  60006. + esac
  60007. + }
  60008. + exit $EXIT_SUCCESS
  60009. + ;;
  60010. + esac
  60011. - $show "$install_prog $file $oldlib"
  60012. - $run eval "$install_prog \$file \$oldlib" || exit $?
  60013. + # See if we need to build an old-fashioned archive.
  60014. + for oldlib in $oldlibs; do
  60015. - if test -n "$stripme" && test -n "$old_striplib"; then
  60016. - $show "$old_striplib $oldlib"
  60017. - $run eval "$old_striplib $oldlib" || exit $?
  60018. + if test "$build_libtool_libs" = convenience; then
  60019. + oldobjs="$libobjs_save $symfileobj"
  60020. + addlibs="$convenience"
  60021. + build_libtool_libs=no
  60022. + else
  60023. + if test "$build_libtool_libs" = module; then
  60024. + oldobjs="$libobjs_save"
  60025. + build_libtool_libs=no
  60026. + else
  60027. + oldobjs="$old_deplibs $non_pic_objects"
  60028. + if test "$preload" = yes && test -f "$symfileobj"; then
  60029. + oldobjs="$oldobjs $symfileobj"
  60030. + fi
  60031. + fi
  60032. + addlibs="$old_convenience"
  60033. fi
  60034. - # Do each command in the postinstall commands.
  60035. - cmds=$old_postinstall_cmds
  60036. - save_ifs="$IFS"; IFS='~'
  60037. - for cmd in $cmds; do
  60038. - IFS="$save_ifs"
  60039. - eval cmd=\"$cmd\"
  60040. - $show "$cmd"
  60041. - $run eval "$cmd" || exit $?
  60042. - done
  60043. - IFS="$save_ifs"
  60044. - done
  60045. + if test -n "$addlibs"; then
  60046. + gentop="$output_objdir/${outputname}x"
  60047. + generated="$generated $gentop"
  60048. - if test -n "$future_libdirs"; then
  60049. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  60050. - fi
  60051. + func_extract_archives $gentop $addlibs
  60052. + oldobjs="$oldobjs $func_extract_archives_result"
  60053. + fi
  60054. - if test -n "$current_libdirs"; then
  60055. - # Maybe just do a dry run.
  60056. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  60057. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  60058. - else
  60059. - exit $EXIT_SUCCESS
  60060. - fi
  60061. - ;;
  60062. + # Do each command in the archive commands.
  60063. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  60064. + cmds=$old_archive_from_new_cmds
  60065. + else
  60066. - # libtool finish mode
  60067. - finish)
  60068. - modename="$modename: finish"
  60069. - libdirs="$nonopt"
  60070. - admincmds=
  60071. + # Add any objects from preloaded convenience libraries
  60072. + if test -n "$dlprefiles"; then
  60073. + gentop="$output_objdir/${outputname}x"
  60074. + generated="$generated $gentop"
  60075. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  60076. - for dir
  60077. - do
  60078. - libdirs="$libdirs $dir"
  60079. - done
  60080. + func_extract_archives $gentop $dlprefiles
  60081. + oldobjs="$oldobjs $func_extract_archives_result"
  60082. + fi
  60083. - for libdir in $libdirs; do
  60084. - if test -n "$finish_cmds"; then
  60085. - # Do each command in the finish commands.
  60086. - cmds=$finish_cmds
  60087. - save_ifs="$IFS"; IFS='~'
  60088. - for cmd in $cmds; do
  60089. - IFS="$save_ifs"
  60090. - eval cmd=\"$cmd\"
  60091. - $show "$cmd"
  60092. - $run eval "$cmd" || admincmds="$admincmds
  60093. - $cmd"
  60094. + # POSIX demands no paths to be encoded in archives. We have
  60095. + # to avoid creating archives with duplicate basenames if we
  60096. + # might have to extract them afterwards, e.g., when creating a
  60097. + # static archive out of a convenience library, or when linking
  60098. + # the entirety of a libtool archive into another (currently
  60099. + # not supported by libtool).
  60100. + if (for obj in $oldobjs
  60101. + do
  60102. + func_basename "$obj"
  60103. + $ECHO "$func_basename_result"
  60104. + done | sort | sort -uc >/dev/null 2>&1); then
  60105. + :
  60106. + else
  60107. + $ECHO "copying selected object files to avoid basename conflicts..."
  60108. + gentop="$output_objdir/${outputname}x"
  60109. + generated="$generated $gentop"
  60110. + func_mkdir_p "$gentop"
  60111. + save_oldobjs=$oldobjs
  60112. + oldobjs=
  60113. + counter=1
  60114. + for obj in $save_oldobjs
  60115. + do
  60116. + func_basename "$obj"
  60117. + objbase="$func_basename_result"
  60118. + case " $oldobjs " in
  60119. + " ") oldobjs=$obj ;;
  60120. + *[\ /]"$objbase "*)
  60121. + while :; do
  60122. + # Make sure we don't pick an alternate name that also
  60123. + # overlaps.
  60124. + newobj=lt$counter-$objbase
  60125. + func_arith $counter + 1
  60126. + counter=$func_arith_result
  60127. + case " $oldobjs " in
  60128. + *[\ /]"$newobj "*) ;;
  60129. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  60130. + esac
  60131. + done
  60132. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  60133. + oldobjs="$oldobjs $gentop/$newobj"
  60134. + ;;
  60135. + *) oldobjs="$oldobjs $obj" ;;
  60136. + esac
  60137. done
  60138. - IFS="$save_ifs"
  60139. - fi
  60140. - if test -n "$finish_eval"; then
  60141. - # Do the single finish_eval.
  60142. - eval cmds=\"$finish_eval\"
  60143. - $run eval "$cmds" || admincmds="$admincmds
  60144. - $cmds"
  60145. fi
  60146. - done
  60147. - fi
  60148. -
  60149. - # Exit here if they wanted silent mode.
  60150. - test "$show" = : && exit $EXIT_SUCCESS
  60151. + eval cmds=\"$old_archive_cmds\"
  60152. - $echo "X----------------------------------------------------------------------" | $Xsed
  60153. - $echo "Libraries have been installed in:"
  60154. - for libdir in $libdirs; do
  60155. - $echo " $libdir"
  60156. + func_len " $cmds"
  60157. + len=$func_len_result
  60158. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  60159. + cmds=$old_archive_cmds
  60160. + else
  60161. + # the command line is too long to link in one step, link in parts
  60162. + func_verbose "using piecewise archive linking..."
  60163. + save_RANLIB=$RANLIB
  60164. + RANLIB=:
  60165. + objlist=
  60166. + concat_cmds=
  60167. + save_oldobjs=$oldobjs
  60168. + oldobjs=
  60169. + # Is there a better way of finding the last object in the list?
  60170. + for obj in $save_oldobjs
  60171. + do
  60172. + last_oldobj=$obj
  60173. + done
  60174. + eval test_cmds=\"$old_archive_cmds\"
  60175. + func_len " $test_cmds"
  60176. + len0=$func_len_result
  60177. + len=$len0
  60178. + for obj in $save_oldobjs
  60179. + do
  60180. + func_len " $obj"
  60181. + func_arith $len + $func_len_result
  60182. + len=$func_arith_result
  60183. + func_append objlist " $obj"
  60184. + if test "$len" -lt "$max_cmd_len"; then
  60185. + :
  60186. + else
  60187. + # the above command should be used before it gets too long
  60188. + oldobjs=$objlist
  60189. + if test "$obj" = "$last_oldobj" ; then
  60190. + RANLIB=$save_RANLIB
  60191. + fi
  60192. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  60193. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  60194. + objlist=
  60195. + len=$len0
  60196. + fi
  60197. + done
  60198. + RANLIB=$save_RANLIB
  60199. + oldobjs=$objlist
  60200. + if test "X$oldobjs" = "X" ; then
  60201. + eval cmds=\"\$concat_cmds\"
  60202. + else
  60203. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  60204. + fi
  60205. + fi
  60206. + fi
  60207. + func_execute_cmds "$cmds" 'exit $?'
  60208. done
  60209. - $echo
  60210. - $echo "If you ever happen to want to link against installed libraries"
  60211. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  60212. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  60213. - $echo "flag during linking and do at least one of the following:"
  60214. - if test -n "$shlibpath_var"; then
  60215. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  60216. - $echo " during execution"
  60217. - fi
  60218. - if test -n "$runpath_var"; then
  60219. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  60220. - $echo " during linking"
  60221. - fi
  60222. - if test -n "$hardcode_libdir_flag_spec"; then
  60223. - libdir=LIBDIR
  60224. - eval flag=\"$hardcode_libdir_flag_spec\"
  60225. -
  60226. - $echo " - use the \`$flag' linker flag"
  60227. - fi
  60228. - if test -n "$admincmds"; then
  60229. - $echo " - have your system administrator run these commands:$admincmds"
  60230. - fi
  60231. - if test -f /etc/ld.so.conf; then
  60232. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  60233. - fi
  60234. - $echo
  60235. - $echo "See any operating system documentation about shared libraries for"
  60236. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  60237. - $echo "X----------------------------------------------------------------------" | $Xsed
  60238. - exit $EXIT_SUCCESS
  60239. - ;;
  60240. -
  60241. - # libtool execute mode
  60242. - execute)
  60243. - modename="$modename: execute"
  60244. - # The first argument is the command name.
  60245. - cmd="$nonopt"
  60246. - if test -z "$cmd"; then
  60247. - $echo "$modename: you must specify a COMMAND" 1>&2
  60248. - $echo "$help"
  60249. - exit $EXIT_FAILURE
  60250. - fi
  60251. + test -n "$generated" && \
  60252. + func_show_eval "${RM}r$generated"
  60253. - # Handle -dlopen flags immediately.
  60254. - for file in $execute_dlfiles; do
  60255. - if test ! -f "$file"; then
  60256. - $echo "$modename: \`$file' is not a file" 1>&2
  60257. - $echo "$help" 1>&2
  60258. - exit $EXIT_FAILURE
  60259. - fi
  60260. + # Now create the libtool archive.
  60261. + case $output in
  60262. + *.la)
  60263. + old_library=
  60264. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  60265. + func_verbose "creating $output"
  60266. - dir=
  60267. - case $file in
  60268. - *.la)
  60269. - # Check to see that this really is a libtool archive.
  60270. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  60271. + # Preserve any variables that may affect compiler behavior
  60272. + for var in $variables_saved_for_relink; do
  60273. + if eval test -z \"\${$var+set}\"; then
  60274. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  60275. + elif eval var_value=\$$var; test -z "$var_value"; then
  60276. + relink_command="$var=; export $var; $relink_command"
  60277. else
  60278. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  60279. - $echo "$help" 1>&2
  60280. - exit $EXIT_FAILURE
  60281. + func_quote_for_eval "$var_value"
  60282. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  60283. fi
  60284. + done
  60285. + # Quote the link command for shipping.
  60286. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  60287. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60288. + if test "$hardcode_automatic" = yes ; then
  60289. + relink_command=
  60290. + fi
  60291. - # Read the libtool library.
  60292. - dlname=
  60293. - library_names=
  60294. + # Only create the output if not a dry run.
  60295. + $opt_dry_run || {
  60296. + for installed in no yes; do
  60297. + if test "$installed" = yes; then
  60298. + if test -z "$install_libdir"; then
  60299. + break
  60300. + fi
  60301. + output="$output_objdir/$outputname"i
  60302. + # Replace all uninstalled libtool libraries with the installed ones
  60303. + newdependency_libs=
  60304. + for deplib in $dependency_libs; do
  60305. + case $deplib in
  60306. + *.la)
  60307. + func_basename "$deplib"
  60308. + name="$func_basename_result"
  60309. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  60310. + test -z "$libdir" && \
  60311. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  60312. + newdependency_libs="$newdependency_libs $libdir/$name"
  60313. + ;;
  60314. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  60315. + esac
  60316. + done
  60317. + dependency_libs="$newdependency_libs"
  60318. + newdlfiles=
  60319. +
  60320. + for lib in $dlfiles; do
  60321. + case $lib in
  60322. + *.la)
  60323. + func_basename "$lib"
  60324. + name="$func_basename_result"
  60325. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60326. + test -z "$libdir" && \
  60327. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60328. + newdlfiles="$newdlfiles $libdir/$name"
  60329. + ;;
  60330. + *) newdlfiles="$newdlfiles $lib" ;;
  60331. + esac
  60332. + done
  60333. + dlfiles="$newdlfiles"
  60334. + newdlprefiles=
  60335. + for lib in $dlprefiles; do
  60336. + case $lib in
  60337. + *.la)
  60338. + # Only pass preopened files to the pseudo-archive (for
  60339. + # eventual linking with the app. that links it) if we
  60340. + # didn't already link the preopened objects directly into
  60341. + # the library:
  60342. + func_basename "$lib"
  60343. + name="$func_basename_result"
  60344. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60345. + test -z "$libdir" && \
  60346. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60347. + newdlprefiles="$newdlprefiles $libdir/$name"
  60348. + ;;
  60349. + esac
  60350. + done
  60351. + dlprefiles="$newdlprefiles"
  60352. + else
  60353. + newdlfiles=
  60354. + for lib in $dlfiles; do
  60355. + case $lib in
  60356. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60357. + *) abs=`pwd`"/$lib" ;;
  60358. + esac
  60359. + newdlfiles="$newdlfiles $abs"
  60360. + done
  60361. + dlfiles="$newdlfiles"
  60362. + newdlprefiles=
  60363. + for lib in $dlprefiles; do
  60364. + case $lib in
  60365. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60366. + *) abs=`pwd`"/$lib" ;;
  60367. + esac
  60368. + newdlprefiles="$newdlprefiles $abs"
  60369. + done
  60370. + dlprefiles="$newdlprefiles"
  60371. + fi
  60372. + $RM $output
  60373. + # place dlname in correct position for cygwin
  60374. + tdlname=$dlname
  60375. + case $host,$output,$installed,$module,$dlname in
  60376. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  60377. + esac
  60378. + $ECHO > $output "\
  60379. +# $outputname - a libtool library file
  60380. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  60381. +#
  60382. +# Please DO NOT delete this file!
  60383. +# It is necessary for linking the library.
  60384. - # If there is no directory component, then add one.
  60385. - case $file in
  60386. - */* | *\\*) . $file ;;
  60387. - *) . ./$file ;;
  60388. - esac
  60389. +# The name that we can dlopen(3).
  60390. +dlname='$tdlname'
  60391. - # Skip this library if it cannot be dlopened.
  60392. - if test -z "$dlname"; then
  60393. - # Warn if it was a shared library.
  60394. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  60395. - continue
  60396. - fi
  60397. +# Names of this library.
  60398. +library_names='$library_names'
  60399. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60400. - test "X$dir" = "X$file" && dir=.
  60401. +# The name of the static archive.
  60402. +old_library='$old_library'
  60403. - if test -f "$dir/$objdir/$dlname"; then
  60404. - dir="$dir/$objdir"
  60405. - else
  60406. - if test ! -f "$dir/$dlname"; then
  60407. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  60408. - exit $EXIT_FAILURE
  60409. - fi
  60410. - fi
  60411. - ;;
  60412. +# Linker flags that can not go in dependency_libs.
  60413. +inherited_linker_flags='$new_inherited_linker_flags'
  60414. - *.lo)
  60415. - # Just add the directory containing the .lo file.
  60416. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60417. - test "X$dir" = "X$file" && dir=.
  60418. - ;;
  60419. +# Libraries that this one depends upon.
  60420. +dependency_libs='$dependency_libs'
  60421. - *)
  60422. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  60423. - continue
  60424. - ;;
  60425. - esac
  60426. +# Names of additional weak libraries provided by this library
  60427. +weak_library_names='$weak_libs'
  60428. - # Get the absolute pathname.
  60429. - absdir=`cd "$dir" && pwd`
  60430. - test -n "$absdir" && dir="$absdir"
  60431. +# Version information for $libname.
  60432. +current=$current
  60433. +age=$age
  60434. +revision=$revision
  60435. - # Now add the directory to shlibpath_var.
  60436. - if eval "test -z \"\$$shlibpath_var\""; then
  60437. - eval "$shlibpath_var=\"\$dir\""
  60438. - else
  60439. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  60440. - fi
  60441. - done
  60442. +# Is this an already installed library?
  60443. +installed=$installed
  60444. - # This variable tells wrapper scripts just to set shlibpath_var
  60445. - # rather than running their programs.
  60446. - libtool_execute_magic="$magic"
  60447. +# Should we warn about portability when linking against -modules?
  60448. +shouldnotlink=$module
  60449. - # Check if any of the arguments is a wrapper script.
  60450. - args=
  60451. - for file
  60452. - do
  60453. - case $file in
  60454. - -*) ;;
  60455. - *)
  60456. - # Do a test to see if this is really a libtool program.
  60457. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60458. - # If there is no directory component, then add one.
  60459. - case $file in
  60460. - */* | *\\*) . $file ;;
  60461. - *) . ./$file ;;
  60462. - esac
  60463. +# Files to dlopen/dlpreopen
  60464. +dlopen='$dlfiles'
  60465. +dlpreopen='$dlprefiles'
  60466. - # Transform arg to wrapped name.
  60467. - file="$progdir/$program"
  60468. - fi
  60469. - ;;
  60470. - esac
  60471. - # Quote arguments (to preserve shell metacharacters).
  60472. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  60473. - args="$args \"$file\""
  60474. - done
  60475. +# Directory that this library needs to be installed in:
  60476. +libdir='$install_libdir'"
  60477. + if test "$installed" = no && test "$need_relink" = yes; then
  60478. + $ECHO >> $output "\
  60479. +relink_command=\"$relink_command\""
  60480. + fi
  60481. + done
  60482. + }
  60483. - if test -z "$run"; then
  60484. - if test -n "$shlibpath_var"; then
  60485. - # Export the shlibpath_var.
  60486. - eval "export $shlibpath_var"
  60487. - fi
  60488. + # Do a symbolic link so that the libtool archive can be found in
  60489. + # LD_LIBRARY_PATH before the program is installed.
  60490. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  60491. + ;;
  60492. + esac
  60493. + exit $EXIT_SUCCESS
  60494. +}
  60495. - # Restore saved environment variables
  60496. - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  60497. - do
  60498. - eval "if test \"\${save_$lt_var+set}\" = set; then
  60499. - $lt_var=\$save_$lt_var; export $lt_var
  60500. - fi"
  60501. - done
  60502. +{ test "$mode" = link || test "$mode" = relink; } &&
  60503. + func_mode_link ${1+"$@"}
  60504. - # Now prepare to actually exec the command.
  60505. - exec_cmd="\$cmd$args"
  60506. - else
  60507. - # Display what would be done.
  60508. - if test -n "$shlibpath_var"; then
  60509. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  60510. - $echo "export $shlibpath_var"
  60511. - fi
  60512. - $echo "$cmd$args"
  60513. - exit $EXIT_SUCCESS
  60514. - fi
  60515. - ;;
  60516. - # libtool clean and uninstall mode
  60517. - clean | uninstall)
  60518. - modename="$modename: $mode"
  60519. - rm="$nonopt"
  60520. +# func_mode_uninstall arg...
  60521. +func_mode_uninstall ()
  60522. +{
  60523. + $opt_debug
  60524. + RM="$nonopt"
  60525. files=
  60526. rmforce=
  60527. exit_status=0
  60528. @@ -6633,30 +8209,28 @@
  60529. for arg
  60530. do
  60531. case $arg in
  60532. - -f) rm="$rm $arg"; rmforce=yes ;;
  60533. - -*) rm="$rm $arg" ;;
  60534. + -f) RM="$RM $arg"; rmforce=yes ;;
  60535. + -*) RM="$RM $arg" ;;
  60536. *) files="$files $arg" ;;
  60537. esac
  60538. done
  60539. - if test -z "$rm"; then
  60540. - $echo "$modename: you must specify an RM program" 1>&2
  60541. - $echo "$help" 1>&2
  60542. - exit $EXIT_FAILURE
  60543. - fi
  60544. + test -z "$RM" && \
  60545. + func_fatal_help "you must specify an RM program"
  60546. rmdirs=
  60547. origobjdir="$objdir"
  60548. for file in $files; do
  60549. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60550. - if test "X$dir" = "X$file"; then
  60551. - dir=.
  60552. + func_dirname "$file" "" "."
  60553. + dir="$func_dirname_result"
  60554. + if test "X$dir" = X.; then
  60555. objdir="$origobjdir"
  60556. else
  60557. objdir="$dir/$origobjdir"
  60558. fi
  60559. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60560. + func_basename "$file"
  60561. + name="$func_basename_result"
  60562. test "$mode" = uninstall && objdir="$dir"
  60563. # Remember objdir for removal later, being careful to avoid duplicates
  60564. @@ -6668,9 +8242,9 @@
  60565. fi
  60566. # Don't error if the file doesn't exist and rm -f was used.
  60567. - if (test -L "$file") >/dev/null 2>&1 \
  60568. - || (test -h "$file") >/dev/null 2>&1 \
  60569. - || test -f "$file"; then
  60570. + if { test -L "$file"; } >/dev/null 2>&1 ||
  60571. + { test -h "$file"; } >/dev/null 2>&1 ||
  60572. + test -f "$file"; then
  60573. :
  60574. elif test -d "$file"; then
  60575. exit_status=1
  60576. @@ -6684,8 +8258,8 @@
  60577. case $name in
  60578. *.la)
  60579. # Possibly a libtool archive, so verify it.
  60580. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60581. - . $dir/$name
  60582. + if func_lalib_p "$file"; then
  60583. + func_source $dir/$name
  60584. # Delete the libtool libraries and symlinks.
  60585. for n in $library_names; do
  60586. @@ -6700,39 +8274,17 @@
  60587. *" $dlname "*) ;;
  60588. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  60589. esac
  60590. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  60591. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  60592. ;;
  60593. uninstall)
  60594. if test -n "$library_names"; then
  60595. # Do each command in the postuninstall commands.
  60596. - cmds=$postuninstall_cmds
  60597. - save_ifs="$IFS"; IFS='~'
  60598. - for cmd in $cmds; do
  60599. - IFS="$save_ifs"
  60600. - eval cmd=\"$cmd\"
  60601. - $show "$cmd"
  60602. - $run eval "$cmd"
  60603. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  60604. - exit_status=1
  60605. - fi
  60606. - done
  60607. - IFS="$save_ifs"
  60608. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  60609. fi
  60610. if test -n "$old_library"; then
  60611. # Do each command in the old_postuninstall commands.
  60612. - cmds=$old_postuninstall_cmds
  60613. - save_ifs="$IFS"; IFS='~'
  60614. - for cmd in $cmds; do
  60615. - IFS="$save_ifs"
  60616. - eval cmd=\"$cmd\"
  60617. - $show "$cmd"
  60618. - $run eval "$cmd"
  60619. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  60620. - exit_status=1
  60621. - fi
  60622. - done
  60623. - IFS="$save_ifs"
  60624. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  60625. fi
  60626. # FIXME: should reinstall the best remaining shared library.
  60627. ;;
  60628. @@ -6742,20 +8294,20 @@
  60629. *.lo)
  60630. # Possibly a libtool object, so verify it.
  60631. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60632. + if func_lalib_p "$file"; then
  60633. # Read the .lo file
  60634. - . $dir/$name
  60635. + func_source $dir/$name
  60636. # Add PIC object to the list of files to remove.
  60637. - if test -n "$pic_object" \
  60638. - && test "$pic_object" != none; then
  60639. + if test -n "$pic_object" &&
  60640. + test "$pic_object" != none; then
  60641. rmfiles="$rmfiles $dir/$pic_object"
  60642. fi
  60643. # Add non-PIC object to the list of files to remove.
  60644. - if test -n "$non_pic_object" \
  60645. - && test "$non_pic_object" != none; then
  60646. + if test -n "$non_pic_object" &&
  60647. + test "$non_pic_object" != none; then
  60648. rmfiles="$rmfiles $dir/$non_pic_object"
  60649. fi
  60650. fi
  60651. @@ -6766,17 +8318,26 @@
  60652. noexename=$name
  60653. case $file in
  60654. *.exe)
  60655. - file=`$echo $file|${SED} 's,.exe$,,'`
  60656. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  60657. + func_stripname '' '.exe' "$file"
  60658. + file=$func_stripname_result
  60659. + func_stripname '' '.exe' "$name"
  60660. + noexename=$func_stripname_result
  60661. # $file with .exe has already been added to rmfiles,
  60662. # add $file without .exe
  60663. rmfiles="$rmfiles $file"
  60664. ;;
  60665. esac
  60666. # Do a test to see if this is a libtool program.
  60667. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60668. - relink_command=
  60669. - . $dir/$noexename
  60670. + if func_ltwrapper_p "$file"; then
  60671. + if func_ltwrapper_executable_p "$file"; then
  60672. + func_ltwrapper_scriptname "$file"
  60673. + relink_command=
  60674. + func_source $func_ltwrapper_scriptname_result
  60675. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  60676. + else
  60677. + relink_command=
  60678. + func_source $dir/$noexename
  60679. + fi
  60680. # note $name still contains .exe if it was in $file originally
  60681. # as does the version of $file that was added into $rmfiles
  60682. @@ -6791,239 +8352,38 @@
  60683. fi
  60684. ;;
  60685. esac
  60686. - $show "$rm $rmfiles"
  60687. - $run $rm $rmfiles || exit_status=1
  60688. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  60689. done
  60690. objdir="$origobjdir"
  60691. # Try to remove the ${objdir}s in the directories where we deleted files
  60692. for dir in $rmdirs; do
  60693. if test -d "$dir"; then
  60694. - $show "rmdir $dir"
  60695. - $run rmdir $dir >/dev/null 2>&1
  60696. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  60697. fi
  60698. done
  60699. exit $exit_status
  60700. - ;;
  60701. +}
  60702. - "")
  60703. - $echo "$modename: you must specify a MODE" 1>&2
  60704. - $echo "$generic_help" 1>&2
  60705. - exit $EXIT_FAILURE
  60706. - ;;
  60707. - esac
  60708. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  60709. + func_mode_uninstall ${1+"$@"}
  60710. - if test -z "$exec_cmd"; then
  60711. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  60712. - $echo "$generic_help" 1>&2
  60713. - exit $EXIT_FAILURE
  60714. - fi
  60715. -fi # test -z "$show_help"
  60716. +test -z "$mode" && {
  60717. + help="$generic_help"
  60718. + func_fatal_help "you must specify a MODE"
  60719. +}
  60720. +
  60721. +test -z "$exec_cmd" && \
  60722. + func_fatal_help "invalid operation mode \`$mode'"
  60723. if test -n "$exec_cmd"; then
  60724. - eval exec $exec_cmd
  60725. + eval exec "$exec_cmd"
  60726. exit $EXIT_FAILURE
  60727. fi
  60728. -# We need to display help for each of the modes.
  60729. -case $mode in
  60730. -"") $echo \
  60731. -"Usage: $modename [OPTION]... [MODE-ARG]...
  60732. -
  60733. -Provide generalized library-building support services.
  60734. -
  60735. - --config show all configuration variables
  60736. - --debug enable verbose shell tracing
  60737. --n, --dry-run display commands without modifying any files
  60738. - --features display basic configuration information and exit
  60739. - --finish same as \`--mode=finish'
  60740. - --help display this help message and exit
  60741. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  60742. - --quiet same as \`--silent'
  60743. - --silent don't print informational messages
  60744. - --tag=TAG use configuration variables from tag TAG
  60745. - --version print version information
  60746. -
  60747. -MODE must be one of the following:
  60748. -
  60749. - clean remove files from the build directory
  60750. - compile compile a source file into a libtool object
  60751. - execute automatically set library path, then run a program
  60752. - finish complete the installation of libtool libraries
  60753. - install install libraries or executables
  60754. - link create a library or an executable
  60755. - uninstall remove libraries from an installed directory
  60756. -
  60757. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  60758. -a more detailed description of MODE.
  60759. -
  60760. -Report bugs to <bug-libtool@gnu.org>."
  60761. - exit $EXIT_SUCCESS
  60762. - ;;
  60763. -
  60764. -clean)
  60765. - $echo \
  60766. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  60767. -
  60768. -Remove files from the build directory.
  60769. -
  60770. -RM is the name of the program to use to delete files associated with each FILE
  60771. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  60772. -to RM.
  60773. -
  60774. -If FILE is a libtool library, object or program, all the files associated
  60775. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  60776. - ;;
  60777. -
  60778. -compile)
  60779. - $echo \
  60780. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  60781. -
  60782. -Compile a source file into a libtool library object.
  60783. -
  60784. -This mode accepts the following additional options:
  60785. -
  60786. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  60787. - -prefer-pic try to building PIC objects only
  60788. - -prefer-non-pic try to building non-PIC objects only
  60789. - -static always build a \`.o' file suitable for static linking
  60790. -
  60791. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  60792. -from the given SOURCEFILE.
  60793. -
  60794. -The output file name is determined by removing the directory component from
  60795. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  60796. -library object suffix, \`.lo'."
  60797. - ;;
  60798. -
  60799. -execute)
  60800. - $echo \
  60801. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  60802. -
  60803. -Automatically set library path, then run a program.
  60804. -
  60805. -This mode accepts the following additional options:
  60806. -
  60807. - -dlopen FILE add the directory containing FILE to the library path
  60808. -
  60809. -This mode sets the library path environment variable according to \`-dlopen'
  60810. -flags.
  60811. -
  60812. -If any of the ARGS are libtool executable wrappers, then they are translated
  60813. -into their corresponding uninstalled binary, and any of their required library
  60814. -directories are added to the library path.
  60815. -
  60816. -Then, COMMAND is executed, with ARGS as arguments."
  60817. - ;;
  60818. -
  60819. -finish)
  60820. - $echo \
  60821. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  60822. -
  60823. -Complete the installation of libtool libraries.
  60824. -
  60825. -Each LIBDIR is a directory that contains libtool libraries.
  60826. -
  60827. -The commands that this mode executes may require superuser privileges. Use
  60828. -the \`--dry-run' option if you just want to see what would be executed."
  60829. - ;;
  60830. -
  60831. -install)
  60832. - $echo \
  60833. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  60834. -
  60835. -Install executables or libraries.
  60836. -
  60837. -INSTALL-COMMAND is the installation command. The first component should be
  60838. -either the \`install' or \`cp' program.
  60839. -
  60840. -The rest of the components are interpreted as arguments to that command (only
  60841. -BSD-compatible install options are recognized)."
  60842. - ;;
  60843. -
  60844. -link)
  60845. - $echo \
  60846. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  60847. -
  60848. -Link object files or libraries together to form another library, or to
  60849. -create an executable program.
  60850. +exit $exit_status
  60851. -LINK-COMMAND is a command using the C compiler that you would use to create
  60852. -a program from several object files.
  60853. -
  60854. -The following components of LINK-COMMAND are treated specially:
  60855. -
  60856. - -all-static do not do any dynamic linking at all
  60857. - -avoid-version do not add a version suffix if possible
  60858. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  60859. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  60860. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  60861. - -export-symbols SYMFILE
  60862. - try to export only the symbols listed in SYMFILE
  60863. - -export-symbols-regex REGEX
  60864. - try to export only the symbols matching REGEX
  60865. - -LLIBDIR search LIBDIR for required installed libraries
  60866. - -lNAME OUTPUT-FILE requires the installed library libNAME
  60867. - -module build a library that can dlopened
  60868. - -no-fast-install disable the fast-install mode
  60869. - -no-install link a not-installable executable
  60870. - -no-undefined declare that a library does not refer to external symbols
  60871. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  60872. - -objectlist FILE Use a list of object files found in FILE to specify objects
  60873. - -precious-files-regex REGEX
  60874. - don't remove output files matching REGEX
  60875. - -release RELEASE specify package release information
  60876. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  60877. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  60878. - -static do not do any dynamic linking of uninstalled libtool libraries
  60879. - -static-libtool-libs
  60880. - do not do any dynamic linking of libtool libraries
  60881. - -version-info CURRENT[:REVISION[:AGE]]
  60882. - specify library version info [each variable defaults to 0]
  60883. -
  60884. -All other options (arguments beginning with \`-') are ignored.
  60885. -
  60886. -Every other argument is treated as a filename. Files ending in \`.la' are
  60887. -treated as uninstalled libtool libraries, other files are standard or library
  60888. -object files.
  60889. -
  60890. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  60891. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  60892. -required, except when creating a convenience library.
  60893. -
  60894. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  60895. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  60896. -
  60897. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  60898. -is created, otherwise an executable program is created."
  60899. - ;;
  60900. -
  60901. -uninstall)
  60902. - $echo \
  60903. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  60904. -
  60905. -Remove libraries from an installation directory.
  60906. -
  60907. -RM is the name of the program to use to delete files associated with each FILE
  60908. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  60909. -to RM.
  60910. -
  60911. -If FILE is a libtool library, all the files associated with it are deleted.
  60912. -Otherwise, only FILE itself is deleted using RM."
  60913. - ;;
  60914. -
  60915. -*)
  60916. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  60917. - $echo "$help" 1>&2
  60918. - exit $EXIT_FAILURE
  60919. - ;;
  60920. -esac
  60921. -
  60922. -$echo
  60923. -$echo "Try \`$modename --help' for more information about other modes."
  60924. -
  60925. -exit $?
  60926. # The TAGs below are defined such that we never get into a situation
  60927. # in which we disable both kinds of libraries. Given conflicting
  60928. @@ -7037,14 +8397,17 @@
  60929. # configuration. But we'll never go from static-only to shared-only.
  60930. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  60931. -disable_libs=shared
  60932. +build_libtool_libs=no
  60933. +build_old_libs=yes
  60934. # ### END LIBTOOL TAG CONFIG: disable-shared
  60935. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  60936. -disable_libs=static
  60937. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  60938. # ### END LIBTOOL TAG CONFIG: disable-static
  60939. # Local Variables:
  60940. # mode:shell-script
  60941. # sh-indentation:2
  60942. # End:
  60943. +# vi:sw=2
  60944. +
  60945. diff -Nur file-5.04.orig/magic/Makefile.am file-5.04/magic/Makefile.am
  60946. --- file-5.04.orig/magic/Makefile.am 2010-01-22 22:44:30.000000000 +0100
  60947. +++ file-5.04/magic/Makefile.am 2011-02-24 20:54:19.713553221 +0100
  60948. @@ -229,7 +229,7 @@
  60949. # FIXME: Build file natively as well so that it can be used to compile
  60950. # the target's magic file
  60951. if IS_CROSS_COMPILE
  60952. -FILE_COMPILE = file
  60953. +FILE_COMPILE = ./file
  60954. FILE_COMPILE_DEP =
  60955. else
  60956. FILE_COMPILE = $(top_builddir)/src/file
  60957. diff -Nur file-5.04.orig/magic/Makefile.in file-5.04/magic/Makefile.in
  60958. --- file-5.04.orig/magic/Makefile.in 2010-01-22 22:44:34.000000000 +0100
  60959. +++ file-5.04/magic/Makefile.in 2011-02-24 20:54:42.144811790 +0100
  60960. @@ -1,8 +1,9 @@
  60961. -# Makefile.in generated by automake 1.10 from Makefile.am.
  60962. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  60963. # @configure_input@
  60964. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  60965. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  60966. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  60967. +# Inc.
  60968. # This Makefile.in is free software; the Free Software Foundation
  60969. # gives unlimited permission to copy and/or distribute it,
  60970. # with or without modifications, as long as this notice is preserved.
  60971. @@ -15,8 +16,9 @@
  60972. @SET_MAKE@
  60973. VPATH = @srcdir@
  60974. -pkglibdir = $(libdir)/@PACKAGE@
  60975. pkgincludedir = $(includedir)/@PACKAGE@
  60976. +pkglibdir = $(libdir)/@PACKAGE@
  60977. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  60978. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  60979. install_sh_DATA = $(install_sh) -c -m 644
  60980. install_sh_PROGRAM = $(install_sh) -c
  60981. @@ -41,6 +43,7 @@
  60982. mkinstalldirs = $(install_sh) -d
  60983. CONFIG_HEADER = $(top_builddir)/config.h
  60984. CONFIG_CLEAN_FILES =
  60985. +CONFIG_CLEAN_VPATH_FILES =
  60986. SOURCES =
  60987. DIST_SOURCES =
  60988. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  60989. @@ -48,9 +51,23 @@
  60990. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  60991. *) f=$$p;; \
  60992. esac;
  60993. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  60994. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  60995. +am__install_max = 40
  60996. +am__nobase_strip_setup = \
  60997. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  60998. +am__nobase_strip = \
  60999. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  61000. +am__nobase_list = $(am__nobase_strip_setup); \
  61001. + for p in $$list; do echo "$$p $$p"; done | \
  61002. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  61003. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  61004. + if (++n[$$2] == $(am__install_max)) \
  61005. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  61006. + END { for (dir in files) print dir, files[dir] }'
  61007. +am__base_list = \
  61008. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  61009. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  61010. am__installdirs = "$(DESTDIR)$(pkgdatadir)"
  61011. -pkgdataDATA_INSTALL = $(INSTALL_DATA)
  61012. DATA = $(pkgdata_DATA)
  61013. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  61014. pkgdatadir = @pkgdatadir@
  61015. @@ -66,43 +83,45 @@
  61016. CFLAGS = @CFLAGS@
  61017. CPP = @CPP@
  61018. CPPFLAGS = @CPPFLAGS@
  61019. -CXX = @CXX@
  61020. -CXXCPP = @CXXCPP@
  61021. -CXXDEPMODE = @CXXDEPMODE@
  61022. -CXXFLAGS = @CXXFLAGS@
  61023. CYGPATH_W = @CYGPATH_W@
  61024. DEFS = @DEFS@
  61025. DEPDIR = @DEPDIR@
  61026. DSYMUTIL = @DSYMUTIL@
  61027. -ECHO = @ECHO@
  61028. +DUMPBIN = @DUMPBIN@
  61029. ECHO_C = @ECHO_C@
  61030. ECHO_N = @ECHO_N@
  61031. ECHO_T = @ECHO_T@
  61032. EGREP = @EGREP@
  61033. EXEEXT = @EXEEXT@
  61034. -F77 = @F77@
  61035. -FFLAGS = @FFLAGS@
  61036. +FGREP = @FGREP@
  61037. GREP = @GREP@
  61038. INSTALL = @INSTALL@
  61039. INSTALL_DATA = @INSTALL_DATA@
  61040. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61041. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61042. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61043. +LD = @LD@
  61044. LDFLAGS = @LDFLAGS@
  61045. LIBOBJS = @LIBOBJS@
  61046. LIBS = @LIBS@
  61047. LIBTOOL = @LIBTOOL@
  61048. +LIPO = @LIPO@
  61049. LN_S = @LN_S@
  61050. LTLIBOBJS = @LTLIBOBJS@
  61051. MAKEINFO = @MAKEINFO@
  61052. MKDIR_P = @MKDIR_P@
  61053. +NM = @NM@
  61054. NMEDIT = @NMEDIT@
  61055. +OBJDUMP = @OBJDUMP@
  61056. OBJEXT = @OBJEXT@
  61057. +OTOOL = @OTOOL@
  61058. +OTOOL64 = @OTOOL64@
  61059. PACKAGE = @PACKAGE@
  61060. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61061. PACKAGE_NAME = @PACKAGE_NAME@
  61062. PACKAGE_STRING = @PACKAGE_STRING@
  61063. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61064. +PACKAGE_URL = @PACKAGE_URL@
  61065. PACKAGE_VERSION = @PACKAGE_VERSION@
  61066. PATH_SEPARATOR = @PATH_SEPARATOR@
  61067. RANLIB = @RANLIB@
  61068. @@ -117,8 +136,7 @@
  61069. abs_top_builddir = @abs_top_builddir@
  61070. abs_top_srcdir = @abs_top_srcdir@
  61071. ac_ct_CC = @ac_ct_CC@
  61072. -ac_ct_CXX = @ac_ct_CXX@
  61073. -ac_ct_F77 = @ac_ct_F77@
  61074. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61075. am__include = @am__include@
  61076. am__leading_dot = @am__leading_dot@
  61077. am__quote = @am__quote@
  61078. @@ -150,6 +168,7 @@
  61079. libexecdir = @libexecdir@
  61080. localedir = @localedir@
  61081. localstatedir = @localstatedir@
  61082. +lt_ECHO = @lt_ECHO@
  61083. mandir = @mandir@
  61084. mkdir_p = @mkdir_p@
  61085. oldincludedir = @oldincludedir@
  61086. @@ -162,6 +181,7 @@
  61087. srcdir = @srcdir@
  61088. sysconfdir = @sysconfdir@
  61089. target_alias = @target_alias@
  61090. +top_build_prefix = @top_build_prefix@
  61091. top_builddir = @top_builddir@
  61092. top_srcdir = @top_srcdir@
  61093. @@ -394,7 +414,7 @@
  61094. # FIXME: Build file natively as well so that it can be used to compile
  61095. # the target's magic file
  61096. -@IS_CROSS_COMPILE_TRUE@FILE_COMPILE = file
  61097. +@IS_CROSS_COMPILE_TRUE@FILE_COMPILE = ./file
  61098. @IS_CROSS_COMPILE_FALSE@FILE_COMPILE_DEP = $(FILE_COMPILE)
  61099. @IS_CROSS_COMPILE_TRUE@FILE_COMPILE_DEP =
  61100. all: all-am
  61101. @@ -404,14 +424,14 @@
  61102. @for dep in $?; do \
  61103. case '$(am__configure_deps)' in \
  61104. *$$dep*) \
  61105. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  61106. - && exit 0; \
  61107. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  61108. + && { if test -f $@; then exit 0; else break; fi; }; \
  61109. exit 1;; \
  61110. esac; \
  61111. done; \
  61112. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu magic/Makefile'; \
  61113. - cd $(top_srcdir) && \
  61114. - $(AUTOMAKE) --gnu magic/Makefile
  61115. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu magic/Makefile'; \
  61116. + $(am__cd) $(top_srcdir) && \
  61117. + $(AUTOMAKE) --gnu magic/Makefile
  61118. .PRECIOUS: Makefile
  61119. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61120. @case '$?' in \
  61121. @@ -429,6 +449,7 @@
  61122. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61123. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  61124. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61125. +$(am__aclocal_m4_deps):
  61126. mostlyclean-libtool:
  61127. -rm -f *.lo
  61128. @@ -438,20 +459,23 @@
  61129. install-pkgdataDATA: $(pkgdata_DATA)
  61130. @$(NORMAL_INSTALL)
  61131. test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)"
  61132. - @list='$(pkgdata_DATA)'; for p in $$list; do \
  61133. + @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
  61134. + for p in $$list; do \
  61135. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  61136. - f=$(am__strip_dir) \
  61137. - echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \
  61138. - $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
  61139. + echo "$$d$$p"; \
  61140. + done | $(am__base_list) | \
  61141. + while read files; do \
  61142. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
  61143. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
  61144. done
  61145. uninstall-pkgdataDATA:
  61146. @$(NORMAL_UNINSTALL)
  61147. - @list='$(pkgdata_DATA)'; for p in $$list; do \
  61148. - f=$(am__strip_dir) \
  61149. - echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \
  61150. - rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \
  61151. - done
  61152. + @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
  61153. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  61154. + test -n "$$files" || exit 0; \
  61155. + echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \
  61156. + cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files
  61157. tags: TAGS
  61158. TAGS:
  61159. @@ -475,13 +499,17 @@
  61160. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61161. if test -d $$d/$$file; then \
  61162. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61163. + if test -d "$(distdir)/$$file"; then \
  61164. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61165. + fi; \
  61166. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61167. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61168. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61169. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61170. fi; \
  61171. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61172. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61173. else \
  61174. - test -f $(distdir)/$$file \
  61175. - || cp -p $$d/$$file $(distdir)/$$file \
  61176. + test -f "$(distdir)/$$file" \
  61177. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61178. || exit 1; \
  61179. fi; \
  61180. done
  61181. @@ -513,6 +541,7 @@
  61182. distclean-generic:
  61183. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61184. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61185. maintainer-clean-generic:
  61186. @echo "This command is intended for maintainers to use"
  61187. @@ -531,6 +560,8 @@
  61188. html: html-am
  61189. +html-am:
  61190. +
  61191. info: info-am
  61192. info-am:
  61193. @@ -539,18 +570,28 @@
  61194. install-dvi: install-dvi-am
  61195. +install-dvi-am:
  61196. +
  61197. install-exec-am:
  61198. install-html: install-html-am
  61199. +install-html-am:
  61200. +
  61201. install-info: install-info-am
  61202. +install-info-am:
  61203. +
  61204. install-man:
  61205. install-pdf: install-pdf-am
  61206. +install-pdf-am:
  61207. +
  61208. install-ps: install-ps-am
  61209. +install-ps-am:
  61210. +
  61211. installcheck-am:
  61212. maintainer-clean: maintainer-clean-am
  61213. @@ -590,6 +631,7 @@
  61214. @mkdir magic && cp -p $(EXTRA_DIST) magic
  61215. $(FILE_COMPILE) -C -m magic
  61216. @rm -fr magic
  61217. +
  61218. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61219. # Otherwise a system limit (for SysV at least) may be exceeded.
  61220. .NOEXPORT:
  61221. diff -Nur file-5.04.orig/Makefile.in file-5.04/Makefile.in
  61222. --- file-5.04.orig/Makefile.in 2010-01-22 22:09:34.000000000 +0100
  61223. +++ file-5.04/Makefile.in 2011-02-24 20:54:42.323553027 +0100
  61224. @@ -1,8 +1,9 @@
  61225. -# Makefile.in generated by automake 1.10 from Makefile.am.
  61226. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61227. # @configure_input@
  61228. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61229. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  61230. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61231. +# Inc.
  61232. # This Makefile.in is free software; the Free Software Foundation
  61233. # gives unlimited permission to copy and/or distribute it,
  61234. # with or without modifications, as long as this notice is preserved.
  61235. @@ -16,8 +17,9 @@
  61236. #ACLOCAL_AMFLAGS = -I m4
  61237. VPATH = @srcdir@
  61238. -pkglibdir = $(libdir)/@PACKAGE@
  61239. pkgincludedir = $(includedir)/@PACKAGE@
  61240. +pkglibdir = $(libdir)/@PACKAGE@
  61241. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61242. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61243. install_sh_DATA = $(install_sh) -c -m 644
  61244. install_sh_PROGRAM = $(install_sh) -c
  61245. @@ -48,6 +50,7 @@
  61246. mkinstalldirs = $(install_sh) -d
  61247. CONFIG_HEADER = config.h
  61248. CONFIG_CLEAN_FILES =
  61249. +CONFIG_CLEAN_VPATH_FILES =
  61250. SOURCES =
  61251. DIST_SOURCES =
  61252. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  61253. @@ -59,6 +62,9 @@
  61254. ps-recursive uninstall-recursive
  61255. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  61256. distclean-recursive maintainer-clean-recursive
  61257. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  61258. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  61259. + distdir dist dist-all distcheck
  61260. ETAGS = etags
  61261. CTAGS = ctags
  61262. DIST_SUBDIRS = $(SUBDIRS)
  61263. @@ -66,9 +72,34 @@
  61264. distdir = $(PACKAGE)-$(VERSION)
  61265. top_distdir = $(distdir)
  61266. am__remove_distdir = \
  61267. - { test ! -d $(distdir) \
  61268. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  61269. - && rm -fr $(distdir); }; }
  61270. + { test ! -d "$(distdir)" \
  61271. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  61272. + && rm -fr "$(distdir)"; }; }
  61273. +am__relativize = \
  61274. + dir0=`pwd`; \
  61275. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  61276. + sed_rest='s,^[^/]*/*,,'; \
  61277. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  61278. + sed_butlast='s,/*[^/]*$$,,'; \
  61279. + while test -n "$$dir1"; do \
  61280. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  61281. + if test "$$first" != "."; then \
  61282. + if test "$$first" = ".."; then \
  61283. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  61284. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  61285. + else \
  61286. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  61287. + if test "$$first2" = "$$first"; then \
  61288. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  61289. + else \
  61290. + dir2="../$$dir2"; \
  61291. + fi; \
  61292. + dir0="$$dir0"/"$$first"; \
  61293. + fi; \
  61294. + fi; \
  61295. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  61296. + done; \
  61297. + reldir="$$dir2"
  61298. DIST_ARCHIVES = $(distdir).tar.gz
  61299. GZIP_ENV = --best
  61300. distuninstallcheck_listfiles = find . -type f -print
  61301. @@ -86,43 +117,45 @@
  61302. CFLAGS = @CFLAGS@
  61303. CPP = @CPP@
  61304. CPPFLAGS = @CPPFLAGS@
  61305. -CXX = @CXX@
  61306. -CXXCPP = @CXXCPP@
  61307. -CXXDEPMODE = @CXXDEPMODE@
  61308. -CXXFLAGS = @CXXFLAGS@
  61309. CYGPATH_W = @CYGPATH_W@
  61310. DEFS = @DEFS@
  61311. DEPDIR = @DEPDIR@
  61312. DSYMUTIL = @DSYMUTIL@
  61313. -ECHO = @ECHO@
  61314. +DUMPBIN = @DUMPBIN@
  61315. ECHO_C = @ECHO_C@
  61316. ECHO_N = @ECHO_N@
  61317. ECHO_T = @ECHO_T@
  61318. EGREP = @EGREP@
  61319. EXEEXT = @EXEEXT@
  61320. -F77 = @F77@
  61321. -FFLAGS = @FFLAGS@
  61322. +FGREP = @FGREP@
  61323. GREP = @GREP@
  61324. INSTALL = @INSTALL@
  61325. INSTALL_DATA = @INSTALL_DATA@
  61326. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61327. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61328. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61329. +LD = @LD@
  61330. LDFLAGS = @LDFLAGS@
  61331. LIBOBJS = @LIBOBJS@
  61332. LIBS = @LIBS@
  61333. LIBTOOL = @LIBTOOL@
  61334. +LIPO = @LIPO@
  61335. LN_S = @LN_S@
  61336. LTLIBOBJS = @LTLIBOBJS@
  61337. MAKEINFO = @MAKEINFO@
  61338. MKDIR_P = @MKDIR_P@
  61339. +NM = @NM@
  61340. NMEDIT = @NMEDIT@
  61341. +OBJDUMP = @OBJDUMP@
  61342. OBJEXT = @OBJEXT@
  61343. +OTOOL = @OTOOL@
  61344. +OTOOL64 = @OTOOL64@
  61345. PACKAGE = @PACKAGE@
  61346. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61347. PACKAGE_NAME = @PACKAGE_NAME@
  61348. PACKAGE_STRING = @PACKAGE_STRING@
  61349. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61350. +PACKAGE_URL = @PACKAGE_URL@
  61351. PACKAGE_VERSION = @PACKAGE_VERSION@
  61352. PATH_SEPARATOR = @PATH_SEPARATOR@
  61353. RANLIB = @RANLIB@
  61354. @@ -137,8 +170,7 @@
  61355. abs_top_builddir = @abs_top_builddir@
  61356. abs_top_srcdir = @abs_top_srcdir@
  61357. ac_ct_CC = @ac_ct_CC@
  61358. -ac_ct_CXX = @ac_ct_CXX@
  61359. -ac_ct_F77 = @ac_ct_F77@
  61360. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61361. am__include = @am__include@
  61362. am__leading_dot = @am__leading_dot@
  61363. am__quote = @am__quote@
  61364. @@ -170,6 +202,7 @@
  61365. libexecdir = @libexecdir@
  61366. localedir = @localedir@
  61367. localstatedir = @localstatedir@
  61368. +lt_ECHO = @lt_ECHO@
  61369. mandir = @mandir@
  61370. mkdir_p = @mkdir_p@
  61371. oldincludedir = @oldincludedir@
  61372. @@ -182,6 +215,7 @@
  61373. srcdir = @srcdir@
  61374. sysconfdir = @sysconfdir@
  61375. target_alias = @target_alias@
  61376. +top_build_prefix = @top_build_prefix@
  61377. top_builddir = @top_builddir@
  61378. top_srcdir = @top_srcdir@
  61379. EXTRA_DIST = MAINT
  61380. @@ -196,15 +230,15 @@
  61381. @for dep in $?; do \
  61382. case '$(am__configure_deps)' in \
  61383. *$$dep*) \
  61384. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  61385. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  61386. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  61387. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  61388. && exit 0; \
  61389. exit 1;; \
  61390. esac; \
  61391. done; \
  61392. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  61393. - cd $(top_srcdir) && \
  61394. - $(AUTOMAKE) --gnu Makefile
  61395. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  61396. + $(am__cd) $(top_srcdir) && \
  61397. + $(AUTOMAKE) --gnu Makefile
  61398. .PRECIOUS: Makefile
  61399. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61400. @case '$?' in \
  61401. @@ -220,9 +254,10 @@
  61402. $(SHELL) ./config.status --recheck
  61403. $(top_srcdir)/configure: $(am__configure_deps)
  61404. - cd $(srcdir) && $(AUTOCONF)
  61405. + $(am__cd) $(srcdir) && $(AUTOCONF)
  61406. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  61407. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61408. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61409. +$(am__aclocal_m4_deps):
  61410. config.h: stamp-h1
  61411. @if test ! -f $@; then \
  61412. @@ -234,7 +269,7 @@
  61413. @rm -f stamp-h1
  61414. cd $(top_builddir) && $(SHELL) ./config.status config.h
  61415. $(srcdir)/config.h.in: $(am__configure_deps)
  61416. - cd $(top_srcdir) && $(AUTOHEADER)
  61417. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  61418. rm -f stamp-h1
  61419. touch $@
  61420. @@ -248,7 +283,7 @@
  61421. -rm -rf .libs _libs
  61422. distclean-libtool:
  61423. - -rm -f libtool
  61424. + -rm -f libtool config.lt
  61425. # This directory's subdirectories are mostly independent; you can cd
  61426. # into them and run `make' without going through this Makefile.
  61427. @@ -257,7 +292,7 @@
  61428. # (which will cause the Makefiles to be regenerated when you run `make');
  61429. # (2) otherwise, pass the desired values on the `make' command line.
  61430. $(RECURSIVE_TARGETS):
  61431. - @failcom='exit 1'; \
  61432. + @fail= failcom='exit 1'; \
  61433. for f in x $$MAKEFLAGS; do \
  61434. case $$f in \
  61435. *=* | --[!k]*);; \
  61436. @@ -274,7 +309,7 @@
  61437. else \
  61438. local_target="$$target"; \
  61439. fi; \
  61440. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61441. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61442. || eval $$failcom; \
  61443. done; \
  61444. if test "$$dot_seen" = "no"; then \
  61445. @@ -282,7 +317,7 @@
  61446. fi; test -z "$$fail"
  61447. $(RECURSIVE_CLEAN_TARGETS):
  61448. - @failcom='exit 1'; \
  61449. + @fail= failcom='exit 1'; \
  61450. for f in x $$MAKEFLAGS; do \
  61451. case $$f in \
  61452. *=* | --[!k]*);; \
  61453. @@ -308,16 +343,16 @@
  61454. else \
  61455. local_target="$$target"; \
  61456. fi; \
  61457. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61458. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61459. || eval $$failcom; \
  61460. done && test -z "$$fail"
  61461. tags-recursive:
  61462. list='$(SUBDIRS)'; for subdir in $$list; do \
  61463. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61464. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61465. done
  61466. ctags-recursive:
  61467. list='$(SUBDIRS)'; for subdir in $$list; do \
  61468. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61469. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61470. done
  61471. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  61472. @@ -325,14 +360,14 @@
  61473. unique=`for i in $$list; do \
  61474. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61475. done | \
  61476. - $(AWK) ' { files[$$0] = 1; } \
  61477. - END { for (i in files) print i; }'`; \
  61478. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61479. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61480. mkid -fID $$unique
  61481. tags: TAGS
  61482. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61483. $(TAGS_FILES) $(LISP)
  61484. - tags=; \
  61485. + set x; \
  61486. here=`pwd`; \
  61487. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  61488. include_option=--etags-include; \
  61489. @@ -344,46 +379,50 @@
  61490. list='$(SUBDIRS)'; for subdir in $$list; do \
  61491. if test "$$subdir" = .; then :; else \
  61492. test ! -f $$subdir/TAGS || \
  61493. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  61494. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  61495. fi; \
  61496. done; \
  61497. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61498. unique=`for i in $$list; do \
  61499. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61500. done | \
  61501. - $(AWK) ' { files[$$0] = 1; } \
  61502. - END { for (i in files) print i; }'`; \
  61503. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61504. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61505. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61506. + shift; \
  61507. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61508. test -n "$$unique" || unique=$$empty_fix; \
  61509. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61510. - $$tags $$unique; \
  61511. + if test $$# -gt 0; then \
  61512. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61513. + "$$@" $$unique; \
  61514. + else \
  61515. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61516. + $$unique; \
  61517. + fi; \
  61518. fi
  61519. ctags: CTAGS
  61520. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61521. $(TAGS_FILES) $(LISP)
  61522. - tags=; \
  61523. - here=`pwd`; \
  61524. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61525. unique=`for i in $$list; do \
  61526. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61527. done | \
  61528. - $(AWK) ' { files[$$0] = 1; } \
  61529. - END { for (i in files) print i; }'`; \
  61530. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61531. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61532. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61533. + test -z "$(CTAGS_ARGS)$$unique" \
  61534. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61535. - $$tags $$unique
  61536. + $$unique
  61537. GTAGS:
  61538. here=`$(am__cd) $(top_builddir) && pwd` \
  61539. - && cd $(top_srcdir) \
  61540. - && gtags -i $(GTAGS_ARGS) $$here
  61541. + && $(am__cd) $(top_srcdir) \
  61542. + && gtags -i $(GTAGS_ARGS) "$$here"
  61543. distclean-tags:
  61544. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61545. distdir: $(DISTFILES)
  61546. $(am__remove_distdir)
  61547. - test -d $(distdir) || mkdir $(distdir)
  61548. + test -d "$(distdir)" || mkdir "$(distdir)"
  61549. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61550. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61551. list='$(DISTFILES)'; \
  61552. @@ -399,38 +438,55 @@
  61553. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61554. if test -d $$d/$$file; then \
  61555. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61556. + if test -d "$(distdir)/$$file"; then \
  61557. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61558. + fi; \
  61559. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61560. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61561. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61562. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61563. fi; \
  61564. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61565. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61566. else \
  61567. - test -f $(distdir)/$$file \
  61568. - || cp -p $$d/$$file $(distdir)/$$file \
  61569. + test -f "$(distdir)/$$file" \
  61570. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61571. || exit 1; \
  61572. fi; \
  61573. done
  61574. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61575. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61576. if test "$$subdir" = .; then :; else \
  61577. test -d "$(distdir)/$$subdir" \
  61578. || $(MKDIR_P) "$(distdir)/$$subdir" \
  61579. || exit 1; \
  61580. - distdir=`$(am__cd) $(distdir) && pwd`; \
  61581. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  61582. - (cd $$subdir && \
  61583. + fi; \
  61584. + done
  61585. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61586. + if test "$$subdir" = .; then :; else \
  61587. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  61588. + $(am__relativize); \
  61589. + new_distdir=$$reldir; \
  61590. + dir1=$$subdir; dir2="$(top_distdir)"; \
  61591. + $(am__relativize); \
  61592. + new_top_distdir=$$reldir; \
  61593. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  61594. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  61595. + ($(am__cd) $$subdir && \
  61596. $(MAKE) $(AM_MAKEFLAGS) \
  61597. - top_distdir="$$top_distdir" \
  61598. - distdir="$$distdir/$$subdir" \
  61599. + top_distdir="$$new_top_distdir" \
  61600. + distdir="$$new_distdir" \
  61601. am__remove_distdir=: \
  61602. am__skip_length_check=: \
  61603. + am__skip_mode_fix=: \
  61604. distdir) \
  61605. || exit 1; \
  61606. fi; \
  61607. done
  61608. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  61609. + -test -n "$(am__skip_mode_fix)" \
  61610. + || find "$(distdir)" -type d ! -perm -755 \
  61611. + -exec chmod u+rwx,go+rx {} \; -o \
  61612. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  61613. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  61614. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  61615. - || chmod -R a+r $(distdir)
  61616. + || chmod -R a+r "$(distdir)"
  61617. dist-gzip: distdir
  61618. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  61619. $(am__remove_distdir)
  61620. @@ -439,6 +495,14 @@
  61621. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  61622. $(am__remove_distdir)
  61623. +dist-lzma: distdir
  61624. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  61625. + $(am__remove_distdir)
  61626. +
  61627. +dist-xz: distdir
  61628. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  61629. + $(am__remove_distdir)
  61630. +
  61631. dist-tarZ: distdir
  61632. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  61633. $(am__remove_distdir)
  61634. @@ -462,13 +526,17 @@
  61635. distcheck: dist
  61636. case '$(DIST_ARCHIVES)' in \
  61637. *.tar.gz*) \
  61638. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  61639. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  61640. *.tar.bz2*) \
  61641. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  61642. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  61643. + *.tar.lzma*) \
  61644. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  61645. + *.tar.xz*) \
  61646. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  61647. *.tar.Z*) \
  61648. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  61649. *.shar.gz*) \
  61650. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  61651. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  61652. *.zip*) \
  61653. unzip $(distdir).zip ;;\
  61654. esac
  61655. @@ -476,9 +544,11 @@
  61656. mkdir $(distdir)/_build
  61657. mkdir $(distdir)/_inst
  61658. chmod a-w $(distdir)
  61659. + test -d $(distdir)/_build || exit 0; \
  61660. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  61661. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  61662. - && cd $(distdir)/_build \
  61663. + && am__cwd=`pwd` \
  61664. + && $(am__cd) $(distdir)/_build \
  61665. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  61666. $(DISTCHECK_CONFIGURE_FLAGS) \
  61667. && $(MAKE) $(AM_MAKEFLAGS) \
  61668. @@ -500,13 +570,15 @@
  61669. && rm -rf "$$dc_destdir" \
  61670. && $(MAKE) $(AM_MAKEFLAGS) dist \
  61671. && rm -rf $(DIST_ARCHIVES) \
  61672. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  61673. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  61674. + && cd "$$am__cwd" \
  61675. + || exit 1
  61676. $(am__remove_distdir)
  61677. @(echo "$(distdir) archives ready for distribution: "; \
  61678. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  61679. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  61680. distuninstallcheck:
  61681. - @cd $(distuninstallcheck_dir) \
  61682. + @$(am__cd) '$(distuninstallcheck_dir)' \
  61683. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  61684. || { echo "ERROR: files left after uninstall:" ; \
  61685. if test -n "$(DESTDIR)"; then \
  61686. @@ -548,6 +620,7 @@
  61687. distclean-generic:
  61688. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61689. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61690. maintainer-clean-generic:
  61691. @echo "This command is intended for maintainers to use"
  61692. @@ -568,6 +641,8 @@
  61693. html: html-recursive
  61694. +html-am:
  61695. +
  61696. info: info-recursive
  61697. info-am:
  61698. @@ -576,18 +651,28 @@
  61699. install-dvi: install-dvi-recursive
  61700. +install-dvi-am:
  61701. +
  61702. install-exec-am:
  61703. install-html: install-html-recursive
  61704. +install-html-am:
  61705. +
  61706. install-info: install-info-recursive
  61707. +install-info-am:
  61708. +
  61709. install-man:
  61710. install-pdf: install-pdf-recursive
  61711. +install-pdf-am:
  61712. +
  61713. install-ps: install-ps-recursive
  61714. +install-ps-am:
  61715. +
  61716. installcheck-am:
  61717. maintainer-clean: maintainer-clean-recursive
  61718. @@ -610,24 +695,25 @@
  61719. uninstall-am:
  61720. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  61721. - install-strip
  61722. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  61723. + ctags-recursive install-am install-strip tags-recursive
  61724. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  61725. all all-am am--refresh check check-am clean clean-generic \
  61726. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  61727. - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
  61728. - distclean-generic distclean-hdr distclean-libtool \
  61729. - distclean-tags distcleancheck distdir distuninstallcheck dvi \
  61730. - dvi-am html html-am info info-am install install-am \
  61731. - install-data install-data-am install-dvi install-dvi-am \
  61732. - install-exec install-exec-am install-html install-html-am \
  61733. - install-info install-info-am install-man install-pdf \
  61734. - install-pdf-am install-ps install-ps-am install-strip \
  61735. - installcheck installcheck-am installdirs installdirs-am \
  61736. - maintainer-clean maintainer-clean-generic mostlyclean \
  61737. - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  61738. - tags tags-recursive uninstall uninstall-am
  61739. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  61740. + distcheck distclean distclean-generic distclean-hdr \
  61741. + distclean-libtool distclean-tags distcleancheck distdir \
  61742. + distuninstallcheck dvi dvi-am html html-am info info-am \
  61743. + install install-am install-data install-data-am install-dvi \
  61744. + install-dvi-am install-exec install-exec-am install-html \
  61745. + install-html-am install-info install-info-am install-man \
  61746. + install-pdf install-pdf-am install-ps install-ps-am \
  61747. + install-strip installcheck installcheck-am installdirs \
  61748. + installdirs-am maintainer-clean maintainer-clean-generic \
  61749. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  61750. + ps ps-am tags tags-recursive uninstall uninstall-am
  61751. +
  61752. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61753. # Otherwise a system limit (for SysV at least) may be exceeded.
  61754. diff -Nur file-5.04.orig/missing file-5.04/missing
  61755. --- file-5.04.orig/missing 2010-01-22 22:09:33.000000000 +0100
  61756. +++ file-5.04/missing 2011-02-24 20:54:42.064805031 +0100
  61757. @@ -1,10 +1,10 @@
  61758. #! /bin/sh
  61759. # Common stub for a few missing GNU programs while installing.
  61760. -scriptversion=2006-05-10.23
  61761. +scriptversion=2009-04-28.21; # UTC
  61762. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
  61763. -# Free Software Foundation, Inc.
  61764. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  61765. +# 2008, 2009 Free Software Foundation, Inc.
  61766. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  61767. # This program is free software; you can redistribute it and/or modify
  61768. @@ -18,9 +18,7 @@
  61769. # GNU General Public License for more details.
  61770. # You should have received a copy of the GNU General Public License
  61771. -# along with this program; if not, write to the Free Software
  61772. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  61773. -# 02110-1301, USA.
  61774. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  61775. # As a special exception to the GNU General Public License, if you
  61776. # distribute this file as part of a program that contains a
  61777. @@ -89,6 +87,9 @@
  61778. tar try tar, gnutar, gtar, then tar without non-portable flags
  61779. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  61780. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  61781. +\`g' are ignored when checking the name.
  61782. +
  61783. Send bug reports to <bug-automake@gnu.org>."
  61784. exit $?
  61785. ;;
  61786. @@ -106,15 +107,22 @@
  61787. esac
  61788. +# normalize program name to check for.
  61789. +program=`echo "$1" | sed '
  61790. + s/^gnu-//; t
  61791. + s/^gnu//; t
  61792. + s/^g//; t'`
  61793. +
  61794. # Now exit if we have it, but it failed. Also exit now if we
  61795. # don't have it and --version was passed (most likely to detect
  61796. -# the program).
  61797. +# the program). This is about non-GNU programs, so use $1 not
  61798. +# $program.
  61799. case $1 in
  61800. - lex|yacc)
  61801. + lex*|yacc*)
  61802. # Not GNU programs, they don't have --version.
  61803. ;;
  61804. - tar)
  61805. + tar*)
  61806. if test -n "$run"; then
  61807. echo 1>&2 "ERROR: \`tar' requires --run"
  61808. exit 1
  61809. @@ -138,7 +146,7 @@
  61810. # If it does not exist, or fails to run (possibly an outdated version),
  61811. # try to emulate it.
  61812. -case $1 in
  61813. +case $program in
  61814. aclocal*)
  61815. echo 1>&2 "\
  61816. WARNING: \`$1' is $msg. You should only need it if
  61817. @@ -148,7 +156,7 @@
  61818. touch aclocal.m4
  61819. ;;
  61820. - autoconf)
  61821. + autoconf*)
  61822. echo 1>&2 "\
  61823. WARNING: \`$1' is $msg. You should only need it if
  61824. you modified \`${configure_ac}'. You might want to install the
  61825. @@ -157,7 +165,7 @@
  61826. touch configure
  61827. ;;
  61828. - autoheader)
  61829. + autoheader*)
  61830. echo 1>&2 "\
  61831. WARNING: \`$1' is $msg. You should only need it if
  61832. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  61833. @@ -187,7 +195,7 @@
  61834. while read f; do touch "$f"; done
  61835. ;;
  61836. - autom4te)
  61837. + autom4te*)
  61838. echo 1>&2 "\
  61839. WARNING: \`$1' is needed, but is $msg.
  61840. You might have modified some files without having the
  61841. @@ -210,7 +218,7 @@
  61842. fi
  61843. ;;
  61844. - bison|yacc)
  61845. + bison*|yacc*)
  61846. echo 1>&2 "\
  61847. WARNING: \`$1' $msg. You should only need it if
  61848. you modified a \`.y' file. You may need the \`Bison' package
  61849. @@ -240,7 +248,7 @@
  61850. fi
  61851. ;;
  61852. - lex|flex)
  61853. + lex*|flex*)
  61854. echo 1>&2 "\
  61855. WARNING: \`$1' is $msg. You should only need it if
  61856. you modified a \`.l' file. You may need the \`Flex' package
  61857. @@ -263,7 +271,7 @@
  61858. fi
  61859. ;;
  61860. - help2man)
  61861. + help2man*)
  61862. echo 1>&2 "\
  61863. WARNING: \`$1' is $msg. You should only need it if
  61864. you modified a dependency of a manual page. You may need the
  61865. @@ -277,11 +285,11 @@
  61866. else
  61867. test -z "$file" || exec >$file
  61868. echo ".ab help2man is required to generate this page"
  61869. - exit 1
  61870. + exit $?
  61871. fi
  61872. ;;
  61873. - makeinfo)
  61874. + makeinfo*)
  61875. echo 1>&2 "\
  61876. WARNING: \`$1' is $msg. You should only need it if
  61877. you modified a \`.texi' or \`.texinfo' file, or any other file
  61878. @@ -310,7 +318,7 @@
  61879. touch $file
  61880. ;;
  61881. - tar)
  61882. + tar*)
  61883. shift
  61884. # We have already tried tar in the generic part.
  61885. @@ -363,5 +371,6 @@
  61886. # eval: (add-hook 'write-file-hooks 'time-stamp)
  61887. # time-stamp-start: "scriptversion="
  61888. # time-stamp-format: "%:y-%02m-%02d.%02H"
  61889. -# time-stamp-end: "$"
  61890. +# time-stamp-time-zone: "UTC"
  61891. +# time-stamp-end: "; # UTC"
  61892. # End:
  61893. diff -Nur file-5.04.orig/python/Makefile.in file-5.04/python/Makefile.in
  61894. --- file-5.04.orig/python/Makefile.in 2010-01-22 22:09:33.000000000 +0100
  61895. +++ file-5.04/python/Makefile.in 2011-02-24 20:54:42.174813226 +0100
  61896. @@ -1,8 +1,9 @@
  61897. -# Makefile.in generated by automake 1.10 from Makefile.am.
  61898. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61899. # @configure_input@
  61900. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61901. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  61902. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61903. +# Inc.
  61904. # This Makefile.in is free software; the Free Software Foundation
  61905. # gives unlimited permission to copy and/or distribute it,
  61906. # with or without modifications, as long as this notice is preserved.
  61907. @@ -14,8 +15,9 @@
  61908. @SET_MAKE@
  61909. VPATH = @srcdir@
  61910. -pkglibdir = $(libdir)/@PACKAGE@
  61911. pkgincludedir = $(includedir)/@PACKAGE@
  61912. +pkglibdir = $(libdir)/@PACKAGE@
  61913. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61914. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61915. install_sh_DATA = $(install_sh) -c -m 644
  61916. install_sh_PROGRAM = $(install_sh) -c
  61917. @@ -40,6 +42,7 @@
  61918. mkinstalldirs = $(install_sh) -d
  61919. CONFIG_HEADER = $(top_builddir)/config.h
  61920. CONFIG_CLEAN_FILES =
  61921. +CONFIG_CLEAN_VPATH_FILES =
  61922. SOURCES =
  61923. DIST_SOURCES =
  61924. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  61925. @@ -56,43 +59,45 @@
  61926. CFLAGS = @CFLAGS@
  61927. CPP = @CPP@
  61928. CPPFLAGS = @CPPFLAGS@
  61929. -CXX = @CXX@
  61930. -CXXCPP = @CXXCPP@
  61931. -CXXDEPMODE = @CXXDEPMODE@
  61932. -CXXFLAGS = @CXXFLAGS@
  61933. CYGPATH_W = @CYGPATH_W@
  61934. DEFS = @DEFS@
  61935. DEPDIR = @DEPDIR@
  61936. DSYMUTIL = @DSYMUTIL@
  61937. -ECHO = @ECHO@
  61938. +DUMPBIN = @DUMPBIN@
  61939. ECHO_C = @ECHO_C@
  61940. ECHO_N = @ECHO_N@
  61941. ECHO_T = @ECHO_T@
  61942. EGREP = @EGREP@
  61943. EXEEXT = @EXEEXT@
  61944. -F77 = @F77@
  61945. -FFLAGS = @FFLAGS@
  61946. +FGREP = @FGREP@
  61947. GREP = @GREP@
  61948. INSTALL = @INSTALL@
  61949. INSTALL_DATA = @INSTALL_DATA@
  61950. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61951. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61952. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61953. +LD = @LD@
  61954. LDFLAGS = @LDFLAGS@
  61955. LIBOBJS = @LIBOBJS@
  61956. LIBS = @LIBS@
  61957. LIBTOOL = @LIBTOOL@
  61958. +LIPO = @LIPO@
  61959. LN_S = @LN_S@
  61960. LTLIBOBJS = @LTLIBOBJS@
  61961. MAKEINFO = @MAKEINFO@
  61962. MKDIR_P = @MKDIR_P@
  61963. +NM = @NM@
  61964. NMEDIT = @NMEDIT@
  61965. +OBJDUMP = @OBJDUMP@
  61966. OBJEXT = @OBJEXT@
  61967. +OTOOL = @OTOOL@
  61968. +OTOOL64 = @OTOOL64@
  61969. PACKAGE = @PACKAGE@
  61970. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61971. PACKAGE_NAME = @PACKAGE_NAME@
  61972. PACKAGE_STRING = @PACKAGE_STRING@
  61973. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61974. +PACKAGE_URL = @PACKAGE_URL@
  61975. PACKAGE_VERSION = @PACKAGE_VERSION@
  61976. PATH_SEPARATOR = @PATH_SEPARATOR@
  61977. RANLIB = @RANLIB@
  61978. @@ -107,8 +112,7 @@
  61979. abs_top_builddir = @abs_top_builddir@
  61980. abs_top_srcdir = @abs_top_srcdir@
  61981. ac_ct_CC = @ac_ct_CC@
  61982. -ac_ct_CXX = @ac_ct_CXX@
  61983. -ac_ct_F77 = @ac_ct_F77@
  61984. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61985. am__include = @am__include@
  61986. am__leading_dot = @am__leading_dot@
  61987. am__quote = @am__quote@
  61988. @@ -140,6 +144,7 @@
  61989. libexecdir = @libexecdir@
  61990. localedir = @localedir@
  61991. localstatedir = @localstatedir@
  61992. +lt_ECHO = @lt_ECHO@
  61993. mandir = @mandir@
  61994. mkdir_p = @mkdir_p@
  61995. oldincludedir = @oldincludedir@
  61996. @@ -152,6 +157,7 @@
  61997. srcdir = @srcdir@
  61998. sysconfdir = @sysconfdir@
  61999. target_alias = @target_alias@
  62000. +top_build_prefix = @top_build_prefix@
  62001. top_builddir = @top_builddir@
  62002. top_srcdir = @top_srcdir@
  62003. EXTRA_DIST = README example.py py_magic.c py_magic.h setup.py
  62004. @@ -162,14 +168,14 @@
  62005. @for dep in $?; do \
  62006. case '$(am__configure_deps)' in \
  62007. *$$dep*) \
  62008. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62009. - && exit 0; \
  62010. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62011. + && { if test -f $@; then exit 0; else break; fi; }; \
  62012. exit 1;; \
  62013. esac; \
  62014. done; \
  62015. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu python/Makefile'; \
  62016. - cd $(top_srcdir) && \
  62017. - $(AUTOMAKE) --gnu python/Makefile
  62018. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu python/Makefile'; \
  62019. + $(am__cd) $(top_srcdir) && \
  62020. + $(AUTOMAKE) --gnu python/Makefile
  62021. .PRECIOUS: Makefile
  62022. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62023. @case '$?' in \
  62024. @@ -187,6 +193,7 @@
  62025. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62026. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  62027. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62028. +$(am__aclocal_m4_deps):
  62029. mostlyclean-libtool:
  62030. -rm -f *.lo
  62031. @@ -216,13 +223,17 @@
  62032. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62033. if test -d $$d/$$file; then \
  62034. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62035. + if test -d "$(distdir)/$$file"; then \
  62036. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62037. + fi; \
  62038. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62039. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62040. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62041. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62042. fi; \
  62043. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62044. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62045. else \
  62046. - test -f $(distdir)/$$file \
  62047. - || cp -p $$d/$$file $(distdir)/$$file \
  62048. + test -f "$(distdir)/$$file" \
  62049. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62050. || exit 1; \
  62051. fi; \
  62052. done
  62053. @@ -250,6 +261,7 @@
  62054. distclean-generic:
  62055. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62056. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62057. maintainer-clean-generic:
  62058. @echo "This command is intended for maintainers to use"
  62059. @@ -268,6 +280,8 @@
  62060. html: html-am
  62061. +html-am:
  62062. +
  62063. info: info-am
  62064. info-am:
  62065. @@ -276,18 +290,28 @@
  62066. install-dvi: install-dvi-am
  62067. +install-dvi-am:
  62068. +
  62069. install-exec-am:
  62070. install-html: install-html-am
  62071. +install-html-am:
  62072. +
  62073. install-info: install-info-am
  62074. +install-info-am:
  62075. +
  62076. install-man:
  62077. install-pdf: install-pdf-am
  62078. +install-pdf-am:
  62079. +
  62080. install-ps: install-ps-am
  62081. +install-ps-am:
  62082. +
  62083. installcheck-am:
  62084. maintainer-clean: maintainer-clean-am
  62085. @@ -321,6 +345,7 @@
  62086. maintainer-clean-generic mostlyclean mostlyclean-generic \
  62087. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  62088. +
  62089. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62090. # Otherwise a system limit (for SysV at least) may be exceeded.
  62091. .NOEXPORT:
  62092. diff -Nur file-5.04.orig/src/Makefile.in file-5.04/src/Makefile.in
  62093. --- file-5.04.orig/src/Makefile.in 2010-01-22 22:09:34.000000000 +0100
  62094. +++ file-5.04/src/Makefile.in 2011-02-24 20:54:42.233552759 +0100
  62095. @@ -1,8 +1,9 @@
  62096. -# Makefile.in generated by automake 1.10 from Makefile.am.
  62097. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62098. # @configure_input@
  62099. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62100. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  62101. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62102. +# Inc.
  62103. # This Makefile.in is free software; the Free Software Foundation
  62104. # gives unlimited permission to copy and/or distribute it,
  62105. # with or without modifications, as long as this notice is preserved.
  62106. @@ -17,8 +18,9 @@
  62107. VPATH = @srcdir@
  62108. -pkglibdir = $(libdir)/@PACKAGE@
  62109. pkgincludedir = $(includedir)/@PACKAGE@
  62110. +pkglibdir = $(libdir)/@PACKAGE@
  62111. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62112. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62113. install_sh_DATA = $(install_sh) -c -m 644
  62114. install_sh_PROGRAM = $(install_sh) -c
  62115. @@ -46,15 +48,30 @@
  62116. mkinstalldirs = $(install_sh) -d
  62117. CONFIG_HEADER = $(top_builddir)/config.h
  62118. CONFIG_CLEAN_FILES =
  62119. +CONFIG_CLEAN_VPATH_FILES =
  62120. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  62121. am__vpath_adj = case $$p in \
  62122. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  62123. *) f=$$p;; \
  62124. esac;
  62125. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  62126. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  62127. +am__install_max = 40
  62128. +am__nobase_strip_setup = \
  62129. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  62130. +am__nobase_strip = \
  62131. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  62132. +am__nobase_list = $(am__nobase_strip_setup); \
  62133. + for p in $$list; do echo "$$p $$p"; done | \
  62134. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  62135. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  62136. + if (++n[$$2] == $(am__install_max)) \
  62137. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  62138. + END { for (dir in files) print dir, files[dir] }'
  62139. +am__base_list = \
  62140. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  62141. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  62142. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
  62143. "$(DESTDIR)$(includedir)"
  62144. -libLTLIBRARIES_INSTALL = $(INSTALL)
  62145. LTLIBRARIES = $(lib_LTLIBRARIES)
  62146. libmagic_la_DEPENDENCIES = $(LTLIBOBJS)
  62147. am_libmagic_la_OBJECTS = magic.lo apprentice.lo softmagic.lo \
  62148. @@ -65,14 +82,14 @@
  62149. libmagic_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  62150. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  62151. $(libmagic_la_LDFLAGS) $(LDFLAGS) -o $@
  62152. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  62153. PROGRAMS = $(bin_PROGRAMS)
  62154. am_file_OBJECTS = file.$(OBJEXT)
  62155. file_OBJECTS = $(am_file_OBJECTS)
  62156. file_DEPENDENCIES = libmagic.la
  62157. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  62158. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  62159. depcomp = $(SHELL) $(top_srcdir)/depcomp
  62160. am__depfiles_maybe = depfiles
  62161. +am__mv = mv -f
  62162. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  62163. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62164. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62165. @@ -84,7 +101,6 @@
  62166. $(LDFLAGS) -o $@
  62167. SOURCES = $(libmagic_la_SOURCES) $(file_SOURCES)
  62168. DIST_SOURCES = $(libmagic_la_SOURCES) $(file_SOURCES)
  62169. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  62170. HEADERS = $(include_HEADERS)
  62171. ETAGS = etags
  62172. CTAGS = ctags
  62173. @@ -102,43 +118,45 @@
  62174. CFLAGS = @CFLAGS@
  62175. CPP = @CPP@
  62176. CPPFLAGS = @CPPFLAGS@
  62177. -CXX = @CXX@
  62178. -CXXCPP = @CXXCPP@
  62179. -CXXDEPMODE = @CXXDEPMODE@
  62180. -CXXFLAGS = @CXXFLAGS@
  62181. CYGPATH_W = @CYGPATH_W@
  62182. DEFS = @DEFS@
  62183. DEPDIR = @DEPDIR@
  62184. DSYMUTIL = @DSYMUTIL@
  62185. -ECHO = @ECHO@
  62186. +DUMPBIN = @DUMPBIN@
  62187. ECHO_C = @ECHO_C@
  62188. ECHO_N = @ECHO_N@
  62189. ECHO_T = @ECHO_T@
  62190. EGREP = @EGREP@
  62191. EXEEXT = @EXEEXT@
  62192. -F77 = @F77@
  62193. -FFLAGS = @FFLAGS@
  62194. +FGREP = @FGREP@
  62195. GREP = @GREP@
  62196. INSTALL = @INSTALL@
  62197. INSTALL_DATA = @INSTALL_DATA@
  62198. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62199. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62200. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62201. +LD = @LD@
  62202. LDFLAGS = @LDFLAGS@
  62203. LIBOBJS = @LIBOBJS@
  62204. LIBS = @LIBS@
  62205. LIBTOOL = @LIBTOOL@
  62206. +LIPO = @LIPO@
  62207. LN_S = @LN_S@
  62208. LTLIBOBJS = @LTLIBOBJS@
  62209. MAKEINFO = @MAKEINFO@
  62210. MKDIR_P = @MKDIR_P@
  62211. +NM = @NM@
  62212. NMEDIT = @NMEDIT@
  62213. +OBJDUMP = @OBJDUMP@
  62214. OBJEXT = @OBJEXT@
  62215. +OTOOL = @OTOOL@
  62216. +OTOOL64 = @OTOOL64@
  62217. PACKAGE = @PACKAGE@
  62218. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62219. PACKAGE_NAME = @PACKAGE_NAME@
  62220. PACKAGE_STRING = @PACKAGE_STRING@
  62221. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62222. +PACKAGE_URL = @PACKAGE_URL@
  62223. PACKAGE_VERSION = @PACKAGE_VERSION@
  62224. PATH_SEPARATOR = @PATH_SEPARATOR@
  62225. RANLIB = @RANLIB@
  62226. @@ -153,8 +171,7 @@
  62227. abs_top_builddir = @abs_top_builddir@
  62228. abs_top_srcdir = @abs_top_srcdir@
  62229. ac_ct_CC = @ac_ct_CC@
  62230. -ac_ct_CXX = @ac_ct_CXX@
  62231. -ac_ct_F77 = @ac_ct_F77@
  62232. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62233. am__include = @am__include@
  62234. am__leading_dot = @am__leading_dot@
  62235. am__quote = @am__quote@
  62236. @@ -186,6 +203,7 @@
  62237. libexecdir = @libexecdir@
  62238. localedir = @localedir@
  62239. localstatedir = @localstatedir@
  62240. +lt_ECHO = @lt_ECHO@
  62241. mandir = @mandir@
  62242. mkdir_p = @mkdir_p@
  62243. oldincludedir = @oldincludedir@
  62244. @@ -198,6 +216,7 @@
  62245. srcdir = @srcdir@
  62246. sysconfdir = @sysconfdir@
  62247. target_alias = @target_alias@
  62248. +top_build_prefix = @top_build_prefix@
  62249. top_builddir = @top_builddir@
  62250. top_srcdir = @top_srcdir@
  62251. MAGIC = $(pkgdatadir)/magic
  62252. @@ -222,14 +241,14 @@
  62253. @for dep in $?; do \
  62254. case '$(am__configure_deps)' in \
  62255. *$$dep*) \
  62256. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62257. - && exit 0; \
  62258. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62259. + && { if test -f $@; then exit 0; else break; fi; }; \
  62260. exit 1;; \
  62261. esac; \
  62262. done; \
  62263. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  62264. - cd $(top_srcdir) && \
  62265. - $(AUTOMAKE) --gnu src/Makefile
  62266. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  62267. + $(am__cd) $(top_srcdir) && \
  62268. + $(AUTOMAKE) --gnu src/Makefile
  62269. .PRECIOUS: Makefile
  62270. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62271. @case '$?' in \
  62272. @@ -247,23 +266,28 @@
  62273. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62274. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  62275. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62276. +$(am__aclocal_m4_deps):
  62277. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  62278. @$(NORMAL_INSTALL)
  62279. test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  62280. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62281. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62282. + list2=; for p in $$list; do \
  62283. if test -f $$p; then \
  62284. - f=$(am__strip_dir) \
  62285. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  62286. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  62287. + list2="$$list2 $$p"; \
  62288. else :; fi; \
  62289. - done
  62290. + done; \
  62291. + test -z "$$list2" || { \
  62292. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  62293. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  62294. + }
  62295. uninstall-libLTLIBRARIES:
  62296. @$(NORMAL_UNINSTALL)
  62297. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62298. - p=$(am__strip_dir) \
  62299. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  62300. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  62301. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62302. + for p in $$list; do \
  62303. + $(am__strip_dir) \
  62304. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  62305. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  62306. done
  62307. clean-libLTLIBRARIES:
  62308. @@ -279,31 +303,46 @@
  62309. install-binPROGRAMS: $(bin_PROGRAMS)
  62310. @$(NORMAL_INSTALL)
  62311. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  62312. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  62313. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62314. - if test -f $$p \
  62315. - || test -f $$p1 \
  62316. - ; then \
  62317. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  62318. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  62319. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  62320. - else :; fi; \
  62321. - done
  62322. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  62323. + for p in $$list; do echo "$$p $$p"; done | \
  62324. + sed 's/$(EXEEXT)$$//' | \
  62325. + while read p p1; do if test -f $$p || test -f $$p1; \
  62326. + then echo "$$p"; echo "$$p"; else :; fi; \
  62327. + done | \
  62328. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  62329. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  62330. + sed 'N;N;N;s,\n, ,g' | \
  62331. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  62332. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  62333. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  62334. + else { print "f", $$3 "/" $$4, $$1; } } \
  62335. + END { for (d in files) print "f", d, files[d] }' | \
  62336. + while read type dir files; do \
  62337. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  62338. + test -z "$$files" || { \
  62339. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  62340. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  62341. + } \
  62342. + ; done
  62343. uninstall-binPROGRAMS:
  62344. @$(NORMAL_UNINSTALL)
  62345. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  62346. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  62347. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  62348. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  62349. - done
  62350. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  62351. + files=`for p in $$list; do echo "$$p"; done | \
  62352. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  62353. + -e 's/$$/$(EXEEXT)/' `; \
  62354. + test -n "$$list" || exit 0; \
  62355. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  62356. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  62357. clean-binPROGRAMS:
  62358. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  62359. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62360. - echo " rm -f $$p $$f"; \
  62361. - rm -f $$p $$f ; \
  62362. - done
  62363. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  62364. + echo " rm -f" $$list; \
  62365. + rm -f $$list || exit $$?; \
  62366. + test -n "$(EXEEXT)" || exit 0; \
  62367. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  62368. + echo " rm -f" $$list; \
  62369. + rm -f $$list
  62370. file$(EXEEXT): $(file_OBJECTS) $(file_DEPENDENCIES)
  62371. @rm -f file$(EXEEXT)
  62372. $(LINK) $(file_OBJECTS) $(file_LDADD) $(LIBS)
  62373. @@ -338,21 +377,21 @@
  62374. .c.o:
  62375. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62376. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62377. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62378. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62379. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62380. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  62381. .c.obj:
  62382. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  62383. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62384. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62385. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62386. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62387. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  62388. .c.lo:
  62389. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62390. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62391. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62392. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62393. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62394. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  62395. @@ -365,65 +404,72 @@
  62396. install-includeHEADERS: $(include_HEADERS)
  62397. @$(NORMAL_INSTALL)
  62398. test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  62399. - @list='$(include_HEADERS)'; for p in $$list; do \
  62400. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  62401. + for p in $$list; do \
  62402. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  62403. - f=$(am__strip_dir) \
  62404. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  62405. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  62406. + echo "$$d$$p"; \
  62407. + done | $(am__base_list) | \
  62408. + while read files; do \
  62409. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  62410. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  62411. done
  62412. uninstall-includeHEADERS:
  62413. @$(NORMAL_UNINSTALL)
  62414. - @list='$(include_HEADERS)'; for p in $$list; do \
  62415. - f=$(am__strip_dir) \
  62416. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  62417. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  62418. - done
  62419. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  62420. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  62421. + test -n "$$files" || exit 0; \
  62422. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  62423. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  62424. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  62425. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62426. unique=`for i in $$list; do \
  62427. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62428. done | \
  62429. - $(AWK) ' { files[$$0] = 1; } \
  62430. - END { for (i in files) print i; }'`; \
  62431. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62432. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62433. mkid -fID $$unique
  62434. tags: TAGS
  62435. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62436. $(TAGS_FILES) $(LISP)
  62437. - tags=; \
  62438. + set x; \
  62439. here=`pwd`; \
  62440. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62441. unique=`for i in $$list; do \
  62442. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62443. done | \
  62444. - $(AWK) ' { files[$$0] = 1; } \
  62445. - END { for (i in files) print i; }'`; \
  62446. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  62447. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62448. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62449. + shift; \
  62450. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  62451. test -n "$$unique" || unique=$$empty_fix; \
  62452. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62453. - $$tags $$unique; \
  62454. + if test $$# -gt 0; then \
  62455. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62456. + "$$@" $$unique; \
  62457. + else \
  62458. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62459. + $$unique; \
  62460. + fi; \
  62461. fi
  62462. ctags: CTAGS
  62463. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62464. $(TAGS_FILES) $(LISP)
  62465. - tags=; \
  62466. - here=`pwd`; \
  62467. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62468. unique=`for i in $$list; do \
  62469. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62470. done | \
  62471. - $(AWK) ' { files[$$0] = 1; } \
  62472. - END { for (i in files) print i; }'`; \
  62473. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  62474. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62475. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62476. + test -z "$(CTAGS_ARGS)$$unique" \
  62477. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  62478. - $$tags $$unique
  62479. + $$unique
  62480. GTAGS:
  62481. here=`$(am__cd) $(top_builddir) && pwd` \
  62482. - && cd $(top_srcdir) \
  62483. - && gtags -i $(GTAGS_ARGS) $$here
  62484. + && $(am__cd) $(top_srcdir) \
  62485. + && gtags -i $(GTAGS_ARGS) "$$here"
  62486. distclean-tags:
  62487. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  62488. @@ -444,13 +490,17 @@
  62489. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62490. if test -d $$d/$$file; then \
  62491. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62492. + if test -d "$(distdir)/$$file"; then \
  62493. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62494. + fi; \
  62495. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62496. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62497. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62498. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62499. fi; \
  62500. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62501. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62502. else \
  62503. - test -f $(distdir)/$$file \
  62504. - || cp -p $$d/$$file $(distdir)/$$file \
  62505. + test -f "$(distdir)/$$file" \
  62506. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62507. || exit 1; \
  62508. fi; \
  62509. done
  62510. @@ -483,6 +533,7 @@
  62511. distclean-generic:
  62512. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62513. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62514. maintainer-clean-generic:
  62515. @echo "This command is intended for maintainers to use"
  62516. @@ -504,6 +555,8 @@
  62517. html: html-am
  62518. +html-am:
  62519. +
  62520. info: info-am
  62521. info-am:
  62522. @@ -512,18 +565,28 @@
  62523. install-dvi: install-dvi-am
  62524. +install-dvi-am:
  62525. +
  62526. install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
  62527. install-html: install-html-am
  62528. +install-html-am:
  62529. +
  62530. install-info: install-info-am
  62531. +install-info-am:
  62532. +
  62533. install-man:
  62534. install-pdf: install-pdf-am
  62535. +install-pdf-am:
  62536. +
  62537. install-ps: install-ps-am
  62538. +install-ps-am:
  62539. +
  62540. installcheck-am:
  62541. maintainer-clean: maintainer-clean-am
  62542. @@ -565,6 +628,7 @@
  62543. tags uninstall uninstall-am uninstall-binPROGRAMS \
  62544. uninstall-includeHEADERS uninstall-libLTLIBRARIES
  62545. +
  62546. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62547. # Otherwise a system limit (for SysV at least) may be exceeded.
  62548. .NOEXPORT:
  62549. diff -Nur file-5.04.orig/tests/Makefile.in file-5.04/tests/Makefile.in
  62550. --- file-5.04.orig/tests/Makefile.in 2010-01-22 22:09:34.000000000 +0100
  62551. +++ file-5.04/tests/Makefile.in 2011-02-24 20:54:42.283552526 +0100
  62552. @@ -1,8 +1,9 @@
  62553. -# Makefile.in generated by automake 1.10 from Makefile.am.
  62554. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62555. # @configure_input@
  62556. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62557. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  62558. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62559. +# Inc.
  62560. # This Makefile.in is free software; the Free Software Foundation
  62561. # gives unlimited permission to copy and/or distribute it,
  62562. # with or without modifications, as long as this notice is preserved.
  62563. @@ -14,8 +15,9 @@
  62564. @SET_MAKE@
  62565. VPATH = @srcdir@
  62566. -pkglibdir = $(libdir)/@PACKAGE@
  62567. pkgincludedir = $(includedir)/@PACKAGE@
  62568. +pkglibdir = $(libdir)/@PACKAGE@
  62569. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62570. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62571. install_sh_DATA = $(install_sh) -c -m 644
  62572. install_sh_PROGRAM = $(install_sh) -c
  62573. @@ -41,12 +43,14 @@
  62574. mkinstalldirs = $(install_sh) -d
  62575. CONFIG_HEADER = $(top_builddir)/config.h
  62576. CONFIG_CLEAN_FILES =
  62577. +CONFIG_CLEAN_VPATH_FILES =
  62578. test_SOURCES = test.c
  62579. test_OBJECTS = test-test.$(OBJEXT)
  62580. test_DEPENDENCIES = $(top_builddir)/src/libmagic.la
  62581. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  62582. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  62583. depcomp = $(SHELL) $(top_srcdir)/depcomp
  62584. am__depfiles_maybe = depfiles
  62585. +am__mv = mv -f
  62586. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  62587. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62588. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62589. @@ -74,43 +78,45 @@
  62590. CFLAGS = @CFLAGS@
  62591. CPP = @CPP@
  62592. CPPFLAGS = @CPPFLAGS@
  62593. -CXX = @CXX@
  62594. -CXXCPP = @CXXCPP@
  62595. -CXXDEPMODE = @CXXDEPMODE@
  62596. -CXXFLAGS = @CXXFLAGS@
  62597. CYGPATH_W = @CYGPATH_W@
  62598. DEFS = @DEFS@
  62599. DEPDIR = @DEPDIR@
  62600. DSYMUTIL = @DSYMUTIL@
  62601. -ECHO = @ECHO@
  62602. +DUMPBIN = @DUMPBIN@
  62603. ECHO_C = @ECHO_C@
  62604. ECHO_N = @ECHO_N@
  62605. ECHO_T = @ECHO_T@
  62606. EGREP = @EGREP@
  62607. EXEEXT = @EXEEXT@
  62608. -F77 = @F77@
  62609. -FFLAGS = @FFLAGS@
  62610. +FGREP = @FGREP@
  62611. GREP = @GREP@
  62612. INSTALL = @INSTALL@
  62613. INSTALL_DATA = @INSTALL_DATA@
  62614. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62615. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62616. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62617. +LD = @LD@
  62618. LDFLAGS = @LDFLAGS@
  62619. LIBOBJS = @LIBOBJS@
  62620. LIBS = @LIBS@
  62621. LIBTOOL = @LIBTOOL@
  62622. +LIPO = @LIPO@
  62623. LN_S = @LN_S@
  62624. LTLIBOBJS = @LTLIBOBJS@
  62625. MAKEINFO = @MAKEINFO@
  62626. MKDIR_P = @MKDIR_P@
  62627. +NM = @NM@
  62628. NMEDIT = @NMEDIT@
  62629. +OBJDUMP = @OBJDUMP@
  62630. OBJEXT = @OBJEXT@
  62631. +OTOOL = @OTOOL@
  62632. +OTOOL64 = @OTOOL64@
  62633. PACKAGE = @PACKAGE@
  62634. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62635. PACKAGE_NAME = @PACKAGE_NAME@
  62636. PACKAGE_STRING = @PACKAGE_STRING@
  62637. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62638. +PACKAGE_URL = @PACKAGE_URL@
  62639. PACKAGE_VERSION = @PACKAGE_VERSION@
  62640. PATH_SEPARATOR = @PATH_SEPARATOR@
  62641. RANLIB = @RANLIB@
  62642. @@ -125,8 +131,7 @@
  62643. abs_top_builddir = @abs_top_builddir@
  62644. abs_top_srcdir = @abs_top_srcdir@
  62645. ac_ct_CC = @ac_ct_CC@
  62646. -ac_ct_CXX = @ac_ct_CXX@
  62647. -ac_ct_F77 = @ac_ct_F77@
  62648. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62649. am__include = @am__include@
  62650. am__leading_dot = @am__leading_dot@
  62651. am__quote = @am__quote@
  62652. @@ -158,6 +163,7 @@
  62653. libexecdir = @libexecdir@
  62654. localedir = @localedir@
  62655. localstatedir = @localstatedir@
  62656. +lt_ECHO = @lt_ECHO@
  62657. mandir = @mandir@
  62658. mkdir_p = @mkdir_p@
  62659. oldincludedir = @oldincludedir@
  62660. @@ -170,6 +176,7 @@
  62661. srcdir = @srcdir@
  62662. sysconfdir = @sysconfdir@
  62663. target_alias = @target_alias@
  62664. +top_build_prefix = @top_build_prefix@
  62665. top_builddir = @top_builddir@
  62666. top_srcdir = @top_srcdir@
  62667. test_LDADD = $(top_builddir)/src/libmagic.la
  62668. @@ -186,14 +193,14 @@
  62669. @for dep in $?; do \
  62670. case '$(am__configure_deps)' in \
  62671. *$$dep*) \
  62672. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62673. - && exit 0; \
  62674. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62675. + && { if test -f $@; then exit 0; else break; fi; }; \
  62676. exit 1;; \
  62677. esac; \
  62678. done; \
  62679. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
  62680. - cd $(top_srcdir) && \
  62681. - $(AUTOMAKE) --gnu tests/Makefile
  62682. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
  62683. + $(am__cd) $(top_srcdir) && \
  62684. + $(AUTOMAKE) --gnu tests/Makefile
  62685. .PRECIOUS: Makefile
  62686. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62687. @case '$?' in \
  62688. @@ -211,13 +218,16 @@
  62689. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62690. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  62691. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62692. +$(am__aclocal_m4_deps):
  62693. clean-checkPROGRAMS:
  62694. - @list='$(check_PROGRAMS)'; for p in $$list; do \
  62695. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62696. - echo " rm -f $$p $$f"; \
  62697. - rm -f $$p $$f ; \
  62698. - done
  62699. + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  62700. + echo " rm -f" $$list; \
  62701. + rm -f $$list || exit $$?; \
  62702. + test -n "$(EXEEXT)" || exit 0; \
  62703. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  62704. + echo " rm -f" $$list; \
  62705. + rm -f $$list
  62706. test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES)
  62707. @rm -f test$(EXEEXT)
  62708. $(LINK) $(test_OBJECTS) $(test_LDADD) $(LIBS)
  62709. @@ -232,35 +242,35 @@
  62710. .c.o:
  62711. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62712. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62713. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62714. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62715. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62716. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  62717. .c.obj:
  62718. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  62719. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62720. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62721. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62722. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62723. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  62724. .c.lo:
  62725. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62726. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62727. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62728. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62729. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62730. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  62731. test-test.o: test.c
  62732. @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test-test.o -MD -MP -MF $(DEPDIR)/test-test.Tpo -c -o test-test.o `test -f 'test.c' || echo '$(srcdir)/'`test.c
  62733. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test-test.Tpo $(DEPDIR)/test-test.Po
  62734. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/test-test.Tpo $(DEPDIR)/test-test.Po
  62735. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test.c' object='test-test.o' libtool=no @AMDEPBACKSLASH@
  62736. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62737. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test-test.o `test -f 'test.c' || echo '$(srcdir)/'`test.c
  62738. test-test.obj: test.c
  62739. @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test-test.obj -MD -MP -MF $(DEPDIR)/test-test.Tpo -c -o test-test.obj `if test -f 'test.c'; then $(CYGPATH_W) 'test.c'; else $(CYGPATH_W) '$(srcdir)/test.c'; fi`
  62740. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test-test.Tpo $(DEPDIR)/test-test.Po
  62741. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/test-test.Tpo $(DEPDIR)/test-test.Po
  62742. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test.c' object='test-test.obj' libtool=no @AMDEPBACKSLASH@
  62743. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62744. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test-test.obj `if test -f 'test.c'; then $(CYGPATH_W) 'test.c'; else $(CYGPATH_W) '$(srcdir)/test.c'; fi`
  62745. @@ -276,45 +286,49 @@
  62746. unique=`for i in $$list; do \
  62747. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62748. done | \
  62749. - $(AWK) ' { files[$$0] = 1; } \
  62750. - END { for (i in files) print i; }'`; \
  62751. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62752. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62753. mkid -fID $$unique
  62754. tags: TAGS
  62755. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62756. $(TAGS_FILES) $(LISP)
  62757. - tags=; \
  62758. + set x; \
  62759. here=`pwd`; \
  62760. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62761. unique=`for i in $$list; do \
  62762. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62763. done | \
  62764. - $(AWK) ' { files[$$0] = 1; } \
  62765. - END { for (i in files) print i; }'`; \
  62766. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  62767. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62768. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62769. + shift; \
  62770. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  62771. test -n "$$unique" || unique=$$empty_fix; \
  62772. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62773. - $$tags $$unique; \
  62774. + if test $$# -gt 0; then \
  62775. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62776. + "$$@" $$unique; \
  62777. + else \
  62778. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62779. + $$unique; \
  62780. + fi; \
  62781. fi
  62782. ctags: CTAGS
  62783. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62784. $(TAGS_FILES) $(LISP)
  62785. - tags=; \
  62786. - here=`pwd`; \
  62787. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62788. unique=`for i in $$list; do \
  62789. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62790. done | \
  62791. - $(AWK) ' { files[$$0] = 1; } \
  62792. - END { for (i in files) print i; }'`; \
  62793. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  62794. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62795. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62796. + test -z "$(CTAGS_ARGS)$$unique" \
  62797. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  62798. - $$tags $$unique
  62799. + $$unique
  62800. GTAGS:
  62801. here=`$(am__cd) $(top_builddir) && pwd` \
  62802. - && cd $(top_srcdir) \
  62803. - && gtags -i $(GTAGS_ARGS) $$here
  62804. + && $(am__cd) $(top_srcdir) \
  62805. + && gtags -i $(GTAGS_ARGS) "$$here"
  62806. distclean-tags:
  62807. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  62808. @@ -335,13 +349,17 @@
  62809. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62810. if test -d $$d/$$file; then \
  62811. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62812. + if test -d "$(distdir)/$$file"; then \
  62813. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62814. + fi; \
  62815. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62816. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62817. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62818. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62819. fi; \
  62820. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62821. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62822. else \
  62823. - test -f $(distdir)/$$file \
  62824. - || cp -p $$d/$$file $(distdir)/$$file \
  62825. + test -f "$(distdir)/$$file" \
  62826. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62827. || exit 1; \
  62828. fi; \
  62829. done
  62830. @@ -371,6 +389,7 @@
  62831. distclean-generic:
  62832. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62833. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62834. maintainer-clean-generic:
  62835. @echo "This command is intended for maintainers to use"
  62836. @@ -392,6 +411,8 @@
  62837. html: html-am
  62838. +html-am:
  62839. +
  62840. info: info-am
  62841. info-am:
  62842. @@ -400,18 +421,28 @@
  62843. install-dvi: install-dvi-am
  62844. +install-dvi-am:
  62845. +
  62846. install-exec-am:
  62847. install-html: install-html-am
  62848. +install-html-am:
  62849. +
  62850. install-info: install-info-am
  62851. +install-info-am:
  62852. +
  62853. install-man:
  62854. install-pdf: install-pdf-am
  62855. +install-pdf-am:
  62856. +
  62857. install-ps: install-ps-am
  62858. +install-ps-am:
  62859. +
  62860. installcheck-am:
  62861. maintainer-clean: maintainer-clean-am
  62862. @@ -434,7 +465,7 @@
  62863. uninstall-am:
  62864. -.MAKE: install-am install-strip
  62865. +.MAKE: check-am install-am install-strip
  62866. .PHONY: CTAGS GTAGS all all-am check check-am check-local clean \
  62867. clean-checkPROGRAMS clean-generic clean-libtool ctags \
  62868. @@ -453,6 +484,7 @@
  62869. check-local:
  62870. MAGIC=$(top_builddir)/magic/magic ./test
  62871. for i in $T/*.testfile; do MAGIC=$T/$${i%%.testfile}.magic $(top_builddir)/tests/test $T/$$i $T/$${i%%.testfile}.result; done
  62872. +
  62873. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62874. # Otherwise a system limit (for SysV at least) may be exceeded.
  62875. .NOEXPORT: