700-libtoolize.patch 1.4 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871
  1. Index: linux-atm-2.4.1/aclocal.m4
  2. ===================================================================
  3. --- linux-atm-2.4.1.orig/aclocal.m4 2007-10-20 21:45:35.714867704 +0200
  4. +++ linux-atm-2.4.1/aclocal.m4 2007-10-20 21:46:56.439467936 +0200
  5. @@ -1,989 +1,21 @@
  6. -dnl aclocal.m4 generated automatically by aclocal 1.4-p6
  7. +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  8. -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  9. -dnl This file is free software; the Free Software Foundation
  10. -dnl gives unlimited permission to copy and/or distribute it,
  11. -dnl with or without modifications, as long as this notice is preserved.
  12. -
  13. -dnl This program is distributed in the hope that it will be useful,
  14. -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  15. -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  16. -dnl PARTICULAR PURPOSE.
  17. -
  18. -# lib-prefix.m4 serial 4 (gettext-0.14.2)
  19. -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  20. -dnl This file is free software; the Free Software Foundation
  21. -dnl gives unlimited permission to copy and/or distribute it,
  22. -dnl with or without modifications, as long as this notice is preserved.
  23. -
  24. -dnl From Bruno Haible.
  25. -
  26. -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  27. -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  28. -dnl require excessive bracketing.
  29. -ifdef([AC_HELP_STRING],
  30. -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  31. -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  32. -
  33. -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  34. -dnl to access previously installed libraries. The basic assumption is that
  35. -dnl a user will want packages to use other packages he previously installed
  36. -dnl with the same --prefix option.
  37. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  38. -dnl libraries, but is otherwise very convenient.
  39. -AC_DEFUN([AC_LIB_PREFIX],
  40. -[
  41. - AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  42. - AC_REQUIRE([AC_PROG_CC])
  43. - AC_REQUIRE([AC_CANONICAL_HOST])
  44. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  45. - dnl By default, look in $includedir and $libdir.
  46. - use_additional=yes
  47. - AC_LIB_WITH_FINAL_PREFIX([
  48. - eval additional_includedir=\"$includedir\"
  49. - eval additional_libdir=\"$libdir\"
  50. - ])
  51. - AC_LIB_ARG_WITH([lib-prefix],
  52. -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  53. - --without-lib-prefix don't search for libraries in includedir and libdir],
  54. -[
  55. - if test "X$withval" = "Xno"; then
  56. - use_additional=no
  57. - else
  58. - if test "X$withval" = "X"; then
  59. - AC_LIB_WITH_FINAL_PREFIX([
  60. - eval additional_includedir=\"$includedir\"
  61. - eval additional_libdir=\"$libdir\"
  62. - ])
  63. - else
  64. - additional_includedir="$withval/include"
  65. - additional_libdir="$withval/lib"
  66. - fi
  67. - fi
  68. -])
  69. - if test $use_additional = yes; then
  70. - dnl Potentially add $additional_includedir to $CPPFLAGS.
  71. - dnl But don't add it
  72. - dnl 1. if it's the standard /usr/include,
  73. - dnl 2. if it's already present in $CPPFLAGS,
  74. - dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  75. - dnl 4. if it doesn't exist as a directory.
  76. - if test "X$additional_includedir" != "X/usr/include"; then
  77. - haveit=
  78. - for x in $CPPFLAGS; do
  79. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  80. - if test "X$x" = "X-I$additional_includedir"; then
  81. - haveit=yes
  82. - break
  83. - fi
  84. - done
  85. - if test -z "$haveit"; then
  86. - if test "X$additional_includedir" = "X/usr/local/include"; then
  87. - if test -n "$GCC"; then
  88. - case $host_os in
  89. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  90. - esac
  91. - fi
  92. - fi
  93. - if test -z "$haveit"; then
  94. - if test -d "$additional_includedir"; then
  95. - dnl Really add $additional_includedir to $CPPFLAGS.
  96. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  97. - fi
  98. - fi
  99. - fi
  100. - fi
  101. - dnl Potentially add $additional_libdir to $LDFLAGS.
  102. - dnl But don't add it
  103. - dnl 1. if it's the standard /usr/lib,
  104. - dnl 2. if it's already present in $LDFLAGS,
  105. - dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  106. - dnl 4. if it doesn't exist as a directory.
  107. - if test "X$additional_libdir" != "X/usr/lib"; then
  108. - haveit=
  109. - for x in $LDFLAGS; do
  110. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  111. - if test "X$x" = "X-L$additional_libdir"; then
  112. - haveit=yes
  113. - break
  114. - fi
  115. - done
  116. - if test -z "$haveit"; then
  117. - if test "X$additional_libdir" = "X/usr/local/lib"; then
  118. - if test -n "$GCC"; then
  119. - case $host_os in
  120. - linux*) haveit=yes;;
  121. - esac
  122. - fi
  123. - fi
  124. - if test -z "$haveit"; then
  125. - if test -d "$additional_libdir"; then
  126. - dnl Really add $additional_libdir to $LDFLAGS.
  127. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  128. - fi
  129. - fi
  130. - fi
  131. - fi
  132. - fi
  133. -])
  134. -
  135. -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  136. -dnl acl_final_exec_prefix, containing the values to which $prefix and
  137. -dnl $exec_prefix will expand at the end of the configure script.
  138. -AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  139. -[
  140. - dnl Unfortunately, prefix and exec_prefix get only finally determined
  141. - dnl at the end of configure.
  142. - if test "X$prefix" = "XNONE"; then
  143. - acl_final_prefix="$ac_default_prefix"
  144. - else
  145. - acl_final_prefix="$prefix"
  146. - fi
  147. - if test "X$exec_prefix" = "XNONE"; then
  148. - acl_final_exec_prefix='${prefix}'
  149. - else
  150. - acl_final_exec_prefix="$exec_prefix"
  151. - fi
  152. - acl_save_prefix="$prefix"
  153. - prefix="$acl_final_prefix"
  154. - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  155. - prefix="$acl_save_prefix"
  156. -])
  157. -
  158. -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  159. -dnl variables prefix and exec_prefix bound to the values they will have
  160. -dnl at the end of the configure script.
  161. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  162. -[
  163. - acl_save_prefix="$prefix"
  164. - prefix="$acl_final_prefix"
  165. - acl_save_exec_prefix="$exec_prefix"
  166. - exec_prefix="$acl_final_exec_prefix"
  167. - $1
  168. - exec_prefix="$acl_save_exec_prefix"
  169. - prefix="$acl_save_prefix"
  170. -])
  171. -
  172. -# lib-link.m4 serial 6 (gettext-0.14.3)
  173. -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  174. -dnl This file is free software; the Free Software Foundation
  175. -dnl gives unlimited permission to copy and/or distribute it,
  176. -dnl with or without modifications, as long as this notice is preserved.
  177. -
  178. -dnl From Bruno Haible.
  179. -
  180. -AC_PREREQ(2.50)
  181. -
  182. -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  183. -dnl the libraries corresponding to explicit and implicit dependencies.
  184. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  185. -dnl augments the CPPFLAGS variable.
  186. -AC_DEFUN([AC_LIB_LINKFLAGS],
  187. -[
  188. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  189. - AC_REQUIRE([AC_LIB_RPATH])
  190. - define([Name],[translit([$1],[./-], [___])])
  191. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  192. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  193. - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  194. - AC_LIB_LINKFLAGS_BODY([$1], [$2])
  195. - ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  196. - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  197. - ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  198. - ])
  199. - LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  200. - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  201. - INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  202. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  203. - AC_SUBST([LIB]NAME)
  204. - AC_SUBST([LTLIB]NAME)
  205. - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  206. - dnl results of this search when this library appears as a dependency.
  207. - HAVE_LIB[]NAME=yes
  208. - undefine([Name])
  209. - undefine([NAME])
  210. -])
  211. -
  212. -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  213. -dnl searches for libname and the libraries corresponding to explicit and
  214. -dnl implicit dependencies, together with the specified include files and
  215. -dnl the ability to compile and link the specified testcode. If found, it
  216. -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  217. -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  218. -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  219. -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  220. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  221. -[
  222. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  223. - AC_REQUIRE([AC_LIB_RPATH])
  224. - define([Name],[translit([$1],[./-], [___])])
  225. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  226. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  227. -
  228. - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  229. - dnl accordingly.
  230. - AC_LIB_LINKFLAGS_BODY([$1], [$2])
  231. -
  232. - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  233. - dnl because if the user has installed lib[]Name and not disabled its use
  234. - dnl via --without-lib[]Name-prefix, he wants to use it.
  235. - ac_save_CPPFLAGS="$CPPFLAGS"
  236. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  237. -
  238. - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  239. - ac_save_LIBS="$LIBS"
  240. - LIBS="$LIBS $LIB[]NAME"
  241. - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  242. - LIBS="$ac_save_LIBS"
  243. - ])
  244. - if test "$ac_cv_lib[]Name" = yes; then
  245. - HAVE_LIB[]NAME=yes
  246. - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  247. - AC_MSG_CHECKING([how to link with lib[]$1])
  248. - AC_MSG_RESULT([$LIB[]NAME])
  249. - else
  250. - HAVE_LIB[]NAME=no
  251. - dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  252. - dnl $INC[]NAME either.
  253. - CPPFLAGS="$ac_save_CPPFLAGS"
  254. - LIB[]NAME=
  255. - LTLIB[]NAME=
  256. - fi
  257. - AC_SUBST([HAVE_LIB]NAME)
  258. - AC_SUBST([LIB]NAME)
  259. - AC_SUBST([LTLIB]NAME)
  260. - undefine([Name])
  261. - undefine([NAME])
  262. -])
  263. -
  264. -dnl Determine the platform dependent parameters needed to use rpath:
  265. -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
  266. -dnl hardcode_direct, hardcode_minus_L.
  267. -AC_DEFUN([AC_LIB_RPATH],
  268. -[
  269. - dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  270. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  271. - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  272. - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  273. - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  274. - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  275. - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  276. - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  277. - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  278. - . ./conftest.sh
  279. - rm -f ./conftest.sh
  280. - acl_cv_rpath=done
  281. - ])
  282. - wl="$acl_cv_wl"
  283. - libext="$acl_cv_libext"
  284. - shlibext="$acl_cv_shlibext"
  285. - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  286. - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  287. - hardcode_direct="$acl_cv_hardcode_direct"
  288. - hardcode_minus_L="$acl_cv_hardcode_minus_L"
  289. - dnl Determine whether the user wants rpath handling at all.
  290. - AC_ARG_ENABLE(rpath,
  291. - [ --disable-rpath do not hardcode runtime library paths],
  292. - :, enable_rpath=yes)
  293. -])
  294. -
  295. -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  296. -dnl the libraries corresponding to explicit and implicit dependencies.
  297. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  298. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  299. -[
  300. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  301. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  302. - dnl By default, look in $includedir and $libdir.
  303. - use_additional=yes
  304. - AC_LIB_WITH_FINAL_PREFIX([
  305. - eval additional_includedir=\"$includedir\"
  306. - eval additional_libdir=\"$libdir\"
  307. - ])
  308. - AC_LIB_ARG_WITH([lib$1-prefix],
  309. -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  310. - --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
  311. -[
  312. - if test "X$withval" = "Xno"; then
  313. - use_additional=no
  314. - else
  315. - if test "X$withval" = "X"; then
  316. - AC_LIB_WITH_FINAL_PREFIX([
  317. - eval additional_includedir=\"$includedir\"
  318. - eval additional_libdir=\"$libdir\"
  319. - ])
  320. - else
  321. - additional_includedir="$withval/include"
  322. - additional_libdir="$withval/lib"
  323. - fi
  324. - fi
  325. -])
  326. - dnl Search the library and its dependencies in $additional_libdir and
  327. - dnl $LDFLAGS. Using breadth-first-seach.
  328. - LIB[]NAME=
  329. - LTLIB[]NAME=
  330. - INC[]NAME=
  331. - rpathdirs=
  332. - ltrpathdirs=
  333. - names_already_handled=
  334. - names_next_round='$1 $2'
  335. - while test -n "$names_next_round"; do
  336. - names_this_round="$names_next_round"
  337. - names_next_round=
  338. - for name in $names_this_round; do
  339. - already_handled=
  340. - for n in $names_already_handled; do
  341. - if test "$n" = "$name"; then
  342. - already_handled=yes
  343. - break
  344. - fi
  345. - done
  346. - if test -z "$already_handled"; then
  347. - names_already_handled="$names_already_handled $name"
  348. - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  349. - dnl or AC_LIB_HAVE_LINKFLAGS call.
  350. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  351. - eval value=\"\$HAVE_LIB$uppername\"
  352. - if test -n "$value"; then
  353. - if test "$value" = yes; then
  354. - eval value=\"\$LIB$uppername\"
  355. - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  356. - eval value=\"\$LTLIB$uppername\"
  357. - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  358. - else
  359. - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  360. - dnl that this library doesn't exist. So just drop it.
  361. - :
  362. - fi
  363. - else
  364. - dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  365. - dnl and the already constructed $LIBNAME/$LTLIBNAME.
  366. - found_dir=
  367. - found_la=
  368. - found_so=
  369. - found_a=
  370. - if test $use_additional = yes; then
  371. - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  372. - found_dir="$additional_libdir"
  373. - found_so="$additional_libdir/lib$name.$shlibext"
  374. - if test -f "$additional_libdir/lib$name.la"; then
  375. - found_la="$additional_libdir/lib$name.la"
  376. - fi
  377. - else
  378. - if test -f "$additional_libdir/lib$name.$libext"; then
  379. - found_dir="$additional_libdir"
  380. - found_a="$additional_libdir/lib$name.$libext"
  381. - if test -f "$additional_libdir/lib$name.la"; then
  382. - found_la="$additional_libdir/lib$name.la"
  383. - fi
  384. - fi
  385. - fi
  386. - fi
  387. - if test "X$found_dir" = "X"; then
  388. - for x in $LDFLAGS $LTLIB[]NAME; do
  389. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  390. - case "$x" in
  391. - -L*)
  392. - dir=`echo "X$x" | sed -e 's/^X-L//'`
  393. - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  394. - found_dir="$dir"
  395. - found_so="$dir/lib$name.$shlibext"
  396. - if test -f "$dir/lib$name.la"; then
  397. - found_la="$dir/lib$name.la"
  398. - fi
  399. - else
  400. - if test -f "$dir/lib$name.$libext"; then
  401. - found_dir="$dir"
  402. - found_a="$dir/lib$name.$libext"
  403. - if test -f "$dir/lib$name.la"; then
  404. - found_la="$dir/lib$name.la"
  405. - fi
  406. - fi
  407. - fi
  408. - ;;
  409. - esac
  410. - if test "X$found_dir" != "X"; then
  411. - break
  412. - fi
  413. - done
  414. - fi
  415. - if test "X$found_dir" != "X"; then
  416. - dnl Found the library.
  417. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  418. - if test "X$found_so" != "X"; then
  419. - dnl Linking with a shared library. We attempt to hardcode its
  420. - dnl directory into the executable's runpath, unless it's the
  421. - dnl standard /usr/lib.
  422. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  423. - dnl No hardcoding is needed.
  424. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  425. - else
  426. - dnl Use an explicit option to hardcode DIR into the resulting
  427. - dnl binary.
  428. - dnl Potentially add DIR to ltrpathdirs.
  429. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  430. - haveit=
  431. - for x in $ltrpathdirs; do
  432. - if test "X$x" = "X$found_dir"; then
  433. - haveit=yes
  434. - break
  435. - fi
  436. - done
  437. - if test -z "$haveit"; then
  438. - ltrpathdirs="$ltrpathdirs $found_dir"
  439. - fi
  440. - dnl The hardcoding into $LIBNAME is system dependent.
  441. - if test "$hardcode_direct" = yes; then
  442. - dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  443. - dnl resulting binary.
  444. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  445. - else
  446. - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  447. - dnl Use an explicit option to hardcode DIR into the resulting
  448. - dnl binary.
  449. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  450. - dnl Potentially add DIR to rpathdirs.
  451. - dnl The rpathdirs will be appended to $LIBNAME at the end.
  452. - haveit=
  453. - for x in $rpathdirs; do
  454. - if test "X$x" = "X$found_dir"; then
  455. - haveit=yes
  456. - break
  457. - fi
  458. - done
  459. - if test -z "$haveit"; then
  460. - rpathdirs="$rpathdirs $found_dir"
  461. - fi
  462. - else
  463. - dnl Rely on "-L$found_dir".
  464. - dnl But don't add it if it's already contained in the LDFLAGS
  465. - dnl or the already constructed $LIBNAME
  466. - haveit=
  467. - for x in $LDFLAGS $LIB[]NAME; do
  468. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  469. - if test "X$x" = "X-L$found_dir"; then
  470. - haveit=yes
  471. - break
  472. - fi
  473. - done
  474. - if test -z "$haveit"; then
  475. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  476. - fi
  477. - if test "$hardcode_minus_L" != no; then
  478. - dnl FIXME: Not sure whether we should use
  479. - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  480. - dnl here.
  481. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  482. - else
  483. - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
  484. - dnl here, because this doesn't fit in flags passed to the
  485. - dnl compiler. So give up. No hardcoding. This affects only
  486. - dnl very old systems.
  487. - dnl FIXME: Not sure whether we should use
  488. - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  489. - dnl here.
  490. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  491. - fi
  492. - fi
  493. - fi
  494. - fi
  495. - else
  496. - if test "X$found_a" != "X"; then
  497. - dnl Linking with a static library.
  498. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  499. - else
  500. - dnl We shouldn't come here, but anyway it's good to have a
  501. - dnl fallback.
  502. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  503. - fi
  504. - fi
  505. - dnl Assume the include files are nearby.
  506. - additional_includedir=
  507. - case "$found_dir" in
  508. - */lib | */lib/)
  509. - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  510. - additional_includedir="$basedir/include"
  511. - ;;
  512. - esac
  513. - if test "X$additional_includedir" != "X"; then
  514. - dnl Potentially add $additional_includedir to $INCNAME.
  515. - dnl But don't add it
  516. - dnl 1. if it's the standard /usr/include,
  517. - dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  518. - dnl 3. if it's already present in $CPPFLAGS or the already
  519. - dnl constructed $INCNAME,
  520. - dnl 4. if it doesn't exist as a directory.
  521. - if test "X$additional_includedir" != "X/usr/include"; then
  522. - haveit=
  523. - if test "X$additional_includedir" = "X/usr/local/include"; then
  524. - if test -n "$GCC"; then
  525. - case $host_os in
  526. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  527. - esac
  528. - fi
  529. - fi
  530. - if test -z "$haveit"; then
  531. - for x in $CPPFLAGS $INC[]NAME; do
  532. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  533. - if test "X$x" = "X-I$additional_includedir"; then
  534. - haveit=yes
  535. - break
  536. - fi
  537. - done
  538. - if test -z "$haveit"; then
  539. - if test -d "$additional_includedir"; then
  540. - dnl Really add $additional_includedir to $INCNAME.
  541. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  542. - fi
  543. - fi
  544. - fi
  545. - fi
  546. - fi
  547. - dnl Look for dependencies.
  548. - if test -n "$found_la"; then
  549. - dnl Read the .la file. It defines the variables
  550. - dnl dlname, library_names, old_library, dependency_libs, current,
  551. - dnl age, revision, installed, dlopen, dlpreopen, libdir.
  552. - save_libdir="$libdir"
  553. - case "$found_la" in
  554. - */* | *\\*) . "$found_la" ;;
  555. - *) . "./$found_la" ;;
  556. - esac
  557. - libdir="$save_libdir"
  558. - dnl We use only dependency_libs.
  559. - for dep in $dependency_libs; do
  560. - case "$dep" in
  561. - -L*)
  562. - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  563. - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  564. - dnl But don't add it
  565. - dnl 1. if it's the standard /usr/lib,
  566. - dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  567. - dnl 3. if it's already present in $LDFLAGS or the already
  568. - dnl constructed $LIBNAME,
  569. - dnl 4. if it doesn't exist as a directory.
  570. - if test "X$additional_libdir" != "X/usr/lib"; then
  571. - haveit=
  572. - if test "X$additional_libdir" = "X/usr/local/lib"; then
  573. - if test -n "$GCC"; then
  574. - case $host_os in
  575. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  576. - esac
  577. - fi
  578. - fi
  579. - if test -z "$haveit"; then
  580. - haveit=
  581. - for x in $LDFLAGS $LIB[]NAME; do
  582. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  583. - if test "X$x" = "X-L$additional_libdir"; then
  584. - haveit=yes
  585. - break
  586. - fi
  587. - done
  588. - if test -z "$haveit"; then
  589. - if test -d "$additional_libdir"; then
  590. - dnl Really add $additional_libdir to $LIBNAME.
  591. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  592. - fi
  593. - fi
  594. - haveit=
  595. - for x in $LDFLAGS $LTLIB[]NAME; do
  596. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  597. - if test "X$x" = "X-L$additional_libdir"; then
  598. - haveit=yes
  599. - break
  600. - fi
  601. - done
  602. - if test -z "$haveit"; then
  603. - if test -d "$additional_libdir"; then
  604. - dnl Really add $additional_libdir to $LTLIBNAME.
  605. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  606. - fi
  607. - fi
  608. - fi
  609. - fi
  610. - ;;
  611. - -R*)
  612. - dir=`echo "X$dep" | sed -e 's/^X-R//'`
  613. - if test "$enable_rpath" != no; then
  614. - dnl Potentially add DIR to rpathdirs.
  615. - dnl The rpathdirs will be appended to $LIBNAME at the end.
  616. - haveit=
  617. - for x in $rpathdirs; do
  618. - if test "X$x" = "X$dir"; then
  619. - haveit=yes
  620. - break
  621. - fi
  622. - done
  623. - if test -z "$haveit"; then
  624. - rpathdirs="$rpathdirs $dir"
  625. - fi
  626. - dnl Potentially add DIR to ltrpathdirs.
  627. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  628. - haveit=
  629. - for x in $ltrpathdirs; do
  630. - if test "X$x" = "X$dir"; then
  631. - haveit=yes
  632. - break
  633. - fi
  634. - done
  635. - if test -z "$haveit"; then
  636. - ltrpathdirs="$ltrpathdirs $dir"
  637. - fi
  638. - fi
  639. - ;;
  640. - -l*)
  641. - dnl Handle this in the next round.
  642. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  643. - ;;
  644. - *.la)
  645. - dnl Handle this in the next round. Throw away the .la's
  646. - dnl directory; it is already contained in a preceding -L
  647. - dnl option.
  648. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  649. - ;;
  650. - *)
  651. - dnl Most likely an immediate library name.
  652. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  653. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  654. - ;;
  655. - esac
  656. - done
  657. - fi
  658. - else
  659. - dnl Didn't find the library; assume it is in the system directories
  660. - dnl known to the linker and runtime loader. (All the system
  661. - dnl directories known to the linker should also be known to the
  662. - dnl runtime loader, otherwise the system is severely misconfigured.)
  663. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  664. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  665. - fi
  666. - fi
  667. - fi
  668. - done
  669. - done
  670. - if test "X$rpathdirs" != "X"; then
  671. - if test -n "$hardcode_libdir_separator"; then
  672. - dnl Weird platform: only the last -rpath option counts, the user must
  673. - dnl pass all path elements in one option. We can arrange that for a
  674. - dnl single library, but not when more than one $LIBNAMEs are used.
  675. - alldirs=
  676. - for found_dir in $rpathdirs; do
  677. - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  678. - done
  679. - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
  680. - acl_save_libdir="$libdir"
  681. - libdir="$alldirs"
  682. - eval flag=\"$hardcode_libdir_flag_spec\"
  683. - libdir="$acl_save_libdir"
  684. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  685. - else
  686. - dnl The -rpath options are cumulative.
  687. - for found_dir in $rpathdirs; do
  688. - acl_save_libdir="$libdir"
  689. - libdir="$found_dir"
  690. - eval flag=\"$hardcode_libdir_flag_spec\"
  691. - libdir="$acl_save_libdir"
  692. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  693. - done
  694. - fi
  695. - fi
  696. - if test "X$ltrpathdirs" != "X"; then
  697. - dnl When using libtool, the option that works for both libraries and
  698. - dnl executables is -R. The -R options are cumulative.
  699. - for found_dir in $ltrpathdirs; do
  700. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  701. - done
  702. - fi
  703. -])
  704. -
  705. -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  706. -dnl unless already present in VAR.
  707. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  708. -dnl contains two or three consecutive elements that belong together.
  709. -AC_DEFUN([AC_LIB_APPENDTOVAR],
  710. -[
  711. - for element in [$2]; do
  712. - haveit=
  713. - for x in $[$1]; do
  714. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  715. - if test "X$x" = "X$element"; then
  716. - haveit=yes
  717. - break
  718. - fi
  719. - done
  720. - if test -z "$haveit"; then
  721. - [$1]="${[$1]}${[$1]:+ }$element"
  722. - fi
  723. - done
  724. -])
  725. -
  726. -# lib-ld.m4 serial 3 (gettext-0.13)
  727. -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  728. -dnl This file is free software; the Free Software Foundation
  729. -dnl gives unlimited permission to copy and/or distribute it,
  730. -dnl with or without modifications, as long as this notice is preserved.
  731. -
  732. -dnl Subroutines of libtool.m4,
  733. -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  734. -dnl with libtool.m4.
  735. -
  736. -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  737. -AC_DEFUN([AC_LIB_PROG_LD_GNU],
  738. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  739. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  740. -case `$LD -v 2>&1 </dev/null` in
  741. -*GNU* | *'with BFD'*)
  742. - acl_cv_prog_gnu_ld=yes ;;
  743. -*)
  744. - acl_cv_prog_gnu_ld=no ;;
  745. -esac])
  746. -with_gnu_ld=$acl_cv_prog_gnu_ld
  747. -])
  748. -
  749. -dnl From libtool-1.4. Sets the variable LD.
  750. -AC_DEFUN([AC_LIB_PROG_LD],
  751. -[AC_ARG_WITH(gnu-ld,
  752. -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  753. -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  754. -AC_REQUIRE([AC_PROG_CC])dnl
  755. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  756. -# Prepare PATH_SEPARATOR.
  757. -# The user is always right.
  758. -if test "${PATH_SEPARATOR+set}" != set; then
  759. - echo "#! /bin/sh" >conf$$.sh
  760. - echo "exit 0" >>conf$$.sh
  761. - chmod +x conf$$.sh
  762. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  763. - PATH_SEPARATOR=';'
  764. - else
  765. - PATH_SEPARATOR=:
  766. - fi
  767. - rm -f conf$$.sh
  768. -fi
  769. -ac_prog=ld
  770. -if test "$GCC" = yes; then
  771. - # Check if gcc -print-prog-name=ld gives a path.
  772. - AC_MSG_CHECKING([for ld used by GCC])
  773. - case $host in
  774. - *-*-mingw*)
  775. - # gcc leaves a trailing carriage return which upsets mingw
  776. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  777. - *)
  778. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  779. - esac
  780. - case $ac_prog in
  781. - # Accept absolute paths.
  782. - [[\\/]* | [A-Za-z]:[\\/]*)]
  783. - [re_direlt='/[^/][^/]*/\.\./']
  784. - # Canonicalize the path of ld
  785. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  786. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  787. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  788. - done
  789. - test -z "$LD" && LD="$ac_prog"
  790. - ;;
  791. - "")
  792. - # If it fails, then pretend we aren't using GCC.
  793. - ac_prog=ld
  794. - ;;
  795. - *)
  796. - # If it is relative, then search for the first ld in PATH.
  797. - with_gnu_ld=unknown
  798. - ;;
  799. - esac
  800. -elif test "$with_gnu_ld" = yes; then
  801. - AC_MSG_CHECKING([for GNU ld])
  802. -else
  803. - AC_MSG_CHECKING([for non-GNU ld])
  804. -fi
  805. -AC_CACHE_VAL(acl_cv_path_LD,
  806. -[if test -z "$LD"; then
  807. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  808. - for ac_dir in $PATH; do
  809. - test -z "$ac_dir" && ac_dir=.
  810. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  811. - acl_cv_path_LD="$ac_dir/$ac_prog"
  812. - # Check to see if the program is GNU ld. I'd rather use --version,
  813. - # but apparently some GNU ld's only accept -v.
  814. - # Break only if it was the GNU/non-GNU ld that we prefer.
  815. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  816. - *GNU* | *'with BFD'*)
  817. - test "$with_gnu_ld" != no && break ;;
  818. - *)
  819. - test "$with_gnu_ld" != yes && break ;;
  820. - esac
  821. - fi
  822. - done
  823. - IFS="$ac_save_ifs"
  824. -else
  825. - acl_cv_path_LD="$LD" # Let the user override the test with a path.
  826. -fi])
  827. -LD="$acl_cv_path_LD"
  828. -if test -n "$LD"; then
  829. - AC_MSG_RESULT($LD)
  830. -else
  831. - AC_MSG_RESULT(no)
  832. -fi
  833. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  834. -AC_LIB_PROG_LD_GNU
  835. -])
  836. -
  837. -# Like AC_CONFIG_HEADER, but automatically create stamp file.
  838. -
  839. -AC_DEFUN([AM_CONFIG_HEADER],
  840. -[AC_PREREQ([2.12])
  841. -AC_CONFIG_HEADER([$1])
  842. -dnl When config.status generates a header, we must update the stamp-h file.
  843. -dnl This file resides in the same directory as the config header
  844. -dnl that is generated. We must strip everything past the first ":",
  845. -dnl and everything past the last "/".
  846. -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  847. -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  848. -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  849. -<<am_indx=1
  850. -for am_file in <<$1>>; do
  851. - case " <<$>>CONFIG_HEADERS " in
  852. - *" <<$>>am_file "*<<)>>
  853. - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  854. - ;;
  855. - esac
  856. - am_indx=`expr "<<$>>am_indx" + 1`
  857. -done<<>>dnl>>)
  858. -changequote([,]))])
  859. -
  860. -# Do all the work for Automake. This macro actually does too much --
  861. -# some checks are only needed if your package does certain things.
  862. -# But this isn't really a big deal.
  863. -
  864. -# serial 1
  865. -
  866. -dnl Usage:
  867. -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  868. -
  869. -AC_DEFUN([AM_INIT_AUTOMAKE],
  870. -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  871. -AC_REQUIRE([AC_PROG_INSTALL])
  872. -PACKAGE=[$1]
  873. -AC_SUBST(PACKAGE)
  874. -VERSION=[$2]
  875. -AC_SUBST(VERSION)
  876. -dnl test to see if srcdir already configured
  877. -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  878. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  879. -fi
  880. -ifelse([$3],,
  881. -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  882. -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  883. -AC_REQUIRE([AM_SANITY_CHECK])
  884. -AC_REQUIRE([AC_ARG_PROGRAM])
  885. -dnl FIXME This is truly gross.
  886. -missing_dir=`cd $ac_aux_dir && pwd`
  887. -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
  888. -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  889. -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
  890. -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  891. -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  892. -AC_REQUIRE([AC_PROG_MAKE_SET])])
  893. -
  894. -# Copyright 2002 Free Software Foundation, Inc.
  895. -
  896. -# This program is free software; you can redistribute it and/or modify
  897. -# it under the terms of the GNU General Public License as published by
  898. -# the Free Software Foundation; either version 2, or (at your option)
  899. -# any later version.
  900. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  901. +# 2005 Free Software Foundation, Inc.
  902. +# This file is free software; the Free Software Foundation
  903. +# gives unlimited permission to copy and/or distribute it,
  904. +# with or without modifications, as long as this notice is preserved.
  905. # This program is distributed in the hope that it will be useful,
  906. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  907. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  908. -# GNU General Public License for more details.
  909. -
  910. -# You should have received a copy of the GNU General Public License
  911. -# along with this program; if not, write to the Free Software
  912. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  913. -
  914. -# AM_AUTOMAKE_VERSION(VERSION)
  915. -# ----------------------------
  916. -# Automake X.Y traces this macro to ensure aclocal.m4 has been
  917. -# generated from the m4 files accompanying Automake X.Y.
  918. -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
  919. -
  920. -# AM_SET_CURRENT_AUTOMAKE_VERSION
  921. -# -------------------------------
  922. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  923. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  924. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  925. - [AM_AUTOMAKE_VERSION([1.4-p6])])
  926. -
  927. -#
  928. -# Check to make sure that the build environment is sane.
  929. -#
  930. -
  931. -AC_DEFUN([AM_SANITY_CHECK],
  932. -[AC_MSG_CHECKING([whether build environment is sane])
  933. -# Just in case
  934. -sleep 1
  935. -echo timestamp > conftestfile
  936. -# Do `set' in a subshell so we don't clobber the current shell's
  937. -# arguments. Must try -L first in case configure is actually a
  938. -# symlink; some systems play weird games with the mod time of symlinks
  939. -# (eg FreeBSD returns the mod time of the symlink's containing
  940. -# directory).
  941. -if (
  942. - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  943. - if test "[$]*" = "X"; then
  944. - # -L didn't work.
  945. - set X `ls -t $srcdir/configure conftestfile`
  946. - fi
  947. - if test "[$]*" != "X $srcdir/configure conftestfile" \
  948. - && test "[$]*" != "X conftestfile $srcdir/configure"; then
  949. -
  950. - # If neither matched, then we have a broken ls. This can happen
  951. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  952. - # broken ls alias from the environment. This has actually
  953. - # happened. Such a system could not be considered "sane".
  954. - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  955. -alias in your environment])
  956. - fi
  957. -
  958. - test "[$]2" = conftestfile
  959. - )
  960. -then
  961. - # Ok.
  962. - :
  963. -else
  964. - AC_MSG_ERROR([newly created file is older than distributed files!
  965. -Check your system clock])
  966. -fi
  967. -rm -f conftest*
  968. -AC_MSG_RESULT(yes)])
  969. -
  970. -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  971. -dnl The program must properly implement --version.
  972. -AC_DEFUN([AM_MISSING_PROG],
  973. -[AC_MSG_CHECKING(for working $2)
  974. -# Run test in a subshell; some versions of sh will print an error if
  975. -# an executable is not found, even if stderr is redirected.
  976. -# Redirect stdin to placate older versions of autoconf. Sigh.
  977. -if ($2 --version) < /dev/null > /dev/null 2>&1; then
  978. - $1=$2
  979. - AC_MSG_RESULT(found)
  980. -else
  981. - $1="$3/missing $2"
  982. - AC_MSG_RESULT(missing)
  983. -fi
  984. -AC_SUBST($1)])
  985. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  986. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  987. +# PARTICULAR PURPOSE.
  988. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  989. -dnl AM_PROG_LEX
  990. -dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
  991. -AC_DEFUN([AM_PROG_LEX],
  992. -[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
  993. -AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
  994. -AC_PROG_LEX
  995. -AC_DECL_YYTEXT])
  996. +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
  997. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  998. +libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  999. # serial 47 AC_PROG_LIBTOOL
  1000. # Debian $Rev: 9373 $
  1001. @@ -1096,7 +128,7 @@
  1002. # Sed substitution that helps us do robust quoting. It backslashifies
  1003. # metacharacters that are still active within double-quoted strings.
  1004. -Xsed='sed -e s/^X//'
  1005. +Xsed='sed -e 1s/^X//'
  1006. [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  1007. # Same as above, but do not quote variable references.
  1008. @@ -1116,7 +148,7 @@
  1009. default_ofile=libtool
  1010. can_build_shared=yes
  1011. -# All known linkers require a `.a' archive for static linking (except M$VC,
  1012. +# All known linkers require a `.a' archive for static linking (except MSVC,
  1013. # which needs '.lib').
  1014. libext=a
  1015. ltmain="$ac_aux_dir/ltmain.sh"
  1016. @@ -1136,6 +168,7 @@
  1017. test -z "$AS" && AS=as
  1018. test -z "$CC" && CC=cc
  1019. test -z "$LTCC" && LTCC=$CC
  1020. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  1021. test -z "$DLLTOOL" && DLLTOOL=dlltool
  1022. test -z "$LD" && LD=ld
  1023. test -z "$LN_S" && LN_S="ln -s"
  1024. @@ -1155,15 +188,17 @@
  1025. if test -n "$RANLIB"; then
  1026. case $host_os in
  1027. openbsd*)
  1028. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  1029. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1030. ;;
  1031. *)
  1032. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  1033. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1034. ;;
  1035. esac
  1036. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1037. fi
  1038. +_LT_CC_BASENAME([$compiler])
  1039. +
  1040. # Only perform the check for file, if the check method requires it
  1041. case $deplibs_check_method in
  1042. file_magic*)
  1043. @@ -1204,11 +239,56 @@
  1044. # If no C compiler was specified, use CC.
  1045. LTCC=${LTCC-"$CC"}
  1046. +# If no C compiler flags were specified, use CFLAGS.
  1047. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1048. +
  1049. # Allow CC to be a program name with arguments.
  1050. compiler=$CC
  1051. ])# _LT_AC_SYS_COMPILER
  1052. +# _LT_CC_BASENAME(CC)
  1053. +# -------------------
  1054. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  1055. +AC_DEFUN([_LT_CC_BASENAME],
  1056. +[for cc_temp in $1""; do
  1057. + case $cc_temp in
  1058. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  1059. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  1060. + \-*) ;;
  1061. + *) break;;
  1062. + esac
  1063. +done
  1064. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  1065. +])
  1066. +
  1067. +
  1068. +# _LT_COMPILER_BOILERPLATE
  1069. +# ------------------------
  1070. +# Check for compiler boilerplate output or warnings with
  1071. +# the simple compiler test code.
  1072. +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  1073. +[ac_outfile=conftest.$ac_objext
  1074. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  1075. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1076. +_lt_compiler_boilerplate=`cat conftest.err`
  1077. +$rm conftest*
  1078. +])# _LT_COMPILER_BOILERPLATE
  1079. +
  1080. +
  1081. +# _LT_LINKER_BOILERPLATE
  1082. +# ----------------------
  1083. +# Check for linker boilerplate output or warnings with
  1084. +# the simple link test code.
  1085. +AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1086. +[ac_outfile=conftest.$ac_objext
  1087. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  1088. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1089. +_lt_linker_boilerplate=`cat conftest.err`
  1090. +$rm conftest*
  1091. +])# _LT_LINKER_BOILERPLATE
  1092. +
  1093. +
  1094. # _LT_AC_SYS_LIBPATH_AIX
  1095. # ----------------------
  1096. # Links a minimal program and checks the executable
  1097. @@ -1281,15 +361,15 @@
  1098. # The HP-UX ksh and POSIX shell print the target directory to stdout
  1099. # if CDPATH is set.
  1100. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  1101. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1102. if test -z "$ECHO"; then
  1103. if test "X${echo_test_string+set}" != Xset; then
  1104. # find a string as large as possible, as long as the shell can cope with it
  1105. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1106. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1107. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  1108. - echo_test_string="`eval $cmd`" &&
  1109. + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1110. + echo_test_string=`eval $cmd` &&
  1111. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1112. then
  1113. break
  1114. @@ -1458,7 +538,7 @@
  1115. # Find out which ABI we are using.
  1116. echo 'int i;' > conftest.$ac_ext
  1117. if AC_TRY_EVAL(ac_compile); then
  1118. - case "`/usr/bin/file conftest.o`" in
  1119. + case `/usr/bin/file conftest.o` in
  1120. *32-bit*)
  1121. case $host in
  1122. x86_64-*linux*)
  1123. @@ -1509,6 +589,22 @@
  1124. CFLAGS="$SAVE_CFLAGS"
  1125. fi
  1126. ;;
  1127. +sparc*-*solaris*)
  1128. + # Find out which ABI we are using.
  1129. + echo 'int i;' > conftest.$ac_ext
  1130. + if AC_TRY_EVAL(ac_compile); then
  1131. + case `/usr/bin/file conftest.o` in
  1132. + *64-bit*)
  1133. + case $lt_cv_prog_gnu_ld in
  1134. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1135. + *) LD="${LD-ld} -64" ;;
  1136. + esac
  1137. + ;;
  1138. + esac
  1139. + fi
  1140. + rm -rf conftest*
  1141. + ;;
  1142. +
  1143. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1144. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1145. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1146. @@ -1540,7 +636,7 @@
  1147. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1148. # The option is referenced via a variable to avoid confusing sed.
  1149. lt_compile=`echo "$ac_compile" | $SED \
  1150. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1151. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1152. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1153. -e 's:$: $lt_compiler_flag:'`
  1154. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1155. @@ -1550,8 +646,10 @@
  1156. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1157. if (exit $ac_status) && test -s "$ac_outfile"; then
  1158. # The compiler can only warn and ignore the option if not recognized
  1159. - # So say no if there are warnings
  1160. - if test ! -s conftest.err; then
  1161. + # So say no if there are warnings other than the usual output.
  1162. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1163. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1164. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1165. $2=yes
  1166. fi
  1167. fi
  1168. @@ -1577,11 +675,16 @@
  1169. LDFLAGS="$LDFLAGS $3"
  1170. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1171. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1172. - # The compiler can only warn and ignore the option if not recognized
  1173. + # The linker can only warn and ignore the option if not recognized
  1174. # So say no if there are warnings
  1175. if test -s conftest.err; then
  1176. # Append any errors to the config.log.
  1177. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1178. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1179. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1180. + if diff conftest.exp conftest.er2 >/dev/null; then
  1181. + $2=yes
  1182. + fi
  1183. else
  1184. $2=yes
  1185. fi
  1186. @@ -1640,17 +743,61 @@
  1187. lt_cv_sys_max_cmd_len=8192;
  1188. ;;
  1189. - *)
  1190. - # If test is not a shell built-in, we'll probably end up computing a
  1191. - # maximum length that is only half of the actual maximum length, but
  1192. - # we can't tell.
  1193. - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1194. - = "XX$teststring") >/dev/null 2>&1 &&
  1195. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1196. - lt_cv_sys_max_cmd_len=$new_result &&
  1197. - test $i != 17 # 1/2 MB should be enough
  1198. - do
  1199. - i=`expr $i + 1`
  1200. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1201. + # This has been around since 386BSD, at least. Likely further.
  1202. + if test -x /sbin/sysctl; then
  1203. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1204. + elif test -x /usr/sbin/sysctl; then
  1205. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1206. + else
  1207. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1208. + fi
  1209. + # And add a safety zone
  1210. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1211. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1212. + ;;
  1213. +
  1214. + interix*)
  1215. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1216. + lt_cv_sys_max_cmd_len=196608
  1217. + ;;
  1218. +
  1219. + osf*)
  1220. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1221. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1222. + # nice to cause kernel panics so lets avoid the loop below.
  1223. + # First set a reasonable default.
  1224. + lt_cv_sys_max_cmd_len=16384
  1225. + #
  1226. + if test -x /sbin/sysconfig; then
  1227. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1228. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1229. + esac
  1230. + fi
  1231. + ;;
  1232. + sco3.2v5*)
  1233. + lt_cv_sys_max_cmd_len=102400
  1234. + ;;
  1235. + sysv5* | sco5v6* | sysv4.2uw2*)
  1236. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1237. + if test -n "$kargmax"; then
  1238. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1239. + else
  1240. + lt_cv_sys_max_cmd_len=32768
  1241. + fi
  1242. + ;;
  1243. + *)
  1244. + # If test is not a shell built-in, we'll probably end up computing a
  1245. + # maximum length that is only half of the actual maximum length, but
  1246. + # we can't tell.
  1247. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1248. + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1249. + = "XX$teststring") >/dev/null 2>&1 &&
  1250. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1251. + lt_cv_sys_max_cmd_len=$new_result &&
  1252. + test $i != 17 # 1/2 MB should be enough
  1253. + do
  1254. + i=`expr $i + 1`
  1255. teststring=$teststring$teststring
  1256. done
  1257. teststring=
  1258. @@ -1670,7 +817,7 @@
  1259. # _LT_AC_CHECK_DLFCN
  1260. -# --------------------
  1261. +# ------------------
  1262. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1263. [AC_CHECK_HEADERS(dlfcn.h)dnl
  1264. ])# _LT_AC_CHECK_DLFCN
  1265. @@ -1678,7 +825,7 @@
  1266. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1267. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1268. -# ------------------------------------------------------------------
  1269. +# ---------------------------------------------------------------------
  1270. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1271. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1272. if test "$cross_compiling" = yes; then :
  1273. @@ -1744,17 +891,19 @@
  1274. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1275. /* dlclose (self); */
  1276. }
  1277. + else
  1278. + puts (dlerror ());
  1279. exit (status);
  1280. }]
  1281. EOF
  1282. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1283. - (./conftest; exit; ) 2>/dev/null
  1284. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1285. lt_status=$?
  1286. case x$lt_status in
  1287. x$lt_dlno_uscore) $1 ;;
  1288. x$lt_dlneed_uscore) $2 ;;
  1289. - x$lt_unknown|x*) $3 ;;
  1290. + x$lt_dlunknown|x*) $3 ;;
  1291. esac
  1292. else :
  1293. # compilation failed
  1294. @@ -1766,7 +915,7 @@
  1295. # AC_LIBTOOL_DLOPEN_SELF
  1296. -# -------------------
  1297. +# ----------------------
  1298. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1299. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1300. if test "x$enable_dlopen" != xyes; then
  1301. @@ -1837,7 +986,7 @@
  1302. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1303. save_LDFLAGS="$LDFLAGS"
  1304. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1305. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1306. save_LIBS="$LIBS"
  1307. LIBS="$lt_cv_dlopen_libs $LIBS"
  1308. @@ -1850,7 +999,7 @@
  1309. ])
  1310. if test "x$lt_cv_dlopen_self" = xyes; then
  1311. - LDFLAGS="$LDFLAGS $link_static_flag"
  1312. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1313. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1314. lt_cv_dlopen_self_static, [dnl
  1315. _LT_AC_TRY_DLOPEN_SELF(
  1316. @@ -1898,7 +1047,7 @@
  1317. # Note that $ac_compile itself does not contain backslashes and begins
  1318. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1319. lt_compile=`echo "$ac_compile" | $SED \
  1320. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1321. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1322. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1323. -e 's:$: $lt_compiler_flag:'`
  1324. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1325. @@ -1910,11 +1059,13 @@
  1326. then
  1327. # The compiler can only warn and ignore the option if not recognized
  1328. # So say no if there are warnings
  1329. - if test ! -s out/conftest.err; then
  1330. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1331. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1332. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1333. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1334. fi
  1335. fi
  1336. - chmod u+w .
  1337. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1338. $rm conftest*
  1339. # SGI C++ compiler will create directory out/ii_files/ for
  1340. # template instantiation
  1341. @@ -1978,8 +1129,8 @@
  1342. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1343. _LT_AC_TAGVAR(hardcode_action, $1)=
  1344. if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1345. - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  1346. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  1347. + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1348. + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1349. # We can hardcode non-existant directories.
  1350. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1351. @@ -2146,7 +1297,7 @@
  1352. shlibpath_var=LIBRARY_PATH
  1353. ;;
  1354. -bsdi4*)
  1355. +bsdi[[45]]*)
  1356. version_type=linux
  1357. need_version=no
  1358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1359. @@ -2174,7 +1325,8 @@
  1360. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1361. dldir=$destdir/`dirname \$dlpath`~
  1362. test -d \$dldir || mkdir -p \$dldir~
  1363. - $install_prog $dir/$dlname \$dldir/$dlname'
  1364. + $install_prog $dir/$dlname \$dldir/$dlname~
  1365. + chmod a+x \$dldir/$dlname'
  1366. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1367. dlpath=$dir/\$dldll~
  1368. $rm \$dlpath'
  1369. @@ -2204,7 +1356,7 @@
  1370. ;;
  1371. pw32*)
  1372. # pw32 DLLs use 'pw' prefix rather than 'lib'
  1373. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  1374. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1375. ;;
  1376. esac
  1377. ;;
  1378. @@ -2227,7 +1379,7 @@
  1379. soname_spec='${libname}${release}${major}$shared_ext'
  1380. shlibpath_overrides_runpath=yes
  1381. shlibpath_var=DYLD_LIBRARY_PATH
  1382. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  1383. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1384. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  1385. if test "$GCC" = yes; then
  1386. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  1387. @@ -2250,20 +1402,17 @@
  1388. dynamic_linker=no
  1389. ;;
  1390. -kfreebsd*-gnu)
  1391. - version_type=linux
  1392. - need_lib_prefix=no
  1393. - need_version=no
  1394. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1395. - soname_spec='${libname}${release}${shared_ext}$major'
  1396. - shlibpath_var=LD_LIBRARY_PATH
  1397. - shlibpath_overrides_runpath=no
  1398. - hardcode_into_libs=yes
  1399. - dynamic_linker='GNU ld.so'
  1400. - ;;
  1401. -
  1402. -freebsd*)
  1403. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  1404. +freebsd* | dragonfly*)
  1405. + # DragonFly does not have aout. When/if they implement a new
  1406. + # versioning mechanism, adjust this.
  1407. + if test -x /usr/bin/objformat; then
  1408. + objformat=`/usr/bin/objformat`
  1409. + else
  1410. + case $host_os in
  1411. + freebsd[[123]]*) objformat=aout ;;
  1412. + *) objformat=elf ;;
  1413. + esac
  1414. + fi
  1415. version_type=freebsd-$objformat
  1416. case $version_type in
  1417. freebsd-elf*)
  1418. @@ -2281,14 +1430,19 @@
  1419. freebsd2*)
  1420. shlibpath_overrides_runpath=yes
  1421. ;;
  1422. - freebsd3.[01]* | freebsdelf3.[01]*)
  1423. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1424. shlibpath_overrides_runpath=yes
  1425. hardcode_into_libs=yes
  1426. ;;
  1427. - *) # from 3.2 on
  1428. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  1429. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  1430. shlibpath_overrides_runpath=no
  1431. hardcode_into_libs=yes
  1432. ;;
  1433. + freebsd*) # from 4.6 on
  1434. + shlibpath_overrides_runpath=yes
  1435. + hardcode_into_libs=yes
  1436. + ;;
  1437. esac
  1438. ;;
  1439. @@ -2308,7 +1462,7 @@
  1440. version_type=sunos
  1441. need_lib_prefix=no
  1442. need_version=no
  1443. - case "$host_cpu" in
  1444. + case $host_cpu in
  1445. ia64*)
  1446. shrext_cmds='.so'
  1447. hardcode_into_libs=yes
  1448. @@ -2348,6 +1502,18 @@
  1449. postinstall_cmds='chmod 555 $lib'
  1450. ;;
  1451. +interix3*)
  1452. + version_type=linux
  1453. + need_lib_prefix=no
  1454. + need_version=no
  1455. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1456. + soname_spec='${libname}${release}${shared_ext}$major'
  1457. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1458. + shlibpath_var=LD_LIBRARY_PATH
  1459. + shlibpath_overrides_runpath=no
  1460. + hardcode_into_libs=yes
  1461. + ;;
  1462. +
  1463. irix5* | irix6* | nonstopux*)
  1464. case $host_os in
  1465. nonstopux*) version_type=nonstopux ;;
  1466. @@ -2391,7 +1557,7 @@
  1467. ;;
  1468. # This must be Linux ELF.
  1469. -linux*)
  1470. +linux* | k*bsd*-gnu)
  1471. version_type=linux
  1472. need_lib_prefix=no
  1473. need_version=no
  1474. @@ -2407,7 +1573,7 @@
  1475. # Append ld.so.conf contents to the search path
  1476. if test -f /etc/ld.so.conf; then
  1477. - lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
  1478. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  1479. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1480. fi
  1481. @@ -2432,18 +1598,6 @@
  1482. dynamic_linker='NetBSD ld.elf_so'
  1483. ;;
  1484. -knetbsd*-gnu)
  1485. - version_type=linux
  1486. - need_lib_prefix=no
  1487. - need_version=no
  1488. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1489. - soname_spec='${libname}${release}${shared_ext}$major'
  1490. - shlibpath_var=LD_LIBRARY_PATH
  1491. - shlibpath_overrides_runpath=no
  1492. - hardcode_into_libs=yes
  1493. - dynamic_linker='GNU ld.so'
  1494. - ;;
  1495. -
  1496. netbsd*)
  1497. version_type=sunos
  1498. need_lib_prefix=no
  1499. @@ -2481,8 +1635,13 @@
  1500. openbsd*)
  1501. version_type=sunos
  1502. + sys_lib_dlsearch_path_spec="/usr/lib"
  1503. need_lib_prefix=no
  1504. - need_version=yes
  1505. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1506. + case $host_os in
  1507. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1508. + *) need_version=no ;;
  1509. + esac
  1510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1511. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1512. shlibpath_var=LD_LIBRARY_PATH
  1513. @@ -2520,13 +1679,6 @@
  1514. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1515. ;;
  1516. -sco3.2v5*)
  1517. - version_type=osf
  1518. - soname_spec='${libname}${release}${shared_ext}$major'
  1519. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1520. - shlibpath_var=LD_LIBRARY_PATH
  1521. - ;;
  1522. -
  1523. solaris*)
  1524. version_type=linux
  1525. need_lib_prefix=no
  1526. @@ -2552,7 +1704,7 @@
  1527. need_version=yes
  1528. ;;
  1529. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1530. +sysv4 | sysv4.3*)
  1531. version_type=linux
  1532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1533. soname_spec='${libname}${release}${shared_ext}$major'
  1534. @@ -2585,6 +1737,29 @@
  1535. fi
  1536. ;;
  1537. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1538. + version_type=freebsd-elf
  1539. + need_lib_prefix=no
  1540. + need_version=no
  1541. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1542. + soname_spec='${libname}${release}${shared_ext}$major'
  1543. + shlibpath_var=LD_LIBRARY_PATH
  1544. + hardcode_into_libs=yes
  1545. + if test "$with_gnu_ld" = yes; then
  1546. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1547. + shlibpath_overrides_runpath=no
  1548. + else
  1549. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1550. + shlibpath_overrides_runpath=yes
  1551. + case $host_os in
  1552. + sco3.2v5*)
  1553. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1554. + ;;
  1555. + esac
  1556. + fi
  1557. + sys_lib_dlsearch_path_spec='/usr/lib'
  1558. + ;;
  1559. +
  1560. uts4*)
  1561. version_type=linux
  1562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1563. @@ -2598,6 +1773,11 @@
  1564. esac
  1565. AC_MSG_RESULT([$dynamic_linker])
  1566. test "$dynamic_linker" = no && can_build_shared=no
  1567. +
  1568. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1569. +if test "$GCC" = yes; then
  1570. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1571. +fi
  1572. ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1573. @@ -2622,6 +1802,9 @@
  1574. AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1575. fi
  1576. fi
  1577. + if test -z "$LTCFLAGS"; then
  1578. + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  1579. + fi
  1580. # Extract list of available tagged configurations in $ofile.
  1581. # Note that this assumes the entire list is on one line.
  1582. @@ -2648,7 +1831,9 @@
  1583. case $tagname in
  1584. CXX)
  1585. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  1586. + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1587. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1588. + (test "X$CXX" != "Xg++"))) ; then
  1589. AC_LIBTOOL_LANG_CXX_CONFIG
  1590. else
  1591. tagname=""
  1592. @@ -2710,7 +1895,7 @@
  1593. # AC_LIBTOOL_WIN32_DLL
  1594. # --------------------
  1595. -# declare package support for building win32 dll's
  1596. +# declare package support for building win32 DLLs
  1597. AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1598. [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1599. ])# AC_LIBTOOL_WIN32_DLL
  1600. @@ -2748,7 +1933,7 @@
  1601. # AC_DISABLE_SHARED
  1602. # -----------------
  1603. -#- set the default shared flag to --disable-shared
  1604. +# set the default shared flag to --disable-shared
  1605. AC_DEFUN([AC_DISABLE_SHARED],
  1606. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1607. AC_ENABLE_SHARED(no)
  1608. @@ -2884,7 +2069,7 @@
  1609. if test -n "$file_magic_test_file"; then
  1610. case $deplibs_check_method in
  1611. "file_magic "*)
  1612. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  1613. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  1614. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1615. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1616. $EGREP "$file_magic_regex" > /dev/null; then
  1617. @@ -2994,7 +2179,7 @@
  1618. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1619. lt_cv_path_LD="$ac_dir/$ac_prog"
  1620. # Check to see if the program is GNU ld. I'd rather use --version,
  1621. - # but apparently some GNU ld's only accept -v.
  1622. + # but apparently some variants of GNU ld only accept -v.
  1623. # Break only if it was the GNU/non-GNU ld that we prefer.
  1624. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  1625. *GNU* | *'with BFD'*)
  1626. @@ -3026,7 +2211,7 @@
  1627. AC_DEFUN([AC_PROG_LD_GNU],
  1628. [AC_REQUIRE([AC_PROG_EGREP])dnl
  1629. AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  1630. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1631. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  1632. case `$LD -v 2>&1 </dev/null` in
  1633. *GNU* | *'with BFD'*)
  1634. lt_cv_prog_gnu_ld=yes
  1635. @@ -3053,6 +2238,15 @@
  1636. *) reload_flag=" $reload_flag" ;;
  1637. esac
  1638. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1639. +case $host_os in
  1640. + darwin*)
  1641. + if test "$GCC" = yes; then
  1642. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  1643. + else
  1644. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1645. + fi
  1646. + ;;
  1647. +esac
  1648. ])# AC_PROG_LD_RELOAD_FLAG
  1649. @@ -3086,7 +2280,7 @@
  1650. lt_cv_deplibs_check_method=pass_all
  1651. ;;
  1652. -bsdi4*)
  1653. +bsdi[[45]]*)
  1654. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  1655. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1656. lt_cv_file_magic_test_file=/shlib/libc.so
  1657. @@ -3109,13 +2303,13 @@
  1658. lt_cv_deplibs_check_method=pass_all
  1659. ;;
  1660. -freebsd* | kfreebsd*-gnu)
  1661. +freebsd* | dragonfly*)
  1662. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1663. case $host_cpu in
  1664. i*86 )
  1665. # Not sure whether the presence of OpenBSD here was a mistake.
  1666. # Let's accept both of them until this is cleared up.
  1667. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  1668. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  1669. lt_cv_file_magic_cmd=/usr/bin/file
  1670. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1671. ;;
  1672. @@ -3131,7 +2325,7 @@
  1673. hpux10.20* | hpux11*)
  1674. lt_cv_file_magic_cmd=/usr/bin/file
  1675. - case "$host_cpu" in
  1676. + case $host_cpu in
  1677. ia64*)
  1678. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  1679. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1680. @@ -3147,6 +2341,11 @@
  1681. esac
  1682. ;;
  1683. +interix3*)
  1684. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  1685. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  1686. + ;;
  1687. +
  1688. irix5* | irix6* | nonstopux*)
  1689. case $LD in
  1690. *-32|*"-32 ") libmagic=32-bit;;
  1691. @@ -3158,11 +2357,11 @@
  1692. ;;
  1693. # This must be Linux ELF.
  1694. -linux*)
  1695. +linux* | k*bsd*-gnu)
  1696. lt_cv_deplibs_check_method=pass_all
  1697. ;;
  1698. -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  1699. +netbsd* | netbsdelf*-gnu)
  1700. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1701. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  1702. else
  1703. @@ -3181,12 +2380,10 @@
  1704. ;;
  1705. openbsd*)
  1706. - lt_cv_file_magic_cmd=/usr/bin/file
  1707. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1708. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1709. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  1710. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  1711. else
  1712. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  1713. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  1714. fi
  1715. ;;
  1716. @@ -3194,15 +2391,11 @@
  1717. lt_cv_deplibs_check_method=pass_all
  1718. ;;
  1719. -sco3.2v5*)
  1720. - lt_cv_deplibs_check_method=pass_all
  1721. - ;;
  1722. -
  1723. solaris*)
  1724. lt_cv_deplibs_check_method=pass_all
  1725. ;;
  1726. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1727. +sysv4 | sysv4.3*)
  1728. case $host_vendor in
  1729. motorola)
  1730. 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]]'
  1731. @@ -3223,10 +2416,13 @@
  1732. siemens)
  1733. lt_cv_deplibs_check_method=pass_all
  1734. ;;
  1735. + pc)
  1736. + lt_cv_deplibs_check_method=pass_all
  1737. + ;;
  1738. esac
  1739. ;;
  1740. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  1741. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1742. lt_cv_deplibs_check_method=pass_all
  1743. ;;
  1744. esac
  1745. @@ -3246,36 +2442,43 @@
  1746. # Let the user override the test.
  1747. lt_cv_path_NM="$NM"
  1748. else
  1749. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1750. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1751. - IFS="$lt_save_ifs"
  1752. - test -z "$ac_dir" && ac_dir=.
  1753. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  1754. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  1755. - # Check to see if the nm accepts a BSD-compat flag.
  1756. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1757. - # nm: unknown option "B" ignored
  1758. - # Tru64's nm complains that /dev/null is an invalid object file
  1759. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  1760. - */dev/null* | *'Invalid file or object type'*)
  1761. - lt_cv_path_NM="$tmp_nm -B"
  1762. - break
  1763. - ;;
  1764. - *)
  1765. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  1766. - */dev/null*)
  1767. - lt_cv_path_NM="$tmp_nm -p"
  1768. + lt_nm_to_check="${ac_tool_prefix}nm"
  1769. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  1770. + lt_nm_to_check="$lt_nm_to_check nm"
  1771. + fi
  1772. + for lt_tmp_nm in $lt_nm_to_check; do
  1773. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1774. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  1775. + IFS="$lt_save_ifs"
  1776. + test -z "$ac_dir" && ac_dir=.
  1777. + tmp_nm="$ac_dir/$lt_tmp_nm"
  1778. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  1779. + # Check to see if the nm accepts a BSD-compat flag.
  1780. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1781. + # nm: unknown option "B" ignored
  1782. + # Tru64's nm complains that /dev/null is an invalid object file
  1783. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  1784. + */dev/null* | *'Invalid file or object type'*)
  1785. + lt_cv_path_NM="$tmp_nm -B"
  1786. break
  1787. ;;
  1788. *)
  1789. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1790. - continue # so that we can try to find one that supports BSD flags
  1791. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  1792. + */dev/null*)
  1793. + lt_cv_path_NM="$tmp_nm -p"
  1794. + break
  1795. + ;;
  1796. + *)
  1797. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1798. + continue # so that we can try to find one that supports BSD flags
  1799. + ;;
  1800. + esac
  1801. ;;
  1802. esac
  1803. - esac
  1804. - fi
  1805. + fi
  1806. + done
  1807. + IFS="$lt_save_ifs"
  1808. done
  1809. - IFS="$lt_save_ifs"
  1810. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  1811. fi])
  1812. NM="$lt_cv_path_NM"
  1813. @@ -3307,13 +2510,13 @@
  1814. # -----------------------------------
  1815. # sets LIBLTDL to the link flags for the libltdl convenience library and
  1816. # LTDLINCL to the include flags for the libltdl header and adds
  1817. -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  1818. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  1819. -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  1820. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  1821. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  1822. -# flat and you're not using automake, define top_builddir and
  1823. -# top_srcdir appropriately in the Makefiles.
  1824. +# --enable-ltdl-convenience to the configure arguments. Note that
  1825. +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  1826. +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  1827. +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  1828. +# (note the single quotes!). If your package is not flat and you're not
  1829. +# using automake, define top_builddir and top_srcdir appropriately in
  1830. +# the Makefiles.
  1831. AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  1832. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1833. case $enable_ltdl_convenience in
  1834. @@ -3332,13 +2535,13 @@
  1835. # -----------------------------------
  1836. # sets LIBLTDL to the link flags for the libltdl installable library and
  1837. # LTDLINCL to the include flags for the libltdl header and adds
  1838. -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  1839. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  1840. -# DIRECTORY is not provided and an installed libltdl is not found, it is
  1841. -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  1842. -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  1843. -# quotes!). If your package is not flat and you're not using automake,
  1844. -# define top_builddir and top_srcdir appropriately in the Makefiles.
  1845. +# --enable-ltdl-install to the configure arguments. Note that
  1846. +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  1847. +# and an installed libltdl is not found, it is assumed to be `libltdl'.
  1848. +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  1849. +# '${top_srcdir}/' (note the single quotes!). If your package is not
  1850. +# flat and you're not using automake, define top_builddir and top_srcdir
  1851. +# appropriately in the Makefiles.
  1852. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  1853. AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  1854. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1855. @@ -3376,10 +2579,21 @@
  1856. # ---------------
  1857. AC_DEFUN([_LT_AC_LANG_CXX],
  1858. [AC_REQUIRE([AC_PROG_CXX])
  1859. -AC_REQUIRE([AC_PROG_CXXCPP])
  1860. +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  1861. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  1862. ])# _LT_AC_LANG_CXX
  1863. +# _LT_AC_PROG_CXXCPP
  1864. +# ------------------
  1865. +AC_DEFUN([_LT_AC_PROG_CXXCPP],
  1866. +[
  1867. +AC_REQUIRE([AC_PROG_CXX])
  1868. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1869. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1870. + (test "X$CXX" != "Xg++"))) ; then
  1871. + AC_PROG_CXXCPP
  1872. +fi
  1873. +])# _LT_AC_PROG_CXXCPP
  1874. # AC_LIBTOOL_F77
  1875. # --------------
  1876. @@ -3419,7 +2633,7 @@
  1877. # AC_LIBTOOL_RC
  1878. -# --------------
  1879. +# -------------
  1880. # enable support for Windows resource files
  1881. AC_DEFUN([AC_LIBTOOL_RC],
  1882. [AC_REQUIRE([LT_AC_PROG_RC])
  1883. @@ -3452,36 +2666,9 @@
  1884. _LT_AC_SYS_COMPILER
  1885. -#
  1886. -# Check for any special shared library compilation flags.
  1887. -#
  1888. -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  1889. -if test "$GCC" = no; then
  1890. - case $host_os in
  1891. - sco3.2v5*)
  1892. - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  1893. - ;;
  1894. - esac
  1895. -fi
  1896. -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  1897. - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  1898. - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  1899. - else
  1900. - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  1901. - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  1902. - fi
  1903. -fi
  1904. -
  1905. -
  1906. -#
  1907. -# Check to make sure the static flag actually works.
  1908. -#
  1909. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  1910. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  1911. - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  1912. - [],
  1913. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  1914. -
  1915. +# save warnings/boilerplate of simple test code
  1916. +_LT_COMPILER_BOILERPLATE
  1917. +_LT_LINKER_BOILERPLATE
  1918. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  1919. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  1920. @@ -3491,9 +2678,9 @@
  1921. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1922. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1923. AC_LIBTOOL_SYS_LIB_STRIP
  1924. -AC_LIBTOOL_DLOPEN_SELF($1)
  1925. +AC_LIBTOOL_DLOPEN_SELF
  1926. -# Report which librarie types wil actually be built
  1927. +# Report which library types will actually be built
  1928. AC_MSG_CHECKING([if libtool supports shared libraries])
  1929. AC_MSG_RESULT([$can_build_shared])
  1930. @@ -3502,7 +2689,7 @@
  1931. # On AIX, shared libraries and static libraries use the same namespace, and
  1932. # are all built from PIC.
  1933. -case "$host_os" in
  1934. +case $host_os in
  1935. aix3*)
  1936. test "$enable_shared" = yes && enable_static=no
  1937. if test -n "$RANLIB"; then
  1938. @@ -3515,43 +2702,6 @@
  1939. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1940. test "$enable_shared" = yes && enable_static=no
  1941. fi
  1942. - ;;
  1943. - darwin* | rhapsody*)
  1944. - if test "$GCC" = yes; then
  1945. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1946. - case "$host_os" in
  1947. - rhapsody* | darwin1.[[012]])
  1948. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  1949. - ;;
  1950. - *) # Darwin 1.3 on
  1951. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1952. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1953. - else
  1954. - case ${MACOSX_DEPLOYMENT_TARGET} in
  1955. - 10.[[012]])
  1956. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1957. - ;;
  1958. - 10.*)
  1959. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  1960. - ;;
  1961. - esac
  1962. - fi
  1963. - ;;
  1964. - esac
  1965. - output_verbose_link_cmd='echo'
  1966. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  1967. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1968. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1969. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1970. - _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}'
  1971. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1972. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1973. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1974. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  1975. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1976. - else
  1977. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1978. - fi
  1979. ;;
  1980. esac
  1981. AC_MSG_RESULT([$enable_shared])
  1982. @@ -3577,7 +2727,7 @@
  1983. AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  1984. [AC_LANG_PUSH(C++)
  1985. AC_REQUIRE([AC_PROG_CXX])
  1986. -AC_REQUIRE([AC_PROG_CXXCPP])
  1987. +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  1988. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1989. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  1990. @@ -3589,6 +2739,7 @@
  1991. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1992. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1993. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  1994. +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1995. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  1996. _LT_AC_TAGVAR(module_cmds, $1)=
  1997. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  1998. @@ -3606,7 +2757,7 @@
  1999. _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2000. # Source file extension for C++ test sources.
  2001. -ac_ext=cc
  2002. +ac_ext=cpp
  2003. # Object file extension for compiled C++ test sources.
  2004. objext=o
  2005. @@ -3616,11 +2767,15 @@
  2006. lt_simple_compile_test_code="int some_variable = 0;\n"
  2007. # Code to be used in simple link tests
  2008. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  2009. +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  2010. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2011. _LT_AC_SYS_COMPILER
  2012. +# save warnings/boilerplate of simple test code
  2013. +_LT_COMPILER_BOILERPLATE
  2014. +_LT_LINKER_BOILERPLATE
  2015. +
  2016. # Allow CC to be a program name with arguments.
  2017. lt_save_CC=$CC
  2018. lt_save_LD=$LD
  2019. @@ -3631,18 +2786,18 @@
  2020. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2021. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2022. else
  2023. - unset lt_cv_prog_gnu_ld
  2024. + $as_unset lt_cv_prog_gnu_ld
  2025. fi
  2026. if test -n "${lt_cv_path_LDCXX+set}"; then
  2027. lt_cv_path_LD=$lt_cv_path_LDCXX
  2028. else
  2029. - unset lt_cv_path_LD
  2030. + $as_unset lt_cv_path_LD
  2031. fi
  2032. test -z "${LDCXX+set}" || LD=$LDCXX
  2033. CC=${CXX-"c++"}
  2034. compiler=$CC
  2035. _LT_AC_TAGVAR(compiler, $1)=$CC
  2036. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  2037. +_LT_CC_BASENAME([$compiler])
  2038. # We don't want -fno-exception wen compiling C++ code, so set the
  2039. # no_builtin_flag separately
  2040. @@ -3731,6 +2886,7 @@
  2041. ;;
  2042. esac
  2043. done
  2044. + ;;
  2045. esac
  2046. exp_sym_flag='-bexport'
  2047. @@ -3749,7 +2905,7 @@
  2048. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2049. if test "$GXX" = yes; then
  2050. - case $host_os in aix4.[012]|aix4.[012].*)
  2051. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  2052. # We only want to do this on AIX 4.2 and lower, the check
  2053. # below for broken collect2 doesn't work under 4.3+
  2054. collect2name=`${CC} -print-prog-name=collect2`
  2055. @@ -3768,8 +2924,12 @@
  2056. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2057. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2058. fi
  2059. + ;;
  2060. esac
  2061. shared_flag='-shared'
  2062. + if test "$aix_use_runtimelinking" = yes; then
  2063. + shared_flag="$shared_flag "'${wl}-G'
  2064. + fi
  2065. else
  2066. # not using gcc
  2067. if test "$host_cpu" = ia64; then
  2068. @@ -3796,12 +2956,12 @@
  2069. _LT_AC_SYS_LIBPATH_AIX
  2070. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2071. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  2072. + _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"
  2073. else
  2074. if test "$host_cpu" = ia64; then
  2075. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  2076. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  2077. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  2078. + _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"
  2079. else
  2080. # Determine the default libpath from the value encoded in an empty executable.
  2081. _LT_AC_SYS_LIBPATH_AIX
  2082. @@ -3810,16 +2970,26 @@
  2083. # -berok will link without error, but may produce a broken library.
  2084. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  2085. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  2086. - # -bexpall does not export symbols beginning with underscore (_)
  2087. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2088. # Exported symbols can be pulled into shared objects from archives
  2089. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  2090. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  2091. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  2092. - # This is similar to how AIX traditionally builds it's shared libraries.
  2093. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  2094. + # This is similar to how AIX traditionally builds its shared libraries.
  2095. + _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'
  2096. fi
  2097. fi
  2098. ;;
  2099. +
  2100. + beos*)
  2101. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  2102. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2103. + # Joseph Beckenbach <[email protected]> says some releases of gcc
  2104. + # support --undefined. This deserves some investigation. FIXME
  2105. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2106. + else
  2107. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2108. + fi
  2109. + ;;
  2110. +
  2111. chorus*)
  2112. case $cc_basename in
  2113. *)
  2114. @@ -3838,7 +3008,7 @@
  2115. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  2116. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  2117. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  2118. + _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'
  2119. # If the export-symbols file already is a .def file (1st line
  2120. # is EXPORTS), use it as is; otherwise, prepend...
  2121. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  2122. @@ -3847,70 +3017,81 @@
  2123. echo EXPORTS > $output_objdir/$soname.def;
  2124. cat $export_symbols >> $output_objdir/$soname.def;
  2125. fi~
  2126. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  2127. + $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'
  2128. else
  2129. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2130. fi
  2131. ;;
  2132. + darwin* | rhapsody*)
  2133. + case $host_os in
  2134. + rhapsody* | darwin1.[[012]])
  2135. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  2136. + ;;
  2137. + *) # Darwin 1.3 on
  2138. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  2139. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  2140. + else
  2141. + case ${MACOSX_DEPLOYMENT_TARGET} in
  2142. + 10.[[012]])
  2143. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  2144. + ;;
  2145. + 10.*)
  2146. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  2147. + ;;
  2148. + esac
  2149. + fi
  2150. + ;;
  2151. + esac
  2152. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2153. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2154. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  2155. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2156. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  2157. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2158. - darwin* | rhapsody*)
  2159. - if test "$GXX" = yes; then
  2160. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2161. - case "$host_os" in
  2162. - rhapsody* | darwin1.[[012]])
  2163. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  2164. - ;;
  2165. - *) # Darwin 1.3 on
  2166. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  2167. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  2168. + if test "$GXX" = yes ; then
  2169. + lt_int_apple_cc_single_mod=no
  2170. + output_verbose_link_cmd='echo'
  2171. + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  2172. + lt_int_apple_cc_single_mod=yes
  2173. + fi
  2174. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2175. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  2176. else
  2177. - case ${MACOSX_DEPLOYMENT_TARGET} in
  2178. - 10.[[012]])
  2179. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  2180. - ;;
  2181. - 10.*)
  2182. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  2183. - ;;
  2184. - esac
  2185. + _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'
  2186. + fi
  2187. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2188. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  2189. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2190. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2191. + else
  2192. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2193. + fi
  2194. + _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}'
  2195. + else
  2196. + case $cc_basename in
  2197. + xlc*)
  2198. + output_verbose_link_cmd='echo'
  2199. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  2200. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2201. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  2202. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2203. + _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}'
  2204. + ;;
  2205. + *)
  2206. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2207. + ;;
  2208. + esac
  2209. fi
  2210. - ;;
  2211. - esac
  2212. - lt_int_apple_cc_single_mod=no
  2213. - output_verbose_link_cmd='echo'
  2214. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  2215. - lt_int_apple_cc_single_mod=yes
  2216. - fi
  2217. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2218. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  2219. - else
  2220. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
  2221. - fi
  2222. - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2223. -
  2224. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  2225. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2226. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2227. - else
  2228. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2229. - fi
  2230. - _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}'
  2231. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2232. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  2233. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2234. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  2235. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2236. - else
  2237. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2238. - fi
  2239. - ;;
  2240. + ;;
  2241. dgux*)
  2242. case $cc_basename in
  2243. - ec++)
  2244. + ec++*)
  2245. # FIXME: insert proper C++ library support
  2246. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2247. ;;
  2248. - ghcx)
  2249. + ghcx*)
  2250. # Green Hills C++ Compiler
  2251. # FIXME: insert proper C++ library support
  2252. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2253. @@ -3921,14 +3102,14 @@
  2254. ;;
  2255. esac
  2256. ;;
  2257. - freebsd[12]*)
  2258. + freebsd[[12]]*)
  2259. # C++ shared libraries reported to be fairly broken before switch to ELF
  2260. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2261. ;;
  2262. freebsd-elf*)
  2263. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2264. ;;
  2265. - freebsd* | kfreebsd*-gnu)
  2266. + freebsd* | dragonfly*)
  2267. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  2268. # conventions
  2269. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2270. @@ -3945,11 +3126,11 @@
  2271. # location of the library.
  2272. case $cc_basename in
  2273. - CC)
  2274. + CC*)
  2275. # FIXME: insert proper C++ library support
  2276. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2277. ;;
  2278. - aCC)
  2279. + aCC*)
  2280. _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'
  2281. # Commands to make compiler produce verbose output that lists
  2282. # what "hidden" libraries, object files and flags are used when
  2283. @@ -3959,7 +3140,7 @@
  2284. # explicitly linking system object files so we need to strip them
  2285. # from the output so that they don't get included in the library
  2286. # dependencies.
  2287. - 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'
  2288. + 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'
  2289. ;;
  2290. *)
  2291. if test "$GXX" = yes; then
  2292. @@ -3973,33 +3154,22 @@
  2293. ;;
  2294. hpux10*|hpux11*)
  2295. if test $with_gnu_ld = no; then
  2296. - case "$host_cpu" in
  2297. - hppa*64*)
  2298. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2299. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2300. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2301. +
  2302. + case $host_cpu in
  2303. + hppa*64*|ia64*)
  2304. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  2305. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2306. - ;;
  2307. - ia64*)
  2308. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2309. ;;
  2310. *)
  2311. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2312. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2313. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2314. ;;
  2315. esac
  2316. fi
  2317. - case "$host_cpu" in
  2318. - hppa*64*)
  2319. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2320. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2321. - ;;
  2322. - ia64*)
  2323. + case $host_cpu in
  2324. + hppa*64*|ia64*)
  2325. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2326. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2327. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2328. - # but as the default
  2329. - # location of the library.
  2330. ;;
  2331. *)
  2332. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2333. @@ -4010,14 +3180,17 @@
  2334. esac
  2335. case $cc_basename in
  2336. - CC)
  2337. + CC*)
  2338. # FIXME: insert proper C++ library support
  2339. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2340. ;;
  2341. - aCC)
  2342. - case "$host_cpu" in
  2343. - hppa*64*|ia64*)
  2344. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  2345. + aCC*)
  2346. + case $host_cpu in
  2347. + hppa*64*)
  2348. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2349. + ;;
  2350. + ia64*)
  2351. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2352. ;;
  2353. *)
  2354. _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'
  2355. @@ -4036,9 +3209,12 @@
  2356. *)
  2357. if test "$GXX" = yes; then
  2358. if test $with_gnu_ld = no; then
  2359. - case "$host_cpu" in
  2360. - ia64*|hppa*64*)
  2361. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  2362. + case $host_cpu in
  2363. + hppa*64*)
  2364. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2365. + ;;
  2366. + ia64*)
  2367. + _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'
  2368. ;;
  2369. *)
  2370. _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'
  2371. @@ -4052,11 +3228,25 @@
  2372. ;;
  2373. esac
  2374. ;;
  2375. + interix3*)
  2376. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2377. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2378. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2379. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2380. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  2381. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  2382. + # default) and relocated if they conflict, which is a slow very memory
  2383. + # consuming and fragmenting process. To avoid this, we pick a random,
  2384. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  2385. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  2386. + _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'
  2387. + _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'
  2388. + ;;
  2389. irix5* | irix6*)
  2390. case $cc_basename in
  2391. - CC)
  2392. + CC*)
  2393. # SGI C++
  2394. - _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 ${objdir}/so_locations -o $lib'
  2395. + _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'
  2396. # Archives containing C++ object files must be created using
  2397. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  2398. @@ -4067,7 +3257,7 @@
  2399. *)
  2400. if test "$GXX" = yes; then
  2401. if test "$with_gnu_ld" = no; then
  2402. - _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}${objdir}/so_locations -o $lib'
  2403. + _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'
  2404. else
  2405. _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'
  2406. fi
  2407. @@ -4078,9 +3268,9 @@
  2408. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2409. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2410. ;;
  2411. - linux*)
  2412. + linux* | k*bsd*-gnu)
  2413. case $cc_basename in
  2414. - KCC)
  2415. + KCC*)
  2416. # Kuck and Associates, Inc. (KAI) C++ Compiler
  2417. # KCC will only create a shared library if the output file
  2418. @@ -4105,17 +3295,41 @@
  2419. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  2420. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  2421. ;;
  2422. - icpc)
  2423. + icpc*)
  2424. # Intel C++
  2425. with_gnu_ld=yes
  2426. + # version 8.0 and above of icpc choke on multiply defined symbols
  2427. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  2428. + # earlier do not add the objects themselves.
  2429. + case `$CC -V 2>&1` in
  2430. + *"Version 7."*)
  2431. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2432. + _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'
  2433. + ;;
  2434. + *) # Version 8.0 or newer
  2435. + tmp_idyn=
  2436. + case $host_cpu in
  2437. + ia64*) tmp_idyn=' -i_dynamic';;
  2438. + esac
  2439. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2440. + _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'
  2441. + ;;
  2442. + esac
  2443. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2444. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2445. - _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'
  2446. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2447. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2448. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  2449. ;;
  2450. - cxx)
  2451. + pgCC*)
  2452. + # Portland Group C++ compiler
  2453. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  2454. + _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'
  2455. +
  2456. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2457. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2458. + _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'
  2459. + ;;
  2460. + cxx*)
  2461. # Compaq C++
  2462. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2463. _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'
  2464. @@ -4146,7 +3360,7 @@
  2465. ;;
  2466. mvs*)
  2467. case $cc_basename in
  2468. - cxx)
  2469. + cxx*)
  2470. # FIXME: insert proper C++ library support
  2471. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2472. ;;
  2473. @@ -4156,7 +3370,7 @@
  2474. ;;
  2475. esac
  2476. ;;
  2477. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  2478. + netbsd* | netbsdelf*-gnu)
  2479. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2480. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  2481. wlarc=
  2482. @@ -4167,15 +3381,31 @@
  2483. # Workaround some broken pre-1.5 toolchains
  2484. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  2485. ;;
  2486. - osf3*)
  2487. - case $cc_basename in
  2488. - KCC)
  2489. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  2490. -
  2491. - # KCC will only create a shared library if the output file
  2492. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  2493. - # to its proper name (with version) after linking.
  2494. - _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'
  2495. + openbsd2*)
  2496. + # C++ shared libraries are fairly broken
  2497. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2498. + ;;
  2499. + openbsd*)
  2500. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2501. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2502. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2503. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2504. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2505. + _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'
  2506. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2507. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2508. + fi
  2509. + output_verbose_link_cmd='echo'
  2510. + ;;
  2511. + osf3*)
  2512. + case $cc_basename in
  2513. + KCC*)
  2514. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  2515. +
  2516. + # KCC will only create a shared library if the output file
  2517. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  2518. + # to its proper name (with version) after linking.
  2519. + _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'
  2520. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2521. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2522. @@ -4185,14 +3415,14 @@
  2523. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  2524. ;;
  2525. - RCC)
  2526. + RCC*)
  2527. # Rational C++ 2.4.1
  2528. # FIXME: insert proper C++ library support
  2529. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2530. ;;
  2531. - cxx)
  2532. + cxx*)
  2533. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  2534. - _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 ${objdir}/so_locations -o $lib'
  2535. + _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'
  2536. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2537. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2538. @@ -4210,7 +3440,7 @@
  2539. *)
  2540. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  2541. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  2542. - _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}${objdir}/so_locations -o $lib'
  2543. + _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'
  2544. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2545. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2546. @@ -4229,7 +3459,7 @@
  2547. ;;
  2548. osf4* | osf5*)
  2549. case $cc_basename in
  2550. - KCC)
  2551. + KCC*)
  2552. # Kuck and Associates, Inc. (KAI) C++ Compiler
  2553. # KCC will only create a shared library if the output file
  2554. @@ -4244,17 +3474,17 @@
  2555. # the KAI C++ compiler.
  2556. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  2557. ;;
  2558. - RCC)
  2559. + RCC*)
  2560. # Rational C++ 2.4.1
  2561. # FIXME: insert proper C++ library support
  2562. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2563. ;;
  2564. - cxx)
  2565. + cxx*)
  2566. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  2567. - _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 ${objdir}/so_locations -o $lib'
  2568. + _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'
  2569. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  2570. echo "-hidden">> $lib.exp~
  2571. - $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 $objdir/so_locations -o $lib~
  2572. + $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~
  2573. $rm $lib.exp'
  2574. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  2575. @@ -4273,7 +3503,7 @@
  2576. *)
  2577. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  2578. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  2579. - _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}${objdir}/so_locations -o $lib'
  2580. + _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'
  2581. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2582. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2583. @@ -4294,27 +3524,14 @@
  2584. # FIXME: insert proper C++ library support
  2585. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2586. ;;
  2587. - sco*)
  2588. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2589. - case $cc_basename in
  2590. - CC)
  2591. - # FIXME: insert proper C++ library support
  2592. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2593. - ;;
  2594. - *)
  2595. - # FIXME: insert proper C++ library support
  2596. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2597. - ;;
  2598. - esac
  2599. - ;;
  2600. sunos4*)
  2601. case $cc_basename in
  2602. - CC)
  2603. + CC*)
  2604. # Sun C++ 4.x
  2605. # FIXME: insert proper C++ library support
  2606. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2607. ;;
  2608. - lcc)
  2609. + lcc*)
  2610. # Lucid
  2611. # FIXME: insert proper C++ library support
  2612. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2613. @@ -4327,36 +3544,33 @@
  2614. ;;
  2615. solaris*)
  2616. case $cc_basename in
  2617. - CC)
  2618. + CC*)
  2619. # Sun C++ 4.2, 5.x and Centerline C++
  2620. + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  2621. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  2622. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2623. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2624. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  2625. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  2626. + $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'
  2627. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  2628. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2629. case $host_os in
  2630. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  2631. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  2632. *)
  2633. # The C++ compiler is used as linker so we must use $wl
  2634. # flag to pass the commands to the underlying system
  2635. - # linker.
  2636. + # linker. We must also pass each convience library through
  2637. + # to the system linker between allextract/defaultextract.
  2638. + # The C++ compiler will combine linker options so we
  2639. + # cannot just pass the convience library names through
  2640. + # without $wl.
  2641. # Supported since Solaris 2.6 (maybe 2.5.1?)
  2642. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  2643. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  2644. ;;
  2645. esac
  2646. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2647. - # Commands to make compiler produce verbose output that lists
  2648. - # what "hidden" libraries, object files and flags are used when
  2649. - # linking a shared library.
  2650. - #
  2651. - # There doesn't appear to be a way to prevent this compiler from
  2652. - # explicitly linking system object files so we need to strip them
  2653. - # from the output so that they don't get included in the library
  2654. - # dependencies.
  2655. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  2656. + output_verbose_link_cmd='echo'
  2657. # Archives containing C++ object files must be created using
  2658. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  2659. @@ -4364,7 +3578,7 @@
  2660. # in the archive.
  2661. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  2662. ;;
  2663. - gcx)
  2664. + gcx*)
  2665. # Green Hills C++ Compiler
  2666. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  2667. @@ -4402,12 +3616,63 @@
  2668. ;;
  2669. esac
  2670. ;;
  2671. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  2672. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  2673. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  2674. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2675. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2676. + runpath_var='LD_RUN_PATH'
  2677. +
  2678. + case $cc_basename in
  2679. + CC*)
  2680. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  2681. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  2682. + ;;
  2683. + *)
  2684. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  2685. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  2686. + ;;
  2687. + esac
  2688. + ;;
  2689. + sysv5* | sco3.2v5* | sco5v6*)
  2690. + # Note: We can NOT use -z defs as we might desire, because we do not
  2691. + # link with -lc, and that would cause any symbols used from libc to
  2692. + # always be unresolved, which means just about no library would
  2693. + # ever link correctly. If we're not using GNU ld we use -z text
  2694. + # though, which does catch some bad symbols but isn't as heavy-handed
  2695. + # as -z defs.
  2696. + # For security reasons, it is highly recommended that you always
  2697. + # use absolute paths for naming shared libraries, and exclude the
  2698. + # DT_RUNPATH tag from executables and libraries. But doing so
  2699. + # requires that you compile everything twice, which is a pain.
  2700. + # So that behaviour is only enabled if SCOABSPATH is set to a
  2701. + # non-empty value in the environment. Most likely only useful for
  2702. + # creating official distributions of packages.
  2703. + # This is a hack until libtool officially supports absolute path
  2704. + # names for shared libraries.
  2705. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  2706. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  2707. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2708. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2709. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  2710. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  2711. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2712. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  2713. + runpath_var='LD_RUN_PATH'
  2714. +
  2715. + case $cc_basename in
  2716. + CC*)
  2717. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  2718. + _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'
  2719. + ;;
  2720. + *)
  2721. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  2722. + _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'
  2723. + ;;
  2724. + esac
  2725. ;;
  2726. tandem*)
  2727. case $cc_basename in
  2728. - NCC)
  2729. + NCC*)
  2730. # NonStop-UX NCC 3.20
  2731. # FIXME: insert proper C++ library support
  2732. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2733. @@ -4440,8 +3705,6 @@
  2734. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2735. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2736. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2737. -AC_LIBTOOL_SYS_LIB_STRIP
  2738. -AC_LIBTOOL_DLOPEN_SELF($1)
  2739. AC_LIBTOOL_CONFIG($1)
  2740. @@ -4459,7 +3722,7 @@
  2741. ])# AC_LIBTOOL_LANG_CXX_CONFIG
  2742. # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  2743. -# ------------------------
  2744. +# ------------------------------------
  2745. # Figure out "hidden" library dependencies from verbose
  2746. # compiler output when linking a shared library.
  2747. # Parse the compiler output and extract the necessary
  2748. @@ -4513,7 +3776,7 @@
  2749. # The `*' in the case matches for architectures that use `case' in
  2750. # $output_verbose_cmd can trigger glob expansion during the loop
  2751. # eval without this substitution.
  2752. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  2753. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  2754. for p in `eval $output_verbose_link_cmd`; do
  2755. case $p in
  2756. @@ -4589,13 +3852,37 @@
  2757. $rm -f confest.$objext
  2758. +# PORTME: override above test on systems where it is broken
  2759. +ifelse([$1],[CXX],
  2760. +[case $host_os in
  2761. +interix3*)
  2762. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  2763. + # hack all around it, let's just trust "g++" to DTRT.
  2764. + _LT_AC_TAGVAR(predep_objects,$1)=
  2765. + _LT_AC_TAGVAR(postdep_objects,$1)=
  2766. + _LT_AC_TAGVAR(postdeps,$1)=
  2767. + ;;
  2768. +
  2769. +solaris*)
  2770. + case $cc_basename in
  2771. + CC*)
  2772. + # Adding this requires a known-good setup of shared libraries for
  2773. + # Sun compiler versions before 5.6, else PIC objects from an old
  2774. + # archive will be linked into the output, leading to subtle bugs.
  2775. + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  2776. + ;;
  2777. + esac
  2778. + ;;
  2779. +esac
  2780. +])
  2781. +
  2782. case " $_LT_AC_TAGVAR(postdeps, $1) " in
  2783. *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  2784. esac
  2785. ])# AC_LIBTOOL_POSTDEP_PREDEP
  2786. # AC_LIBTOOL_LANG_F77_CONFIG
  2787. -# ------------------------
  2788. +# --------------------------
  2789. # Ensure that the configuration vars for the C compiler are
  2790. # suitably defined. Those variables are subsequently used by
  2791. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2792. @@ -4639,12 +3926,16 @@
  2793. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2794. _LT_AC_SYS_COMPILER
  2795. +# save warnings/boilerplate of simple test code
  2796. +_LT_COMPILER_BOILERPLATE
  2797. +_LT_LINKER_BOILERPLATE
  2798. +
  2799. # Allow CC to be a program name with arguments.
  2800. lt_save_CC="$CC"
  2801. CC=${F77-"f77"}
  2802. compiler=$CC
  2803. _LT_AC_TAGVAR(compiler, $1)=$CC
  2804. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  2805. +_LT_CC_BASENAME([$compiler])
  2806. AC_MSG_CHECKING([if libtool supports shared libraries])
  2807. AC_MSG_RESULT([$can_build_shared])
  2808. @@ -4654,7 +3945,7 @@
  2809. # On AIX, shared libraries and static libraries use the same namespace, and
  2810. # are all built from PIC.
  2811. -case "$host_os" in
  2812. +case $host_os in
  2813. aix3*)
  2814. test "$enable_shared" = yes && enable_static=no
  2815. if test -n "$RANLIB"; then
  2816. @@ -4663,7 +3954,9 @@
  2817. fi
  2818. ;;
  2819. aix4* | aix5*)
  2820. - test "$enable_shared" = yes && enable_static=no
  2821. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2822. + test "$enable_shared" = yes && enable_static=no
  2823. + fi
  2824. ;;
  2825. esac
  2826. AC_MSG_RESULT([$enable_shared])
  2827. @@ -4673,8 +3966,6 @@
  2828. test "$enable_shared" = yes || enable_static=yes
  2829. AC_MSG_RESULT([$enable_static])
  2830. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  2831. -
  2832. _LT_AC_TAGVAR(GCC, $1)="$G77"
  2833. _LT_AC_TAGVAR(LD, $1)="$LD"
  2834. @@ -4684,8 +3975,6 @@
  2835. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2836. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2837. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2838. -AC_LIBTOOL_SYS_LIB_STRIP
  2839. -
  2840. AC_LIBTOOL_CONFIG($1)
  2841. @@ -4714,20 +4003,27 @@
  2842. lt_simple_compile_test_code="class foo {}\n"
  2843. # Code to be used in simple link tests
  2844. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  2845. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  2846. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2847. _LT_AC_SYS_COMPILER
  2848. +# save warnings/boilerplate of simple test code
  2849. +_LT_COMPILER_BOILERPLATE
  2850. +_LT_LINKER_BOILERPLATE
  2851. +
  2852. # Allow CC to be a program name with arguments.
  2853. lt_save_CC="$CC"
  2854. CC=${GCJ-"gcj"}
  2855. compiler=$CC
  2856. _LT_AC_TAGVAR(compiler, $1)=$CC
  2857. +_LT_CC_BASENAME([$compiler])
  2858. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  2859. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2860. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2861. +
  2862. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2863. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2864. AC_LIBTOOL_PROG_CC_C_O($1)
  2865. @@ -4735,8 +4031,6 @@
  2866. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2867. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2868. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2869. -AC_LIBTOOL_SYS_LIB_STRIP
  2870. -AC_LIBTOOL_DLOPEN_SELF($1)
  2871. AC_LIBTOOL_CONFIG($1)
  2872. @@ -4746,7 +4040,7 @@
  2873. # AC_LIBTOOL_LANG_RC_CONFIG
  2874. -# --------------------------
  2875. +# -------------------------
  2876. # Ensure that the configuration vars for the Windows resource compiler are
  2877. # suitably defined. Those variables are subsequently used by
  2878. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2879. @@ -4770,11 +4064,16 @@
  2880. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2881. _LT_AC_SYS_COMPILER
  2882. +# save warnings/boilerplate of simple test code
  2883. +_LT_COMPILER_BOILERPLATE
  2884. +_LT_LINKER_BOILERPLATE
  2885. +
  2886. # Allow CC to be a program name with arguments.
  2887. lt_save_CC="$CC"
  2888. CC=${RC-"windres"}
  2889. compiler=$CC
  2890. _LT_AC_TAGVAR(compiler, $1)=$CC
  2891. +_LT_CC_BASENAME([$compiler])
  2892. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2893. AC_LIBTOOL_CONFIG($1)
  2894. @@ -4804,7 +4103,7 @@
  2895. # Now quote all the things that may contain metacharacters while being
  2896. # careful not to overquote the AC_SUBSTed values. We take copies of the
  2897. # variables and quote the copies for generation of the libtool script.
  2898. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  2899. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  2900. SED SHELL STRIP \
  2901. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  2902. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  2903. @@ -4910,7 +4209,7 @@
  2904. #
  2905. # You should have received a copy of the GNU General Public License
  2906. # along with this program; if not, write to the Free Software
  2907. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  2908. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  2909. #
  2910. # As a special exception to the GNU General Public License, if you
  2911. # distribute this file as part of a program that contains a
  2912. @@ -4921,11 +4220,11 @@
  2913. SED=$lt_SED
  2914. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  2915. -Xsed="$SED -e s/^X//"
  2916. +Xsed="$SED -e 1s/^X//"
  2917. # The HP-UX ksh and POSIX shell print the target directory to stdout
  2918. # if CDPATH is set.
  2919. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  2920. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2921. # The names of the tagged configurations supported by this script.
  2922. available_tags=
  2923. @@ -4956,6 +4255,12 @@
  2924. # The host system.
  2925. host_alias=$host_alias
  2926. host=$host
  2927. +host_os=$host_os
  2928. +
  2929. +# The build system.
  2930. +build_alias=$build_alias
  2931. +build=$build
  2932. +build_os=$build_os
  2933. # An echo program that does not interpret backslashes.
  2934. echo=$lt_echo
  2935. @@ -4967,6 +4272,9 @@
  2936. # A C compiler.
  2937. LTCC=$lt_LTCC
  2938. +# LTCC compiler flags.
  2939. +LTCFLAGS=$lt_LTCFLAGS
  2940. +
  2941. # A language-specific compiler.
  2942. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  2943. @@ -5032,7 +4340,7 @@
  2944. # Does compiler simultaneously support -c and -o options?
  2945. compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  2946. -# Must we lock files when doing compilation ?
  2947. +# Must we lock files when doing compilation?
  2948. need_locks=$lt_need_locks
  2949. # Do we need the lib prefix for modules?
  2950. @@ -5306,9 +4614,6 @@
  2951. # Regexp to match symbols that can be accessed directly from C.
  2952. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  2953. -# Transform the above into a raw symbol and a C symbol.
  2954. -symxfrm='\1 \2\3 \3'
  2955. -
  2956. # Transform an extracted symbol line into a proper C declaration
  2957. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  2958. @@ -5330,15 +4635,31 @@
  2959. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  2960. 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'"
  2961. ;;
  2962. +linux* | k*bsd*-gnu)
  2963. + if test "$host_cpu" = ia64; then
  2964. + symcode='[[ABCDGIRSTW]]'
  2965. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  2966. + 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'"
  2967. + fi
  2968. + ;;
  2969. irix* | nonstopux*)
  2970. symcode='[[BCDEGRST]]'
  2971. ;;
  2972. osf*)
  2973. symcode='[[BCDEGQRST]]'
  2974. ;;
  2975. -solaris* | sysv5*)
  2976. +solaris*)
  2977. symcode='[[BDRT]]'
  2978. ;;
  2979. +sco3.2v5*)
  2980. + symcode='[[DT]]'
  2981. + ;;
  2982. +sysv4.2uw2*)
  2983. + symcode='[[DT]]'
  2984. + ;;
  2985. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  2986. + symcode='[[ABDT]]'
  2987. + ;;
  2988. sysv4)
  2989. symcode='[[DFNSTU]]'
  2990. ;;
  2991. @@ -5361,8 +4682,11 @@
  2992. # Try without a prefix undercore, then with it.
  2993. for ac_symprfx in "" "_"; do
  2994. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  2995. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  2996. +
  2997. # Write the raw and C identifiers.
  2998. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  2999. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3000. # Check to see that the pipe works correctly.
  3001. pipe_works=no
  3002. @@ -5518,6 +4842,10 @@
  3003. # DJGPP does not support shared libraries at all
  3004. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3005. ;;
  3006. + interix3*)
  3007. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3008. + # Instead, we relocate shared libraries at runtime.
  3009. + ;;
  3010. sysv4*MP*)
  3011. if test -d /usr/nec; then
  3012. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3013. @@ -5526,7 +4854,7 @@
  3014. hpux*)
  3015. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3016. # not for PA HP-UX.
  3017. - case "$host_cpu" in
  3018. + case $host_cpu in
  3019. hppa*64*|ia64*)
  3020. ;;
  3021. *)
  3022. @@ -5551,18 +4879,28 @@
  3023. ;;
  3024. chorus*)
  3025. case $cc_basename in
  3026. - cxch68)
  3027. + cxch68*)
  3028. # Green Hills C++ Compiler
  3029. # _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"
  3030. ;;
  3031. esac
  3032. ;;
  3033. + darwin*)
  3034. + # PIC is the default on this platform
  3035. + # Common symbols not allowed in MH_DYLIB files
  3036. + case $cc_basename in
  3037. + xlc*)
  3038. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  3039. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3040. + ;;
  3041. + esac
  3042. + ;;
  3043. dgux*)
  3044. case $cc_basename in
  3045. - ec++)
  3046. + ec++*)
  3047. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3048. ;;
  3049. - ghcx)
  3050. + ghcx*)
  3051. # Green Hills C++ Compiler
  3052. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3053. ;;
  3054. @@ -5570,22 +4908,22 @@
  3055. ;;
  3056. esac
  3057. ;;
  3058. - freebsd* | kfreebsd*-gnu)
  3059. + freebsd* | dragonfly*)
  3060. # FreeBSD uses GNU C++
  3061. ;;
  3062. hpux9* | hpux10* | hpux11*)
  3063. case $cc_basename in
  3064. - CC)
  3065. + CC*)
  3066. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3067. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  3068. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3069. if test "$host_cpu" != ia64; then
  3070. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3071. fi
  3072. ;;
  3073. - aCC)
  3074. + aCC*)
  3075. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3076. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  3077. - case "$host_cpu" in
  3078. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3079. + case $host_cpu in
  3080. hppa*64*|ia64*)
  3081. # +Z the default
  3082. ;;
  3083. @@ -5598,9 +4936,13 @@
  3084. ;;
  3085. esac
  3086. ;;
  3087. + interix*)
  3088. + # This is c89, which is MS Visual C++ (no shared libs)
  3089. + # Anyone wants to do a port?
  3090. + ;;
  3091. irix5* | irix6* | nonstopux*)
  3092. case $cc_basename in
  3093. - CC)
  3094. + CC*)
  3095. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3096. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3097. # CC pic flag -KPIC is the default.
  3098. @@ -5609,20 +4951,26 @@
  3099. ;;
  3100. esac
  3101. ;;
  3102. - linux*)
  3103. + linux* | k*bsd*-gnu)
  3104. case $cc_basename in
  3105. - KCC)
  3106. + KCC*)
  3107. # KAI C++ Compiler
  3108. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3109. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3110. ;;
  3111. - icpc)
  3112. + icpc* | ecpc*)
  3113. # Intel C++
  3114. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3115. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3116. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3117. ;;
  3118. - cxx)
  3119. + pgCC*)
  3120. + # Portland Group C++ compiler.
  3121. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3122. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3123. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3124. + ;;
  3125. + cxx*)
  3126. # Compaq C++
  3127. # Make sure the PIC flag is empty. It appears that all Alpha
  3128. # Linux and Compaq Tru64 Unix objects are PIC.
  3129. @@ -5639,25 +4987,25 @@
  3130. ;;
  3131. mvs*)
  3132. case $cc_basename in
  3133. - cxx)
  3134. + cxx*)
  3135. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3136. ;;
  3137. *)
  3138. ;;
  3139. esac
  3140. ;;
  3141. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  3142. + netbsd* | netbsdelf*-gnu)
  3143. ;;
  3144. osf3* | osf4* | osf5*)
  3145. case $cc_basename in
  3146. - KCC)
  3147. + KCC*)
  3148. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3149. ;;
  3150. - RCC)
  3151. + RCC*)
  3152. # Rational C++ 2.4.1
  3153. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3154. ;;
  3155. - cxx)
  3156. + cxx*)
  3157. # Digital/Compaq C++
  3158. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3159. # Make sure the PIC flag is empty. It appears that all Alpha
  3160. @@ -5671,24 +5019,15 @@
  3161. ;;
  3162. psos*)
  3163. ;;
  3164. - sco*)
  3165. - case $cc_basename in
  3166. - CC)
  3167. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3168. - ;;
  3169. - *)
  3170. - ;;
  3171. - esac
  3172. - ;;
  3173. solaris*)
  3174. case $cc_basename in
  3175. - CC)
  3176. + CC*)
  3177. # Sun C++ 4.2, 5.x and Centerline C++
  3178. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3179. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3180. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3181. ;;
  3182. - gcx)
  3183. + gcx*)
  3184. # Green Hills C++ Compiler
  3185. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3186. ;;
  3187. @@ -5698,12 +5037,12 @@
  3188. ;;
  3189. sunos4*)
  3190. case $cc_basename in
  3191. - CC)
  3192. + CC*)
  3193. # Sun C++ 4.x
  3194. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3195. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3196. ;;
  3197. - lcc)
  3198. + lcc*)
  3199. # Lucid
  3200. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3201. ;;
  3202. @@ -5713,7 +5052,7 @@
  3203. ;;
  3204. tandem*)
  3205. case $cc_basename in
  3206. - NCC)
  3207. + NCC*)
  3208. # NonStop-UX NCC 3.20
  3209. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3210. ;;
  3211. @@ -5721,7 +5060,14 @@
  3212. ;;
  3213. esac
  3214. ;;
  3215. - unixware*)
  3216. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3217. + case $cc_basename in
  3218. + CC*)
  3219. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3220. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3221. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3222. + ;;
  3223. + esac
  3224. ;;
  3225. vxworks*)
  3226. ;;
  3227. @@ -5768,6 +5114,11 @@
  3228. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3229. ;;
  3230. + interix3*)
  3231. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3232. + # Instead, we relocate shared libraries at runtime.
  3233. + ;;
  3234. +
  3235. msdosdjgpp*)
  3236. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3237. # on systems that don't support them.
  3238. @@ -5784,7 +5135,7 @@
  3239. hpux*)
  3240. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3241. # not for PA HP-UX.
  3242. - case "$host_cpu" in
  3243. + case $host_cpu in
  3244. hppa*64*|ia64*)
  3245. # +Z the default
  3246. ;;
  3247. @@ -5810,6 +5161,16 @@
  3248. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3249. fi
  3250. ;;
  3251. + darwin*)
  3252. + # PIC is the default on this platform
  3253. + # Common symbols not allowed in MH_DYLIB files
  3254. + case $cc_basename in
  3255. + xlc*)
  3256. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  3257. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3258. + ;;
  3259. + esac
  3260. + ;;
  3261. mingw* | pw32* | os2*)
  3262. # This hack is so that the source file can tell whether it is being
  3263. @@ -5821,7 +5182,7 @@
  3264. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3265. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3266. # not for PA HP-UX.
  3267. - case "$host_cpu" in
  3268. + case $host_cpu in
  3269. hppa*64*|ia64*)
  3270. # +Z the default
  3271. ;;
  3272. @@ -5844,13 +5205,20 @@
  3273. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3274. ;;
  3275. - linux*)
  3276. - case $CC in
  3277. + linux* | k*bsd*-gnu)
  3278. + case $cc_basename in
  3279. icc* | ecc*)
  3280. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3281. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3282. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3283. ;;
  3284. + pgcc* | pgf77* | pgf90* | pgf95*)
  3285. + # Portland Group compilers (*not* the Pentium gcc compiler,
  3286. + # which looks to be a dead project)
  3287. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3288. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3289. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3290. + ;;
  3291. ccc*)
  3292. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3293. # All Alpha code is PIC.
  3294. @@ -5865,15 +5233,15 @@
  3295. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3296. ;;
  3297. - sco3.2v5*)
  3298. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  3299. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  3300. - ;;
  3301. -
  3302. solaris*)
  3303. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3304. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3305. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3306. + case $cc_basename in
  3307. + f77* | f90* | f95*)
  3308. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  3309. + *)
  3310. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  3311. + esac
  3312. ;;
  3313. sunos4*)
  3314. @@ -5882,7 +5250,7 @@
  3315. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3316. ;;
  3317. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3318. + sysv4 | sysv4.2uw2* | sysv4.3*)
  3319. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3320. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3321. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3322. @@ -5895,6 +5263,17 @@
  3323. fi
  3324. ;;
  3325. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3326. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3327. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3328. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3329. + ;;
  3330. +
  3331. + unicos*)
  3332. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3333. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3334. + ;;
  3335. +
  3336. uts4*)
  3337. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3338. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3339. @@ -5922,7 +5301,7 @@
  3340. [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3341. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  3342. fi
  3343. -case "$host_os" in
  3344. +case $host_os in
  3345. # For platforms which do not support PIC, -DPIC is meaningless:
  3346. *djgpp*)
  3347. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3348. @@ -5931,6 +5310,16 @@
  3349. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  3350. ;;
  3351. esac
  3352. +
  3353. +#
  3354. +# Check to make sure the static flag actually works.
  3355. +#
  3356. +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  3357. +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  3358. + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  3359. + $lt_tmp_static_flag,
  3360. + [],
  3361. + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  3362. ])
  3363. @@ -5955,9 +5344,9 @@
  3364. _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  3365. ;;
  3366. cygwin* | mingw*)
  3367. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  3368. + _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'
  3369. ;;
  3370. - linux*)
  3371. + linux* | k*bsd*-gnu)
  3372. _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  3373. ;;
  3374. *)
  3375. @@ -6001,7 +5390,8 @@
  3376. # rely on this symbol name, it's probably fine to never include it in
  3377. # preloaded symbol tables.
  3378. extract_expsyms_cmds=
  3379. -
  3380. + # Just being paranoid about ensuring that cc_basename is set.
  3381. + _LT_CC_BASENAME([$compiler])
  3382. case $host_os in
  3383. cygwin* | mingw* | pw32*)
  3384. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  3385. @@ -6011,6 +5401,10 @@
  3386. with_gnu_ld=no
  3387. fi
  3388. ;;
  3389. + interix*)
  3390. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  3391. + with_gnu_ld=yes
  3392. + ;;
  3393. openbsd*)
  3394. with_gnu_ld=no
  3395. ;;
  3396. @@ -6021,6 +5415,27 @@
  3397. # If archive_cmds runs LD, not CC, wlarc should be empty
  3398. wlarc='${wl}'
  3399. + # Set some defaults for GNU ld with shared library support. These
  3400. + # are reset later if shared libraries are not supported. Putting them
  3401. + # here allows them to be overridden if necessary.
  3402. + runpath_var=LD_RUN_PATH
  3403. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3404. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3405. + # ancient GNU ld didn't support --whole-archive et. al.
  3406. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  3407. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3408. + else
  3409. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3410. + fi
  3411. + supports_anon_versioning=no
  3412. + case `$LD -v 2>/dev/null` in
  3413. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  3414. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  3415. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  3416. + *\ 2.11.*) ;; # other 2.11 versions
  3417. + *) supports_anon_versioning=yes ;;
  3418. + esac
  3419. +
  3420. # See if GNU ld supports shared libraries.
  3421. case $host_os in
  3422. aix3* | aix4* | aix5*)
  3423. @@ -6071,10 +5486,10 @@
  3424. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3425. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3426. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3427. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  3428. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  3429. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3430. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  3431. + _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'
  3432. # If the export-symbols file already is a .def file (1st line
  3433. # is EXPORTS), use it as is; otherwise, prepend...
  3434. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3435. @@ -6083,13 +5498,60 @@
  3436. echo EXPORTS > $output_objdir/$soname.def;
  3437. cat $export_symbols >> $output_objdir/$soname.def;
  3438. fi~
  3439. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  3440. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3441. else
  3442. - ld_shlibs=no
  3443. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3444. fi
  3445. ;;
  3446. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  3447. + interix3*)
  3448. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3449. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3450. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3451. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3452. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3453. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  3454. + # default) and relocated if they conflict, which is a slow very memory
  3455. + # consuming and fragmenting process. To avoid this, we pick a random,
  3456. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3457. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3458. + _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'
  3459. + _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'
  3460. + ;;
  3461. +
  3462. + linux* | k*bsd*-gnu)
  3463. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3464. + tmp_addflag=
  3465. + case $cc_basename,$host_cpu in
  3466. + pgcc*) # Portland Group C compiler
  3467. + _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'
  3468. + tmp_addflag=' $pic_flag'
  3469. + ;;
  3470. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  3471. + _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'
  3472. + tmp_addflag=' $pic_flag -Mnomain' ;;
  3473. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  3474. + tmp_addflag=' -i_dynamic' ;;
  3475. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  3476. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  3477. + ifc* | ifort*) # Intel Fortran compiler
  3478. + tmp_addflag=' -nofor_main' ;;
  3479. + esac
  3480. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3481. +
  3482. + if test $supports_anon_versioning = yes; then
  3483. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  3484. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  3485. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  3486. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  3487. + fi
  3488. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  3489. + else
  3490. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3491. + fi
  3492. + ;;
  3493. +
  3494. + netbsd* | netbsdelf*-gnu)
  3495. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3496. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  3497. wlarc=
  3498. @@ -6099,7 +5561,7 @@
  3499. fi
  3500. ;;
  3501. - solaris* | sysv5*)
  3502. + solaris*)
  3503. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  3504. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3505. cat <<EOF 1>&2
  3506. @@ -6120,6 +5582,33 @@
  3507. fi
  3508. ;;
  3509. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  3510. + case `$LD -v 2>&1` in
  3511. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  3512. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3513. + cat <<_LT_EOF 1>&2
  3514. +
  3515. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  3516. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  3517. +*** is disabling shared libraries support. We urge you to upgrade GNU
  3518. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  3519. +*** your PATH or compiler configuration so that the native linker is
  3520. +*** used, and then restart.
  3521. +
  3522. +_LT_EOF
  3523. + ;;
  3524. + *)
  3525. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3526. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  3527. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  3528. + _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'
  3529. + else
  3530. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3531. + fi
  3532. + ;;
  3533. + esac
  3534. + ;;
  3535. +
  3536. sunos4*)
  3537. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3538. wlarc=
  3539. @@ -6127,32 +5616,6 @@
  3540. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3541. ;;
  3542. - linux*)
  3543. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3544. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3545. - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  3546. - supports_anon_versioning=no
  3547. - case `$LD -v 2>/dev/null` in
  3548. - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  3549. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  3550. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  3551. - *\ 2.11.*) ;; # other 2.11 versions
  3552. - *) supports_anon_versioning=yes ;;
  3553. - esac
  3554. - if test $supports_anon_versioning = yes; then
  3555. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  3556. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  3557. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  3558. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  3559. - else
  3560. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  3561. - fi
  3562. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  3563. - else
  3564. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3565. - fi
  3566. - ;;
  3567. -
  3568. *)
  3569. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3570. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3571. @@ -6163,16 +5626,11 @@
  3572. ;;
  3573. esac
  3574. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  3575. - runpath_var=LD_RUN_PATH
  3576. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3577. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3578. - # ancient GNU ld didn't support --whole-archive et. al.
  3579. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  3580. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3581. - else
  3582. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3583. - fi
  3584. + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  3585. + runpath_var=
  3586. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3587. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3588. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3589. fi
  3590. else
  3591. # PORTME fill in a description of your system's linker (not GNU ld)
  3592. @@ -6184,7 +5642,7 @@
  3593. # Note: this linker hardcodes the directories in LIBPATH if there
  3594. # are no directories specified by -L.
  3595. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3596. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  3597. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  3598. # Neither direct hardcoding nor static linking is supported with a
  3599. # broken collect2.
  3600. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3601. @@ -6218,6 +5676,7 @@
  3602. break
  3603. fi
  3604. done
  3605. + ;;
  3606. esac
  3607. exp_sym_flag='-bexport'
  3608. @@ -6236,7 +5695,7 @@
  3609. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3610. if test "$GCC" = yes; then
  3611. - case $host_os in aix4.[012]|aix4.[012].*)
  3612. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3613. # We only want to do this on AIX 4.2 and lower, the check
  3614. # below for broken collect2 doesn't work under 4.3+
  3615. collect2name=`${CC} -print-prog-name=collect2`
  3616. @@ -6255,8 +5714,12 @@
  3617. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3618. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3619. fi
  3620. + ;;
  3621. esac
  3622. shared_flag='-shared'
  3623. + if test "$aix_use_runtimelinking" = yes; then
  3624. + shared_flag="$shared_flag "'${wl}-G'
  3625. + fi
  3626. else
  3627. # not using gcc
  3628. if test "$host_cpu" = ia64; then
  3629. @@ -6264,11 +5727,11 @@
  3630. # chokes on -Wl,-G. The following line is correct:
  3631. shared_flag='-G'
  3632. else
  3633. - if test "$aix_use_runtimelinking" = yes; then
  3634. + if test "$aix_use_runtimelinking" = yes; then
  3635. shared_flag='${wl}-G'
  3636. else
  3637. shared_flag='${wl}-bM:SRE'
  3638. - fi
  3639. + fi
  3640. fi
  3641. fi
  3642. @@ -6282,12 +5745,12 @@
  3643. # Determine the default libpath from the value encoded in an empty executable.
  3644. _LT_AC_SYS_LIBPATH_AIX
  3645. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3646. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3647. + _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"
  3648. else
  3649. if test "$host_cpu" = ia64; then
  3650. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3651. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3652. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  3653. + _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"
  3654. else
  3655. # Determine the default libpath from the value encoded in an empty executable.
  3656. _LT_AC_SYS_LIBPATH_AIX
  3657. @@ -6296,13 +5759,11 @@
  3658. # -berok will link without error, but may produce a broken library.
  3659. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3660. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3661. - # -bexpall does not export symbols beginning with underscore (_)
  3662. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3663. # Exported symbols can be pulled into shared objects from archives
  3664. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  3665. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3666. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3667. - # This is similar to how AIX traditionally builds it's shared libraries.
  3668. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  3669. + # This is similar to how AIX traditionally builds its shared libraries.
  3670. + _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'
  3671. fi
  3672. fi
  3673. ;;
  3674. @@ -6315,7 +5776,7 @@
  3675. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3676. ;;
  3677. - bsdi4*)
  3678. + bsdi[[45]]*)
  3679. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  3680. ;;
  3681. @@ -6336,57 +5797,57 @@
  3682. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  3683. # FIXME: Should let the user specify the lib program.
  3684. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  3685. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  3686. + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  3687. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3688. ;;
  3689. darwin* | rhapsody*)
  3690. - if test "$GXX" = yes ; then
  3691. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3692. - case "$host_os" in
  3693. - rhapsody* | darwin1.[[012]])
  3694. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  3695. - ;;
  3696. - *) # Darwin 1.3 on
  3697. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  3698. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  3699. - else
  3700. - case ${MACOSX_DEPLOYMENT_TARGET} in
  3701. - 10.[[012]])
  3702. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  3703. - ;;
  3704. - 10.*)
  3705. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  3706. - ;;
  3707. - esac
  3708. - fi
  3709. - ;;
  3710. + case $host_os in
  3711. + rhapsody* | darwin1.[[012]])
  3712. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  3713. + ;;
  3714. + *) # Darwin 1.3 on
  3715. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  3716. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3717. + else
  3718. + case ${MACOSX_DEPLOYMENT_TARGET} in
  3719. + 10.[[012]])
  3720. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3721. + ;;
  3722. + 10.*)
  3723. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  3724. + ;;
  3725. + esac
  3726. + fi
  3727. + ;;
  3728. esac
  3729. - lt_int_apple_cc_single_mod=no
  3730. - output_verbose_link_cmd='echo'
  3731. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  3732. - lt_int_apple_cc_single_mod=yes
  3733. - fi
  3734. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3735. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3736. - else
  3737. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
  3738. - fi
  3739. - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3740. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  3741. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3742. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3743. - else
  3744. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3745. - fi
  3746. - _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}'
  3747. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3748. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3749. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3750. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3751. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  3752. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3753. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3754. + if test "$GCC" = yes ; then
  3755. + output_verbose_link_cmd='echo'
  3756. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3757. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3758. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3759. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3760. + _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}'
  3761. else
  3762. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3763. + case $cc_basename in
  3764. + xlc*)
  3765. + output_verbose_link_cmd='echo'
  3766. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  3767. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3768. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3769. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3770. + _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}'
  3771. + ;;
  3772. + *)
  3773. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3774. + ;;
  3775. + esac
  3776. fi
  3777. ;;
  3778. @@ -6420,7 +5881,7 @@
  3779. ;;
  3780. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  3781. - freebsd* | kfreebsd*-gnu)
  3782. + freebsd* | dragonfly*)
  3783. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  3784. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3785. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3786. @@ -6443,47 +5904,62 @@
  3787. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3788. ;;
  3789. - hpux10* | hpux11*)
  3790. + hpux10*)
  3791. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  3792. - case "$host_cpu" in
  3793. - hppa*64*|ia64*)
  3794. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  3795. + else
  3796. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  3797. + fi
  3798. + if test "$with_gnu_ld" = no; then
  3799. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3800. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3801. +
  3802. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3803. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3804. +
  3805. + # hardcode_minus_L: Not really in the search PATH,
  3806. + # but as the default location of the library.
  3807. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3808. + fi
  3809. + ;;
  3810. +
  3811. + hpux11*)
  3812. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  3813. + case $host_cpu in
  3814. + hppa*64*)
  3815. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3816. ;;
  3817. + ia64*)
  3818. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  3819. + ;;
  3820. *)
  3821. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  3822. ;;
  3823. esac
  3824. else
  3825. - case "$host_cpu" in
  3826. - hppa*64*|ia64*)
  3827. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  3828. + case $host_cpu in
  3829. + hppa*64*)
  3830. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3831. + ;;
  3832. + ia64*)
  3833. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  3834. ;;
  3835. *)
  3836. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  3837. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  3838. ;;
  3839. esac
  3840. fi
  3841. if test "$with_gnu_ld" = no; then
  3842. - case "$host_cpu" in
  3843. - hppa*64*)
  3844. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3845. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3846. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3847. +
  3848. + case $host_cpu in
  3849. + hppa*64*|ia64*)
  3850. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  3851. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3852. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3853. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3854. - ;;
  3855. - ia64*)
  3856. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3857. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3858. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3859. -
  3860. - # hardcode_minus_L: Not really in the search PATH,
  3861. - # but as the default location of the library.
  3862. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3863. ;;
  3864. *)
  3865. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3866. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3867. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3868. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3869. @@ -6507,7 +5983,7 @@
  3870. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3871. ;;
  3872. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  3873. + netbsd* | netbsdelf*-gnu)
  3874. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3875. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  3876. else
  3877. @@ -6531,6 +6007,7 @@
  3878. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3879. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3880. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  3881. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  3882. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3883. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3884. else
  3885. @@ -6576,7 +6053,7 @@
  3886. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3887. _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'
  3888. _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~
  3889. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  3890. + $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'
  3891. # Both c and cxx compiler support -rpath directly
  3892. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3893. @@ -6584,21 +6061,15 @@
  3894. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3895. ;;
  3896. - sco3.2v5*)
  3897. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3898. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3899. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3900. - runpath_var=LD_RUN_PATH
  3901. - hardcode_runpath_var=yes
  3902. - ;;
  3903. -
  3904. solaris*)
  3905. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  3906. if test "$GCC" = yes; then
  3907. + wlarc='${wl}'
  3908. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3909. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3910. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  3911. else
  3912. + wlarc=''
  3913. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3914. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3915. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3916. @@ -6607,8 +6078,18 @@
  3917. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3918. case $host_os in
  3919. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3920. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  3921. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  3922. + *)
  3923. + # The compiler driver will combine linker options so we
  3924. + # cannot just pass the convience library names through
  3925. + # without $wl, iff we do not link with $LD.
  3926. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  3927. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  3928. + case $wlarc in
  3929. + '')
  3930. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  3931. + *)
  3932. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  3933. + esac ;;
  3934. esac
  3935. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3936. ;;
  3937. @@ -6665,36 +6146,45 @@
  3938. fi
  3939. ;;
  3940. - sysv4.2uw2*)
  3941. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3942. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3943. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3944. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  3945. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3946. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3947. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3948. - hardcode_runpath_var=yes
  3949. - runpath_var=LD_RUN_PATH
  3950. - ;;
  3951. + runpath_var='LD_RUN_PATH'
  3952. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  3953. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  3954. if test "$GCC" = yes; then
  3955. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3956. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3957. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3958. else
  3959. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3960. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3961. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3962. fi
  3963. - runpath_var='LD_RUN_PATH'
  3964. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3965. ;;
  3966. - sysv5*)
  3967. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  3968. - # $CC -shared without GNU ld will not create a library from C++
  3969. - # object files and a static libstdc++, better avoid it by now
  3970. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3971. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3972. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3973. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3974. + sysv5* | sco3.2v5* | sco5v6*)
  3975. + # Note: We can NOT use -z defs as we might desire, because we do not
  3976. + # link with -lc, and that would cause any symbols used from libc to
  3977. + # always be unresolved, which means just about no library would
  3978. + # ever link correctly. If we're not using GNU ld we use -z text
  3979. + # though, which does catch some bad symbols but isn't as heavy-handed
  3980. + # as -z defs.
  3981. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3982. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  3983. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3984. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3985. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  3986. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3987. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3988. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3989. runpath_var='LD_RUN_PATH'
  3990. +
  3991. + if test "$GCC" = yes; then
  3992. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3993. + _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'
  3994. + else
  3995. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3996. + _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'
  3997. + fi
  3998. ;;
  3999. uts4*)
  4000. @@ -6712,11 +6202,6 @@
  4001. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4002. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4003. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4004. -if test "$GCC" = yes; then
  4005. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4006. -fi
  4007. -
  4008. #
  4009. # Do we need to explicitly link libc?
  4010. #
  4011. @@ -6744,6 +6229,7 @@
  4012. libobjs=conftest.$ac_objext
  4013. deplibs=
  4014. wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  4015. + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  4016. compiler_flags=-v
  4017. linker_flags=-v
  4018. verstring=
  4019. @@ -6869,7 +6355,7 @@
  4020. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4021. # along with /bin/sed that truncates output.
  4022. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  4023. - test ! -f $lt_ac_sed && break
  4024. + test ! -f $lt_ac_sed && continue
  4025. cat /dev/null > conftest.in
  4026. lt_ac_count=0
  4027. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  4028. @@ -6894,8 +6380,878 @@
  4029. fi
  4030. done
  4031. done
  4032. -SED=$lt_cv_path_SED
  4033. ])
  4034. +SED=$lt_cv_path_SED
  4035. AC_MSG_RESULT([$SED])
  4036. ])
  4037. +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  4038. +#
  4039. +# This file is free software; the Free Software Foundation
  4040. +# gives unlimited permission to copy and/or distribute it,
  4041. +# with or without modifications, as long as this notice is preserved.
  4042. +
  4043. +# AM_AUTOMAKE_VERSION(VERSION)
  4044. +# ----------------------------
  4045. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  4046. +# generated from the m4 files accompanying Automake X.Y.
  4047. +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  4048. +
  4049. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  4050. +# -------------------------------
  4051. +# Call AM_AUTOMAKE_VERSION so it can be traced.
  4052. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  4053. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  4054. + [AM_AUTOMAKE_VERSION([1.9.6])])
  4055. +
  4056. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  4057. +
  4058. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  4059. +#
  4060. +# This file is free software; the Free Software Foundation
  4061. +# gives unlimited permission to copy and/or distribute it,
  4062. +# with or without modifications, as long as this notice is preserved.
  4063. +
  4064. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  4065. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  4066. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  4067. +#
  4068. +# Of course, Automake must honor this variable whenever it calls a
  4069. +# tool from the auxiliary directory. The problem is that $srcdir (and
  4070. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  4071. +# depending on how configure is run. This is pretty annoying, since
  4072. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  4073. +# source directory, any form will work fine, but in subdirectories a
  4074. +# relative path needs to be adjusted first.
  4075. +#
  4076. +# $ac_aux_dir/missing
  4077. +# fails when called from a subdirectory if $ac_aux_dir is relative
  4078. +# $top_srcdir/$ac_aux_dir/missing
  4079. +# fails if $ac_aux_dir is absolute,
  4080. +# fails when called from a subdirectory in a VPATH build with
  4081. +# a relative $ac_aux_dir
  4082. +#
  4083. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  4084. +# are both prefixed by $srcdir. In an in-source build this is usually
  4085. +# harmless because $srcdir is `.', but things will broke when you
  4086. +# start a VPATH build or use an absolute $srcdir.
  4087. +#
  4088. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  4089. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  4090. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  4091. +# and then we would define $MISSING as
  4092. +# MISSING="\${SHELL} $am_aux_dir/missing"
  4093. +# This will work as long as MISSING is not called from configure, because
  4094. +# unfortunately $(top_srcdir) has no meaning in configure.
  4095. +# However there are other variables, like CC, which are often used in
  4096. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  4097. +#
  4098. +# Another solution, used here, is to always expand $ac_aux_dir to an
  4099. +# absolute PATH. The drawback is that using absolute paths prevent a
  4100. +# configured tree to be moved without reconfiguration.
  4101. +
  4102. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  4103. +[dnl Rely on autoconf to set up CDPATH properly.
  4104. +AC_PREREQ([2.50])dnl
  4105. +# expand $ac_aux_dir to an absolute path
  4106. +am_aux_dir=`cd $ac_aux_dir && pwd`
  4107. +])
  4108. +
  4109. +# AM_CONDITIONAL -*- Autoconf -*-
  4110. +
  4111. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  4112. +# Free Software Foundation, Inc.
  4113. +#
  4114. +# This file is free software; the Free Software Foundation
  4115. +# gives unlimited permission to copy and/or distribute it,
  4116. +# with or without modifications, as long as this notice is preserved.
  4117. +
  4118. +# serial 7
  4119. +
  4120. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  4121. +# -------------------------------------
  4122. +# Define a conditional.
  4123. +AC_DEFUN([AM_CONDITIONAL],
  4124. +[AC_PREREQ(2.52)dnl
  4125. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  4126. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  4127. +AC_SUBST([$1_TRUE])
  4128. +AC_SUBST([$1_FALSE])
  4129. +if $2; then
  4130. + $1_TRUE=
  4131. + $1_FALSE='#'
  4132. +else
  4133. + $1_TRUE='#'
  4134. + $1_FALSE=
  4135. +fi
  4136. +AC_CONFIG_COMMANDS_PRE(
  4137. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  4138. + AC_MSG_ERROR([[conditional "$1" was never defined.
  4139. +Usually this means the macro was only invoked conditionally.]])
  4140. +fi])])
  4141. +
  4142. +
  4143. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  4144. +# Free Software Foundation, Inc.
  4145. +#
  4146. +# This file is free software; the Free Software Foundation
  4147. +# gives unlimited permission to copy and/or distribute it,
  4148. +# with or without modifications, as long as this notice is preserved.
  4149. +
  4150. +# serial 8
  4151. +
  4152. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  4153. +# written in clear, in which case automake, when reading aclocal.m4,
  4154. +# will think it sees a *use*, and therefore will trigger all it's
  4155. +# C support machinery. Also note that it means that autoscan, seeing
  4156. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  4157. +
  4158. +
  4159. +# _AM_DEPENDENCIES(NAME)
  4160. +# ----------------------
  4161. +# See how the compiler implements dependency checking.
  4162. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  4163. +# We try a few techniques and use that to set a single cache variable.
  4164. +#
  4165. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  4166. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  4167. +# dependency, and given that the user is not expected to run this macro,
  4168. +# just rely on AC_PROG_CC.
  4169. +AC_DEFUN([_AM_DEPENDENCIES],
  4170. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  4171. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  4172. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  4173. +AC_REQUIRE([AM_DEP_TRACK])dnl
  4174. +
  4175. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  4176. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  4177. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  4178. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  4179. + [depcc="$$1" am_compiler_list=])
  4180. +
  4181. +AC_CACHE_CHECK([dependency style of $depcc],
  4182. + [am_cv_$1_dependencies_compiler_type],
  4183. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4184. + # We make a subdir and do the tests there. Otherwise we can end up
  4185. + # making bogus files that we don't know about and never remove. For
  4186. + # instance it was reported that on HP-UX the gcc test will end up
  4187. + # making a dummy file named `D' -- because `-MD' means `put the output
  4188. + # in D'.
  4189. + mkdir conftest.dir
  4190. + # Copy depcomp to subdir because otherwise we won't find it if we're
  4191. + # using a relative directory.
  4192. + cp "$am_depcomp" conftest.dir
  4193. + cd conftest.dir
  4194. + # We will build objects and dependencies in a subdirectory because
  4195. + # it helps to detect inapplicable dependency modes. For instance
  4196. + # both Tru64's cc and ICC support -MD to output dependencies as a
  4197. + # side effect of compilation, but ICC will put the dependencies in
  4198. + # the current directory while Tru64 will put them in the object
  4199. + # directory.
  4200. + mkdir sub
  4201. +
  4202. + am_cv_$1_dependencies_compiler_type=none
  4203. + if test "$am_compiler_list" = ""; then
  4204. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  4205. + fi
  4206. + for depmode in $am_compiler_list; do
  4207. + # Setup a source with many dependencies, because some compilers
  4208. + # like to wrap large dependency lists on column 80 (with \), and
  4209. + # we should not choose a depcomp mode which is confused by this.
  4210. + #
  4211. + # We need to recreate these files for each test, as the compiler may
  4212. + # overwrite some of them when testing with obscure command lines.
  4213. + # This happens at least with the AIX C compiler.
  4214. + : > sub/conftest.c
  4215. + for i in 1 2 3 4 5 6; do
  4216. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4217. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4218. + # Solaris 8's {/usr,}/bin/sh.
  4219. + touch sub/conftst$i.h
  4220. + done
  4221. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4222. +
  4223. + case $depmode in
  4224. + nosideeffect)
  4225. + # after this tag, mechanisms are not by side-effect, so they'll
  4226. + # only be used when explicitly requested
  4227. + if test "x$enable_dependency_tracking" = xyes; then
  4228. + continue
  4229. + else
  4230. + break
  4231. + fi
  4232. + ;;
  4233. + none) break ;;
  4234. + esac
  4235. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4236. + # mode. It turns out that the SunPro C++ compiler does not properly
  4237. + # handle `-M -o', and we need to detect this.
  4238. + if depmode=$depmode \
  4239. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4240. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4241. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4242. + >/dev/null 2>conftest.err &&
  4243. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4244. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4245. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4246. + # icc doesn't choke on unknown options, it will just issue warnings
  4247. + # or remarks (even with -Werror). So we grep stderr for any message
  4248. + # that says an option was ignored or not supported.
  4249. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  4250. + # icc: Command line warning: ignoring option '-M'; no argument required
  4251. + # The diagnosis changed in icc 8.0:
  4252. + # icc: Command line remark: option '-MP' not supported
  4253. + if (grep 'ignoring option' conftest.err ||
  4254. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4255. + am_cv_$1_dependencies_compiler_type=$depmode
  4256. + break
  4257. + fi
  4258. + fi
  4259. + done
  4260. +
  4261. + cd ..
  4262. + rm -rf conftest.dir
  4263. +else
  4264. + am_cv_$1_dependencies_compiler_type=none
  4265. +fi
  4266. +])
  4267. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  4268. +AM_CONDITIONAL([am__fastdep$1], [
  4269. + test "x$enable_dependency_tracking" != xno \
  4270. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  4271. +])
  4272. +
  4273. +
  4274. +# AM_SET_DEPDIR
  4275. +# -------------
  4276. +# Choose a directory name for dependency files.
  4277. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  4278. +AC_DEFUN([AM_SET_DEPDIR],
  4279. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  4280. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  4281. +])
  4282. +
  4283. +
  4284. +# AM_DEP_TRACK
  4285. +# ------------
  4286. +AC_DEFUN([AM_DEP_TRACK],
  4287. +[AC_ARG_ENABLE(dependency-tracking,
  4288. +[ --disable-dependency-tracking speeds up one-time build
  4289. + --enable-dependency-tracking do not reject slow dependency extractors])
  4290. +if test "x$enable_dependency_tracking" != xno; then
  4291. + am_depcomp="$ac_aux_dir/depcomp"
  4292. + AMDEPBACKSLASH='\'
  4293. +fi
  4294. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  4295. +AC_SUBST([AMDEPBACKSLASH])
  4296. +])
  4297. +
  4298. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  4299. +
  4300. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  4301. +# Free Software Foundation, Inc.
  4302. +#
  4303. +# This file is free software; the Free Software Foundation
  4304. +# gives unlimited permission to copy and/or distribute it,
  4305. +# with or without modifications, as long as this notice is preserved.
  4306. +
  4307. +#serial 3
  4308. +
  4309. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  4310. +# ------------------------------
  4311. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  4312. +[for mf in $CONFIG_FILES; do
  4313. + # Strip MF so we end up with the name of the file.
  4314. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  4315. + # Check whether this is an Automake generated Makefile or not.
  4316. + # We used to match only the files named `Makefile.in', but
  4317. + # some people rename them; so instead we look at the file content.
  4318. + # Grep'ing the first line is not enough: some people post-process
  4319. + # each Makefile.in and add a new line on top of each file to say so.
  4320. + # So let's grep whole file.
  4321. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  4322. + dirpart=`AS_DIRNAME("$mf")`
  4323. + else
  4324. + continue
  4325. + fi
  4326. + # Extract the definition of DEPDIR, am__include, and am__quote
  4327. + # from the Makefile without running `make'.
  4328. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  4329. + test -z "$DEPDIR" && continue
  4330. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  4331. + test -z "am__include" && continue
  4332. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  4333. + # When using ansi2knr, U may be empty or an underscore; expand it
  4334. + U=`sed -n 's/^U = //p' < "$mf"`
  4335. + # Find all dependency output files, they are included files with
  4336. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  4337. + # simplest approach to changing $(DEPDIR) to its actual value in the
  4338. + # expansion.
  4339. + for file in `sed -n "
  4340. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  4341. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  4342. + # Make sure the directory exists.
  4343. + test -f "$dirpart/$file" && continue
  4344. + fdir=`AS_DIRNAME(["$file"])`
  4345. + AS_MKDIR_P([$dirpart/$fdir])
  4346. + # echo "creating $dirpart/$file"
  4347. + echo '# dummy' > "$dirpart/$file"
  4348. + done
  4349. +done
  4350. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  4351. +
  4352. +
  4353. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  4354. +# -----------------------------
  4355. +# This macro should only be invoked once -- use via AC_REQUIRE.
  4356. +#
  4357. +# This code is only required when automatic dependency tracking
  4358. +# is enabled. FIXME. This creates each `.P' file that we will
  4359. +# need in order to bootstrap the dependency handling code.
  4360. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  4361. +[AC_CONFIG_COMMANDS([depfiles],
  4362. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  4363. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  4364. +])
  4365. +
  4366. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  4367. +# Free Software Foundation, Inc.
  4368. +#
  4369. +# This file is free software; the Free Software Foundation
  4370. +# gives unlimited permission to copy and/or distribute it,
  4371. +# with or without modifications, as long as this notice is preserved.
  4372. +
  4373. +# serial 8
  4374. +
  4375. +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  4376. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  4377. +
  4378. +# Do all the work for Automake. -*- Autoconf -*-
  4379. +
  4380. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  4381. +# Free Software Foundation, Inc.
  4382. +#
  4383. +# This file is free software; the Free Software Foundation
  4384. +# gives unlimited permission to copy and/or distribute it,
  4385. +# with or without modifications, as long as this notice is preserved.
  4386. +
  4387. +# serial 12
  4388. +
  4389. +# This macro actually does too much. Some checks are only needed if
  4390. +# your package does certain things. But this isn't really a big deal.
  4391. +
  4392. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  4393. +# AM_INIT_AUTOMAKE([OPTIONS])
  4394. +# -----------------------------------------------
  4395. +# The call with PACKAGE and VERSION arguments is the old style
  4396. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  4397. +# and VERSION should now be passed to AC_INIT and removed from
  4398. +# the call to AM_INIT_AUTOMAKE.
  4399. +# We support both call styles for the transition. After
  4400. +# the next Automake release, Autoconf can make the AC_INIT
  4401. +# arguments mandatory, and then we can depend on a new Autoconf
  4402. +# release and drop the old call support.
  4403. +AC_DEFUN([AM_INIT_AUTOMAKE],
  4404. +[AC_PREREQ([2.58])dnl
  4405. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  4406. +dnl the ones we care about.
  4407. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  4408. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  4409. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  4410. +# test to see if srcdir already configured
  4411. +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  4412. + test -f $srcdir/config.status; then
  4413. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  4414. +fi
  4415. +
  4416. +# test whether we have cygpath
  4417. +if test -z "$CYGPATH_W"; then
  4418. + if (cygpath --version) >/dev/null 2>/dev/null; then
  4419. + CYGPATH_W='cygpath -w'
  4420. + else
  4421. + CYGPATH_W=echo
  4422. + fi
  4423. +fi
  4424. +AC_SUBST([CYGPATH_W])
  4425. +
  4426. +# Define the identity of the package.
  4427. +dnl Distinguish between old-style and new-style calls.
  4428. +m4_ifval([$2],
  4429. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  4430. + AC_SUBST([PACKAGE], [$1])dnl
  4431. + AC_SUBST([VERSION], [$2])],
  4432. +[_AM_SET_OPTIONS([$1])dnl
  4433. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  4434. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  4435. +
  4436. +_AM_IF_OPTION([no-define],,
  4437. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  4438. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  4439. +
  4440. +# Some tools Automake needs.
  4441. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  4442. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  4443. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  4444. +AM_MISSING_PROG(AUTOCONF, autoconf)
  4445. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  4446. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  4447. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  4448. +AM_PROG_INSTALL_SH
  4449. +AM_PROG_INSTALL_STRIP
  4450. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  4451. +# We need awk for the "check" target. The system "awk" is bad on
  4452. +# some platforms.
  4453. +AC_REQUIRE([AC_PROG_AWK])dnl
  4454. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  4455. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  4456. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  4457. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  4458. + [_AM_PROG_TAR([v7])])])
  4459. +_AM_IF_OPTION([no-dependencies],,
  4460. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  4461. + [_AM_DEPENDENCIES(CC)],
  4462. + [define([AC_PROG_CC],
  4463. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  4464. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  4465. + [_AM_DEPENDENCIES(CXX)],
  4466. + [define([AC_PROG_CXX],
  4467. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  4468. +])
  4469. +])
  4470. +
  4471. +
  4472. +# When config.status generates a header, we must update the stamp-h file.
  4473. +# This file resides in the same directory as the config header
  4474. +# that is generated. The stamp files are numbered to have different names.
  4475. +
  4476. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  4477. +# loop where config.status creates the headers, so we can generate
  4478. +# our stamp files there.
  4479. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  4480. +[# Compute $1's index in $config_headers.
  4481. +_am_stamp_count=1
  4482. +for _am_header in $config_headers :; do
  4483. + case $_am_header in
  4484. + $1 | $1:* )
  4485. + break ;;
  4486. + * )
  4487. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  4488. + esac
  4489. +done
  4490. +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  4491. +
  4492. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  4493. +#
  4494. +# This file is free software; the Free Software Foundation
  4495. +# gives unlimited permission to copy and/or distribute it,
  4496. +# with or without modifications, as long as this notice is preserved.
  4497. +
  4498. +# AM_PROG_INSTALL_SH
  4499. +# ------------------
  4500. +# Define $install_sh.
  4501. +AC_DEFUN([AM_PROG_INSTALL_SH],
  4502. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  4503. +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  4504. +AC_SUBST(install_sh)])
  4505. +
  4506. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  4507. +#
  4508. +# This file is free software; the Free Software Foundation
  4509. +# gives unlimited permission to copy and/or distribute it,
  4510. +# with or without modifications, as long as this notice is preserved.
  4511. +
  4512. +# serial 2
  4513. +
  4514. +# Check whether the underlying file-system supports filenames
  4515. +# with a leading dot. For instance MS-DOS doesn't.
  4516. +AC_DEFUN([AM_SET_LEADING_DOT],
  4517. +[rm -rf .tst 2>/dev/null
  4518. +mkdir .tst 2>/dev/null
  4519. +if test -d .tst; then
  4520. + am__leading_dot=.
  4521. +else
  4522. + am__leading_dot=_
  4523. +fi
  4524. +rmdir .tst 2>/dev/null
  4525. +AC_SUBST([am__leading_dot])])
  4526. +
  4527. +# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
  4528. +# Free Software Foundation, Inc.
  4529. +#
  4530. +# This file is free software; the Free Software Foundation
  4531. +# gives unlimited permission to copy and/or distribute it,
  4532. +# with or without modifications, as long as this notice is preserved.
  4533. +
  4534. +# serial 5
  4535. +
  4536. +# AM_PROG_LEX
  4537. +# -----------
  4538. +# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
  4539. +# "missing" invocation, for better error output.
  4540. +AC_DEFUN([AM_PROG_LEX],
  4541. +[AC_PREREQ(2.50)dnl
  4542. +AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
  4543. +AC_REQUIRE([AC_PROG_LEX])dnl
  4544. +if test "$LEX" = :; then
  4545. + LEX=${am_missing_run}flex
  4546. +fi])
  4547. +
  4548. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  4549. +
  4550. +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  4551. +#
  4552. +# This file is free software; the Free Software Foundation
  4553. +# gives unlimited permission to copy and/or distribute it,
  4554. +# with or without modifications, as long as this notice is preserved.
  4555. +
  4556. +# serial 3
  4557. +
  4558. +# AM_MAKE_INCLUDE()
  4559. +# -----------------
  4560. +# Check to see how make treats includes.
  4561. +AC_DEFUN([AM_MAKE_INCLUDE],
  4562. +[am_make=${MAKE-make}
  4563. +cat > confinc << 'END'
  4564. +am__doit:
  4565. + @echo done
  4566. +.PHONY: am__doit
  4567. +END
  4568. +# If we don't find an include directive, just comment out the code.
  4569. +AC_MSG_CHECKING([for style of include used by $am_make])
  4570. +am__include="#"
  4571. +am__quote=
  4572. +_am_result=none
  4573. +# First try GNU make style include.
  4574. +echo "include confinc" > confmf
  4575. +# We grep out `Entering directory' and `Leaving directory'
  4576. +# messages which can occur if `w' ends up in MAKEFLAGS.
  4577. +# In particular we don't look at `^make:' because GNU make might
  4578. +# be invoked under some other name (usually "gmake"), in which
  4579. +# case it prints its new name instead of `make'.
  4580. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  4581. + am__include=include
  4582. + am__quote=
  4583. + _am_result=GNU
  4584. +fi
  4585. +# Now try BSD make style include.
  4586. +if test "$am__include" = "#"; then
  4587. + echo '.include "confinc"' > confmf
  4588. + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  4589. + am__include=.include
  4590. + am__quote="\""
  4591. + _am_result=BSD
  4592. + fi
  4593. +fi
  4594. +AC_SUBST([am__include])
  4595. +AC_SUBST([am__quote])
  4596. +AC_MSG_RESULT([$_am_result])
  4597. +rm -f confinc confmf
  4598. +])
  4599. +
  4600. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  4601. +
  4602. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  4603. +# Free Software Foundation, Inc.
  4604. +#
  4605. +# This file is free software; the Free Software Foundation
  4606. +# gives unlimited permission to copy and/or distribute it,
  4607. +# with or without modifications, as long as this notice is preserved.
  4608. +
  4609. +# serial 4
  4610. +
  4611. +# AM_MISSING_PROG(NAME, PROGRAM)
  4612. +# ------------------------------
  4613. +AC_DEFUN([AM_MISSING_PROG],
  4614. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  4615. +$1=${$1-"${am_missing_run}$2"}
  4616. +AC_SUBST($1)])
  4617. +
  4618. +
  4619. +# AM_MISSING_HAS_RUN
  4620. +# ------------------
  4621. +# Define MISSING if not defined so far and test if it supports --run.
  4622. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  4623. +AC_DEFUN([AM_MISSING_HAS_RUN],
  4624. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  4625. +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  4626. +# Use eval to expand $SHELL
  4627. +if eval "$MISSING --run true"; then
  4628. + am_missing_run="$MISSING --run "
  4629. +else
  4630. + am_missing_run=
  4631. + AC_MSG_WARN([`missing' script is too old or missing])
  4632. +fi
  4633. +])
  4634. +
  4635. +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  4636. +#
  4637. +# This file is free software; the Free Software Foundation
  4638. +# gives unlimited permission to copy and/or distribute it,
  4639. +# with or without modifications, as long as this notice is preserved.
  4640. +
  4641. +# AM_PROG_MKDIR_P
  4642. +# ---------------
  4643. +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  4644. +#
  4645. +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  4646. +# created by `make install' are always world readable, even if the
  4647. +# installer happens to have an overly restrictive umask (e.g. 077).
  4648. +# This was a mistake. There are at least two reasons why we must not
  4649. +# use `-m 0755':
  4650. +# - it causes special bits like SGID to be ignored,
  4651. +# - it may be too restrictive (some setups expect 775 directories).
  4652. +#
  4653. +# Do not use -m 0755 and let people choose whatever they expect by
  4654. +# setting umask.
  4655. +#
  4656. +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  4657. +# Some implementations (such as Solaris 8's) are not thread-safe: if a
  4658. +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  4659. +# concurrently, both version can detect that a/ is missing, but only
  4660. +# one can create it and the other will error out. Consequently we
  4661. +# restrict ourselves to GNU make (using the --version option ensures
  4662. +# this.)
  4663. +AC_DEFUN([AM_PROG_MKDIR_P],
  4664. +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  4665. + # We used to keeping the `.' as first argument, in order to
  4666. + # allow $(mkdir_p) to be used without argument. As in
  4667. + # $(mkdir_p) $(somedir)
  4668. + # where $(somedir) is conditionally defined. However this is wrong
  4669. + # for two reasons:
  4670. + # 1. if the package is installed by a user who cannot write `.'
  4671. + # make install will fail,
  4672. + # 2. the above comment should most certainly read
  4673. + # $(mkdir_p) $(DESTDIR)$(somedir)
  4674. + # so it does not work when $(somedir) is undefined and
  4675. + # $(DESTDIR) is not.
  4676. + # To support the latter case, we have to write
  4677. + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  4678. + # so the `.' trick is pointless.
  4679. + mkdir_p='mkdir -p --'
  4680. +else
  4681. + # On NextStep and OpenStep, the `mkdir' command does not
  4682. + # recognize any option. It will interpret all options as
  4683. + # directories to create, and then abort because `.' already
  4684. + # exists.
  4685. + for d in ./-p ./--version;
  4686. + do
  4687. + test -d $d && rmdir $d
  4688. + done
  4689. + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  4690. + if test -f "$ac_aux_dir/mkinstalldirs"; then
  4691. + mkdir_p='$(mkinstalldirs)'
  4692. + else
  4693. + mkdir_p='$(install_sh) -d'
  4694. + fi
  4695. +fi
  4696. +AC_SUBST([mkdir_p])])
  4697. +
  4698. +# Helper functions for option handling. -*- Autoconf -*-
  4699. +
  4700. +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  4701. +#
  4702. +# This file is free software; the Free Software Foundation
  4703. +# gives unlimited permission to copy and/or distribute it,
  4704. +# with or without modifications, as long as this notice is preserved.
  4705. +
  4706. +# serial 3
  4707. +
  4708. +# _AM_MANGLE_OPTION(NAME)
  4709. +# -----------------------
  4710. +AC_DEFUN([_AM_MANGLE_OPTION],
  4711. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  4712. +
  4713. +# _AM_SET_OPTION(NAME)
  4714. +# ------------------------------
  4715. +# Set option NAME. Presently that only means defining a flag for this option.
  4716. +AC_DEFUN([_AM_SET_OPTION],
  4717. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  4718. +
  4719. +# _AM_SET_OPTIONS(OPTIONS)
  4720. +# ----------------------------------
  4721. +# OPTIONS is a space-separated list of Automake options.
  4722. +AC_DEFUN([_AM_SET_OPTIONS],
  4723. +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  4724. +
  4725. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  4726. +# -------------------------------------------
  4727. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  4728. +AC_DEFUN([_AM_IF_OPTION],
  4729. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  4730. +
  4731. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  4732. +
  4733. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  4734. +# Free Software Foundation, Inc.
  4735. +#
  4736. +# This file is free software; the Free Software Foundation
  4737. +# gives unlimited permission to copy and/or distribute it,
  4738. +# with or without modifications, as long as this notice is preserved.
  4739. +
  4740. +# serial 4
  4741. +
  4742. +# AM_SANITY_CHECK
  4743. +# ---------------
  4744. +AC_DEFUN([AM_SANITY_CHECK],
  4745. +[AC_MSG_CHECKING([whether build environment is sane])
  4746. +# Just in case
  4747. +sleep 1
  4748. +echo timestamp > conftest.file
  4749. +# Do `set' in a subshell so we don't clobber the current shell's
  4750. +# arguments. Must try -L first in case configure is actually a
  4751. +# symlink; some systems play weird games with the mod time of symlinks
  4752. +# (eg FreeBSD returns the mod time of the symlink's containing
  4753. +# directory).
  4754. +if (
  4755. + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  4756. + if test "$[*]" = "X"; then
  4757. + # -L didn't work.
  4758. + set X `ls -t $srcdir/configure conftest.file`
  4759. + fi
  4760. + rm -f conftest.file
  4761. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  4762. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  4763. +
  4764. + # If neither matched, then we have a broken ls. This can happen
  4765. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  4766. + # broken ls alias from the environment. This has actually
  4767. + # happened. Such a system could not be considered "sane".
  4768. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  4769. +alias in your environment])
  4770. + fi
  4771. +
  4772. + test "$[2]" = conftest.file
  4773. + )
  4774. +then
  4775. + # Ok.
  4776. + :
  4777. +else
  4778. + AC_MSG_ERROR([newly created file is older than distributed files!
  4779. +Check your system clock])
  4780. +fi
  4781. +AC_MSG_RESULT(yes)])
  4782. +
  4783. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  4784. +#
  4785. +# This file is free software; the Free Software Foundation
  4786. +# gives unlimited permission to copy and/or distribute it,
  4787. +# with or without modifications, as long as this notice is preserved.
  4788. +
  4789. +# AM_PROG_INSTALL_STRIP
  4790. +# ---------------------
  4791. +# One issue with vendor `install' (even GNU) is that you can't
  4792. +# specify the program used to strip binaries. This is especially
  4793. +# annoying in cross-compiling environments, where the build's strip
  4794. +# is unlikely to handle the host's binaries.
  4795. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  4796. +# always use install-sh in `make install-strip', and initialize
  4797. +# STRIPPROG with the value of the STRIP variable (set by the user).
  4798. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  4799. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  4800. +# Installed binaries are usually stripped using `strip' when the user
  4801. +# run `make install-strip'. However `strip' might not be the right
  4802. +# tool to use in cross-compilation environments, therefore Automake
  4803. +# will honor the `STRIP' environment variable to overrule this program.
  4804. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  4805. +if test "$cross_compiling" != no; then
  4806. + AC_CHECK_TOOL([STRIP], [strip], :)
  4807. +fi
  4808. +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  4809. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  4810. +
  4811. +# Check how to create a tarball. -*- Autoconf -*-
  4812. +
  4813. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  4814. +#
  4815. +# This file is free software; the Free Software Foundation
  4816. +# gives unlimited permission to copy and/or distribute it,
  4817. +# with or without modifications, as long as this notice is preserved.
  4818. +
  4819. +# serial 2
  4820. +
  4821. +# _AM_PROG_TAR(FORMAT)
  4822. +# --------------------
  4823. +# Check how to create a tarball in format FORMAT.
  4824. +# FORMAT should be one of `v7', `ustar', or `pax'.
  4825. +#
  4826. +# Substitute a variable $(am__tar) that is a command
  4827. +# writing to stdout a FORMAT-tarball containing the directory
  4828. +# $tardir.
  4829. +# tardir=directory && $(am__tar) > result.tar
  4830. +#
  4831. +# Substitute a variable $(am__untar) that extract such
  4832. +# a tarball read from stdin.
  4833. +# $(am__untar) < result.tar
  4834. +AC_DEFUN([_AM_PROG_TAR],
  4835. +[# Always define AMTAR for backward compatibility.
  4836. +AM_MISSING_PROG([AMTAR], [tar])
  4837. +m4_if([$1], [v7],
  4838. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  4839. + [m4_case([$1], [ustar],, [pax],,
  4840. + [m4_fatal([Unknown tar format])])
  4841. +AC_MSG_CHECKING([how to create a $1 tar archive])
  4842. +# Loop over all known methods to create a tar archive until one works.
  4843. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  4844. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  4845. +# Do not fold the above two line into one, because Tru64 sh and
  4846. +# Solaris sh will not grok spaces in the rhs of `-'.
  4847. +for _am_tool in $_am_tools
  4848. +do
  4849. + case $_am_tool in
  4850. + gnutar)
  4851. + for _am_tar in tar gnutar gtar;
  4852. + do
  4853. + AM_RUN_LOG([$_am_tar --version]) && break
  4854. + done
  4855. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  4856. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  4857. + am__untar="$_am_tar -xf -"
  4858. + ;;
  4859. + plaintar)
  4860. + # Must skip GNU tar: if it does not support --format= it doesn't create
  4861. + # ustar tarball either.
  4862. + (tar --version) >/dev/null 2>&1 && continue
  4863. + am__tar='tar chf - "$$tardir"'
  4864. + am__tar_='tar chf - "$tardir"'
  4865. + am__untar='tar xf -'
  4866. + ;;
  4867. + pax)
  4868. + am__tar='pax -L -x $1 -w "$$tardir"'
  4869. + am__tar_='pax -L -x $1 -w "$tardir"'
  4870. + am__untar='pax -r'
  4871. + ;;
  4872. + cpio)
  4873. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  4874. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  4875. + am__untar='cpio -i -H $1 -d'
  4876. + ;;
  4877. + none)
  4878. + am__tar=false
  4879. + am__tar_=false
  4880. + am__untar=false
  4881. + ;;
  4882. + esac
  4883. +
  4884. + # If the value was cached, stop now. We just wanted to have am__tar
  4885. + # and am__untar set.
  4886. + test -n "${am_cv_prog_tar_$1}" && break
  4887. +
  4888. + # tar/untar a dummy directory, and stop if the command works
  4889. + rm -rf conftest.dir
  4890. + mkdir conftest.dir
  4891. + echo GrepMe > conftest.dir/file
  4892. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  4893. + rm -rf conftest.dir
  4894. + if test -s conftest.tar; then
  4895. + AM_RUN_LOG([$am__untar <conftest.tar])
  4896. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  4897. + fi
  4898. +done
  4899. +rm -rf conftest.dir
  4900. +
  4901. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  4902. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  4903. +AC_SUBST([am__tar])
  4904. +AC_SUBST([am__untar])
  4905. +]) # _AM_PROG_TAR
  4906. +
  4907. Index: linux-atm-2.4.1/configure
  4908. ===================================================================
  4909. --- linux-atm-2.4.1.orig/configure 2007-10-20 21:45:35.770870894 +0200
  4910. +++ linux-atm-2.4.1/configure 2007-10-20 21:45:44.283355992 +0200
  4911. @@ -1,25 +1,54 @@
  4912. #! /bin/sh
  4913. # Guess values for system-dependent variables and create Makefiles.
  4914. -# Generated by GNU Autoconf 2.59.
  4915. +# Generated by GNU Autoconf 2.61.
  4916. #
  4917. -# Copyright (C) 2003 Free Software Foundation, Inc.
  4918. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  4919. +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  4920. # This configure script is free software; the Free Software Foundation
  4921. # gives unlimited permission to copy, distribute and modify it.
  4922. ## --------------------- ##
  4923. ## M4sh Initialization. ##
  4924. ## --------------------- ##
  4925. -# Be Bourne compatible
  4926. +# Be more Bourne compatible
  4927. +DUALCASE=1; export DUALCASE # for MKS sh
  4928. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4929. emulate sh
  4930. NULLCMD=:
  4931. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4932. # is contrary to our usage. Disable this feature.
  4933. alias -g '${1+"$@"}'='"$@"'
  4934. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  4935. - set -o posix
  4936. + setopt NO_GLOB_SUBST
  4937. +else
  4938. + case `(set -o) 2>/dev/null` in
  4939. + *posix*) set -o posix ;;
  4940. +esac
  4941. +
  4942. +fi
  4943. +
  4944. +
  4945. +
  4946. +
  4947. +# PATH needs CR
  4948. +# Avoid depending upon Character Ranges.
  4949. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4950. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4951. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4952. +as_cr_digits='0123456789'
  4953. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  4954. +
  4955. +# The user is always right.
  4956. +if test "${PATH_SEPARATOR+set}" != set; then
  4957. + echo "#! /bin/sh" >conf$$.sh
  4958. + echo "exit 0" >>conf$$.sh
  4959. + chmod +x conf$$.sh
  4960. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4961. + PATH_SEPARATOR=';'
  4962. + else
  4963. + PATH_SEPARATOR=:
  4964. + fi
  4965. + rm -f conf$$.sh
  4966. fi
  4967. -DUALCASE=1; export DUALCASE # for MKS sh
  4968. # Support unset when possible.
  4969. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4970. @@ -29,8 +58,43 @@
  4971. fi
  4972. +# IFS
  4973. +# We need space, tab and new line, in precisely that order. Quoting is
  4974. +# there to prevent editors from complaining about space-tab.
  4975. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4976. +# splitting by setting IFS to empty value.)
  4977. +as_nl='
  4978. +'
  4979. +IFS=" "" $as_nl"
  4980. +
  4981. +# Find who we are. Look in the path if we contain no directory separator.
  4982. +case $0 in
  4983. + *[\\/]* ) as_myself=$0 ;;
  4984. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4985. +for as_dir in $PATH
  4986. +do
  4987. + IFS=$as_save_IFS
  4988. + test -z "$as_dir" && as_dir=.
  4989. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4990. +done
  4991. +IFS=$as_save_IFS
  4992. +
  4993. + ;;
  4994. +esac
  4995. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  4996. +# in which case we are not to be found in the path.
  4997. +if test "x$as_myself" = x; then
  4998. + as_myself=$0
  4999. +fi
  5000. +if test ! -f "$as_myself"; then
  5001. + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5002. + { (exit 1); exit 1; }
  5003. +fi
  5004. +
  5005. # Work around bugs in pre-3.0 UWIN ksh.
  5006. -$as_unset ENV MAIL MAILPATH
  5007. +for as_var in ENV MAIL MAILPATH
  5008. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5009. +done
  5010. PS1='$ '
  5011. PS2='> '
  5012. PS4='+ '
  5013. @@ -44,18 +108,19 @@
  5014. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5015. eval $as_var=C; export $as_var
  5016. else
  5017. - $as_unset $as_var
  5018. + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5019. fi
  5020. done
  5021. # Required to use basename.
  5022. -if expr a : '\(a\)' >/dev/null 2>&1; then
  5023. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  5024. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5025. as_expr=expr
  5026. else
  5027. as_expr=false
  5028. fi
  5029. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  5030. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5031. as_basename=basename
  5032. else
  5033. as_basename=false
  5034. @@ -63,157 +128,388 @@
  5035. # Name of the executable.
  5036. -as_me=`$as_basename "$0" ||
  5037. +as_me=`$as_basename -- "$0" ||
  5038. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5039. X"$0" : 'X\(//\)$' \| \
  5040. - X"$0" : 'X\(/\)$' \| \
  5041. - . : '\(.\)' 2>/dev/null ||
  5042. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5043. echo X/"$0" |
  5044. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  5045. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  5046. - /^X\/\(\/\).*/{ s//\1/; q; }
  5047. - s/.*/./; q'`
  5048. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  5049. + s//\1/
  5050. + q
  5051. + }
  5052. + /^X\/\(\/\/\)$/{
  5053. + s//\1/
  5054. + q
  5055. + }
  5056. + /^X\/\(\/\).*/{
  5057. + s//\1/
  5058. + q
  5059. + }
  5060. + s/.*/./; q'`
  5061. +# CDPATH.
  5062. +$as_unset CDPATH
  5063. -# PATH needs CR, and LINENO needs CR and PATH.
  5064. -# Avoid depending upon Character Ranges.
  5065. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5066. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5067. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5068. -as_cr_digits='0123456789'
  5069. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  5070. -# The user is always right.
  5071. -if test "${PATH_SEPARATOR+set}" != set; then
  5072. - echo "#! /bin/sh" >conf$$.sh
  5073. - echo "exit 0" >>conf$$.sh
  5074. - chmod +x conf$$.sh
  5075. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5076. - PATH_SEPARATOR=';'
  5077. - else
  5078. - PATH_SEPARATOR=:
  5079. - fi
  5080. - rm -f conf$$.sh
  5081. +if test "x$CONFIG_SHELL" = x; then
  5082. + if (eval ":") 2>/dev/null; then
  5083. + as_have_required=yes
  5084. +else
  5085. + as_have_required=no
  5086. +fi
  5087. +
  5088. + if test $as_have_required = yes && (eval ":
  5089. +(as_func_return () {
  5090. + (exit \$1)
  5091. +}
  5092. +as_func_success () {
  5093. + as_func_return 0
  5094. +}
  5095. +as_func_failure () {
  5096. + as_func_return 1
  5097. +}
  5098. +as_func_ret_success () {
  5099. + return 0
  5100. +}
  5101. +as_func_ret_failure () {
  5102. + return 1
  5103. +}
  5104. +
  5105. +exitcode=0
  5106. +if as_func_success; then
  5107. + :
  5108. +else
  5109. + exitcode=1
  5110. + echo as_func_success failed.
  5111. fi
  5112. +if as_func_failure; then
  5113. + exitcode=1
  5114. + echo as_func_failure succeeded.
  5115. +fi
  5116. - as_lineno_1=$LINENO
  5117. - as_lineno_2=$LINENO
  5118. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  5119. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  5120. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  5121. - # Find who we are. Look in the path if we contain no path at all
  5122. - # relative or not.
  5123. - case $0 in
  5124. - *[\\/]* ) as_myself=$0 ;;
  5125. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5126. -for as_dir in $PATH
  5127. -do
  5128. - IFS=$as_save_IFS
  5129. - test -z "$as_dir" && as_dir=.
  5130. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5131. -done
  5132. +if as_func_ret_success; then
  5133. + :
  5134. +else
  5135. + exitcode=1
  5136. + echo as_func_ret_success failed.
  5137. +fi
  5138. - ;;
  5139. - esac
  5140. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  5141. - # in which case we are not to be found in the path.
  5142. - if test "x$as_myself" = x; then
  5143. - as_myself=$0
  5144. - fi
  5145. - if test ! -f "$as_myself"; then
  5146. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  5147. - { (exit 1); exit 1; }; }
  5148. - fi
  5149. - case $CONFIG_SHELL in
  5150. - '')
  5151. +if as_func_ret_failure; then
  5152. + exitcode=1
  5153. + echo as_func_ret_failure succeeded.
  5154. +fi
  5155. +
  5156. +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  5157. + :
  5158. +else
  5159. + exitcode=1
  5160. + echo positional parameters were not saved.
  5161. +fi
  5162. +
  5163. +test \$exitcode = 0) || { (exit 1); exit 1; }
  5164. +
  5165. +(
  5166. + as_lineno_1=\$LINENO
  5167. + as_lineno_2=\$LINENO
  5168. + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  5169. + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  5170. +") 2> /dev/null; then
  5171. + :
  5172. +else
  5173. + as_candidate_shells=
  5174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  5176. do
  5177. IFS=$as_save_IFS
  5178. test -z "$as_dir" && as_dir=.
  5179. - for as_base in sh bash ksh sh5; do
  5180. - case $as_dir in
  5181. + case $as_dir in
  5182. /*)
  5183. - if ("$as_dir/$as_base" -c '
  5184. + for as_base in sh bash ksh sh5; do
  5185. + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  5186. + done;;
  5187. + esac
  5188. +done
  5189. +IFS=$as_save_IFS
  5190. +
  5191. +
  5192. + for as_shell in $as_candidate_shells $SHELL; do
  5193. + # Try only shells that exist, to save several forks.
  5194. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  5195. + { ("$as_shell") 2> /dev/null <<\_ASEOF
  5196. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5197. + emulate sh
  5198. + NULLCMD=:
  5199. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5200. + # is contrary to our usage. Disable this feature.
  5201. + alias -g '${1+"$@"}'='"$@"'
  5202. + setopt NO_GLOB_SUBST
  5203. +else
  5204. + case `(set -o) 2>/dev/null` in
  5205. + *posix*) set -o posix ;;
  5206. +esac
  5207. +
  5208. +fi
  5209. +
  5210. +
  5211. +:
  5212. +_ASEOF
  5213. +}; then
  5214. + CONFIG_SHELL=$as_shell
  5215. + as_have_required=yes
  5216. + if { "$as_shell" 2> /dev/null <<\_ASEOF
  5217. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5218. + emulate sh
  5219. + NULLCMD=:
  5220. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5221. + # is contrary to our usage. Disable this feature.
  5222. + alias -g '${1+"$@"}'='"$@"'
  5223. + setopt NO_GLOB_SUBST
  5224. +else
  5225. + case `(set -o) 2>/dev/null` in
  5226. + *posix*) set -o posix ;;
  5227. +esac
  5228. +
  5229. +fi
  5230. +
  5231. +
  5232. +:
  5233. +(as_func_return () {
  5234. + (exit $1)
  5235. +}
  5236. +as_func_success () {
  5237. + as_func_return 0
  5238. +}
  5239. +as_func_failure () {
  5240. + as_func_return 1
  5241. +}
  5242. +as_func_ret_success () {
  5243. + return 0
  5244. +}
  5245. +as_func_ret_failure () {
  5246. + return 1
  5247. +}
  5248. +
  5249. +exitcode=0
  5250. +if as_func_success; then
  5251. + :
  5252. +else
  5253. + exitcode=1
  5254. + echo as_func_success failed.
  5255. +fi
  5256. +
  5257. +if as_func_failure; then
  5258. + exitcode=1
  5259. + echo as_func_failure succeeded.
  5260. +fi
  5261. +
  5262. +if as_func_ret_success; then
  5263. + :
  5264. +else
  5265. + exitcode=1
  5266. + echo as_func_ret_success failed.
  5267. +fi
  5268. +
  5269. +if as_func_ret_failure; then
  5270. + exitcode=1
  5271. + echo as_func_ret_failure succeeded.
  5272. +fi
  5273. +
  5274. +if ( set x; as_func_ret_success y && test x = "$1" ); then
  5275. + :
  5276. +else
  5277. + exitcode=1
  5278. + echo positional parameters were not saved.
  5279. +fi
  5280. +
  5281. +test $exitcode = 0) || { (exit 1); exit 1; }
  5282. +
  5283. +(
  5284. as_lineno_1=$LINENO
  5285. as_lineno_2=$LINENO
  5286. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  5287. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5288. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  5289. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  5290. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  5291. - CONFIG_SHELL=$as_dir/$as_base
  5292. - export CONFIG_SHELL
  5293. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  5294. - fi;;
  5295. - esac
  5296. - done
  5297. -done
  5298. -;;
  5299. - esac
  5300. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  5301. +
  5302. +_ASEOF
  5303. +}; then
  5304. + break
  5305. +fi
  5306. +
  5307. +fi
  5308. +
  5309. + done
  5310. +
  5311. + if test "x$CONFIG_SHELL" != x; then
  5312. + for as_var in BASH_ENV ENV
  5313. + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5314. + done
  5315. + export CONFIG_SHELL
  5316. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  5317. +fi
  5318. +
  5319. +
  5320. + if test $as_have_required = no; then
  5321. + echo This script requires a shell more modern than all the
  5322. + echo shells that I found on your system. Please install a
  5323. + echo modern shell, or manually run the script under such a
  5324. + echo shell if you do have one.
  5325. + { (exit 1); exit 1; }
  5326. +fi
  5327. +
  5328. +
  5329. +fi
  5330. +
  5331. +fi
  5332. +
  5333. +
  5334. +
  5335. +(eval "as_func_return () {
  5336. + (exit \$1)
  5337. +}
  5338. +as_func_success () {
  5339. + as_func_return 0
  5340. +}
  5341. +as_func_failure () {
  5342. + as_func_return 1
  5343. +}
  5344. +as_func_ret_success () {
  5345. + return 0
  5346. +}
  5347. +as_func_ret_failure () {
  5348. + return 1
  5349. +}
  5350. +
  5351. +exitcode=0
  5352. +if as_func_success; then
  5353. + :
  5354. +else
  5355. + exitcode=1
  5356. + echo as_func_success failed.
  5357. +fi
  5358. +
  5359. +if as_func_failure; then
  5360. + exitcode=1
  5361. + echo as_func_failure succeeded.
  5362. +fi
  5363. +
  5364. +if as_func_ret_success; then
  5365. + :
  5366. +else
  5367. + exitcode=1
  5368. + echo as_func_ret_success failed.
  5369. +fi
  5370. +
  5371. +if as_func_ret_failure; then
  5372. + exitcode=1
  5373. + echo as_func_ret_failure succeeded.
  5374. +fi
  5375. +
  5376. +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  5377. + :
  5378. +else
  5379. + exitcode=1
  5380. + echo positional parameters were not saved.
  5381. +fi
  5382. +
  5383. +test \$exitcode = 0") || {
  5384. + echo No shell found that supports shell functions.
  5385. + echo Please tell [email protected] about your system,
  5386. + echo including any error possibly output before this
  5387. + echo message
  5388. +}
  5389. +
  5390. +
  5391. +
  5392. + as_lineno_1=$LINENO
  5393. + as_lineno_2=$LINENO
  5394. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  5395. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  5396. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5397. # uniformly replaced by the line number. The first 'sed' inserts a
  5398. - # line-number line before each line; the second 'sed' does the real
  5399. - # work. The second script uses 'N' to pair each line-number line
  5400. - # with the numbered line, and appends trailing '-' during
  5401. - # substitution so that $LINENO is not a special case at line end.
  5402. + # line-number line after each line using $LINENO; the second 'sed'
  5403. + # does the real work. The second script uses 'N' to pair each
  5404. + # line-number line with the line containing $LINENO, and appends
  5405. + # trailing '-' during substitution so that $LINENO is not a special
  5406. + # case at line end.
  5407. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5408. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  5409. - sed '=' <$as_myself |
  5410. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  5411. + # E. McMahon (1931-1989) for sed's syntax. :-)
  5412. + sed -n '
  5413. + p
  5414. + /[$]LINENO/=
  5415. + ' <$as_myself |
  5416. sed '
  5417. + s/[$]LINENO.*/&-/
  5418. + t lineno
  5419. + b
  5420. + :lineno
  5421. N
  5422. - s,$,-,
  5423. - : loop
  5424. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  5425. + :loop
  5426. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  5427. t loop
  5428. - s,-$,,
  5429. - s,^['$as_cr_digits']*\n,,
  5430. + s/-\n.*//
  5431. ' >$as_me.lineno &&
  5432. - chmod +x $as_me.lineno ||
  5433. + chmod +x "$as_me.lineno" ||
  5434. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  5435. { (exit 1); exit 1; }; }
  5436. # Don't try to exec as it changes $[0], causing all sort of problems
  5437. # (the dirname of $[0] is not the place where we might find the
  5438. - # original and so on. Autoconf is especially sensible to this).
  5439. - . ./$as_me.lineno
  5440. + # original and so on. Autoconf is especially sensitive to this).
  5441. + . "./$as_me.lineno"
  5442. # Exit status is that of the last command.
  5443. exit
  5444. }
  5445. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  5446. - *c*,-n*) ECHO_N= ECHO_C='
  5447. -' ECHO_T=' ' ;;
  5448. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  5449. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  5450. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5451. + as_dirname=dirname
  5452. +else
  5453. + as_dirname=false
  5454. +fi
  5455. +
  5456. +ECHO_C= ECHO_N= ECHO_T=
  5457. +case `echo -n x` in
  5458. +-n*)
  5459. + case `echo 'x\c'` in
  5460. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5461. + *) ECHO_C='\c';;
  5462. + esac;;
  5463. +*)
  5464. + ECHO_N='-n';;
  5465. esac
  5466. -if expr a : '\(a\)' >/dev/null 2>&1; then
  5467. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  5468. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5469. as_expr=expr
  5470. else
  5471. as_expr=false
  5472. fi
  5473. rm -f conf$$ conf$$.exe conf$$.file
  5474. +if test -d conf$$.dir; then
  5475. + rm -f conf$$.dir/conf$$.file
  5476. +else
  5477. + rm -f conf$$.dir
  5478. + mkdir conf$$.dir
  5479. +fi
  5480. echo >conf$$.file
  5481. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5482. - # We could just check for DJGPP; but this test a) works b) is more generic
  5483. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  5484. - if test -f conf$$.exe; then
  5485. - # Don't use ln at all; we don't have any links
  5486. + as_ln_s='ln -s'
  5487. + # ... but there are two gotchas:
  5488. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5489. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5490. + # In both cases, we have to default to `cp -p'.
  5491. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5492. as_ln_s='cp -p'
  5493. - else
  5494. - as_ln_s='ln -s'
  5495. - fi
  5496. elif ln conf$$.file conf$$ 2>/dev/null; then
  5497. as_ln_s=ln
  5498. else
  5499. as_ln_s='cp -p'
  5500. fi
  5501. -rm -f conf$$ conf$$.exe conf$$.file
  5502. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5503. +rmdir conf$$.dir 2>/dev/null
  5504. if mkdir -p . 2>/dev/null; then
  5505. as_mkdir_p=:
  5506. @@ -222,7 +518,28 @@
  5507. as_mkdir_p=false
  5508. fi
  5509. -as_executable_p="test -f"
  5510. +if test -x / >/dev/null 2>&1; then
  5511. + as_test_x='test -x'
  5512. +else
  5513. + if ls -dL / >/dev/null 2>&1; then
  5514. + as_ls_L_option=L
  5515. + else
  5516. + as_ls_L_option=
  5517. + fi
  5518. + as_test_x='
  5519. + eval sh -c '\''
  5520. + if test -d "$1"; then
  5521. + test -d "$1/.";
  5522. + else
  5523. + case $1 in
  5524. + -*)set "./$1";;
  5525. + esac;
  5526. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  5527. + ???[sx]*):;;*)false;;esac;fi
  5528. + '\'' sh
  5529. + '
  5530. +fi
  5531. +as_executable_p=$as_test_x
  5532. # Sed expression to map a string onto a valid CPP name.
  5533. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5534. @@ -231,26 +548,6 @@
  5535. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5536. -# IFS
  5537. -# We need space, tab and new line, in precisely that order.
  5538. -as_nl='
  5539. -'
  5540. -IFS=" $as_nl"
  5541. -
  5542. -# CDPATH.
  5543. -$as_unset CDPATH
  5544. -
  5545. -
  5546. -# Find the correct PATH separator. Usually this is `:', but
  5547. -# DJGPP uses `;' like DOS.
  5548. -if test "X${PATH_SEPARATOR+set}" != Xset; then
  5549. - UNAME=${UNAME-`uname 2>/dev/null`}
  5550. - case X$UNAME in
  5551. - *-DOS) lt_cv_sys_path_separator=';' ;;
  5552. - *) lt_cv_sys_path_separator=':' ;;
  5553. - esac
  5554. - PATH_SEPARATOR=$lt_cv_sys_path_separator
  5555. -fi
  5556. # Check that we are running under the correct shell.
  5557. @@ -270,7 +567,7 @@
  5558. elif test "X$1" = X--fallback-echo; then
  5559. # Avoid inline document here, it may be left over
  5560. :
  5561. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  5562. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  5563. # Yippee, $echo works!
  5564. :
  5565. else
  5566. @@ -282,22 +579,22 @@
  5567. # used as fallback echo
  5568. shift
  5569. cat <<EOF
  5570. -
  5571. +$*
  5572. EOF
  5573. exit 0
  5574. fi
  5575. # The HP-UX ksh and POSIX shell print the target directory to stdout
  5576. # if CDPATH is set.
  5577. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  5578. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5579. if test -z "$ECHO"; then
  5580. if test "X${echo_test_string+set}" != Xset; then
  5581. # find a string as large as possible, as long as the shell can cope with it
  5582. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  5583. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  5584. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  5585. - echo_test_string="`eval $cmd`" &&
  5586. + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  5587. + echo_test_string=`eval $cmd` &&
  5588. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  5589. then
  5590. break
  5591. @@ -316,8 +613,9 @@
  5592. #
  5593. # So, first we look for a working echo in the user's PATH.
  5594. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5595. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5596. for dir in $PATH /usr/ucb; do
  5597. + IFS="$lt_save_ifs"
  5598. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  5599. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  5600. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  5601. @@ -326,7 +624,7 @@
  5602. break
  5603. fi
  5604. done
  5605. - IFS="$save_ifs"
  5606. + IFS="$lt_save_ifs"
  5607. if test "X$echo" = Xecho; then
  5608. # We didn't find a better echo, so look for alternatives.
  5609. @@ -400,29 +698,31 @@
  5610. +
  5611. +tagnames=${tagnames+${tagnames},}CXX
  5612. +
  5613. +tagnames=${tagnames+${tagnames},}F77
  5614. +
  5615. +exec 7<&0 </dev/null 6>&1
  5616. +
  5617. # Name of the host.
  5618. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  5619. # so uname gets run too.
  5620. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  5621. -exec 6>&1
  5622. -
  5623. #
  5624. # Initializations.
  5625. #
  5626. ac_default_prefix=/usr/local
  5627. +ac_clean_files=
  5628. ac_config_libobj_dir=.
  5629. +LIBOBJS=
  5630. cross_compiling=no
  5631. subdirs=
  5632. MFLAGS=
  5633. MAKEFLAGS=
  5634. SHELL=${CONFIG_SHELL-/bin/sh}
  5635. -# Maximum number of lines to put in a shell here document.
  5636. -# This variable seems obsolete. It should probably be removed, and
  5637. -# only ac_max_sed_lines should be used.
  5638. -: ${ac_max_here_lines=38}
  5639. -
  5640. # Identity of this package.
  5641. PACKAGE_NAME=
  5642. PACKAGE_TARNAME=
  5643. @@ -434,42 +734,174 @@
  5644. # Factoring default headers for most tests.
  5645. ac_includes_default="\
  5646. #include <stdio.h>
  5647. -#if HAVE_SYS_TYPES_H
  5648. +#ifdef HAVE_SYS_TYPES_H
  5649. # include <sys/types.h>
  5650. #endif
  5651. -#if HAVE_SYS_STAT_H
  5652. +#ifdef HAVE_SYS_STAT_H
  5653. # include <sys/stat.h>
  5654. #endif
  5655. -#if STDC_HEADERS
  5656. +#ifdef STDC_HEADERS
  5657. # include <stdlib.h>
  5658. # include <stddef.h>
  5659. #else
  5660. -# if HAVE_STDLIB_H
  5661. +# ifdef HAVE_STDLIB_H
  5662. # include <stdlib.h>
  5663. # endif
  5664. #endif
  5665. -#if HAVE_STRING_H
  5666. -# if !STDC_HEADERS && HAVE_MEMORY_H
  5667. +#ifdef HAVE_STRING_H
  5668. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  5669. # include <memory.h>
  5670. # endif
  5671. # include <string.h>
  5672. #endif
  5673. -#if HAVE_STRINGS_H
  5674. +#ifdef HAVE_STRINGS_H
  5675. # include <strings.h>
  5676. #endif
  5677. -#if HAVE_INTTYPES_H
  5678. +#ifdef HAVE_INTTYPES_H
  5679. # include <inttypes.h>
  5680. -#else
  5681. -# if HAVE_STDINT_H
  5682. -# include <stdint.h>
  5683. -# endif
  5684. #endif
  5685. -#if HAVE_UNISTD_H
  5686. +#ifdef HAVE_STDINT_H
  5687. +# include <stdint.h>
  5688. +#endif
  5689. +#ifdef HAVE_UNISTD_H
  5690. # include <unistd.h>
  5691. #endif"
  5692. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE LIBVER_CURRENT LIBVER_REVISION LIBVER_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL LIBTOOL_DEPS PERL LIBOBJS LTLIBOBJS'
  5693. +ac_subst_vars='SHELL
  5694. +PATH_SEPARATOR
  5695. +PACKAGE_NAME
  5696. +PACKAGE_TARNAME
  5697. +PACKAGE_VERSION
  5698. +PACKAGE_STRING
  5699. +PACKAGE_BUGREPORT
  5700. +exec_prefix
  5701. +prefix
  5702. +program_transform_name
  5703. +bindir
  5704. +sbindir
  5705. +libexecdir
  5706. +datarootdir
  5707. +datadir
  5708. +sysconfdir
  5709. +sharedstatedir
  5710. +localstatedir
  5711. +includedir
  5712. +oldincludedir
  5713. +docdir
  5714. +infodir
  5715. +htmldir
  5716. +dvidir
  5717. +pdfdir
  5718. +psdir
  5719. +libdir
  5720. +localedir
  5721. +mandir
  5722. +DEFS
  5723. +ECHO_C
  5724. +ECHO_N
  5725. +ECHO_T
  5726. +LIBS
  5727. +build_alias
  5728. +host_alias
  5729. +target_alias
  5730. +build
  5731. +build_cpu
  5732. +build_vendor
  5733. +build_os
  5734. +host
  5735. +host_cpu
  5736. +host_vendor
  5737. +host_os
  5738. +target
  5739. +target_cpu
  5740. +target_vendor
  5741. +target_os
  5742. +INSTALL_PROGRAM
  5743. +INSTALL_SCRIPT
  5744. +INSTALL_DATA
  5745. +CYGPATH_W
  5746. +PACKAGE
  5747. +VERSION
  5748. +ACLOCAL
  5749. +AUTOCONF
  5750. +AUTOMAKE
  5751. +AUTOHEADER
  5752. +MAKEINFO
  5753. +install_sh
  5754. +STRIP
  5755. +INSTALL_STRIP_PROGRAM
  5756. +mkdir_p
  5757. +AWK
  5758. +SET_MAKE
  5759. +am__leading_dot
  5760. +AMTAR
  5761. +am__tar
  5762. +am__untar
  5763. +LIBVER_CURRENT
  5764. +LIBVER_REVISION
  5765. +LIBVER_AGE
  5766. +CC
  5767. +CFLAGS
  5768. +LDFLAGS
  5769. +CPPFLAGS
  5770. +ac_ct_CC
  5771. +EXEEXT
  5772. +OBJEXT
  5773. +DEPDIR
  5774. +am__include
  5775. +am__quote
  5776. +AMDEP_TRUE
  5777. +AMDEP_FALSE
  5778. +AMDEPBACKSLASH
  5779. +CCDEPMODE
  5780. +am__fastdepCC_TRUE
  5781. +am__fastdepCC_FALSE
  5782. +LEX
  5783. +LEX_OUTPUT_ROOT
  5784. +LEXLIB
  5785. +YACC
  5786. +YFLAGS
  5787. +GREP
  5788. +EGREP
  5789. +LN_S
  5790. +ECHO
  5791. +AR
  5792. +RANLIB
  5793. +CPP
  5794. +CXX
  5795. +CXXFLAGS
  5796. +ac_ct_CXX
  5797. +CXXDEPMODE
  5798. +am__fastdepCXX_TRUE
  5799. +am__fastdepCXX_FALSE
  5800. +CXXCPP
  5801. +F77
  5802. +FFLAGS
  5803. +ac_ct_F77
  5804. +LIBTOOL
  5805. +LIBTOOL_DEPS
  5806. +PERL
  5807. +LIBOBJS
  5808. +LTLIBOBJS'
  5809. ac_subst_files=''
  5810. + ac_precious_vars='build_alias
  5811. +host_alias
  5812. +target_alias
  5813. +CC
  5814. +CFLAGS
  5815. +LDFLAGS
  5816. +LIBS
  5817. +CPPFLAGS
  5818. +YACC
  5819. +YFLAGS
  5820. +CPP
  5821. +CXX
  5822. +CXXFLAGS
  5823. +CCC
  5824. +CXXCPP
  5825. +F77
  5826. +FFLAGS'
  5827. +
  5828. # Initialize some variables set by options.
  5829. ac_init_help=
  5830. @@ -496,34 +928,48 @@
  5831. # and all the variables that are supposed to be based on exec_prefix
  5832. # by default will actually change.
  5833. # Use braces instead of parens because sh, perl, etc. also accept them.
  5834. +# (The list follows the same order as the GNU Coding Standards.)
  5835. bindir='${exec_prefix}/bin'
  5836. sbindir='${exec_prefix}/sbin'
  5837. libexecdir='${exec_prefix}/libexec'
  5838. -datadir='${prefix}/share'
  5839. +datarootdir='${prefix}/share'
  5840. +datadir='${datarootdir}'
  5841. sysconfdir='${prefix}/etc'
  5842. sharedstatedir='${prefix}/com'
  5843. localstatedir='${prefix}/var'
  5844. -libdir='${exec_prefix}/lib'
  5845. includedir='${prefix}/include'
  5846. oldincludedir='/usr/include'
  5847. -infodir='${prefix}/info'
  5848. -mandir='${prefix}/man'
  5849. +docdir='${datarootdir}/doc/${PACKAGE}'
  5850. +infodir='${datarootdir}/info'
  5851. +htmldir='${docdir}'
  5852. +dvidir='${docdir}'
  5853. +pdfdir='${docdir}'
  5854. +psdir='${docdir}'
  5855. +libdir='${exec_prefix}/lib'
  5856. +localedir='${datarootdir}/locale'
  5857. +mandir='${datarootdir}/man'
  5858. ac_prev=
  5859. +ac_dashdash=
  5860. for ac_option
  5861. do
  5862. # If the previous option needs an argument, assign it.
  5863. if test -n "$ac_prev"; then
  5864. - eval "$ac_prev=\$ac_option"
  5865. + eval $ac_prev=\$ac_option
  5866. ac_prev=
  5867. continue
  5868. fi
  5869. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  5870. + case $ac_option in
  5871. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  5872. + *) ac_optarg=yes ;;
  5873. + esac
  5874. # Accept the important Cygnus configure options, so we can diagnose typos.
  5875. - case $ac_option in
  5876. + case $ac_dashdash$ac_option in
  5877. + --)
  5878. + ac_dashdash=yes ;;
  5879. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  5880. ac_prev=bindir ;;
  5881. @@ -545,33 +991,45 @@
  5882. --config-cache | -C)
  5883. cache_file=config.cache ;;
  5884. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  5885. + -datadir | --datadir | --datadi | --datad)
  5886. ac_prev=datadir ;;
  5887. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  5888. - | --da=*)
  5889. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  5890. datadir=$ac_optarg ;;
  5891. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  5892. + | --dataroo | --dataro | --datar)
  5893. + ac_prev=datarootdir ;;
  5894. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  5895. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  5896. + datarootdir=$ac_optarg ;;
  5897. +
  5898. -disable-* | --disable-*)
  5899. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  5900. # Reject names that are not valid shell variable names.
  5901. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  5902. + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  5903. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  5904. { (exit 1); exit 1; }; }
  5905. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  5906. - eval "enable_$ac_feature=no" ;;
  5907. + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  5908. + eval enable_$ac_feature=no ;;
  5909. +
  5910. + -docdir | --docdir | --docdi | --doc | --do)
  5911. + ac_prev=docdir ;;
  5912. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  5913. + docdir=$ac_optarg ;;
  5914. +
  5915. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  5916. + ac_prev=dvidir ;;
  5917. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  5918. + dvidir=$ac_optarg ;;
  5919. -enable-* | --enable-*)
  5920. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  5921. # Reject names that are not valid shell variable names.
  5922. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  5923. + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  5924. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  5925. { (exit 1); exit 1; }; }
  5926. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  5927. - case $ac_option in
  5928. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  5929. - *) ac_optarg=yes ;;
  5930. - esac
  5931. - eval "enable_$ac_feature='$ac_optarg'" ;;
  5932. + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  5933. + eval enable_$ac_feature=\$ac_optarg ;;
  5934. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  5935. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  5936. @@ -598,6 +1056,12 @@
  5937. -host=* | --host=* | --hos=* | --ho=*)
  5938. host_alias=$ac_optarg ;;
  5939. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  5940. + ac_prev=htmldir ;;
  5941. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  5942. + | --ht=*)
  5943. + htmldir=$ac_optarg ;;
  5944. +
  5945. -includedir | --includedir | --includedi | --included | --include \
  5946. | --includ | --inclu | --incl | --inc)
  5947. ac_prev=includedir ;;
  5948. @@ -622,13 +1086,16 @@
  5949. | --libexe=* | --libex=* | --libe=*)
  5950. libexecdir=$ac_optarg ;;
  5951. + -localedir | --localedir | --localedi | --localed | --locale)
  5952. + ac_prev=localedir ;;
  5953. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  5954. + localedir=$ac_optarg ;;
  5955. +
  5956. -localstatedir | --localstatedir | --localstatedi | --localstated \
  5957. - | --localstate | --localstat | --localsta | --localst \
  5958. - | --locals | --local | --loca | --loc | --lo)
  5959. + | --localstate | --localstat | --localsta | --localst | --locals)
  5960. ac_prev=localstatedir ;;
  5961. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  5962. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  5963. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  5964. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  5965. localstatedir=$ac_optarg ;;
  5966. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  5967. @@ -693,6 +1160,16 @@
  5968. | --progr-tra=* | --program-tr=* | --program-t=*)
  5969. program_transform_name=$ac_optarg ;;
  5970. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  5971. + ac_prev=pdfdir ;;
  5972. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  5973. + pdfdir=$ac_optarg ;;
  5974. +
  5975. + -psdir | --psdir | --psdi | --psd | --ps)
  5976. + ac_prev=psdir ;;
  5977. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  5978. + psdir=$ac_optarg ;;
  5979. +
  5980. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5981. | -silent | --silent | --silen | --sile | --sil)
  5982. silent=yes ;;
  5983. @@ -745,24 +1222,20 @@
  5984. -with-* | --with-*)
  5985. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  5986. # Reject names that are not valid shell variable names.
  5987. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  5988. + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  5989. { echo "$as_me: error: invalid package name: $ac_package" >&2
  5990. { (exit 1); exit 1; }; }
  5991. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  5992. - case $ac_option in
  5993. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  5994. - *) ac_optarg=yes ;;
  5995. - esac
  5996. - eval "with_$ac_package='$ac_optarg'" ;;
  5997. + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  5998. + eval with_$ac_package=\$ac_optarg ;;
  5999. -without-* | --without-*)
  6000. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  6001. # Reject names that are not valid shell variable names.
  6002. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  6003. + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  6004. { echo "$as_me: error: invalid package name: $ac_package" >&2
  6005. { (exit 1); exit 1; }; }
  6006. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  6007. - eval "with_$ac_package=no" ;;
  6008. + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  6009. + eval with_$ac_package=no ;;
  6010. --x)
  6011. # Obsolete; use --with-x.
  6012. @@ -793,8 +1266,7 @@
  6013. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  6014. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  6015. { (exit 1); exit 1; }; }
  6016. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  6017. - eval "$ac_envvar='$ac_optarg'"
  6018. + eval $ac_envvar=\$ac_optarg
  6019. export $ac_envvar ;;
  6020. *)
  6021. @@ -814,27 +1286,19 @@
  6022. { (exit 1); exit 1; }; }
  6023. fi
  6024. -# Be sure to have absolute paths.
  6025. -for ac_var in exec_prefix prefix
  6026. +# Be sure to have absolute directory names.
  6027. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  6028. + datadir sysconfdir sharedstatedir localstatedir includedir \
  6029. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  6030. + libdir localedir mandir
  6031. do
  6032. - eval ac_val=$`echo $ac_var`
  6033. + eval ac_val=\$$ac_var
  6034. case $ac_val in
  6035. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  6036. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  6037. - { (exit 1); exit 1; }; };;
  6038. - esac
  6039. -done
  6040. -
  6041. -# Be sure to have absolute paths.
  6042. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  6043. - localstatedir libdir includedir oldincludedir infodir mandir
  6044. -do
  6045. - eval ac_val=$`echo $ac_var`
  6046. - case $ac_val in
  6047. - [\\/$]* | ?:[\\/]* ) ;;
  6048. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  6049. - { (exit 1); exit 1; }; };;
  6050. + [\\/$]* | ?:[\\/]* ) continue;;
  6051. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  6052. esac
  6053. + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  6054. + { (exit 1); exit 1; }; }
  6055. done
  6056. # There might be people who depend on the old broken behavior: `$host'
  6057. @@ -861,74 +1325,76 @@
  6058. test "$silent" = yes && exec 6>/dev/null
  6059. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  6060. +ac_ls_di=`ls -di .` &&
  6061. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  6062. + { echo "$as_me: error: Working directory cannot be determined" >&2
  6063. + { (exit 1); exit 1; }; }
  6064. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  6065. + { echo "$as_me: error: pwd does not report name of working directory" >&2
  6066. + { (exit 1); exit 1; }; }
  6067. +
  6068. +
  6069. # Find the source files, if location was not specified.
  6070. if test -z "$srcdir"; then
  6071. ac_srcdir_defaulted=yes
  6072. - # Try the directory containing this script, then its parent.
  6073. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  6074. + # Try the directory containing this script, then the parent directory.
  6075. + ac_confdir=`$as_dirname -- "$0" ||
  6076. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6077. X"$0" : 'X\(//\)[^/]' \| \
  6078. X"$0" : 'X\(//\)$' \| \
  6079. - X"$0" : 'X\(/\)' \| \
  6080. - . : '\(.\)' 2>/dev/null ||
  6081. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6082. echo X"$0" |
  6083. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6084. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6085. - /^X\(\/\/\)$/{ s//\1/; q; }
  6086. - /^X\(\/\).*/{ s//\1/; q; }
  6087. - s/.*/./; q'`
  6088. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6089. + s//\1/
  6090. + q
  6091. + }
  6092. + /^X\(\/\/\)[^/].*/{
  6093. + s//\1/
  6094. + q
  6095. + }
  6096. + /^X\(\/\/\)$/{
  6097. + s//\1/
  6098. + q
  6099. + }
  6100. + /^X\(\/\).*/{
  6101. + s//\1/
  6102. + q
  6103. + }
  6104. + s/.*/./; q'`
  6105. srcdir=$ac_confdir
  6106. - if test ! -r $srcdir/$ac_unique_file; then
  6107. + if test ! -r "$srcdir/$ac_unique_file"; then
  6108. srcdir=..
  6109. fi
  6110. else
  6111. ac_srcdir_defaulted=no
  6112. fi
  6113. -if test ! -r $srcdir/$ac_unique_file; then
  6114. - if test "$ac_srcdir_defaulted" = yes; then
  6115. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  6116. - { (exit 1); exit 1; }; }
  6117. - else
  6118. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  6119. +if test ! -r "$srcdir/$ac_unique_file"; then
  6120. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  6121. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  6122. { (exit 1); exit 1; }; }
  6123. - fi
  6124. fi
  6125. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  6126. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  6127. - { (exit 1); exit 1; }; }
  6128. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  6129. -ac_env_build_alias_set=${build_alias+set}
  6130. -ac_env_build_alias_value=$build_alias
  6131. -ac_cv_env_build_alias_set=${build_alias+set}
  6132. -ac_cv_env_build_alias_value=$build_alias
  6133. -ac_env_host_alias_set=${host_alias+set}
  6134. -ac_env_host_alias_value=$host_alias
  6135. -ac_cv_env_host_alias_set=${host_alias+set}
  6136. -ac_cv_env_host_alias_value=$host_alias
  6137. -ac_env_target_alias_set=${target_alias+set}
  6138. -ac_env_target_alias_value=$target_alias
  6139. -ac_cv_env_target_alias_set=${target_alias+set}
  6140. -ac_cv_env_target_alias_value=$target_alias
  6141. -ac_env_CC_set=${CC+set}
  6142. -ac_env_CC_value=$CC
  6143. -ac_cv_env_CC_set=${CC+set}
  6144. -ac_cv_env_CC_value=$CC
  6145. -ac_env_CFLAGS_set=${CFLAGS+set}
  6146. -ac_env_CFLAGS_value=$CFLAGS
  6147. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  6148. -ac_cv_env_CFLAGS_value=$CFLAGS
  6149. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  6150. -ac_env_LDFLAGS_value=$LDFLAGS
  6151. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  6152. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  6153. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  6154. -ac_env_CPPFLAGS_value=$CPPFLAGS
  6155. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  6156. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  6157. -ac_env_CPP_set=${CPP+set}
  6158. -ac_env_CPP_value=$CPP
  6159. -ac_cv_env_CPP_set=${CPP+set}
  6160. -ac_cv_env_CPP_value=$CPP
  6161. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  6162. +ac_abs_confdir=`(
  6163. + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  6164. + { (exit 1); exit 1; }; }
  6165. + pwd)`
  6166. +# When building in place, set srcdir=.
  6167. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  6168. + srcdir=.
  6169. +fi
  6170. +# Remove unnecessary trailing slashes from srcdir.
  6171. +# Double slashes in file names in object file debugging info
  6172. +# mess up M-x gdb in Emacs.
  6173. +case $srcdir in
  6174. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  6175. +esac
  6176. +for ac_var in $ac_precious_vars; do
  6177. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  6178. + eval ac_env_${ac_var}_value=\$${ac_var}
  6179. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  6180. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  6181. +done
  6182. #
  6183. # Report the --help message.
  6184. @@ -957,9 +1423,6 @@
  6185. -n, --no-create do not create output files
  6186. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  6187. -_ACEOF
  6188. -
  6189. - cat <<_ACEOF
  6190. Installation directories:
  6191. --prefix=PREFIX install architecture-independent files in PREFIX
  6192. [$ac_default_prefix]
  6193. @@ -977,15 +1440,22 @@
  6194. --bindir=DIR user executables [EPREFIX/bin]
  6195. --sbindir=DIR system admin executables [EPREFIX/sbin]
  6196. --libexecdir=DIR program executables [EPREFIX/libexec]
  6197. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  6198. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  6199. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  6200. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  6201. --libdir=DIR object code libraries [EPREFIX/lib]
  6202. --includedir=DIR C header files [PREFIX/include]
  6203. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  6204. - --infodir=DIR info documentation [PREFIX/info]
  6205. - --mandir=DIR man documentation [PREFIX/man]
  6206. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  6207. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  6208. + --infodir=DIR info documentation [DATAROOTDIR/info]
  6209. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  6210. + --mandir=DIR man documentation [DATAROOTDIR/man]
  6211. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  6212. + --htmldir=DIR html documentation [DOCDIR]
  6213. + --dvidir=DIR dvi documentation [DOCDIR]
  6214. + --pdfdir=DIR pdf documentation [DOCDIR]
  6215. + --psdir=DIR ps documentation [DOCDIR]
  6216. _ACEOF
  6217. cat <<\_ACEOF
  6218. @@ -1009,9 +1479,12 @@
  6219. Optional Features:
  6220. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  6221. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  6222. - --enable-shared=PKGS build shared libraries default=yes
  6223. - --enable-static=PKGS build static libraries default=yes
  6224. - --enable-fast-install=PKGS optimize for fast installation default=yes
  6225. + --disable-dependency-tracking speeds up one-time build
  6226. + --enable-dependency-tracking do not reject slow dependency extractors
  6227. + --enable-shared[=PKGS] build shared libraries [default=yes]
  6228. + --enable-static[=PKGS] build static libraries [default=yes]
  6229. + --enable-fast-install[=PKGS]
  6230. + optimize for fast installation [default=yes]
  6231. --disable-libtool-lock avoid locking (might break parallel builds)
  6232. --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)
  6233. --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)
  6234. @@ -1023,8 +1496,10 @@
  6235. Optional Packages:
  6236. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  6237. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  6238. - --with-gnu-ld assume the C compiler uses GNU ld default=no
  6239. - --with-pic try to use only PIC/non-PIC objects default=use both
  6240. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  6241. + --with-pic try to use only PIC/non-PIC objects [default=use
  6242. + both]
  6243. + --with-tags[=TAGS] include additional configurations [automatic]
  6244. --with-uni=VERSION UNI version to use (3.0,3.1,4.0) default=dynamic
  6245. Some influential environment variables:
  6246. @@ -1032,126 +1507,105 @@
  6247. CFLAGS C compiler flags
  6248. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  6249. nonstandard directory <lib dir>
  6250. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  6251. - headers in a nonstandard directory <include dir>
  6252. + LIBS libraries to pass to the linker, e.g. -l<library>
  6253. + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  6254. + you have headers in a nonstandard directory <include dir>
  6255. + YACC The `Yet Another C Compiler' implementation to use. Defaults to
  6256. + the first program found out of: `bison -y', `byacc', `yacc'.
  6257. + YFLAGS The list of arguments that will be passed by default to $YACC.
  6258. + This script will default YFLAGS to the empty string to avoid a
  6259. + default value of `-d' given by some make applications.
  6260. CPP C preprocessor
  6261. + CXX C++ compiler command
  6262. + CXXFLAGS C++ compiler flags
  6263. + CXXCPP C++ preprocessor
  6264. + F77 Fortran 77 compiler command
  6265. + FFLAGS Fortran 77 compiler flags
  6266. Use these variables to override the choices made by `configure' or to help
  6267. it to find libraries and programs with nonstandard names/locations.
  6268. _ACEOF
  6269. +ac_status=$?
  6270. fi
  6271. if test "$ac_init_help" = "recursive"; then
  6272. # If there are subdirs, report their specific --help.
  6273. - ac_popdir=`pwd`
  6274. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  6275. - test -d $ac_dir || continue
  6276. + test -d "$ac_dir" || continue
  6277. ac_builddir=.
  6278. -if test "$ac_dir" != .; then
  6279. +case "$ac_dir" in
  6280. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6281. +*)
  6282. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  6283. - # A "../" for each directory in $ac_dir_suffix.
  6284. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  6285. -else
  6286. - ac_dir_suffix= ac_top_builddir=
  6287. -fi
  6288. + # A ".." for each directory in $ac_dir_suffix.
  6289. + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  6290. + case $ac_top_builddir_sub in
  6291. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6292. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6293. + esac ;;
  6294. +esac
  6295. +ac_abs_top_builddir=$ac_pwd
  6296. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6297. +# for backward compatibility:
  6298. +ac_top_builddir=$ac_top_build_prefix
  6299. case $srcdir in
  6300. - .) # No --srcdir option. We are building in place.
  6301. + .) # We are building in place.
  6302. ac_srcdir=.
  6303. - if test -z "$ac_top_builddir"; then
  6304. - ac_top_srcdir=.
  6305. - else
  6306. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  6307. - fi ;;
  6308. - [\\/]* | ?:[\\/]* ) # Absolute path.
  6309. + ac_top_srcdir=$ac_top_builddir_sub
  6310. + ac_abs_top_srcdir=$ac_pwd ;;
  6311. + [\\/]* | ?:[\\/]* ) # Absolute name.
  6312. ac_srcdir=$srcdir$ac_dir_suffix;
  6313. - ac_top_srcdir=$srcdir ;;
  6314. - *) # Relative path.
  6315. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  6316. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  6317. -esac
  6318. -
  6319. -# Do not use `cd foo && pwd` to compute absolute paths, because
  6320. -# the directories may not exist.
  6321. -case `pwd` in
  6322. -.) ac_abs_builddir="$ac_dir";;
  6323. -*)
  6324. - case "$ac_dir" in
  6325. - .) ac_abs_builddir=`pwd`;;
  6326. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  6327. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  6328. - esac;;
  6329. -esac
  6330. -case $ac_abs_builddir in
  6331. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  6332. -*)
  6333. - case ${ac_top_builddir}. in
  6334. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  6335. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  6336. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  6337. - esac;;
  6338. -esac
  6339. -case $ac_abs_builddir in
  6340. -.) ac_abs_srcdir=$ac_srcdir;;
  6341. -*)
  6342. - case $ac_srcdir in
  6343. - .) ac_abs_srcdir=$ac_abs_builddir;;
  6344. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  6345. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  6346. - esac;;
  6347. -esac
  6348. -case $ac_abs_builddir in
  6349. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  6350. -*)
  6351. - case $ac_top_srcdir in
  6352. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  6353. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  6354. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  6355. - esac;;
  6356. + ac_top_srcdir=$srcdir
  6357. + ac_abs_top_srcdir=$srcdir ;;
  6358. + *) # Relative name.
  6359. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6360. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  6361. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6362. esac
  6363. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6364. - cd $ac_dir
  6365. - # Check for guested configure; otherwise get Cygnus style configure.
  6366. - if test -f $ac_srcdir/configure.gnu; then
  6367. - echo
  6368. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  6369. - elif test -f $ac_srcdir/configure; then
  6370. - echo
  6371. - $SHELL $ac_srcdir/configure --help=recursive
  6372. - elif test -f $ac_srcdir/configure.ac ||
  6373. - test -f $ac_srcdir/configure.in; then
  6374. - echo
  6375. - $ac_configure --help
  6376. + cd "$ac_dir" || { ac_status=$?; continue; }
  6377. + # Check for guested configure.
  6378. + if test -f "$ac_srcdir/configure.gnu"; then
  6379. + echo &&
  6380. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  6381. + elif test -f "$ac_srcdir/configure"; then
  6382. + echo &&
  6383. + $SHELL "$ac_srcdir/configure" --help=recursive
  6384. else
  6385. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  6386. - fi
  6387. - cd "$ac_popdir"
  6388. + fi || ac_status=$?
  6389. + cd "$ac_pwd" || { ac_status=$?; break; }
  6390. done
  6391. fi
  6392. -test -n "$ac_init_help" && exit 0
  6393. +test -n "$ac_init_help" && exit $ac_status
  6394. if $ac_init_version; then
  6395. cat <<\_ACEOF
  6396. +configure
  6397. +generated by GNU Autoconf 2.61
  6398. -Copyright (C) 2003 Free Software Foundation, Inc.
  6399. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6400. +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  6401. This configure script is free software; the Free Software Foundation
  6402. gives unlimited permission to copy, distribute and modify it.
  6403. _ACEOF
  6404. - exit 0
  6405. + exit
  6406. fi
  6407. -exec 5>config.log
  6408. -cat >&5 <<_ACEOF
  6409. +cat >config.log <<_ACEOF
  6410. This file contains any messages produced by compilers while
  6411. running configure, to aid debugging if configure makes a mistake.
  6412. It was created by $as_me, which was
  6413. -generated by GNU Autoconf 2.59. Invocation command line was
  6414. +generated by GNU Autoconf 2.61. Invocation command line was
  6415. $ $0 $@
  6416. _ACEOF
  6417. +exec 5>>config.log
  6418. {
  6419. cat <<_ASUNAME
  6420. ## --------- ##
  6421. @@ -1170,7 +1624,7 @@
  6422. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  6423. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  6424. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  6425. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  6426. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  6427. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  6428. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  6429. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  6430. @@ -1184,6 +1638,7 @@
  6431. test -z "$as_dir" && as_dir=.
  6432. echo "PATH: $as_dir"
  6433. done
  6434. +IFS=$as_save_IFS
  6435. } >&5
  6436. @@ -1205,7 +1660,6 @@
  6437. ac_configure_args=
  6438. ac_configure_args0=
  6439. ac_configure_args1=
  6440. -ac_sep=
  6441. ac_must_keep_next=false
  6442. for ac_pass in 1 2
  6443. do
  6444. @@ -1216,7 +1670,7 @@
  6445. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6446. | -silent | --silent | --silen | --sile | --sil)
  6447. continue ;;
  6448. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  6449. + *\'*)
  6450. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6451. esac
  6452. case $ac_pass in
  6453. @@ -1238,9 +1692,7 @@
  6454. -* ) ac_must_keep_next=true ;;
  6455. esac
  6456. fi
  6457. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  6458. - # Get rid of the leading space.
  6459. - ac_sep=" "
  6460. + ac_configure_args="$ac_configure_args '$ac_arg'"
  6461. ;;
  6462. esac
  6463. done
  6464. @@ -1251,8 +1703,8 @@
  6465. # When interrupted or exit'd, cleanup temporary files, and complete
  6466. # config.log. We remove comments because anyway the quotes in there
  6467. # would cause problems or look ugly.
  6468. -# WARNING: Be sure not to use single quotes in there, as some shells,
  6469. -# such as our DU 5.0 friend, will then `close' the trap.
  6470. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  6471. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  6472. trap 'exit_status=$?
  6473. # Save into config.log some information that might help in debugging.
  6474. {
  6475. @@ -1265,20 +1717,34 @@
  6476. _ASBOX
  6477. echo
  6478. # The following way of writing the cache mishandles newlines in values,
  6479. -{
  6480. +(
  6481. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  6482. + eval ac_val=\$$ac_var
  6483. + case $ac_val in #(
  6484. + *${as_nl}*)
  6485. + case $ac_var in #(
  6486. + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  6487. +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  6488. + esac
  6489. + case $ac_var in #(
  6490. + _ | IFS | as_nl) ;; #(
  6491. + *) $as_unset $ac_var ;;
  6492. + esac ;;
  6493. + esac
  6494. + done
  6495. (set) 2>&1 |
  6496. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  6497. - *ac_space=\ *)
  6498. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  6499. + *${as_nl}ac_space=\ *)
  6500. sed -n \
  6501. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  6502. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  6503. - ;;
  6504. + "s/'\''/'\''\\\\'\'''\''/g;
  6505. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  6506. + ;; #(
  6507. *)
  6508. - sed -n \
  6509. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6510. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6511. ;;
  6512. - esac;
  6513. -}
  6514. + esac |
  6515. + sort
  6516. +)
  6517. echo
  6518. cat <<\_ASBOX
  6519. @@ -1289,22 +1755,28 @@
  6520. echo
  6521. for ac_var in $ac_subst_vars
  6522. do
  6523. - eval ac_val=$`echo $ac_var`
  6524. - echo "$ac_var='"'"'$ac_val'"'"'"
  6525. + eval ac_val=\$$ac_var
  6526. + case $ac_val in
  6527. + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  6528. + esac
  6529. + echo "$ac_var='\''$ac_val'\''"
  6530. done | sort
  6531. echo
  6532. if test -n "$ac_subst_files"; then
  6533. cat <<\_ASBOX
  6534. -## ------------- ##
  6535. -## Output files. ##
  6536. -## ------------- ##
  6537. +## ------------------- ##
  6538. +## File substitutions. ##
  6539. +## ------------------- ##
  6540. _ASBOX
  6541. echo
  6542. for ac_var in $ac_subst_files
  6543. do
  6544. - eval ac_val=$`echo $ac_var`
  6545. - echo "$ac_var='"'"'$ac_val'"'"'"
  6546. + eval ac_val=\$$ac_var
  6547. + case $ac_val in
  6548. + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  6549. + esac
  6550. + echo "$ac_var='\''$ac_val'\''"
  6551. done | sort
  6552. echo
  6553. fi
  6554. @@ -1316,26 +1788,24 @@
  6555. ## ----------- ##
  6556. _ASBOX
  6557. echo
  6558. - sed "/^$/d" confdefs.h | sort
  6559. + cat confdefs.h
  6560. echo
  6561. fi
  6562. test "$ac_signal" != 0 &&
  6563. echo "$as_me: caught signal $ac_signal"
  6564. echo "$as_me: exit $exit_status"
  6565. } >&5
  6566. - rm -f core *.core &&
  6567. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  6568. + rm -f core *.core core.conftest.* &&
  6569. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  6570. exit $exit_status
  6571. - ' 0
  6572. +' 0
  6573. for ac_signal in 1 2 13 15; do
  6574. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  6575. done
  6576. ac_signal=0
  6577. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  6578. -rm -rf conftest* confdefs.h
  6579. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  6580. -echo >confdefs.h
  6581. +rm -f -r conftest* confdefs.h
  6582. # Predefined preprocessor variables.
  6583. @@ -1366,14 +1836,17 @@
  6584. # Let the site file select an alternate cache file if it wants to.
  6585. # Prefer explicitly selected file to automatically selected ones.
  6586. -if test -z "$CONFIG_SITE"; then
  6587. - if test "x$prefix" != xNONE; then
  6588. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  6589. - else
  6590. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  6591. - fi
  6592. +if test -n "$CONFIG_SITE"; then
  6593. + set x "$CONFIG_SITE"
  6594. +elif test "x$prefix" != xNONE; then
  6595. + set x "$prefix/share/config.site" "$prefix/etc/config.site"
  6596. +else
  6597. + set x "$ac_default_prefix/share/config.site" \
  6598. + "$ac_default_prefix/etc/config.site"
  6599. fi
  6600. -for ac_site_file in $CONFIG_SITE; do
  6601. +shift
  6602. +for ac_site_file
  6603. +do
  6604. if test -r "$ac_site_file"; then
  6605. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  6606. echo "$as_me: loading site script $ac_site_file" >&6;}
  6607. @@ -1389,8 +1862,8 @@
  6608. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  6609. echo "$as_me: loading cache $cache_file" >&6;}
  6610. case $cache_file in
  6611. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  6612. - *) . ./$cache_file;;
  6613. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  6614. + *) . "./$cache_file";;
  6615. esac
  6616. fi
  6617. else
  6618. @@ -1402,12 +1875,11 @@
  6619. # Check that the precious variables saved in the cache have kept the same
  6620. # value.
  6621. ac_cache_corrupted=false
  6622. -for ac_var in `(set) 2>&1 |
  6623. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  6624. +for ac_var in $ac_precious_vars; do
  6625. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  6626. eval ac_new_set=\$ac_env_${ac_var}_set
  6627. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  6628. - eval ac_new_val="\$ac_env_${ac_var}_value"
  6629. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  6630. + eval ac_new_val=\$ac_env_${ac_var}_value
  6631. case $ac_old_set,$ac_new_set in
  6632. set,)
  6633. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  6634. @@ -1432,8 +1904,7 @@
  6635. # Pass precious variables to config.status.
  6636. if test "$ac_new_set" = set; then
  6637. case $ac_new_val in
  6638. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  6639. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  6640. + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  6641. *) ac_arg=$ac_var=$ac_new_val ;;
  6642. esac
  6643. case " $ac_configure_args " in
  6644. @@ -1450,14 +1921,6 @@
  6645. { (exit 1); exit 1; }; }
  6646. fi
  6647. -ac_ext=c
  6648. -ac_cpp='$CPP $CPPFLAGS'
  6649. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6650. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6651. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6652. -
  6653. -
  6654. -
  6655. @@ -1474,111 +1937,165 @@
  6656. +ac_ext=c
  6657. +ac_cpp='$CPP $CPPFLAGS'
  6658. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6659. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6660. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6661. - ac_config_headers="$ac_config_headers config.h"
  6662. - ac_config_commands="$ac_config_commands default-1"
  6663. +ac_config_headers="$ac_config_headers config.h"
  6664. ac_aux_dir=
  6665. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  6666. - if test -f $ac_dir/install-sh; then
  6667. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  6668. + if test -f "$ac_dir/install-sh"; then
  6669. ac_aux_dir=$ac_dir
  6670. ac_install_sh="$ac_aux_dir/install-sh -c"
  6671. break
  6672. - elif test -f $ac_dir/install.sh; then
  6673. + elif test -f "$ac_dir/install.sh"; then
  6674. ac_aux_dir=$ac_dir
  6675. ac_install_sh="$ac_aux_dir/install.sh -c"
  6676. break
  6677. - elif test -f $ac_dir/shtool; then
  6678. + elif test -f "$ac_dir/shtool"; then
  6679. ac_aux_dir=$ac_dir
  6680. ac_install_sh="$ac_aux_dir/shtool install -c"
  6681. break
  6682. fi
  6683. done
  6684. if test -z "$ac_aux_dir"; then
  6685. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  6686. -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  6687. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  6688. +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  6689. { (exit 1); exit 1; }; }
  6690. fi
  6691. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  6692. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  6693. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  6694. +
  6695. +# These three variables are undocumented and unsupported,
  6696. +# and are intended to be withdrawn in a future Autoconf release.
  6697. +# They can cause serious problems if a builder's source tree is in a directory
  6698. +# whose full name contains unusual characters.
  6699. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  6700. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  6701. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  6702. +
  6703. # Make sure we can run config.sub.
  6704. -$ac_config_sub sun4 >/dev/null 2>&1 ||
  6705. - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  6706. -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  6707. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6708. + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6709. +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6710. { (exit 1); exit 1; }; }
  6711. -echo "$as_me:$LINENO: checking build system type" >&5
  6712. -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  6713. +{ echo "$as_me:$LINENO: checking build system type" >&5
  6714. +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  6715. if test "${ac_cv_build+set}" = set; then
  6716. echo $ECHO_N "(cached) $ECHO_C" >&6
  6717. else
  6718. - ac_cv_build_alias=$build_alias
  6719. -test -z "$ac_cv_build_alias" &&
  6720. - ac_cv_build_alias=`$ac_config_guess`
  6721. -test -z "$ac_cv_build_alias" &&
  6722. + ac_build_alias=$build_alias
  6723. +test "x$ac_build_alias" = x &&
  6724. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6725. +test "x$ac_build_alias" = x &&
  6726. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6727. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6728. { (exit 1); exit 1; }; }
  6729. -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  6730. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  6731. -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  6732. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6733. + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6734. +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6735. { (exit 1); exit 1; }; }
  6736. fi
  6737. -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6738. -echo "${ECHO_T}$ac_cv_build" >&6
  6739. +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6740. +echo "${ECHO_T}$ac_cv_build" >&6; }
  6741. +case $ac_cv_build in
  6742. +*-*-*) ;;
  6743. +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6744. +echo "$as_me: error: invalid value of canonical build" >&2;}
  6745. + { (exit 1); exit 1; }; };;
  6746. +esac
  6747. build=$ac_cv_build
  6748. -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6749. -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6750. -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6751. +ac_save_IFS=$IFS; IFS='-'
  6752. +set x $ac_cv_build
  6753. +shift
  6754. +build_cpu=$1
  6755. +build_vendor=$2
  6756. +shift; shift
  6757. +# Remember, the first character of IFS is used to create $*,
  6758. +# except with old shells:
  6759. +build_os=$*
  6760. +IFS=$ac_save_IFS
  6761. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6762. -echo "$as_me:$LINENO: checking host system type" >&5
  6763. -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  6764. +{ echo "$as_me:$LINENO: checking host system type" >&5
  6765. +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  6766. if test "${ac_cv_host+set}" = set; then
  6767. echo $ECHO_N "(cached) $ECHO_C" >&6
  6768. else
  6769. - ac_cv_host_alias=$host_alias
  6770. -test -z "$ac_cv_host_alias" &&
  6771. - ac_cv_host_alias=$ac_cv_build_alias
  6772. -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  6773. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  6774. -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  6775. + if test "x$host_alias" = x; then
  6776. + ac_cv_host=$ac_cv_build
  6777. +else
  6778. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6779. + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6780. +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6781. { (exit 1); exit 1; }; }
  6782. +fi
  6783. fi
  6784. -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6785. -echo "${ECHO_T}$ac_cv_host" >&6
  6786. +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6787. +echo "${ECHO_T}$ac_cv_host" >&6; }
  6788. +case $ac_cv_host in
  6789. +*-*-*) ;;
  6790. +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6791. +echo "$as_me: error: invalid value of canonical host" >&2;}
  6792. + { (exit 1); exit 1; }; };;
  6793. +esac
  6794. host=$ac_cv_host
  6795. -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6796. -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6797. -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6798. +ac_save_IFS=$IFS; IFS='-'
  6799. +set x $ac_cv_host
  6800. +shift
  6801. +host_cpu=$1
  6802. +host_vendor=$2
  6803. +shift; shift
  6804. +# Remember, the first character of IFS is used to create $*,
  6805. +# except with old shells:
  6806. +host_os=$*
  6807. +IFS=$ac_save_IFS
  6808. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6809. -echo "$as_me:$LINENO: checking target system type" >&5
  6810. -echo $ECHO_N "checking target system type... $ECHO_C" >&6
  6811. +{ echo "$as_me:$LINENO: checking target system type" >&5
  6812. +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  6813. if test "${ac_cv_target+set}" = set; then
  6814. echo $ECHO_N "(cached) $ECHO_C" >&6
  6815. else
  6816. - ac_cv_target_alias=$target_alias
  6817. -test "x$ac_cv_target_alias" = "x" &&
  6818. - ac_cv_target_alias=$ac_cv_host_alias
  6819. -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  6820. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  6821. -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  6822. + if test "x$target_alias" = x; then
  6823. + ac_cv_target=$ac_cv_host
  6824. +else
  6825. + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  6826. + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  6827. +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  6828. { (exit 1); exit 1; }; }
  6829. +fi
  6830. fi
  6831. -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  6832. -echo "${ECHO_T}$ac_cv_target" >&6
  6833. +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  6834. +echo "${ECHO_T}$ac_cv_target" >&6; }
  6835. +case $ac_cv_target in
  6836. +*-*-*) ;;
  6837. +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  6838. +echo "$as_me: error: invalid value of canonical target" >&2;}
  6839. + { (exit 1); exit 1; }; };;
  6840. +esac
  6841. target=$ac_cv_target
  6842. -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6843. -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6844. -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6845. +ac_save_IFS=$IFS; IFS='-'
  6846. +set x $ac_cv_target
  6847. +shift
  6848. +target_cpu=$1
  6849. +target_vendor=$2
  6850. +shift; shift
  6851. +# Remember, the first character of IFS is used to create $*,
  6852. +# except with old shells:
  6853. +target_os=$*
  6854. +IFS=$ac_save_IFS
  6855. +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  6856. # The aliases save the names the user supplied, while $host etc.
  6857. @@ -1588,7 +2105,7 @@
  6858. NONENONEs,x,x, &&
  6859. program_prefix=${target_alias}-
  6860. -am__api_version="1.4"
  6861. +am__api_version="1.9"
  6862. # Find a good install program. We prefer a C program (faster),
  6863. # so one script is as good as another. But avoid the broken or
  6864. # incompatible versions:
  6865. @@ -1602,8 +2119,8 @@
  6866. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6867. # OS/2's system install, which has a completely different semantic
  6868. # ./install, which can be erroneously created by make from ./install.sh.
  6869. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  6870. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  6871. +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  6872. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  6873. if test -z "$INSTALL"; then
  6874. if test "${ac_cv_path_install+set}" = set; then
  6875. echo $ECHO_N "(cached) $ECHO_C" >&6
  6876. @@ -1625,7 +2142,7 @@
  6877. # by default.
  6878. for ac_prog in ginstall scoinst install; do
  6879. for ac_exec_ext in '' $ac_executable_extensions; do
  6880. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  6881. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  6882. if test $ac_prog = install &&
  6883. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6884. # AIX install. It has an incompatible calling convention.
  6885. @@ -1644,21 +2161,22 @@
  6886. ;;
  6887. esac
  6888. done
  6889. +IFS=$as_save_IFS
  6890. fi
  6891. if test "${ac_cv_path_install+set}" = set; then
  6892. INSTALL=$ac_cv_path_install
  6893. else
  6894. - # As a last resort, use the slow shell script. We don't cache a
  6895. - # path for INSTALL within a source directory, because that will
  6896. + # As a last resort, use the slow shell script. Don't cache a
  6897. + # value for INSTALL within a source directory, because that will
  6898. # break other packages using the cache if that directory is
  6899. - # removed, or if the path is relative.
  6900. + # removed, or if the value is a relative name.
  6901. INSTALL=$ac_install_sh
  6902. fi
  6903. fi
  6904. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  6905. -echo "${ECHO_T}$INSTALL" >&6
  6906. +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  6907. +echo "${ECHO_T}$INSTALL" >&6; }
  6908. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  6909. # It thinks the first close brace ends the variable substitution.
  6910. @@ -1668,24 +2186,25 @@
  6911. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  6912. -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  6913. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  6914. +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  6915. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  6916. # Just in case
  6917. sleep 1
  6918. -echo timestamp > conftestfile
  6919. +echo timestamp > conftest.file
  6920. # Do `set' in a subshell so we don't clobber the current shell's
  6921. # arguments. Must try -L first in case configure is actually a
  6922. # symlink; some systems play weird games with the mod time of symlinks
  6923. # (eg FreeBSD returns the mod time of the symlink's containing
  6924. # directory).
  6925. if (
  6926. - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  6927. + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  6928. if test "$*" = "X"; then
  6929. # -L didn't work.
  6930. - set X `ls -t $srcdir/configure conftestfile`
  6931. + set X `ls -t $srcdir/configure conftest.file`
  6932. fi
  6933. - if test "$*" != "X $srcdir/configure conftestfile" \
  6934. - && test "$*" != "X conftestfile $srcdir/configure"; then
  6935. + rm -f conftest.file
  6936. + if test "$*" != "X $srcdir/configure conftest.file" \
  6937. + && test "$*" != "X conftest.file $srcdir/configure"; then
  6938. # If neither matched, then we have a broken ls. This can happen
  6939. # if, for instance, CONFIG_SHELL is bash and it inherits a
  6940. @@ -1698,7 +2217,7 @@
  6941. { (exit 1); exit 1; }; }
  6942. fi
  6943. - test "$2" = conftestfile
  6944. + test "$2" = conftest.file
  6945. )
  6946. then
  6947. # Ok.
  6948. @@ -1710,62 +2229,171 @@
  6949. Check your system clock" >&2;}
  6950. { (exit 1); exit 1; }; }
  6951. fi
  6952. -rm -f conftest*
  6953. -echo "$as_me:$LINENO: result: yes" >&5
  6954. -echo "${ECHO_T}yes" >&6
  6955. +{ echo "$as_me:$LINENO: result: yes" >&5
  6956. +echo "${ECHO_T}yes" >&6; }
  6957. test "$program_prefix" != NONE &&
  6958. - program_transform_name="s,^,$program_prefix,;$program_transform_name"
  6959. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  6960. # Use a double $ so make ignores it.
  6961. test "$program_suffix" != NONE &&
  6962. - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  6963. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  6964. # Double any \ or $. echo might interpret backslashes.
  6965. # By default was `s,x,x', remove it if useless.
  6966. cat <<\_ACEOF >conftest.sed
  6967. s/[\\$]/&&/g;s/;s,x,x,$//
  6968. _ACEOF
  6969. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  6970. -rm conftest.sed
  6971. +rm -f conftest.sed
  6972. +
  6973. +# expand $ac_aux_dir to an absolute path
  6974. +am_aux_dir=`cd $ac_aux_dir && pwd`
  6975. +
  6976. +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  6977. +# Use eval to expand $SHELL
  6978. +if eval "$MISSING --run true"; then
  6979. + am_missing_run="$MISSING --run "
  6980. +else
  6981. + am_missing_run=
  6982. + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  6983. +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  6984. +fi
  6985. +
  6986. +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  6987. + # We used to keeping the `.' as first argument, in order to
  6988. + # allow $(mkdir_p) to be used without argument. As in
  6989. + # $(mkdir_p) $(somedir)
  6990. + # where $(somedir) is conditionally defined. However this is wrong
  6991. + # for two reasons:
  6992. + # 1. if the package is installed by a user who cannot write `.'
  6993. + # make install will fail,
  6994. + # 2. the above comment should most certainly read
  6995. + # $(mkdir_p) $(DESTDIR)$(somedir)
  6996. + # so it does not work when $(somedir) is undefined and
  6997. + # $(DESTDIR) is not.
  6998. + # To support the latter case, we have to write
  6999. + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  7000. + # so the `.' trick is pointless.
  7001. + mkdir_p='mkdir -p --'
  7002. +else
  7003. + # On NextStep and OpenStep, the `mkdir' command does not
  7004. + # recognize any option. It will interpret all options as
  7005. + # directories to create, and then abort because `.' already
  7006. + # exists.
  7007. + for d in ./-p ./--version;
  7008. + do
  7009. + test -d $d && rmdir $d
  7010. + done
  7011. + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  7012. + if test -f "$ac_aux_dir/mkinstalldirs"; then
  7013. + mkdir_p='$(mkinstalldirs)'
  7014. + else
  7015. + mkdir_p='$(install_sh) -d'
  7016. + fi
  7017. +fi
  7018. +
  7019. +for ac_prog in gawk mawk nawk awk
  7020. +do
  7021. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  7022. +set dummy $ac_prog; ac_word=$2
  7023. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7024. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7025. +if test "${ac_cv_prog_AWK+set}" = set; then
  7026. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7027. +else
  7028. + if test -n "$AWK"; then
  7029. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7030. +else
  7031. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7032. +for as_dir in $PATH
  7033. +do
  7034. + IFS=$as_save_IFS
  7035. + test -z "$as_dir" && as_dir=.
  7036. + for ac_exec_ext in '' $ac_executable_extensions; do
  7037. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7038. + ac_cv_prog_AWK="$ac_prog"
  7039. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7040. + break 2
  7041. + fi
  7042. +done
  7043. +done
  7044. +IFS=$as_save_IFS
  7045. +
  7046. +fi
  7047. +fi
  7048. +AWK=$ac_cv_prog_AWK
  7049. +if test -n "$AWK"; then
  7050. + { echo "$as_me:$LINENO: result: $AWK" >&5
  7051. +echo "${ECHO_T}$AWK" >&6; }
  7052. +else
  7053. + { echo "$as_me:$LINENO: result: no" >&5
  7054. +echo "${ECHO_T}no" >&6; }
  7055. +fi
  7056. +
  7057. +
  7058. + test -n "$AWK" && break
  7059. +done
  7060. -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  7061. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  7062. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  7063. -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  7064. +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  7065. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  7066. +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  7067. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  7068. echo $ECHO_N "(cached) $ECHO_C" >&6
  7069. else
  7070. cat >conftest.make <<\_ACEOF
  7071. +SHELL = /bin/sh
  7072. all:
  7073. - @echo 'ac_maketemp="$(MAKE)"'
  7074. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  7075. _ACEOF
  7076. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  7077. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  7078. -if test -n "$ac_maketemp"; then
  7079. - eval ac_cv_prog_make_${ac_make}_set=yes
  7080. -else
  7081. - eval ac_cv_prog_make_${ac_make}_set=no
  7082. -fi
  7083. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  7084. + *@@@%%%=?*=@@@%%%*)
  7085. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  7086. + *)
  7087. + eval ac_cv_prog_make_${ac_make}_set=no;;
  7088. +esac
  7089. rm -f conftest.make
  7090. fi
  7091. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  7092. - echo "$as_me:$LINENO: result: yes" >&5
  7093. -echo "${ECHO_T}yes" >&6
  7094. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  7095. + { echo "$as_me:$LINENO: result: yes" >&5
  7096. +echo "${ECHO_T}yes" >&6; }
  7097. SET_MAKE=
  7098. else
  7099. - echo "$as_me:$LINENO: result: no" >&5
  7100. -echo "${ECHO_T}no" >&6
  7101. + { echo "$as_me:$LINENO: result: no" >&5
  7102. +echo "${ECHO_T}no" >&6; }
  7103. SET_MAKE="MAKE=${MAKE-make}"
  7104. fi
  7105. -
  7106. -PACKAGE=linux-atm
  7107. -
  7108. -VERSION=2.4.1
  7109. -
  7110. -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  7111. +rm -rf .tst 2>/dev/null
  7112. +mkdir .tst 2>/dev/null
  7113. +if test -d .tst; then
  7114. + am__leading_dot=.
  7115. +else
  7116. + am__leading_dot=_
  7117. +fi
  7118. +rmdir .tst 2>/dev/null
  7119. +
  7120. +# test to see if srcdir already configured
  7121. +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  7122. + test -f $srcdir/config.status; then
  7123. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  7124. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  7125. { (exit 1); exit 1; }; }
  7126. fi
  7127. +# test whether we have cygpath
  7128. +if test -z "$CYGPATH_W"; then
  7129. + if (cygpath --version) >/dev/null 2>/dev/null; then
  7130. + CYGPATH_W='cygpath -w'
  7131. + else
  7132. + CYGPATH_W=echo
  7133. + fi
  7134. +fi
  7135. +
  7136. +
  7137. +# Define the identity of the package.
  7138. + PACKAGE=linux-atm
  7139. + VERSION=2.4.1
  7140. +
  7141. +
  7142. cat >>confdefs.h <<_ACEOF
  7143. #define PACKAGE "$PACKAGE"
  7144. _ACEOF
  7145. @@ -1775,83 +2403,138 @@
  7146. #define VERSION "$VERSION"
  7147. _ACEOF
  7148. +# Some tools Automake needs.
  7149. +
  7150. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  7151. -missing_dir=`cd $ac_aux_dir && pwd`
  7152. -echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
  7153. -echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
  7154. -# Run test in a subshell; some versions of sh will print an error if
  7155. -# an executable is not found, even if stderr is redirected.
  7156. -# Redirect stdin to placate older versions of autoconf. Sigh.
  7157. -if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  7158. - ACLOCAL=aclocal-${am__api_version}
  7159. - echo "$as_me:$LINENO: result: found" >&5
  7160. -echo "${ECHO_T}found" >&6
  7161. -else
  7162. - ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
  7163. - echo "$as_me:$LINENO: result: missing" >&5
  7164. -echo "${ECHO_T}missing" >&6
  7165. -fi
  7166. -
  7167. -echo "$as_me:$LINENO: checking for working autoconf" >&5
  7168. -echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  7169. -# Run test in a subshell; some versions of sh will print an error if
  7170. -# an executable is not found, even if stderr is redirected.
  7171. -# Redirect stdin to placate older versions of autoconf. Sigh.
  7172. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  7173. - AUTOCONF=autoconf
  7174. - echo "$as_me:$LINENO: result: found" >&5
  7175. -echo "${ECHO_T}found" >&6
  7176. -else
  7177. - AUTOCONF="$missing_dir/missing autoconf"
  7178. - echo "$as_me:$LINENO: result: missing" >&5
  7179. -echo "${ECHO_T}missing" >&6
  7180. -fi
  7181. -
  7182. -echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
  7183. -echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
  7184. -# Run test in a subshell; some versions of sh will print an error if
  7185. -# an executable is not found, even if stderr is redirected.
  7186. -# Redirect stdin to placate older versions of autoconf. Sigh.
  7187. -if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  7188. - AUTOMAKE=automake-${am__api_version}
  7189. - echo "$as_me:$LINENO: result: found" >&5
  7190. -echo "${ECHO_T}found" >&6
  7191. -else
  7192. - AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
  7193. - echo "$as_me:$LINENO: result: missing" >&5
  7194. -echo "${ECHO_T}missing" >&6
  7195. -fi
  7196. -
  7197. -echo "$as_me:$LINENO: checking for working autoheader" >&5
  7198. -echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  7199. -# Run test in a subshell; some versions of sh will print an error if
  7200. -# an executable is not found, even if stderr is redirected.
  7201. -# Redirect stdin to placate older versions of autoconf. Sigh.
  7202. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  7203. - AUTOHEADER=autoheader
  7204. - echo "$as_me:$LINENO: result: found" >&5
  7205. -echo "${ECHO_T}found" >&6
  7206. -else
  7207. - AUTOHEADER="$missing_dir/missing autoheader"
  7208. - echo "$as_me:$LINENO: result: missing" >&5
  7209. -echo "${ECHO_T}missing" >&6
  7210. -fi
  7211. -
  7212. -echo "$as_me:$LINENO: checking for working makeinfo" >&5
  7213. -echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  7214. -# Run test in a subshell; some versions of sh will print an error if
  7215. -# an executable is not found, even if stderr is redirected.
  7216. -# Redirect stdin to placate older versions of autoconf. Sigh.
  7217. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  7218. - MAKEINFO=makeinfo
  7219. - echo "$as_me:$LINENO: result: found" >&5
  7220. -echo "${ECHO_T}found" >&6
  7221. -else
  7222. - MAKEINFO="$missing_dir/missing makeinfo"
  7223. - echo "$as_me:$LINENO: result: missing" >&5
  7224. -echo "${ECHO_T}missing" >&6
  7225. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  7226. +
  7227. +
  7228. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  7229. +
  7230. +
  7231. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  7232. +
  7233. +
  7234. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  7235. +
  7236. +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  7237. +
  7238. +# Installed binaries are usually stripped using `strip' when the user
  7239. +# run `make install-strip'. However `strip' might not be the right
  7240. +# tool to use in cross-compilation environments, therefore Automake
  7241. +# will honor the `STRIP' environment variable to overrule this program.
  7242. +if test "$cross_compiling" != no; then
  7243. + if test -n "$ac_tool_prefix"; then
  7244. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7245. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  7246. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7247. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7248. +if test "${ac_cv_prog_STRIP+set}" = set; then
  7249. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7250. +else
  7251. + if test -n "$STRIP"; then
  7252. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7253. +else
  7254. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7255. +for as_dir in $PATH
  7256. +do
  7257. + IFS=$as_save_IFS
  7258. + test -z "$as_dir" && as_dir=.
  7259. + for ac_exec_ext in '' $ac_executable_extensions; do
  7260. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7261. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7262. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7263. + break 2
  7264. + fi
  7265. +done
  7266. +done
  7267. +IFS=$as_save_IFS
  7268. +
  7269. +fi
  7270. +fi
  7271. +STRIP=$ac_cv_prog_STRIP
  7272. +if test -n "$STRIP"; then
  7273. + { echo "$as_me:$LINENO: result: $STRIP" >&5
  7274. +echo "${ECHO_T}$STRIP" >&6; }
  7275. +else
  7276. + { echo "$as_me:$LINENO: result: no" >&5
  7277. +echo "${ECHO_T}no" >&6; }
  7278. +fi
  7279. +
  7280. +
  7281. +fi
  7282. +if test -z "$ac_cv_prog_STRIP"; then
  7283. + ac_ct_STRIP=$STRIP
  7284. + # Extract the first word of "strip", so it can be a program name with args.
  7285. +set dummy strip; ac_word=$2
  7286. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7287. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7288. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  7289. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7290. +else
  7291. + if test -n "$ac_ct_STRIP"; then
  7292. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7293. +else
  7294. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7295. +for as_dir in $PATH
  7296. +do
  7297. + IFS=$as_save_IFS
  7298. + test -z "$as_dir" && as_dir=.
  7299. + for ac_exec_ext in '' $ac_executable_extensions; do
  7300. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7301. + ac_cv_prog_ac_ct_STRIP="strip"
  7302. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7303. + break 2
  7304. + fi
  7305. +done
  7306. +done
  7307. +IFS=$as_save_IFS
  7308. +
  7309. +fi
  7310. +fi
  7311. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7312. +if test -n "$ac_ct_STRIP"; then
  7313. + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  7314. +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  7315. +else
  7316. + { echo "$as_me:$LINENO: result: no" >&5
  7317. +echo "${ECHO_T}no" >&6; }
  7318. +fi
  7319. +
  7320. + if test "x$ac_ct_STRIP" = x; then
  7321. + STRIP=":"
  7322. + else
  7323. + case $cross_compiling:$ac_tool_warned in
  7324. +yes:)
  7325. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7326. +whose name does not start with the host triplet. If you think this
  7327. +configuration is useful to you, please write to [email protected]." >&5
  7328. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7329. +whose name does not start with the host triplet. If you think this
  7330. +configuration is useful to you, please write to [email protected]." >&2;}
  7331. +ac_tool_warned=yes ;;
  7332. +esac
  7333. + STRIP=$ac_ct_STRIP
  7334. + fi
  7335. +else
  7336. + STRIP="$ac_cv_prog_STRIP"
  7337. +fi
  7338. +
  7339. fi
  7340. +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  7341. +
  7342. +# We need awk for the "check" target. The system "awk" is bad on
  7343. +# some platforms.
  7344. +# Always define AMTAR for backward compatibility.
  7345. +
  7346. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  7347. +
  7348. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  7349. +
  7350. +
  7351. +
  7352. @@ -1870,8 +2553,8 @@
  7353. if test -n "$ac_tool_prefix"; then
  7354. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  7355. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  7356. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  7357. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7358. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7359. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7360. if test "${ac_cv_prog_CC+set}" = set; then
  7361. echo $ECHO_N "(cached) $ECHO_C" >&6
  7362. else
  7363. @@ -1884,32 +2567,34 @@
  7364. IFS=$as_save_IFS
  7365. test -z "$as_dir" && as_dir=.
  7366. for ac_exec_ext in '' $ac_executable_extensions; do
  7367. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7368. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7369. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  7370. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7371. break 2
  7372. fi
  7373. done
  7374. done
  7375. +IFS=$as_save_IFS
  7376. fi
  7377. fi
  7378. CC=$ac_cv_prog_CC
  7379. if test -n "$CC"; then
  7380. - echo "$as_me:$LINENO: result: $CC" >&5
  7381. -echo "${ECHO_T}$CC" >&6
  7382. + { echo "$as_me:$LINENO: result: $CC" >&5
  7383. +echo "${ECHO_T}$CC" >&6; }
  7384. else
  7385. - echo "$as_me:$LINENO: result: no" >&5
  7386. -echo "${ECHO_T}no" >&6
  7387. + { echo "$as_me:$LINENO: result: no" >&5
  7388. +echo "${ECHO_T}no" >&6; }
  7389. fi
  7390. +
  7391. fi
  7392. if test -z "$ac_cv_prog_CC"; then
  7393. ac_ct_CC=$CC
  7394. # Extract the first word of "gcc", so it can be a program name with args.
  7395. set dummy gcc; ac_word=$2
  7396. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  7397. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7398. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7399. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7400. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  7401. echo $ECHO_N "(cached) $ECHO_C" >&6
  7402. else
  7403. @@ -1922,36 +2607,51 @@
  7404. IFS=$as_save_IFS
  7405. test -z "$as_dir" && as_dir=.
  7406. for ac_exec_ext in '' $ac_executable_extensions; do
  7407. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7408. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7409. ac_cv_prog_ac_ct_CC="gcc"
  7410. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7411. break 2
  7412. fi
  7413. done
  7414. done
  7415. +IFS=$as_save_IFS
  7416. fi
  7417. fi
  7418. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7419. if test -n "$ac_ct_CC"; then
  7420. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  7421. -echo "${ECHO_T}$ac_ct_CC" >&6
  7422. + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  7423. +echo "${ECHO_T}$ac_ct_CC" >&6; }
  7424. else
  7425. - echo "$as_me:$LINENO: result: no" >&5
  7426. -echo "${ECHO_T}no" >&6
  7427. + { echo "$as_me:$LINENO: result: no" >&5
  7428. +echo "${ECHO_T}no" >&6; }
  7429. fi
  7430. - CC=$ac_ct_CC
  7431. + if test "x$ac_ct_CC" = x; then
  7432. + CC=""
  7433. + else
  7434. + case $cross_compiling:$ac_tool_warned in
  7435. +yes:)
  7436. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7437. +whose name does not start with the host triplet. If you think this
  7438. +configuration is useful to you, please write to [email protected]." >&5
  7439. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7440. +whose name does not start with the host triplet. If you think this
  7441. +configuration is useful to you, please write to [email protected]." >&2;}
  7442. +ac_tool_warned=yes ;;
  7443. +esac
  7444. + CC=$ac_ct_CC
  7445. + fi
  7446. else
  7447. CC="$ac_cv_prog_CC"
  7448. fi
  7449. if test -z "$CC"; then
  7450. - if test -n "$ac_tool_prefix"; then
  7451. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  7452. + if test -n "$ac_tool_prefix"; then
  7453. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  7454. set dummy ${ac_tool_prefix}cc; ac_word=$2
  7455. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  7456. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7457. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7458. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7459. if test "${ac_cv_prog_CC+set}" = set; then
  7460. echo $ECHO_N "(cached) $ECHO_C" >&6
  7461. else
  7462. @@ -1964,74 +2664,34 @@
  7463. IFS=$as_save_IFS
  7464. test -z "$as_dir" && as_dir=.
  7465. for ac_exec_ext in '' $ac_executable_extensions; do
  7466. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7467. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7468. ac_cv_prog_CC="${ac_tool_prefix}cc"
  7469. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7470. break 2
  7471. fi
  7472. done
  7473. done
  7474. +IFS=$as_save_IFS
  7475. fi
  7476. fi
  7477. CC=$ac_cv_prog_CC
  7478. if test -n "$CC"; then
  7479. - echo "$as_me:$LINENO: result: $CC" >&5
  7480. -echo "${ECHO_T}$CC" >&6
  7481. -else
  7482. - echo "$as_me:$LINENO: result: no" >&5
  7483. -echo "${ECHO_T}no" >&6
  7484. -fi
  7485. -
  7486. -fi
  7487. -if test -z "$ac_cv_prog_CC"; then
  7488. - ac_ct_CC=$CC
  7489. - # Extract the first word of "cc", so it can be a program name with args.
  7490. -set dummy cc; ac_word=$2
  7491. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  7492. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7493. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  7494. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7495. -else
  7496. - if test -n "$ac_ct_CC"; then
  7497. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7498. -else
  7499. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7500. -for as_dir in $PATH
  7501. -do
  7502. - IFS=$as_save_IFS
  7503. - test -z "$as_dir" && as_dir=.
  7504. - for ac_exec_ext in '' $ac_executable_extensions; do
  7505. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7506. - ac_cv_prog_ac_ct_CC="cc"
  7507. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7508. - break 2
  7509. - fi
  7510. -done
  7511. -done
  7512. -
  7513. -fi
  7514. -fi
  7515. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7516. -if test -n "$ac_ct_CC"; then
  7517. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  7518. -echo "${ECHO_T}$ac_ct_CC" >&6
  7519. + { echo "$as_me:$LINENO: result: $CC" >&5
  7520. +echo "${ECHO_T}$CC" >&6; }
  7521. else
  7522. - echo "$as_me:$LINENO: result: no" >&5
  7523. -echo "${ECHO_T}no" >&6
  7524. + { echo "$as_me:$LINENO: result: no" >&5
  7525. +echo "${ECHO_T}no" >&6; }
  7526. fi
  7527. - CC=$ac_ct_CC
  7528. -else
  7529. - CC="$ac_cv_prog_CC"
  7530. -fi
  7531. + fi
  7532. fi
  7533. if test -z "$CC"; then
  7534. # Extract the first word of "cc", so it can be a program name with args.
  7535. set dummy cc; ac_word=$2
  7536. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  7537. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7538. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7539. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7540. if test "${ac_cv_prog_CC+set}" = set; then
  7541. echo $ECHO_N "(cached) $ECHO_C" >&6
  7542. else
  7543. @@ -2045,7 +2705,7 @@
  7544. IFS=$as_save_IFS
  7545. test -z "$as_dir" && as_dir=.
  7546. for ac_exec_ext in '' $ac_executable_extensions; do
  7547. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7548. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7549. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  7550. ac_prog_rejected=yes
  7551. continue
  7552. @@ -2056,6 +2716,7 @@
  7553. fi
  7554. done
  7555. done
  7556. +IFS=$as_save_IFS
  7557. if test $ac_prog_rejected = yes; then
  7558. # We found a bogon in the path, so make sure we never use it.
  7559. @@ -2073,22 +2734,23 @@
  7560. fi
  7561. CC=$ac_cv_prog_CC
  7562. if test -n "$CC"; then
  7563. - echo "$as_me:$LINENO: result: $CC" >&5
  7564. -echo "${ECHO_T}$CC" >&6
  7565. + { echo "$as_me:$LINENO: result: $CC" >&5
  7566. +echo "${ECHO_T}$CC" >&6; }
  7567. else
  7568. - echo "$as_me:$LINENO: result: no" >&5
  7569. -echo "${ECHO_T}no" >&6
  7570. + { echo "$as_me:$LINENO: result: no" >&5
  7571. +echo "${ECHO_T}no" >&6; }
  7572. fi
  7573. +
  7574. fi
  7575. if test -z "$CC"; then
  7576. if test -n "$ac_tool_prefix"; then
  7577. - for ac_prog in cl
  7578. + for ac_prog in cl.exe
  7579. do
  7580. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7581. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7582. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  7583. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7584. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7585. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7586. if test "${ac_cv_prog_CC+set}" = set; then
  7587. echo $ECHO_N "(cached) $ECHO_C" >&6
  7588. else
  7589. @@ -2101,36 +2763,38 @@
  7590. IFS=$as_save_IFS
  7591. test -z "$as_dir" && as_dir=.
  7592. for ac_exec_ext in '' $ac_executable_extensions; do
  7593. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7594. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7595. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  7596. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7597. break 2
  7598. fi
  7599. done
  7600. done
  7601. +IFS=$as_save_IFS
  7602. fi
  7603. fi
  7604. CC=$ac_cv_prog_CC
  7605. if test -n "$CC"; then
  7606. - echo "$as_me:$LINENO: result: $CC" >&5
  7607. -echo "${ECHO_T}$CC" >&6
  7608. + { echo "$as_me:$LINENO: result: $CC" >&5
  7609. +echo "${ECHO_T}$CC" >&6; }
  7610. else
  7611. - echo "$as_me:$LINENO: result: no" >&5
  7612. -echo "${ECHO_T}no" >&6
  7613. + { echo "$as_me:$LINENO: result: no" >&5
  7614. +echo "${ECHO_T}no" >&6; }
  7615. fi
  7616. +
  7617. test -n "$CC" && break
  7618. done
  7619. fi
  7620. if test -z "$CC"; then
  7621. ac_ct_CC=$CC
  7622. - for ac_prog in cl
  7623. + for ac_prog in cl.exe
  7624. do
  7625. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7626. set dummy $ac_prog; ac_word=$2
  7627. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  7628. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7629. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  7630. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7631. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  7632. echo $ECHO_N "(cached) $ECHO_C" >&6
  7633. else
  7634. @@ -2143,29 +2807,45 @@
  7635. IFS=$as_save_IFS
  7636. test -z "$as_dir" && as_dir=.
  7637. for ac_exec_ext in '' $ac_executable_extensions; do
  7638. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7639. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7640. ac_cv_prog_ac_ct_CC="$ac_prog"
  7641. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7642. break 2
  7643. fi
  7644. done
  7645. done
  7646. +IFS=$as_save_IFS
  7647. fi
  7648. fi
  7649. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7650. if test -n "$ac_ct_CC"; then
  7651. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  7652. -echo "${ECHO_T}$ac_ct_CC" >&6
  7653. + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  7654. +echo "${ECHO_T}$ac_ct_CC" >&6; }
  7655. else
  7656. - echo "$as_me:$LINENO: result: no" >&5
  7657. -echo "${ECHO_T}no" >&6
  7658. + { echo "$as_me:$LINENO: result: no" >&5
  7659. +echo "${ECHO_T}no" >&6; }
  7660. fi
  7661. +
  7662. test -n "$ac_ct_CC" && break
  7663. done
  7664. - CC=$ac_ct_CC
  7665. + if test "x$ac_ct_CC" = x; then
  7666. + CC=""
  7667. + else
  7668. + case $cross_compiling:$ac_tool_warned in
  7669. +yes:)
  7670. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7671. +whose name does not start with the host triplet. If you think this
  7672. +configuration is useful to you, please write to [email protected]." >&5
  7673. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7674. +whose name does not start with the host triplet. If you think this
  7675. +configuration is useful to you, please write to [email protected]." >&2;}
  7676. +ac_tool_warned=yes ;;
  7677. +esac
  7678. + CC=$ac_ct_CC
  7679. + fi
  7680. fi
  7681. fi
  7682. @@ -2178,21 +2858,35 @@
  7683. { (exit 1); exit 1; }; }
  7684. # Provide some information about the compiler.
  7685. -echo "$as_me:$LINENO:" \
  7686. - "checking for C compiler version" >&5
  7687. +echo "$as_me:$LINENO: checking for C compiler version" >&5
  7688. ac_compiler=`set X $ac_compile; echo $2`
  7689. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  7690. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  7691. +{ (ac_try="$ac_compiler --version >&5"
  7692. +case "(($ac_try" in
  7693. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7694. + *) ac_try_echo=$ac_try;;
  7695. +esac
  7696. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7697. + (eval "$ac_compiler --version >&5") 2>&5
  7698. ac_status=$?
  7699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7700. (exit $ac_status); }
  7701. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  7702. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  7703. +{ (ac_try="$ac_compiler -v >&5"
  7704. +case "(($ac_try" in
  7705. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7706. + *) ac_try_echo=$ac_try;;
  7707. +esac
  7708. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7709. + (eval "$ac_compiler -v >&5") 2>&5
  7710. ac_status=$?
  7711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7712. (exit $ac_status); }
  7713. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  7714. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  7715. +{ (ac_try="$ac_compiler -V >&5"
  7716. +case "(($ac_try" in
  7717. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7718. + *) ac_try_echo=$ac_try;;
  7719. +esac
  7720. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7721. + (eval "$ac_compiler -V >&5") 2>&5
  7722. ac_status=$?
  7723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7724. (exit $ac_status); }
  7725. @@ -2217,47 +2911,77 @@
  7726. # Try to create an executable without -o first, disregard a.out.
  7727. # It will help us diagnose broken compilers, and finding out an intuition
  7728. # of exeext.
  7729. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  7730. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  7731. +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  7732. +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  7733. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  7734. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  7735. - (eval $ac_link_default) 2>&5
  7736. +#
  7737. +# List of possible output files, starting from the most likely.
  7738. +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  7739. +# only as a last resort. b.out is created by i960 compilers.
  7740. +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  7741. +#
  7742. +# The IRIX 6 linker writes into existing files which may not be
  7743. +# executable, retaining their permissions. Remove them first so a
  7744. +# subsequent execution test works.
  7745. +ac_rmfiles=
  7746. +for ac_file in $ac_files
  7747. +do
  7748. + case $ac_file in
  7749. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  7750. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  7751. + esac
  7752. +done
  7753. +rm -f $ac_rmfiles
  7754. +
  7755. +if { (ac_try="$ac_link_default"
  7756. +case "(($ac_try" in
  7757. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7758. + *) ac_try_echo=$ac_try;;
  7759. +esac
  7760. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7761. + (eval "$ac_link_default") 2>&5
  7762. ac_status=$?
  7763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. (exit $ac_status); }; then
  7765. - # Find the output, starting from the most likely. This scheme is
  7766. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  7767. -# resort.
  7768. -
  7769. -# Be careful to initialize this variable, since it used to be cached.
  7770. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  7771. -ac_cv_exeext=
  7772. -# b.out is created by i960 compilers.
  7773. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  7774. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  7775. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  7776. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  7777. +# so that the user can short-circuit this test for compilers unknown to
  7778. +# Autoconf.
  7779. +for ac_file in $ac_files ''
  7780. do
  7781. test -f "$ac_file" || continue
  7782. case $ac_file in
  7783. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  7784. - ;;
  7785. - conftest.$ac_ext )
  7786. - # This is the source file.
  7787. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  7788. ;;
  7789. [ab].out )
  7790. # We found the default executable, but exeext='' is most
  7791. # certainly right.
  7792. break;;
  7793. *.* )
  7794. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  7795. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  7796. - # but it would be cool to find out if it's true. Does anybody
  7797. - # maintain Libtool? --akim.
  7798. - export ac_cv_exeext
  7799. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  7800. + then :; else
  7801. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  7802. + fi
  7803. + # We set ac_cv_exeext here because the later test for it is not
  7804. + # safe: cross compilers may not add the suffix if given an `-o'
  7805. + # argument, so we may need to know it at that point already.
  7806. + # Even if this section looks crufty: it has the advantage of
  7807. + # actually working.
  7808. break;;
  7809. * )
  7810. break;;
  7811. esac
  7812. done
  7813. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  7814. +
  7815. else
  7816. + ac_file=''
  7817. +fi
  7818. +
  7819. +{ echo "$as_me:$LINENO: result: $ac_file" >&5
  7820. +echo "${ECHO_T}$ac_file" >&6; }
  7821. +if test -z "$ac_file"; then
  7822. echo "$as_me: failed program was:" >&5
  7823. sed 's/^/| /' conftest.$ac_ext >&5
  7824. @@ -2269,19 +2993,21 @@
  7825. fi
  7826. ac_exeext=$ac_cv_exeext
  7827. -echo "$as_me:$LINENO: result: $ac_file" >&5
  7828. -echo "${ECHO_T}$ac_file" >&6
  7829. -# Check the compiler produces executables we can run. If not, either
  7830. +# Check that the compiler produces executables we can run. If not, either
  7831. # the compiler is broken, or we cross compile.
  7832. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  7833. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  7834. +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  7835. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  7836. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  7837. # If not cross compiling, check that we can run a simple program.
  7838. if test "$cross_compiling" != yes; then
  7839. if { ac_try='./$ac_file'
  7840. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7841. - (eval $ac_try) 2>&5
  7842. + { (case "(($ac_try" in
  7843. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7844. + *) ac_try_echo=$ac_try;;
  7845. +esac
  7846. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7847. + (eval "$ac_try") 2>&5
  7848. ac_status=$?
  7849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7850. (exit $ac_status); }; }; then
  7851. @@ -2300,22 +3026,27 @@
  7852. fi
  7853. fi
  7854. fi
  7855. -echo "$as_me:$LINENO: result: yes" >&5
  7856. -echo "${ECHO_T}yes" >&6
  7857. +{ echo "$as_me:$LINENO: result: yes" >&5
  7858. +echo "${ECHO_T}yes" >&6; }
  7859. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  7860. ac_clean_files=$ac_clean_files_save
  7861. -# Check the compiler produces executables we can run. If not, either
  7862. +# Check that the compiler produces executables we can run. If not, either
  7863. # the compiler is broken, or we cross compile.
  7864. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  7865. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  7866. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  7867. -echo "${ECHO_T}$cross_compiling" >&6
  7868. -
  7869. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  7870. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  7871. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7872. - (eval $ac_link) 2>&5
  7873. +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  7874. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  7875. +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  7876. +echo "${ECHO_T}$cross_compiling" >&6; }
  7877. +
  7878. +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  7879. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  7880. +if { (ac_try="$ac_link"
  7881. +case "(($ac_try" in
  7882. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7883. + *) ac_try_echo=$ac_try;;
  7884. +esac
  7885. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7886. + (eval "$ac_link") 2>&5
  7887. ac_status=$?
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. (exit $ac_status); }; then
  7890. @@ -2326,9 +3057,8 @@
  7891. for ac_file in conftest.exe conftest conftest.*; do
  7892. test -f "$ac_file" || continue
  7893. case $ac_file in
  7894. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  7895. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  7896. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  7897. - export ac_cv_exeext
  7898. break;;
  7899. * ) break;;
  7900. esac
  7901. @@ -2342,14 +3072,14 @@
  7902. fi
  7903. rm -f conftest$ac_cv_exeext
  7904. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  7905. -echo "${ECHO_T}$ac_cv_exeext" >&6
  7906. +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  7907. +echo "${ECHO_T}$ac_cv_exeext" >&6; }
  7908. rm -f conftest.$ac_ext
  7909. EXEEXT=$ac_cv_exeext
  7910. ac_exeext=$EXEEXT
  7911. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  7912. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  7913. +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  7914. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  7915. if test "${ac_cv_objext+set}" = set; then
  7916. echo $ECHO_N "(cached) $ECHO_C" >&6
  7917. else
  7918. @@ -2369,14 +3099,20 @@
  7919. }
  7920. _ACEOF
  7921. rm -f conftest.o conftest.obj
  7922. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7923. - (eval $ac_compile) 2>&5
  7924. +if { (ac_try="$ac_compile"
  7925. +case "(($ac_try" in
  7926. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7927. + *) ac_try_echo=$ac_try;;
  7928. +esac
  7929. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7930. + (eval "$ac_compile") 2>&5
  7931. ac_status=$?
  7932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7933. (exit $ac_status); }; then
  7934. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  7935. + for ac_file in conftest.o conftest.obj conftest.*; do
  7936. + test -f "$ac_file" || continue;
  7937. case $ac_file in
  7938. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  7939. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  7940. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  7941. break;;
  7942. esac
  7943. @@ -2394,12 +3130,12 @@
  7944. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  7945. fi
  7946. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  7947. -echo "${ECHO_T}$ac_cv_objext" >&6
  7948. +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  7949. +echo "${ECHO_T}$ac_cv_objext" >&6; }
  7950. OBJEXT=$ac_cv_objext
  7951. ac_objext=$OBJEXT
  7952. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  7953. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  7954. +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  7955. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  7956. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  7957. echo $ECHO_N "(cached) $ECHO_C" >&6
  7958. else
  7959. @@ -2422,49 +3158,49 @@
  7960. }
  7961. _ACEOF
  7962. rm -f conftest.$ac_objext
  7963. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7964. - (eval $ac_compile) 2>conftest.er1
  7965. +if { (ac_try="$ac_compile"
  7966. +case "(($ac_try" in
  7967. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7968. + *) ac_try_echo=$ac_try;;
  7969. +esac
  7970. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7971. + (eval "$ac_compile") 2>conftest.er1
  7972. ac_status=$?
  7973. grep -v '^ *+' conftest.er1 >conftest.err
  7974. rm -f conftest.er1
  7975. cat conftest.err >&5
  7976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7977. - (exit $ac_status); } &&
  7978. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7979. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7980. - (eval $ac_try) 2>&5
  7981. - ac_status=$?
  7982. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7983. - (exit $ac_status); }; } &&
  7984. - { ac_try='test -s conftest.$ac_objext'
  7985. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7986. - (eval $ac_try) 2>&5
  7987. - ac_status=$?
  7988. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989. - (exit $ac_status); }; }; then
  7990. + (exit $ac_status); } && {
  7991. + test -z "$ac_c_werror_flag" ||
  7992. + test ! -s conftest.err
  7993. + } && test -s conftest.$ac_objext; then
  7994. ac_compiler_gnu=yes
  7995. else
  7996. echo "$as_me: failed program was:" >&5
  7997. sed 's/^/| /' conftest.$ac_ext >&5
  7998. -ac_compiler_gnu=no
  7999. + ac_compiler_gnu=no
  8000. fi
  8001. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8002. +
  8003. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8004. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  8005. fi
  8006. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  8007. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  8008. +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  8009. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  8010. GCC=`test $ac_compiler_gnu = yes && echo yes`
  8011. ac_test_CFLAGS=${CFLAGS+set}
  8012. ac_save_CFLAGS=$CFLAGS
  8013. -CFLAGS="-g"
  8014. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  8015. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  8016. +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  8017. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  8018. if test "${ac_cv_prog_cc_g+set}" = set; then
  8019. echo $ECHO_N "(cached) $ECHO_C" >&6
  8020. else
  8021. - cat >conftest.$ac_ext <<_ACEOF
  8022. + ac_save_c_werror_flag=$ac_c_werror_flag
  8023. + ac_c_werror_flag=yes
  8024. + ac_cv_prog_cc_g=no
  8025. + CFLAGS="-g"
  8026. + cat >conftest.$ac_ext <<_ACEOF
  8027. /* confdefs.h. */
  8028. _ACEOF
  8029. cat confdefs.h >>conftest.$ac_ext
  8030. @@ -2480,37 +3216,118 @@
  8031. }
  8032. _ACEOF
  8033. rm -f conftest.$ac_objext
  8034. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8035. - (eval $ac_compile) 2>conftest.er1
  8036. +if { (ac_try="$ac_compile"
  8037. +case "(($ac_try" in
  8038. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8039. + *) ac_try_echo=$ac_try;;
  8040. +esac
  8041. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8042. + (eval "$ac_compile") 2>conftest.er1
  8043. ac_status=$?
  8044. grep -v '^ *+' conftest.er1 >conftest.err
  8045. rm -f conftest.er1
  8046. cat conftest.err >&5
  8047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048. - (exit $ac_status); } &&
  8049. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8050. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8051. - (eval $ac_try) 2>&5
  8052. + (exit $ac_status); } && {
  8053. + test -z "$ac_c_werror_flag" ||
  8054. + test ! -s conftest.err
  8055. + } && test -s conftest.$ac_objext; then
  8056. + ac_cv_prog_cc_g=yes
  8057. +else
  8058. + echo "$as_me: failed program was:" >&5
  8059. +sed 's/^/| /' conftest.$ac_ext >&5
  8060. +
  8061. + CFLAGS=""
  8062. + cat >conftest.$ac_ext <<_ACEOF
  8063. +/* confdefs.h. */
  8064. +_ACEOF
  8065. +cat confdefs.h >>conftest.$ac_ext
  8066. +cat >>conftest.$ac_ext <<_ACEOF
  8067. +/* end confdefs.h. */
  8068. +
  8069. +int
  8070. +main ()
  8071. +{
  8072. +
  8073. + ;
  8074. + return 0;
  8075. +}
  8076. +_ACEOF
  8077. +rm -f conftest.$ac_objext
  8078. +if { (ac_try="$ac_compile"
  8079. +case "(($ac_try" in
  8080. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8081. + *) ac_try_echo=$ac_try;;
  8082. +esac
  8083. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8084. + (eval "$ac_compile") 2>conftest.er1
  8085. ac_status=$?
  8086. + grep -v '^ *+' conftest.er1 >conftest.err
  8087. + rm -f conftest.er1
  8088. + cat conftest.err >&5
  8089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8090. - (exit $ac_status); }; } &&
  8091. - { ac_try='test -s conftest.$ac_objext'
  8092. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8093. - (eval $ac_try) 2>&5
  8094. + (exit $ac_status); } && {
  8095. + test -z "$ac_c_werror_flag" ||
  8096. + test ! -s conftest.err
  8097. + } && test -s conftest.$ac_objext; then
  8098. + :
  8099. +else
  8100. + echo "$as_me: failed program was:" >&5
  8101. +sed 's/^/| /' conftest.$ac_ext >&5
  8102. +
  8103. + ac_c_werror_flag=$ac_save_c_werror_flag
  8104. + CFLAGS="-g"
  8105. + cat >conftest.$ac_ext <<_ACEOF
  8106. +/* confdefs.h. */
  8107. +_ACEOF
  8108. +cat confdefs.h >>conftest.$ac_ext
  8109. +cat >>conftest.$ac_ext <<_ACEOF
  8110. +/* end confdefs.h. */
  8111. +
  8112. +int
  8113. +main ()
  8114. +{
  8115. +
  8116. + ;
  8117. + return 0;
  8118. +}
  8119. +_ACEOF
  8120. +rm -f conftest.$ac_objext
  8121. +if { (ac_try="$ac_compile"
  8122. +case "(($ac_try" in
  8123. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8124. + *) ac_try_echo=$ac_try;;
  8125. +esac
  8126. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8127. + (eval "$ac_compile") 2>conftest.er1
  8128. ac_status=$?
  8129. + grep -v '^ *+' conftest.er1 >conftest.err
  8130. + rm -f conftest.er1
  8131. + cat conftest.err >&5
  8132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8133. - (exit $ac_status); }; }; then
  8134. + (exit $ac_status); } && {
  8135. + test -z "$ac_c_werror_flag" ||
  8136. + test ! -s conftest.err
  8137. + } && test -s conftest.$ac_objext; then
  8138. ac_cv_prog_cc_g=yes
  8139. else
  8140. echo "$as_me: failed program was:" >&5
  8141. sed 's/^/| /' conftest.$ac_ext >&5
  8142. -ac_cv_prog_cc_g=no
  8143. +
  8144. +fi
  8145. +
  8146. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8147. fi
  8148. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8149. +
  8150. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8151. +fi
  8152. +
  8153. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8154. + ac_c_werror_flag=$ac_save_c_werror_flag
  8155. fi
  8156. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  8157. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  8158. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  8159. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  8160. if test "$ac_test_CFLAGS" = set; then
  8161. CFLAGS=$ac_save_CFLAGS
  8162. elif test $ac_cv_prog_cc_g = yes; then
  8163. @@ -2526,12 +3343,12 @@
  8164. CFLAGS=
  8165. fi
  8166. fi
  8167. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  8168. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  8169. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  8170. +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  8171. +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  8172. +if test "${ac_cv_prog_cc_c89+set}" = set; then
  8173. echo $ECHO_N "(cached) $ECHO_C" >&6
  8174. else
  8175. - ac_cv_prog_cc_stdc=no
  8176. + ac_cv_prog_cc_c89=no
  8177. ac_save_CC=$CC
  8178. cat >conftest.$ac_ext <<_ACEOF
  8179. /* confdefs.h. */
  8180. @@ -2565,12 +3382,17 @@
  8181. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  8182. function prototypes and stuff, but not '\xHH' hex character constants.
  8183. These don't provoke an error unfortunately, instead are silently treated
  8184. - as 'x'. The following induces an error, until -std1 is added to get
  8185. + as 'x'. The following induces an error, until -std is added to get
  8186. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  8187. array size at least. It's necessary to write '\x00'==0 to get something
  8188. - that's true only with -std1. */
  8189. + that's true only with -std. */
  8190. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  8191. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  8192. + inside strings and character constants. */
  8193. +#define FOO(x) 'x'
  8194. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  8195. +
  8196. int test (int i, double x);
  8197. struct s1 {int (*f) (int a);};
  8198. struct s2 {int (*f) (double a);};
  8199. @@ -2585,256 +3407,244 @@
  8200. return 0;
  8201. }
  8202. _ACEOF
  8203. -# Don't try gcc -ansi; that turns off useful extensions and
  8204. -# breaks some systems' header files.
  8205. -# AIX -qlanglvl=ansi
  8206. -# Ultrix and OSF/1 -std1
  8207. -# HP-UX 10.20 and later -Ae
  8208. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  8209. -# SVR4 -Xc -D__EXTENSIONS__
  8210. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  8211. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  8212. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  8213. do
  8214. CC="$ac_save_CC $ac_arg"
  8215. rm -f conftest.$ac_objext
  8216. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8217. - (eval $ac_compile) 2>conftest.er1
  8218. +if { (ac_try="$ac_compile"
  8219. +case "(($ac_try" in
  8220. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8221. + *) ac_try_echo=$ac_try;;
  8222. +esac
  8223. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8224. + (eval "$ac_compile") 2>conftest.er1
  8225. ac_status=$?
  8226. grep -v '^ *+' conftest.er1 >conftest.err
  8227. rm -f conftest.er1
  8228. cat conftest.err >&5
  8229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8230. - (exit $ac_status); } &&
  8231. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8232. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8233. - (eval $ac_try) 2>&5
  8234. - ac_status=$?
  8235. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8236. - (exit $ac_status); }; } &&
  8237. - { ac_try='test -s conftest.$ac_objext'
  8238. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8239. - (eval $ac_try) 2>&5
  8240. - ac_status=$?
  8241. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8242. - (exit $ac_status); }; }; then
  8243. - ac_cv_prog_cc_stdc=$ac_arg
  8244. -break
  8245. + (exit $ac_status); } && {
  8246. + test -z "$ac_c_werror_flag" ||
  8247. + test ! -s conftest.err
  8248. + } && test -s conftest.$ac_objext; then
  8249. + ac_cv_prog_cc_c89=$ac_arg
  8250. else
  8251. echo "$as_me: failed program was:" >&5
  8252. sed 's/^/| /' conftest.$ac_ext >&5
  8253. +
  8254. fi
  8255. -rm -f conftest.err conftest.$ac_objext
  8256. +
  8257. +rm -f core conftest.err conftest.$ac_objext
  8258. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  8259. done
  8260. -rm -f conftest.$ac_ext conftest.$ac_objext
  8261. +rm -f conftest.$ac_ext
  8262. CC=$ac_save_CC
  8263. fi
  8264. -
  8265. -case "x$ac_cv_prog_cc_stdc" in
  8266. - x|xno)
  8267. - echo "$as_me:$LINENO: result: none needed" >&5
  8268. -echo "${ECHO_T}none needed" >&6 ;;
  8269. +# AC_CACHE_VAL
  8270. +case "x$ac_cv_prog_cc_c89" in
  8271. + x)
  8272. + { echo "$as_me:$LINENO: result: none needed" >&5
  8273. +echo "${ECHO_T}none needed" >&6; } ;;
  8274. + xno)
  8275. + { echo "$as_me:$LINENO: result: unsupported" >&5
  8276. +echo "${ECHO_T}unsupported" >&6; } ;;
  8277. *)
  8278. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  8279. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  8280. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  8281. + CC="$CC $ac_cv_prog_cc_c89"
  8282. + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  8283. +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  8284. esac
  8285. -# Some people use a C++ compiler to compile C. Since we use `exit',
  8286. -# in C++ we need to declare it. In case someone uses the same compiler
  8287. -# for both compiling C and C++ we need to have the C++ compiler decide
  8288. -# the declaration of exit, since it's the most demanding environment.
  8289. -cat >conftest.$ac_ext <<_ACEOF
  8290. -#ifndef __cplusplus
  8291. - choke me
  8292. -#endif
  8293. -_ACEOF
  8294. -rm -f conftest.$ac_objext
  8295. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8296. - (eval $ac_compile) 2>conftest.er1
  8297. - ac_status=$?
  8298. - grep -v '^ *+' conftest.er1 >conftest.err
  8299. - rm -f conftest.er1
  8300. - cat conftest.err >&5
  8301. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8302. - (exit $ac_status); } &&
  8303. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8304. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8305. - (eval $ac_try) 2>&5
  8306. - ac_status=$?
  8307. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8308. - (exit $ac_status); }; } &&
  8309. - { ac_try='test -s conftest.$ac_objext'
  8310. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8311. - (eval $ac_try) 2>&5
  8312. - ac_status=$?
  8313. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8314. - (exit $ac_status); }; }; then
  8315. - for ac_declaration in \
  8316. - '' \
  8317. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  8318. - 'extern "C" void std::exit (int); using std::exit;' \
  8319. - 'extern "C" void exit (int) throw ();' \
  8320. - 'extern "C" void exit (int);' \
  8321. - 'void exit (int);'
  8322. -do
  8323. - cat >conftest.$ac_ext <<_ACEOF
  8324. -/* confdefs.h. */
  8325. -_ACEOF
  8326. -cat confdefs.h >>conftest.$ac_ext
  8327. -cat >>conftest.$ac_ext <<_ACEOF
  8328. -/* end confdefs.h. */
  8329. -$ac_declaration
  8330. -#include <stdlib.h>
  8331. -int
  8332. -main ()
  8333. -{
  8334. -exit (42);
  8335. - ;
  8336. - return 0;
  8337. -}
  8338. -_ACEOF
  8339. -rm -f conftest.$ac_objext
  8340. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8341. - (eval $ac_compile) 2>conftest.er1
  8342. - ac_status=$?
  8343. - grep -v '^ *+' conftest.er1 >conftest.err
  8344. - rm -f conftest.er1
  8345. - cat conftest.err >&5
  8346. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8347. - (exit $ac_status); } &&
  8348. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8349. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8350. - (eval $ac_try) 2>&5
  8351. - ac_status=$?
  8352. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8353. - (exit $ac_status); }; } &&
  8354. - { ac_try='test -s conftest.$ac_objext'
  8355. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8356. - (eval $ac_try) 2>&5
  8357. - ac_status=$?
  8358. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8359. - (exit $ac_status); }; }; then
  8360. - :
  8361. -else
  8362. - echo "$as_me: failed program was:" >&5
  8363. -sed 's/^/| /' conftest.$ac_ext >&5
  8364. -continue
  8365. +ac_ext=c
  8366. +ac_cpp='$CPP $CPPFLAGS'
  8367. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8368. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8369. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8370. +DEPDIR="${am__leading_dot}deps"
  8371. +
  8372. +ac_config_commands="$ac_config_commands depfiles"
  8373. +
  8374. +
  8375. +am_make=${MAKE-make}
  8376. +cat > confinc << 'END'
  8377. +am__doit:
  8378. + @echo done
  8379. +.PHONY: am__doit
  8380. +END
  8381. +# If we don't find an include directive, just comment out the code.
  8382. +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  8383. +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  8384. +am__include="#"
  8385. +am__quote=
  8386. +_am_result=none
  8387. +# First try GNU make style include.
  8388. +echo "include confinc" > confmf
  8389. +# We grep out `Entering directory' and `Leaving directory'
  8390. +# messages which can occur if `w' ends up in MAKEFLAGS.
  8391. +# In particular we don't look at `^make:' because GNU make might
  8392. +# be invoked under some other name (usually "gmake"), in which
  8393. +# case it prints its new name instead of `make'.
  8394. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  8395. + am__include=include
  8396. + am__quote=
  8397. + _am_result=GNU
  8398. +fi
  8399. +# Now try BSD make style include.
  8400. +if test "$am__include" = "#"; then
  8401. + echo '.include "confinc"' > confmf
  8402. + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  8403. + am__include=.include
  8404. + am__quote="\""
  8405. + _am_result=BSD
  8406. + fi
  8407. fi
  8408. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8409. - cat >conftest.$ac_ext <<_ACEOF
  8410. -/* confdefs.h. */
  8411. -_ACEOF
  8412. -cat confdefs.h >>conftest.$ac_ext
  8413. -cat >>conftest.$ac_ext <<_ACEOF
  8414. -/* end confdefs.h. */
  8415. -$ac_declaration
  8416. -int
  8417. -main ()
  8418. -{
  8419. -exit (42);
  8420. - ;
  8421. - return 0;
  8422. -}
  8423. -_ACEOF
  8424. -rm -f conftest.$ac_objext
  8425. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8426. - (eval $ac_compile) 2>conftest.er1
  8427. - ac_status=$?
  8428. - grep -v '^ *+' conftest.er1 >conftest.err
  8429. - rm -f conftest.er1
  8430. - cat conftest.err >&5
  8431. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8432. - (exit $ac_status); } &&
  8433. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8434. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8435. - (eval $ac_try) 2>&5
  8436. - ac_status=$?
  8437. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8438. - (exit $ac_status); }; } &&
  8439. - { ac_try='test -s conftest.$ac_objext'
  8440. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8441. - (eval $ac_try) 2>&5
  8442. - ac_status=$?
  8443. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8444. - (exit $ac_status); }; }; then
  8445. - break
  8446. -else
  8447. - echo "$as_me: failed program was:" >&5
  8448. -sed 's/^/| /' conftest.$ac_ext >&5
  8449. +
  8450. +{ echo "$as_me:$LINENO: result: $_am_result" >&5
  8451. +echo "${ECHO_T}$_am_result" >&6; }
  8452. +rm -f confinc confmf
  8453. +
  8454. +# Check whether --enable-dependency-tracking was given.
  8455. +if test "${enable_dependency_tracking+set}" = set; then
  8456. + enableval=$enable_dependency_tracking;
  8457. fi
  8458. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8459. -done
  8460. -rm -f conftest*
  8461. -if test -n "$ac_declaration"; then
  8462. - echo '#ifdef __cplusplus' >>confdefs.h
  8463. - echo $ac_declaration >>confdefs.h
  8464. - echo '#endif' >>confdefs.h
  8465. +
  8466. +if test "x$enable_dependency_tracking" != xno; then
  8467. + am_depcomp="$ac_aux_dir/depcomp"
  8468. + AMDEPBACKSLASH='\'
  8469. fi
  8470. -else
  8471. - echo "$as_me: failed program was:" >&5
  8472. -sed 's/^/| /' conftest.$ac_ext >&5
  8473. +if test "x$enable_dependency_tracking" != xno; then
  8474. + AMDEP_TRUE=
  8475. + AMDEP_FALSE='#'
  8476. +else
  8477. + AMDEP_TRUE='#'
  8478. + AMDEP_FALSE=
  8479. fi
  8480. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8481. -ac_ext=c
  8482. -ac_cpp='$CPP $CPPFLAGS'
  8483. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8484. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8485. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8486. -missing_dir=`cd $ac_aux_dir && pwd`
  8487. -for ac_prog in flex lex
  8488. -do
  8489. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  8490. -set dummy $ac_prog; ac_word=$2
  8491. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8492. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8493. -if test "${ac_cv_prog_LEX+set}" = set; then
  8494. +
  8495. +
  8496. +depcc="$CC" am_compiler_list=
  8497. +
  8498. +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  8499. +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  8500. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  8501. echo $ECHO_N "(cached) $ECHO_C" >&6
  8502. else
  8503. - if test -n "$LEX"; then
  8504. - ac_cv_prog_LEX="$LEX" # Let the user override the test.
  8505. -else
  8506. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8507. -for as_dir in $PATH
  8508. -do
  8509. - IFS=$as_save_IFS
  8510. - test -z "$as_dir" && as_dir=.
  8511. - for ac_exec_ext in '' $ac_executable_extensions; do
  8512. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8513. - ac_cv_prog_LEX="$ac_prog"
  8514. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8515. - break 2
  8516. - fi
  8517. -done
  8518. -done
  8519. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8520. + # We make a subdir and do the tests there. Otherwise we can end up
  8521. + # making bogus files that we don't know about and never remove. For
  8522. + # instance it was reported that on HP-UX the gcc test will end up
  8523. + # making a dummy file named `D' -- because `-MD' means `put the output
  8524. + # in D'.
  8525. + mkdir conftest.dir
  8526. + # Copy depcomp to subdir because otherwise we won't find it if we're
  8527. + # using a relative directory.
  8528. + cp "$am_depcomp" conftest.dir
  8529. + cd conftest.dir
  8530. + # We will build objects and dependencies in a subdirectory because
  8531. + # it helps to detect inapplicable dependency modes. For instance
  8532. + # both Tru64's cc and ICC support -MD to output dependencies as a
  8533. + # side effect of compilation, but ICC will put the dependencies in
  8534. + # the current directory while Tru64 will put them in the object
  8535. + # directory.
  8536. + mkdir sub
  8537. +
  8538. + am_cv_CC_dependencies_compiler_type=none
  8539. + if test "$am_compiler_list" = ""; then
  8540. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  8541. + fi
  8542. + for depmode in $am_compiler_list; do
  8543. + # Setup a source with many dependencies, because some compilers
  8544. + # like to wrap large dependency lists on column 80 (with \), and
  8545. + # we should not choose a depcomp mode which is confused by this.
  8546. + #
  8547. + # We need to recreate these files for each test, as the compiler may
  8548. + # overwrite some of them when testing with obscure command lines.
  8549. + # This happens at least with the AIX C compiler.
  8550. + : > sub/conftest.c
  8551. + for i in 1 2 3 4 5 6; do
  8552. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8553. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8554. + # Solaris 8's {/usr,}/bin/sh.
  8555. + touch sub/conftst$i.h
  8556. + done
  8557. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8558. +
  8559. + case $depmode in
  8560. + nosideeffect)
  8561. + # after this tag, mechanisms are not by side-effect, so they'll
  8562. + # only be used when explicitly requested
  8563. + if test "x$enable_dependency_tracking" = xyes; then
  8564. + continue
  8565. + else
  8566. + break
  8567. + fi
  8568. + ;;
  8569. + none) break ;;
  8570. + esac
  8571. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8572. + # mode. It turns out that the SunPro C++ compiler does not properly
  8573. + # handle `-M -o', and we need to detect this.
  8574. + if depmode=$depmode \
  8575. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8576. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8577. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8578. + >/dev/null 2>conftest.err &&
  8579. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8580. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8581. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8582. + # icc doesn't choke on unknown options, it will just issue warnings
  8583. + # or remarks (even with -Werror). So we grep stderr for any message
  8584. + # that says an option was ignored or not supported.
  8585. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  8586. + # icc: Command line warning: ignoring option '-M'; no argument required
  8587. + # The diagnosis changed in icc 8.0:
  8588. + # icc: Command line remark: option '-MP' not supported
  8589. + if (grep 'ignoring option' conftest.err ||
  8590. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8591. + am_cv_CC_dependencies_compiler_type=$depmode
  8592. + break
  8593. + fi
  8594. + fi
  8595. + done
  8596. + cd ..
  8597. + rm -rf conftest.dir
  8598. +else
  8599. + am_cv_CC_dependencies_compiler_type=none
  8600. fi
  8601. +
  8602. fi
  8603. -LEX=$ac_cv_prog_LEX
  8604. -if test -n "$LEX"; then
  8605. - echo "$as_me:$LINENO: result: $LEX" >&5
  8606. -echo "${ECHO_T}$LEX" >&6
  8607. +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  8608. +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  8609. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  8610. +
  8611. +
  8612. +
  8613. +if
  8614. + test "x$enable_dependency_tracking" != xno \
  8615. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  8616. + am__fastdepCC_TRUE=
  8617. + am__fastdepCC_FALSE='#'
  8618. else
  8619. - echo "$as_me:$LINENO: result: no" >&5
  8620. -echo "${ECHO_T}no" >&6
  8621. + am__fastdepCC_TRUE='#'
  8622. + am__fastdepCC_FALSE=
  8623. fi
  8624. - test -n "$LEX" && break
  8625. -done
  8626. -test -n "$LEX" || LEX="$missing_dir/missing flex"
  8627. +
  8628. for ac_prog in flex lex
  8629. do
  8630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8631. set dummy $ac_prog; ac_word=$2
  8632. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8633. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8634. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8635. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8636. if test "${ac_cv_prog_LEX+set}" = set; then
  8637. echo $ECHO_N "(cached) $ECHO_C" >&6
  8638. else
  8639. @@ -2847,250 +3657,182 @@
  8640. IFS=$as_save_IFS
  8641. test -z "$as_dir" && as_dir=.
  8642. for ac_exec_ext in '' $ac_executable_extensions; do
  8643. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8644. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8645. ac_cv_prog_LEX="$ac_prog"
  8646. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8647. break 2
  8648. fi
  8649. done
  8650. done
  8651. +IFS=$as_save_IFS
  8652. fi
  8653. fi
  8654. LEX=$ac_cv_prog_LEX
  8655. if test -n "$LEX"; then
  8656. - echo "$as_me:$LINENO: result: $LEX" >&5
  8657. -echo "${ECHO_T}$LEX" >&6
  8658. + { echo "$as_me:$LINENO: result: $LEX" >&5
  8659. +echo "${ECHO_T}$LEX" >&6; }
  8660. else
  8661. - echo "$as_me:$LINENO: result: no" >&5
  8662. -echo "${ECHO_T}no" >&6
  8663. + { echo "$as_me:$LINENO: result: no" >&5
  8664. +echo "${ECHO_T}no" >&6; }
  8665. fi
  8666. +
  8667. test -n "$LEX" && break
  8668. done
  8669. test -n "$LEX" || LEX=":"
  8670. -if test -z "$LEXLIB"
  8671. -then
  8672. - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
  8673. -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
  8674. -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  8675. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8676. -else
  8677. - ac_check_lib_save_LIBS=$LIBS
  8678. -LIBS="-lfl $LIBS"
  8679. -cat >conftest.$ac_ext <<_ACEOF
  8680. -/* confdefs.h. */
  8681. +if test "x$LEX" != "x:"; then
  8682. + cat >conftest.l <<_ACEOF
  8683. +%%
  8684. +a { ECHO; }
  8685. +b { REJECT; }
  8686. +c { yymore (); }
  8687. +d { yyless (1); }
  8688. +e { yyless (input () != 0); }
  8689. +f { unput (yytext[0]); }
  8690. +. { BEGIN INITIAL; }
  8691. +%%
  8692. +#ifdef YYTEXT_POINTER
  8693. +extern char *yytext;
  8694. +#endif
  8695. +int
  8696. +main (void)
  8697. +{
  8698. + return ! yylex () + ! yywrap ();
  8699. +}
  8700. _ACEOF
  8701. -cat confdefs.h >>conftest.$ac_ext
  8702. -cat >>conftest.$ac_ext <<_ACEOF
  8703. -/* end confdefs.h. */
  8704. -
  8705. -/* Override any gcc2 internal prototype to avoid an error. */
  8706. -#ifdef __cplusplus
  8707. -extern "C"
  8708. -#endif
  8709. -/* We use char because int might match the return type of a gcc2
  8710. - builtin and then its argument prototype would still apply. */
  8711. -char yywrap ();
  8712. -int
  8713. -main ()
  8714. -{
  8715. -yywrap ();
  8716. - ;
  8717. - return 0;
  8718. -}
  8719. -_ACEOF
  8720. -rm -f conftest.$ac_objext conftest$ac_exeext
  8721. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8722. - (eval $ac_link) 2>conftest.er1
  8723. - ac_status=$?
  8724. - grep -v '^ *+' conftest.er1 >conftest.err
  8725. - rm -f conftest.er1
  8726. - cat conftest.err >&5
  8727. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8728. - (exit $ac_status); } &&
  8729. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8730. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8731. - (eval $ac_try) 2>&5
  8732. - ac_status=$?
  8733. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8734. - (exit $ac_status); }; } &&
  8735. - { ac_try='test -s conftest$ac_exeext'
  8736. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8737. - (eval $ac_try) 2>&5
  8738. +{ (ac_try="$LEX conftest.l"
  8739. +case "(($ac_try" in
  8740. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8741. + *) ac_try_echo=$ac_try;;
  8742. +esac
  8743. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8744. + (eval "$LEX conftest.l") 2>&5
  8745. ac_status=$?
  8746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8747. - (exit $ac_status); }; }; then
  8748. - ac_cv_lib_fl_yywrap=yes
  8749. + (exit $ac_status); }
  8750. +{ echo "$as_me:$LINENO: checking lex output file root" >&5
  8751. +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
  8752. +if test "${ac_cv_prog_lex_root+set}" = set; then
  8753. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8754. else
  8755. - echo "$as_me: failed program was:" >&5
  8756. -sed 's/^/| /' conftest.$ac_ext >&5
  8757. -ac_cv_lib_fl_yywrap=no
  8758. +if test -f lex.yy.c; then
  8759. + ac_cv_prog_lex_root=lex.yy
  8760. +elif test -f lexyy.c; then
  8761. + ac_cv_prog_lex_root=lexyy
  8762. +else
  8763. + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  8764. +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  8765. + { (exit 1); exit 1; }; }
  8766. fi
  8767. -rm -f conftest.err conftest.$ac_objext \
  8768. - conftest$ac_exeext conftest.$ac_ext
  8769. -LIBS=$ac_check_lib_save_LIBS
  8770. fi
  8771. -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  8772. -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
  8773. -if test $ac_cv_lib_fl_yywrap = yes; then
  8774. - LEXLIB="-lfl"
  8775. -else
  8776. - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
  8777. -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
  8778. -if test "${ac_cv_lib_l_yywrap+set}" = set; then
  8779. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  8780. +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
  8781. +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  8782. +
  8783. +if test -z "${LEXLIB+set}"; then
  8784. + { echo "$as_me:$LINENO: checking lex library" >&5
  8785. +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
  8786. +if test "${ac_cv_lib_lex+set}" = set; then
  8787. echo $ECHO_N "(cached) $ECHO_C" >&6
  8788. else
  8789. - ac_check_lib_save_LIBS=$LIBS
  8790. -LIBS="-ll $LIBS"
  8791. -cat >conftest.$ac_ext <<_ACEOF
  8792. -/* confdefs.h. */
  8793. -_ACEOF
  8794. -cat confdefs.h >>conftest.$ac_ext
  8795. -cat >>conftest.$ac_ext <<_ACEOF
  8796. -/* end confdefs.h. */
  8797. -/* Override any gcc2 internal prototype to avoid an error. */
  8798. -#ifdef __cplusplus
  8799. -extern "C"
  8800. -#endif
  8801. -/* We use char because int might match the return type of a gcc2
  8802. - builtin and then its argument prototype would still apply. */
  8803. -char yywrap ();
  8804. -int
  8805. -main ()
  8806. -{
  8807. -yywrap ();
  8808. - ;
  8809. - return 0;
  8810. -}
  8811. + ac_save_LIBS=$LIBS
  8812. + ac_cv_lib_lex='none needed'
  8813. + for ac_lib in '' -lfl -ll; do
  8814. + LIBS="$ac_lib $ac_save_LIBS"
  8815. + cat >conftest.$ac_ext <<_ACEOF
  8816. +`cat $LEX_OUTPUT_ROOT.c`
  8817. _ACEOF
  8818. rm -f conftest.$ac_objext conftest$ac_exeext
  8819. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8820. - (eval $ac_link) 2>conftest.er1
  8821. +if { (ac_try="$ac_link"
  8822. +case "(($ac_try" in
  8823. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8824. + *) ac_try_echo=$ac_try;;
  8825. +esac
  8826. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8827. + (eval "$ac_link") 2>conftest.er1
  8828. ac_status=$?
  8829. grep -v '^ *+' conftest.er1 >conftest.err
  8830. rm -f conftest.er1
  8831. cat conftest.err >&5
  8832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8833. - (exit $ac_status); } &&
  8834. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8835. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8836. - (eval $ac_try) 2>&5
  8837. - ac_status=$?
  8838. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8839. - (exit $ac_status); }; } &&
  8840. - { ac_try='test -s conftest$ac_exeext'
  8841. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8842. - (eval $ac_try) 2>&5
  8843. - ac_status=$?
  8844. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8845. - (exit $ac_status); }; }; then
  8846. - ac_cv_lib_l_yywrap=yes
  8847. + (exit $ac_status); } && {
  8848. + test -z "$ac_c_werror_flag" ||
  8849. + test ! -s conftest.err
  8850. + } && test -s conftest$ac_exeext &&
  8851. + $as_test_x conftest$ac_exeext; then
  8852. + ac_cv_lib_lex=$ac_lib
  8853. else
  8854. echo "$as_me: failed program was:" >&5
  8855. sed 's/^/| /' conftest.$ac_ext >&5
  8856. -ac_cv_lib_l_yywrap=no
  8857. -fi
  8858. -rm -f conftest.err conftest.$ac_objext \
  8859. - conftest$ac_exeext conftest.$ac_ext
  8860. -LIBS=$ac_check_lib_save_LIBS
  8861. -fi
  8862. -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  8863. -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
  8864. -if test $ac_cv_lib_l_yywrap = yes; then
  8865. - LEXLIB="-ll"
  8866. -fi
  8867. fi
  8868. -fi
  8869. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8870. + conftest$ac_exeext conftest.$ac_ext
  8871. + test "$ac_cv_lib_lex" != 'none needed' && break
  8872. + done
  8873. + LIBS=$ac_save_LIBS
  8874. -if test "x$LEX" != "x:"; then
  8875. - echo "$as_me:$LINENO: checking lex output file root" >&5
  8876. -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
  8877. -if test "${ac_cv_prog_lex_root+set}" = set; then
  8878. - echo $ECHO_N "(cached) $ECHO_C" >&6
  8879. -else
  8880. - # The minimal lex program is just a single line: %%. But some broken lexes
  8881. -# (Solaris, I think it was) want two %% lines, so accommodate them.
  8882. -cat >conftest.l <<_ACEOF
  8883. -%%
  8884. -%%
  8885. -_ACEOF
  8886. -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  8887. - (eval $LEX conftest.l) 2>&5
  8888. - ac_status=$?
  8889. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8890. - (exit $ac_status); }
  8891. -if test -f lex.yy.c; then
  8892. - ac_cv_prog_lex_root=lex.yy
  8893. -elif test -f lexyy.c; then
  8894. - ac_cv_prog_lex_root=lexyy
  8895. -else
  8896. - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  8897. -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  8898. - { (exit 1); exit 1; }; }
  8899. fi
  8900. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
  8901. +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
  8902. + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  8903. fi
  8904. -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  8905. -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
  8906. -rm -f conftest.l
  8907. -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  8908. -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  8909. -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
  8910. +
  8911. +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  8912. +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
  8913. if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  8914. echo $ECHO_N "(cached) $ECHO_C" >&6
  8915. else
  8916. # POSIX says lex can declare yytext either as a pointer or an array; the
  8917. -# default is implementation-dependent. Figure out which it is, since
  8918. +# default is implementation-dependent. Figure out which it is, since
  8919. # not all implementations provide the %pointer and %array declarations.
  8920. ac_cv_prog_lex_yytext_pointer=no
  8921. -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  8922. ac_save_LIBS=$LIBS
  8923. -LIBS="$LIBS $LEXLIB"
  8924. +LIBS="$LEXLIB $ac_save_LIBS"
  8925. cat >conftest.$ac_ext <<_ACEOF
  8926. +#define YYTEXT_POINTER 1
  8927. `cat $LEX_OUTPUT_ROOT.c`
  8928. _ACEOF
  8929. rm -f conftest.$ac_objext conftest$ac_exeext
  8930. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8931. - (eval $ac_link) 2>conftest.er1
  8932. +if { (ac_try="$ac_link"
  8933. +case "(($ac_try" in
  8934. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8935. + *) ac_try_echo=$ac_try;;
  8936. +esac
  8937. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8938. + (eval "$ac_link") 2>conftest.er1
  8939. ac_status=$?
  8940. grep -v '^ *+' conftest.er1 >conftest.err
  8941. rm -f conftest.er1
  8942. cat conftest.err >&5
  8943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8944. - (exit $ac_status); } &&
  8945. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8946. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8947. - (eval $ac_try) 2>&5
  8948. - ac_status=$?
  8949. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8950. - (exit $ac_status); }; } &&
  8951. - { ac_try='test -s conftest$ac_exeext'
  8952. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8953. - (eval $ac_try) 2>&5
  8954. - ac_status=$?
  8955. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8956. - (exit $ac_status); }; }; then
  8957. + (exit $ac_status); } && {
  8958. + test -z "$ac_c_werror_flag" ||
  8959. + test ! -s conftest.err
  8960. + } && test -s conftest$ac_exeext &&
  8961. + $as_test_x conftest$ac_exeext; then
  8962. ac_cv_prog_lex_yytext_pointer=yes
  8963. else
  8964. echo "$as_me: failed program was:" >&5
  8965. sed 's/^/| /' conftest.$ac_ext >&5
  8966. +
  8967. fi
  8968. -rm -f conftest.err conftest.$ac_objext \
  8969. +
  8970. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8971. conftest$ac_exeext conftest.$ac_ext
  8972. LIBS=$ac_save_LIBS
  8973. -rm -f "${LEX_OUTPUT_ROOT}.c"
  8974. fi
  8975. -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  8976. -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
  8977. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  8978. +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
  8979. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  8980. cat >>confdefs.h <<\_ACEOF
  8981. @@ -3098,15 +3840,18 @@
  8982. _ACEOF
  8983. fi
  8984. +rm -f conftest.l $LEX_OUTPUT_ROOT.c
  8985. fi
  8986. -
  8987. +if test "$LEX" = :; then
  8988. + LEX=${am_missing_run}flex
  8989. +fi
  8990. for ac_prog in 'bison -y' byacc
  8991. do
  8992. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8993. set dummy $ac_prog; ac_word=$2
  8994. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  8995. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8996. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  8997. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8998. if test "${ac_cv_prog_YACC+set}" = set; then
  8999. echo $ECHO_N "(cached) $ECHO_C" >&6
  9000. else
  9001. @@ -3119,25 +3864,27 @@
  9002. IFS=$as_save_IFS
  9003. test -z "$as_dir" && as_dir=.
  9004. for ac_exec_ext in '' $ac_executable_extensions; do
  9005. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9006. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9007. ac_cv_prog_YACC="$ac_prog"
  9008. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9009. break 2
  9010. fi
  9011. done
  9012. done
  9013. +IFS=$as_save_IFS
  9014. fi
  9015. fi
  9016. YACC=$ac_cv_prog_YACC
  9017. if test -n "$YACC"; then
  9018. - echo "$as_me:$LINENO: result: $YACC" >&5
  9019. -echo "${ECHO_T}$YACC" >&6
  9020. + { echo "$as_me:$LINENO: result: $YACC" >&5
  9021. +echo "${ECHO_T}$YACC" >&6; }
  9022. else
  9023. - echo "$as_me:$LINENO: result: no" >&5
  9024. -echo "${ECHO_T}no" >&6
  9025. + { echo "$as_me:$LINENO: result: no" >&5
  9026. +echo "${ECHO_T}no" >&6; }
  9027. fi
  9028. +
  9029. test -n "$YACC" && break
  9030. done
  9031. test -n "$YACC" || YACC="yacc"
  9032. @@ -3155,8 +3902,8 @@
  9033. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9034. # OS/2's system install, which has a completely different semantic
  9035. # ./install, which can be erroneously created by make from ./install.sh.
  9036. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  9037. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  9038. +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  9039. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  9040. if test -z "$INSTALL"; then
  9041. if test "${ac_cv_path_install+set}" = set; then
  9042. echo $ECHO_N "(cached) $ECHO_C" >&6
  9043. @@ -3178,7 +3925,7 @@
  9044. # by default.
  9045. for ac_prog in ginstall scoinst install; do
  9046. for ac_exec_ext in '' $ac_executable_extensions; do
  9047. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9048. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  9049. if test $ac_prog = install &&
  9050. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9051. # AIX install. It has an incompatible calling convention.
  9052. @@ -3197,21 +3944,22 @@
  9053. ;;
  9054. esac
  9055. done
  9056. +IFS=$as_save_IFS
  9057. fi
  9058. if test "${ac_cv_path_install+set}" = set; then
  9059. INSTALL=$ac_cv_path_install
  9060. else
  9061. - # As a last resort, use the slow shell script. We don't cache a
  9062. - # path for INSTALL within a source directory, because that will
  9063. + # As a last resort, use the slow shell script. Don't cache a
  9064. + # value for INSTALL within a source directory, because that will
  9065. # break other packages using the cache if that directory is
  9066. - # removed, or if the path is relative.
  9067. + # removed, or if the value is a relative name.
  9068. INSTALL=$ac_install_sh
  9069. fi
  9070. fi
  9071. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  9072. -echo "${ECHO_T}$INSTALL" >&6
  9073. +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  9074. +echo "${ECHO_T}$INSTALL" >&6; }
  9075. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9076. # It thinks the first close brace ends the variable substitution.
  9077. @@ -3222,96 +3970,310 @@
  9078. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9079. -# Check whether --enable-shared or --disable-shared was given.
  9080. +# Check whether --enable-shared was given.
  9081. if test "${enable_shared+set}" = set; then
  9082. - enableval="$enable_shared"
  9083. - p=${PACKAGE-default}
  9084. -case $enableval in
  9085. -yes) enable_shared=yes ;;
  9086. -no) enable_shared=no ;;
  9087. -*)
  9088. - enable_shared=no
  9089. - # Look at the argument we got. We use all the common list separators.
  9090. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  9091. - for pkg in $enableval; do
  9092. - if test "X$pkg" = "X$p"; then
  9093. - enable_shared=yes
  9094. - fi
  9095. - done
  9096. - IFS="$ac_save_ifs"
  9097. - ;;
  9098. -esac
  9099. + enableval=$enable_shared; p=${PACKAGE-default}
  9100. + case $enableval in
  9101. + yes) enable_shared=yes ;;
  9102. + no) enable_shared=no ;;
  9103. + *)
  9104. + enable_shared=no
  9105. + # Look at the argument we got. We use all the common list separators.
  9106. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9107. + for pkg in $enableval; do
  9108. + IFS="$lt_save_ifs"
  9109. + if test "X$pkg" = "X$p"; then
  9110. + enable_shared=yes
  9111. + fi
  9112. + done
  9113. + IFS="$lt_save_ifs"
  9114. + ;;
  9115. + esac
  9116. else
  9117. enable_shared=yes
  9118. -fi;
  9119. -# Check whether --enable-static or --disable-static was given.
  9120. +fi
  9121. +
  9122. +
  9123. +# Check whether --enable-static was given.
  9124. if test "${enable_static+set}" = set; then
  9125. - enableval="$enable_static"
  9126. - p=${PACKAGE-default}
  9127. -case $enableval in
  9128. -yes) enable_static=yes ;;
  9129. -no) enable_static=no ;;
  9130. + enableval=$enable_static; p=${PACKAGE-default}
  9131. + case $enableval in
  9132. + yes) enable_static=yes ;;
  9133. + no) enable_static=no ;;
  9134. + *)
  9135. + enable_static=no
  9136. + # Look at the argument we got. We use all the common list separators.
  9137. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9138. + for pkg in $enableval; do
  9139. + IFS="$lt_save_ifs"
  9140. + if test "X$pkg" = "X$p"; then
  9141. + enable_static=yes
  9142. + fi
  9143. + done
  9144. + IFS="$lt_save_ifs"
  9145. + ;;
  9146. + esac
  9147. +else
  9148. + enable_static=yes
  9149. +fi
  9150. +
  9151. +
  9152. +# Check whether --enable-fast-install was given.
  9153. +if test "${enable_fast_install+set}" = set; then
  9154. + enableval=$enable_fast_install; p=${PACKAGE-default}
  9155. + case $enableval in
  9156. + yes) enable_fast_install=yes ;;
  9157. + no) enable_fast_install=no ;;
  9158. + *)
  9159. + enable_fast_install=no
  9160. + # Look at the argument we got. We use all the common list separators.
  9161. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9162. + for pkg in $enableval; do
  9163. + IFS="$lt_save_ifs"
  9164. + if test "X$pkg" = "X$p"; then
  9165. + enable_fast_install=yes
  9166. + fi
  9167. + done
  9168. + IFS="$lt_save_ifs"
  9169. + ;;
  9170. + esac
  9171. +else
  9172. + enable_fast_install=yes
  9173. +fi
  9174. +
  9175. +
  9176. +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  9177. +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  9178. +if test "${lt_cv_path_SED+set}" = set; then
  9179. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9180. +else
  9181. + # Loop through the user's path and test for sed and gsed.
  9182. +# Then use that list of sed's as ones to test for truncation.
  9183. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9184. +for as_dir in $PATH
  9185. +do
  9186. + IFS=$as_save_IFS
  9187. + test -z "$as_dir" && as_dir=.
  9188. + for lt_ac_prog in sed gsed; do
  9189. + for ac_exec_ext in '' $ac_executable_extensions; do
  9190. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9191. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9192. + fi
  9193. + done
  9194. + done
  9195. +done
  9196. +lt_ac_max=0
  9197. +lt_ac_count=0
  9198. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9199. +# along with /bin/sed that truncates output.
  9200. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9201. + test ! -f $lt_ac_sed && continue
  9202. + cat /dev/null > conftest.in
  9203. + lt_ac_count=0
  9204. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9205. + # Check for GNU sed and select it if it is found.
  9206. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9207. + lt_cv_path_SED=$lt_ac_sed
  9208. + break
  9209. + fi
  9210. + while true; do
  9211. + cat conftest.in conftest.in >conftest.tmp
  9212. + mv conftest.tmp conftest.in
  9213. + cp conftest.in conftest.nl
  9214. + echo >>conftest.nl
  9215. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9216. + cmp -s conftest.out conftest.nl || break
  9217. + # 10000 chars as input seems more than enough
  9218. + test $lt_ac_count -gt 10 && break
  9219. + lt_ac_count=`expr $lt_ac_count + 1`
  9220. + if test $lt_ac_count -gt $lt_ac_max; then
  9221. + lt_ac_max=$lt_ac_count
  9222. + lt_cv_path_SED=$lt_ac_sed
  9223. + fi
  9224. + done
  9225. +done
  9226. +
  9227. +fi
  9228. +
  9229. +SED=$lt_cv_path_SED
  9230. +{ echo "$as_me:$LINENO: result: $SED" >&5
  9231. +echo "${ECHO_T}$SED" >&6; }
  9232. +
  9233. +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  9234. +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  9235. +if test "${ac_cv_path_GREP+set}" = set; then
  9236. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9237. +else
  9238. + # Extract the first word of "grep ggrep" to use in msg output
  9239. +if test -z "$GREP"; then
  9240. +set dummy grep ggrep; ac_prog_name=$2
  9241. +if test "${ac_cv_path_GREP+set}" = set; then
  9242. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9243. +else
  9244. + ac_path_GREP_found=false
  9245. +# Loop through the user's path and test for each of PROGNAME-LIST
  9246. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9247. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9248. +do
  9249. + IFS=$as_save_IFS
  9250. + test -z "$as_dir" && as_dir=.
  9251. + for ac_prog in grep ggrep; do
  9252. + for ac_exec_ext in '' $ac_executable_extensions; do
  9253. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  9254. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  9255. + # Check for GNU ac_path_GREP and select it if it is found.
  9256. + # Check for GNU $ac_path_GREP
  9257. +case `"$ac_path_GREP" --version 2>&1` in
  9258. +*GNU*)
  9259. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  9260. *)
  9261. - enable_static=no
  9262. - # Look at the argument we got. We use all the common list separators.
  9263. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  9264. - for pkg in $enableval; do
  9265. - if test "X$pkg" = "X$p"; then
  9266. - enable_static=yes
  9267. + ac_count=0
  9268. + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  9269. + while :
  9270. + do
  9271. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  9272. + mv "conftest.tmp" "conftest.in"
  9273. + cp "conftest.in" "conftest.nl"
  9274. + echo 'GREP' >> "conftest.nl"
  9275. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9276. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9277. + ac_count=`expr $ac_count + 1`
  9278. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  9279. + # Best one so far, save it but keep looking for a better one
  9280. + ac_cv_path_GREP="$ac_path_GREP"
  9281. + ac_path_GREP_max=$ac_count
  9282. fi
  9283. + # 10*(2^10) chars as input seems more than enough
  9284. + test $ac_count -gt 10 && break
  9285. done
  9286. - IFS="$ac_save_ifs"
  9287. - ;;
  9288. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9289. esac
  9290. +
  9291. +
  9292. + $ac_path_GREP_found && break 3
  9293. + done
  9294. +done
  9295. +
  9296. +done
  9297. +IFS=$as_save_IFS
  9298. +
  9299. +
  9300. +fi
  9301. +
  9302. +GREP="$ac_cv_path_GREP"
  9303. +if test -z "$GREP"; then
  9304. + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  9305. +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  9306. + { (exit 1); exit 1; }; }
  9307. +fi
  9308. +
  9309. else
  9310. - enable_static=yes
  9311. -fi;
  9312. -# Check whether --enable-fast-install or --disable-fast-install was given.
  9313. -if test "${enable_fast_install+set}" = set; then
  9314. - enableval="$enable_fast_install"
  9315. - p=${PACKAGE-default}
  9316. -case $enableval in
  9317. -yes) enable_fast_install=yes ;;
  9318. -no) enable_fast_install=no ;;
  9319. + ac_cv_path_GREP=$GREP
  9320. +fi
  9321. +
  9322. +
  9323. +fi
  9324. +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  9325. +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  9326. + GREP="$ac_cv_path_GREP"
  9327. +
  9328. +
  9329. +{ echo "$as_me:$LINENO: checking for egrep" >&5
  9330. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  9331. +if test "${ac_cv_path_EGREP+set}" = set; then
  9332. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9333. +else
  9334. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  9335. + then ac_cv_path_EGREP="$GREP -E"
  9336. + else
  9337. + # Extract the first word of "egrep" to use in msg output
  9338. +if test -z "$EGREP"; then
  9339. +set dummy egrep; ac_prog_name=$2
  9340. +if test "${ac_cv_path_EGREP+set}" = set; then
  9341. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9342. +else
  9343. + ac_path_EGREP_found=false
  9344. +# Loop through the user's path and test for each of PROGNAME-LIST
  9345. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9346. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9347. +do
  9348. + IFS=$as_save_IFS
  9349. + test -z "$as_dir" && as_dir=.
  9350. + for ac_prog in egrep; do
  9351. + for ac_exec_ext in '' $ac_executable_extensions; do
  9352. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  9353. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  9354. + # Check for GNU ac_path_EGREP and select it if it is found.
  9355. + # Check for GNU $ac_path_EGREP
  9356. +case `"$ac_path_EGREP" --version 2>&1` in
  9357. +*GNU*)
  9358. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  9359. *)
  9360. - enable_fast_install=no
  9361. - # Look at the argument we got. We use all the common list separators.
  9362. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  9363. - for pkg in $enableval; do
  9364. - if test "X$pkg" = "X$p"; then
  9365. - enable_fast_install=yes
  9366. + ac_count=0
  9367. + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  9368. + while :
  9369. + do
  9370. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  9371. + mv "conftest.tmp" "conftest.in"
  9372. + cp "conftest.in" "conftest.nl"
  9373. + echo 'EGREP' >> "conftest.nl"
  9374. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9375. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9376. + ac_count=`expr $ac_count + 1`
  9377. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  9378. + # Best one so far, save it but keep looking for a better one
  9379. + ac_cv_path_EGREP="$ac_path_EGREP"
  9380. + ac_path_EGREP_max=$ac_count
  9381. fi
  9382. + # 10*(2^10) chars as input seems more than enough
  9383. + test $ac_count -gt 10 && break
  9384. done
  9385. - IFS="$ac_save_ifs"
  9386. - ;;
  9387. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9388. esac
  9389. +
  9390. +
  9391. + $ac_path_EGREP_found && break 3
  9392. + done
  9393. +done
  9394. +
  9395. +done
  9396. +IFS=$as_save_IFS
  9397. +
  9398. +
  9399. +fi
  9400. +
  9401. +EGREP="$ac_cv_path_EGREP"
  9402. +if test -z "$EGREP"; then
  9403. + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  9404. +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  9405. + { (exit 1); exit 1; }; }
  9406. +fi
  9407. +
  9408. else
  9409. - enable_fast_install=yes
  9410. -fi;
  9411. -# Find the correct PATH separator. Usually this is `:', but
  9412. -# DJGPP uses `;' like DOS.
  9413. -if test "X${PATH_SEPARATOR+set}" != Xset; then
  9414. - UNAME=${UNAME-`uname 2>/dev/null`}
  9415. - case X$UNAME in
  9416. - *-DOS) lt_cv_sys_path_separator=';' ;;
  9417. - *) lt_cv_sys_path_separator=':' ;;
  9418. - esac
  9419. - PATH_SEPARATOR=$lt_cv_sys_path_separator
  9420. + ac_cv_path_EGREP=$EGREP
  9421. +fi
  9422. +
  9423. +
  9424. + fi
  9425. fi
  9426. +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  9427. +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  9428. + EGREP="$ac_cv_path_EGREP"
  9429. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  9430. +
  9431. +# Check whether --with-gnu-ld was given.
  9432. if test "${with_gnu_ld+set}" = set; then
  9433. - withval="$with_gnu_ld"
  9434. - test "$withval" = no || with_gnu_ld=yes
  9435. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9436. else
  9437. with_gnu_ld=no
  9438. -fi;
  9439. +fi
  9440. +
  9441. ac_prog=ld
  9442. if test "$GCC" = yes; then
  9443. # Check if gcc -print-prog-name=ld gives a path.
  9444. - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  9445. -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  9446. + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9447. +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9448. case $host in
  9449. *-*-mingw*)
  9450. # gcc leaves a trailing carriage return which upsets mingw
  9451. @@ -3321,12 +4283,12 @@
  9452. esac
  9453. case $ac_prog in
  9454. # Accept absolute paths.
  9455. - [\\/]* | [A-Za-z]:[\\/]*)
  9456. + [\\/]* | ?:[\\/]*)
  9457. re_direlt='/[^/][^/]*/\.\./'
  9458. - # Canonicalize the path of ld
  9459. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  9460. + # Canonicalize the pathname of ld
  9461. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9462. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9463. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  9464. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9465. done
  9466. test -z "$LD" && LD="$ac_prog"
  9467. ;;
  9468. @@ -3340,32 +4302,36 @@
  9469. ;;
  9470. esac
  9471. elif test "$with_gnu_ld" = yes; then
  9472. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  9473. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9474. + { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9475. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9476. else
  9477. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9478. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9479. + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9480. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9481. fi
  9482. if test "${lt_cv_path_LD+set}" = set; then
  9483. echo $ECHO_N "(cached) $ECHO_C" >&6
  9484. else
  9485. if test -z "$LD"; then
  9486. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9487. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9488. for ac_dir in $PATH; do
  9489. + IFS="$lt_save_ifs"
  9490. test -z "$ac_dir" && ac_dir=.
  9491. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9492. lt_cv_path_LD="$ac_dir/$ac_prog"
  9493. # Check to see if the program is GNU ld. I'd rather use --version,
  9494. - # but apparently some GNU ld's only accept -v.
  9495. + # but apparently some variants of GNU ld only accept -v.
  9496. # Break only if it was the GNU/non-GNU ld that we prefer.
  9497. - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  9498. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9499. + *GNU* | *'with BFD'*)
  9500. test "$with_gnu_ld" != no && break
  9501. - else
  9502. + ;;
  9503. + *)
  9504. test "$with_gnu_ld" != yes && break
  9505. - fi
  9506. + ;;
  9507. + esac
  9508. fi
  9509. done
  9510. - IFS="$ac_save_ifs"
  9511. + IFS="$lt_save_ifs"
  9512. else
  9513. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9514. fi
  9515. @@ -3373,46 +4339,62 @@
  9516. LD="$lt_cv_path_LD"
  9517. if test -n "$LD"; then
  9518. - echo "$as_me:$LINENO: result: $LD" >&5
  9519. -echo "${ECHO_T}$LD" >&6
  9520. + { echo "$as_me:$LINENO: result: $LD" >&5
  9521. +echo "${ECHO_T}$LD" >&6; }
  9522. else
  9523. - echo "$as_me:$LINENO: result: no" >&5
  9524. -echo "${ECHO_T}no" >&6
  9525. + { echo "$as_me:$LINENO: result: no" >&5
  9526. +echo "${ECHO_T}no" >&6; }
  9527. fi
  9528. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9529. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9530. { (exit 1); exit 1; }; }
  9531. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9532. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9533. +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9534. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9535. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9536. echo $ECHO_N "(cached) $ECHO_C" >&6
  9537. else
  9538. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9539. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  9540. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9541. +case `$LD -v 2>&1 </dev/null` in
  9542. +*GNU* | *'with BFD'*)
  9543. lt_cv_prog_gnu_ld=yes
  9544. -else
  9545. + ;;
  9546. +*)
  9547. lt_cv_prog_gnu_ld=no
  9548. + ;;
  9549. +esac
  9550. fi
  9551. -fi
  9552. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9553. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9554. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9555. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9556. with_gnu_ld=$lt_cv_prog_gnu_ld
  9557. -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  9558. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  9559. +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  9560. +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  9561. if test "${lt_cv_ld_reload_flag+set}" = set; then
  9562. echo $ECHO_N "(cached) $ECHO_C" >&6
  9563. else
  9564. lt_cv_ld_reload_flag='-r'
  9565. fi
  9566. -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  9567. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  9568. +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  9569. +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  9570. reload_flag=$lt_cv_ld_reload_flag
  9571. -test -n "$reload_flag" && reload_flag=" $reload_flag"
  9572. +case $reload_flag in
  9573. +"" | " "*) ;;
  9574. +*) reload_flag=" $reload_flag" ;;
  9575. +esac
  9576. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9577. +case $host_os in
  9578. + darwin*)
  9579. + if test "$GCC" = yes; then
  9580. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  9581. + else
  9582. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9583. + fi
  9584. + ;;
  9585. +esac
  9586. -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  9587. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  9588. +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  9589. +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  9590. if test "${lt_cv_path_NM+set}" = set; then
  9591. echo $ECHO_N "(cached) $ECHO_C" >&6
  9592. else
  9593. @@ -3420,134 +4402,63 @@
  9594. # Let the user override the test.
  9595. lt_cv_path_NM="$NM"
  9596. else
  9597. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9598. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  9599. - test -z "$ac_dir" && ac_dir=.
  9600. - tmp_nm=$ac_dir/${ac_tool_prefix}nm
  9601. - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  9602. - # Check to see if the nm accepts a BSD-compat flag.
  9603. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  9604. - # nm: unknown option "B" ignored
  9605. - # Tru64's nm complains that /dev/null is an invalid object file
  9606. - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  9607. - lt_cv_path_NM="$tmp_nm -B"
  9608. - break
  9609. - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  9610. - lt_cv_path_NM="$tmp_nm -p"
  9611. - break
  9612. - else
  9613. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  9614. - continue # so that we can try to find one that supports BSD flags
  9615. - fi
  9616. - fi
  9617. - done
  9618. - IFS="$ac_save_ifs"
  9619. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  9620. -fi
  9621. -fi
  9622. -
  9623. -NM="$lt_cv_path_NM"
  9624. -echo "$as_me:$LINENO: result: $NM" >&5
  9625. -echo "${ECHO_T}$NM" >&6
  9626. -
  9627. -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  9628. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  9629. -if test "${lt_cv_path_SED+set}" = set; then
  9630. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9631. -else
  9632. - # Loop through the user's path and test for sed and gsed.
  9633. -# Then use that list of sed's as ones to test for truncation.
  9634. -as_executable_p="test -f"
  9635. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9636. -for as_dir in $PATH
  9637. -do
  9638. - IFS=$as_save_IFS
  9639. - test -z "$as_dir" && as_dir=.
  9640. - for ac_prog in sed gsed; do
  9641. - for ac_exec_ext in '' $ac_executable_extensions; do
  9642. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9643. - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  9644. - fi
  9645. - done
  9646. - done
  9647. -done
  9648. -
  9649. - # Create a temporary directory, and hook for its removal unless debugging.
  9650. -$debug ||
  9651. -{
  9652. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  9653. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  9654. -}
  9655. -
  9656. -# Create a (secure) tmp directory for tmp files.
  9657. -: ${TMPDIR=/tmp}
  9658. -{
  9659. - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  9660. - test -n "$tmp" && test -d "$tmp"
  9661. -} ||
  9662. -{
  9663. - tmp=$TMPDIR/sed$$-$RANDOM
  9664. - (umask 077 && mkdir $tmp)
  9665. -} ||
  9666. -{
  9667. - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  9668. - { (exit 1); exit 1; }
  9669. -}
  9670. - _max=0
  9671. - _count=0
  9672. - # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9673. - # along with /bin/sed that truncates output.
  9674. - for _sed in $_sed_list /usr/xpg4/bin/sed; do
  9675. - test ! -f ${_sed} && break
  9676. - cat /dev/null > "$tmp/sed.in"
  9677. - _count=0
  9678. - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  9679. - # Check for GNU sed and select it if it is found.
  9680. - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  9681. - lt_cv_path_SED=${_sed}
  9682. - break
  9683. - fi
  9684. - while true; do
  9685. - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  9686. - mv "$tmp/sed.tmp" "$tmp/sed.in"
  9687. - cp "$tmp/sed.in" "$tmp/sed.nl"
  9688. - echo >>"$tmp/sed.nl"
  9689. - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  9690. - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  9691. - # 40000 chars as input seems more than enough
  9692. - test $_count -gt 10 && break
  9693. - _count=`expr $_count + 1`
  9694. - if test $_count -gt $_max; then
  9695. - _max=$_count
  9696. - lt_cv_path_SED=$_sed
  9697. + lt_nm_to_check="${ac_tool_prefix}nm"
  9698. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  9699. + lt_nm_to_check="$lt_nm_to_check nm"
  9700. + fi
  9701. + for lt_tmp_nm in $lt_nm_to_check; do
  9702. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9703. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  9704. + IFS="$lt_save_ifs"
  9705. + test -z "$ac_dir" && ac_dir=.
  9706. + tmp_nm="$ac_dir/$lt_tmp_nm"
  9707. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  9708. + # Check to see if the nm accepts a BSD-compat flag.
  9709. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  9710. + # nm: unknown option "B" ignored
  9711. + # Tru64's nm complains that /dev/null is an invalid object file
  9712. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  9713. + */dev/null* | *'Invalid file or object type'*)
  9714. + lt_cv_path_NM="$tmp_nm -B"
  9715. + break
  9716. + ;;
  9717. + *)
  9718. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  9719. + */dev/null*)
  9720. + lt_cv_path_NM="$tmp_nm -p"
  9721. + break
  9722. + ;;
  9723. + *)
  9724. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  9725. + continue # so that we can try to find one that supports BSD flags
  9726. + ;;
  9727. + esac
  9728. + ;;
  9729. + esac
  9730. fi
  9731. done
  9732. + IFS="$lt_save_ifs"
  9733. done
  9734. - rm -rf "$tmp"
  9735. -
  9736. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  9737. fi
  9738. -
  9739. -if test "X$SED" != "X"; then
  9740. - lt_cv_path_SED=$SED
  9741. -else
  9742. - SED=$lt_cv_path_SED
  9743. fi
  9744. -echo "$as_me:$LINENO: result: $SED" >&5
  9745. -echo "${ECHO_T}$SED" >&6
  9746. +{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  9747. +echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  9748. +NM="$lt_cv_path_NM"
  9749. -echo "$as_me:$LINENO: checking whether ln -s works" >&5
  9750. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  9751. +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  9752. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  9753. LN_S=$as_ln_s
  9754. if test "$LN_S" = "ln -s"; then
  9755. - echo "$as_me:$LINENO: result: yes" >&5
  9756. -echo "${ECHO_T}yes" >&6
  9757. + { echo "$as_me:$LINENO: result: yes" >&5
  9758. +echo "${ECHO_T}yes" >&6; }
  9759. else
  9760. - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  9761. -echo "${ECHO_T}no, using $LN_S" >&6
  9762. + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  9763. +echo "${ECHO_T}no, using $LN_S" >&6; }
  9764. fi
  9765. -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  9766. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  9767. +{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  9768. +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  9769. if test "${lt_cv_deplibs_check_method+set}" = set; then
  9770. echo $ECHO_N "(cached) $ECHO_C" >&6
  9771. else
  9772. @@ -3561,7 +4472,7 @@
  9773. # 'pass_all' -- all dependencies passed with no checks.
  9774. # 'test_compile' -- check by making test program.
  9775. # 'file_magic [[regex]]' -- check by looking for files in library path
  9776. -# which responds to the $file_magic_cmd with a given egrep regex.
  9777. +# which responds to the $file_magic_cmd with a given extended regex.
  9778. # If you have `file' or equivalent on your system and you're not sure
  9779. # whether `pass_all' will *always* work, you probably want this one.
  9780. @@ -3574,37 +4485,36 @@
  9781. lt_cv_deplibs_check_method=pass_all
  9782. ;;
  9783. -bsdi4*)
  9784. +bsdi[45]*)
  9785. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  9786. lt_cv_file_magic_cmd='/usr/bin/file -L'
  9787. lt_cv_file_magic_test_file=/shlib/libc.so
  9788. ;;
  9789. -cygwin* | mingw* | pw32*)
  9790. +cygwin*)
  9791. + # func_win32_libid is a shell function defined in ltmain.sh
  9792. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9793. + lt_cv_file_magic_cmd='func_win32_libid'
  9794. + ;;
  9795. +
  9796. +mingw* | pw32*)
  9797. + # Base MSYS/MinGW do not provide the 'file' command needed by
  9798. + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  9799. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  9800. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9801. ;;
  9802. darwin* | rhapsody*)
  9803. - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  9804. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  9805. - case "$host_os" in
  9806. - rhapsody* | darwin1.[012])
  9807. - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  9808. - ;;
  9809. - *) # Darwin 1.3 on
  9810. - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  9811. - ;;
  9812. - esac
  9813. + lt_cv_deplibs_check_method=pass_all
  9814. ;;
  9815. -freebsd*)
  9816. +freebsd* | dragonfly*)
  9817. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  9818. case $host_cpu in
  9819. i*86 )
  9820. # Not sure whether the presence of OpenBSD here was a mistake.
  9821. # Let's accept both of them until this is cleared up.
  9822. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  9823. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  9824. lt_cv_file_magic_cmd=/usr/bin/file
  9825. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  9826. ;;
  9827. @@ -3618,50 +4528,49 @@
  9828. lt_cv_deplibs_check_method=pass_all
  9829. ;;
  9830. -hpux10.20*|hpux11*)
  9831. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  9832. +hpux10.20* | hpux11*)
  9833. lt_cv_file_magic_cmd=/usr/bin/file
  9834. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  9835. - ;;
  9836. -
  9837. -irix5* | irix6* | nonstopux*)
  9838. - case $host_os in
  9839. - irix5* | nonstopux*)
  9840. - # this will be overridden with pass_all, but let us keep it just in case
  9841. - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  9842. + case $host_cpu in
  9843. + ia64*)
  9844. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  9845. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  9846. + ;;
  9847. + hppa*64*)
  9848. + 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]'
  9849. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  9850. ;;
  9851. *)
  9852. - case $LD in
  9853. - *-32|*"-32 ") libmagic=32-bit;;
  9854. - *-n32|*"-n32 ") libmagic=N32;;
  9855. - *-64|*"-64 ") libmagic=64-bit;;
  9856. - *) libmagic=never-match;;
  9857. - esac
  9858. - # this will be overridden with pass_all, but let us keep it just in case
  9859. - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  9860. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  9861. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  9862. ;;
  9863. esac
  9864. - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  9865. + ;;
  9866. +
  9867. +interix3*)
  9868. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  9869. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  9870. + ;;
  9871. +
  9872. +irix5* | irix6* | nonstopux*)
  9873. + case $LD in
  9874. + *-32|*"-32 ") libmagic=32-bit;;
  9875. + *-n32|*"-n32 ") libmagic=N32;;
  9876. + *-64|*"-64 ") libmagic=64-bit;;
  9877. + *) libmagic=never-match;;
  9878. + esac
  9879. lt_cv_deplibs_check_method=pass_all
  9880. ;;
  9881. # This must be Linux ELF.
  9882. -linux-gnu*)
  9883. - case $host_cpu in
  9884. - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
  9885. - lt_cv_deplibs_check_method=pass_all ;;
  9886. - *)
  9887. - # glibc up to 2.1.1 does not perform some relocations on ARM
  9888. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  9889. - esac
  9890. - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  9891. +linux* | k*bsd*-gnu)
  9892. + lt_cv_deplibs_check_method=pass_all
  9893. ;;
  9894. -netbsd*)
  9895. +netbsd* | netbsdelf*-gnu)
  9896. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  9897. - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  9898. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9899. else
  9900. - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  9901. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  9902. fi
  9903. ;;
  9904. @@ -3671,37 +4580,27 @@
  9905. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  9906. ;;
  9907. +nto-qnx*)
  9908. + lt_cv_deplibs_check_method=unknown
  9909. + ;;
  9910. +
  9911. openbsd*)
  9912. - lt_cv_file_magic_cmd=/usr/bin/file
  9913. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  9914. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9915. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  9916. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  9917. else
  9918. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  9919. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9920. fi
  9921. ;;
  9922. osf3* | osf4* | osf5*)
  9923. - # this will be overridden with pass_all, but let us keep it just in case
  9924. - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  9925. - lt_cv_file_magic_test_file=/shlib/libc.so
  9926. - lt_cv_deplibs_check_method=pass_all
  9927. - ;;
  9928. -
  9929. -sco3.2v5*)
  9930. lt_cv_deplibs_check_method=pass_all
  9931. ;;
  9932. solaris*)
  9933. lt_cv_deplibs_check_method=pass_all
  9934. - lt_cv_file_magic_test_file=/lib/libc.so
  9935. - ;;
  9936. -
  9937. -sysv5uw[78]* | sysv4*uw2*)
  9938. - lt_cv_deplibs_check_method=pass_all
  9939. ;;
  9940. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9941. +sysv4 | sysv4.3*)
  9942. case $host_vendor in
  9943. motorola)
  9944. 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]'
  9945. @@ -3722,227 +4621,253 @@
  9946. siemens)
  9947. lt_cv_deplibs_check_method=pass_all
  9948. ;;
  9949. + pc)
  9950. + lt_cv_deplibs_check_method=pass_all
  9951. + ;;
  9952. esac
  9953. ;;
  9954. +
  9955. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9956. + lt_cv_deplibs_check_method=pass_all
  9957. + ;;
  9958. esac
  9959. fi
  9960. -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  9961. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  9962. +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  9963. +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  9964. file_magic_cmd=$lt_cv_file_magic_cmd
  9965. deplibs_check_method=$lt_cv_deplibs_check_method
  9966. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  9967. +# If no C compiler was specified, use CC.
  9968. +LTCC=${LTCC-"$CC"}
  9969. +# If no C compiler flags were specified, use CFLAGS.
  9970. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9971. +# Allow CC to be a program name with arguments.
  9972. +compiler=$CC
  9973. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  9974. -echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  9975. -echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  9976. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  9977. - echo $ECHO_N "(cached) $ECHO_C" >&6
  9978. -else
  9979. -
  9980. -# These are sane defaults that work on at least a few old systems.
  9981. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  9982. -
  9983. -# Character class describing NM global symbol codes.
  9984. -symcode='[BCDEGRST]'
  9985. -
  9986. -# Regexp to match symbols that can be accessed directly from C.
  9987. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  9988. -
  9989. -# Transform the above into a raw symbol and a C symbol.
  9990. -symxfrm='\1 \2\3 \3'
  9991. -
  9992. -# Transform an extracted symbol line into a proper C declaration
  9993. -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  9994. -
  9995. -# Transform an extracted symbol line into symbol name and symbol address
  9996. -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  9997. -
  9998. -# Define system-specific variables.
  9999. -case $host_os in
  10000. -aix*)
  10001. - symcode='[BCDT]'
  10002. - ;;
  10003. -cygwin* | mingw* | pw32*)
  10004. - symcode='[ABCDGISTW]'
  10005. - ;;
  10006. -hpux*) # Its linker distinguishes data from code symbols
  10007. - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  10008. - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  10009. - ;;
  10010. -irix* | nonstopux*)
  10011. - symcode='[BCDEGRST]'
  10012. - ;;
  10013. -osf*)
  10014. - symcode='[BCDEGQRST]'
  10015. - ;;
  10016. -solaris* | sysv5*)
  10017. - symcode='[BDT]'
  10018. - ;;
  10019. -sysv4)
  10020. - symcode='[DFNSTU]'
  10021. - ;;
  10022. -esac
  10023. -
  10024. -# Handle CRLF in mingw tool chain
  10025. -opt_cr=
  10026. -case $host_os in
  10027. -mingw*)
  10028. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10029. - ;;
  10030. -esac
  10031. -
  10032. -# If we're using GNU nm, then use its standard symbol codes.
  10033. -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  10034. - symcode='[ABCDGISTW]'
  10035. +# Check whether --enable-libtool-lock was given.
  10036. +if test "${enable_libtool_lock+set}" = set; then
  10037. + enableval=$enable_libtool_lock;
  10038. fi
  10039. -# Try without a prefix undercore, then with it.
  10040. -for ac_symprfx in "" "_"; do
  10041. -
  10042. - # Write the raw and C identifiers.
  10043. -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  10044. -
  10045. - # Check to see that the pipe works correctly.
  10046. - pipe_works=no
  10047. - rm -f conftest*
  10048. - cat > conftest.$ac_ext <<EOF
  10049. -#ifdef __cplusplus
  10050. -extern "C" {
  10051. -#endif
  10052. -char nm_test_var;
  10053. -void nm_test_func(){}
  10054. -#ifdef __cplusplus
  10055. -}
  10056. -#endif
  10057. -int main(){nm_test_var='a';nm_test_func();return(0);}
  10058. -EOF
  10059. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  10060. +# Some flags need to be propagated to the compiler or linker for good
  10061. +# libtool support.
  10062. +case $host in
  10063. +ia64-*-hpux*)
  10064. + # Find out which ABI we are using.
  10065. + echo 'int i;' > conftest.$ac_ext
  10066. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10067. (eval $ac_compile) 2>&5
  10068. ac_status=$?
  10069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10070. (exit $ac_status); }; then
  10071. - # Now try to grab the symbols.
  10072. - nlist=conftest.nm
  10073. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  10074. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  10075. + case `/usr/bin/file conftest.$ac_objext` in
  10076. + *ELF-32*)
  10077. + HPUX_IA64_MODE="32"
  10078. + ;;
  10079. + *ELF-64*)
  10080. + HPUX_IA64_MODE="64"
  10081. + ;;
  10082. + esac
  10083. + fi
  10084. + rm -rf conftest*
  10085. + ;;
  10086. +*-*-irix6*)
  10087. + # Find out which ABI we are using.
  10088. + echo '#line 4685 "configure"' > conftest.$ac_ext
  10089. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10090. + (eval $ac_compile) 2>&5
  10091. ac_status=$?
  10092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10093. - (exit $ac_status); } && test -s "$nlist"; then
  10094. - # Try sorting and uniquifying the output.
  10095. - if sort "$nlist" | uniq > "$nlist"T; then
  10096. - mv -f "$nlist"T "$nlist"
  10097. - else
  10098. - rm -f "$nlist"T
  10099. - fi
  10100. -
  10101. - # Make sure that we snagged all the symbols we need.
  10102. - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  10103. - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  10104. - cat <<EOF > conftest.$ac_ext
  10105. -#ifdef __cplusplus
  10106. -extern "C" {
  10107. -#endif
  10108. -
  10109. -EOF
  10110. - # Now generate the symbol file.
  10111. - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  10112. -
  10113. - cat <<EOF >> conftest.$ac_ext
  10114. -#if defined (__STDC__) && __STDC__
  10115. -# define lt_ptr void *
  10116. -#else
  10117. -# define lt_ptr char *
  10118. -# define const
  10119. -#endif
  10120. -
  10121. -/* The mapping between symbol names and symbols. */
  10122. -const struct {
  10123. - const char *name;
  10124. - lt_ptr address;
  10125. -}
  10126. -lt_preloaded_symbols[] =
  10127. -{
  10128. -EOF
  10129. - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  10130. - cat <<\EOF >> conftest.$ac_ext
  10131. - {0, (lt_ptr) 0}
  10132. -};
  10133. + (exit $ac_status); }; then
  10134. + if test "$lt_cv_prog_gnu_ld" = yes; then
  10135. + case `/usr/bin/file conftest.$ac_objext` in
  10136. + *32-bit*)
  10137. + LD="${LD-ld} -melf32bsmip"
  10138. + ;;
  10139. + *N32*)
  10140. + LD="${LD-ld} -melf32bmipn32"
  10141. + ;;
  10142. + *64-bit*)
  10143. + LD="${LD-ld} -melf64bmip"
  10144. + ;;
  10145. + esac
  10146. + else
  10147. + case `/usr/bin/file conftest.$ac_objext` in
  10148. + *32-bit*)
  10149. + LD="${LD-ld} -32"
  10150. + ;;
  10151. + *N32*)
  10152. + LD="${LD-ld} -n32"
  10153. + ;;
  10154. + *64-bit*)
  10155. + LD="${LD-ld} -64"
  10156. + ;;
  10157. + esac
  10158. + fi
  10159. + fi
  10160. + rm -rf conftest*
  10161. + ;;
  10162. -#ifdef __cplusplus
  10163. -}
  10164. -#endif
  10165. -EOF
  10166. - # Now try linking the two files.
  10167. - mv conftest.$ac_objext conftstm.$ac_objext
  10168. - save_LIBS="$LIBS"
  10169. - save_CFLAGS="$CFLAGS"
  10170. - LIBS="conftstm.$ac_objext"
  10171. - CFLAGS="$CFLAGS$no_builtin_flag"
  10172. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10173. - (eval $ac_link) 2>&5
  10174. +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  10175. + # Find out which ABI we are using.
  10176. + echo 'int i;' > conftest.$ac_ext
  10177. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10178. + (eval $ac_compile) 2>&5
  10179. ac_status=$?
  10180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10181. - (exit $ac_status); } && test -s conftest$ac_exeext; then
  10182. - pipe_works=yes
  10183. - fi
  10184. - LIBS="$save_LIBS"
  10185. - CFLAGS="$save_CFLAGS"
  10186. - else
  10187. - echo "cannot find nm_test_func in $nlist" >&5
  10188. - fi
  10189. - else
  10190. - echo "cannot find nm_test_var in $nlist" >&5
  10191. - fi
  10192. - else
  10193. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10194. - fi
  10195. - else
  10196. - echo "$progname: failed program was:" >&5
  10197. - cat conftest.$ac_ext >&5
  10198. + (exit $ac_status); }; then
  10199. + case `/usr/bin/file conftest.o` in
  10200. + *32-bit*)
  10201. + case $host in
  10202. + x86_64-*linux*)
  10203. + LD="${LD-ld} -m elf_i386"
  10204. + ;;
  10205. + ppc64-*linux*|powerpc64-*linux*)
  10206. + LD="${LD-ld} -m elf32ppclinux"
  10207. + ;;
  10208. + s390x-*linux*)
  10209. + LD="${LD-ld} -m elf_s390"
  10210. + ;;
  10211. + sparc64-*linux*)
  10212. + LD="${LD-ld} -m elf32_sparc"
  10213. + ;;
  10214. + esac
  10215. + ;;
  10216. + *64-bit*)
  10217. + case $host in
  10218. + x86_64-*linux*)
  10219. + LD="${LD-ld} -m elf_x86_64"
  10220. + ;;
  10221. + ppc*-*linux*|powerpc*-*linux*)
  10222. + LD="${LD-ld} -m elf64ppc"
  10223. + ;;
  10224. + s390*-*linux*)
  10225. + LD="${LD-ld} -m elf64_s390"
  10226. + ;;
  10227. + sparc*-*linux*)
  10228. + LD="${LD-ld} -m elf64_sparc"
  10229. + ;;
  10230. + esac
  10231. + ;;
  10232. + esac
  10233. fi
  10234. - rm -f conftest* conftst*
  10235. + rm -rf conftest*
  10236. + ;;
  10237. - # Do not use the global_symbol_pipe unless it works.
  10238. - if test "$pipe_works" = yes; then
  10239. - break
  10240. - else
  10241. - lt_cv_sys_global_symbol_pipe=
  10242. - fi
  10243. -done
  10244. +*-*-sco3.2v5*)
  10245. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  10246. + SAVE_CFLAGS="$CFLAGS"
  10247. + CFLAGS="$CFLAGS -belf"
  10248. + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  10249. +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  10250. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  10251. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10252. +else
  10253. + ac_ext=c
  10254. +ac_cpp='$CPP $CPPFLAGS'
  10255. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10256. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10257. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10258. -fi
  10259. + cat >conftest.$ac_ext <<_ACEOF
  10260. +/* confdefs.h. */
  10261. +_ACEOF
  10262. +cat confdefs.h >>conftest.$ac_ext
  10263. +cat >>conftest.$ac_ext <<_ACEOF
  10264. +/* end confdefs.h. */
  10265. -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  10266. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  10267. - global_symbol_to_cdecl=
  10268. - global_symbol_to_c_name_address=
  10269. +int
  10270. +main ()
  10271. +{
  10272. +
  10273. + ;
  10274. + return 0;
  10275. +}
  10276. +_ACEOF
  10277. +rm -f conftest.$ac_objext conftest$ac_exeext
  10278. +if { (ac_try="$ac_link"
  10279. +case "(($ac_try" in
  10280. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10281. + *) ac_try_echo=$ac_try;;
  10282. +esac
  10283. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10284. + (eval "$ac_link") 2>conftest.er1
  10285. + ac_status=$?
  10286. + grep -v '^ *+' conftest.er1 >conftest.err
  10287. + rm -f conftest.er1
  10288. + cat conftest.err >&5
  10289. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10290. + (exit $ac_status); } && {
  10291. + test -z "$ac_c_werror_flag" ||
  10292. + test ! -s conftest.err
  10293. + } && test -s conftest$ac_exeext &&
  10294. + $as_test_x conftest$ac_exeext; then
  10295. + lt_cv_cc_needs_belf=yes
  10296. else
  10297. - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  10298. - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  10299. + echo "$as_me: failed program was:" >&5
  10300. +sed 's/^/| /' conftest.$ac_ext >&5
  10301. +
  10302. + lt_cv_cc_needs_belf=no
  10303. fi
  10304. -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  10305. -then
  10306. - echo "$as_me:$LINENO: result: failed" >&5
  10307. -echo "${ECHO_T}failed" >&6
  10308. -else
  10309. - echo "$as_me:$LINENO: result: ok" >&5
  10310. -echo "${ECHO_T}ok" >&6
  10311. +
  10312. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10313. + conftest$ac_exeext conftest.$ac_ext
  10314. + ac_ext=c
  10315. +ac_cpp='$CPP $CPPFLAGS'
  10316. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10317. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10318. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10319. +
  10320. fi
  10321. +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  10322. +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  10323. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  10324. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  10325. + CFLAGS="$SAVE_CFLAGS"
  10326. + fi
  10327. + ;;
  10328. +sparc*-*solaris*)
  10329. + # Find out which ABI we are using.
  10330. + echo 'int i;' > conftest.$ac_ext
  10331. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10332. + (eval $ac_compile) 2>&5
  10333. + ac_status=$?
  10334. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10335. + (exit $ac_status); }; then
  10336. + case `/usr/bin/file conftest.o` in
  10337. + *64-bit*)
  10338. + case $lt_cv_prog_gnu_ld in
  10339. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  10340. + *) LD="${LD-ld} -64" ;;
  10341. + esac
  10342. + ;;
  10343. + esac
  10344. + fi
  10345. + rm -rf conftest*
  10346. + ;;
  10347. +
  10348. +
  10349. +esac
  10350. +
  10351. +need_locks="$enable_libtool_lock"
  10352. +
  10353. ac_ext=c
  10354. ac_cpp='$CPP $CPPFLAGS'
  10355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10358. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  10359. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  10360. +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  10361. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  10362. # On Suns, sometimes $CPP names a directory.
  10363. if test -n "$CPP" && test -d "$CPP"; then
  10364. CPP=
  10365. @@ -3976,24 +4901,22 @@
  10366. #endif
  10367. Syntax error
  10368. _ACEOF
  10369. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10370. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10371. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  10372. +case "(($ac_try" in
  10373. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10374. + *) ac_try_echo=$ac_try;;
  10375. +esac
  10376. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10377. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10378. ac_status=$?
  10379. grep -v '^ *+' conftest.er1 >conftest.err
  10380. rm -f conftest.er1
  10381. cat conftest.err >&5
  10382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10383. - (exit $ac_status); } >/dev/null; then
  10384. - if test -s conftest.err; then
  10385. - ac_cpp_err=$ac_c_preproc_warn_flag
  10386. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10387. - else
  10388. - ac_cpp_err=
  10389. - fi
  10390. -else
  10391. - ac_cpp_err=yes
  10392. -fi
  10393. -if test -z "$ac_cpp_err"; then
  10394. + (exit $ac_status); } >/dev/null && {
  10395. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10396. + test ! -s conftest.err
  10397. + }; then
  10398. :
  10399. else
  10400. echo "$as_me: failed program was:" >&5
  10401. @@ -4002,9 +4925,10 @@
  10402. # Broken: fails on valid input.
  10403. continue
  10404. fi
  10405. +
  10406. rm -f conftest.err conftest.$ac_ext
  10407. - # OK, works on sane cases. Now check whether non-existent headers
  10408. + # OK, works on sane cases. Now check whether nonexistent headers
  10409. # can be detected and how.
  10410. cat >conftest.$ac_ext <<_ACEOF
  10411. /* confdefs.h. */
  10412. @@ -4014,24 +4938,22 @@
  10413. /* end confdefs.h. */
  10414. #include <ac_nonexistent.h>
  10415. _ACEOF
  10416. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10417. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10418. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  10419. +case "(($ac_try" in
  10420. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10421. + *) ac_try_echo=$ac_try;;
  10422. +esac
  10423. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10424. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10425. ac_status=$?
  10426. grep -v '^ *+' conftest.er1 >conftest.err
  10427. rm -f conftest.er1
  10428. cat conftest.err >&5
  10429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10430. - (exit $ac_status); } >/dev/null; then
  10431. - if test -s conftest.err; then
  10432. - ac_cpp_err=$ac_c_preproc_warn_flag
  10433. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10434. - else
  10435. - ac_cpp_err=
  10436. - fi
  10437. -else
  10438. - ac_cpp_err=yes
  10439. -fi
  10440. -if test -z "$ac_cpp_err"; then
  10441. + (exit $ac_status); } >/dev/null && {
  10442. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10443. + test ! -s conftest.err
  10444. + }; then
  10445. # Broken: success on invalid input.
  10446. continue
  10447. else
  10448. @@ -4042,6 +4964,7 @@
  10449. ac_preproc_ok=:
  10450. break
  10451. fi
  10452. +
  10453. rm -f conftest.err conftest.$ac_ext
  10454. done
  10455. @@ -4059,8 +4982,8 @@
  10456. else
  10457. ac_cv_prog_CPP=$CPP
  10458. fi
  10459. -echo "$as_me:$LINENO: result: $CPP" >&5
  10460. -echo "${ECHO_T}$CPP" >&6
  10461. +{ echo "$as_me:$LINENO: result: $CPP" >&5
  10462. +echo "${ECHO_T}$CPP" >&6; }
  10463. ac_preproc_ok=false
  10464. for ac_c_preproc_warn_flag in '' yes
  10465. do
  10466. @@ -4083,24 +5006,22 @@
  10467. #endif
  10468. Syntax error
  10469. _ACEOF
  10470. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10471. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10472. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  10473. +case "(($ac_try" in
  10474. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10475. + *) ac_try_echo=$ac_try;;
  10476. +esac
  10477. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10478. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10479. ac_status=$?
  10480. grep -v '^ *+' conftest.er1 >conftest.err
  10481. rm -f conftest.er1
  10482. cat conftest.err >&5
  10483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10484. - (exit $ac_status); } >/dev/null; then
  10485. - if test -s conftest.err; then
  10486. - ac_cpp_err=$ac_c_preproc_warn_flag
  10487. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10488. - else
  10489. - ac_cpp_err=
  10490. - fi
  10491. -else
  10492. - ac_cpp_err=yes
  10493. -fi
  10494. -if test -z "$ac_cpp_err"; then
  10495. + (exit $ac_status); } >/dev/null && {
  10496. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10497. + test ! -s conftest.err
  10498. + }; then
  10499. :
  10500. else
  10501. echo "$as_me: failed program was:" >&5
  10502. @@ -4109,9 +5030,10 @@
  10503. # Broken: fails on valid input.
  10504. continue
  10505. fi
  10506. +
  10507. rm -f conftest.err conftest.$ac_ext
  10508. - # OK, works on sane cases. Now check whether non-existent headers
  10509. + # OK, works on sane cases. Now check whether nonexistent headers
  10510. # can be detected and how.
  10511. cat >conftest.$ac_ext <<_ACEOF
  10512. /* confdefs.h. */
  10513. @@ -4121,24 +5043,22 @@
  10514. /* end confdefs.h. */
  10515. #include <ac_nonexistent.h>
  10516. _ACEOF
  10517. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10518. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10519. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  10520. +case "(($ac_try" in
  10521. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10522. + *) ac_try_echo=$ac_try;;
  10523. +esac
  10524. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10525. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10526. ac_status=$?
  10527. grep -v '^ *+' conftest.er1 >conftest.err
  10528. rm -f conftest.er1
  10529. cat conftest.err >&5
  10530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10531. - (exit $ac_status); } >/dev/null; then
  10532. - if test -s conftest.err; then
  10533. - ac_cpp_err=$ac_c_preproc_warn_flag
  10534. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10535. - else
  10536. - ac_cpp_err=
  10537. - fi
  10538. -else
  10539. - ac_cpp_err=yes
  10540. -fi
  10541. -if test -z "$ac_cpp_err"; then
  10542. + (exit $ac_status); } >/dev/null && {
  10543. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10544. + test ! -s conftest.err
  10545. + }; then
  10546. # Broken: success on invalid input.
  10547. continue
  10548. else
  10549. @@ -4149,6 +5069,7 @@
  10550. ac_preproc_ok=:
  10551. break
  10552. fi
  10553. +
  10554. rm -f conftest.err conftest.$ac_ext
  10555. done
  10556. @@ -4171,23 +5092,8 @@
  10557. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10558. -echo "$as_me:$LINENO: checking for egrep" >&5
  10559. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  10560. -if test "${ac_cv_prog_egrep+set}" = set; then
  10561. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10562. -else
  10563. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  10564. - then ac_cv_prog_egrep='grep -E'
  10565. - else ac_cv_prog_egrep='egrep'
  10566. - fi
  10567. -fi
  10568. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  10569. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  10570. - EGREP=$ac_cv_prog_egrep
  10571. -
  10572. -
  10573. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  10574. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  10575. +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  10576. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  10577. if test "${ac_cv_header_stdc+set}" = set; then
  10578. echo $ECHO_N "(cached) $ECHO_C" >&6
  10579. else
  10580. @@ -4211,34 +5117,31 @@
  10581. }
  10582. _ACEOF
  10583. rm -f conftest.$ac_objext
  10584. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10585. - (eval $ac_compile) 2>conftest.er1
  10586. +if { (ac_try="$ac_compile"
  10587. +case "(($ac_try" in
  10588. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10589. + *) ac_try_echo=$ac_try;;
  10590. +esac
  10591. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10592. + (eval "$ac_compile") 2>conftest.er1
  10593. ac_status=$?
  10594. grep -v '^ *+' conftest.er1 >conftest.err
  10595. rm -f conftest.er1
  10596. cat conftest.err >&5
  10597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10598. - (exit $ac_status); } &&
  10599. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10600. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10601. - (eval $ac_try) 2>&5
  10602. - ac_status=$?
  10603. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10604. - (exit $ac_status); }; } &&
  10605. - { ac_try='test -s conftest.$ac_objext'
  10606. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10607. - (eval $ac_try) 2>&5
  10608. - ac_status=$?
  10609. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10610. - (exit $ac_status); }; }; then
  10611. + (exit $ac_status); } && {
  10612. + test -z "$ac_c_werror_flag" ||
  10613. + test ! -s conftest.err
  10614. + } && test -s conftest.$ac_objext; then
  10615. ac_cv_header_stdc=yes
  10616. else
  10617. echo "$as_me: failed program was:" >&5
  10618. sed 's/^/| /' conftest.$ac_ext >&5
  10619. -ac_cv_header_stdc=no
  10620. + ac_cv_header_stdc=no
  10621. fi
  10622. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10623. +
  10624. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10625. if test $ac_cv_header_stdc = yes; then
  10626. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10627. @@ -4294,6 +5197,7 @@
  10628. cat >>conftest.$ac_ext <<_ACEOF
  10629. /* end confdefs.h. */
  10630. #include <ctype.h>
  10631. +#include <stdlib.h>
  10632. #if ((' ' & 0x0FF) == 0x020)
  10633. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10634. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10635. @@ -4313,18 +5217,27 @@
  10636. for (i = 0; i < 256; i++)
  10637. if (XOR (islower (i), ISLOWER (i))
  10638. || toupper (i) != TOUPPER (i))
  10639. - exit(2);
  10640. - exit (0);
  10641. + return 2;
  10642. + return 0;
  10643. }
  10644. _ACEOF
  10645. rm -f conftest$ac_exeext
  10646. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10647. - (eval $ac_link) 2>&5
  10648. +if { (ac_try="$ac_link"
  10649. +case "(($ac_try" in
  10650. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10651. + *) ac_try_echo=$ac_try;;
  10652. +esac
  10653. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10654. + (eval "$ac_link") 2>&5
  10655. ac_status=$?
  10656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10657. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10658. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10659. - (eval $ac_try) 2>&5
  10660. + { (case "(($ac_try" in
  10661. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10662. + *) ac_try_echo=$ac_try;;
  10663. +esac
  10664. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10665. + (eval "$ac_try") 2>&5
  10666. ac_status=$?
  10667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10668. (exit $ac_status); }; }; then
  10669. @@ -4337,12 +5250,14 @@
  10670. ( exit $ac_status )
  10671. ac_cv_header_stdc=no
  10672. fi
  10673. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10674. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10675. fi
  10676. +
  10677. +
  10678. fi
  10679. fi
  10680. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  10681. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  10682. +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  10683. +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  10684. if test $ac_cv_header_stdc = yes; then
  10685. cat >>confdefs.h <<\_ACEOF
  10686. @@ -4365,9 +5280,9 @@
  10687. inttypes.h stdint.h unistd.h
  10688. do
  10689. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10690. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  10691. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10692. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10693. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  10694. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10695. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10696. echo $ECHO_N "(cached) $ECHO_C" >&6
  10697. else
  10698. cat >conftest.$ac_ext <<_ACEOF
  10699. @@ -4381,37 +5296,35 @@
  10700. #include <$ac_header>
  10701. _ACEOF
  10702. rm -f conftest.$ac_objext
  10703. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10704. - (eval $ac_compile) 2>conftest.er1
  10705. +if { (ac_try="$ac_compile"
  10706. +case "(($ac_try" in
  10707. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10708. + *) ac_try_echo=$ac_try;;
  10709. +esac
  10710. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10711. + (eval "$ac_compile") 2>conftest.er1
  10712. ac_status=$?
  10713. grep -v '^ *+' conftest.er1 >conftest.err
  10714. rm -f conftest.er1
  10715. cat conftest.err >&5
  10716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10717. - (exit $ac_status); } &&
  10718. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10719. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10720. - (eval $ac_try) 2>&5
  10721. - ac_status=$?
  10722. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10723. - (exit $ac_status); }; } &&
  10724. - { ac_try='test -s conftest.$ac_objext'
  10725. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10726. - (eval $ac_try) 2>&5
  10727. - ac_status=$?
  10728. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10729. - (exit $ac_status); }; }; then
  10730. + (exit $ac_status); } && {
  10731. + test -z "$ac_c_werror_flag" ||
  10732. + test ! -s conftest.err
  10733. + } && test -s conftest.$ac_objext; then
  10734. eval "$as_ac_Header=yes"
  10735. else
  10736. echo "$as_me: failed program was:" >&5
  10737. sed 's/^/| /' conftest.$ac_ext >&5
  10738. -eval "$as_ac_Header=no"
  10739. + eval "$as_ac_Header=no"
  10740. fi
  10741. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10742. +
  10743. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10744. fi
  10745. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10746. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10747. +ac_res=`eval echo '${'$as_ac_Header'}'`
  10748. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  10749. +echo "${ECHO_T}$ac_res" >&6; }
  10750. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10751. cat >>confdefs.h <<_ACEOF
  10752. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10753. @@ -4426,18 +5339,19 @@
  10754. for ac_header in dlfcn.h
  10755. do
  10756. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10757. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10758. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  10759. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10760. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10761. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10762. + { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10763. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10764. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10765. echo $ECHO_N "(cached) $ECHO_C" >&6
  10766. fi
  10767. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10768. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10769. +ac_res=`eval echo '${'$as_ac_Header'}'`
  10770. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  10771. +echo "${ECHO_T}$ac_res" >&6; }
  10772. else
  10773. # Is the header compilable?
  10774. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10775. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10776. +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10777. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10778. cat >conftest.$ac_ext <<_ACEOF
  10779. /* confdefs.h. */
  10780. _ACEOF
  10781. @@ -4448,40 +5362,37 @@
  10782. #include <$ac_header>
  10783. _ACEOF
  10784. rm -f conftest.$ac_objext
  10785. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10786. - (eval $ac_compile) 2>conftest.er1
  10787. +if { (ac_try="$ac_compile"
  10788. +case "(($ac_try" in
  10789. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10790. + *) ac_try_echo=$ac_try;;
  10791. +esac
  10792. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10793. + (eval "$ac_compile") 2>conftest.er1
  10794. ac_status=$?
  10795. grep -v '^ *+' conftest.er1 >conftest.err
  10796. rm -f conftest.er1
  10797. cat conftest.err >&5
  10798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10799. - (exit $ac_status); } &&
  10800. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10801. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10802. - (eval $ac_try) 2>&5
  10803. - ac_status=$?
  10804. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10805. - (exit $ac_status); }; } &&
  10806. - { ac_try='test -s conftest.$ac_objext'
  10807. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10808. - (eval $ac_try) 2>&5
  10809. - ac_status=$?
  10810. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10811. - (exit $ac_status); }; }; then
  10812. + (exit $ac_status); } && {
  10813. + test -z "$ac_c_werror_flag" ||
  10814. + test ! -s conftest.err
  10815. + } && test -s conftest.$ac_objext; then
  10816. ac_header_compiler=yes
  10817. else
  10818. echo "$as_me: failed program was:" >&5
  10819. sed 's/^/| /' conftest.$ac_ext >&5
  10820. -ac_header_compiler=no
  10821. + ac_header_compiler=no
  10822. fi
  10823. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10824. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10825. -echo "${ECHO_T}$ac_header_compiler" >&6
  10826. +
  10827. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10828. +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10829. +echo "${ECHO_T}$ac_header_compiler" >&6; }
  10830. # Is the header present?
  10831. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10832. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10833. +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10834. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10835. cat >conftest.$ac_ext <<_ACEOF
  10836. /* confdefs.h. */
  10837. _ACEOF
  10838. @@ -4490,24 +5401,22 @@
  10839. /* end confdefs.h. */
  10840. #include <$ac_header>
  10841. _ACEOF
  10842. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10843. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10844. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  10845. +case "(($ac_try" in
  10846. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10847. + *) ac_try_echo=$ac_try;;
  10848. +esac
  10849. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10850. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10851. ac_status=$?
  10852. grep -v '^ *+' conftest.er1 >conftest.err
  10853. rm -f conftest.er1
  10854. cat conftest.err >&5
  10855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10856. - (exit $ac_status); } >/dev/null; then
  10857. - if test -s conftest.err; then
  10858. - ac_cpp_err=$ac_c_preproc_warn_flag
  10859. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10860. - else
  10861. - ac_cpp_err=
  10862. - fi
  10863. -else
  10864. - ac_cpp_err=yes
  10865. -fi
  10866. -if test -z "$ac_cpp_err"; then
  10867. + (exit $ac_status); } >/dev/null && {
  10868. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10869. + test ! -s conftest.err
  10870. + }; then
  10871. ac_header_preproc=yes
  10872. else
  10873. echo "$as_me: failed program was:" >&5
  10874. @@ -4515,9 +5424,10 @@
  10875. ac_header_preproc=no
  10876. fi
  10877. +
  10878. rm -f conftest.err conftest.$ac_ext
  10879. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10880. -echo "${ECHO_T}$ac_header_preproc" >&6
  10881. +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10882. +echo "${ECHO_T}$ac_header_preproc" >&6; }
  10883. # So? What about this header?
  10884. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10885. @@ -4541,25 +5451,19 @@
  10886. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10887. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10888. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10889. - (
  10890. - cat <<\_ASBOX
  10891. -## ------------------------------------------ ##
  10892. -## Report this to the AC_PACKAGE_NAME lists. ##
  10893. -## ------------------------------------------ ##
  10894. -_ASBOX
  10895. - ) |
  10896. - sed "s/^/$as_me: WARNING: /" >&2
  10897. +
  10898. ;;
  10899. esac
  10900. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  10901. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10902. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10903. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  10904. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10905. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10906. echo $ECHO_N "(cached) $ECHO_C" >&6
  10907. else
  10908. eval "$as_ac_Header=\$ac_header_preproc"
  10909. fi
  10910. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10911. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10912. +ac_res=`eval echo '${'$as_ac_Header'}'`
  10913. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  10914. +echo "${ECHO_T}$ac_res" >&6; }
  10915. fi
  10916. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10917. @@ -4571,198 +5475,71 @@
  10918. done
  10919. -
  10920. -
  10921. -
  10922. -
  10923. -
  10924. -# Only perform the check for file, if the check method requires it
  10925. -case $deplibs_check_method in
  10926. -file_magic*)
  10927. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  10928. - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  10929. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  10930. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  10931. +ac_ext=cpp
  10932. +ac_cpp='$CXXCPP $CPPFLAGS'
  10933. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10934. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10935. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10936. +if test -z "$CXX"; then
  10937. + if test -n "$CCC"; then
  10938. + CXX=$CCC
  10939. + else
  10940. + if test -n "$ac_tool_prefix"; then
  10941. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10942. + do
  10943. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10944. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10945. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  10946. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10947. +if test "${ac_cv_prog_CXX+set}" = set; then
  10948. echo $ECHO_N "(cached) $ECHO_C" >&6
  10949. else
  10950. - case $MAGIC_CMD in
  10951. - /*)
  10952. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  10953. - ;;
  10954. - ?:/*)
  10955. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  10956. - ;;
  10957. - *)
  10958. - ac_save_MAGIC_CMD="$MAGIC_CMD"
  10959. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10960. - ac_dummy="/usr/bin:$PATH"
  10961. - for ac_dir in $ac_dummy; do
  10962. - test -z "$ac_dir" && ac_dir=.
  10963. - if test -f $ac_dir/${ac_tool_prefix}file; then
  10964. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  10965. - if test -n "$file_magic_test_file"; then
  10966. - case $deplibs_check_method in
  10967. - "file_magic "*)
  10968. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  10969. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  10970. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10971. - egrep "$file_magic_regex" > /dev/null; then
  10972. - :
  10973. - else
  10974. - cat <<EOF 1>&2
  10975. -
  10976. -*** Warning: the command libtool uses to detect shared libraries,
  10977. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  10978. -*** The result is that libtool may fail to recognize shared libraries
  10979. -*** as such. This will affect the creation of libtool libraries that
  10980. -*** depend on shared libraries, but programs linked with such libtool
  10981. -*** libraries will work regardless of this problem. Nevertheless, you
  10982. -*** may want to report the problem to your system manager and/or to
  10983. -*** [email protected]
  10984. + if test -n "$CXX"; then
  10985. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10986. +else
  10987. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10988. +for as_dir in $PATH
  10989. +do
  10990. + IFS=$as_save_IFS
  10991. + test -z "$as_dir" && as_dir=.
  10992. + for ac_exec_ext in '' $ac_executable_extensions; do
  10993. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10994. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10995. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10996. + break 2
  10997. + fi
  10998. +done
  10999. +done
  11000. +IFS=$as_save_IFS
  11001. -EOF
  11002. - fi ;;
  11003. - esac
  11004. - fi
  11005. - break
  11006. - fi
  11007. - done
  11008. - IFS="$ac_save_ifs"
  11009. - MAGIC_CMD="$ac_save_MAGIC_CMD"
  11010. - ;;
  11011. -esac
  11012. fi
  11013. -
  11014. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11015. -if test -n "$MAGIC_CMD"; then
  11016. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  11017. -echo "${ECHO_T}$MAGIC_CMD" >&6
  11018. +fi
  11019. +CXX=$ac_cv_prog_CXX
  11020. +if test -n "$CXX"; then
  11021. + { echo "$as_me:$LINENO: result: $CXX" >&5
  11022. +echo "${ECHO_T}$CXX" >&6; }
  11023. else
  11024. - echo "$as_me:$LINENO: result: no" >&5
  11025. -echo "${ECHO_T}no" >&6
  11026. + { echo "$as_me:$LINENO: result: no" >&5
  11027. +echo "${ECHO_T}no" >&6; }
  11028. fi
  11029. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  11030. - if test -n "$ac_tool_prefix"; then
  11031. - echo "$as_me:$LINENO: checking for file" >&5
  11032. -echo $ECHO_N "checking for file... $ECHO_C" >&6
  11033. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  11034. +
  11035. + test -n "$CXX" && break
  11036. + done
  11037. +fi
  11038. +if test -z "$CXX"; then
  11039. + ac_ct_CXX=$CXX
  11040. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11041. +do
  11042. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  11043. +set dummy $ac_prog; ac_word=$2
  11044. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11045. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11046. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  11047. echo $ECHO_N "(cached) $ECHO_C" >&6
  11048. else
  11049. - case $MAGIC_CMD in
  11050. - /*)
  11051. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11052. - ;;
  11053. - ?:/*)
  11054. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  11055. - ;;
  11056. - *)
  11057. - ac_save_MAGIC_CMD="$MAGIC_CMD"
  11058. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11059. - ac_dummy="/usr/bin:$PATH"
  11060. - for ac_dir in $ac_dummy; do
  11061. - test -z "$ac_dir" && ac_dir=.
  11062. - if test -f $ac_dir/file; then
  11063. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  11064. - if test -n "$file_magic_test_file"; then
  11065. - case $deplibs_check_method in
  11066. - "file_magic "*)
  11067. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  11068. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11069. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11070. - egrep "$file_magic_regex" > /dev/null; then
  11071. - :
  11072. - else
  11073. - cat <<EOF 1>&2
  11074. -
  11075. -*** Warning: the command libtool uses to detect shared libraries,
  11076. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  11077. -*** The result is that libtool may fail to recognize shared libraries
  11078. -*** as such. This will affect the creation of libtool libraries that
  11079. -*** depend on shared libraries, but programs linked with such libtool
  11080. -*** libraries will work regardless of this problem. Nevertheless, you
  11081. -*** may want to report the problem to your system manager and/or to
  11082. -*** [email protected]
  11083. -
  11084. -EOF
  11085. - fi ;;
  11086. - esac
  11087. - fi
  11088. - break
  11089. - fi
  11090. - done
  11091. - IFS="$ac_save_ifs"
  11092. - MAGIC_CMD="$ac_save_MAGIC_CMD"
  11093. - ;;
  11094. -esac
  11095. -fi
  11096. -
  11097. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11098. -if test -n "$MAGIC_CMD"; then
  11099. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  11100. -echo "${ECHO_T}$MAGIC_CMD" >&6
  11101. -else
  11102. - echo "$as_me:$LINENO: result: no" >&5
  11103. -echo "${ECHO_T}no" >&6
  11104. -fi
  11105. -
  11106. - else
  11107. - MAGIC_CMD=:
  11108. - fi
  11109. -fi
  11110. -
  11111. - fi
  11112. - ;;
  11113. -esac
  11114. -
  11115. -if test -n "$ac_tool_prefix"; then
  11116. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  11117. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  11118. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  11119. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11120. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  11121. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11122. -else
  11123. - if test -n "$RANLIB"; then
  11124. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  11125. -else
  11126. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11127. -for as_dir in $PATH
  11128. -do
  11129. - IFS=$as_save_IFS
  11130. - test -z "$as_dir" && as_dir=.
  11131. - for ac_exec_ext in '' $ac_executable_extensions; do
  11132. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11133. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  11134. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11135. - break 2
  11136. - fi
  11137. -done
  11138. -done
  11139. -
  11140. -fi
  11141. -fi
  11142. -RANLIB=$ac_cv_prog_RANLIB
  11143. -if test -n "$RANLIB"; then
  11144. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  11145. -echo "${ECHO_T}$RANLIB" >&6
  11146. -else
  11147. - echo "$as_me:$LINENO: result: no" >&5
  11148. -echo "${ECHO_T}no" >&6
  11149. -fi
  11150. -
  11151. -fi
  11152. -if test -z "$ac_cv_prog_RANLIB"; then
  11153. - ac_ct_RANLIB=$RANLIB
  11154. - # Extract the first word of "ranlib", so it can be a program name with args.
  11155. -set dummy ranlib; ac_word=$2
  11156. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  11157. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11158. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  11159. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11160. -else
  11161. - if test -n "$ac_ct_RANLIB"; then
  11162. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  11163. + if test -n "$ac_ct_CXX"; then
  11164. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11165. else
  11166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11167. for as_dir in $PATH
  11168. @@ -4770,166 +5547,89 @@
  11169. IFS=$as_save_IFS
  11170. test -z "$as_dir" && as_dir=.
  11171. for ac_exec_ext in '' $ac_executable_extensions; do
  11172. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11173. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  11174. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11175. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  11176. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11177. break 2
  11178. fi
  11179. done
  11180. done
  11181. +IFS=$as_save_IFS
  11182. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  11183. fi
  11184. fi
  11185. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  11186. -if test -n "$ac_ct_RANLIB"; then
  11187. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  11188. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  11189. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11190. +if test -n "$ac_ct_CXX"; then
  11191. + { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  11192. +echo "${ECHO_T}$ac_ct_CXX" >&6; }
  11193. else
  11194. - echo "$as_me:$LINENO: result: no" >&5
  11195. -echo "${ECHO_T}no" >&6
  11196. + { echo "$as_me:$LINENO: result: no" >&5
  11197. +echo "${ECHO_T}no" >&6; }
  11198. fi
  11199. - RANLIB=$ac_ct_RANLIB
  11200. -else
  11201. - RANLIB="$ac_cv_prog_RANLIB"
  11202. -fi
  11203. -if test -n "$ac_tool_prefix"; then
  11204. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  11205. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  11206. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  11207. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11208. -if test "${ac_cv_prog_STRIP+set}" = set; then
  11209. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11210. -else
  11211. - if test -n "$STRIP"; then
  11212. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  11213. -else
  11214. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11215. -for as_dir in $PATH
  11216. -do
  11217. - IFS=$as_save_IFS
  11218. - test -z "$as_dir" && as_dir=.
  11219. - for ac_exec_ext in '' $ac_executable_extensions; do
  11220. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11221. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  11222. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11223. - break 2
  11224. - fi
  11225. + test -n "$ac_ct_CXX" && break
  11226. done
  11227. -done
  11228. -
  11229. -fi
  11230. -fi
  11231. -STRIP=$ac_cv_prog_STRIP
  11232. -if test -n "$STRIP"; then
  11233. - echo "$as_me:$LINENO: result: $STRIP" >&5
  11234. -echo "${ECHO_T}$STRIP" >&6
  11235. -else
  11236. - echo "$as_me:$LINENO: result: no" >&5
  11237. -echo "${ECHO_T}no" >&6
  11238. -fi
  11239. -fi
  11240. -if test -z "$ac_cv_prog_STRIP"; then
  11241. - ac_ct_STRIP=$STRIP
  11242. - # Extract the first word of "strip", so it can be a program name with args.
  11243. -set dummy strip; ac_word=$2
  11244. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  11245. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11246. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  11247. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11248. -else
  11249. - if test -n "$ac_ct_STRIP"; then
  11250. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  11251. -else
  11252. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11253. -for as_dir in $PATH
  11254. -do
  11255. - IFS=$as_save_IFS
  11256. - test -z "$as_dir" && as_dir=.
  11257. - for ac_exec_ext in '' $ac_executable_extensions; do
  11258. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11259. - ac_cv_prog_ac_ct_STRIP="strip"
  11260. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11261. - break 2
  11262. + if test "x$ac_ct_CXX" = x; then
  11263. + CXX="g++"
  11264. + else
  11265. + case $cross_compiling:$ac_tool_warned in
  11266. +yes:)
  11267. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  11268. +whose name does not start with the host triplet. If you think this
  11269. +configuration is useful to you, please write to [email protected]." >&5
  11270. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  11271. +whose name does not start with the host triplet. If you think this
  11272. +configuration is useful to you, please write to [email protected]." >&2;}
  11273. +ac_tool_warned=yes ;;
  11274. +esac
  11275. + CXX=$ac_ct_CXX
  11276. fi
  11277. -done
  11278. -done
  11279. -
  11280. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  11281. -fi
  11282. -fi
  11283. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  11284. -if test -n "$ac_ct_STRIP"; then
  11285. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  11286. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  11287. -else
  11288. - echo "$as_me:$LINENO: result: no" >&5
  11289. -echo "${ECHO_T}no" >&6
  11290. fi
  11291. - STRIP=$ac_ct_STRIP
  11292. -else
  11293. - STRIP="$ac_cv_prog_STRIP"
  11294. + fi
  11295. fi
  11296. -
  11297. -
  11298. -enable_dlopen=no
  11299. -enable_win32_dll=no
  11300. -
  11301. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  11302. -if test "${enable_libtool_lock+set}" = set; then
  11303. - enableval="$enable_libtool_lock"
  11304. -
  11305. -fi;
  11306. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  11307. -
  11308. -# Some flags need to be propagated to the compiler or linker for good
  11309. -# libtool support.
  11310. -case $host in
  11311. -*-*-irix6*)
  11312. - # Find out which ABI we are using.
  11313. - echo '#line 4894 "configure"' > conftest.$ac_ext
  11314. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11315. - (eval $ac_compile) 2>&5
  11316. +# Provide some information about the compiler.
  11317. +echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  11318. +ac_compiler=`set X $ac_compile; echo $2`
  11319. +{ (ac_try="$ac_compiler --version >&5"
  11320. +case "(($ac_try" in
  11321. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11322. + *) ac_try_echo=$ac_try;;
  11323. +esac
  11324. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11325. + (eval "$ac_compiler --version >&5") 2>&5
  11326. ac_status=$?
  11327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11328. - (exit $ac_status); }; then
  11329. - case `/usr/bin/file conftest.$ac_objext` in
  11330. - *32-bit*)
  11331. - LD="${LD-ld} -32"
  11332. - ;;
  11333. - *N32*)
  11334. - LD="${LD-ld} -n32"
  11335. - ;;
  11336. - *64-bit*)
  11337. - LD="${LD-ld} -64"
  11338. - ;;
  11339. - esac
  11340. - fi
  11341. - rm -rf conftest*
  11342. - ;;
  11343. + (exit $ac_status); }
  11344. +{ (ac_try="$ac_compiler -v >&5"
  11345. +case "(($ac_try" in
  11346. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11347. + *) ac_try_echo=$ac_try;;
  11348. +esac
  11349. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11350. + (eval "$ac_compiler -v >&5") 2>&5
  11351. + ac_status=$?
  11352. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11353. + (exit $ac_status); }
  11354. +{ (ac_try="$ac_compiler -V >&5"
  11355. +case "(($ac_try" in
  11356. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11357. + *) ac_try_echo=$ac_try;;
  11358. +esac
  11359. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11360. + (eval "$ac_compiler -V >&5") 2>&5
  11361. + ac_status=$?
  11362. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11363. + (exit $ac_status); }
  11364. -*-*-sco3.2v5*)
  11365. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  11366. - SAVE_CFLAGS="$CFLAGS"
  11367. - CFLAGS="$CFLAGS -belf"
  11368. - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  11369. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  11370. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  11371. +{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  11372. +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  11373. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  11374. echo $ECHO_N "(cached) $ECHO_C" >&6
  11375. else
  11376. -
  11377. -
  11378. - ac_ext=c
  11379. -ac_cpp='$CPP $CPPFLAGS'
  11380. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11381. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11382. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11383. -
  11384. - cat >conftest.$ac_ext <<_ACEOF
  11385. + cat >conftest.$ac_ext <<_ACEOF
  11386. /* confdefs.h. */
  11387. _ACEOF
  11388. cat confdefs.h >>conftest.$ac_ext
  11389. @@ -4939,335 +5639,96 @@
  11390. int
  11391. main ()
  11392. {
  11393. +#ifndef __GNUC__
  11394. + choke me
  11395. +#endif
  11396. ;
  11397. return 0;
  11398. }
  11399. _ACEOF
  11400. -rm -f conftest.$ac_objext conftest$ac_exeext
  11401. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11402. - (eval $ac_link) 2>conftest.er1
  11403. +rm -f conftest.$ac_objext
  11404. +if { (ac_try="$ac_compile"
  11405. +case "(($ac_try" in
  11406. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11407. + *) ac_try_echo=$ac_try;;
  11408. +esac
  11409. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11410. + (eval "$ac_compile") 2>conftest.er1
  11411. ac_status=$?
  11412. grep -v '^ *+' conftest.er1 >conftest.err
  11413. rm -f conftest.er1
  11414. cat conftest.err >&5
  11415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11416. - (exit $ac_status); } &&
  11417. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11418. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11419. - (eval $ac_try) 2>&5
  11420. - ac_status=$?
  11421. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11422. - (exit $ac_status); }; } &&
  11423. - { ac_try='test -s conftest$ac_exeext'
  11424. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11425. - (eval $ac_try) 2>&5
  11426. - ac_status=$?
  11427. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11428. - (exit $ac_status); }; }; then
  11429. - lt_cv_cc_needs_belf=yes
  11430. + (exit $ac_status); } && {
  11431. + test -z "$ac_cxx_werror_flag" ||
  11432. + test ! -s conftest.err
  11433. + } && test -s conftest.$ac_objext; then
  11434. + ac_compiler_gnu=yes
  11435. else
  11436. echo "$as_me: failed program was:" >&5
  11437. sed 's/^/| /' conftest.$ac_ext >&5
  11438. -lt_cv_cc_needs_belf=no
  11439. + ac_compiler_gnu=no
  11440. fi
  11441. -rm -f conftest.err conftest.$ac_objext \
  11442. - conftest$ac_exeext conftest.$ac_ext
  11443. - ac_ext=c
  11444. -ac_cpp='$CPP $CPPFLAGS'
  11445. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11446. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11447. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11448. +
  11449. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11450. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11451. fi
  11452. -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  11453. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  11454. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  11455. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  11456. - CFLAGS="$SAVE_CFLAGS"
  11457. - fi
  11458. - ;;
  11459. +{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  11460. +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  11461. +GXX=`test $ac_compiler_gnu = yes && echo yes`
  11462. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  11463. +ac_save_CXXFLAGS=$CXXFLAGS
  11464. +{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  11465. +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  11466. +if test "${ac_cv_prog_cxx_g+set}" = set; then
  11467. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11468. +else
  11469. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11470. + ac_cxx_werror_flag=yes
  11471. + ac_cv_prog_cxx_g=no
  11472. + CXXFLAGS="-g"
  11473. + cat >conftest.$ac_ext <<_ACEOF
  11474. +/* confdefs.h. */
  11475. +_ACEOF
  11476. +cat confdefs.h >>conftest.$ac_ext
  11477. +cat >>conftest.$ac_ext <<_ACEOF
  11478. +/* end confdefs.h. */
  11479. +int
  11480. +main ()
  11481. +{
  11482. + ;
  11483. + return 0;
  11484. +}
  11485. +_ACEOF
  11486. +rm -f conftest.$ac_objext
  11487. +if { (ac_try="$ac_compile"
  11488. +case "(($ac_try" in
  11489. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11490. + *) ac_try_echo=$ac_try;;
  11491. esac
  11492. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11493. + (eval "$ac_compile") 2>conftest.er1
  11494. + ac_status=$?
  11495. + grep -v '^ *+' conftest.er1 >conftest.err
  11496. + rm -f conftest.er1
  11497. + cat conftest.err >&5
  11498. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11499. + (exit $ac_status); } && {
  11500. + test -z "$ac_cxx_werror_flag" ||
  11501. + test ! -s conftest.err
  11502. + } && test -s conftest.$ac_objext; then
  11503. + ac_cv_prog_cxx_g=yes
  11504. +else
  11505. + echo "$as_me: failed program was:" >&5
  11506. +sed 's/^/| /' conftest.$ac_ext >&5
  11507. -# Sed substitution that helps us do robust quoting. It backslashifies
  11508. -# metacharacters that are still active within double-quoted strings.
  11509. -Xsed='sed -e s/^X//'
  11510. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  11511. -
  11512. -# Same as above, but do not quote variable references.
  11513. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  11514. -
  11515. -# Sed substitution to delay expansion of an escaped shell variable in a
  11516. -# double_quote_subst'ed string.
  11517. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  11518. -
  11519. -# Constants:
  11520. -rm="rm -f"
  11521. -
  11522. -# Global variables:
  11523. -default_ofile=libtool
  11524. -can_build_shared=yes
  11525. -
  11526. -# All known linkers require a `.a' archive for static linking (except M$VC,
  11527. -# which needs '.lib').
  11528. -libext=a
  11529. -ltmain="$ac_aux_dir/ltmain.sh"
  11530. -ofile="$default_ofile"
  11531. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  11532. -need_locks="$enable_libtool_lock"
  11533. -
  11534. -old_CC="$CC"
  11535. -old_CFLAGS="$CFLAGS"
  11536. -
  11537. -# Set sane defaults for various variables
  11538. -test -z "$AR" && AR=ar
  11539. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  11540. -test -z "$AS" && AS=as
  11541. -test -z "$CC" && CC=cc
  11542. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  11543. -test -z "$LD" && LD=ld
  11544. -test -z "$LN_S" && LN_S="ln -s"
  11545. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  11546. -test -z "$NM" && NM=nm
  11547. -test -z "$OBJDUMP" && OBJDUMP=objdump
  11548. -test -z "$RANLIB" && RANLIB=:
  11549. -test -z "$STRIP" && STRIP=:
  11550. -test -z "$ac_objext" && ac_objext=o
  11551. -
  11552. -if test x"$host" != x"$build"; then
  11553. - ac_tool_prefix=${host_alias}-
  11554. -else
  11555. - ac_tool_prefix=
  11556. -fi
  11557. -
  11558. -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  11559. -case $host_os in
  11560. -linux-gnu*) ;;
  11561. -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  11562. -esac
  11563. -
  11564. -case $host_os in
  11565. -aix3*)
  11566. - # AIX sometimes has problems with the GCC collect2 program. For some
  11567. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  11568. - # vanish in a puff of smoke.
  11569. - if test "X${COLLECT_NAMES+set}" != Xset; then
  11570. - COLLECT_NAMES=
  11571. - export COLLECT_NAMES
  11572. - fi
  11573. - ;;
  11574. -esac
  11575. -
  11576. -# Determine commands to create old-style static archives.
  11577. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  11578. -old_postinstall_cmds='chmod 644 $oldlib'
  11579. -old_postuninstall_cmds=
  11580. -
  11581. -if test -n "$RANLIB"; then
  11582. - case $host_os in
  11583. - openbsd*)
  11584. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  11585. - ;;
  11586. - *)
  11587. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  11588. - ;;
  11589. - esac
  11590. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  11591. -fi
  11592. -
  11593. -# Allow CC to be a program name with arguments.
  11594. -set dummy $CC
  11595. -compiler="$2"
  11596. -
  11597. -echo "$as_me:$LINENO: checking for objdir" >&5
  11598. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  11599. -rm -f .libs 2>/dev/null
  11600. -mkdir .libs 2>/dev/null
  11601. -if test -d .libs; then
  11602. - objdir=.libs
  11603. -else
  11604. - # MS-DOS does not allow filenames that begin with a dot.
  11605. - objdir=_libs
  11606. -fi
  11607. -rmdir .libs 2>/dev/null
  11608. -echo "$as_me:$LINENO: result: $objdir" >&5
  11609. -echo "${ECHO_T}$objdir" >&6
  11610. -
  11611. -
  11612. -
  11613. -# Check whether --with-pic or --without-pic was given.
  11614. -if test "${with_pic+set}" = set; then
  11615. - withval="$with_pic"
  11616. - pic_mode="$withval"
  11617. -else
  11618. - pic_mode=default
  11619. -fi;
  11620. -test -z "$pic_mode" && pic_mode=default
  11621. -
  11622. -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  11623. -# in isolation, and that seeing it set (from the cache) indicates that
  11624. -# the associated values are set (in the cache) correctly too.
  11625. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11626. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11627. -if test "${lt_cv_prog_cc_pic+set}" = set; then
  11628. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11629. -else
  11630. - lt_cv_prog_cc_pic=
  11631. - lt_cv_prog_cc_shlib=
  11632. - lt_cv_prog_cc_wl=
  11633. - lt_cv_prog_cc_static=
  11634. - lt_cv_prog_cc_no_builtin=
  11635. - lt_cv_prog_cc_can_build_shared=$can_build_shared
  11636. -
  11637. - if test "$GCC" = yes; then
  11638. - lt_cv_prog_cc_wl='-Wl,'
  11639. - lt_cv_prog_cc_static='-static'
  11640. -
  11641. - case $host_os in
  11642. - aix*)
  11643. - # Below there is a dirty hack to force normal static linking with -ldl
  11644. - # The problem is because libdl dynamically linked with both libc and
  11645. - # libC (AIX C++ library), which obviously doesn't included in libraries
  11646. - # list by gcc. This cause undefined symbols with -static flags.
  11647. - # This hack allows C programs to be linked with "-static -ldl", but
  11648. - # not sure about C++ programs.
  11649. - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  11650. - ;;
  11651. - amigaos*)
  11652. - # FIXME: we need at least 68020 code to build shared libraries, but
  11653. - # adding the `-m68020' flag to GCC prevents building anything better,
  11654. - # like `-m68040'.
  11655. - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  11656. - ;;
  11657. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11658. - # PIC is the default for these OSes.
  11659. - ;;
  11660. - darwin* | rhapsody*)
  11661. - # PIC is the default on this platform
  11662. - # Common symbols not allowed in MH_DYLIB files
  11663. - lt_cv_prog_cc_pic='-fno-common'
  11664. - ;;
  11665. - cygwin* | mingw* | pw32* | os2*)
  11666. - # This hack is so that the source file can tell whether it is being
  11667. - # built for inclusion in a dll (and should export symbols for example).
  11668. - lt_cv_prog_cc_pic='-DDLL_EXPORT'
  11669. - ;;
  11670. - sysv4*MP*)
  11671. - if test -d /usr/nec; then
  11672. - lt_cv_prog_cc_pic=-Kconform_pic
  11673. - fi
  11674. - ;;
  11675. - *)
  11676. - lt_cv_prog_cc_pic='-fPIC'
  11677. - ;;
  11678. - esac
  11679. - else
  11680. - # PORTME Check for PIC flags for the system compiler.
  11681. - case $host_os in
  11682. - aix3* | aix4* | aix5*)
  11683. - lt_cv_prog_cc_wl='-Wl,'
  11684. - # All AIX code is PIC.
  11685. - if test "$host_cpu" = ia64; then
  11686. - # AIX 5 now supports IA64 processor
  11687. - lt_cv_prog_cc_static='-Bstatic'
  11688. - else
  11689. - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  11690. - fi
  11691. - ;;
  11692. -
  11693. - hpux9* | hpux10* | hpux11*)
  11694. - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  11695. - lt_cv_prog_cc_wl='-Wl,'
  11696. - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  11697. - lt_cv_prog_cc_pic='+Z'
  11698. - ;;
  11699. -
  11700. - irix5* | irix6* | nonstopux*)
  11701. - lt_cv_prog_cc_wl='-Wl,'
  11702. - lt_cv_prog_cc_static='-non_shared'
  11703. - # PIC (with -KPIC) is the default.
  11704. - ;;
  11705. -
  11706. - cygwin* | mingw* | pw32* | os2*)
  11707. - # This hack is so that the source file can tell whether it is being
  11708. - # built for inclusion in a dll (and should export symbols for example).
  11709. - lt_cv_prog_cc_pic='-DDLL_EXPORT'
  11710. - ;;
  11711. -
  11712. - newsos6)
  11713. - lt_cv_prog_cc_pic='-KPIC'
  11714. - lt_cv_prog_cc_static='-Bstatic'
  11715. - ;;
  11716. -
  11717. - osf3* | osf4* | osf5*)
  11718. - # All OSF/1 code is PIC.
  11719. - lt_cv_prog_cc_wl='-Wl,'
  11720. - lt_cv_prog_cc_static='-non_shared'
  11721. - ;;
  11722. -
  11723. - sco3.2v5*)
  11724. - lt_cv_prog_cc_pic='-Kpic'
  11725. - lt_cv_prog_cc_static='-dn'
  11726. - lt_cv_prog_cc_shlib='-belf'
  11727. - ;;
  11728. -
  11729. - solaris*)
  11730. - lt_cv_prog_cc_pic='-KPIC'
  11731. - lt_cv_prog_cc_static='-Bstatic'
  11732. - lt_cv_prog_cc_wl='-Wl,'
  11733. - ;;
  11734. -
  11735. - sunos4*)
  11736. - lt_cv_prog_cc_pic='-PIC'
  11737. - lt_cv_prog_cc_static='-Bstatic'
  11738. - lt_cv_prog_cc_wl='-Qoption ld '
  11739. - ;;
  11740. -
  11741. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11742. - lt_cv_prog_cc_pic='-KPIC'
  11743. - lt_cv_prog_cc_static='-Bstatic'
  11744. - lt_cv_prog_cc_wl='-Wl,'
  11745. - ;;
  11746. -
  11747. - uts4*)
  11748. - lt_cv_prog_cc_pic='-pic'
  11749. - lt_cv_prog_cc_static='-Bstatic'
  11750. - ;;
  11751. -
  11752. - sysv4*MP*)
  11753. - if test -d /usr/nec ;then
  11754. - lt_cv_prog_cc_pic='-Kconform_pic'
  11755. - lt_cv_prog_cc_static='-Bstatic'
  11756. - fi
  11757. - ;;
  11758. -
  11759. - *)
  11760. - lt_cv_prog_cc_can_build_shared=no
  11761. - ;;
  11762. - esac
  11763. - fi
  11764. -
  11765. -fi
  11766. -
  11767. -if test -z "$lt_cv_prog_cc_pic"; then
  11768. - echo "$as_me:$LINENO: result: none" >&5
  11769. -echo "${ECHO_T}none" >&6
  11770. -else
  11771. - echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  11772. -echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  11773. -
  11774. - # Check to make sure the pic_flag actually works.
  11775. - echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  11776. -echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  11777. - if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  11778. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11779. -else
  11780. - save_CFLAGS="$CFLAGS"
  11781. - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  11782. - cat >conftest.$ac_ext <<_ACEOF
  11783. + CXXFLAGS=""
  11784. + cat >conftest.$ac_ext <<_ACEOF
  11785. /* confdefs.h. */
  11786. _ACEOF
  11787. cat confdefs.h >>conftest.$ac_ext
  11788. @@ -5283,87 +5744,30 @@
  11789. }
  11790. _ACEOF
  11791. rm -f conftest.$ac_objext
  11792. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11793. - (eval $ac_compile) 2>conftest.er1
  11794. +if { (ac_try="$ac_compile"
  11795. +case "(($ac_try" in
  11796. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11797. + *) ac_try_echo=$ac_try;;
  11798. +esac
  11799. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11800. + (eval "$ac_compile") 2>conftest.er1
  11801. ac_status=$?
  11802. grep -v '^ *+' conftest.er1 >conftest.err
  11803. rm -f conftest.er1
  11804. cat conftest.err >&5
  11805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11806. - (exit $ac_status); } &&
  11807. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11808. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11809. - (eval $ac_try) 2>&5
  11810. - ac_status=$?
  11811. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11812. - (exit $ac_status); }; } &&
  11813. - { ac_try='test -s conftest.$ac_objext'
  11814. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11815. - (eval $ac_try) 2>&5
  11816. - ac_status=$?
  11817. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11818. - (exit $ac_status); }; }; then
  11819. - case $host_os in
  11820. - hpux9* | hpux10* | hpux11*)
  11821. - # On HP-UX, both CC and GCC only warn that PIC is supported... then
  11822. - # they create non-PIC objects. So, if there were any warnings, we
  11823. - # assume that PIC is not supported.
  11824. - if test -s conftest.err; then
  11825. - lt_cv_prog_cc_pic_works=no
  11826. - else
  11827. - lt_cv_prog_cc_pic_works=yes
  11828. - fi
  11829. - ;;
  11830. - *)
  11831. - lt_cv_prog_cc_pic_works=yes
  11832. - ;;
  11833. - esac
  11834. -
  11835. + (exit $ac_status); } && {
  11836. + test -z "$ac_cxx_werror_flag" ||
  11837. + test ! -s conftest.err
  11838. + } && test -s conftest.$ac_objext; then
  11839. + :
  11840. else
  11841. echo "$as_me: failed program was:" >&5
  11842. sed 's/^/| /' conftest.$ac_ext >&5
  11843. - lt_cv_prog_cc_pic_works=no
  11844. -
  11845. -fi
  11846. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11847. - CFLAGS="$save_CFLAGS"
  11848. -
  11849. -fi
  11850. -
  11851. -
  11852. - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  11853. - lt_cv_prog_cc_pic=
  11854. - lt_cv_prog_cc_can_build_shared=no
  11855. - else
  11856. - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  11857. - fi
  11858. -
  11859. - echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  11860. -echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  11861. -fi
  11862. -
  11863. -# Check for any special shared library compilation flags.
  11864. -if test -n "$lt_cv_prog_cc_shlib"; then
  11865. - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  11866. -echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  11867. - if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  11868. - else
  11869. - { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  11870. -echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  11871. - lt_cv_prog_cc_can_build_shared=no
  11872. - fi
  11873. -fi
  11874. -
  11875. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  11876. -echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  11877. -if test "${lt_cv_prog_cc_static_works+set}" = set; then
  11878. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11879. -else
  11880. - lt_cv_prog_cc_static_works=no
  11881. - save_LDFLAGS="$LDFLAGS"
  11882. - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  11883. - cat >conftest.$ac_ext <<_ACEOF
  11884. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11885. + CXXFLAGS="-g"
  11886. + cat >conftest.$ac_ext <<_ACEOF
  11887. /* confdefs.h. */
  11888. _ACEOF
  11889. cat confdefs.h >>conftest.$ac_ext
  11890. @@ -5378,1108 +5782,12251 @@
  11891. return 0;
  11892. }
  11893. _ACEOF
  11894. -rm -f conftest.$ac_objext conftest$ac_exeext
  11895. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11896. - (eval $ac_link) 2>conftest.er1
  11897. +rm -f conftest.$ac_objext
  11898. +if { (ac_try="$ac_compile"
  11899. +case "(($ac_try" in
  11900. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11901. + *) ac_try_echo=$ac_try;;
  11902. +esac
  11903. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11904. + (eval "$ac_compile") 2>conftest.er1
  11905. ac_status=$?
  11906. grep -v '^ *+' conftest.er1 >conftest.err
  11907. rm -f conftest.er1
  11908. cat conftest.err >&5
  11909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11910. - (exit $ac_status); } &&
  11911. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11912. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11913. - (eval $ac_try) 2>&5
  11914. - ac_status=$?
  11915. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11916. - (exit $ac_status); }; } &&
  11917. - { ac_try='test -s conftest$ac_exeext'
  11918. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11919. - (eval $ac_try) 2>&5
  11920. - ac_status=$?
  11921. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11922. - (exit $ac_status); }; }; then
  11923. - lt_cv_prog_cc_static_works=yes
  11924. + (exit $ac_status); } && {
  11925. + test -z "$ac_cxx_werror_flag" ||
  11926. + test ! -s conftest.err
  11927. + } && test -s conftest.$ac_objext; then
  11928. + ac_cv_prog_cxx_g=yes
  11929. else
  11930. echo "$as_me: failed program was:" >&5
  11931. sed 's/^/| /' conftest.$ac_ext >&5
  11932. -fi
  11933. -rm -f conftest.err conftest.$ac_objext \
  11934. - conftest$ac_exeext conftest.$ac_ext
  11935. - LDFLAGS="$save_LDFLAGS"
  11936. fi
  11937. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11938. +fi
  11939. -# Belt *and* braces to stop my trousers falling down:
  11940. -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  11941. -echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  11942. -echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  11943. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11944. +fi
  11945. -pic_flag="$lt_cv_prog_cc_pic"
  11946. -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  11947. -wl="$lt_cv_prog_cc_wl"
  11948. -link_static_flag="$lt_cv_prog_cc_static"
  11949. -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  11950. -can_build_shared="$lt_cv_prog_cc_can_build_shared"
  11951. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11952. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11953. +fi
  11954. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  11955. +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  11956. +if test "$ac_test_CXXFLAGS" = set; then
  11957. + CXXFLAGS=$ac_save_CXXFLAGS
  11958. +elif test $ac_cv_prog_cxx_g = yes; then
  11959. + if test "$GXX" = yes; then
  11960. + CXXFLAGS="-g -O2"
  11961. + else
  11962. + CXXFLAGS="-g"
  11963. + fi
  11964. +else
  11965. + if test "$GXX" = yes; then
  11966. + CXXFLAGS="-O2"
  11967. + else
  11968. + CXXFLAGS=
  11969. + fi
  11970. +fi
  11971. +ac_ext=cpp
  11972. +ac_cpp='$CXXCPP $CPPFLAGS'
  11973. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11974. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11975. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11976. +depcc="$CXX" am_compiler_list=
  11977. -# Check to see if options -o and -c are simultaneously supported by compiler
  11978. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11979. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11980. -if test "${lt_cv_compiler_c_o+set}" = set; then
  11981. +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  11982. +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  11983. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  11984. echo $ECHO_N "(cached) $ECHO_C" >&6
  11985. else
  11986. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11987. + # We make a subdir and do the tests there. Otherwise we can end up
  11988. + # making bogus files that we don't know about and never remove. For
  11989. + # instance it was reported that on HP-UX the gcc test will end up
  11990. + # making a dummy file named `D' -- because `-MD' means `put the output
  11991. + # in D'.
  11992. + mkdir conftest.dir
  11993. + # Copy depcomp to subdir because otherwise we won't find it if we're
  11994. + # using a relative directory.
  11995. + cp "$am_depcomp" conftest.dir
  11996. + cd conftest.dir
  11997. + # We will build objects and dependencies in a subdirectory because
  11998. + # it helps to detect inapplicable dependency modes. For instance
  11999. + # both Tru64's cc and ICC support -MD to output dependencies as a
  12000. + # side effect of compilation, but ICC will put the dependencies in
  12001. + # the current directory while Tru64 will put them in the object
  12002. + # directory.
  12003. + mkdir sub
  12004. +
  12005. + am_cv_CXX_dependencies_compiler_type=none
  12006. + if test "$am_compiler_list" = ""; then
  12007. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12008. + fi
  12009. + for depmode in $am_compiler_list; do
  12010. + # Setup a source with many dependencies, because some compilers
  12011. + # like to wrap large dependency lists on column 80 (with \), and
  12012. + # we should not choose a depcomp mode which is confused by this.
  12013. + #
  12014. + # We need to recreate these files for each test, as the compiler may
  12015. + # overwrite some of them when testing with obscure command lines.
  12016. + # This happens at least with the AIX C compiler.
  12017. + : > sub/conftest.c
  12018. + for i in 1 2 3 4 5 6; do
  12019. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12020. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12021. + # Solaris 8's {/usr,}/bin/sh.
  12022. + touch sub/conftst$i.h
  12023. + done
  12024. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12025. -$rm -r conftest 2>/dev/null
  12026. -mkdir conftest
  12027. -cd conftest
  12028. -echo "int some_variable = 0;" > conftest.$ac_ext
  12029. -mkdir out
  12030. -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  12031. -# that will create temporary files in the current directory regardless of
  12032. -# the output directory. Thus, making CWD read-only will cause this test
  12033. -# to fail, enabling locking or at least warning the user not to do parallel
  12034. -# builds.
  12035. -chmod -w .
  12036. -save_CFLAGS="$CFLAGS"
  12037. -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  12038. -compiler_c_o=no
  12039. -if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  12040. - # The compiler can only warn and ignore the option if not recognized
  12041. - # So say no if there are warnings
  12042. - if test -s out/conftest.err; then
  12043. - lt_cv_compiler_c_o=no
  12044. - else
  12045. - lt_cv_compiler_c_o=yes
  12046. - fi
  12047. + case $depmode in
  12048. + nosideeffect)
  12049. + # after this tag, mechanisms are not by side-effect, so they'll
  12050. + # only be used when explicitly requested
  12051. + if test "x$enable_dependency_tracking" = xyes; then
  12052. + continue
  12053. + else
  12054. + break
  12055. + fi
  12056. + ;;
  12057. + none) break ;;
  12058. + esac
  12059. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12060. + # mode. It turns out that the SunPro C++ compiler does not properly
  12061. + # handle `-M -o', and we need to detect this.
  12062. + if depmode=$depmode \
  12063. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  12064. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12065. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  12066. + >/dev/null 2>conftest.err &&
  12067. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12068. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  12069. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12070. + # icc doesn't choke on unknown options, it will just issue warnings
  12071. + # or remarks (even with -Werror). So we grep stderr for any message
  12072. + # that says an option was ignored or not supported.
  12073. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  12074. + # icc: Command line warning: ignoring option '-M'; no argument required
  12075. + # The diagnosis changed in icc 8.0:
  12076. + # icc: Command line remark: option '-MP' not supported
  12077. + if (grep 'ignoring option' conftest.err ||
  12078. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12079. + am_cv_CXX_dependencies_compiler_type=$depmode
  12080. + break
  12081. + fi
  12082. + fi
  12083. + done
  12084. +
  12085. + cd ..
  12086. + rm -rf conftest.dir
  12087. else
  12088. - # Append any errors to the config.log.
  12089. - cat out/conftest.err 1>&5
  12090. - lt_cv_compiler_c_o=no
  12091. + am_cv_CXX_dependencies_compiler_type=none
  12092. fi
  12093. -CFLAGS="$save_CFLAGS"
  12094. -chmod u+w .
  12095. -$rm conftest* out/*
  12096. -rmdir out
  12097. -cd ..
  12098. -rmdir conftest
  12099. -$rm -r conftest 2>/dev/null
  12100. fi
  12101. +{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12102. +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  12103. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12104. -compiler_c_o=$lt_cv_compiler_c_o
  12105. -echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  12106. -echo "${ECHO_T}$compiler_c_o" >&6
  12107. -if test x"$compiler_c_o" = x"yes"; then
  12108. - # Check to see if we can write to a .lo
  12109. - echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  12110. -echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  12111. - if test "${lt_cv_compiler_o_lo+set}" = set; then
  12112. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12113. +
  12114. +if
  12115. + test "x$enable_dependency_tracking" != xno \
  12116. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12117. + am__fastdepCXX_TRUE=
  12118. + am__fastdepCXX_FALSE='#'
  12119. else
  12120. + am__fastdepCXX_TRUE='#'
  12121. + am__fastdepCXX_FALSE=
  12122. +fi
  12123. - lt_cv_compiler_o_lo=no
  12124. - save_CFLAGS="$CFLAGS"
  12125. - CFLAGS="$CFLAGS -c -o conftest.lo"
  12126. - save_objext="$ac_objext"
  12127. - ac_objext=lo
  12128. - cat >conftest.$ac_ext <<_ACEOF
  12129. -/* confdefs.h. */
  12130. -_ACEOF
  12131. -cat confdefs.h >>conftest.$ac_ext
  12132. -cat >>conftest.$ac_ext <<_ACEOF
  12133. -/* end confdefs.h. */
  12134. -int
  12135. -main ()
  12136. -{
  12137. -int some_variable = 0;
  12138. - ;
  12139. - return 0;
  12140. -}
  12141. +
  12142. +
  12143. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  12144. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  12145. + (test "X$CXX" != "Xg++"))) ; then
  12146. + ac_ext=cpp
  12147. +ac_cpp='$CXXCPP $CPPFLAGS'
  12148. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12149. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12150. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12151. +{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  12152. +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  12153. +if test -z "$CXXCPP"; then
  12154. + if test "${ac_cv_prog_CXXCPP+set}" = set; then
  12155. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12156. +else
  12157. + # Double quotes because CXXCPP needs to be expanded
  12158. + for CXXCPP in "$CXX -E" "/lib/cpp"
  12159. + do
  12160. + ac_preproc_ok=false
  12161. +for ac_cxx_preproc_warn_flag in '' yes
  12162. +do
  12163. + # Use a header file that comes with gcc, so configuring glibc
  12164. + # with a fresh cross-compiler works.
  12165. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12166. + # <limits.h> exists even on freestanding compilers.
  12167. + # On the NeXT, cc -E runs the code through the compiler's parser,
  12168. + # not just through cpp. "Syntax error" is here to catch this case.
  12169. + cat >conftest.$ac_ext <<_ACEOF
  12170. +/* confdefs.h. */
  12171. _ACEOF
  12172. -rm -f conftest.$ac_objext
  12173. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12174. - (eval $ac_compile) 2>conftest.er1
  12175. +cat confdefs.h >>conftest.$ac_ext
  12176. +cat >>conftest.$ac_ext <<_ACEOF
  12177. +/* end confdefs.h. */
  12178. +#ifdef __STDC__
  12179. +# include <limits.h>
  12180. +#else
  12181. +# include <assert.h>
  12182. +#endif
  12183. + Syntax error
  12184. +_ACEOF
  12185. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  12186. +case "(($ac_try" in
  12187. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12188. + *) ac_try_echo=$ac_try;;
  12189. +esac
  12190. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12191. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12192. ac_status=$?
  12193. grep -v '^ *+' conftest.er1 >conftest.err
  12194. rm -f conftest.er1
  12195. cat conftest.err >&5
  12196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12197. - (exit $ac_status); } &&
  12198. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12199. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12200. - (eval $ac_try) 2>&5
  12201. - ac_status=$?
  12202. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12203. - (exit $ac_status); }; } &&
  12204. - { ac_try='test -s conftest.$ac_objext'
  12205. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12206. - (eval $ac_try) 2>&5
  12207. + (exit $ac_status); } >/dev/null && {
  12208. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12209. + test ! -s conftest.err
  12210. + }; then
  12211. + :
  12212. +else
  12213. + echo "$as_me: failed program was:" >&5
  12214. +sed 's/^/| /' conftest.$ac_ext >&5
  12215. +
  12216. + # Broken: fails on valid input.
  12217. +continue
  12218. +fi
  12219. +
  12220. +rm -f conftest.err conftest.$ac_ext
  12221. +
  12222. + # OK, works on sane cases. Now check whether nonexistent headers
  12223. + # can be detected and how.
  12224. + cat >conftest.$ac_ext <<_ACEOF
  12225. +/* confdefs.h. */
  12226. +_ACEOF
  12227. +cat confdefs.h >>conftest.$ac_ext
  12228. +cat >>conftest.$ac_ext <<_ACEOF
  12229. +/* end confdefs.h. */
  12230. +#include <ac_nonexistent.h>
  12231. +_ACEOF
  12232. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  12233. +case "(($ac_try" in
  12234. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12235. + *) ac_try_echo=$ac_try;;
  12236. +esac
  12237. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12238. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12239. ac_status=$?
  12240. + grep -v '^ *+' conftest.er1 >conftest.err
  12241. + rm -f conftest.er1
  12242. + cat conftest.err >&5
  12243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12244. - (exit $ac_status); }; }; then
  12245. - # The compiler can only warn and ignore the option if not recognized
  12246. - # So say no if there are warnings
  12247. - if test -s conftest.err; then
  12248. - lt_cv_compiler_o_lo=no
  12249. - else
  12250. - lt_cv_compiler_o_lo=yes
  12251. - fi
  12252. -
  12253. + (exit $ac_status); } >/dev/null && {
  12254. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12255. + test ! -s conftest.err
  12256. + }; then
  12257. + # Broken: success on invalid input.
  12258. +continue
  12259. else
  12260. echo "$as_me: failed program was:" >&5
  12261. sed 's/^/| /' conftest.$ac_ext >&5
  12262. + # Passes both tests.
  12263. +ac_preproc_ok=:
  12264. +break
  12265. fi
  12266. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12267. - ac_objext="$save_objext"
  12268. - CFLAGS="$save_CFLAGS"
  12269. -fi
  12270. +rm -f conftest.err conftest.$ac_ext
  12271. - compiler_o_lo=$lt_cv_compiler_o_lo
  12272. - echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  12273. -echo "${ECHO_T}$compiler_o_lo" >&6
  12274. -else
  12275. - compiler_o_lo=no
  12276. +done
  12277. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12278. +rm -f conftest.err conftest.$ac_ext
  12279. +if $ac_preproc_ok; then
  12280. + break
  12281. fi
  12282. -# Check to see if we can do hard links to lock some files if needed
  12283. -hard_links="nottested"
  12284. -if test "$compiler_c_o" = no && test "$need_locks" != no; then
  12285. - # do not overwrite the value of need_locks provided by the user
  12286. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12287. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12288. - hard_links=yes
  12289. - $rm conftest*
  12290. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12291. - touch conftest.a
  12292. - ln conftest.a conftest.b 2>&5 || hard_links=no
  12293. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12294. - echo "$as_me:$LINENO: result: $hard_links" >&5
  12295. -echo "${ECHO_T}$hard_links" >&6
  12296. - if test "$hard_links" = no; then
  12297. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12298. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12299. - need_locks=warn
  12300. - fi
  12301. + done
  12302. + ac_cv_prog_CXXCPP=$CXXCPP
  12303. +
  12304. +fi
  12305. + CXXCPP=$ac_cv_prog_CXXCPP
  12306. else
  12307. - need_locks=no
  12308. + ac_cv_prog_CXXCPP=$CXXCPP
  12309. fi
  12310. -
  12311. -if test "$GCC" = yes; then
  12312. - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  12313. - echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  12314. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  12315. - echo "int some_variable = 0;" > conftest.$ac_ext
  12316. - save_CFLAGS="$CFLAGS"
  12317. - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  12318. - compiler_rtti_exceptions=no
  12319. +{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  12320. +echo "${ECHO_T}$CXXCPP" >&6; }
  12321. +ac_preproc_ok=false
  12322. +for ac_cxx_preproc_warn_flag in '' yes
  12323. +do
  12324. + # Use a header file that comes with gcc, so configuring glibc
  12325. + # with a fresh cross-compiler works.
  12326. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12327. + # <limits.h> exists even on freestanding compilers.
  12328. + # On the NeXT, cc -E runs the code through the compiler's parser,
  12329. + # not just through cpp. "Syntax error" is here to catch this case.
  12330. cat >conftest.$ac_ext <<_ACEOF
  12331. /* confdefs.h. */
  12332. _ACEOF
  12333. cat confdefs.h >>conftest.$ac_ext
  12334. cat >>conftest.$ac_ext <<_ACEOF
  12335. /* end confdefs.h. */
  12336. -
  12337. -int
  12338. -main ()
  12339. -{
  12340. -int some_variable = 0;
  12341. - ;
  12342. - return 0;
  12343. -}
  12344. +#ifdef __STDC__
  12345. +# include <limits.h>
  12346. +#else
  12347. +# include <assert.h>
  12348. +#endif
  12349. + Syntax error
  12350. _ACEOF
  12351. -rm -f conftest.$ac_objext
  12352. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12353. - (eval $ac_compile) 2>conftest.er1
  12354. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  12355. +case "(($ac_try" in
  12356. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12357. + *) ac_try_echo=$ac_try;;
  12358. +esac
  12359. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12360. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12361. ac_status=$?
  12362. grep -v '^ *+' conftest.er1 >conftest.err
  12363. rm -f conftest.er1
  12364. cat conftest.err >&5
  12365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12366. - (exit $ac_status); } &&
  12367. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12368. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12369. - (eval $ac_try) 2>&5
  12370. - ac_status=$?
  12371. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12372. - (exit $ac_status); }; } &&
  12373. - { ac_try='test -s conftest.$ac_objext'
  12374. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12375. - (eval $ac_try) 2>&5
  12376. + (exit $ac_status); } >/dev/null && {
  12377. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12378. + test ! -s conftest.err
  12379. + }; then
  12380. + :
  12381. +else
  12382. + echo "$as_me: failed program was:" >&5
  12383. +sed 's/^/| /' conftest.$ac_ext >&5
  12384. +
  12385. + # Broken: fails on valid input.
  12386. +continue
  12387. +fi
  12388. +
  12389. +rm -f conftest.err conftest.$ac_ext
  12390. +
  12391. + # OK, works on sane cases. Now check whether nonexistent headers
  12392. + # can be detected and how.
  12393. + cat >conftest.$ac_ext <<_ACEOF
  12394. +/* confdefs.h. */
  12395. +_ACEOF
  12396. +cat confdefs.h >>conftest.$ac_ext
  12397. +cat >>conftest.$ac_ext <<_ACEOF
  12398. +/* end confdefs.h. */
  12399. +#include <ac_nonexistent.h>
  12400. +_ACEOF
  12401. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  12402. +case "(($ac_try" in
  12403. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12404. + *) ac_try_echo=$ac_try;;
  12405. +esac
  12406. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12407. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12408. ac_status=$?
  12409. + grep -v '^ *+' conftest.er1 >conftest.err
  12410. + rm -f conftest.er1
  12411. + cat conftest.err >&5
  12412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12413. - (exit $ac_status); }; }; then
  12414. - # The compiler can only warn and ignore the option if not recognized
  12415. - # So say no if there are warnings
  12416. - if test -s conftest.err; then
  12417. - compiler_rtti_exceptions=no
  12418. - else
  12419. - compiler_rtti_exceptions=yes
  12420. - fi
  12421. -
  12422. + (exit $ac_status); } >/dev/null && {
  12423. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12424. + test ! -s conftest.err
  12425. + }; then
  12426. + # Broken: success on invalid input.
  12427. +continue
  12428. else
  12429. echo "$as_me: failed program was:" >&5
  12430. sed 's/^/| /' conftest.$ac_ext >&5
  12431. + # Passes both tests.
  12432. +ac_preproc_ok=:
  12433. +break
  12434. fi
  12435. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12436. - CFLAGS="$save_CFLAGS"
  12437. - echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  12438. -echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  12439. - if test "$compiler_rtti_exceptions" = "yes"; then
  12440. - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  12441. - else
  12442. - no_builtin_flag=' -fno-builtin'
  12443. - fi
  12444. +rm -f conftest.err conftest.$ac_ext
  12445. +
  12446. +done
  12447. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12448. +rm -f conftest.err conftest.$ac_ext
  12449. +if $ac_preproc_ok; then
  12450. + :
  12451. +else
  12452. + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  12453. +See \`config.log' for more details." >&5
  12454. +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  12455. +See \`config.log' for more details." >&2;}
  12456. + { (exit 1); exit 1; }; }
  12457. fi
  12458. -# See if the linker supports building shared libraries.
  12459. -echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  12460. -echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  12461. +ac_ext=cpp
  12462. +ac_cpp='$CXXCPP $CPPFLAGS'
  12463. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12464. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12465. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12466. -allow_undefined_flag=
  12467. -no_undefined_flag=
  12468. -need_lib_prefix=unknown
  12469. -need_version=unknown
  12470. -# when you set need_version to no, make sure it does not cause -set_version
  12471. -# flags to be left without arguments
  12472. -archive_cmds=
  12473. -archive_expsym_cmds=
  12474. -old_archive_from_new_cmds=
  12475. -old_archive_from_expsyms_cmds=
  12476. -export_dynamic_flag_spec=
  12477. -whole_archive_flag_spec=
  12478. -thread_safe_flag_spec=
  12479. -hardcode_into_libs=no
  12480. -hardcode_libdir_flag_spec=
  12481. -hardcode_libdir_separator=
  12482. -hardcode_direct=no
  12483. -hardcode_minus_L=no
  12484. -hardcode_shlibpath_var=unsupported
  12485. -runpath_var=
  12486. -link_all_deplibs=unknown
  12487. -always_export_symbols=no
  12488. -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12489. -# include_expsyms should be a list of space-separated symbols to be *always*
  12490. -# included in the symbol list
  12491. -include_expsyms=
  12492. -# exclude_expsyms can be an egrep regular expression of symbols to exclude
  12493. -# it will be wrapped by ` (' and `)$', so one must not match beginning or
  12494. -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12495. -# as well as any symbol that contains `d'.
  12496. -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  12497. -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12498. -# platforms (ab)use it in PIC code, but their linkers get confused if
  12499. -# the symbol is explicitly referenced. Since portable code cannot
  12500. -# rely on this symbol name, it's probably fine to never include it in
  12501. -# preloaded symbol tables.
  12502. -extract_expsyms_cmds=
  12503. +fi
  12504. -case $host_os in
  12505. -cygwin* | mingw* | pw32*)
  12506. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12507. - # When not using gcc, we currently assume that we are using
  12508. - # Microsoft Visual C++.
  12509. - if test "$GCC" != yes; then
  12510. - with_gnu_ld=no
  12511. - fi
  12512. - ;;
  12513. -openbsd*)
  12514. - with_gnu_ld=no
  12515. - ;;
  12516. -esac
  12517. -ld_shlibs=yes
  12518. -if test "$with_gnu_ld" = yes; then
  12519. - # If archive_cmds runs LD, not CC, wlarc should be empty
  12520. - wlarc='${wl}'
  12521. +ac_ext=f
  12522. +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12523. +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12524. +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12525. +if test -n "$ac_tool_prefix"; then
  12526. + 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
  12527. + do
  12528. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12529. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12530. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12531. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12532. +if test "${ac_cv_prog_F77+set}" = set; then
  12533. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12534. +else
  12535. + if test -n "$F77"; then
  12536. + ac_cv_prog_F77="$F77" # Let the user override the test.
  12537. +else
  12538. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12539. +for as_dir in $PATH
  12540. +do
  12541. + IFS=$as_save_IFS
  12542. + test -z "$as_dir" && as_dir=.
  12543. + for ac_exec_ext in '' $ac_executable_extensions; do
  12544. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12545. + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  12546. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12547. + break 2
  12548. + fi
  12549. +done
  12550. +done
  12551. +IFS=$as_save_IFS
  12552. - # See if GNU ld supports shared libraries.
  12553. - case $host_os in
  12554. - aix3* | aix4* | aix5*)
  12555. - # On AIX, the GNU linker is very broken
  12556. - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  12557. - ld_shlibs=no
  12558. - cat <<EOF 1>&2
  12559. +fi
  12560. +fi
  12561. +F77=$ac_cv_prog_F77
  12562. +if test -n "$F77"; then
  12563. + { echo "$as_me:$LINENO: result: $F77" >&5
  12564. +echo "${ECHO_T}$F77" >&6; }
  12565. +else
  12566. + { echo "$as_me:$LINENO: result: no" >&5
  12567. +echo "${ECHO_T}no" >&6; }
  12568. +fi
  12569. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12570. -*** to be unable to reliably create shared libraries on AIX.
  12571. -*** Therefore, libtool is disabling shared libraries support. If you
  12572. -*** really care for shared libraries, you may want to modify your PATH
  12573. -*** so that a non-GNU linker is found, and then restart.
  12574. -EOF
  12575. - ;;
  12576. + test -n "$F77" && break
  12577. + done
  12578. +fi
  12579. +if test -z "$F77"; then
  12580. + ac_ct_F77=$F77
  12581. + 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
  12582. +do
  12583. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  12584. +set dummy $ac_prog; ac_word=$2
  12585. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12586. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12587. +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  12588. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12589. +else
  12590. + if test -n "$ac_ct_F77"; then
  12591. + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  12592. +else
  12593. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12594. +for as_dir in $PATH
  12595. +do
  12596. + IFS=$as_save_IFS
  12597. + test -z "$as_dir" && as_dir=.
  12598. + for ac_exec_ext in '' $ac_executable_extensions; do
  12599. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12600. + ac_cv_prog_ac_ct_F77="$ac_prog"
  12601. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12602. + break 2
  12603. + fi
  12604. +done
  12605. +done
  12606. +IFS=$as_save_IFS
  12607. - amigaos*)
  12608. - 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)'
  12609. - hardcode_libdir_flag_spec='-L$libdir'
  12610. - hardcode_minus_L=yes
  12611. -
  12612. - # Samuel A. Falvo II <[email protected]> reports
  12613. - # that the semantics of dynamic libraries on AmigaOS, at least up
  12614. - # to version 4, is to share data among multiple programs linked
  12615. - # with the same dynamic library. Since this doesn't match the
  12616. - # behavior of shared libraries on other platforms, we can use
  12617. - # them.
  12618. - ld_shlibs=no
  12619. - ;;
  12620. +fi
  12621. +fi
  12622. +ac_ct_F77=$ac_cv_prog_ac_ct_F77
  12623. +if test -n "$ac_ct_F77"; then
  12624. + { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  12625. +echo "${ECHO_T}$ac_ct_F77" >&6; }
  12626. +else
  12627. + { echo "$as_me:$LINENO: result: no" >&5
  12628. +echo "${ECHO_T}no" >&6; }
  12629. +fi
  12630. - beos*)
  12631. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  12632. - allow_undefined_flag=unsupported
  12633. - # Joseph Beckenbach <[email protected]> says some releases of gcc
  12634. - # support --undefined. This deserves some investigation. FIXME
  12635. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12636. - else
  12637. - ld_shlibs=no
  12638. - fi
  12639. - ;;
  12640. - cygwin* | mingw* | pw32*)
  12641. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  12642. - # no search path for DLLs.
  12643. - hardcode_libdir_flag_spec='-L$libdir'
  12644. - allow_undefined_flag=unsupported
  12645. - always_export_symbols=yes
  12646. -
  12647. - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  12648. - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  12649. - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  12650. - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  12651. - else $CC -o impgen impgen.c ; fi)~
  12652. - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  12653. -
  12654. - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  12655. -
  12656. - # cygwin and mingw dlls have different entry points and sets of symbols
  12657. - # to exclude.
  12658. - # FIXME: what about values for MSVC?
  12659. - dll_entry=__cygwin_dll_entry@12
  12660. - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  12661. - case $host_os in
  12662. - mingw*)
  12663. - # mingw values
  12664. - dll_entry=_DllMainCRTStartup@12
  12665. - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  12666. - ;;
  12667. - esac
  12668. + test -n "$ac_ct_F77" && break
  12669. +done
  12670. - # mingw and cygwin differ, and it's simplest to just exclude the union
  12671. - # of the two symbol sets.
  12672. - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  12673. -
  12674. - # recent cygwin and mingw systems supply a stub DllMain which the user
  12675. - # can override, but on older systems we have to supply one (in ltdll.c)
  12676. - if test "x$lt_cv_need_dllmain" = "xyes"; then
  12677. - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  12678. - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  12679. - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  12680. - else
  12681. - ltdll_obj=
  12682. - ltdll_cmds=
  12683. - fi
  12684. + if test "x$ac_ct_F77" = x; then
  12685. + F77=""
  12686. + else
  12687. + case $cross_compiling:$ac_tool_warned in
  12688. +yes:)
  12689. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12690. +whose name does not start with the host triplet. If you think this
  12691. +configuration is useful to you, please write to [email protected]." >&5
  12692. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12693. +whose name does not start with the host triplet. If you think this
  12694. +configuration is useful to you, please write to [email protected]." >&2;}
  12695. +ac_tool_warned=yes ;;
  12696. +esac
  12697. + F77=$ac_ct_F77
  12698. + fi
  12699. +fi
  12700. - # Extract the symbol export list from an `--export-all' def file,
  12701. - # then regenerate the def file from the symbol export list, so that
  12702. - # the compiled dll only exports the symbol export list.
  12703. - # Be careful not to strip the DATA tag left be newer dlltools.
  12704. - export_symbols_cmds="$ltdll_cmds"'
  12705. - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  12706. - sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  12707. -
  12708. - # If the export-symbols file already is a .def file (1st line
  12709. - # is EXPORTS), use it as is.
  12710. - # If DATA tags from a recent dlltool are present, honour them!
  12711. - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  12712. - cp $export_symbols $output_objdir/$soname-def;
  12713. - else
  12714. - echo EXPORTS > $output_objdir/$soname-def;
  12715. - _lt_hint=1;
  12716. - cat $export_symbols | while read symbol; do
  12717. - set dummy \$symbol;
  12718. - case \$# in
  12719. - 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  12720. - 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  12721. - *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  12722. - esac;
  12723. - _lt_hint=`expr 1 + \$_lt_hint`;
  12724. - done;
  12725. - fi~
  12726. - '"$ltdll_cmds"'
  12727. - $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  12728. - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  12729. - $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  12730. - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  12731. - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  12732. - ;;
  12733. - netbsd*)
  12734. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12735. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12736. - wlarc=
  12737. - else
  12738. - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12739. - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12740. - fi
  12741. - ;;
  12742. -
  12743. - solaris* | sysv5*)
  12744. - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  12745. - ld_shlibs=no
  12746. - cat <<EOF 1>&2
  12747. +# Provide some information about the compiler.
  12748. +echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  12749. +ac_compiler=`set X $ac_compile; echo $2`
  12750. +{ (ac_try="$ac_compiler --version >&5"
  12751. +case "(($ac_try" in
  12752. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12753. + *) ac_try_echo=$ac_try;;
  12754. +esac
  12755. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12756. + (eval "$ac_compiler --version >&5") 2>&5
  12757. + ac_status=$?
  12758. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12759. + (exit $ac_status); }
  12760. +{ (ac_try="$ac_compiler -v >&5"
  12761. +case "(($ac_try" in
  12762. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12763. + *) ac_try_echo=$ac_try;;
  12764. +esac
  12765. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12766. + (eval "$ac_compiler -v >&5") 2>&5
  12767. + ac_status=$?
  12768. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12769. + (exit $ac_status); }
  12770. +{ (ac_try="$ac_compiler -V >&5"
  12771. +case "(($ac_try" in
  12772. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12773. + *) ac_try_echo=$ac_try;;
  12774. +esac
  12775. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12776. + (eval "$ac_compiler -V >&5") 2>&5
  12777. + ac_status=$?
  12778. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12779. + (exit $ac_status); }
  12780. +rm -f a.out
  12781. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12782. -*** create shared libraries on Solaris systems. Therefore, libtool
  12783. -*** is disabling shared libraries support. We urge you to upgrade GNU
  12784. -*** binutils to release 2.9.1 or newer. Another option is to modify
  12785. -*** your PATH or compiler configuration so that the native linker is
  12786. -*** used, and then restart.
  12787. +# If we don't use `.F' as extension, the preprocessor is not run on the
  12788. +# input file. (Note that this only needs to work for GNU compilers.)
  12789. +ac_save_ext=$ac_ext
  12790. +ac_ext=F
  12791. +{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  12792. +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  12793. +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  12794. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12795. +else
  12796. + cat >conftest.$ac_ext <<_ACEOF
  12797. + program main
  12798. +#ifndef __GNUC__
  12799. + choke me
  12800. +#endif
  12801. -EOF
  12802. - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  12803. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12804. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12805. - else
  12806. - ld_shlibs=no
  12807. - fi
  12808. - ;;
  12809. + end
  12810. +_ACEOF
  12811. +rm -f conftest.$ac_objext
  12812. +if { (ac_try="$ac_compile"
  12813. +case "(($ac_try" in
  12814. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12815. + *) ac_try_echo=$ac_try;;
  12816. +esac
  12817. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12818. + (eval "$ac_compile") 2>conftest.er1
  12819. + ac_status=$?
  12820. + grep -v '^ *+' conftest.er1 >conftest.err
  12821. + rm -f conftest.er1
  12822. + cat conftest.err >&5
  12823. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12824. + (exit $ac_status); } && {
  12825. + test -z "$ac_f77_werror_flag" ||
  12826. + test ! -s conftest.err
  12827. + } && test -s conftest.$ac_objext; then
  12828. + ac_compiler_gnu=yes
  12829. +else
  12830. + echo "$as_me: failed program was:" >&5
  12831. +sed 's/^/| /' conftest.$ac_ext >&5
  12832. - sunos4*)
  12833. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12834. - wlarc=
  12835. - hardcode_direct=yes
  12836. - hardcode_shlibpath_var=no
  12837. - ;;
  12838. + ac_compiler_gnu=no
  12839. +fi
  12840. - *)
  12841. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  12842. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12843. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12844. - else
  12845. - ld_shlibs=no
  12846. - fi
  12847. - ;;
  12848. - esac
  12849. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12850. +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  12851. - if test "$ld_shlibs" = yes; then
  12852. - runpath_var=LD_RUN_PATH
  12853. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  12854. - export_dynamic_flag_spec='${wl}--export-dynamic'
  12855. - case $host_os in
  12856. - cygwin* | mingw* | pw32*)
  12857. - # dlltool doesn't understand --whole-archive et. al.
  12858. - whole_archive_flag_spec=
  12859. - ;;
  12860. - *)
  12861. - # ancient GNU ld didn't support --whole-archive et. al.
  12862. - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  12863. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12864. - else
  12865. - whole_archive_flag_spec=
  12866. - fi
  12867. - ;;
  12868. - esac
  12869. - fi
  12870. +fi
  12871. +{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  12872. +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  12873. +ac_ext=$ac_save_ext
  12874. +ac_test_FFLAGS=${FFLAGS+set}
  12875. +ac_save_FFLAGS=$FFLAGS
  12876. +FFLAGS=
  12877. +{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  12878. +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  12879. +if test "${ac_cv_prog_f77_g+set}" = set; then
  12880. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12881. else
  12882. - # PORTME fill in a description of your system's linker (not GNU ld)
  12883. - case $host_os in
  12884. - aix3*)
  12885. - allow_undefined_flag=unsupported
  12886. - always_export_symbols=yes
  12887. - 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'
  12888. - # Note: this linker hardcodes the directories in LIBPATH if there
  12889. - # are no directories specified by -L.
  12890. - hardcode_minus_L=yes
  12891. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  12892. - # Neither direct hardcoding nor static linking is supported with a
  12893. - # broken collect2.
  12894. - hardcode_direct=unsupported
  12895. - fi
  12896. - ;;
  12897. + FFLAGS=-g
  12898. +cat >conftest.$ac_ext <<_ACEOF
  12899. + program main
  12900. - aix4* | aix5*)
  12901. - if test "$host_cpu" = ia64; then
  12902. - # On IA64, the linker does run time linking by default, so we don't
  12903. - # have to do anything special.
  12904. - aix_use_runtimelinking=no
  12905. - exp_sym_flag='-Bexport'
  12906. - no_entry_flag=""
  12907. - else
  12908. - aix_use_runtimelinking=no
  12909. + end
  12910. +_ACEOF
  12911. +rm -f conftest.$ac_objext
  12912. +if { (ac_try="$ac_compile"
  12913. +case "(($ac_try" in
  12914. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12915. + *) ac_try_echo=$ac_try;;
  12916. +esac
  12917. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12918. + (eval "$ac_compile") 2>conftest.er1
  12919. + ac_status=$?
  12920. + grep -v '^ *+' conftest.er1 >conftest.err
  12921. + rm -f conftest.er1
  12922. + cat conftest.err >&5
  12923. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12924. + (exit $ac_status); } && {
  12925. + test -z "$ac_f77_werror_flag" ||
  12926. + test ! -s conftest.err
  12927. + } && test -s conftest.$ac_objext; then
  12928. + ac_cv_prog_f77_g=yes
  12929. +else
  12930. + echo "$as_me: failed program was:" >&5
  12931. +sed 's/^/| /' conftest.$ac_ext >&5
  12932. - # Test if we are trying to use run time linking or normal
  12933. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12934. - # need to do runtime linking.
  12935. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12936. - for ld_flag in $LDFLAGS; do
  12937. - case $ld_flag in
  12938. - *-brtl*)
  12939. - aix_use_runtimelinking=yes
  12940. - break
  12941. - ;;
  12942. - esac
  12943. - done
  12944. - esac
  12945. + ac_cv_prog_f77_g=no
  12946. +fi
  12947. - exp_sym_flag='-bexport'
  12948. - no_entry_flag='-bnoentry'
  12949. - fi
  12950. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12951. - # When large executables or shared objects are built, AIX ld can
  12952. - # have problems creating the table of contents. If linking a library
  12953. - # or program results in "error TOC overflow" add -mminimal-toc to
  12954. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12955. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12956. +fi
  12957. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  12958. +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  12959. +if test "$ac_test_FFLAGS" = set; then
  12960. + FFLAGS=$ac_save_FFLAGS
  12961. +elif test $ac_cv_prog_f77_g = yes; then
  12962. + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  12963. + FFLAGS="-g -O2"
  12964. + else
  12965. + FFLAGS="-g"
  12966. + fi
  12967. +else
  12968. + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  12969. + FFLAGS="-O2"
  12970. + else
  12971. + FFLAGS=
  12972. + fi
  12973. +fi
  12974. - hardcode_direct=yes
  12975. - archive_cmds=''
  12976. - hardcode_libdir_separator=':'
  12977. - if test "$GCC" = yes; then
  12978. - case $host_os in aix4.[012]|aix4.[012].*)
  12979. - collect2name=`${CC} -print-prog-name=collect2`
  12980. - if test -f "$collect2name" && \
  12981. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  12982. - then
  12983. - # We have reworked collect2
  12984. - hardcode_direct=yes
  12985. - else
  12986. - # We have old collect2
  12987. - hardcode_direct=unsupported
  12988. - # It fails to find uninstalled libraries when the uninstalled
  12989. - # path is not listed in the libpath. Setting hardcode_minus_L
  12990. - # to unsupported forces relinking
  12991. - hardcode_minus_L=yes
  12992. - hardcode_libdir_flag_spec='-L$libdir'
  12993. - hardcode_libdir_separator=
  12994. - fi
  12995. - esac
  12996. +G77=`test $ac_compiler_gnu = yes && echo yes`
  12997. +ac_ext=c
  12998. +ac_cpp='$CPP $CPPFLAGS'
  12999. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13000. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13001. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13002. - shared_flag='-shared'
  13003. - else
  13004. - # not using gcc
  13005. - if test "$host_cpu" = ia64; then
  13006. - shared_flag='${wl}-G'
  13007. - else
  13008. - if test "$aix_use_runtimelinking" = yes; then
  13009. - shared_flag='${wl}-G'
  13010. - else
  13011. - shared_flag='${wl}-bM:SRE'
  13012. - fi
  13013. - fi
  13014. - fi
  13015. - # It seems that -bexpall can do strange things, so it is better to
  13016. - # generate a list of symbols to export.
  13017. - always_export_symbols=yes
  13018. - if test "$aix_use_runtimelinking" = yes; then
  13019. - # Warning - without using the other runtime loading flags (-brtl),
  13020. - # -berok will link without error, but may produce a broken library.
  13021. - allow_undefined_flag='-berok'
  13022. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  13023. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13024. - else
  13025. - if test "$host_cpu" = ia64; then
  13026. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  13027. - allow_undefined_flag="-z nodefs"
  13028. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  13029. - else
  13030. - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  13031. - # Warning - without using the other run time loading flags,
  13032. - # -berok will link without error, but may produce a broken library.
  13033. - allow_undefined_flag='${wl}-berok'
  13034. - # This is a bit strange, but is similar to how AIX traditionally builds
  13035. - # it's shared libraries.
  13036. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  13037. - fi
  13038. - fi
  13039. - ;;
  13040. - amigaos*)
  13041. - 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)'
  13042. - hardcode_libdir_flag_spec='-L$libdir'
  13043. - hardcode_minus_L=yes
  13044. - # see comment about different semantics on the GNU ld section
  13045. - ld_shlibs=no
  13046. - ;;
  13047. +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  13048. - cygwin* | mingw* | pw32*)
  13049. - # When not using gcc, we currently assume that we are using
  13050. - # Microsoft Visual C++.
  13051. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  13052. - # no search path for DLLs.
  13053. - hardcode_libdir_flag_spec=' '
  13054. - allow_undefined_flag=unsupported
  13055. - # Tell ltmain to make .lib files, not .a files.
  13056. - libext=lib
  13057. - # FIXME: Setting linknames here is a bad hack.
  13058. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13059. - # The linker will automatically build a .lib file if we build a DLL.
  13060. - old_archive_from_new_cmds='true'
  13061. - # FIXME: Should let the user specify the lib program.
  13062. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13063. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  13064. - ;;
  13065. -
  13066. - darwin* | rhapsody*)
  13067. - case "$host_os" in
  13068. - rhapsody* | darwin1.[012])
  13069. - allow_undefined_flag='-undefined suppress'
  13070. - ;;
  13071. - *) # Darwin 1.3 on
  13072. - allow_undefined_flag='-flat_namespace -undefined suppress'
  13073. - ;;
  13074. - esac
  13075. - # FIXME: Relying on posixy $() will cause problems for
  13076. - # cross-compilation, but unfortunately the echo tests do not
  13077. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  13078. - # `"' quotes if we put them in here... so don't!
  13079. - archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  13080. - # We need to add '_' to the symbols in $export_symbols first
  13081. - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  13082. - hardcode_direct=yes
  13083. - hardcode_shlibpath_var=no
  13084. - whole_archive_flag_spec='-all_load $convenience'
  13085. - ;;
  13086. -
  13087. - freebsd1*)
  13088. - ld_shlibs=no
  13089. - ;;
  13090. -
  13091. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13092. - # support. Future versions do this automatically, but an explicit c++rt0.o
  13093. - # does not break anything, and helps significantly (at the cost of a little
  13094. - # extra space).
  13095. - freebsd2.2*)
  13096. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13097. - hardcode_libdir_flag_spec='-R$libdir'
  13098. - hardcode_direct=yes
  13099. - hardcode_shlibpath_var=no
  13100. - ;;
  13101. +# find the maximum length of command line arguments
  13102. +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  13103. +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  13104. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  13105. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13106. +else
  13107. + i=0
  13108. + teststring="ABCD"
  13109. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13110. - freebsd2*)
  13111. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13112. - hardcode_direct=yes
  13113. - hardcode_minus_L=yes
  13114. - hardcode_shlibpath_var=no
  13115. + case $build_os in
  13116. + msdosdjgpp*)
  13117. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  13118. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  13119. + # during glob expansion). Even if it were fixed, the result of this
  13120. + # check would be larger than it should be.
  13121. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  13122. ;;
  13123. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13124. - freebsd*)
  13125. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13126. - hardcode_libdir_flag_spec='-R$libdir'
  13127. - hardcode_direct=yes
  13128. - hardcode_shlibpath_var=no
  13129. + gnu*)
  13130. + # Under GNU Hurd, this test is not required because there is
  13131. + # no limit to the length of command line arguments.
  13132. + # Libtool will interpret -1 as no limit whatsoever
  13133. + lt_cv_sys_max_cmd_len=-1;
  13134. ;;
  13135. - hpux9* | hpux10* | hpux11*)
  13136. - case $host_os in
  13137. - hpux9*) 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' ;;
  13138. - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  13139. - esac
  13140. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13141. - hardcode_libdir_separator=:
  13142. - hardcode_direct=yes
  13143. - hardcode_minus_L=yes # Not in the search PATH, but as the default
  13144. - # location of the library.
  13145. - export_dynamic_flag_spec='${wl}-E'
  13146. + cygwin* | mingw*)
  13147. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  13148. + # about 5 minutes as the teststring grows exponentially.
  13149. + # Worse, since 9x/ME are not pre-emptively multitasking,
  13150. + # you end up with a "frozen" computer, even though with patience
  13151. + # the test eventually succeeds (with a max line length of 256k).
  13152. + # Instead, let's just punt: use the minimum linelength reported by
  13153. + # all of the supported platforms: 8192 (on NT/2K/XP).
  13154. + lt_cv_sys_max_cmd_len=8192;
  13155. ;;
  13156. - irix5* | irix6* | nonstopux*)
  13157. - if test "$GCC" = yes; then
  13158. - 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'
  13159. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13160. - else
  13161. - 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'
  13162. - hardcode_libdir_flag_spec='-rpath $libdir'
  13163. - fi
  13164. - hardcode_libdir_separator=:
  13165. - link_all_deplibs=yes
  13166. + amigaos*)
  13167. + # On AmigaOS with pdksh, this test takes hours, literally.
  13168. + # So we just punt and use a minimum line length of 8192.
  13169. + lt_cv_sys_max_cmd_len=8192;
  13170. ;;
  13171. - netbsd*)
  13172. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13173. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13174. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  13175. + # This has been around since 386BSD, at least. Likely further.
  13176. + if test -x /sbin/sysctl; then
  13177. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  13178. + elif test -x /usr/sbin/sysctl; then
  13179. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  13180. else
  13181. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13182. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  13183. fi
  13184. - hardcode_libdir_flag_spec='-R$libdir'
  13185. - hardcode_direct=yes
  13186. - hardcode_shlibpath_var=no
  13187. + # And add a safety zone
  13188. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  13189. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  13190. ;;
  13191. - newsos6)
  13192. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13193. - hardcode_direct=yes
  13194. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13195. - hardcode_libdir_separator=:
  13196. - hardcode_shlibpath_var=no
  13197. + interix*)
  13198. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  13199. + lt_cv_sys_max_cmd_len=196608
  13200. ;;
  13201. - openbsd*)
  13202. - hardcode_direct=yes
  13203. - hardcode_shlibpath_var=no
  13204. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13205. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13206. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13207. - export_dynamic_flag_spec='${wl}-E'
  13208. - else
  13209. - case "$host_os" in
  13210. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13211. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13212. - hardcode_libdir_flag_spec='-R$libdir'
  13213. - ;;
  13214. - *)
  13215. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13216. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13217. - ;;
  13218. + osf*)
  13219. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  13220. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  13221. + # nice to cause kernel panics so lets avoid the loop below.
  13222. + # First set a reasonable default.
  13223. + lt_cv_sys_max_cmd_len=16384
  13224. + #
  13225. + if test -x /sbin/sysconfig; then
  13226. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  13227. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  13228. esac
  13229. fi
  13230. ;;
  13231. -
  13232. - os2*)
  13233. - hardcode_libdir_flag_spec='-L$libdir'
  13234. - hardcode_minus_L=yes
  13235. - allow_undefined_flag=unsupported
  13236. - 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'
  13237. - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13238. + sco3.2v5*)
  13239. + lt_cv_sys_max_cmd_len=102400
  13240. ;;
  13241. -
  13242. - osf3*)
  13243. - if test "$GCC" = yes; then
  13244. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13245. - 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'
  13246. + sysv5* | sco5v6* | sysv4.2uw2*)
  13247. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  13248. + if test -n "$kargmax"; then
  13249. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  13250. else
  13251. - allow_undefined_flag=' -expect_unresolved \*'
  13252. - 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'
  13253. + lt_cv_sys_max_cmd_len=32768
  13254. fi
  13255. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13256. - hardcode_libdir_separator=:
  13257. ;;
  13258. + *)
  13259. + # If test is not a shell built-in, we'll probably end up computing a
  13260. + # maximum length that is only half of the actual maximum length, but
  13261. + # we can't tell.
  13262. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  13263. + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  13264. + = "XX$teststring") >/dev/null 2>&1 &&
  13265. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  13266. + lt_cv_sys_max_cmd_len=$new_result &&
  13267. + test $i != 17 # 1/2 MB should be enough
  13268. + do
  13269. + i=`expr $i + 1`
  13270. + teststring=$teststring$teststring
  13271. + done
  13272. + teststring=
  13273. + # Add a significant safety factor because C++ compilers can tack on massive
  13274. + # amounts of additional arguments before passing them to the linker.
  13275. + # It appears as though 1/2 is a usable value.
  13276. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  13277. + ;;
  13278. + esac
  13279. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  13280. - if test "$GCC" = yes; then
  13281. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13282. - 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'
  13283. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13284. - else
  13285. - allow_undefined_flag=' -expect_unresolved \*'
  13286. - 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'
  13287. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13288. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  13289. +fi
  13290. - #Both c and cxx compiler support -rpath directly
  13291. - hardcode_libdir_flag_spec='-rpath $libdir'
  13292. - fi
  13293. - hardcode_libdir_separator=:
  13294. - ;;
  13295. +if test -n $lt_cv_sys_max_cmd_len ; then
  13296. + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  13297. +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  13298. +else
  13299. + { echo "$as_me:$LINENO: result: none" >&5
  13300. +echo "${ECHO_T}none" >&6; }
  13301. +fi
  13302. - sco3.2v5*)
  13303. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13304. - hardcode_shlibpath_var=no
  13305. - runpath_var=LD_RUN_PATH
  13306. - hardcode_runpath_var=yes
  13307. - export_dynamic_flag_spec='${wl}-Bexport'
  13308. - ;;
  13309. - solaris*)
  13310. - # gcc --version < 3.0 without binutils cannot create self contained
  13311. - # shared libraries reliably, requiring libgcc.a to resolve some of
  13312. - # the object symbols generated in some cases. Libraries that use
  13313. - # assert need libgcc.a to resolve __eprintf, for example. Linking
  13314. - # a copy of libgcc.a into every shared library to guarantee resolving
  13315. - # such symbols causes other problems: According to Tim Van Holder
  13316. - # <[email protected]>, C++ libraries end up with a separate
  13317. - # (to the application) exception stack for one thing.
  13318. - no_undefined_flag=' -z defs'
  13319. - if test "$GCC" = yes; then
  13320. - case `$CC --version 2>/dev/null` in
  13321. - [12].*)
  13322. - cat <<EOF 1>&2
  13323. -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  13324. -*** create self contained shared libraries on Solaris systems, without
  13325. -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  13326. -*** -no-undefined support, which will at least allow you to build shared
  13327. -*** libraries. However, you may find that when you link such libraries
  13328. -*** into an application without using GCC, you have to manually add
  13329. -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  13330. -*** upgrade to a newer version of GCC. Another option is to rebuild your
  13331. -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  13332. -EOF
  13333. - no_undefined_flag=
  13334. - ;;
  13335. - esac
  13336. - fi
  13337. - # $CC -shared without GNU ld will not create a library from C++
  13338. - # object files and a static libstdc++, better avoid it by now
  13339. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13340. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13341. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13342. - hardcode_libdir_flag_spec='-R$libdir'
  13343. - hardcode_shlibpath_var=no
  13344. - case $host_os in
  13345. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  13346. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  13347. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  13348. - esac
  13349. - link_all_deplibs=yes
  13350. - ;;
  13351. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  13352. +{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  13353. +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  13354. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  13355. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13356. +else
  13357. - sunos4*)
  13358. - if test "x$host_vendor" = xsequent; then
  13359. - # Use $CC to link under sequent, because it throws in some extra .o
  13360. - # files that make .init and .fini sections work.
  13361. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13362. - else
  13363. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13364. - fi
  13365. - hardcode_libdir_flag_spec='-L$libdir'
  13366. - hardcode_direct=yes
  13367. - hardcode_minus_L=yes
  13368. - hardcode_shlibpath_var=no
  13369. - ;;
  13370. +# These are sane defaults that work on at least a few old systems.
  13371. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  13372. - sysv4)
  13373. - case $host_vendor in
  13374. - sni)
  13375. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13376. - hardcode_direct=yes # is this really true???
  13377. - ;;
  13378. - siemens)
  13379. - ## LD is ld it makes a PLAMLIB
  13380. - ## CC just makes a GrossModule.
  13381. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13382. - reload_cmds='$CC -r -o $output$reload_objs'
  13383. - hardcode_direct=no
  13384. - ;;
  13385. - motorola)
  13386. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13387. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  13388. - ;;
  13389. - esac
  13390. - runpath_var='LD_RUN_PATH'
  13391. - hardcode_shlibpath_var=no
  13392. - ;;
  13393. +# Character class describing NM global symbol codes.
  13394. +symcode='[BCDEGRST]'
  13395. - sysv4.3*)
  13396. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13397. - hardcode_shlibpath_var=no
  13398. - export_dynamic_flag_spec='-Bexport'
  13399. - ;;
  13400. -
  13401. - sysv5*)
  13402. - no_undefined_flag=' -z text'
  13403. - # $CC -shared without GNU ld will not create a library from C++
  13404. - # object files and a static libstdc++, better avoid it by now
  13405. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13406. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13407. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13408. - hardcode_libdir_flag_spec=
  13409. - hardcode_shlibpath_var=no
  13410. - runpath_var='LD_RUN_PATH'
  13411. - ;;
  13412. +# Regexp to match symbols that can be accessed directly from C.
  13413. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  13414. - uts4*)
  13415. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13416. - hardcode_libdir_flag_spec='-L$libdir'
  13417. - hardcode_shlibpath_var=no
  13418. - ;;
  13419. +# Transform an extracted symbol line into a proper C declaration
  13420. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  13421. - dgux*)
  13422. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13423. - hardcode_libdir_flag_spec='-L$libdir'
  13424. - hardcode_shlibpath_var=no
  13425. - ;;
  13426. +# Transform an extracted symbol line into symbol name and symbol address
  13427. +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'"
  13428. - sysv4*MP*)
  13429. - if test -d /usr/nec; then
  13430. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13431. - hardcode_shlibpath_var=no
  13432. - runpath_var=LD_RUN_PATH
  13433. - hardcode_runpath_var=yes
  13434. - ld_shlibs=yes
  13435. - fi
  13436. - ;;
  13437. +# Define system-specific variables.
  13438. +case $host_os in
  13439. +aix*)
  13440. + symcode='[BCDT]'
  13441. + ;;
  13442. +cygwin* | mingw* | pw32*)
  13443. + symcode='[ABCDGISTW]'
  13444. + ;;
  13445. +hpux*) # Its linker distinguishes data from code symbols
  13446. + if test "$host_cpu" = ia64; then
  13447. + symcode='[ABCDEGRST]'
  13448. + fi
  13449. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  13450. + 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'"
  13451. + ;;
  13452. +linux* | k*bsd*-gnu)
  13453. + if test "$host_cpu" = ia64; then
  13454. + symcode='[ABCDGIRSTW]'
  13455. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  13456. + 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'"
  13457. + fi
  13458. + ;;
  13459. +irix* | nonstopux*)
  13460. + symcode='[BCDEGRST]'
  13461. + ;;
  13462. +osf*)
  13463. + symcode='[BCDEGQRST]'
  13464. + ;;
  13465. +solaris*)
  13466. + symcode='[BDRT]'
  13467. + ;;
  13468. +sco3.2v5*)
  13469. + symcode='[DT]'
  13470. + ;;
  13471. +sysv4.2uw2*)
  13472. + symcode='[DT]'
  13473. + ;;
  13474. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  13475. + symcode='[ABDT]'
  13476. + ;;
  13477. +sysv4)
  13478. + symcode='[DFNSTU]'
  13479. + ;;
  13480. +esac
  13481. - sysv4.2uw2*)
  13482. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13483. - hardcode_direct=yes
  13484. - hardcode_minus_L=no
  13485. - hardcode_shlibpath_var=no
  13486. - hardcode_runpath_var=yes
  13487. - runpath_var=LD_RUN_PATH
  13488. - ;;
  13489. +# Handle CRLF in mingw tool chain
  13490. +opt_cr=
  13491. +case $build_os in
  13492. +mingw*)
  13493. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  13494. + ;;
  13495. +esac
  13496. - sysv5uw7* | unixware7*)
  13497. - no_undefined_flag='${wl}-z ${wl}text'
  13498. - if test "$GCC" = yes; then
  13499. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13500. - else
  13501. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13502. - fi
  13503. - runpath_var='LD_RUN_PATH'
  13504. - hardcode_shlibpath_var=no
  13505. - ;;
  13506. +# If we're using GNU nm, then use its standard symbol codes.
  13507. +case `$NM -V 2>&1` in
  13508. +*GNU* | *'with BFD'*)
  13509. + symcode='[ABCDGIRSTW]' ;;
  13510. +esac
  13511. - *)
  13512. - ld_shlibs=no
  13513. - ;;
  13514. - esac
  13515. -fi
  13516. -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  13517. -echo "${ECHO_T}$ld_shlibs" >&6
  13518. -test "$ld_shlibs" = no && can_build_shared=no
  13519. +# Try without a prefix undercore, then with it.
  13520. +for ac_symprfx in "" "_"; do
  13521. -# Check hardcoding attributes.
  13522. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13523. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13524. -hardcode_action=
  13525. -if test -n "$hardcode_libdir_flag_spec" || \
  13526. - test -n "$runpath_var"; then
  13527. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  13528. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  13529. - # We can hardcode non-existant directories.
  13530. - if test "$hardcode_direct" != no &&
  13531. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13532. - # have to relink, otherwise we might link with an installed library
  13533. - # when we should be linking with a yet-to-be-installed one
  13534. - ## test "$hardcode_shlibpath_var" != no &&
  13535. - test "$hardcode_minus_L" != no; then
  13536. - # Linking always hardcodes the temporary library directory.
  13537. - hardcode_action=relink
  13538. + # Write the raw and C identifiers.
  13539. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  13540. +
  13541. + # Check to see that the pipe works correctly.
  13542. + pipe_works=no
  13543. +
  13544. + rm -f conftest*
  13545. + cat > conftest.$ac_ext <<EOF
  13546. +#ifdef __cplusplus
  13547. +extern "C" {
  13548. +#endif
  13549. +char nm_test_var;
  13550. +void nm_test_func(){}
  13551. +#ifdef __cplusplus
  13552. +}
  13553. +#endif
  13554. +int main(){nm_test_var='a';nm_test_func();return(0);}
  13555. +EOF
  13556. +
  13557. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13558. + (eval $ac_compile) 2>&5
  13559. + ac_status=$?
  13560. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13561. + (exit $ac_status); }; then
  13562. + # Now try to grab the symbols.
  13563. + nlist=conftest.nm
  13564. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  13565. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  13566. + ac_status=$?
  13567. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13568. + (exit $ac_status); } && test -s "$nlist"; then
  13569. + # Try sorting and uniquifying the output.
  13570. + if sort "$nlist" | uniq > "$nlist"T; then
  13571. + mv -f "$nlist"T "$nlist"
  13572. + else
  13573. + rm -f "$nlist"T
  13574. + fi
  13575. +
  13576. + # Make sure that we snagged all the symbols we need.
  13577. + if grep ' nm_test_var$' "$nlist" >/dev/null; then
  13578. + if grep ' nm_test_func$' "$nlist" >/dev/null; then
  13579. + cat <<EOF > conftest.$ac_ext
  13580. +#ifdef __cplusplus
  13581. +extern "C" {
  13582. +#endif
  13583. +
  13584. +EOF
  13585. + # Now generate the symbol file.
  13586. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  13587. +
  13588. + cat <<EOF >> conftest.$ac_ext
  13589. +#if defined (__STDC__) && __STDC__
  13590. +# define lt_ptr_t void *
  13591. +#else
  13592. +# define lt_ptr_t char *
  13593. +# define const
  13594. +#endif
  13595. +
  13596. +/* The mapping between symbol names and symbols. */
  13597. +const struct {
  13598. + const char *name;
  13599. + lt_ptr_t address;
  13600. +}
  13601. +lt_preloaded_symbols[] =
  13602. +{
  13603. +EOF
  13604. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  13605. + cat <<\EOF >> conftest.$ac_ext
  13606. + {0, (lt_ptr_t) 0}
  13607. +};
  13608. +
  13609. +#ifdef __cplusplus
  13610. +}
  13611. +#endif
  13612. +EOF
  13613. + # Now try linking the two files.
  13614. + mv conftest.$ac_objext conftstm.$ac_objext
  13615. + lt_save_LIBS="$LIBS"
  13616. + lt_save_CFLAGS="$CFLAGS"
  13617. + LIBS="conftstm.$ac_objext"
  13618. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  13619. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13620. + (eval $ac_link) 2>&5
  13621. + ac_status=$?
  13622. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13623. + (exit $ac_status); } && test -s conftest${ac_exeext}; then
  13624. + pipe_works=yes
  13625. + fi
  13626. + LIBS="$lt_save_LIBS"
  13627. + CFLAGS="$lt_save_CFLAGS"
  13628. + else
  13629. + echo "cannot find nm_test_func in $nlist" >&5
  13630. + fi
  13631. + else
  13632. + echo "cannot find nm_test_var in $nlist" >&5
  13633. + fi
  13634. + else
  13635. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  13636. + fi
  13637. else
  13638. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13639. - hardcode_action=immediate
  13640. + echo "$progname: failed program was:" >&5
  13641. + cat conftest.$ac_ext >&5
  13642. + fi
  13643. + rm -f conftest* conftst*
  13644. +
  13645. + # Do not use the global_symbol_pipe unless it works.
  13646. + if test "$pipe_works" = yes; then
  13647. + break
  13648. + else
  13649. + lt_cv_sys_global_symbol_pipe=
  13650. fi
  13651. +done
  13652. +
  13653. +fi
  13654. +
  13655. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  13656. + lt_cv_sys_global_symbol_to_cdecl=
  13657. +fi
  13658. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  13659. + { echo "$as_me:$LINENO: result: failed" >&5
  13660. +echo "${ECHO_T}failed" >&6; }
  13661. else
  13662. - # We cannot hardcode anything, or else we can only hardcode existing
  13663. - # directories.
  13664. - hardcode_action=unsupported
  13665. + { echo "$as_me:$LINENO: result: ok" >&5
  13666. +echo "${ECHO_T}ok" >&6; }
  13667. fi
  13668. -echo "$as_me:$LINENO: result: $hardcode_action" >&5
  13669. -echo "${ECHO_T}$hardcode_action" >&6
  13670. -striplib=
  13671. -old_striplib=
  13672. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  13673. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  13674. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13675. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13676. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13677. - echo "$as_me:$LINENO: result: yes" >&5
  13678. -echo "${ECHO_T}yes" >&6
  13679. +{ echo "$as_me:$LINENO: checking for objdir" >&5
  13680. +echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  13681. +if test "${lt_cv_objdir+set}" = set; then
  13682. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13683. +else
  13684. + rm -f .libs 2>/dev/null
  13685. +mkdir .libs 2>/dev/null
  13686. +if test -d .libs; then
  13687. + lt_cv_objdir=.libs
  13688. else
  13689. - echo "$as_me:$LINENO: result: no" >&5
  13690. -echo "${ECHO_T}no" >&6
  13691. + # MS-DOS does not allow filenames that begin with a dot.
  13692. + lt_cv_objdir=_libs
  13693. +fi
  13694. +rmdir .libs 2>/dev/null
  13695. fi
  13696. +{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  13697. +echo "${ECHO_T}$lt_cv_objdir" >&6; }
  13698. +objdir=$lt_cv_objdir
  13699. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  13700. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  13701. -# PORTME Fill in your ld.so characteristics
  13702. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13703. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13704. -library_names_spec=
  13705. -libname_spec='lib$name'
  13706. -soname_spec=
  13707. -postinstall_cmds=
  13708. -postuninstall_cmds=
  13709. -finish_cmds=
  13710. -finish_eval=
  13711. -shlibpath_var=
  13712. -shlibpath_overrides_runpath=unknown
  13713. -version_type=none
  13714. -dynamic_linker="$host_os ld.so"
  13715. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13716. -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13717. -case $host_os in
  13718. -aix3*)
  13719. - version_type=linux
  13720. - library_names_spec='${libname}${release}.so$versuffix $libname.a'
  13721. - shlibpath_var=LIBPATH
  13722. - # AIX has no versioning support, so we append a major version to the name.
  13723. - soname_spec='${libname}${release}.so$major'
  13724. - ;;
  13725. -aix4* | aix5*)
  13726. - version_type=linux
  13727. - need_lib_prefix=no
  13728. - need_version=no
  13729. - hardcode_into_libs=yes
  13730. - if test "$host_cpu" = ia64; then
  13731. - # AIX 5 supports IA64
  13732. - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  13733. - shlibpath_var=LD_LIBRARY_PATH
  13734. - else
  13735. - # With GCC up to 2.95.x, collect2 would create an import file
  13736. - # for dependence libraries. The import file would start with
  13737. - # the line `#! .'. This would cause the generated library to
  13738. - # depend on `.', always an invalid library. This was fixed in
  13739. - # development snapshots of GCC prior to 3.0.
  13740. - case $host_os in
  13741. - aix4 | aix4.[01] | aix4.[01].*)
  13742. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13743. - echo ' yes '
  13744. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13745. - :
  13746. - else
  13747. - can_build_shared=no
  13748. - fi
  13749. - ;;
  13750. - esac
  13751. - # AIX (on Power*) has no versioning support, so currently we can
  13752. - # not hardcode correct soname into executable. Probably we can
  13753. - # add versioning support to collect2, so additional links can
  13754. - # be useful in future.
  13755. - if test "$aix_use_runtimelinking" = yes; then
  13756. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13757. - # instead of lib<name>.a to let people know that these are not
  13758. - # typical AIX shared libraries.
  13759. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  13760. - else
  13761. - # We preserve .a as extension for shared libraries through AIX4.2
  13762. - # and later when we are not doing run time linking.
  13763. - library_names_spec='${libname}${release}.a $libname.a'
  13764. - soname_spec='${libname}${release}.so$major'
  13765. - fi
  13766. - shlibpath_var=LIBPATH
  13767. +case $host_os in
  13768. +aix3*)
  13769. + # AIX sometimes has problems with the GCC collect2 program. For some
  13770. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  13771. + # vanish in a puff of smoke.
  13772. + if test "X${COLLECT_NAMES+set}" != Xset; then
  13773. + COLLECT_NAMES=
  13774. + export COLLECT_NAMES
  13775. fi
  13776. - hardcode_into_libs=yes
  13777. - ;;
  13778. -
  13779. -amigaos*)
  13780. - library_names_spec='$libname.ixlibrary $libname.a'
  13781. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13782. - 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'
  13783. ;;
  13784. +esac
  13785. -beos*)
  13786. - library_names_spec='${libname}.so'
  13787. - dynamic_linker="$host_os ld.so"
  13788. - shlibpath_var=LIBRARY_PATH
  13789. - ;;
  13790. +# Sed substitution that helps us do robust quoting. It backslashifies
  13791. +# metacharacters that are still active within double-quoted strings.
  13792. +Xsed='sed -e 1s/^X//'
  13793. +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  13794. -bsdi4*)
  13795. +# Same as above, but do not quote variable references.
  13796. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  13797. +
  13798. +# Sed substitution to delay expansion of an escaped shell variable in a
  13799. +# double_quote_subst'ed string.
  13800. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  13801. +
  13802. +# Sed substitution to avoid accidental globbing in evaled expressions
  13803. +no_glob_subst='s/\*/\\\*/g'
  13804. +
  13805. +# Constants:
  13806. +rm="rm -f"
  13807. +
  13808. +# Global variables:
  13809. +default_ofile=libtool
  13810. +can_build_shared=yes
  13811. +
  13812. +# All known linkers require a `.a' archive for static linking (except MSVC,
  13813. +# which needs '.lib').
  13814. +libext=a
  13815. +ltmain="$ac_aux_dir/ltmain.sh"
  13816. +ofile="$default_ofile"
  13817. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  13818. +
  13819. +if test -n "$ac_tool_prefix"; then
  13820. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  13821. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  13822. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  13823. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13824. +if test "${ac_cv_prog_AR+set}" = set; then
  13825. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13826. +else
  13827. + if test -n "$AR"; then
  13828. + ac_cv_prog_AR="$AR" # Let the user override the test.
  13829. +else
  13830. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13831. +for as_dir in $PATH
  13832. +do
  13833. + IFS=$as_save_IFS
  13834. + test -z "$as_dir" && as_dir=.
  13835. + for ac_exec_ext in '' $ac_executable_extensions; do
  13836. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13837. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  13838. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13839. + break 2
  13840. + fi
  13841. +done
  13842. +done
  13843. +IFS=$as_save_IFS
  13844. +
  13845. +fi
  13846. +fi
  13847. +AR=$ac_cv_prog_AR
  13848. +if test -n "$AR"; then
  13849. + { echo "$as_me:$LINENO: result: $AR" >&5
  13850. +echo "${ECHO_T}$AR" >&6; }
  13851. +else
  13852. + { echo "$as_me:$LINENO: result: no" >&5
  13853. +echo "${ECHO_T}no" >&6; }
  13854. +fi
  13855. +
  13856. +
  13857. +fi
  13858. +if test -z "$ac_cv_prog_AR"; then
  13859. + ac_ct_AR=$AR
  13860. + # Extract the first word of "ar", so it can be a program name with args.
  13861. +set dummy ar; ac_word=$2
  13862. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  13863. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13864. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  13865. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13866. +else
  13867. + if test -n "$ac_ct_AR"; then
  13868. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  13869. +else
  13870. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13871. +for as_dir in $PATH
  13872. +do
  13873. + IFS=$as_save_IFS
  13874. + test -z "$as_dir" && as_dir=.
  13875. + for ac_exec_ext in '' $ac_executable_extensions; do
  13876. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13877. + ac_cv_prog_ac_ct_AR="ar"
  13878. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13879. + break 2
  13880. + fi
  13881. +done
  13882. +done
  13883. +IFS=$as_save_IFS
  13884. +
  13885. +fi
  13886. +fi
  13887. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  13888. +if test -n "$ac_ct_AR"; then
  13889. + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  13890. +echo "${ECHO_T}$ac_ct_AR" >&6; }
  13891. +else
  13892. + { echo "$as_me:$LINENO: result: no" >&5
  13893. +echo "${ECHO_T}no" >&6; }
  13894. +fi
  13895. +
  13896. + if test "x$ac_ct_AR" = x; then
  13897. + AR="false"
  13898. + else
  13899. + case $cross_compiling:$ac_tool_warned in
  13900. +yes:)
  13901. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13902. +whose name does not start with the host triplet. If you think this
  13903. +configuration is useful to you, please write to [email protected]." >&5
  13904. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  13905. +whose name does not start with the host triplet. If you think this
  13906. +configuration is useful to you, please write to [email protected]." >&2;}
  13907. +ac_tool_warned=yes ;;
  13908. +esac
  13909. + AR=$ac_ct_AR
  13910. + fi
  13911. +else
  13912. + AR="$ac_cv_prog_AR"
  13913. +fi
  13914. +
  13915. +if test -n "$ac_tool_prefix"; then
  13916. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  13917. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  13918. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  13919. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13920. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  13921. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13922. +else
  13923. + if test -n "$RANLIB"; then
  13924. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  13925. +else
  13926. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13927. +for as_dir in $PATH
  13928. +do
  13929. + IFS=$as_save_IFS
  13930. + test -z "$as_dir" && as_dir=.
  13931. + for ac_exec_ext in '' $ac_executable_extensions; do
  13932. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13933. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  13934. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13935. + break 2
  13936. + fi
  13937. +done
  13938. +done
  13939. +IFS=$as_save_IFS
  13940. +
  13941. +fi
  13942. +fi
  13943. +RANLIB=$ac_cv_prog_RANLIB
  13944. +if test -n "$RANLIB"; then
  13945. + { echo "$as_me:$LINENO: result: $RANLIB" >&5
  13946. +echo "${ECHO_T}$RANLIB" >&6; }
  13947. +else
  13948. + { echo "$as_me:$LINENO: result: no" >&5
  13949. +echo "${ECHO_T}no" >&6; }
  13950. +fi
  13951. +
  13952. +
  13953. +fi
  13954. +if test -z "$ac_cv_prog_RANLIB"; then
  13955. + ac_ct_RANLIB=$RANLIB
  13956. + # Extract the first word of "ranlib", so it can be a program name with args.
  13957. +set dummy ranlib; ac_word=$2
  13958. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  13959. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13960. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  13961. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13962. +else
  13963. + if test -n "$ac_ct_RANLIB"; then
  13964. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  13965. +else
  13966. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13967. +for as_dir in $PATH
  13968. +do
  13969. + IFS=$as_save_IFS
  13970. + test -z "$as_dir" && as_dir=.
  13971. + for ac_exec_ext in '' $ac_executable_extensions; do
  13972. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13973. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  13974. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13975. + break 2
  13976. + fi
  13977. +done
  13978. +done
  13979. +IFS=$as_save_IFS
  13980. +
  13981. +fi
  13982. +fi
  13983. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  13984. +if test -n "$ac_ct_RANLIB"; then
  13985. + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  13986. +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  13987. +else
  13988. + { echo "$as_me:$LINENO: result: no" >&5
  13989. +echo "${ECHO_T}no" >&6; }
  13990. +fi
  13991. +
  13992. + if test "x$ac_ct_RANLIB" = x; then
  13993. + RANLIB=":"
  13994. + else
  13995. + case $cross_compiling:$ac_tool_warned in
  13996. +yes:)
  13997. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13998. +whose name does not start with the host triplet. If you think this
  13999. +configuration is useful to you, please write to [email protected]." >&5
  14000. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14001. +whose name does not start with the host triplet. If you think this
  14002. +configuration is useful to you, please write to [email protected]." >&2;}
  14003. +ac_tool_warned=yes ;;
  14004. +esac
  14005. + RANLIB=$ac_ct_RANLIB
  14006. + fi
  14007. +else
  14008. + RANLIB="$ac_cv_prog_RANLIB"
  14009. +fi
  14010. +
  14011. +if test -n "$ac_tool_prefix"; then
  14012. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14013. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  14014. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14015. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14016. +if test "${ac_cv_prog_STRIP+set}" = set; then
  14017. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14018. +else
  14019. + if test -n "$STRIP"; then
  14020. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14021. +else
  14022. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14023. +for as_dir in $PATH
  14024. +do
  14025. + IFS=$as_save_IFS
  14026. + test -z "$as_dir" && as_dir=.
  14027. + for ac_exec_ext in '' $ac_executable_extensions; do
  14028. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14029. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14030. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14031. + break 2
  14032. + fi
  14033. +done
  14034. +done
  14035. +IFS=$as_save_IFS
  14036. +
  14037. +fi
  14038. +fi
  14039. +STRIP=$ac_cv_prog_STRIP
  14040. +if test -n "$STRIP"; then
  14041. + { echo "$as_me:$LINENO: result: $STRIP" >&5
  14042. +echo "${ECHO_T}$STRIP" >&6; }
  14043. +else
  14044. + { echo "$as_me:$LINENO: result: no" >&5
  14045. +echo "${ECHO_T}no" >&6; }
  14046. +fi
  14047. +
  14048. +
  14049. +fi
  14050. +if test -z "$ac_cv_prog_STRIP"; then
  14051. + ac_ct_STRIP=$STRIP
  14052. + # Extract the first word of "strip", so it can be a program name with args.
  14053. +set dummy strip; ac_word=$2
  14054. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14055. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14056. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  14057. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14058. +else
  14059. + if test -n "$ac_ct_STRIP"; then
  14060. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14061. +else
  14062. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14063. +for as_dir in $PATH
  14064. +do
  14065. + IFS=$as_save_IFS
  14066. + test -z "$as_dir" && as_dir=.
  14067. + for ac_exec_ext in '' $ac_executable_extensions; do
  14068. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14069. + ac_cv_prog_ac_ct_STRIP="strip"
  14070. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14071. + break 2
  14072. + fi
  14073. +done
  14074. +done
  14075. +IFS=$as_save_IFS
  14076. +
  14077. +fi
  14078. +fi
  14079. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  14080. +if test -n "$ac_ct_STRIP"; then
  14081. + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  14082. +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  14083. +else
  14084. + { echo "$as_me:$LINENO: result: no" >&5
  14085. +echo "${ECHO_T}no" >&6; }
  14086. +fi
  14087. +
  14088. + if test "x$ac_ct_STRIP" = x; then
  14089. + STRIP=":"
  14090. + else
  14091. + case $cross_compiling:$ac_tool_warned in
  14092. +yes:)
  14093. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14094. +whose name does not start with the host triplet. If you think this
  14095. +configuration is useful to you, please write to [email protected]." >&5
  14096. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14097. +whose name does not start with the host triplet. If you think this
  14098. +configuration is useful to you, please write to [email protected]." >&2;}
  14099. +ac_tool_warned=yes ;;
  14100. +esac
  14101. + STRIP=$ac_ct_STRIP
  14102. + fi
  14103. +else
  14104. + STRIP="$ac_cv_prog_STRIP"
  14105. +fi
  14106. +
  14107. +
  14108. +old_CC="$CC"
  14109. +old_CFLAGS="$CFLAGS"
  14110. +
  14111. +# Set sane defaults for various variables
  14112. +test -z "$AR" && AR=ar
  14113. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  14114. +test -z "$AS" && AS=as
  14115. +test -z "$CC" && CC=cc
  14116. +test -z "$LTCC" && LTCC=$CC
  14117. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  14118. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  14119. +test -z "$LD" && LD=ld
  14120. +test -z "$LN_S" && LN_S="ln -s"
  14121. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  14122. +test -z "$NM" && NM=nm
  14123. +test -z "$SED" && SED=sed
  14124. +test -z "$OBJDUMP" && OBJDUMP=objdump
  14125. +test -z "$RANLIB" && RANLIB=:
  14126. +test -z "$STRIP" && STRIP=:
  14127. +test -z "$ac_objext" && ac_objext=o
  14128. +
  14129. +# Determine commands to create old-style static archives.
  14130. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  14131. +old_postinstall_cmds='chmod 644 $oldlib'
  14132. +old_postuninstall_cmds=
  14133. +
  14134. +if test -n "$RANLIB"; then
  14135. + case $host_os in
  14136. + openbsd*)
  14137. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  14138. + ;;
  14139. + *)
  14140. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  14141. + ;;
  14142. + esac
  14143. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  14144. +fi
  14145. +
  14146. +for cc_temp in $compiler""; do
  14147. + case $cc_temp in
  14148. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14149. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14150. + \-*) ;;
  14151. + *) break;;
  14152. + esac
  14153. +done
  14154. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14155. +
  14156. +
  14157. +# Only perform the check for file, if the check method requires it
  14158. +case $deplibs_check_method in
  14159. +file_magic*)
  14160. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  14161. + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  14162. +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  14163. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  14164. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14165. +else
  14166. + case $MAGIC_CMD in
  14167. +[\\/*] | ?:[\\/]*)
  14168. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  14169. + ;;
  14170. +*)
  14171. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  14172. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14173. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  14174. + for ac_dir in $ac_dummy; do
  14175. + IFS="$lt_save_ifs"
  14176. + test -z "$ac_dir" && ac_dir=.
  14177. + if test -f $ac_dir/${ac_tool_prefix}file; then
  14178. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  14179. + if test -n "$file_magic_test_file"; then
  14180. + case $deplibs_check_method in
  14181. + "file_magic "*)
  14182. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  14183. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  14184. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  14185. + $EGREP "$file_magic_regex" > /dev/null; then
  14186. + :
  14187. + else
  14188. + cat <<EOF 1>&2
  14189. +
  14190. +*** Warning: the command libtool uses to detect shared libraries,
  14191. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  14192. +*** The result is that libtool may fail to recognize shared libraries
  14193. +*** as such. This will affect the creation of libtool libraries that
  14194. +*** depend on shared libraries, but programs linked with such libtool
  14195. +*** libraries will work regardless of this problem. Nevertheless, you
  14196. +*** may want to report the problem to your system manager and/or to
  14197. +*** [email protected]
  14198. +
  14199. +EOF
  14200. + fi ;;
  14201. + esac
  14202. + fi
  14203. + break
  14204. + fi
  14205. + done
  14206. + IFS="$lt_save_ifs"
  14207. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  14208. + ;;
  14209. +esac
  14210. +fi
  14211. +
  14212. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  14213. +if test -n "$MAGIC_CMD"; then
  14214. + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  14215. +echo "${ECHO_T}$MAGIC_CMD" >&6; }
  14216. +else
  14217. + { echo "$as_me:$LINENO: result: no" >&5
  14218. +echo "${ECHO_T}no" >&6; }
  14219. +fi
  14220. +
  14221. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  14222. + if test -n "$ac_tool_prefix"; then
  14223. + { echo "$as_me:$LINENO: checking for file" >&5
  14224. +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  14225. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  14226. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14227. +else
  14228. + case $MAGIC_CMD in
  14229. +[\\/*] | ?:[\\/]*)
  14230. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  14231. + ;;
  14232. +*)
  14233. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  14234. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14235. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  14236. + for ac_dir in $ac_dummy; do
  14237. + IFS="$lt_save_ifs"
  14238. + test -z "$ac_dir" && ac_dir=.
  14239. + if test -f $ac_dir/file; then
  14240. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  14241. + if test -n "$file_magic_test_file"; then
  14242. + case $deplibs_check_method in
  14243. + "file_magic "*)
  14244. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  14245. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  14246. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  14247. + $EGREP "$file_magic_regex" > /dev/null; then
  14248. + :
  14249. + else
  14250. + cat <<EOF 1>&2
  14251. +
  14252. +*** Warning: the command libtool uses to detect shared libraries,
  14253. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  14254. +*** The result is that libtool may fail to recognize shared libraries
  14255. +*** as such. This will affect the creation of libtool libraries that
  14256. +*** depend on shared libraries, but programs linked with such libtool
  14257. +*** libraries will work regardless of this problem. Nevertheless, you
  14258. +*** may want to report the problem to your system manager and/or to
  14259. +*** [email protected]
  14260. +
  14261. +EOF
  14262. + fi ;;
  14263. + esac
  14264. + fi
  14265. + break
  14266. + fi
  14267. + done
  14268. + IFS="$lt_save_ifs"
  14269. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  14270. + ;;
  14271. +esac
  14272. +fi
  14273. +
  14274. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  14275. +if test -n "$MAGIC_CMD"; then
  14276. + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  14277. +echo "${ECHO_T}$MAGIC_CMD" >&6; }
  14278. +else
  14279. + { echo "$as_me:$LINENO: result: no" >&5
  14280. +echo "${ECHO_T}no" >&6; }
  14281. +fi
  14282. +
  14283. + else
  14284. + MAGIC_CMD=:
  14285. + fi
  14286. +fi
  14287. +
  14288. + fi
  14289. + ;;
  14290. +esac
  14291. +
  14292. +enable_dlopen=no
  14293. +enable_win32_dll=no
  14294. +
  14295. +# Check whether --enable-libtool-lock was given.
  14296. +if test "${enable_libtool_lock+set}" = set; then
  14297. + enableval=$enable_libtool_lock;
  14298. +fi
  14299. +
  14300. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  14301. +
  14302. +
  14303. +# Check whether --with-pic was given.
  14304. +if test "${with_pic+set}" = set; then
  14305. + withval=$with_pic; pic_mode="$withval"
  14306. +else
  14307. + pic_mode=default
  14308. +fi
  14309. +
  14310. +test -z "$pic_mode" && pic_mode=default
  14311. +
  14312. +# Use C for the default configuration in the libtool script
  14313. +tagname=
  14314. +lt_save_CC="$CC"
  14315. +ac_ext=c
  14316. +ac_cpp='$CPP $CPPFLAGS'
  14317. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14318. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14319. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14320. +
  14321. +
  14322. +# Source file extension for C test sources.
  14323. +ac_ext=c
  14324. +
  14325. +# Object file extension for compiled C test sources.
  14326. +objext=o
  14327. +objext=$objext
  14328. +
  14329. +# Code to be used in simple compile tests
  14330. +lt_simple_compile_test_code="int some_variable = 0;\n"
  14331. +
  14332. +# Code to be used in simple link tests
  14333. +lt_simple_link_test_code='int main(){return(0);}\n'
  14334. +
  14335. +
  14336. +# If no C compiler was specified, use CC.
  14337. +LTCC=${LTCC-"$CC"}
  14338. +
  14339. +# If no C compiler flags were specified, use CFLAGS.
  14340. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14341. +
  14342. +# Allow CC to be a program name with arguments.
  14343. +compiler=$CC
  14344. +
  14345. +
  14346. +# save warnings/boilerplate of simple test code
  14347. +ac_outfile=conftest.$ac_objext
  14348. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14349. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14350. +_lt_compiler_boilerplate=`cat conftest.err`
  14351. +$rm conftest*
  14352. +
  14353. +ac_outfile=conftest.$ac_objext
  14354. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14355. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14356. +_lt_linker_boilerplate=`cat conftest.err`
  14357. +$rm conftest*
  14358. +
  14359. +
  14360. +
  14361. +lt_prog_compiler_no_builtin_flag=
  14362. +
  14363. +if test "$GCC" = yes; then
  14364. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  14365. +
  14366. +
  14367. +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14368. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14369. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14370. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14371. +else
  14372. + lt_cv_prog_compiler_rtti_exceptions=no
  14373. + ac_outfile=conftest.$ac_objext
  14374. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14375. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  14376. + # Insert the option either (1) after the last *FLAGS variable, or
  14377. + # (2) before a word containing "conftest.", or (3) at the end.
  14378. + # Note that $ac_compile itself does not contain backslashes and begins
  14379. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  14380. + # The option is referenced via a variable to avoid confusing sed.
  14381. + lt_compile=`echo "$ac_compile" | $SED \
  14382. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14383. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14384. + -e 's:$: $lt_compiler_flag:'`
  14385. + (eval echo "\"\$as_me:7412: $lt_compile\"" >&5)
  14386. + (eval "$lt_compile" 2>conftest.err)
  14387. + ac_status=$?
  14388. + cat conftest.err >&5
  14389. + echo "$as_me:7416: \$? = $ac_status" >&5
  14390. + if (exit $ac_status) && test -s "$ac_outfile"; then
  14391. + # The compiler can only warn and ignore the option if not recognized
  14392. + # So say no if there are warnings other than the usual output.
  14393. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14394. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14395. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14396. + lt_cv_prog_compiler_rtti_exceptions=yes
  14397. + fi
  14398. + fi
  14399. + $rm conftest*
  14400. +
  14401. +fi
  14402. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14403. +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14404. +
  14405. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14406. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  14407. +else
  14408. + :
  14409. +fi
  14410. +
  14411. +fi
  14412. +
  14413. +lt_prog_compiler_wl=
  14414. +lt_prog_compiler_pic=
  14415. +lt_prog_compiler_static=
  14416. +
  14417. +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14418. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14419. +
  14420. + if test "$GCC" = yes; then
  14421. + lt_prog_compiler_wl='-Wl,'
  14422. + lt_prog_compiler_static='-static'
  14423. +
  14424. + case $host_os in
  14425. + aix*)
  14426. + # All AIX code is PIC.
  14427. + if test "$host_cpu" = ia64; then
  14428. + # AIX 5 now supports IA64 processor
  14429. + lt_prog_compiler_static='-Bstatic'
  14430. + fi
  14431. + ;;
  14432. +
  14433. + amigaos*)
  14434. + # FIXME: we need at least 68020 code to build shared libraries, but
  14435. + # adding the `-m68020' flag to GCC prevents building anything better,
  14436. + # like `-m68040'.
  14437. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  14438. + ;;
  14439. +
  14440. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14441. + # PIC is the default for these OSes.
  14442. + ;;
  14443. +
  14444. + mingw* | pw32* | os2*)
  14445. + # This hack is so that the source file can tell whether it is being
  14446. + # built for inclusion in a dll (and should export symbols for example).
  14447. + lt_prog_compiler_pic='-DDLL_EXPORT'
  14448. + ;;
  14449. +
  14450. + darwin* | rhapsody*)
  14451. + # PIC is the default on this platform
  14452. + # Common symbols not allowed in MH_DYLIB files
  14453. + lt_prog_compiler_pic='-fno-common'
  14454. + ;;
  14455. +
  14456. + interix3*)
  14457. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14458. + # Instead, we relocate shared libraries at runtime.
  14459. + ;;
  14460. +
  14461. + msdosdjgpp*)
  14462. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  14463. + # on systems that don't support them.
  14464. + lt_prog_compiler_can_build_shared=no
  14465. + enable_shared=no
  14466. + ;;
  14467. +
  14468. + sysv4*MP*)
  14469. + if test -d /usr/nec; then
  14470. + lt_prog_compiler_pic=-Kconform_pic
  14471. + fi
  14472. + ;;
  14473. +
  14474. + hpux*)
  14475. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14476. + # not for PA HP-UX.
  14477. + case $host_cpu in
  14478. + hppa*64*|ia64*)
  14479. + # +Z the default
  14480. + ;;
  14481. + *)
  14482. + lt_prog_compiler_pic='-fPIC'
  14483. + ;;
  14484. + esac
  14485. + ;;
  14486. +
  14487. + *)
  14488. + lt_prog_compiler_pic='-fPIC'
  14489. + ;;
  14490. + esac
  14491. + else
  14492. + # PORTME Check for flag to pass linker flags through the system compiler.
  14493. + case $host_os in
  14494. + aix*)
  14495. + lt_prog_compiler_wl='-Wl,'
  14496. + if test "$host_cpu" = ia64; then
  14497. + # AIX 5 now supports IA64 processor
  14498. + lt_prog_compiler_static='-Bstatic'
  14499. + else
  14500. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  14501. + fi
  14502. + ;;
  14503. + darwin*)
  14504. + # PIC is the default on this platform
  14505. + # Common symbols not allowed in MH_DYLIB files
  14506. + case $cc_basename in
  14507. + xlc*)
  14508. + lt_prog_compiler_pic='-qnocommon'
  14509. + lt_prog_compiler_wl='-Wl,'
  14510. + ;;
  14511. + esac
  14512. + ;;
  14513. +
  14514. + mingw* | pw32* | os2*)
  14515. + # This hack is so that the source file can tell whether it is being
  14516. + # built for inclusion in a dll (and should export symbols for example).
  14517. + lt_prog_compiler_pic='-DDLL_EXPORT'
  14518. + ;;
  14519. +
  14520. + hpux9* | hpux10* | hpux11*)
  14521. + lt_prog_compiler_wl='-Wl,'
  14522. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14523. + # not for PA HP-UX.
  14524. + case $host_cpu in
  14525. + hppa*64*|ia64*)
  14526. + # +Z the default
  14527. + ;;
  14528. + *)
  14529. + lt_prog_compiler_pic='+Z'
  14530. + ;;
  14531. + esac
  14532. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14533. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  14534. + ;;
  14535. +
  14536. + irix5* | irix6* | nonstopux*)
  14537. + lt_prog_compiler_wl='-Wl,'
  14538. + # PIC (with -KPIC) is the default.
  14539. + lt_prog_compiler_static='-non_shared'
  14540. + ;;
  14541. +
  14542. + newsos6)
  14543. + lt_prog_compiler_pic='-KPIC'
  14544. + lt_prog_compiler_static='-Bstatic'
  14545. + ;;
  14546. +
  14547. + linux* | k*bsd*-gnu)
  14548. + case $cc_basename in
  14549. + icc* | ecc*)
  14550. + lt_prog_compiler_wl='-Wl,'
  14551. + lt_prog_compiler_pic='-KPIC'
  14552. + lt_prog_compiler_static='-static'
  14553. + ;;
  14554. + pgcc* | pgf77* | pgf90* | pgf95*)
  14555. + # Portland Group compilers (*not* the Pentium gcc compiler,
  14556. + # which looks to be a dead project)
  14557. + lt_prog_compiler_wl='-Wl,'
  14558. + lt_prog_compiler_pic='-fpic'
  14559. + lt_prog_compiler_static='-Bstatic'
  14560. + ;;
  14561. + ccc*)
  14562. + lt_prog_compiler_wl='-Wl,'
  14563. + # All Alpha code is PIC.
  14564. + lt_prog_compiler_static='-non_shared'
  14565. + ;;
  14566. + esac
  14567. + ;;
  14568. +
  14569. + osf3* | osf4* | osf5*)
  14570. + lt_prog_compiler_wl='-Wl,'
  14571. + # All OSF/1 code is PIC.
  14572. + lt_prog_compiler_static='-non_shared'
  14573. + ;;
  14574. +
  14575. + solaris*)
  14576. + lt_prog_compiler_pic='-KPIC'
  14577. + lt_prog_compiler_static='-Bstatic'
  14578. + case $cc_basename in
  14579. + f77* | f90* | f95*)
  14580. + lt_prog_compiler_wl='-Qoption ld ';;
  14581. + *)
  14582. + lt_prog_compiler_wl='-Wl,';;
  14583. + esac
  14584. + ;;
  14585. +
  14586. + sunos4*)
  14587. + lt_prog_compiler_wl='-Qoption ld '
  14588. + lt_prog_compiler_pic='-PIC'
  14589. + lt_prog_compiler_static='-Bstatic'
  14590. + ;;
  14591. +
  14592. + sysv4 | sysv4.2uw2* | sysv4.3*)
  14593. + lt_prog_compiler_wl='-Wl,'
  14594. + lt_prog_compiler_pic='-KPIC'
  14595. + lt_prog_compiler_static='-Bstatic'
  14596. + ;;
  14597. +
  14598. + sysv4*MP*)
  14599. + if test -d /usr/nec ;then
  14600. + lt_prog_compiler_pic='-Kconform_pic'
  14601. + lt_prog_compiler_static='-Bstatic'
  14602. + fi
  14603. + ;;
  14604. +
  14605. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14606. + lt_prog_compiler_wl='-Wl,'
  14607. + lt_prog_compiler_pic='-KPIC'
  14608. + lt_prog_compiler_static='-Bstatic'
  14609. + ;;
  14610. +
  14611. + unicos*)
  14612. + lt_prog_compiler_wl='-Wl,'
  14613. + lt_prog_compiler_can_build_shared=no
  14614. + ;;
  14615. +
  14616. + uts4*)
  14617. + lt_prog_compiler_pic='-pic'
  14618. + lt_prog_compiler_static='-Bstatic'
  14619. + ;;
  14620. +
  14621. + *)
  14622. + lt_prog_compiler_can_build_shared=no
  14623. + ;;
  14624. + esac
  14625. + fi
  14626. +
  14627. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  14628. +echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  14629. +
  14630. +#
  14631. +# Check to make sure the PIC flag actually works.
  14632. +#
  14633. +if test -n "$lt_prog_compiler_pic"; then
  14634. +
  14635. +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  14636. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  14637. +if test "${lt_prog_compiler_pic_works+set}" = set; then
  14638. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14639. +else
  14640. + lt_prog_compiler_pic_works=no
  14641. + ac_outfile=conftest.$ac_objext
  14642. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14643. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  14644. + # Insert the option either (1) after the last *FLAGS variable, or
  14645. + # (2) before a word containing "conftest.", or (3) at the end.
  14646. + # Note that $ac_compile itself does not contain backslashes and begins
  14647. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  14648. + # The option is referenced via a variable to avoid confusing sed.
  14649. + lt_compile=`echo "$ac_compile" | $SED \
  14650. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14651. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14652. + -e 's:$: $lt_compiler_flag:'`
  14653. + (eval echo "\"\$as_me:7680: $lt_compile\"" >&5)
  14654. + (eval "$lt_compile" 2>conftest.err)
  14655. + ac_status=$?
  14656. + cat conftest.err >&5
  14657. + echo "$as_me:7684: \$? = $ac_status" >&5
  14658. + if (exit $ac_status) && test -s "$ac_outfile"; then
  14659. + # The compiler can only warn and ignore the option if not recognized
  14660. + # So say no if there are warnings other than the usual output.
  14661. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14662. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14663. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14664. + lt_prog_compiler_pic_works=yes
  14665. + fi
  14666. + fi
  14667. + $rm conftest*
  14668. +
  14669. +fi
  14670. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  14671. +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  14672. +
  14673. +if test x"$lt_prog_compiler_pic_works" = xyes; then
  14674. + case $lt_prog_compiler_pic in
  14675. + "" | " "*) ;;
  14676. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  14677. + esac
  14678. +else
  14679. + lt_prog_compiler_pic=
  14680. + lt_prog_compiler_can_build_shared=no
  14681. +fi
  14682. +
  14683. +fi
  14684. +case $host_os in
  14685. + # For platforms which do not support PIC, -DPIC is meaningless:
  14686. + *djgpp*)
  14687. + lt_prog_compiler_pic=
  14688. + ;;
  14689. + *)
  14690. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  14691. + ;;
  14692. +esac
  14693. +
  14694. +#
  14695. +# Check to make sure the static flag actually works.
  14696. +#
  14697. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  14698. +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14699. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14700. +if test "${lt_prog_compiler_static_works+set}" = set; then
  14701. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14702. +else
  14703. + lt_prog_compiler_static_works=no
  14704. + save_LDFLAGS="$LDFLAGS"
  14705. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14706. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14707. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14708. + # The linker can only warn and ignore the option if not recognized
  14709. + # So say no if there are warnings
  14710. + if test -s conftest.err; then
  14711. + # Append any errors to the config.log.
  14712. + cat conftest.err 1>&5
  14713. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14714. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14715. + if diff conftest.exp conftest.er2 >/dev/null; then
  14716. + lt_prog_compiler_static_works=yes
  14717. + fi
  14718. + else
  14719. + lt_prog_compiler_static_works=yes
  14720. + fi
  14721. + fi
  14722. + $rm conftest*
  14723. + LDFLAGS="$save_LDFLAGS"
  14724. +
  14725. +fi
  14726. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  14727. +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  14728. +
  14729. +if test x"$lt_prog_compiler_static_works" = xyes; then
  14730. + :
  14731. +else
  14732. + lt_prog_compiler_static=
  14733. +fi
  14734. +
  14735. +
  14736. +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14737. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14738. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  14739. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14740. +else
  14741. + lt_cv_prog_compiler_c_o=no
  14742. + $rm -r conftest 2>/dev/null
  14743. + mkdir conftest
  14744. + cd conftest
  14745. + mkdir out
  14746. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14747. +
  14748. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  14749. + # Insert the option either (1) after the last *FLAGS variable, or
  14750. + # (2) before a word containing "conftest.", or (3) at the end.
  14751. + # Note that $ac_compile itself does not contain backslashes and begins
  14752. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  14753. + lt_compile=`echo "$ac_compile" | $SED \
  14754. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14755. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14756. + -e 's:$: $lt_compiler_flag:'`
  14757. + (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
  14758. + (eval "$lt_compile" 2>out/conftest.err)
  14759. + ac_status=$?
  14760. + cat out/conftest.err >&5
  14761. + echo "$as_me:7788: \$? = $ac_status" >&5
  14762. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14763. + then
  14764. + # The compiler can only warn and ignore the option if not recognized
  14765. + # So say no if there are warnings
  14766. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14767. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14768. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14769. + lt_cv_prog_compiler_c_o=yes
  14770. + fi
  14771. + fi
  14772. + chmod u+w . 2>&5
  14773. + $rm conftest*
  14774. + # SGI C++ compiler will create directory out/ii_files/ for
  14775. + # template instantiation
  14776. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14777. + $rm out/* && rmdir out
  14778. + cd ..
  14779. + rmdir conftest
  14780. + $rm conftest*
  14781. +
  14782. +fi
  14783. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  14784. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  14785. +
  14786. +
  14787. +hard_links="nottested"
  14788. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  14789. + # do not overwrite the value of need_locks provided by the user
  14790. + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14791. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14792. + hard_links=yes
  14793. + $rm conftest*
  14794. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14795. + touch conftest.a
  14796. + ln conftest.a conftest.b 2>&5 || hard_links=no
  14797. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14798. + { echo "$as_me:$LINENO: result: $hard_links" >&5
  14799. +echo "${ECHO_T}$hard_links" >&6; }
  14800. + if test "$hard_links" = no; then
  14801. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14802. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14803. + need_locks=warn
  14804. + fi
  14805. +else
  14806. + need_locks=no
  14807. +fi
  14808. +
  14809. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14810. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14811. +
  14812. + runpath_var=
  14813. + allow_undefined_flag=
  14814. + enable_shared_with_static_runtimes=no
  14815. + archive_cmds=
  14816. + archive_expsym_cmds=
  14817. + old_archive_From_new_cmds=
  14818. + old_archive_from_expsyms_cmds=
  14819. + export_dynamic_flag_spec=
  14820. + whole_archive_flag_spec=
  14821. + thread_safe_flag_spec=
  14822. + hardcode_libdir_flag_spec=
  14823. + hardcode_libdir_flag_spec_ld=
  14824. + hardcode_libdir_separator=
  14825. + hardcode_direct=no
  14826. + hardcode_minus_L=no
  14827. + hardcode_shlibpath_var=unsupported
  14828. + link_all_deplibs=unknown
  14829. + hardcode_automatic=no
  14830. + module_cmds=
  14831. + module_expsym_cmds=
  14832. + always_export_symbols=no
  14833. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14834. + # include_expsyms should be a list of space-separated symbols to be *always*
  14835. + # included in the symbol list
  14836. + include_expsyms=
  14837. + # exclude_expsyms can be an extended regexp of symbols to exclude
  14838. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14839. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14840. + # as well as any symbol that contains `d'.
  14841. + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  14842. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14843. + # platforms (ab)use it in PIC code, but their linkers get confused if
  14844. + # the symbol is explicitly referenced. Since portable code cannot
  14845. + # rely on this symbol name, it's probably fine to never include it in
  14846. + # preloaded symbol tables.
  14847. + extract_expsyms_cmds=
  14848. + # Just being paranoid about ensuring that cc_basename is set.
  14849. + for cc_temp in $compiler""; do
  14850. + case $cc_temp in
  14851. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14852. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14853. + \-*) ;;
  14854. + *) break;;
  14855. + esac
  14856. +done
  14857. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14858. +
  14859. + case $host_os in
  14860. + cygwin* | mingw* | pw32*)
  14861. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14862. + # When not using gcc, we currently assume that we are using
  14863. + # Microsoft Visual C++.
  14864. + if test "$GCC" != yes; then
  14865. + with_gnu_ld=no
  14866. + fi
  14867. + ;;
  14868. + interix*)
  14869. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  14870. + with_gnu_ld=yes
  14871. + ;;
  14872. + openbsd*)
  14873. + with_gnu_ld=no
  14874. + ;;
  14875. + esac
  14876. +
  14877. + ld_shlibs=yes
  14878. + if test "$with_gnu_ld" = yes; then
  14879. + # If archive_cmds runs LD, not CC, wlarc should be empty
  14880. + wlarc='${wl}'
  14881. +
  14882. + # Set some defaults for GNU ld with shared library support. These
  14883. + # are reset later if shared libraries are not supported. Putting them
  14884. + # here allows them to be overridden if necessary.
  14885. + runpath_var=LD_RUN_PATH
  14886. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  14887. + export_dynamic_flag_spec='${wl}--export-dynamic'
  14888. + # ancient GNU ld didn't support --whole-archive et. al.
  14889. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14890. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14891. + else
  14892. + whole_archive_flag_spec=
  14893. + fi
  14894. + supports_anon_versioning=no
  14895. + case `$LD -v 2>/dev/null` in
  14896. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14897. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14898. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14899. + *\ 2.11.*) ;; # other 2.11 versions
  14900. + *) supports_anon_versioning=yes ;;
  14901. + esac
  14902. +
  14903. + # See if GNU ld supports shared libraries.
  14904. + case $host_os in
  14905. + aix3* | aix4* | aix5*)
  14906. + # On AIX/PPC, the GNU linker is very broken
  14907. + if test "$host_cpu" != ia64; then
  14908. + ld_shlibs=no
  14909. + cat <<EOF 1>&2
  14910. +
  14911. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14912. +*** to be unable to reliably create shared libraries on AIX.
  14913. +*** Therefore, libtool is disabling shared libraries support. If you
  14914. +*** really care for shared libraries, you may want to modify your PATH
  14915. +*** so that a non-GNU linker is found, and then restart.
  14916. +
  14917. +EOF
  14918. + fi
  14919. + ;;
  14920. +
  14921. + amigaos*)
  14922. + 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)'
  14923. + hardcode_libdir_flag_spec='-L$libdir'
  14924. + hardcode_minus_L=yes
  14925. +
  14926. + # Samuel A. Falvo II <[email protected]> reports
  14927. + # that the semantics of dynamic libraries on AmigaOS, at least up
  14928. + # to version 4, is to share data among multiple programs linked
  14929. + # with the same dynamic library. Since this doesn't match the
  14930. + # behavior of shared libraries on other platforms, we can't use
  14931. + # them.
  14932. + ld_shlibs=no
  14933. + ;;
  14934. +
  14935. + beos*)
  14936. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14937. + allow_undefined_flag=unsupported
  14938. + # Joseph Beckenbach <[email protected]> says some releases of gcc
  14939. + # support --undefined. This deserves some investigation. FIXME
  14940. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14941. + else
  14942. + ld_shlibs=no
  14943. + fi
  14944. + ;;
  14945. +
  14946. + cygwin* | mingw* | pw32*)
  14947. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  14948. + # as there is no search path for DLLs.
  14949. + hardcode_libdir_flag_spec='-L$libdir'
  14950. + allow_undefined_flag=unsupported
  14951. + always_export_symbols=no
  14952. + enable_shared_with_static_runtimes=yes
  14953. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14954. +
  14955. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14956. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14957. + # If the export-symbols file already is a .def file (1st line
  14958. + # is EXPORTS), use it as is; otherwise, prepend...
  14959. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14960. + cp $export_symbols $output_objdir/$soname.def;
  14961. + else
  14962. + echo EXPORTS > $output_objdir/$soname.def;
  14963. + cat $export_symbols >> $output_objdir/$soname.def;
  14964. + fi~
  14965. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14966. + else
  14967. + ld_shlibs=no
  14968. + fi
  14969. + ;;
  14970. +
  14971. + interix3*)
  14972. + hardcode_direct=no
  14973. + hardcode_shlibpath_var=no
  14974. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  14975. + export_dynamic_flag_spec='${wl}-E'
  14976. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14977. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  14978. + # default) and relocated if they conflict, which is a slow very memory
  14979. + # consuming and fragmenting process. To avoid this, we pick a random,
  14980. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14981. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14982. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14983. + 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'
  14984. + ;;
  14985. +
  14986. + linux* | k*bsd*-gnu)
  14987. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14988. + tmp_addflag=
  14989. + case $cc_basename,$host_cpu in
  14990. + pgcc*) # Portland Group C compiler
  14991. + 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'
  14992. + tmp_addflag=' $pic_flag'
  14993. + ;;
  14994. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14995. + 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'
  14996. + tmp_addflag=' $pic_flag -Mnomain' ;;
  14997. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14998. + tmp_addflag=' -i_dynamic' ;;
  14999. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15000. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  15001. + ifc* | ifort*) # Intel Fortran compiler
  15002. + tmp_addflag=' -nofor_main' ;;
  15003. + esac
  15004. + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15005. +
  15006. + if test $supports_anon_versioning = yes; then
  15007. + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  15008. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15009. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  15010. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15011. + fi
  15012. + link_all_deplibs=no
  15013. + else
  15014. + ld_shlibs=no
  15015. + fi
  15016. + ;;
  15017. +
  15018. + netbsd* | netbsdelf*-gnu)
  15019. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15020. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15021. + wlarc=
  15022. + else
  15023. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15024. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15025. + fi
  15026. + ;;
  15027. +
  15028. + solaris*)
  15029. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15030. + ld_shlibs=no
  15031. + cat <<EOF 1>&2
  15032. +
  15033. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15034. +*** create shared libraries on Solaris systems. Therefore, libtool
  15035. +*** is disabling shared libraries support. We urge you to upgrade GNU
  15036. +*** binutils to release 2.9.1 or newer. Another option is to modify
  15037. +*** your PATH or compiler configuration so that the native linker is
  15038. +*** used, and then restart.
  15039. +
  15040. +EOF
  15041. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15042. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15043. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15044. + else
  15045. + ld_shlibs=no
  15046. + fi
  15047. + ;;
  15048. +
  15049. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15050. + case `$LD -v 2>&1` in
  15051. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15052. + ld_shlibs=no
  15053. + cat <<_LT_EOF 1>&2
  15054. +
  15055. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15056. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  15057. +*** is disabling shared libraries support. We urge you to upgrade GNU
  15058. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15059. +*** your PATH or compiler configuration so that the native linker is
  15060. +*** used, and then restart.
  15061. +
  15062. +_LT_EOF
  15063. + ;;
  15064. + *)
  15065. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15066. + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15067. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15068. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15069. + else
  15070. + ld_shlibs=no
  15071. + fi
  15072. + ;;
  15073. + esac
  15074. + ;;
  15075. +
  15076. + sunos4*)
  15077. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15078. + wlarc=
  15079. + hardcode_direct=yes
  15080. + hardcode_shlibpath_var=no
  15081. + ;;
  15082. +
  15083. + *)
  15084. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15085. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15086. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15087. + else
  15088. + ld_shlibs=no
  15089. + fi
  15090. + ;;
  15091. + esac
  15092. +
  15093. + if test "$ld_shlibs" = no; then
  15094. + runpath_var=
  15095. + hardcode_libdir_flag_spec=
  15096. + export_dynamic_flag_spec=
  15097. + whole_archive_flag_spec=
  15098. + fi
  15099. + else
  15100. + # PORTME fill in a description of your system's linker (not GNU ld)
  15101. + case $host_os in
  15102. + aix3*)
  15103. + allow_undefined_flag=unsupported
  15104. + always_export_symbols=yes
  15105. + 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'
  15106. + # Note: this linker hardcodes the directories in LIBPATH if there
  15107. + # are no directories specified by -L.
  15108. + hardcode_minus_L=yes
  15109. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15110. + # Neither direct hardcoding nor static linking is supported with a
  15111. + # broken collect2.
  15112. + hardcode_direct=unsupported
  15113. + fi
  15114. + ;;
  15115. +
  15116. + aix4* | aix5*)
  15117. + if test "$host_cpu" = ia64; then
  15118. + # On IA64, the linker does run time linking by default, so we don't
  15119. + # have to do anything special.
  15120. + aix_use_runtimelinking=no
  15121. + exp_sym_flag='-Bexport'
  15122. + no_entry_flag=""
  15123. + else
  15124. + # If we're using GNU nm, then we don't want the "-C" option.
  15125. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15126. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15127. + 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'
  15128. + else
  15129. + 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'
  15130. + fi
  15131. + aix_use_runtimelinking=no
  15132. +
  15133. + # Test if we are trying to use run time linking or normal
  15134. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15135. + # need to do runtime linking.
  15136. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15137. + for ld_flag in $LDFLAGS; do
  15138. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15139. + aix_use_runtimelinking=yes
  15140. + break
  15141. + fi
  15142. + done
  15143. + ;;
  15144. + esac
  15145. +
  15146. + exp_sym_flag='-bexport'
  15147. + no_entry_flag='-bnoentry'
  15148. + fi
  15149. +
  15150. + # When large executables or shared objects are built, AIX ld can
  15151. + # have problems creating the table of contents. If linking a library
  15152. + # or program results in "error TOC overflow" add -mminimal-toc to
  15153. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15154. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15155. +
  15156. + archive_cmds=''
  15157. + hardcode_direct=yes
  15158. + hardcode_libdir_separator=':'
  15159. + link_all_deplibs=yes
  15160. +
  15161. + if test "$GCC" = yes; then
  15162. + case $host_os in aix4.[012]|aix4.[012].*)
  15163. + # We only want to do this on AIX 4.2 and lower, the check
  15164. + # below for broken collect2 doesn't work under 4.3+
  15165. + collect2name=`${CC} -print-prog-name=collect2`
  15166. + if test -f "$collect2name" && \
  15167. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  15168. + then
  15169. + # We have reworked collect2
  15170. + hardcode_direct=yes
  15171. + else
  15172. + # We have old collect2
  15173. + hardcode_direct=unsupported
  15174. + # It fails to find uninstalled libraries when the uninstalled
  15175. + # path is not listed in the libpath. Setting hardcode_minus_L
  15176. + # to unsupported forces relinking
  15177. + hardcode_minus_L=yes
  15178. + hardcode_libdir_flag_spec='-L$libdir'
  15179. + hardcode_libdir_separator=
  15180. + fi
  15181. + ;;
  15182. + esac
  15183. + shared_flag='-shared'
  15184. + if test "$aix_use_runtimelinking" = yes; then
  15185. + shared_flag="$shared_flag "'${wl}-G'
  15186. + fi
  15187. + else
  15188. + # not using gcc
  15189. + if test "$host_cpu" = ia64; then
  15190. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15191. + # chokes on -Wl,-G. The following line is correct:
  15192. + shared_flag='-G'
  15193. + else
  15194. + if test "$aix_use_runtimelinking" = yes; then
  15195. + shared_flag='${wl}-G'
  15196. + else
  15197. + shared_flag='${wl}-bM:SRE'
  15198. + fi
  15199. + fi
  15200. + fi
  15201. +
  15202. + # It seems that -bexpall does not export symbols beginning with
  15203. + # underscore (_), so it is better to generate a list of symbols to export.
  15204. + always_export_symbols=yes
  15205. + if test "$aix_use_runtimelinking" = yes; then
  15206. + # Warning - without using the other runtime loading flags (-brtl),
  15207. + # -berok will link without error, but may produce a broken library.
  15208. + allow_undefined_flag='-berok'
  15209. + # Determine the default libpath from the value encoded in an empty executable.
  15210. + cat >conftest.$ac_ext <<_ACEOF
  15211. +/* confdefs.h. */
  15212. +_ACEOF
  15213. +cat confdefs.h >>conftest.$ac_ext
  15214. +cat >>conftest.$ac_ext <<_ACEOF
  15215. +/* end confdefs.h. */
  15216. +
  15217. +int
  15218. +main ()
  15219. +{
  15220. +
  15221. + ;
  15222. + return 0;
  15223. +}
  15224. +_ACEOF
  15225. +rm -f conftest.$ac_objext conftest$ac_exeext
  15226. +if { (ac_try="$ac_link"
  15227. +case "(($ac_try" in
  15228. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15229. + *) ac_try_echo=$ac_try;;
  15230. +esac
  15231. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15232. + (eval "$ac_link") 2>conftest.er1
  15233. + ac_status=$?
  15234. + grep -v '^ *+' conftest.er1 >conftest.err
  15235. + rm -f conftest.er1
  15236. + cat conftest.err >&5
  15237. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15238. + (exit $ac_status); } && {
  15239. + test -z "$ac_c_werror_flag" ||
  15240. + test ! -s conftest.err
  15241. + } && test -s conftest$ac_exeext &&
  15242. + $as_test_x conftest$ac_exeext; then
  15243. +
  15244. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15245. +}'`
  15246. +# Check for a 64-bit object if we didn't find anything.
  15247. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15248. +}'`; fi
  15249. +else
  15250. + echo "$as_me: failed program was:" >&5
  15251. +sed 's/^/| /' conftest.$ac_ext >&5
  15252. +
  15253. +
  15254. +fi
  15255. +
  15256. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15257. + conftest$ac_exeext conftest.$ac_ext
  15258. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15259. +
  15260. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  15261. + 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"
  15262. + else
  15263. + if test "$host_cpu" = ia64; then
  15264. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  15265. + allow_undefined_flag="-z nodefs"
  15266. + 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"
  15267. + else
  15268. + # Determine the default libpath from the value encoded in an empty executable.
  15269. + cat >conftest.$ac_ext <<_ACEOF
  15270. +/* confdefs.h. */
  15271. +_ACEOF
  15272. +cat confdefs.h >>conftest.$ac_ext
  15273. +cat >>conftest.$ac_ext <<_ACEOF
  15274. +/* end confdefs.h. */
  15275. +
  15276. +int
  15277. +main ()
  15278. +{
  15279. +
  15280. + ;
  15281. + return 0;
  15282. +}
  15283. +_ACEOF
  15284. +rm -f conftest.$ac_objext conftest$ac_exeext
  15285. +if { (ac_try="$ac_link"
  15286. +case "(($ac_try" in
  15287. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15288. + *) ac_try_echo=$ac_try;;
  15289. +esac
  15290. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15291. + (eval "$ac_link") 2>conftest.er1
  15292. + ac_status=$?
  15293. + grep -v '^ *+' conftest.er1 >conftest.err
  15294. + rm -f conftest.er1
  15295. + cat conftest.err >&5
  15296. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15297. + (exit $ac_status); } && {
  15298. + test -z "$ac_c_werror_flag" ||
  15299. + test ! -s conftest.err
  15300. + } && test -s conftest$ac_exeext &&
  15301. + $as_test_x conftest$ac_exeext; then
  15302. +
  15303. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15304. +}'`
  15305. +# Check for a 64-bit object if we didn't find anything.
  15306. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15307. +}'`; fi
  15308. +else
  15309. + echo "$as_me: failed program was:" >&5
  15310. +sed 's/^/| /' conftest.$ac_ext >&5
  15311. +
  15312. +
  15313. +fi
  15314. +
  15315. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15316. + conftest$ac_exeext conftest.$ac_ext
  15317. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15318. +
  15319. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  15320. + # Warning - without using the other run time loading flags,
  15321. + # -berok will link without error, but may produce a broken library.
  15322. + no_undefined_flag=' ${wl}-bernotok'
  15323. + allow_undefined_flag=' ${wl}-berok'
  15324. + # Exported symbols can be pulled into shared objects from archives
  15325. + whole_archive_flag_spec='$convenience'
  15326. + archive_cmds_need_lc=yes
  15327. + # This is similar to how AIX traditionally builds its shared libraries.
  15328. + 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'
  15329. + fi
  15330. + fi
  15331. + ;;
  15332. +
  15333. + amigaos*)
  15334. + 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)'
  15335. + hardcode_libdir_flag_spec='-L$libdir'
  15336. + hardcode_minus_L=yes
  15337. + # see comment about different semantics on the GNU ld section
  15338. + ld_shlibs=no
  15339. + ;;
  15340. +
  15341. + bsdi[45]*)
  15342. + export_dynamic_flag_spec=-rdynamic
  15343. + ;;
  15344. +
  15345. + cygwin* | mingw* | pw32*)
  15346. + # When not using gcc, we currently assume that we are using
  15347. + # Microsoft Visual C++.
  15348. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  15349. + # no search path for DLLs.
  15350. + hardcode_libdir_flag_spec=' '
  15351. + allow_undefined_flag=unsupported
  15352. + # Tell ltmain to make .lib files, not .a files.
  15353. + libext=lib
  15354. + # Tell ltmain to make .dll files, not .so files.
  15355. + shrext_cmds=".dll"
  15356. + # FIXME: Setting linknames here is a bad hack.
  15357. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15358. + # The linker will automatically build a .lib file if we build a DLL.
  15359. + old_archive_From_new_cmds='true'
  15360. + # FIXME: Should let the user specify the lib program.
  15361. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15362. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  15363. + enable_shared_with_static_runtimes=yes
  15364. + ;;
  15365. +
  15366. + darwin* | rhapsody*)
  15367. + case $host_os in
  15368. + rhapsody* | darwin1.[012])
  15369. + allow_undefined_flag='${wl}-undefined ${wl}suppress'
  15370. + ;;
  15371. + *) # Darwin 1.3 on
  15372. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15373. + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15374. + else
  15375. + case ${MACOSX_DEPLOYMENT_TARGET} in
  15376. + 10.[012])
  15377. + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15378. + ;;
  15379. + 10.*)
  15380. + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  15381. + ;;
  15382. + esac
  15383. + fi
  15384. + ;;
  15385. + esac
  15386. + archive_cmds_need_lc=no
  15387. + hardcode_direct=no
  15388. + hardcode_automatic=yes
  15389. + hardcode_shlibpath_var=unsupported
  15390. + whole_archive_flag_spec=''
  15391. + link_all_deplibs=yes
  15392. + if test "$GCC" = yes ; then
  15393. + output_verbose_link_cmd='echo'
  15394. + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15395. + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15396. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15397. + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15398. + 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}'
  15399. + else
  15400. + case $cc_basename in
  15401. + xlc*)
  15402. + output_verbose_link_cmd='echo'
  15403. + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15404. + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15405. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15406. + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15407. + 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}'
  15408. + ;;
  15409. + *)
  15410. + ld_shlibs=no
  15411. + ;;
  15412. + esac
  15413. + fi
  15414. + ;;
  15415. +
  15416. + dgux*)
  15417. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15418. + hardcode_libdir_flag_spec='-L$libdir'
  15419. + hardcode_shlibpath_var=no
  15420. + ;;
  15421. +
  15422. + freebsd1*)
  15423. + ld_shlibs=no
  15424. + ;;
  15425. +
  15426. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15427. + # support. Future versions do this automatically, but an explicit c++rt0.o
  15428. + # does not break anything, and helps significantly (at the cost of a little
  15429. + # extra space).
  15430. + freebsd2.2*)
  15431. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15432. + hardcode_libdir_flag_spec='-R$libdir'
  15433. + hardcode_direct=yes
  15434. + hardcode_shlibpath_var=no
  15435. + ;;
  15436. +
  15437. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15438. + freebsd2*)
  15439. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15440. + hardcode_direct=yes
  15441. + hardcode_minus_L=yes
  15442. + hardcode_shlibpath_var=no
  15443. + ;;
  15444. +
  15445. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15446. + freebsd* | dragonfly*)
  15447. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15448. + hardcode_libdir_flag_spec='-R$libdir'
  15449. + hardcode_direct=yes
  15450. + hardcode_shlibpath_var=no
  15451. + ;;
  15452. +
  15453. + hpux9*)
  15454. + if test "$GCC" = yes; then
  15455. + 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'
  15456. + else
  15457. + 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'
  15458. + fi
  15459. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  15460. + hardcode_libdir_separator=:
  15461. + hardcode_direct=yes
  15462. +
  15463. + # hardcode_minus_L: Not really in the search PATH,
  15464. + # but as the default location of the library.
  15465. + hardcode_minus_L=yes
  15466. + export_dynamic_flag_spec='${wl}-E'
  15467. + ;;
  15468. +
  15469. + hpux10*)
  15470. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15471. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15472. + else
  15473. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15474. + fi
  15475. + if test "$with_gnu_ld" = no; then
  15476. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  15477. + hardcode_libdir_separator=:
  15478. +
  15479. + hardcode_direct=yes
  15480. + export_dynamic_flag_spec='${wl}-E'
  15481. +
  15482. + # hardcode_minus_L: Not really in the search PATH,
  15483. + # but as the default location of the library.
  15484. + hardcode_minus_L=yes
  15485. + fi
  15486. + ;;
  15487. +
  15488. + hpux11*)
  15489. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15490. + case $host_cpu in
  15491. + hppa*64*)
  15492. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15493. + ;;
  15494. + ia64*)
  15495. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15496. + ;;
  15497. + *)
  15498. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15499. + ;;
  15500. + esac
  15501. + else
  15502. + case $host_cpu in
  15503. + hppa*64*)
  15504. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15505. + ;;
  15506. + ia64*)
  15507. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15508. + ;;
  15509. + *)
  15510. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15511. + ;;
  15512. + esac
  15513. + fi
  15514. + if test "$with_gnu_ld" = no; then
  15515. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  15516. + hardcode_libdir_separator=:
  15517. +
  15518. + case $host_cpu in
  15519. + hppa*64*|ia64*)
  15520. + hardcode_libdir_flag_spec_ld='+b $libdir'
  15521. + hardcode_direct=no
  15522. + hardcode_shlibpath_var=no
  15523. + ;;
  15524. + *)
  15525. + hardcode_direct=yes
  15526. + export_dynamic_flag_spec='${wl}-E'
  15527. +
  15528. + # hardcode_minus_L: Not really in the search PATH,
  15529. + # but as the default location of the library.
  15530. + hardcode_minus_L=yes
  15531. + ;;
  15532. + esac
  15533. + fi
  15534. + ;;
  15535. +
  15536. + irix5* | irix6* | nonstopux*)
  15537. + if test "$GCC" = yes; then
  15538. + 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'
  15539. + else
  15540. + 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'
  15541. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  15542. + fi
  15543. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15544. + hardcode_libdir_separator=:
  15545. + link_all_deplibs=yes
  15546. + ;;
  15547. +
  15548. + netbsd* | netbsdelf*-gnu)
  15549. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15550. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15551. + else
  15552. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15553. + fi
  15554. + hardcode_libdir_flag_spec='-R$libdir'
  15555. + hardcode_direct=yes
  15556. + hardcode_shlibpath_var=no
  15557. + ;;
  15558. +
  15559. + newsos6)
  15560. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15561. + hardcode_direct=yes
  15562. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15563. + hardcode_libdir_separator=:
  15564. + hardcode_shlibpath_var=no
  15565. + ;;
  15566. +
  15567. + openbsd*)
  15568. + hardcode_direct=yes
  15569. + hardcode_shlibpath_var=no
  15570. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15571. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15572. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15573. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15574. + export_dynamic_flag_spec='${wl}-E'
  15575. + else
  15576. + case $host_os in
  15577. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15578. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15579. + hardcode_libdir_flag_spec='-R$libdir'
  15580. + ;;
  15581. + *)
  15582. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15583. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15584. + ;;
  15585. + esac
  15586. + fi
  15587. + ;;
  15588. +
  15589. + os2*)
  15590. + hardcode_libdir_flag_spec='-L$libdir'
  15591. + hardcode_minus_L=yes
  15592. + allow_undefined_flag=unsupported
  15593. + 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'
  15594. + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15595. + ;;
  15596. +
  15597. + osf3*)
  15598. + if test "$GCC" = yes; then
  15599. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  15600. + 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'
  15601. + else
  15602. + allow_undefined_flag=' -expect_unresolved \*'
  15603. + 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'
  15604. + fi
  15605. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15606. + hardcode_libdir_separator=:
  15607. + ;;
  15608. +
  15609. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  15610. + if test "$GCC" = yes; then
  15611. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  15612. + 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'
  15613. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15614. + else
  15615. + allow_undefined_flag=' -expect_unresolved \*'
  15616. + 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'
  15617. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15618. + $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'
  15619. +
  15620. + # Both c and cxx compiler support -rpath directly
  15621. + hardcode_libdir_flag_spec='-rpath $libdir'
  15622. + fi
  15623. + hardcode_libdir_separator=:
  15624. + ;;
  15625. +
  15626. + solaris*)
  15627. + no_undefined_flag=' -z text'
  15628. + if test "$GCC" = yes; then
  15629. + wlarc='${wl}'
  15630. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15631. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15632. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15633. + else
  15634. + wlarc=''
  15635. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15636. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15637. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15638. + fi
  15639. + hardcode_libdir_flag_spec='-R$libdir'
  15640. + hardcode_shlibpath_var=no
  15641. + case $host_os in
  15642. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  15643. + *)
  15644. + # The compiler driver will combine linker options so we
  15645. + # cannot just pass the convience library names through
  15646. + # without $wl, iff we do not link with $LD.
  15647. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  15648. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  15649. + case $wlarc in
  15650. + '')
  15651. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  15652. + *)
  15653. + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  15654. + esac ;;
  15655. + esac
  15656. + link_all_deplibs=yes
  15657. + ;;
  15658. +
  15659. + sunos4*)
  15660. + if test "x$host_vendor" = xsequent; then
  15661. + # Use $CC to link under sequent, because it throws in some extra .o
  15662. + # files that make .init and .fini sections work.
  15663. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15664. + else
  15665. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15666. + fi
  15667. + hardcode_libdir_flag_spec='-L$libdir'
  15668. + hardcode_direct=yes
  15669. + hardcode_minus_L=yes
  15670. + hardcode_shlibpath_var=no
  15671. + ;;
  15672. +
  15673. + sysv4)
  15674. + case $host_vendor in
  15675. + sni)
  15676. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15677. + hardcode_direct=yes # is this really true???
  15678. + ;;
  15679. + siemens)
  15680. + ## LD is ld it makes a PLAMLIB
  15681. + ## CC just makes a GrossModule.
  15682. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15683. + reload_cmds='$CC -r -o $output$reload_objs'
  15684. + hardcode_direct=no
  15685. + ;;
  15686. + motorola)
  15687. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15688. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  15689. + ;;
  15690. + esac
  15691. + runpath_var='LD_RUN_PATH'
  15692. + hardcode_shlibpath_var=no
  15693. + ;;
  15694. +
  15695. + sysv4.3*)
  15696. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15697. + hardcode_shlibpath_var=no
  15698. + export_dynamic_flag_spec='-Bexport'
  15699. + ;;
  15700. +
  15701. + sysv4*MP*)
  15702. + if test -d /usr/nec; then
  15703. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15704. + hardcode_shlibpath_var=no
  15705. + runpath_var=LD_RUN_PATH
  15706. + hardcode_runpath_var=yes
  15707. + ld_shlibs=yes
  15708. + fi
  15709. + ;;
  15710. +
  15711. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15712. + no_undefined_flag='${wl}-z,text'
  15713. + archive_cmds_need_lc=no
  15714. + hardcode_shlibpath_var=no
  15715. + runpath_var='LD_RUN_PATH'
  15716. +
  15717. + if test "$GCC" = yes; then
  15718. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15719. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15720. + else
  15721. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15722. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15723. + fi
  15724. + ;;
  15725. +
  15726. + sysv5* | sco3.2v5* | sco5v6*)
  15727. + # Note: We can NOT use -z defs as we might desire, because we do not
  15728. + # link with -lc, and that would cause any symbols used from libc to
  15729. + # always be unresolved, which means just about no library would
  15730. + # ever link correctly. If we're not using GNU ld we use -z text
  15731. + # though, which does catch some bad symbols but isn't as heavy-handed
  15732. + # as -z defs.
  15733. + no_undefined_flag='${wl}-z,text'
  15734. + allow_undefined_flag='${wl}-z,nodefs'
  15735. + archive_cmds_need_lc=no
  15736. + hardcode_shlibpath_var=no
  15737. + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15738. + hardcode_libdir_separator=':'
  15739. + link_all_deplibs=yes
  15740. + export_dynamic_flag_spec='${wl}-Bexport'
  15741. + runpath_var='LD_RUN_PATH'
  15742. +
  15743. + if test "$GCC" = yes; then
  15744. + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15745. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15746. + else
  15747. + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15748. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15749. + fi
  15750. + ;;
  15751. +
  15752. + uts4*)
  15753. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15754. + hardcode_libdir_flag_spec='-L$libdir'
  15755. + hardcode_shlibpath_var=no
  15756. + ;;
  15757. +
  15758. + *)
  15759. + ld_shlibs=no
  15760. + ;;
  15761. + esac
  15762. + fi
  15763. +
  15764. +{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  15765. +echo "${ECHO_T}$ld_shlibs" >&6; }
  15766. +test "$ld_shlibs" = no && can_build_shared=no
  15767. +
  15768. +#
  15769. +# Do we need to explicitly link libc?
  15770. +#
  15771. +case "x$archive_cmds_need_lc" in
  15772. +x|xyes)
  15773. + # Assume -lc should be added
  15774. + archive_cmds_need_lc=yes
  15775. +
  15776. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  15777. + case $archive_cmds in
  15778. + *'~'*)
  15779. + # FIXME: we may have to deal with multi-command sequences.
  15780. + ;;
  15781. + '$CC '*)
  15782. + # Test whether the compiler implicitly links with -lc since on some
  15783. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15784. + # to ld, don't add -lc before -lgcc.
  15785. + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15786. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  15787. + $rm conftest*
  15788. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15789. +
  15790. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15791. + (eval $ac_compile) 2>&5
  15792. + ac_status=$?
  15793. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15794. + (exit $ac_status); } 2>conftest.err; then
  15795. + soname=conftest
  15796. + lib=conftest
  15797. + libobjs=conftest.$ac_objext
  15798. + deplibs=
  15799. + wl=$lt_prog_compiler_wl
  15800. + pic_flag=$lt_prog_compiler_pic
  15801. + compiler_flags=-v
  15802. + linker_flags=-v
  15803. + verstring=
  15804. + output_objdir=.
  15805. + libname=conftest
  15806. + lt_save_allow_undefined_flag=$allow_undefined_flag
  15807. + allow_undefined_flag=
  15808. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15809. + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15810. + ac_status=$?
  15811. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15812. + (exit $ac_status); }
  15813. + then
  15814. + archive_cmds_need_lc=no
  15815. + else
  15816. + archive_cmds_need_lc=yes
  15817. + fi
  15818. + allow_undefined_flag=$lt_save_allow_undefined_flag
  15819. + else
  15820. + cat conftest.err 1>&5
  15821. + fi
  15822. + $rm conftest*
  15823. + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  15824. +echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  15825. + ;;
  15826. + esac
  15827. + fi
  15828. + ;;
  15829. +esac
  15830. +
  15831. +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15832. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  15833. +library_names_spec=
  15834. +libname_spec='lib$name'
  15835. +soname_spec=
  15836. +shrext_cmds=".so"
  15837. +postinstall_cmds=
  15838. +postuninstall_cmds=
  15839. +finish_cmds=
  15840. +finish_eval=
  15841. +shlibpath_var=
  15842. +shlibpath_overrides_runpath=unknown
  15843. +version_type=none
  15844. +dynamic_linker="$host_os ld.so"
  15845. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15846. +if test "$GCC" = yes; then
  15847. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15848. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15849. + # if the path contains ";" then we assume it to be the separator
  15850. + # otherwise default to the standard path separator (i.e. ":") - it is
  15851. + # assumed that no part of a normal pathname contains ";" but that should
  15852. + # okay in the real world where ";" in dirpaths is itself problematic.
  15853. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15854. + else
  15855. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15856. + fi
  15857. +else
  15858. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15859. +fi
  15860. +need_lib_prefix=unknown
  15861. +hardcode_into_libs=no
  15862. +
  15863. +# when you set need_version to no, make sure it does not cause -set_version
  15864. +# flags to be left without arguments
  15865. +need_version=unknown
  15866. +
  15867. +case $host_os in
  15868. +aix3*)
  15869. + version_type=linux
  15870. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15871. + shlibpath_var=LIBPATH
  15872. +
  15873. + # AIX 3 has no versioning support, so we append a major version to the name.
  15874. + soname_spec='${libname}${release}${shared_ext}$major'
  15875. + ;;
  15876. +
  15877. +aix4* | aix5*)
  15878. + version_type=linux
  15879. + need_lib_prefix=no
  15880. + need_version=no
  15881. + hardcode_into_libs=yes
  15882. + if test "$host_cpu" = ia64; then
  15883. + # AIX 5 supports IA64
  15884. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15885. + shlibpath_var=LD_LIBRARY_PATH
  15886. + else
  15887. + # With GCC up to 2.95.x, collect2 would create an import file
  15888. + # for dependence libraries. The import file would start with
  15889. + # the line `#! .'. This would cause the generated library to
  15890. + # depend on `.', always an invalid library. This was fixed in
  15891. + # development snapshots of GCC prior to 3.0.
  15892. + case $host_os in
  15893. + aix4 | aix4.[01] | aix4.[01].*)
  15894. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15895. + echo ' yes '
  15896. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15897. + :
  15898. + else
  15899. + can_build_shared=no
  15900. + fi
  15901. + ;;
  15902. + esac
  15903. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15904. + # soname into executable. Probably we can add versioning support to
  15905. + # collect2, so additional links can be useful in future.
  15906. + if test "$aix_use_runtimelinking" = yes; then
  15907. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15908. + # instead of lib<name>.a to let people know that these are not
  15909. + # typical AIX shared libraries.
  15910. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15911. + else
  15912. + # We preserve .a as extension for shared libraries through AIX4.2
  15913. + # and later when we are not doing run time linking.
  15914. + library_names_spec='${libname}${release}.a $libname.a'
  15915. + soname_spec='${libname}${release}${shared_ext}$major'
  15916. + fi
  15917. + shlibpath_var=LIBPATH
  15918. + fi
  15919. + ;;
  15920. +
  15921. +amigaos*)
  15922. + library_names_spec='$libname.ixlibrary $libname.a'
  15923. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15924. + 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'
  15925. + ;;
  15926. +
  15927. +beos*)
  15928. + library_names_spec='${libname}${shared_ext}'
  15929. + dynamic_linker="$host_os ld.so"
  15930. + shlibpath_var=LIBRARY_PATH
  15931. + ;;
  15932. +
  15933. +bsdi[45]*)
  15934. + version_type=linux
  15935. + need_version=no
  15936. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15937. + soname_spec='${libname}${release}${shared_ext}$major'
  15938. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15939. + shlibpath_var=LD_LIBRARY_PATH
  15940. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15941. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15942. + # the default ld.so.conf also contains /usr/contrib/lib and
  15943. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15944. + # libtool to hard-code these into programs
  15945. + ;;
  15946. +
  15947. +cygwin* | mingw* | pw32*)
  15948. + version_type=windows
  15949. + shrext_cmds=".dll"
  15950. + need_version=no
  15951. + need_lib_prefix=no
  15952. +
  15953. + case $GCC,$host_os in
  15954. + yes,cygwin* | yes,mingw* | yes,pw32*)
  15955. + library_names_spec='$libname.dll.a'
  15956. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15957. + postinstall_cmds='base_file=`basename \${file}`~
  15958. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15959. + dldir=$destdir/`dirname \$dlpath`~
  15960. + test -d \$dldir || mkdir -p \$dldir~
  15961. + $install_prog $dir/$dlname \$dldir/$dlname~
  15962. + chmod a+x \$dldir/$dlname'
  15963. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15964. + dlpath=$dir/\$dldll~
  15965. + $rm \$dlpath'
  15966. + shlibpath_overrides_runpath=yes
  15967. +
  15968. + case $host_os in
  15969. + cygwin*)
  15970. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15971. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15972. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15973. + ;;
  15974. + mingw*)
  15975. + # MinGW DLLs use traditional 'lib' prefix
  15976. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15977. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15978. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15979. + # It is most probably a Windows format PATH printed by
  15980. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15981. + # path with ; separators, and with drive letters. We can handle the
  15982. + # drive letters (cygwin fileutils understands them), so leave them,
  15983. + # especially as we might pass files found there to a mingw objdump,
  15984. + # which wouldn't understand a cygwinified path. Ahh.
  15985. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15986. + else
  15987. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15988. + fi
  15989. + ;;
  15990. + pw32*)
  15991. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  15992. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15993. + ;;
  15994. + esac
  15995. + ;;
  15996. +
  15997. + *)
  15998. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15999. + ;;
  16000. + esac
  16001. + dynamic_linker='Win32 ld.exe'
  16002. + # FIXME: first we should search . and the directory the executable is in
  16003. + shlibpath_var=PATH
  16004. + ;;
  16005. +
  16006. +darwin* | rhapsody*)
  16007. + dynamic_linker="$host_os dyld"
  16008. + version_type=darwin
  16009. + need_lib_prefix=no
  16010. + need_version=no
  16011. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16012. + soname_spec='${libname}${release}${major}$shared_ext'
  16013. + shlibpath_overrides_runpath=yes
  16014. + shlibpath_var=DYLD_LIBRARY_PATH
  16015. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16016. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16017. + if test "$GCC" = yes; then
  16018. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  16019. + else
  16020. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16021. + fi
  16022. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16023. + ;;
  16024. +
  16025. +dgux*)
  16026. + version_type=linux
  16027. + need_lib_prefix=no
  16028. + need_version=no
  16029. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16030. + soname_spec='${libname}${release}${shared_ext}$major'
  16031. + shlibpath_var=LD_LIBRARY_PATH
  16032. + ;;
  16033. +
  16034. +freebsd1*)
  16035. + dynamic_linker=no
  16036. + ;;
  16037. +
  16038. +freebsd* | dragonfly*)
  16039. + # DragonFly does not have aout. When/if they implement a new
  16040. + # versioning mechanism, adjust this.
  16041. + if test -x /usr/bin/objformat; then
  16042. + objformat=`/usr/bin/objformat`
  16043. + else
  16044. + case $host_os in
  16045. + freebsd[123]*) objformat=aout ;;
  16046. + *) objformat=elf ;;
  16047. + esac
  16048. + fi
  16049. + version_type=freebsd-$objformat
  16050. + case $version_type in
  16051. + freebsd-elf*)
  16052. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16053. + need_version=no
  16054. + need_lib_prefix=no
  16055. + ;;
  16056. + freebsd-*)
  16057. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16058. + need_version=yes
  16059. + ;;
  16060. + esac
  16061. + shlibpath_var=LD_LIBRARY_PATH
  16062. + case $host_os in
  16063. + freebsd2*)
  16064. + shlibpath_overrides_runpath=yes
  16065. + ;;
  16066. + freebsd3.[01]* | freebsdelf3.[01]*)
  16067. + shlibpath_overrides_runpath=yes
  16068. + hardcode_into_libs=yes
  16069. + ;;
  16070. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16071. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16072. + shlibpath_overrides_runpath=no
  16073. + hardcode_into_libs=yes
  16074. + ;;
  16075. + freebsd*) # from 4.6 on
  16076. + shlibpath_overrides_runpath=yes
  16077. + hardcode_into_libs=yes
  16078. + ;;
  16079. + esac
  16080. + ;;
  16081. +
  16082. +gnu*)
  16083. + version_type=linux
  16084. + need_lib_prefix=no
  16085. + need_version=no
  16086. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16087. + soname_spec='${libname}${release}${shared_ext}$major'
  16088. + shlibpath_var=LD_LIBRARY_PATH
  16089. + hardcode_into_libs=yes
  16090. + ;;
  16091. +
  16092. +hpux9* | hpux10* | hpux11*)
  16093. + # Give a soname corresponding to the major version so that dld.sl refuses to
  16094. + # link against other versions.
  16095. + version_type=sunos
  16096. + need_lib_prefix=no
  16097. + need_version=no
  16098. + case $host_cpu in
  16099. + ia64*)
  16100. + shrext_cmds='.so'
  16101. + hardcode_into_libs=yes
  16102. + dynamic_linker="$host_os dld.so"
  16103. + shlibpath_var=LD_LIBRARY_PATH
  16104. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16105. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16106. + soname_spec='${libname}${release}${shared_ext}$major'
  16107. + if test "X$HPUX_IA64_MODE" = X32; then
  16108. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16109. + else
  16110. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16111. + fi
  16112. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16113. + ;;
  16114. + hppa*64*)
  16115. + shrext_cmds='.sl'
  16116. + hardcode_into_libs=yes
  16117. + dynamic_linker="$host_os dld.sl"
  16118. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16119. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16120. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16121. + soname_spec='${libname}${release}${shared_ext}$major'
  16122. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16123. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16124. + ;;
  16125. + *)
  16126. + shrext_cmds='.sl'
  16127. + dynamic_linker="$host_os dld.sl"
  16128. + shlibpath_var=SHLIB_PATH
  16129. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16130. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16131. + soname_spec='${libname}${release}${shared_ext}$major'
  16132. + ;;
  16133. + esac
  16134. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16135. + postinstall_cmds='chmod 555 $lib'
  16136. + ;;
  16137. +
  16138. +interix3*)
  16139. + version_type=linux
  16140. + need_lib_prefix=no
  16141. + need_version=no
  16142. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16143. + soname_spec='${libname}${release}${shared_ext}$major'
  16144. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16145. + shlibpath_var=LD_LIBRARY_PATH
  16146. + shlibpath_overrides_runpath=no
  16147. + hardcode_into_libs=yes
  16148. + ;;
  16149. +
  16150. +irix5* | irix6* | nonstopux*)
  16151. + case $host_os in
  16152. + nonstopux*) version_type=nonstopux ;;
  16153. + *)
  16154. + if test "$lt_cv_prog_gnu_ld" = yes; then
  16155. + version_type=linux
  16156. + else
  16157. + version_type=irix
  16158. + fi ;;
  16159. + esac
  16160. + need_lib_prefix=no
  16161. + need_version=no
  16162. + soname_spec='${libname}${release}${shared_ext}$major'
  16163. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16164. + case $host_os in
  16165. + irix5* | nonstopux*)
  16166. + libsuff= shlibsuff=
  16167. + ;;
  16168. + *)
  16169. + case $LD in # libtool.m4 will add one of these switches to LD
  16170. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16171. + libsuff= shlibsuff= libmagic=32-bit;;
  16172. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16173. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  16174. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16175. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16176. + *) libsuff= shlibsuff= libmagic=never-match;;
  16177. + esac
  16178. + ;;
  16179. + esac
  16180. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16181. + shlibpath_overrides_runpath=no
  16182. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16183. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16184. + hardcode_into_libs=yes
  16185. + ;;
  16186. +
  16187. +# No shared lib support for Linux oldld, aout, or coff.
  16188. +linux*oldld* | linux*aout* | linux*coff*)
  16189. + dynamic_linker=no
  16190. + ;;
  16191. +
  16192. +# This must be Linux ELF.
  16193. +linux* | k*bsd*-gnu)
  16194. + version_type=linux
  16195. + need_lib_prefix=no
  16196. + need_version=no
  16197. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16198. + soname_spec='${libname}${release}${shared_ext}$major'
  16199. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16200. + shlibpath_var=LD_LIBRARY_PATH
  16201. + shlibpath_overrides_runpath=no
  16202. + # This implies no fast_install, which is unacceptable.
  16203. + # Some rework will be needed to allow for fast_install
  16204. + # before this can be enabled.
  16205. + hardcode_into_libs=yes
  16206. +
  16207. + # Append ld.so.conf contents to the search path
  16208. + if test -f /etc/ld.so.conf; then
  16209. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16210. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16211. + fi
  16212. +
  16213. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  16214. + # powerpc, because MkLinux only supported shared libraries with the
  16215. + # GNU dynamic linker. Since this was broken with cross compilers,
  16216. + # most powerpc-linux boxes support dynamic linking these days and
  16217. + # people can always --disable-shared, the test was removed, and we
  16218. + # assume the GNU/Linux dynamic linker is in use.
  16219. + dynamic_linker='GNU/Linux ld.so'
  16220. + ;;
  16221. +
  16222. +netbsdelf*-gnu)
  16223. + version_type=linux
  16224. + need_lib_prefix=no
  16225. + need_version=no
  16226. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16227. + soname_spec='${libname}${release}${shared_ext}$major'
  16228. + shlibpath_var=LD_LIBRARY_PATH
  16229. + shlibpath_overrides_runpath=no
  16230. + hardcode_into_libs=yes
  16231. + dynamic_linker='NetBSD ld.elf_so'
  16232. + ;;
  16233. +
  16234. +netbsd*)
  16235. + version_type=sunos
  16236. + need_lib_prefix=no
  16237. + need_version=no
  16238. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16239. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16240. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16241. + dynamic_linker='NetBSD (a.out) ld.so'
  16242. + else
  16243. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16244. + soname_spec='${libname}${release}${shared_ext}$major'
  16245. + dynamic_linker='NetBSD ld.elf_so'
  16246. + fi
  16247. + shlibpath_var=LD_LIBRARY_PATH
  16248. + shlibpath_overrides_runpath=yes
  16249. + hardcode_into_libs=yes
  16250. + ;;
  16251. +
  16252. +newsos6)
  16253. + version_type=linux
  16254. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16255. + shlibpath_var=LD_LIBRARY_PATH
  16256. + shlibpath_overrides_runpath=yes
  16257. + ;;
  16258. +
  16259. +nto-qnx*)
  16260. + version_type=linux
  16261. + need_lib_prefix=no
  16262. + need_version=no
  16263. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16264. + soname_spec='${libname}${release}${shared_ext}$major'
  16265. + shlibpath_var=LD_LIBRARY_PATH
  16266. + shlibpath_overrides_runpath=yes
  16267. + ;;
  16268. +
  16269. +openbsd*)
  16270. + version_type=sunos
  16271. + sys_lib_dlsearch_path_spec="/usr/lib"
  16272. + need_lib_prefix=no
  16273. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16274. + case $host_os in
  16275. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16276. + *) need_version=no ;;
  16277. + esac
  16278. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16279. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16280. + shlibpath_var=LD_LIBRARY_PATH
  16281. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16282. + case $host_os in
  16283. + openbsd2.[89] | openbsd2.[89].*)
  16284. + shlibpath_overrides_runpath=no
  16285. + ;;
  16286. + *)
  16287. + shlibpath_overrides_runpath=yes
  16288. + ;;
  16289. + esac
  16290. + else
  16291. + shlibpath_overrides_runpath=yes
  16292. + fi
  16293. + ;;
  16294. +
  16295. +os2*)
  16296. + libname_spec='$name'
  16297. + shrext_cmds=".dll"
  16298. + need_lib_prefix=no
  16299. + library_names_spec='$libname${shared_ext} $libname.a'
  16300. + dynamic_linker='OS/2 ld.exe'
  16301. + shlibpath_var=LIBPATH
  16302. + ;;
  16303. +
  16304. +osf3* | osf4* | osf5*)
  16305. + version_type=osf
  16306. + need_lib_prefix=no
  16307. + need_version=no
  16308. + soname_spec='${libname}${release}${shared_ext}$major'
  16309. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16310. + shlibpath_var=LD_LIBRARY_PATH
  16311. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16312. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16313. + ;;
  16314. +
  16315. +solaris*)
  16316. + version_type=linux
  16317. + need_lib_prefix=no
  16318. + need_version=no
  16319. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16320. + soname_spec='${libname}${release}${shared_ext}$major'
  16321. + shlibpath_var=LD_LIBRARY_PATH
  16322. + shlibpath_overrides_runpath=yes
  16323. + hardcode_into_libs=yes
  16324. + # ldd complains unless libraries are executable
  16325. + postinstall_cmds='chmod +x $lib'
  16326. + ;;
  16327. +
  16328. +sunos4*)
  16329. + version_type=sunos
  16330. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16331. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16332. + shlibpath_var=LD_LIBRARY_PATH
  16333. + shlibpath_overrides_runpath=yes
  16334. + if test "$with_gnu_ld" = yes; then
  16335. + need_lib_prefix=no
  16336. + fi
  16337. + need_version=yes
  16338. + ;;
  16339. +
  16340. +sysv4 | sysv4.3*)
  16341. + version_type=linux
  16342. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16343. + soname_spec='${libname}${release}${shared_ext}$major'
  16344. + shlibpath_var=LD_LIBRARY_PATH
  16345. + case $host_vendor in
  16346. + sni)
  16347. + shlibpath_overrides_runpath=no
  16348. + need_lib_prefix=no
  16349. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  16350. + runpath_var=LD_RUN_PATH
  16351. + ;;
  16352. + siemens)
  16353. + need_lib_prefix=no
  16354. + ;;
  16355. + motorola)
  16356. + need_lib_prefix=no
  16357. + need_version=no
  16358. + shlibpath_overrides_runpath=no
  16359. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16360. + ;;
  16361. + esac
  16362. + ;;
  16363. +
  16364. +sysv4*MP*)
  16365. + if test -d /usr/nec ;then
  16366. + version_type=linux
  16367. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16368. + soname_spec='$libname${shared_ext}.$major'
  16369. + shlibpath_var=LD_LIBRARY_PATH
  16370. + fi
  16371. + ;;
  16372. +
  16373. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16374. + version_type=freebsd-elf
  16375. + need_lib_prefix=no
  16376. + need_version=no
  16377. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16378. + soname_spec='${libname}${release}${shared_ext}$major'
  16379. + shlibpath_var=LD_LIBRARY_PATH
  16380. + hardcode_into_libs=yes
  16381. + if test "$with_gnu_ld" = yes; then
  16382. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16383. + shlibpath_overrides_runpath=no
  16384. + else
  16385. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16386. + shlibpath_overrides_runpath=yes
  16387. + case $host_os in
  16388. + sco3.2v5*)
  16389. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16390. + ;;
  16391. + esac
  16392. + fi
  16393. + sys_lib_dlsearch_path_spec='/usr/lib'
  16394. + ;;
  16395. +
  16396. +uts4*)
  16397. + version_type=linux
  16398. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16399. + soname_spec='${libname}${release}${shared_ext}$major'
  16400. + shlibpath_var=LD_LIBRARY_PATH
  16401. + ;;
  16402. +
  16403. +*)
  16404. + dynamic_linker=no
  16405. + ;;
  16406. +esac
  16407. +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16408. +echo "${ECHO_T}$dynamic_linker" >&6; }
  16409. +test "$dynamic_linker" = no && can_build_shared=no
  16410. +
  16411. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16412. +if test "$GCC" = yes; then
  16413. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16414. +fi
  16415. +
  16416. +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16417. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16418. +hardcode_action=
  16419. +if test -n "$hardcode_libdir_flag_spec" || \
  16420. + test -n "$runpath_var" || \
  16421. + test "X$hardcode_automatic" = "Xyes" ; then
  16422. +
  16423. + # We can hardcode non-existant directories.
  16424. + if test "$hardcode_direct" != no &&
  16425. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16426. + # have to relink, otherwise we might link with an installed library
  16427. + # when we should be linking with a yet-to-be-installed one
  16428. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  16429. + test "$hardcode_minus_L" != no; then
  16430. + # Linking always hardcodes the temporary library directory.
  16431. + hardcode_action=relink
  16432. + else
  16433. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16434. + hardcode_action=immediate
  16435. + fi
  16436. +else
  16437. + # We cannot hardcode anything, or else we can only hardcode existing
  16438. + # directories.
  16439. + hardcode_action=unsupported
  16440. +fi
  16441. +{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  16442. +echo "${ECHO_T}$hardcode_action" >&6; }
  16443. +
  16444. +if test "$hardcode_action" = relink; then
  16445. + # Fast installation is not supported
  16446. + enable_fast_install=no
  16447. +elif test "$shlibpath_overrides_runpath" = yes ||
  16448. + test "$enable_shared" = no; then
  16449. + # Fast installation is not necessary
  16450. + enable_fast_install=needless
  16451. +fi
  16452. +
  16453. +striplib=
  16454. +old_striplib=
  16455. +{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16456. +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  16457. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16458. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16459. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16460. + { echo "$as_me:$LINENO: result: yes" >&5
  16461. +echo "${ECHO_T}yes" >&6; }
  16462. +else
  16463. +# FIXME - insert some real tests, host_os isn't really good enough
  16464. + case $host_os in
  16465. + darwin*)
  16466. + if test -n "$STRIP" ; then
  16467. + striplib="$STRIP -x"
  16468. + { echo "$as_me:$LINENO: result: yes" >&5
  16469. +echo "${ECHO_T}yes" >&6; }
  16470. + else
  16471. + { echo "$as_me:$LINENO: result: no" >&5
  16472. +echo "${ECHO_T}no" >&6; }
  16473. +fi
  16474. + ;;
  16475. + *)
  16476. + { echo "$as_me:$LINENO: result: no" >&5
  16477. +echo "${ECHO_T}no" >&6; }
  16478. + ;;
  16479. + esac
  16480. +fi
  16481. +
  16482. +if test "x$enable_dlopen" != xyes; then
  16483. + enable_dlopen=unknown
  16484. + enable_dlopen_self=unknown
  16485. + enable_dlopen_self_static=unknown
  16486. +else
  16487. + lt_cv_dlopen=no
  16488. + lt_cv_dlopen_libs=
  16489. +
  16490. + case $host_os in
  16491. + beos*)
  16492. + lt_cv_dlopen="load_add_on"
  16493. + lt_cv_dlopen_libs=
  16494. + lt_cv_dlopen_self=yes
  16495. + ;;
  16496. +
  16497. + mingw* | pw32*)
  16498. + lt_cv_dlopen="LoadLibrary"
  16499. + lt_cv_dlopen_libs=
  16500. + ;;
  16501. +
  16502. + cygwin*)
  16503. + lt_cv_dlopen="dlopen"
  16504. + lt_cv_dlopen_libs=
  16505. + ;;
  16506. +
  16507. + darwin*)
  16508. + # if libdl is installed we need to link against it
  16509. + { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16510. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16511. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16512. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16513. +else
  16514. + ac_check_lib_save_LIBS=$LIBS
  16515. +LIBS="-ldl $LIBS"
  16516. +cat >conftest.$ac_ext <<_ACEOF
  16517. +/* confdefs.h. */
  16518. +_ACEOF
  16519. +cat confdefs.h >>conftest.$ac_ext
  16520. +cat >>conftest.$ac_ext <<_ACEOF
  16521. +/* end confdefs.h. */
  16522. +
  16523. +/* Override any GCC internal prototype to avoid an error.
  16524. + Use char because int might match the return type of a GCC
  16525. + builtin and then its argument prototype would still apply. */
  16526. +#ifdef __cplusplus
  16527. +extern "C"
  16528. +#endif
  16529. +char dlopen ();
  16530. +int
  16531. +main ()
  16532. +{
  16533. +return dlopen ();
  16534. + ;
  16535. + return 0;
  16536. +}
  16537. +_ACEOF
  16538. +rm -f conftest.$ac_objext conftest$ac_exeext
  16539. +if { (ac_try="$ac_link"
  16540. +case "(($ac_try" in
  16541. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16542. + *) ac_try_echo=$ac_try;;
  16543. +esac
  16544. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16545. + (eval "$ac_link") 2>conftest.er1
  16546. + ac_status=$?
  16547. + grep -v '^ *+' conftest.er1 >conftest.err
  16548. + rm -f conftest.er1
  16549. + cat conftest.err >&5
  16550. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16551. + (exit $ac_status); } && {
  16552. + test -z "$ac_c_werror_flag" ||
  16553. + test ! -s conftest.err
  16554. + } && test -s conftest$ac_exeext &&
  16555. + $as_test_x conftest$ac_exeext; then
  16556. + ac_cv_lib_dl_dlopen=yes
  16557. +else
  16558. + echo "$as_me: failed program was:" >&5
  16559. +sed 's/^/| /' conftest.$ac_ext >&5
  16560. +
  16561. + ac_cv_lib_dl_dlopen=no
  16562. +fi
  16563. +
  16564. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16565. + conftest$ac_exeext conftest.$ac_ext
  16566. +LIBS=$ac_check_lib_save_LIBS
  16567. +fi
  16568. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16569. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  16570. +if test $ac_cv_lib_dl_dlopen = yes; then
  16571. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16572. +else
  16573. +
  16574. + lt_cv_dlopen="dyld"
  16575. + lt_cv_dlopen_libs=
  16576. + lt_cv_dlopen_self=yes
  16577. +
  16578. +fi
  16579. +
  16580. + ;;
  16581. +
  16582. + *)
  16583. + { echo "$as_me:$LINENO: checking for shl_load" >&5
  16584. +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  16585. +if test "${ac_cv_func_shl_load+set}" = set; then
  16586. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16587. +else
  16588. + cat >conftest.$ac_ext <<_ACEOF
  16589. +/* confdefs.h. */
  16590. +_ACEOF
  16591. +cat confdefs.h >>conftest.$ac_ext
  16592. +cat >>conftest.$ac_ext <<_ACEOF
  16593. +/* end confdefs.h. */
  16594. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  16595. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16596. +#define shl_load innocuous_shl_load
  16597. +
  16598. +/* System header to define __stub macros and hopefully few prototypes,
  16599. + which can conflict with char shl_load (); below.
  16600. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16601. + <limits.h> exists even on freestanding compilers. */
  16602. +
  16603. +#ifdef __STDC__
  16604. +# include <limits.h>
  16605. +#else
  16606. +# include <assert.h>
  16607. +#endif
  16608. +
  16609. +#undef shl_load
  16610. +
  16611. +/* Override any GCC internal prototype to avoid an error.
  16612. + Use char because int might match the return type of a GCC
  16613. + builtin and then its argument prototype would still apply. */
  16614. +#ifdef __cplusplus
  16615. +extern "C"
  16616. +#endif
  16617. +char shl_load ();
  16618. +/* The GNU C library defines this for functions which it implements
  16619. + to always fail with ENOSYS. Some functions are actually named
  16620. + something starting with __ and the normal name is an alias. */
  16621. +#if defined __stub_shl_load || defined __stub___shl_load
  16622. +choke me
  16623. +#endif
  16624. +
  16625. +int
  16626. +main ()
  16627. +{
  16628. +return shl_load ();
  16629. + ;
  16630. + return 0;
  16631. +}
  16632. +_ACEOF
  16633. +rm -f conftest.$ac_objext conftest$ac_exeext
  16634. +if { (ac_try="$ac_link"
  16635. +case "(($ac_try" in
  16636. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16637. + *) ac_try_echo=$ac_try;;
  16638. +esac
  16639. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16640. + (eval "$ac_link") 2>conftest.er1
  16641. + ac_status=$?
  16642. + grep -v '^ *+' conftest.er1 >conftest.err
  16643. + rm -f conftest.er1
  16644. + cat conftest.err >&5
  16645. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16646. + (exit $ac_status); } && {
  16647. + test -z "$ac_c_werror_flag" ||
  16648. + test ! -s conftest.err
  16649. + } && test -s conftest$ac_exeext &&
  16650. + $as_test_x conftest$ac_exeext; then
  16651. + ac_cv_func_shl_load=yes
  16652. +else
  16653. + echo "$as_me: failed program was:" >&5
  16654. +sed 's/^/| /' conftest.$ac_ext >&5
  16655. +
  16656. + ac_cv_func_shl_load=no
  16657. +fi
  16658. +
  16659. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16660. + conftest$ac_exeext conftest.$ac_ext
  16661. +fi
  16662. +{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  16663. +echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  16664. +if test $ac_cv_func_shl_load = yes; then
  16665. + lt_cv_dlopen="shl_load"
  16666. +else
  16667. + { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  16668. +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  16669. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  16670. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16671. +else
  16672. + ac_check_lib_save_LIBS=$LIBS
  16673. +LIBS="-ldld $LIBS"
  16674. +cat >conftest.$ac_ext <<_ACEOF
  16675. +/* confdefs.h. */
  16676. +_ACEOF
  16677. +cat confdefs.h >>conftest.$ac_ext
  16678. +cat >>conftest.$ac_ext <<_ACEOF
  16679. +/* end confdefs.h. */
  16680. +
  16681. +/* Override any GCC internal prototype to avoid an error.
  16682. + Use char because int might match the return type of a GCC
  16683. + builtin and then its argument prototype would still apply. */
  16684. +#ifdef __cplusplus
  16685. +extern "C"
  16686. +#endif
  16687. +char shl_load ();
  16688. +int
  16689. +main ()
  16690. +{
  16691. +return shl_load ();
  16692. + ;
  16693. + return 0;
  16694. +}
  16695. +_ACEOF
  16696. +rm -f conftest.$ac_objext conftest$ac_exeext
  16697. +if { (ac_try="$ac_link"
  16698. +case "(($ac_try" in
  16699. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16700. + *) ac_try_echo=$ac_try;;
  16701. +esac
  16702. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16703. + (eval "$ac_link") 2>conftest.er1
  16704. + ac_status=$?
  16705. + grep -v '^ *+' conftest.er1 >conftest.err
  16706. + rm -f conftest.er1
  16707. + cat conftest.err >&5
  16708. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16709. + (exit $ac_status); } && {
  16710. + test -z "$ac_c_werror_flag" ||
  16711. + test ! -s conftest.err
  16712. + } && test -s conftest$ac_exeext &&
  16713. + $as_test_x conftest$ac_exeext; then
  16714. + ac_cv_lib_dld_shl_load=yes
  16715. +else
  16716. + echo "$as_me: failed program was:" >&5
  16717. +sed 's/^/| /' conftest.$ac_ext >&5
  16718. +
  16719. + ac_cv_lib_dld_shl_load=no
  16720. +fi
  16721. +
  16722. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16723. + conftest$ac_exeext conftest.$ac_ext
  16724. +LIBS=$ac_check_lib_save_LIBS
  16725. +fi
  16726. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16727. +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  16728. +if test $ac_cv_lib_dld_shl_load = yes; then
  16729. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16730. +else
  16731. + { echo "$as_me:$LINENO: checking for dlopen" >&5
  16732. +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  16733. +if test "${ac_cv_func_dlopen+set}" = set; then
  16734. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16735. +else
  16736. + cat >conftest.$ac_ext <<_ACEOF
  16737. +/* confdefs.h. */
  16738. +_ACEOF
  16739. +cat confdefs.h >>conftest.$ac_ext
  16740. +cat >>conftest.$ac_ext <<_ACEOF
  16741. +/* end confdefs.h. */
  16742. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16743. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16744. +#define dlopen innocuous_dlopen
  16745. +
  16746. +/* System header to define __stub macros and hopefully few prototypes,
  16747. + which can conflict with char dlopen (); below.
  16748. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16749. + <limits.h> exists even on freestanding compilers. */
  16750. +
  16751. +#ifdef __STDC__
  16752. +# include <limits.h>
  16753. +#else
  16754. +# include <assert.h>
  16755. +#endif
  16756. +
  16757. +#undef dlopen
  16758. +
  16759. +/* Override any GCC internal prototype to avoid an error.
  16760. + Use char because int might match the return type of a GCC
  16761. + builtin and then its argument prototype would still apply. */
  16762. +#ifdef __cplusplus
  16763. +extern "C"
  16764. +#endif
  16765. +char dlopen ();
  16766. +/* The GNU C library defines this for functions which it implements
  16767. + to always fail with ENOSYS. Some functions are actually named
  16768. + something starting with __ and the normal name is an alias. */
  16769. +#if defined __stub_dlopen || defined __stub___dlopen
  16770. +choke me
  16771. +#endif
  16772. +
  16773. +int
  16774. +main ()
  16775. +{
  16776. +return dlopen ();
  16777. + ;
  16778. + return 0;
  16779. +}
  16780. +_ACEOF
  16781. +rm -f conftest.$ac_objext conftest$ac_exeext
  16782. +if { (ac_try="$ac_link"
  16783. +case "(($ac_try" in
  16784. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16785. + *) ac_try_echo=$ac_try;;
  16786. +esac
  16787. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16788. + (eval "$ac_link") 2>conftest.er1
  16789. + ac_status=$?
  16790. + grep -v '^ *+' conftest.er1 >conftest.err
  16791. + rm -f conftest.er1
  16792. + cat conftest.err >&5
  16793. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16794. + (exit $ac_status); } && {
  16795. + test -z "$ac_c_werror_flag" ||
  16796. + test ! -s conftest.err
  16797. + } && test -s conftest$ac_exeext &&
  16798. + $as_test_x conftest$ac_exeext; then
  16799. + ac_cv_func_dlopen=yes
  16800. +else
  16801. + echo "$as_me: failed program was:" >&5
  16802. +sed 's/^/| /' conftest.$ac_ext >&5
  16803. +
  16804. + ac_cv_func_dlopen=no
  16805. +fi
  16806. +
  16807. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16808. + conftest$ac_exeext conftest.$ac_ext
  16809. +fi
  16810. +{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  16811. +echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  16812. +if test $ac_cv_func_dlopen = yes; then
  16813. + lt_cv_dlopen="dlopen"
  16814. +else
  16815. + { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16816. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  16817. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16818. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16819. +else
  16820. + ac_check_lib_save_LIBS=$LIBS
  16821. +LIBS="-ldl $LIBS"
  16822. +cat >conftest.$ac_ext <<_ACEOF
  16823. +/* confdefs.h. */
  16824. +_ACEOF
  16825. +cat confdefs.h >>conftest.$ac_ext
  16826. +cat >>conftest.$ac_ext <<_ACEOF
  16827. +/* end confdefs.h. */
  16828. +
  16829. +/* Override any GCC internal prototype to avoid an error.
  16830. + Use char because int might match the return type of a GCC
  16831. + builtin and then its argument prototype would still apply. */
  16832. +#ifdef __cplusplus
  16833. +extern "C"
  16834. +#endif
  16835. +char dlopen ();
  16836. +int
  16837. +main ()
  16838. +{
  16839. +return dlopen ();
  16840. + ;
  16841. + return 0;
  16842. +}
  16843. +_ACEOF
  16844. +rm -f conftest.$ac_objext conftest$ac_exeext
  16845. +if { (ac_try="$ac_link"
  16846. +case "(($ac_try" in
  16847. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16848. + *) ac_try_echo=$ac_try;;
  16849. +esac
  16850. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16851. + (eval "$ac_link") 2>conftest.er1
  16852. + ac_status=$?
  16853. + grep -v '^ *+' conftest.er1 >conftest.err
  16854. + rm -f conftest.er1
  16855. + cat conftest.err >&5
  16856. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16857. + (exit $ac_status); } && {
  16858. + test -z "$ac_c_werror_flag" ||
  16859. + test ! -s conftest.err
  16860. + } && test -s conftest$ac_exeext &&
  16861. + $as_test_x conftest$ac_exeext; then
  16862. + ac_cv_lib_dl_dlopen=yes
  16863. +else
  16864. + echo "$as_me: failed program was:" >&5
  16865. +sed 's/^/| /' conftest.$ac_ext >&5
  16866. +
  16867. + ac_cv_lib_dl_dlopen=no
  16868. +fi
  16869. +
  16870. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16871. + conftest$ac_exeext conftest.$ac_ext
  16872. +LIBS=$ac_check_lib_save_LIBS
  16873. +fi
  16874. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16875. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  16876. +if test $ac_cv_lib_dl_dlopen = yes; then
  16877. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16878. +else
  16879. + { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  16880. +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  16881. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  16882. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16883. +else
  16884. + ac_check_lib_save_LIBS=$LIBS
  16885. +LIBS="-lsvld $LIBS"
  16886. +cat >conftest.$ac_ext <<_ACEOF
  16887. +/* confdefs.h. */
  16888. +_ACEOF
  16889. +cat confdefs.h >>conftest.$ac_ext
  16890. +cat >>conftest.$ac_ext <<_ACEOF
  16891. +/* end confdefs.h. */
  16892. +
  16893. +/* Override any GCC internal prototype to avoid an error.
  16894. + Use char because int might match the return type of a GCC
  16895. + builtin and then its argument prototype would still apply. */
  16896. +#ifdef __cplusplus
  16897. +extern "C"
  16898. +#endif
  16899. +char dlopen ();
  16900. +int
  16901. +main ()
  16902. +{
  16903. +return dlopen ();
  16904. + ;
  16905. + return 0;
  16906. +}
  16907. +_ACEOF
  16908. +rm -f conftest.$ac_objext conftest$ac_exeext
  16909. +if { (ac_try="$ac_link"
  16910. +case "(($ac_try" in
  16911. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16912. + *) ac_try_echo=$ac_try;;
  16913. +esac
  16914. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16915. + (eval "$ac_link") 2>conftest.er1
  16916. + ac_status=$?
  16917. + grep -v '^ *+' conftest.er1 >conftest.err
  16918. + rm -f conftest.er1
  16919. + cat conftest.err >&5
  16920. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16921. + (exit $ac_status); } && {
  16922. + test -z "$ac_c_werror_flag" ||
  16923. + test ! -s conftest.err
  16924. + } && test -s conftest$ac_exeext &&
  16925. + $as_test_x conftest$ac_exeext; then
  16926. + ac_cv_lib_svld_dlopen=yes
  16927. +else
  16928. + echo "$as_me: failed program was:" >&5
  16929. +sed 's/^/| /' conftest.$ac_ext >&5
  16930. +
  16931. + ac_cv_lib_svld_dlopen=no
  16932. +fi
  16933. +
  16934. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16935. + conftest$ac_exeext conftest.$ac_ext
  16936. +LIBS=$ac_check_lib_save_LIBS
  16937. +fi
  16938. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  16939. +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  16940. +if test $ac_cv_lib_svld_dlopen = yes; then
  16941. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  16942. +else
  16943. + { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  16944. +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  16945. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  16946. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16947. +else
  16948. + ac_check_lib_save_LIBS=$LIBS
  16949. +LIBS="-ldld $LIBS"
  16950. +cat >conftest.$ac_ext <<_ACEOF
  16951. +/* confdefs.h. */
  16952. +_ACEOF
  16953. +cat confdefs.h >>conftest.$ac_ext
  16954. +cat >>conftest.$ac_ext <<_ACEOF
  16955. +/* end confdefs.h. */
  16956. +
  16957. +/* Override any GCC internal prototype to avoid an error.
  16958. + Use char because int might match the return type of a GCC
  16959. + builtin and then its argument prototype would still apply. */
  16960. +#ifdef __cplusplus
  16961. +extern "C"
  16962. +#endif
  16963. +char dld_link ();
  16964. +int
  16965. +main ()
  16966. +{
  16967. +return dld_link ();
  16968. + ;
  16969. + return 0;
  16970. +}
  16971. +_ACEOF
  16972. +rm -f conftest.$ac_objext conftest$ac_exeext
  16973. +if { (ac_try="$ac_link"
  16974. +case "(($ac_try" in
  16975. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16976. + *) ac_try_echo=$ac_try;;
  16977. +esac
  16978. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16979. + (eval "$ac_link") 2>conftest.er1
  16980. + ac_status=$?
  16981. + grep -v '^ *+' conftest.er1 >conftest.err
  16982. + rm -f conftest.er1
  16983. + cat conftest.err >&5
  16984. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16985. + (exit $ac_status); } && {
  16986. + test -z "$ac_c_werror_flag" ||
  16987. + test ! -s conftest.err
  16988. + } && test -s conftest$ac_exeext &&
  16989. + $as_test_x conftest$ac_exeext; then
  16990. + ac_cv_lib_dld_dld_link=yes
  16991. +else
  16992. + echo "$as_me: failed program was:" >&5
  16993. +sed 's/^/| /' conftest.$ac_ext >&5
  16994. +
  16995. + ac_cv_lib_dld_dld_link=no
  16996. +fi
  16997. +
  16998. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16999. + conftest$ac_exeext conftest.$ac_ext
  17000. +LIBS=$ac_check_lib_save_LIBS
  17001. +fi
  17002. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  17003. +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  17004. +if test $ac_cv_lib_dld_dld_link = yes; then
  17005. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  17006. +fi
  17007. +
  17008. +
  17009. +fi
  17010. +
  17011. +
  17012. +fi
  17013. +
  17014. +
  17015. +fi
  17016. +
  17017. +
  17018. +fi
  17019. +
  17020. +
  17021. +fi
  17022. +
  17023. + ;;
  17024. + esac
  17025. +
  17026. + if test "x$lt_cv_dlopen" != xno; then
  17027. + enable_dlopen=yes
  17028. + else
  17029. + enable_dlopen=no
  17030. + fi
  17031. +
  17032. + case $lt_cv_dlopen in
  17033. + dlopen)
  17034. + save_CPPFLAGS="$CPPFLAGS"
  17035. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  17036. +
  17037. + save_LDFLAGS="$LDFLAGS"
  17038. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  17039. +
  17040. + save_LIBS="$LIBS"
  17041. + LIBS="$lt_cv_dlopen_libs $LIBS"
  17042. +
  17043. + { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  17044. +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  17045. +if test "${lt_cv_dlopen_self+set}" = set; then
  17046. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17047. +else
  17048. + if test "$cross_compiling" = yes; then :
  17049. + lt_cv_dlopen_self=cross
  17050. +else
  17051. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17052. + lt_status=$lt_dlunknown
  17053. + cat > conftest.$ac_ext <<EOF
  17054. +#line 10081 "configure"
  17055. +#include "confdefs.h"
  17056. +
  17057. +#if HAVE_DLFCN_H
  17058. +#include <dlfcn.h>
  17059. +#endif
  17060. +
  17061. +#include <stdio.h>
  17062. +
  17063. +#ifdef RTLD_GLOBAL
  17064. +# define LT_DLGLOBAL RTLD_GLOBAL
  17065. +#else
  17066. +# ifdef DL_GLOBAL
  17067. +# define LT_DLGLOBAL DL_GLOBAL
  17068. +# else
  17069. +# define LT_DLGLOBAL 0
  17070. +# endif
  17071. +#endif
  17072. +
  17073. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17074. + find out it does not work in some platform. */
  17075. +#ifndef LT_DLLAZY_OR_NOW
  17076. +# ifdef RTLD_LAZY
  17077. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  17078. +# else
  17079. +# ifdef DL_LAZY
  17080. +# define LT_DLLAZY_OR_NOW DL_LAZY
  17081. +# else
  17082. +# ifdef RTLD_NOW
  17083. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  17084. +# else
  17085. +# ifdef DL_NOW
  17086. +# define LT_DLLAZY_OR_NOW DL_NOW
  17087. +# else
  17088. +# define LT_DLLAZY_OR_NOW 0
  17089. +# endif
  17090. +# endif
  17091. +# endif
  17092. +# endif
  17093. +#endif
  17094. +
  17095. +#ifdef __cplusplus
  17096. +extern "C" void exit (int);
  17097. +#endif
  17098. +
  17099. +void fnord() { int i=42;}
  17100. +int main ()
  17101. +{
  17102. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17103. + int status = $lt_dlunknown;
  17104. +
  17105. + if (self)
  17106. + {
  17107. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17108. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17109. + /* dlclose (self); */
  17110. + }
  17111. + else
  17112. + puts (dlerror ());
  17113. +
  17114. + exit (status);
  17115. +}
  17116. +EOF
  17117. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17118. + (eval $ac_link) 2>&5
  17119. + ac_status=$?
  17120. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17121. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17122. + (./conftest; exit; ) >&5 2>/dev/null
  17123. + lt_status=$?
  17124. + case x$lt_status in
  17125. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17126. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17127. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  17128. + esac
  17129. + else :
  17130. + # compilation failed
  17131. + lt_cv_dlopen_self=no
  17132. + fi
  17133. +fi
  17134. +rm -fr conftest*
  17135. +
  17136. +
  17137. +fi
  17138. +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  17139. +echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  17140. +
  17141. + if test "x$lt_cv_dlopen_self" = xyes; then
  17142. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  17143. + { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  17144. +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  17145. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  17146. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17147. +else
  17148. + if test "$cross_compiling" = yes; then :
  17149. + lt_cv_dlopen_self_static=cross
  17150. +else
  17151. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17152. + lt_status=$lt_dlunknown
  17153. + cat > conftest.$ac_ext <<EOF
  17154. +#line 10181 "configure"
  17155. +#include "confdefs.h"
  17156. +
  17157. +#if HAVE_DLFCN_H
  17158. +#include <dlfcn.h>
  17159. +#endif
  17160. +
  17161. +#include <stdio.h>
  17162. +
  17163. +#ifdef RTLD_GLOBAL
  17164. +# define LT_DLGLOBAL RTLD_GLOBAL
  17165. +#else
  17166. +# ifdef DL_GLOBAL
  17167. +# define LT_DLGLOBAL DL_GLOBAL
  17168. +# else
  17169. +# define LT_DLGLOBAL 0
  17170. +# endif
  17171. +#endif
  17172. +
  17173. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17174. + find out it does not work in some platform. */
  17175. +#ifndef LT_DLLAZY_OR_NOW
  17176. +# ifdef RTLD_LAZY
  17177. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  17178. +# else
  17179. +# ifdef DL_LAZY
  17180. +# define LT_DLLAZY_OR_NOW DL_LAZY
  17181. +# else
  17182. +# ifdef RTLD_NOW
  17183. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  17184. +# else
  17185. +# ifdef DL_NOW
  17186. +# define LT_DLLAZY_OR_NOW DL_NOW
  17187. +# else
  17188. +# define LT_DLLAZY_OR_NOW 0
  17189. +# endif
  17190. +# endif
  17191. +# endif
  17192. +# endif
  17193. +#endif
  17194. +
  17195. +#ifdef __cplusplus
  17196. +extern "C" void exit (int);
  17197. +#endif
  17198. +
  17199. +void fnord() { int i=42;}
  17200. +int main ()
  17201. +{
  17202. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17203. + int status = $lt_dlunknown;
  17204. +
  17205. + if (self)
  17206. + {
  17207. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17208. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17209. + /* dlclose (self); */
  17210. + }
  17211. + else
  17212. + puts (dlerror ());
  17213. +
  17214. + exit (status);
  17215. +}
  17216. +EOF
  17217. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17218. + (eval $ac_link) 2>&5
  17219. + ac_status=$?
  17220. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17221. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  17222. + (./conftest; exit; ) >&5 2>/dev/null
  17223. + lt_status=$?
  17224. + case x$lt_status in
  17225. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17226. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17227. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  17228. + esac
  17229. + else :
  17230. + # compilation failed
  17231. + lt_cv_dlopen_self_static=no
  17232. + fi
  17233. +fi
  17234. +rm -fr conftest*
  17235. +
  17236. +
  17237. +fi
  17238. +{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  17239. +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  17240. + fi
  17241. +
  17242. + CPPFLAGS="$save_CPPFLAGS"
  17243. + LDFLAGS="$save_LDFLAGS"
  17244. + LIBS="$save_LIBS"
  17245. + ;;
  17246. + esac
  17247. +
  17248. + case $lt_cv_dlopen_self in
  17249. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17250. + *) enable_dlopen_self=unknown ;;
  17251. + esac
  17252. +
  17253. + case $lt_cv_dlopen_self_static in
  17254. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17255. + *) enable_dlopen_self_static=unknown ;;
  17256. + esac
  17257. +fi
  17258. +
  17259. +
  17260. +# Report which library types will actually be built
  17261. +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  17262. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  17263. +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  17264. +echo "${ECHO_T}$can_build_shared" >&6; }
  17265. +
  17266. +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  17267. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  17268. +test "$can_build_shared" = "no" && enable_shared=no
  17269. +
  17270. +# On AIX, shared libraries and static libraries use the same namespace, and
  17271. +# are all built from PIC.
  17272. +case $host_os in
  17273. +aix3*)
  17274. + test "$enable_shared" = yes && enable_static=no
  17275. + if test -n "$RANLIB"; then
  17276. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  17277. + postinstall_cmds='$RANLIB $lib'
  17278. + fi
  17279. + ;;
  17280. +
  17281. +aix4* | aix5*)
  17282. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  17283. + test "$enable_shared" = yes && enable_static=no
  17284. + fi
  17285. + ;;
  17286. +esac
  17287. +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  17288. +echo "${ECHO_T}$enable_shared" >&6; }
  17289. +
  17290. +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  17291. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  17292. +# Make sure either enable_shared or enable_static is yes.
  17293. +test "$enable_shared" = yes || enable_static=yes
  17294. +{ echo "$as_me:$LINENO: result: $enable_static" >&5
  17295. +echo "${ECHO_T}$enable_static" >&6; }
  17296. +
  17297. +# The else clause should only fire when bootstrapping the
  17298. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  17299. +# with your package, and you will get complaints that there are
  17300. +# no rules to generate ltmain.sh.
  17301. +if test -f "$ltmain"; then
  17302. + # See if we are running on zsh, and set the options which allow our commands through
  17303. + # without removal of \ escapes.
  17304. + if test -n "${ZSH_VERSION+set}" ; then
  17305. + setopt NO_GLOB_SUBST
  17306. + fi
  17307. + # Now quote all the things that may contain metacharacters while being
  17308. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  17309. + # variables and quote the copies for generation of the libtool script.
  17310. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17311. + SED SHELL STRIP \
  17312. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17313. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17314. + deplibs_check_method reload_flag reload_cmds need_locks \
  17315. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17316. + lt_cv_sys_global_symbol_to_c_name_address \
  17317. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17318. + old_postinstall_cmds old_postuninstall_cmds \
  17319. + compiler \
  17320. + CC \
  17321. + LD \
  17322. + lt_prog_compiler_wl \
  17323. + lt_prog_compiler_pic \
  17324. + lt_prog_compiler_static \
  17325. + lt_prog_compiler_no_builtin_flag \
  17326. + export_dynamic_flag_spec \
  17327. + thread_safe_flag_spec \
  17328. + whole_archive_flag_spec \
  17329. + enable_shared_with_static_runtimes \
  17330. + old_archive_cmds \
  17331. + old_archive_from_new_cmds \
  17332. + predep_objects \
  17333. + postdep_objects \
  17334. + predeps \
  17335. + postdeps \
  17336. + compiler_lib_search_path \
  17337. + archive_cmds \
  17338. + archive_expsym_cmds \
  17339. + postinstall_cmds \
  17340. + postuninstall_cmds \
  17341. + old_archive_from_expsyms_cmds \
  17342. + allow_undefined_flag \
  17343. + no_undefined_flag \
  17344. + export_symbols_cmds \
  17345. + hardcode_libdir_flag_spec \
  17346. + hardcode_libdir_flag_spec_ld \
  17347. + hardcode_libdir_separator \
  17348. + hardcode_automatic \
  17349. + module_cmds \
  17350. + module_expsym_cmds \
  17351. + lt_cv_prog_compiler_c_o \
  17352. + exclude_expsyms \
  17353. + include_expsyms; do
  17354. +
  17355. + case $var in
  17356. + old_archive_cmds | \
  17357. + old_archive_from_new_cmds | \
  17358. + archive_cmds | \
  17359. + archive_expsym_cmds | \
  17360. + module_cmds | \
  17361. + module_expsym_cmds | \
  17362. + old_archive_from_expsyms_cmds | \
  17363. + export_symbols_cmds | \
  17364. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17365. + postinstall_cmds | postuninstall_cmds | \
  17366. + old_postinstall_cmds | old_postuninstall_cmds | \
  17367. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17368. + # Double-quote double-evaled strings.
  17369. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17370. + ;;
  17371. + *)
  17372. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17373. + ;;
  17374. + esac
  17375. + done
  17376. +
  17377. + case $lt_echo in
  17378. + *'\$0 --fallback-echo"')
  17379. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17380. + ;;
  17381. + esac
  17382. +
  17383. +cfgfile="${ofile}T"
  17384. + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  17385. + $rm -f "$cfgfile"
  17386. + { echo "$as_me:$LINENO: creating $ofile" >&5
  17387. +echo "$as_me: creating $ofile" >&6;}
  17388. +
  17389. + cat <<__EOF__ >> "$cfgfile"
  17390. +#! $SHELL
  17391. +
  17392. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17393. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  17394. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17395. +#
  17396. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  17397. +# Free Software Foundation, Inc.
  17398. +#
  17399. +# This file is part of GNU Libtool:
  17400. +# Originally by Gordon Matzigkeit <[email protected]>, 1996
  17401. +#
  17402. +# This program is free software; you can redistribute it and/or modify
  17403. +# it under the terms of the GNU General Public License as published by
  17404. +# the Free Software Foundation; either version 2 of the License, or
  17405. +# (at your option) any later version.
  17406. +#
  17407. +# This program is distributed in the hope that it will be useful, but
  17408. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  17409. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17410. +# General Public License for more details.
  17411. +#
  17412. +# You should have received a copy of the GNU General Public License
  17413. +# along with this program; if not, write to the Free Software
  17414. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17415. +#
  17416. +# As a special exception to the GNU General Public License, if you
  17417. +# distribute this file as part of a program that contains a
  17418. +# configuration script generated by Autoconf, you may include it under
  17419. +# the same distribution terms that you use for the rest of that program.
  17420. +
  17421. +# A sed program that does not truncate output.
  17422. +SED=$lt_SED
  17423. +
  17424. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17425. +Xsed="$SED -e 1s/^X//"
  17426. +
  17427. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  17428. +# if CDPATH is set.
  17429. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17430. +
  17431. +# The names of the tagged configurations supported by this script.
  17432. +available_tags=
  17433. +
  17434. +# ### BEGIN LIBTOOL CONFIG
  17435. +
  17436. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17437. +
  17438. +# Shell to use when invoking shell scripts.
  17439. +SHELL=$lt_SHELL
  17440. +
  17441. +# Whether or not to build shared libraries.
  17442. +build_libtool_libs=$enable_shared
  17443. +
  17444. +# Whether or not to build static libraries.
  17445. +build_old_libs=$enable_static
  17446. +
  17447. +# Whether or not to add -lc for building shared libraries.
  17448. +build_libtool_need_lc=$archive_cmds_need_lc
  17449. +
  17450. +# Whether or not to disallow shared libs when runtime libs are static
  17451. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17452. +
  17453. +# Whether or not to optimize for fast installation.
  17454. +fast_install=$enable_fast_install
  17455. +
  17456. +# The host system.
  17457. +host_alias=$host_alias
  17458. +host=$host
  17459. +host_os=$host_os
  17460. +
  17461. +# The build system.
  17462. +build_alias=$build_alias
  17463. +build=$build
  17464. +build_os=$build_os
  17465. +
  17466. +# An echo program that does not interpret backslashes.
  17467. +echo=$lt_echo
  17468. +
  17469. +# The archiver.
  17470. +AR=$lt_AR
  17471. +AR_FLAGS=$lt_AR_FLAGS
  17472. +
  17473. +# A C compiler.
  17474. +LTCC=$lt_LTCC
  17475. +
  17476. +# LTCC compiler flags.
  17477. +LTCFLAGS=$lt_LTCFLAGS
  17478. +
  17479. +# A language-specific compiler.
  17480. +CC=$lt_compiler
  17481. +
  17482. +# Is the compiler the GNU C compiler?
  17483. +with_gcc=$GCC
  17484. +
  17485. +# An ERE matcher.
  17486. +EGREP=$lt_EGREP
  17487. +
  17488. +# The linker used to build libraries.
  17489. +LD=$lt_LD
  17490. +
  17491. +# Whether we need hard or soft links.
  17492. +LN_S=$lt_LN_S
  17493. +
  17494. +# A BSD-compatible nm program.
  17495. +NM=$lt_NM
  17496. +
  17497. +# A symbol stripping program
  17498. +STRIP=$lt_STRIP
  17499. +
  17500. +# Used to examine libraries when file_magic_cmd begins "file"
  17501. +MAGIC_CMD=$MAGIC_CMD
  17502. +
  17503. +# Used on cygwin: DLL creation program.
  17504. +DLLTOOL="$DLLTOOL"
  17505. +
  17506. +# Used on cygwin: object dumper.
  17507. +OBJDUMP="$OBJDUMP"
  17508. +
  17509. +# Used on cygwin: assembler.
  17510. +AS="$AS"
  17511. +
  17512. +# The name of the directory that contains temporary libtool files.
  17513. +objdir=$objdir
  17514. +
  17515. +# How to create reloadable object files.
  17516. +reload_flag=$lt_reload_flag
  17517. +reload_cmds=$lt_reload_cmds
  17518. +
  17519. +# How to pass a linker flag through the compiler.
  17520. +wl=$lt_lt_prog_compiler_wl
  17521. +
  17522. +# Object file suffix (normally "o").
  17523. +objext="$ac_objext"
  17524. +
  17525. +# Old archive suffix (normally "a").
  17526. +libext="$libext"
  17527. +
  17528. +# Shared library suffix (normally ".so").
  17529. +shrext_cmds='$shrext_cmds'
  17530. +
  17531. +# Executable file suffix (normally "").
  17532. +exeext="$exeext"
  17533. +
  17534. +# Additional compiler flags for building library objects.
  17535. +pic_flag=$lt_lt_prog_compiler_pic
  17536. +pic_mode=$pic_mode
  17537. +
  17538. +# What is the maximum length of a command?
  17539. +max_cmd_len=$lt_cv_sys_max_cmd_len
  17540. +
  17541. +# Does compiler simultaneously support -c and -o options?
  17542. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17543. +
  17544. +# Must we lock files when doing compilation?
  17545. +need_locks=$lt_need_locks
  17546. +
  17547. +# Do we need the lib prefix for modules?
  17548. +need_lib_prefix=$need_lib_prefix
  17549. +
  17550. +# Do we need a version for libraries?
  17551. +need_version=$need_version
  17552. +
  17553. +# Whether dlopen is supported.
  17554. +dlopen_support=$enable_dlopen
  17555. +
  17556. +# Whether dlopen of programs is supported.
  17557. +dlopen_self=$enable_dlopen_self
  17558. +
  17559. +# Whether dlopen of statically linked programs is supported.
  17560. +dlopen_self_static=$enable_dlopen_self_static
  17561. +
  17562. +# Compiler flag to prevent dynamic linking.
  17563. +link_static_flag=$lt_lt_prog_compiler_static
  17564. +
  17565. +# Compiler flag to turn off builtin functions.
  17566. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17567. +
  17568. +# Compiler flag to allow reflexive dlopens.
  17569. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17570. +
  17571. +# Compiler flag to generate shared objects directly from archives.
  17572. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17573. +
  17574. +# Compiler flag to generate thread-safe objects.
  17575. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  17576. +
  17577. +# Library versioning type.
  17578. +version_type=$version_type
  17579. +
  17580. +# Format of library name prefix.
  17581. +libname_spec=$lt_libname_spec
  17582. +
  17583. +# List of archive names. First name is the real one, the rest are links.
  17584. +# The last name is the one that the linker finds with -lNAME.
  17585. +library_names_spec=$lt_library_names_spec
  17586. +
  17587. +# The coded name of the library, if different from the real name.
  17588. +soname_spec=$lt_soname_spec
  17589. +
  17590. +# Commands used to build and install an old-style archive.
  17591. +RANLIB=$lt_RANLIB
  17592. +old_archive_cmds=$lt_old_archive_cmds
  17593. +old_postinstall_cmds=$lt_old_postinstall_cmds
  17594. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17595. +
  17596. +# Create an old-style archive from a shared archive.
  17597. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17598. +
  17599. +# Create a temporary old-style archive to link instead of a shared archive.
  17600. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17601. +
  17602. +# Commands used to build and install a shared archive.
  17603. +archive_cmds=$lt_archive_cmds
  17604. +archive_expsym_cmds=$lt_archive_expsym_cmds
  17605. +postinstall_cmds=$lt_postinstall_cmds
  17606. +postuninstall_cmds=$lt_postuninstall_cmds
  17607. +
  17608. +# Commands used to build a loadable module (assumed same as above if empty)
  17609. +module_cmds=$lt_module_cmds
  17610. +module_expsym_cmds=$lt_module_expsym_cmds
  17611. +
  17612. +# Commands to strip libraries.
  17613. +old_striplib=$lt_old_striplib
  17614. +striplib=$lt_striplib
  17615. +
  17616. +# Dependencies to place before the objects being linked to create a
  17617. +# shared library.
  17618. +predep_objects=$lt_predep_objects
  17619. +
  17620. +# Dependencies to place after the objects being linked to create a
  17621. +# shared library.
  17622. +postdep_objects=$lt_postdep_objects
  17623. +
  17624. +# Dependencies to place before the objects being linked to create a
  17625. +# shared library.
  17626. +predeps=$lt_predeps
  17627. +
  17628. +# Dependencies to place after the objects being linked to create a
  17629. +# shared library.
  17630. +postdeps=$lt_postdeps
  17631. +
  17632. +# The library search path used internally by the compiler when linking
  17633. +# a shared library.
  17634. +compiler_lib_search_path=$lt_compiler_lib_search_path
  17635. +
  17636. +# Method to check whether dependent libraries are shared objects.
  17637. +deplibs_check_method=$lt_deplibs_check_method
  17638. +
  17639. +# Command to use when deplibs_check_method == file_magic.
  17640. +file_magic_cmd=$lt_file_magic_cmd
  17641. +
  17642. +# Flag that allows shared libraries with undefined symbols to be built.
  17643. +allow_undefined_flag=$lt_allow_undefined_flag
  17644. +
  17645. +# Flag that forces no undefined symbols.
  17646. +no_undefined_flag=$lt_no_undefined_flag
  17647. +
  17648. +# Commands used to finish a libtool library installation in a directory.
  17649. +finish_cmds=$lt_finish_cmds
  17650. +
  17651. +# Same as above, but a single script fragment to be evaled but not shown.
  17652. +finish_eval=$lt_finish_eval
  17653. +
  17654. +# Take the output of nm and produce a listing of raw symbols and C names.
  17655. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17656. +
  17657. +# Transform the output of nm in a proper C declaration
  17658. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17659. +
  17660. +# Transform the output of nm in a C name address pair
  17661. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17662. +
  17663. +# This is the shared library runtime path variable.
  17664. +runpath_var=$runpath_var
  17665. +
  17666. +# This is the shared library path variable.
  17667. +shlibpath_var=$shlibpath_var
  17668. +
  17669. +# Is shlibpath searched before the hard-coded library search path?
  17670. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17671. +
  17672. +# How to hardcode a shared library path into an executable.
  17673. +hardcode_action=$hardcode_action
  17674. +
  17675. +# Whether we should hardcode library paths into libraries.
  17676. +hardcode_into_libs=$hardcode_into_libs
  17677. +
  17678. +# Flag to hardcode \$libdir into a binary during linking.
  17679. +# This must work even if \$libdir does not exist.
  17680. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17681. +
  17682. +# If ld is used when linking, flag to hardcode \$libdir into
  17683. +# a binary during linking. This must work even if \$libdir does
  17684. +# not exist.
  17685. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  17686. +
  17687. +# Whether we need a single -rpath flag with a separated argument.
  17688. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17689. +
  17690. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17691. +# resulting binary.
  17692. +hardcode_direct=$hardcode_direct
  17693. +
  17694. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17695. +# resulting binary.
  17696. +hardcode_minus_L=$hardcode_minus_L
  17697. +
  17698. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17699. +# the resulting binary.
  17700. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  17701. +
  17702. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  17703. +# and all subsequent libraries and executables linked against it.
  17704. +hardcode_automatic=$hardcode_automatic
  17705. +
  17706. +# Variables whose values should be saved in libtool wrapper scripts and
  17707. +# restored at relink time.
  17708. +variables_saved_for_relink="$variables_saved_for_relink"
  17709. +
  17710. +# Whether libtool must link a program against all its dependency libraries.
  17711. +link_all_deplibs=$link_all_deplibs
  17712. +
  17713. +# Compile-time system search path for libraries
  17714. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17715. +
  17716. +# Run-time system search path for libraries
  17717. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17718. +
  17719. +# Fix the shell variable \$srcfile for the compiler.
  17720. +fix_srcfile_path="$fix_srcfile_path"
  17721. +
  17722. +# Set to yes if exported symbols are required.
  17723. +always_export_symbols=$always_export_symbols
  17724. +
  17725. +# The commands to list exported symbols.
  17726. +export_symbols_cmds=$lt_export_symbols_cmds
  17727. +
  17728. +# The commands to extract the exported symbol list from a shared archive.
  17729. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17730. +
  17731. +# Symbols that should not be listed in the preloaded symbols.
  17732. +exclude_expsyms=$lt_exclude_expsyms
  17733. +
  17734. +# Symbols that must always be exported.
  17735. +include_expsyms=$lt_include_expsyms
  17736. +
  17737. +# ### END LIBTOOL CONFIG
  17738. +
  17739. +__EOF__
  17740. +
  17741. +
  17742. + case $host_os in
  17743. + aix3*)
  17744. + cat <<\EOF >> "$cfgfile"
  17745. +
  17746. +# AIX sometimes has problems with the GCC collect2 program. For some
  17747. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  17748. +# vanish in a puff of smoke.
  17749. +if test "X${COLLECT_NAMES+set}" != Xset; then
  17750. + COLLECT_NAMES=
  17751. + export COLLECT_NAMES
  17752. +fi
  17753. +EOF
  17754. + ;;
  17755. + esac
  17756. +
  17757. + # We use sed instead of cat because bash on DJGPP gets confused if
  17758. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17759. + # text mode, it properly converts lines to CR/LF. This bash problem
  17760. + # is reportedly fixed, but why not run on old versions too?
  17761. + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  17762. +
  17763. + mv -f "$cfgfile" "$ofile" || \
  17764. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17765. + chmod +x "$ofile"
  17766. +
  17767. +else
  17768. + # If there is no Makefile yet, we rely on a make rule to execute
  17769. + # `config.status --recheck' to rerun these tests and create the
  17770. + # libtool script then.
  17771. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17772. + if test -f "$ltmain_in"; then
  17773. + test -f Makefile && make "$ltmain"
  17774. + fi
  17775. +fi
  17776. +
  17777. +
  17778. +ac_ext=c
  17779. +ac_cpp='$CPP $CPPFLAGS'
  17780. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17781. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17782. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17783. +
  17784. +CC="$lt_save_CC"
  17785. +
  17786. +
  17787. +# Check whether --with-tags was given.
  17788. +if test "${with_tags+set}" = set; then
  17789. + withval=$with_tags; tagnames="$withval"
  17790. +fi
  17791. +
  17792. +
  17793. +if test -f "$ltmain" && test -n "$tagnames"; then
  17794. + if test ! -f "${ofile}"; then
  17795. + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  17796. +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  17797. + fi
  17798. +
  17799. + if test -z "$LTCC"; then
  17800. + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  17801. + if test -z "$LTCC"; then
  17802. + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  17803. +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  17804. + else
  17805. + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  17806. +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  17807. + fi
  17808. + fi
  17809. + if test -z "$LTCFLAGS"; then
  17810. + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  17811. + fi
  17812. +
  17813. + # Extract list of available tagged configurations in $ofile.
  17814. + # Note that this assumes the entire list is on one line.
  17815. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  17816. +
  17817. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  17818. + for tagname in $tagnames; do
  17819. + IFS="$lt_save_ifs"
  17820. + # Check whether tagname contains only valid characters
  17821. + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  17822. + "") ;;
  17823. + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  17824. +echo "$as_me: error: invalid tag name: $tagname" >&2;}
  17825. + { (exit 1); exit 1; }; }
  17826. + ;;
  17827. + esac
  17828. +
  17829. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  17830. + then
  17831. + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  17832. +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  17833. + { (exit 1); exit 1; }; }
  17834. + fi
  17835. +
  17836. + # Update the list of available tags.
  17837. + if test -n "$tagname"; then
  17838. + echo appending configuration tag \"$tagname\" to $ofile
  17839. +
  17840. + case $tagname in
  17841. + CXX)
  17842. + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  17843. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  17844. + (test "X$CXX" != "Xg++"))) ; then
  17845. + ac_ext=cpp
  17846. +ac_cpp='$CXXCPP $CPPFLAGS'
  17847. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17848. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17849. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17850. +
  17851. +
  17852. +
  17853. +
  17854. +archive_cmds_need_lc_CXX=no
  17855. +allow_undefined_flag_CXX=
  17856. +always_export_symbols_CXX=no
  17857. +archive_expsym_cmds_CXX=
  17858. +export_dynamic_flag_spec_CXX=
  17859. +hardcode_direct_CXX=no
  17860. +hardcode_libdir_flag_spec_CXX=
  17861. +hardcode_libdir_flag_spec_ld_CXX=
  17862. +hardcode_libdir_separator_CXX=
  17863. +hardcode_minus_L_CXX=no
  17864. +hardcode_shlibpath_var_CXX=unsupported
  17865. +hardcode_automatic_CXX=no
  17866. +module_cmds_CXX=
  17867. +module_expsym_cmds_CXX=
  17868. +link_all_deplibs_CXX=unknown
  17869. +old_archive_cmds_CXX=$old_archive_cmds
  17870. +no_undefined_flag_CXX=
  17871. +whole_archive_flag_spec_CXX=
  17872. +enable_shared_with_static_runtimes_CXX=no
  17873. +
  17874. +# Dependencies to place before and after the object being linked:
  17875. +predep_objects_CXX=
  17876. +postdep_objects_CXX=
  17877. +predeps_CXX=
  17878. +postdeps_CXX=
  17879. +compiler_lib_search_path_CXX=
  17880. +
  17881. +# Source file extension for C++ test sources.
  17882. +ac_ext=cpp
  17883. +
  17884. +# Object file extension for compiled C++ test sources.
  17885. +objext=o
  17886. +objext_CXX=$objext
  17887. +
  17888. +# Code to be used in simple compile tests
  17889. +lt_simple_compile_test_code="int some_variable = 0;\n"
  17890. +
  17891. +# Code to be used in simple link tests
  17892. +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  17893. +
  17894. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17895. +
  17896. +# If no C compiler was specified, use CC.
  17897. +LTCC=${LTCC-"$CC"}
  17898. +
  17899. +# If no C compiler flags were specified, use CFLAGS.
  17900. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17901. +
  17902. +# Allow CC to be a program name with arguments.
  17903. +compiler=$CC
  17904. +
  17905. +
  17906. +# save warnings/boilerplate of simple test code
  17907. +ac_outfile=conftest.$ac_objext
  17908. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17909. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17910. +_lt_compiler_boilerplate=`cat conftest.err`
  17911. +$rm conftest*
  17912. +
  17913. +ac_outfile=conftest.$ac_objext
  17914. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17915. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17916. +_lt_linker_boilerplate=`cat conftest.err`
  17917. +$rm conftest*
  17918. +
  17919. +
  17920. +# Allow CC to be a program name with arguments.
  17921. +lt_save_CC=$CC
  17922. +lt_save_LD=$LD
  17923. +lt_save_GCC=$GCC
  17924. +GCC=$GXX
  17925. +lt_save_with_gnu_ld=$with_gnu_ld
  17926. +lt_save_path_LD=$lt_cv_path_LD
  17927. +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  17928. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  17929. +else
  17930. + $as_unset lt_cv_prog_gnu_ld
  17931. +fi
  17932. +if test -n "${lt_cv_path_LDCXX+set}"; then
  17933. + lt_cv_path_LD=$lt_cv_path_LDCXX
  17934. +else
  17935. + $as_unset lt_cv_path_LD
  17936. +fi
  17937. +test -z "${LDCXX+set}" || LD=$LDCXX
  17938. +CC=${CXX-"c++"}
  17939. +compiler=$CC
  17940. +compiler_CXX=$CC
  17941. +for cc_temp in $compiler""; do
  17942. + case $cc_temp in
  17943. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17944. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17945. + \-*) ;;
  17946. + *) break;;
  17947. + esac
  17948. +done
  17949. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17950. +
  17951. +
  17952. +# We don't want -fno-exception wen compiling C++ code, so set the
  17953. +# no_builtin_flag separately
  17954. +if test "$GXX" = yes; then
  17955. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  17956. +else
  17957. + lt_prog_compiler_no_builtin_flag_CXX=
  17958. +fi
  17959. +
  17960. +if test "$GXX" = yes; then
  17961. + # Set up default GNU C++ configuration
  17962. +
  17963. +
  17964. +# Check whether --with-gnu-ld was given.
  17965. +if test "${with_gnu_ld+set}" = set; then
  17966. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  17967. +else
  17968. + with_gnu_ld=no
  17969. +fi
  17970. +
  17971. +ac_prog=ld
  17972. +if test "$GCC" = yes; then
  17973. + # Check if gcc -print-prog-name=ld gives a path.
  17974. + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  17975. +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  17976. + case $host in
  17977. + *-*-mingw*)
  17978. + # gcc leaves a trailing carriage return which upsets mingw
  17979. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  17980. + *)
  17981. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  17982. + esac
  17983. + case $ac_prog in
  17984. + # Accept absolute paths.
  17985. + [\\/]* | ?:[\\/]*)
  17986. + re_direlt='/[^/][^/]*/\.\./'
  17987. + # Canonicalize the pathname of ld
  17988. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  17989. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  17990. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  17991. + done
  17992. + test -z "$LD" && LD="$ac_prog"
  17993. + ;;
  17994. + "")
  17995. + # If it fails, then pretend we aren't using GCC.
  17996. + ac_prog=ld
  17997. + ;;
  17998. + *)
  17999. + # If it is relative, then search for the first ld in PATH.
  18000. + with_gnu_ld=unknown
  18001. + ;;
  18002. + esac
  18003. +elif test "$with_gnu_ld" = yes; then
  18004. + { echo "$as_me:$LINENO: checking for GNU ld" >&5
  18005. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  18006. +else
  18007. + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  18008. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  18009. +fi
  18010. +if test "${lt_cv_path_LD+set}" = set; then
  18011. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18012. +else
  18013. + if test -z "$LD"; then
  18014. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  18015. + for ac_dir in $PATH; do
  18016. + IFS="$lt_save_ifs"
  18017. + test -z "$ac_dir" && ac_dir=.
  18018. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  18019. + lt_cv_path_LD="$ac_dir/$ac_prog"
  18020. + # Check to see if the program is GNU ld. I'd rather use --version,
  18021. + # but apparently some variants of GNU ld only accept -v.
  18022. + # Break only if it was the GNU/non-GNU ld that we prefer.
  18023. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  18024. + *GNU* | *'with BFD'*)
  18025. + test "$with_gnu_ld" != no && break
  18026. + ;;
  18027. + *)
  18028. + test "$with_gnu_ld" != yes && break
  18029. + ;;
  18030. + esac
  18031. + fi
  18032. + done
  18033. + IFS="$lt_save_ifs"
  18034. +else
  18035. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  18036. +fi
  18037. +fi
  18038. +
  18039. +LD="$lt_cv_path_LD"
  18040. +if test -n "$LD"; then
  18041. + { echo "$as_me:$LINENO: result: $LD" >&5
  18042. +echo "${ECHO_T}$LD" >&6; }
  18043. +else
  18044. + { echo "$as_me:$LINENO: result: no" >&5
  18045. +echo "${ECHO_T}no" >&6; }
  18046. +fi
  18047. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  18048. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  18049. + { (exit 1); exit 1; }; }
  18050. +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  18051. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  18052. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  18053. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18054. +else
  18055. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  18056. +case `$LD -v 2>&1 </dev/null` in
  18057. +*GNU* | *'with BFD'*)
  18058. + lt_cv_prog_gnu_ld=yes
  18059. + ;;
  18060. +*)
  18061. + lt_cv_prog_gnu_ld=no
  18062. + ;;
  18063. +esac
  18064. +fi
  18065. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  18066. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  18067. +with_gnu_ld=$lt_cv_prog_gnu_ld
  18068. +
  18069. +
  18070. +
  18071. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  18072. + # archiving commands below assume that GNU ld is being used.
  18073. + if test "$with_gnu_ld" = yes; then
  18074. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18075. + 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'
  18076. +
  18077. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  18078. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  18079. +
  18080. + # If archive_cmds runs LD, not CC, wlarc should be empty
  18081. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  18082. + # investigate it a little bit more. (MM)
  18083. + wlarc='${wl}'
  18084. +
  18085. + # ancient GNU ld didn't support --whole-archive et. al.
  18086. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  18087. + grep 'no-whole-archive' > /dev/null; then
  18088. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  18089. + else
  18090. + whole_archive_flag_spec_CXX=
  18091. + fi
  18092. + else
  18093. + with_gnu_ld=no
  18094. + wlarc=
  18095. +
  18096. + # A generic and very simple default shared library creation
  18097. + # command for GNU C++ for the case where it uses the native
  18098. + # linker, instead of GNU ld. If possible, this setting should
  18099. + # overridden to take advantage of the native linker features on
  18100. + # the platform it is being used on.
  18101. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  18102. + fi
  18103. +
  18104. + # Commands to make compiler produce verbose output that lists
  18105. + # what "hidden" libraries, object files and flags are used when
  18106. + # linking a shared library.
  18107. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  18108. +
  18109. +else
  18110. + GXX=no
  18111. + with_gnu_ld=no
  18112. + wlarc=
  18113. +fi
  18114. +
  18115. +# PORTME: fill in a description of your system's C++ link characteristics
  18116. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  18117. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  18118. +ld_shlibs_CXX=yes
  18119. +case $host_os in
  18120. + aix3*)
  18121. + # FIXME: insert proper C++ library support
  18122. + ld_shlibs_CXX=no
  18123. + ;;
  18124. + aix4* | aix5*)
  18125. + if test "$host_cpu" = ia64; then
  18126. + # On IA64, the linker does run time linking by default, so we don't
  18127. + # have to do anything special.
  18128. + aix_use_runtimelinking=no
  18129. + exp_sym_flag='-Bexport'
  18130. + no_entry_flag=""
  18131. + else
  18132. + aix_use_runtimelinking=no
  18133. +
  18134. + # Test if we are trying to use run time linking or normal
  18135. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  18136. + # need to do runtime linking.
  18137. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  18138. + for ld_flag in $LDFLAGS; do
  18139. + case $ld_flag in
  18140. + *-brtl*)
  18141. + aix_use_runtimelinking=yes
  18142. + break
  18143. + ;;
  18144. + esac
  18145. + done
  18146. + ;;
  18147. + esac
  18148. +
  18149. + exp_sym_flag='-bexport'
  18150. + no_entry_flag='-bnoentry'
  18151. + fi
  18152. +
  18153. + # When large executables or shared objects are built, AIX ld can
  18154. + # have problems creating the table of contents. If linking a library
  18155. + # or program results in "error TOC overflow" add -mminimal-toc to
  18156. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  18157. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  18158. +
  18159. + archive_cmds_CXX=''
  18160. + hardcode_direct_CXX=yes
  18161. + hardcode_libdir_separator_CXX=':'
  18162. + link_all_deplibs_CXX=yes
  18163. +
  18164. + if test "$GXX" = yes; then
  18165. + case $host_os in aix4.[012]|aix4.[012].*)
  18166. + # We only want to do this on AIX 4.2 and lower, the check
  18167. + # below for broken collect2 doesn't work under 4.3+
  18168. + collect2name=`${CC} -print-prog-name=collect2`
  18169. + if test -f "$collect2name" && \
  18170. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  18171. + then
  18172. + # We have reworked collect2
  18173. + hardcode_direct_CXX=yes
  18174. + else
  18175. + # We have old collect2
  18176. + hardcode_direct_CXX=unsupported
  18177. + # It fails to find uninstalled libraries when the uninstalled
  18178. + # path is not listed in the libpath. Setting hardcode_minus_L
  18179. + # to unsupported forces relinking
  18180. + hardcode_minus_L_CXX=yes
  18181. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  18182. + hardcode_libdir_separator_CXX=
  18183. + fi
  18184. + ;;
  18185. + esac
  18186. + shared_flag='-shared'
  18187. + if test "$aix_use_runtimelinking" = yes; then
  18188. + shared_flag="$shared_flag "'${wl}-G'
  18189. + fi
  18190. + else
  18191. + # not using gcc
  18192. + if test "$host_cpu" = ia64; then
  18193. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  18194. + # chokes on -Wl,-G. The following line is correct:
  18195. + shared_flag='-G'
  18196. + else
  18197. + if test "$aix_use_runtimelinking" = yes; then
  18198. + shared_flag='${wl}-G'
  18199. + else
  18200. + shared_flag='${wl}-bM:SRE'
  18201. + fi
  18202. + fi
  18203. + fi
  18204. +
  18205. + # It seems that -bexpall does not export symbols beginning with
  18206. + # underscore (_), so it is better to generate a list of symbols to export.
  18207. + always_export_symbols_CXX=yes
  18208. + if test "$aix_use_runtimelinking" = yes; then
  18209. + # Warning - without using the other runtime loading flags (-brtl),
  18210. + # -berok will link without error, but may produce a broken library.
  18211. + allow_undefined_flag_CXX='-berok'
  18212. + # Determine the default libpath from the value encoded in an empty executable.
  18213. + cat >conftest.$ac_ext <<_ACEOF
  18214. +/* confdefs.h. */
  18215. +_ACEOF
  18216. +cat confdefs.h >>conftest.$ac_ext
  18217. +cat >>conftest.$ac_ext <<_ACEOF
  18218. +/* end confdefs.h. */
  18219. +
  18220. +int
  18221. +main ()
  18222. +{
  18223. +
  18224. + ;
  18225. + return 0;
  18226. +}
  18227. +_ACEOF
  18228. +rm -f conftest.$ac_objext conftest$ac_exeext
  18229. +if { (ac_try="$ac_link"
  18230. +case "(($ac_try" in
  18231. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18232. + *) ac_try_echo=$ac_try;;
  18233. +esac
  18234. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18235. + (eval "$ac_link") 2>conftest.er1
  18236. + ac_status=$?
  18237. + grep -v '^ *+' conftest.er1 >conftest.err
  18238. + rm -f conftest.er1
  18239. + cat conftest.err >&5
  18240. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18241. + (exit $ac_status); } && {
  18242. + test -z "$ac_cxx_werror_flag" ||
  18243. + test ! -s conftest.err
  18244. + } && test -s conftest$ac_exeext &&
  18245. + $as_test_x conftest$ac_exeext; then
  18246. +
  18247. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  18248. +}'`
  18249. +# Check for a 64-bit object if we didn't find anything.
  18250. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  18251. +}'`; fi
  18252. +else
  18253. + echo "$as_me: failed program was:" >&5
  18254. +sed 's/^/| /' conftest.$ac_ext >&5
  18255. +
  18256. +
  18257. +fi
  18258. +
  18259. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18260. + conftest$ac_exeext conftest.$ac_ext
  18261. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  18262. +
  18263. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  18264. +
  18265. + 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"
  18266. + else
  18267. + if test "$host_cpu" = ia64; then
  18268. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  18269. + allow_undefined_flag_CXX="-z nodefs"
  18270. + 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"
  18271. + else
  18272. + # Determine the default libpath from the value encoded in an empty executable.
  18273. + cat >conftest.$ac_ext <<_ACEOF
  18274. +/* confdefs.h. */
  18275. +_ACEOF
  18276. +cat confdefs.h >>conftest.$ac_ext
  18277. +cat >>conftest.$ac_ext <<_ACEOF
  18278. +/* end confdefs.h. */
  18279. +
  18280. +int
  18281. +main ()
  18282. +{
  18283. +
  18284. + ;
  18285. + return 0;
  18286. +}
  18287. +_ACEOF
  18288. +rm -f conftest.$ac_objext conftest$ac_exeext
  18289. +if { (ac_try="$ac_link"
  18290. +case "(($ac_try" in
  18291. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18292. + *) ac_try_echo=$ac_try;;
  18293. +esac
  18294. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18295. + (eval "$ac_link") 2>conftest.er1
  18296. + ac_status=$?
  18297. + grep -v '^ *+' conftest.er1 >conftest.err
  18298. + rm -f conftest.er1
  18299. + cat conftest.err >&5
  18300. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18301. + (exit $ac_status); } && {
  18302. + test -z "$ac_cxx_werror_flag" ||
  18303. + test ! -s conftest.err
  18304. + } && test -s conftest$ac_exeext &&
  18305. + $as_test_x conftest$ac_exeext; then
  18306. +
  18307. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  18308. +}'`
  18309. +# Check for a 64-bit object if we didn't find anything.
  18310. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  18311. +}'`; fi
  18312. +else
  18313. + echo "$as_me: failed program was:" >&5
  18314. +sed 's/^/| /' conftest.$ac_ext >&5
  18315. +
  18316. +
  18317. +fi
  18318. +
  18319. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18320. + conftest$ac_exeext conftest.$ac_ext
  18321. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  18322. +
  18323. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  18324. + # Warning - without using the other run time loading flags,
  18325. + # -berok will link without error, but may produce a broken library.
  18326. + no_undefined_flag_CXX=' ${wl}-bernotok'
  18327. + allow_undefined_flag_CXX=' ${wl}-berok'
  18328. + # Exported symbols can be pulled into shared objects from archives
  18329. + whole_archive_flag_spec_CXX='$convenience'
  18330. + archive_cmds_need_lc_CXX=yes
  18331. + # This is similar to how AIX traditionally builds its shared libraries.
  18332. + 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'
  18333. + fi
  18334. + fi
  18335. + ;;
  18336. +
  18337. + beos*)
  18338. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18339. + allow_undefined_flag_CXX=unsupported
  18340. + # Joseph Beckenbach <[email protected]> says some releases of gcc
  18341. + # support --undefined. This deserves some investigation. FIXME
  18342. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18343. + else
  18344. + ld_shlibs_CXX=no
  18345. + fi
  18346. + ;;
  18347. +
  18348. + chorus*)
  18349. + case $cc_basename in
  18350. + *)
  18351. + # FIXME: insert proper C++ library support
  18352. + ld_shlibs_CXX=no
  18353. + ;;
  18354. + esac
  18355. + ;;
  18356. +
  18357. + cygwin* | mingw* | pw32*)
  18358. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  18359. + # as there is no search path for DLLs.
  18360. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  18361. + allow_undefined_flag_CXX=unsupported
  18362. + always_export_symbols_CXX=no
  18363. + enable_shared_with_static_runtimes_CXX=yes
  18364. +
  18365. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  18366. + 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'
  18367. + # If the export-symbols file already is a .def file (1st line
  18368. + # is EXPORTS), use it as is; otherwise, prepend...
  18369. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  18370. + cp $export_symbols $output_objdir/$soname.def;
  18371. + else
  18372. + echo EXPORTS > $output_objdir/$soname.def;
  18373. + cat $export_symbols >> $output_objdir/$soname.def;
  18374. + fi~
  18375. + $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'
  18376. + else
  18377. + ld_shlibs_CXX=no
  18378. + fi
  18379. + ;;
  18380. + darwin* | rhapsody*)
  18381. + case $host_os in
  18382. + rhapsody* | darwin1.[012])
  18383. + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  18384. + ;;
  18385. + *) # Darwin 1.3 on
  18386. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  18387. + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  18388. + else
  18389. + case ${MACOSX_DEPLOYMENT_TARGET} in
  18390. + 10.[012])
  18391. + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  18392. + ;;
  18393. + 10.*)
  18394. + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  18395. + ;;
  18396. + esac
  18397. + fi
  18398. + ;;
  18399. + esac
  18400. + archive_cmds_need_lc_CXX=no
  18401. + hardcode_direct_CXX=no
  18402. + hardcode_automatic_CXX=yes
  18403. + hardcode_shlibpath_var_CXX=unsupported
  18404. + whole_archive_flag_spec_CXX=''
  18405. + link_all_deplibs_CXX=yes
  18406. +
  18407. + if test "$GXX" = yes ; then
  18408. + lt_int_apple_cc_single_mod=no
  18409. + output_verbose_link_cmd='echo'
  18410. + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  18411. + lt_int_apple_cc_single_mod=yes
  18412. + fi
  18413. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  18414. + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  18415. + else
  18416. + 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'
  18417. + fi
  18418. + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  18419. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  18420. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  18421. + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  18422. + else
  18423. + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  18424. + fi
  18425. + 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}'
  18426. + else
  18427. + case $cc_basename in
  18428. + xlc*)
  18429. + output_verbose_link_cmd='echo'
  18430. + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  18431. + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  18432. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  18433. + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  18434. + 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}'
  18435. + ;;
  18436. + *)
  18437. + ld_shlibs_CXX=no
  18438. + ;;
  18439. + esac
  18440. + fi
  18441. + ;;
  18442. +
  18443. + dgux*)
  18444. + case $cc_basename in
  18445. + ec++*)
  18446. + # FIXME: insert proper C++ library support
  18447. + ld_shlibs_CXX=no
  18448. + ;;
  18449. + ghcx*)
  18450. + # Green Hills C++ Compiler
  18451. + # FIXME: insert proper C++ library support
  18452. + ld_shlibs_CXX=no
  18453. + ;;
  18454. + *)
  18455. + # FIXME: insert proper C++ library support
  18456. + ld_shlibs_CXX=no
  18457. + ;;
  18458. + esac
  18459. + ;;
  18460. + freebsd[12]*)
  18461. + # C++ shared libraries reported to be fairly broken before switch to ELF
  18462. + ld_shlibs_CXX=no
  18463. + ;;
  18464. + freebsd-elf*)
  18465. + archive_cmds_need_lc_CXX=no
  18466. + ;;
  18467. + freebsd* | dragonfly*)
  18468. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  18469. + # conventions
  18470. + ld_shlibs_CXX=yes
  18471. + ;;
  18472. + gnu*)
  18473. + ;;
  18474. + hpux9*)
  18475. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  18476. + hardcode_libdir_separator_CXX=:
  18477. + export_dynamic_flag_spec_CXX='${wl}-E'
  18478. + hardcode_direct_CXX=yes
  18479. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  18480. + # but as the default
  18481. + # location of the library.
  18482. +
  18483. + case $cc_basename in
  18484. + CC*)
  18485. + # FIXME: insert proper C++ library support
  18486. + ld_shlibs_CXX=no
  18487. + ;;
  18488. + aCC*)
  18489. + 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'
  18490. + # Commands to make compiler produce verbose output that lists
  18491. + # what "hidden" libraries, object files and flags are used when
  18492. + # linking a shared library.
  18493. + #
  18494. + # There doesn't appear to be a way to prevent this compiler from
  18495. + # explicitly linking system object files so we need to strip them
  18496. + # from the output so that they don't get included in the library
  18497. + # dependencies.
  18498. + 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'
  18499. + ;;
  18500. + *)
  18501. + if test "$GXX" = yes; then
  18502. + 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'
  18503. + else
  18504. + # FIXME: insert proper C++ library support
  18505. + ld_shlibs_CXX=no
  18506. + fi
  18507. + ;;
  18508. + esac
  18509. + ;;
  18510. + hpux10*|hpux11*)
  18511. + if test $with_gnu_ld = no; then
  18512. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  18513. + hardcode_libdir_separator_CXX=:
  18514. +
  18515. + case $host_cpu in
  18516. + hppa*64*|ia64*)
  18517. + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  18518. + ;;
  18519. + *)
  18520. + export_dynamic_flag_spec_CXX='${wl}-E'
  18521. + ;;
  18522. + esac
  18523. + fi
  18524. + case $host_cpu in
  18525. + hppa*64*|ia64*)
  18526. + hardcode_direct_CXX=no
  18527. + hardcode_shlibpath_var_CXX=no
  18528. + ;;
  18529. + *)
  18530. + hardcode_direct_CXX=yes
  18531. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  18532. + # but as the default
  18533. + # location of the library.
  18534. + ;;
  18535. + esac
  18536. +
  18537. + case $cc_basename in
  18538. + CC*)
  18539. + # FIXME: insert proper C++ library support
  18540. + ld_shlibs_CXX=no
  18541. + ;;
  18542. + aCC*)
  18543. + case $host_cpu in
  18544. + hppa*64*)
  18545. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18546. + ;;
  18547. + ia64*)
  18548. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18549. + ;;
  18550. + *)
  18551. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18552. + ;;
  18553. + esac
  18554. + # Commands to make compiler produce verbose output that lists
  18555. + # what "hidden" libraries, object files and flags are used when
  18556. + # linking a shared library.
  18557. + #
  18558. + # There doesn't appear to be a way to prevent this compiler from
  18559. + # explicitly linking system object files so we need to strip them
  18560. + # from the output so that they don't get included in the library
  18561. + # dependencies.
  18562. + 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'
  18563. + ;;
  18564. + *)
  18565. + if test "$GXX" = yes; then
  18566. + if test $with_gnu_ld = no; then
  18567. + case $host_cpu in
  18568. + hppa*64*)
  18569. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18570. + ;;
  18571. + ia64*)
  18572. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18573. + ;;
  18574. + *)
  18575. + 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'
  18576. + ;;
  18577. + esac
  18578. + fi
  18579. + else
  18580. + # FIXME: insert proper C++ library support
  18581. + ld_shlibs_CXX=no
  18582. + fi
  18583. + ;;
  18584. + esac
  18585. + ;;
  18586. + interix3*)
  18587. + hardcode_direct_CXX=no
  18588. + hardcode_shlibpath_var_CXX=no
  18589. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  18590. + export_dynamic_flag_spec_CXX='${wl}-E'
  18591. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  18592. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  18593. + # default) and relocated if they conflict, which is a slow very memory
  18594. + # consuming and fragmenting process. To avoid this, we pick a random,
  18595. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  18596. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  18597. + 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'
  18598. + 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'
  18599. + ;;
  18600. + irix5* | irix6*)
  18601. + case $cc_basename in
  18602. + CC*)
  18603. + # SGI C++
  18604. + 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'
  18605. +
  18606. + # Archives containing C++ object files must be created using
  18607. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  18608. + # necessary to make sure instantiated templates are included
  18609. + # in the archive.
  18610. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  18611. + ;;
  18612. + *)
  18613. + if test "$GXX" = yes; then
  18614. + if test "$with_gnu_ld" = no; then
  18615. + 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'
  18616. + else
  18617. + 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'
  18618. + fi
  18619. + fi
  18620. + link_all_deplibs_CXX=yes
  18621. + ;;
  18622. + esac
  18623. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  18624. + hardcode_libdir_separator_CXX=:
  18625. + ;;
  18626. + linux* | k*bsd*-gnu)
  18627. + case $cc_basename in
  18628. + KCC*)
  18629. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  18630. +
  18631. + # KCC will only create a shared library if the output file
  18632. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  18633. + # to its proper name (with version) after linking.
  18634. + 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'
  18635. + 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'
  18636. + # Commands to make compiler produce verbose output that lists
  18637. + # what "hidden" libraries, object files and flags are used when
  18638. + # linking a shared library.
  18639. + #
  18640. + # There doesn't appear to be a way to prevent this compiler from
  18641. + # explicitly linking system object files so we need to strip them
  18642. + # from the output so that they don't get included in the library
  18643. + # dependencies.
  18644. + 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'
  18645. +
  18646. + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  18647. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  18648. +
  18649. + # Archives containing C++ object files must be created using
  18650. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  18651. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  18652. + ;;
  18653. + icpc*)
  18654. + # Intel C++
  18655. + with_gnu_ld=yes
  18656. + # version 8.0 and above of icpc choke on multiply defined symbols
  18657. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  18658. + # earlier do not add the objects themselves.
  18659. + case `$CC -V 2>&1` in
  18660. + *"Version 7."*)
  18661. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18662. + 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'
  18663. + ;;
  18664. + *) # Version 8.0 or newer
  18665. + tmp_idyn=
  18666. + case $host_cpu in
  18667. + ia64*) tmp_idyn=' -i_dynamic';;
  18668. + esac
  18669. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18670. + 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'
  18671. + ;;
  18672. + esac
  18673. + archive_cmds_need_lc_CXX=no
  18674. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  18675. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  18676. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  18677. + ;;
  18678. + pgCC*)
  18679. + # Portland Group C++ compiler
  18680. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  18681. + 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'
  18682. +
  18683. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  18684. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  18685. + 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'
  18686. + ;;
  18687. + cxx*)
  18688. + # Compaq C++
  18689. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18690. + 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'
  18691. +
  18692. + runpath_var=LD_RUN_PATH
  18693. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  18694. + hardcode_libdir_separator_CXX=:
  18695. +
  18696. + # Commands to make compiler produce verbose output that lists
  18697. + # what "hidden" libraries, object files and flags are used when
  18698. + # linking a shared library.
  18699. + #
  18700. + # There doesn't appear to be a way to prevent this compiler from
  18701. + # explicitly linking system object files so we need to strip them
  18702. + # from the output so that they don't get included in the library
  18703. + # dependencies.
  18704. + 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'
  18705. + ;;
  18706. + esac
  18707. + ;;
  18708. + lynxos*)
  18709. + # FIXME: insert proper C++ library support
  18710. + ld_shlibs_CXX=no
  18711. + ;;
  18712. + m88k*)
  18713. + # FIXME: insert proper C++ library support
  18714. + ld_shlibs_CXX=no
  18715. + ;;
  18716. + mvs*)
  18717. + case $cc_basename in
  18718. + cxx*)
  18719. + # FIXME: insert proper C++ library support
  18720. + ld_shlibs_CXX=no
  18721. + ;;
  18722. + *)
  18723. + # FIXME: insert proper C++ library support
  18724. + ld_shlibs_CXX=no
  18725. + ;;
  18726. + esac
  18727. + ;;
  18728. + netbsd* | netbsdelf*-gnu)
  18729. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18730. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  18731. + wlarc=
  18732. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  18733. + hardcode_direct_CXX=yes
  18734. + hardcode_shlibpath_var_CXX=no
  18735. + fi
  18736. + # Workaround some broken pre-1.5 toolchains
  18737. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  18738. + ;;
  18739. + openbsd2*)
  18740. + # C++ shared libraries are fairly broken
  18741. + ld_shlibs_CXX=no
  18742. + ;;
  18743. + openbsd*)
  18744. + hardcode_direct_CXX=yes
  18745. + hardcode_shlibpath_var_CXX=no
  18746. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  18747. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  18748. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18749. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  18750. + export_dynamic_flag_spec_CXX='${wl}-E'
  18751. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  18752. + fi
  18753. + output_verbose_link_cmd='echo'
  18754. + ;;
  18755. + osf3*)
  18756. + case $cc_basename in
  18757. + KCC*)
  18758. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  18759. +
  18760. + # KCC will only create a shared library if the output file
  18761. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  18762. + # to its proper name (with version) after linking.
  18763. + 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'
  18764. +
  18765. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  18766. + hardcode_libdir_separator_CXX=:
  18767. +
  18768. + # Archives containing C++ object files must be created using
  18769. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  18770. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  18771. +
  18772. + ;;
  18773. + RCC*)
  18774. + # Rational C++ 2.4.1
  18775. + # FIXME: insert proper C++ library support
  18776. + ld_shlibs_CXX=no
  18777. + ;;
  18778. + cxx*)
  18779. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  18780. + 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'
  18781. +
  18782. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  18783. + hardcode_libdir_separator_CXX=:
  18784. +
  18785. + # Commands to make compiler produce verbose output that lists
  18786. + # what "hidden" libraries, object files and flags are used when
  18787. + # linking a shared library.
  18788. + #
  18789. + # There doesn't appear to be a way to prevent this compiler from
  18790. + # explicitly linking system object files so we need to strip them
  18791. + # from the output so that they don't get included in the library
  18792. + # dependencies.
  18793. + 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'
  18794. + ;;
  18795. + *)
  18796. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  18797. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  18798. + 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'
  18799. +
  18800. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  18801. + hardcode_libdir_separator_CXX=:
  18802. +
  18803. + # Commands to make compiler produce verbose output that lists
  18804. + # what "hidden" libraries, object files and flags are used when
  18805. + # linking a shared library.
  18806. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  18807. +
  18808. + else
  18809. + # FIXME: insert proper C++ library support
  18810. + ld_shlibs_CXX=no
  18811. + fi
  18812. + ;;
  18813. + esac
  18814. + ;;
  18815. + osf4* | osf5*)
  18816. + case $cc_basename in
  18817. + KCC*)
  18818. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  18819. +
  18820. + # KCC will only create a shared library if the output file
  18821. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  18822. + # to its proper name (with version) after linking.
  18823. + 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'
  18824. +
  18825. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  18826. + hardcode_libdir_separator_CXX=:
  18827. +
  18828. + # Archives containing C++ object files must be created using
  18829. + # the KAI C++ compiler.
  18830. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  18831. + ;;
  18832. + RCC*)
  18833. + # Rational C++ 2.4.1
  18834. + # FIXME: insert proper C++ library support
  18835. + ld_shlibs_CXX=no
  18836. + ;;
  18837. + cxx*)
  18838. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  18839. + 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'
  18840. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  18841. + echo "-hidden">> $lib.exp~
  18842. + $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~
  18843. + $rm $lib.exp'
  18844. +
  18845. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  18846. + hardcode_libdir_separator_CXX=:
  18847. +
  18848. + # Commands to make compiler produce verbose output that lists
  18849. + # what "hidden" libraries, object files and flags are used when
  18850. + # linking a shared library.
  18851. + #
  18852. + # There doesn't appear to be a way to prevent this compiler from
  18853. + # explicitly linking system object files so we need to strip them
  18854. + # from the output so that they don't get included in the library
  18855. + # dependencies.
  18856. + 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'
  18857. + ;;
  18858. + *)
  18859. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  18860. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  18861. + 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'
  18862. +
  18863. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  18864. + hardcode_libdir_separator_CXX=:
  18865. +
  18866. + # Commands to make compiler produce verbose output that lists
  18867. + # what "hidden" libraries, object files and flags are used when
  18868. + # linking a shared library.
  18869. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  18870. +
  18871. + else
  18872. + # FIXME: insert proper C++ library support
  18873. + ld_shlibs_CXX=no
  18874. + fi
  18875. + ;;
  18876. + esac
  18877. + ;;
  18878. + psos*)
  18879. + # FIXME: insert proper C++ library support
  18880. + ld_shlibs_CXX=no
  18881. + ;;
  18882. + sunos4*)
  18883. + case $cc_basename in
  18884. + CC*)
  18885. + # Sun C++ 4.x
  18886. + # FIXME: insert proper C++ library support
  18887. + ld_shlibs_CXX=no
  18888. + ;;
  18889. + lcc*)
  18890. + # Lucid
  18891. + # FIXME: insert proper C++ library support
  18892. + ld_shlibs_CXX=no
  18893. + ;;
  18894. + *)
  18895. + # FIXME: insert proper C++ library support
  18896. + ld_shlibs_CXX=no
  18897. + ;;
  18898. + esac
  18899. + ;;
  18900. + solaris*)
  18901. + case $cc_basename in
  18902. + CC*)
  18903. + # Sun C++ 4.2, 5.x and Centerline C++
  18904. + archive_cmds_need_lc_CXX=yes
  18905. + no_undefined_flag_CXX=' -zdefs'
  18906. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18907. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18908. + $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'
  18909. +
  18910. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  18911. + hardcode_shlibpath_var_CXX=no
  18912. + case $host_os in
  18913. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  18914. + *)
  18915. + # The C++ compiler is used as linker so we must use $wl
  18916. + # flag to pass the commands to the underlying system
  18917. + # linker. We must also pass each convience library through
  18918. + # to the system linker between allextract/defaultextract.
  18919. + # The C++ compiler will combine linker options so we
  18920. + # cannot just pass the convience library names through
  18921. + # without $wl.
  18922. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  18923. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  18924. + ;;
  18925. + esac
  18926. + link_all_deplibs_CXX=yes
  18927. +
  18928. + output_verbose_link_cmd='echo'
  18929. +
  18930. + # Archives containing C++ object files must be created using
  18931. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  18932. + # necessary to make sure instantiated templates are included
  18933. + # in the archive.
  18934. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  18935. + ;;
  18936. + gcx*)
  18937. + # Green Hills C++ Compiler
  18938. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18939. +
  18940. + # The C++ compiler must be used to create the archive.
  18941. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  18942. + ;;
  18943. + *)
  18944. + # GNU C++ compiler with Solaris linker
  18945. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  18946. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  18947. + if $CC --version | grep -v '^2\.7' > /dev/null; then
  18948. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18949. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18950. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  18951. +
  18952. + # Commands to make compiler produce verbose output that lists
  18953. + # what "hidden" libraries, object files and flags are used when
  18954. + # linking a shared library.
  18955. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  18956. + else
  18957. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  18958. + # platform.
  18959. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18960. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18961. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  18962. +
  18963. + # Commands to make compiler produce verbose output that lists
  18964. + # what "hidden" libraries, object files and flags are used when
  18965. + # linking a shared library.
  18966. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  18967. + fi
  18968. +
  18969. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  18970. + fi
  18971. + ;;
  18972. + esac
  18973. + ;;
  18974. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  18975. + no_undefined_flag_CXX='${wl}-z,text'
  18976. + archive_cmds_need_lc_CXX=no
  18977. + hardcode_shlibpath_var_CXX=no
  18978. + runpath_var='LD_RUN_PATH'
  18979. +
  18980. + case $cc_basename in
  18981. + CC*)
  18982. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18983. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18984. + ;;
  18985. + *)
  18986. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18987. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18988. + ;;
  18989. + esac
  18990. + ;;
  18991. + sysv5* | sco3.2v5* | sco5v6*)
  18992. + # Note: We can NOT use -z defs as we might desire, because we do not
  18993. + # link with -lc, and that would cause any symbols used from libc to
  18994. + # always be unresolved, which means just about no library would
  18995. + # ever link correctly. If we're not using GNU ld we use -z text
  18996. + # though, which does catch some bad symbols but isn't as heavy-handed
  18997. + # as -z defs.
  18998. + # For security reasons, it is highly recommended that you always
  18999. + # use absolute paths for naming shared libraries, and exclude the
  19000. + # DT_RUNPATH tag from executables and libraries. But doing so
  19001. + # requires that you compile everything twice, which is a pain.
  19002. + # So that behaviour is only enabled if SCOABSPATH is set to a
  19003. + # non-empty value in the environment. Most likely only useful for
  19004. + # creating official distributions of packages.
  19005. + # This is a hack until libtool officially supports absolute path
  19006. + # names for shared libraries.
  19007. + no_undefined_flag_CXX='${wl}-z,text'
  19008. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  19009. + archive_cmds_need_lc_CXX=no
  19010. + hardcode_shlibpath_var_CXX=no
  19011. + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  19012. + hardcode_libdir_separator_CXX=':'
  19013. + link_all_deplibs_CXX=yes
  19014. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  19015. + runpath_var='LD_RUN_PATH'
  19016. +
  19017. + case $cc_basename in
  19018. + CC*)
  19019. + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19020. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19021. + ;;
  19022. + *)
  19023. + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19024. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19025. + ;;
  19026. + esac
  19027. + ;;
  19028. + tandem*)
  19029. + case $cc_basename in
  19030. + NCC*)
  19031. + # NonStop-UX NCC 3.20
  19032. + # FIXME: insert proper C++ library support
  19033. + ld_shlibs_CXX=no
  19034. + ;;
  19035. + *)
  19036. + # FIXME: insert proper C++ library support
  19037. + ld_shlibs_CXX=no
  19038. + ;;
  19039. + esac
  19040. + ;;
  19041. + vxworks*)
  19042. + # FIXME: insert proper C++ library support
  19043. + ld_shlibs_CXX=no
  19044. + ;;
  19045. + *)
  19046. + # FIXME: insert proper C++ library support
  19047. + ld_shlibs_CXX=no
  19048. + ;;
  19049. +esac
  19050. +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  19051. +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  19052. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  19053. +
  19054. +GCC_CXX="$GXX"
  19055. +LD_CXX="$LD"
  19056. +
  19057. +
  19058. +cat > conftest.$ac_ext <<EOF
  19059. +class Foo
  19060. +{
  19061. +public:
  19062. + Foo (void) { a = 0; }
  19063. +private:
  19064. + int a;
  19065. +};
  19066. +EOF
  19067. +
  19068. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19069. + (eval $ac_compile) 2>&5
  19070. + ac_status=$?
  19071. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19072. + (exit $ac_status); }; then
  19073. + # Parse the compiler output and extract the necessary
  19074. + # objects, libraries and library flags.
  19075. +
  19076. + # Sentinel used to keep track of whether or not we are before
  19077. + # the conftest object file.
  19078. + pre_test_object_deps_done=no
  19079. +
  19080. + # The `*' in the case matches for architectures that use `case' in
  19081. + # $output_verbose_cmd can trigger glob expansion during the loop
  19082. + # eval without this substitution.
  19083. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  19084. +
  19085. + for p in `eval $output_verbose_link_cmd`; do
  19086. + case $p in
  19087. +
  19088. + -L* | -R* | -l*)
  19089. + # Some compilers place space between "-{L,R}" and the path.
  19090. + # Remove the space.
  19091. + if test $p = "-L" \
  19092. + || test $p = "-R"; then
  19093. + prev=$p
  19094. + continue
  19095. + else
  19096. + prev=
  19097. + fi
  19098. +
  19099. + if test "$pre_test_object_deps_done" = no; then
  19100. + case $p in
  19101. + -L* | -R*)
  19102. + # Internal compiler library paths should come after those
  19103. + # provided the user. The postdeps already come after the
  19104. + # user supplied libs so there is no need to process them.
  19105. + if test -z "$compiler_lib_search_path_CXX"; then
  19106. + compiler_lib_search_path_CXX="${prev}${p}"
  19107. + else
  19108. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  19109. + fi
  19110. + ;;
  19111. + # The "-l" case would never come before the object being
  19112. + # linked, so don't bother handling this case.
  19113. + esac
  19114. + else
  19115. + if test -z "$postdeps_CXX"; then
  19116. + postdeps_CXX="${prev}${p}"
  19117. + else
  19118. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  19119. + fi
  19120. + fi
  19121. + ;;
  19122. +
  19123. + *.$objext)
  19124. + # This assumes that the test object file only shows up
  19125. + # once in the compiler output.
  19126. + if test "$p" = "conftest.$objext"; then
  19127. + pre_test_object_deps_done=yes
  19128. + continue
  19129. + fi
  19130. +
  19131. + if test "$pre_test_object_deps_done" = no; then
  19132. + if test -z "$predep_objects_CXX"; then
  19133. + predep_objects_CXX="$p"
  19134. + else
  19135. + predep_objects_CXX="$predep_objects_CXX $p"
  19136. + fi
  19137. + else
  19138. + if test -z "$postdep_objects_CXX"; then
  19139. + postdep_objects_CXX="$p"
  19140. + else
  19141. + postdep_objects_CXX="$postdep_objects_CXX $p"
  19142. + fi
  19143. + fi
  19144. + ;;
  19145. +
  19146. + *) ;; # Ignore the rest.
  19147. +
  19148. + esac
  19149. + done
  19150. +
  19151. + # Clean up.
  19152. + rm -f a.out a.exe
  19153. +else
  19154. + echo "libtool.m4: error: problem compiling CXX test program"
  19155. +fi
  19156. +
  19157. +$rm -f confest.$objext
  19158. +
  19159. +# PORTME: override above test on systems where it is broken
  19160. +case $host_os in
  19161. +interix3*)
  19162. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  19163. + # hack all around it, let's just trust "g++" to DTRT.
  19164. + predep_objects_CXX=
  19165. + postdep_objects_CXX=
  19166. + postdeps_CXX=
  19167. + ;;
  19168. +
  19169. +solaris*)
  19170. + case $cc_basename in
  19171. + CC*)
  19172. + # Adding this requires a known-good setup of shared libraries for
  19173. + # Sun compiler versions before 5.6, else PIC objects from an old
  19174. + # archive will be linked into the output, leading to subtle bugs.
  19175. + postdeps_CXX='-lCstd -lCrun'
  19176. + ;;
  19177. + esac
  19178. + ;;
  19179. +esac
  19180. +
  19181. +
  19182. +case " $postdeps_CXX " in
  19183. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  19184. +esac
  19185. +
  19186. +lt_prog_compiler_wl_CXX=
  19187. +lt_prog_compiler_pic_CXX=
  19188. +lt_prog_compiler_static_CXX=
  19189. +
  19190. +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  19191. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  19192. +
  19193. + # C++ specific cases for pic, static, wl, etc.
  19194. + if test "$GXX" = yes; then
  19195. + lt_prog_compiler_wl_CXX='-Wl,'
  19196. + lt_prog_compiler_static_CXX='-static'
  19197. +
  19198. + case $host_os in
  19199. + aix*)
  19200. + # All AIX code is PIC.
  19201. + if test "$host_cpu" = ia64; then
  19202. + # AIX 5 now supports IA64 processor
  19203. + lt_prog_compiler_static_CXX='-Bstatic'
  19204. + fi
  19205. + ;;
  19206. + amigaos*)
  19207. + # FIXME: we need at least 68020 code to build shared libraries, but
  19208. + # adding the `-m68020' flag to GCC prevents building anything better,
  19209. + # like `-m68040'.
  19210. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  19211. + ;;
  19212. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  19213. + # PIC is the default for these OSes.
  19214. + ;;
  19215. + mingw* | os2* | pw32*)
  19216. + # This hack is so that the source file can tell whether it is being
  19217. + # built for inclusion in a dll (and should export symbols for example).
  19218. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  19219. + ;;
  19220. + darwin* | rhapsody*)
  19221. + # PIC is the default on this platform
  19222. + # Common symbols not allowed in MH_DYLIB files
  19223. + lt_prog_compiler_pic_CXX='-fno-common'
  19224. + ;;
  19225. + *djgpp*)
  19226. + # DJGPP does not support shared libraries at all
  19227. + lt_prog_compiler_pic_CXX=
  19228. + ;;
  19229. + interix3*)
  19230. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  19231. + # Instead, we relocate shared libraries at runtime.
  19232. + ;;
  19233. + sysv4*MP*)
  19234. + if test -d /usr/nec; then
  19235. + lt_prog_compiler_pic_CXX=-Kconform_pic
  19236. + fi
  19237. + ;;
  19238. + hpux*)
  19239. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19240. + # not for PA HP-UX.
  19241. + case $host_cpu in
  19242. + hppa*64*|ia64*)
  19243. + ;;
  19244. + *)
  19245. + lt_prog_compiler_pic_CXX='-fPIC'
  19246. + ;;
  19247. + esac
  19248. + ;;
  19249. + *)
  19250. + lt_prog_compiler_pic_CXX='-fPIC'
  19251. + ;;
  19252. + esac
  19253. + else
  19254. + case $host_os in
  19255. + aix4* | aix5*)
  19256. + # All AIX code is PIC.
  19257. + if test "$host_cpu" = ia64; then
  19258. + # AIX 5 now supports IA64 processor
  19259. + lt_prog_compiler_static_CXX='-Bstatic'
  19260. + else
  19261. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  19262. + fi
  19263. + ;;
  19264. + chorus*)
  19265. + case $cc_basename in
  19266. + cxch68*)
  19267. + # Green Hills C++ Compiler
  19268. + # _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"
  19269. + ;;
  19270. + esac
  19271. + ;;
  19272. + darwin*)
  19273. + # PIC is the default on this platform
  19274. + # Common symbols not allowed in MH_DYLIB files
  19275. + case $cc_basename in
  19276. + xlc*)
  19277. + lt_prog_compiler_pic_CXX='-qnocommon'
  19278. + lt_prog_compiler_wl_CXX='-Wl,'
  19279. + ;;
  19280. + esac
  19281. + ;;
  19282. + dgux*)
  19283. + case $cc_basename in
  19284. + ec++*)
  19285. + lt_prog_compiler_pic_CXX='-KPIC'
  19286. + ;;
  19287. + ghcx*)
  19288. + # Green Hills C++ Compiler
  19289. + lt_prog_compiler_pic_CXX='-pic'
  19290. + ;;
  19291. + *)
  19292. + ;;
  19293. + esac
  19294. + ;;
  19295. + freebsd* | dragonfly*)
  19296. + # FreeBSD uses GNU C++
  19297. + ;;
  19298. + hpux9* | hpux10* | hpux11*)
  19299. + case $cc_basename in
  19300. + CC*)
  19301. + lt_prog_compiler_wl_CXX='-Wl,'
  19302. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  19303. + if test "$host_cpu" != ia64; then
  19304. + lt_prog_compiler_pic_CXX='+Z'
  19305. + fi
  19306. + ;;
  19307. + aCC*)
  19308. + lt_prog_compiler_wl_CXX='-Wl,'
  19309. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  19310. + case $host_cpu in
  19311. + hppa*64*|ia64*)
  19312. + # +Z the default
  19313. + ;;
  19314. + *)
  19315. + lt_prog_compiler_pic_CXX='+Z'
  19316. + ;;
  19317. + esac
  19318. + ;;
  19319. + *)
  19320. + ;;
  19321. + esac
  19322. + ;;
  19323. + interix*)
  19324. + # This is c89, which is MS Visual C++ (no shared libs)
  19325. + # Anyone wants to do a port?
  19326. + ;;
  19327. + irix5* | irix6* | nonstopux*)
  19328. + case $cc_basename in
  19329. + CC*)
  19330. + lt_prog_compiler_wl_CXX='-Wl,'
  19331. + lt_prog_compiler_static_CXX='-non_shared'
  19332. + # CC pic flag -KPIC is the default.
  19333. + ;;
  19334. + *)
  19335. + ;;
  19336. + esac
  19337. + ;;
  19338. + linux* | k*bsd*-gnu)
  19339. + case $cc_basename in
  19340. + KCC*)
  19341. + # KAI C++ Compiler
  19342. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  19343. + lt_prog_compiler_pic_CXX='-fPIC'
  19344. + ;;
  19345. + icpc* | ecpc*)
  19346. + # Intel C++
  19347. + lt_prog_compiler_wl_CXX='-Wl,'
  19348. + lt_prog_compiler_pic_CXX='-KPIC'
  19349. + lt_prog_compiler_static_CXX='-static'
  19350. + ;;
  19351. + pgCC*)
  19352. + # Portland Group C++ compiler.
  19353. + lt_prog_compiler_wl_CXX='-Wl,'
  19354. + lt_prog_compiler_pic_CXX='-fpic'
  19355. + lt_prog_compiler_static_CXX='-Bstatic'
  19356. + ;;
  19357. + cxx*)
  19358. + # Compaq C++
  19359. + # Make sure the PIC flag is empty. It appears that all Alpha
  19360. + # Linux and Compaq Tru64 Unix objects are PIC.
  19361. + lt_prog_compiler_pic_CXX=
  19362. + lt_prog_compiler_static_CXX='-non_shared'
  19363. + ;;
  19364. + *)
  19365. + ;;
  19366. + esac
  19367. + ;;
  19368. + lynxos*)
  19369. + ;;
  19370. + m88k*)
  19371. + ;;
  19372. + mvs*)
  19373. + case $cc_basename in
  19374. + cxx*)
  19375. + lt_prog_compiler_pic_CXX='-W c,exportall'
  19376. + ;;
  19377. + *)
  19378. + ;;
  19379. + esac
  19380. + ;;
  19381. + netbsd* | netbsdelf*-gnu)
  19382. + ;;
  19383. + osf3* | osf4* | osf5*)
  19384. + case $cc_basename in
  19385. + KCC*)
  19386. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  19387. + ;;
  19388. + RCC*)
  19389. + # Rational C++ 2.4.1
  19390. + lt_prog_compiler_pic_CXX='-pic'
  19391. + ;;
  19392. + cxx*)
  19393. + # Digital/Compaq C++
  19394. + lt_prog_compiler_wl_CXX='-Wl,'
  19395. + # Make sure the PIC flag is empty. It appears that all Alpha
  19396. + # Linux and Compaq Tru64 Unix objects are PIC.
  19397. + lt_prog_compiler_pic_CXX=
  19398. + lt_prog_compiler_static_CXX='-non_shared'
  19399. + ;;
  19400. + *)
  19401. + ;;
  19402. + esac
  19403. + ;;
  19404. + psos*)
  19405. + ;;
  19406. + solaris*)
  19407. + case $cc_basename in
  19408. + CC*)
  19409. + # Sun C++ 4.2, 5.x and Centerline C++
  19410. + lt_prog_compiler_pic_CXX='-KPIC'
  19411. + lt_prog_compiler_static_CXX='-Bstatic'
  19412. + lt_prog_compiler_wl_CXX='-Qoption ld '
  19413. + ;;
  19414. + gcx*)
  19415. + # Green Hills C++ Compiler
  19416. + lt_prog_compiler_pic_CXX='-PIC'
  19417. + ;;
  19418. + *)
  19419. + ;;
  19420. + esac
  19421. + ;;
  19422. + sunos4*)
  19423. + case $cc_basename in
  19424. + CC*)
  19425. + # Sun C++ 4.x
  19426. + lt_prog_compiler_pic_CXX='-pic'
  19427. + lt_prog_compiler_static_CXX='-Bstatic'
  19428. + ;;
  19429. + lcc*)
  19430. + # Lucid
  19431. + lt_prog_compiler_pic_CXX='-pic'
  19432. + ;;
  19433. + *)
  19434. + ;;
  19435. + esac
  19436. + ;;
  19437. + tandem*)
  19438. + case $cc_basename in
  19439. + NCC*)
  19440. + # NonStop-UX NCC 3.20
  19441. + lt_prog_compiler_pic_CXX='-KPIC'
  19442. + ;;
  19443. + *)
  19444. + ;;
  19445. + esac
  19446. + ;;
  19447. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  19448. + case $cc_basename in
  19449. + CC*)
  19450. + lt_prog_compiler_wl_CXX='-Wl,'
  19451. + lt_prog_compiler_pic_CXX='-KPIC'
  19452. + lt_prog_compiler_static_CXX='-Bstatic'
  19453. + ;;
  19454. + esac
  19455. + ;;
  19456. + vxworks*)
  19457. + ;;
  19458. + *)
  19459. + lt_prog_compiler_can_build_shared_CXX=no
  19460. + ;;
  19461. + esac
  19462. + fi
  19463. +
  19464. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  19465. +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  19466. +
  19467. +#
  19468. +# Check to make sure the PIC flag actually works.
  19469. +#
  19470. +if test -n "$lt_prog_compiler_pic_CXX"; then
  19471. +
  19472. +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  19473. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  19474. +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  19475. + echo $ECHO_N "(cached) $ECHO_C" >&6
  19476. +else
  19477. + lt_prog_compiler_pic_works_CXX=no
  19478. + ac_outfile=conftest.$ac_objext
  19479. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  19480. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  19481. + # Insert the option either (1) after the last *FLAGS variable, or
  19482. + # (2) before a word containing "conftest.", or (3) at the end.
  19483. + # Note that $ac_compile itself does not contain backslashes and begins
  19484. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  19485. + # The option is referenced via a variable to avoid confusing sed.
  19486. + lt_compile=`echo "$ac_compile" | $SED \
  19487. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19488. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19489. + -e 's:$: $lt_compiler_flag:'`
  19490. + (eval echo "\"\$as_me:12517: $lt_compile\"" >&5)
  19491. + (eval "$lt_compile" 2>conftest.err)
  19492. + ac_status=$?
  19493. + cat conftest.err >&5
  19494. + echo "$as_me:12521: \$? = $ac_status" >&5
  19495. + if (exit $ac_status) && test -s "$ac_outfile"; then
  19496. + # The compiler can only warn and ignore the option if not recognized
  19497. + # So say no if there are warnings other than the usual output.
  19498. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  19499. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19500. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  19501. + lt_prog_compiler_pic_works_CXX=yes
  19502. + fi
  19503. + fi
  19504. + $rm conftest*
  19505. +
  19506. +fi
  19507. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  19508. +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  19509. +
  19510. +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  19511. + case $lt_prog_compiler_pic_CXX in
  19512. + "" | " "*) ;;
  19513. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  19514. + esac
  19515. +else
  19516. + lt_prog_compiler_pic_CXX=
  19517. + lt_prog_compiler_can_build_shared_CXX=no
  19518. +fi
  19519. +
  19520. +fi
  19521. +case $host_os in
  19522. + # For platforms which do not support PIC, -DPIC is meaningless:
  19523. + *djgpp*)
  19524. + lt_prog_compiler_pic_CXX=
  19525. + ;;
  19526. + *)
  19527. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  19528. + ;;
  19529. +esac
  19530. +
  19531. +#
  19532. +# Check to make sure the static flag actually works.
  19533. +#
  19534. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  19535. +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  19536. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  19537. +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  19538. + echo $ECHO_N "(cached) $ECHO_C" >&6
  19539. +else
  19540. + lt_prog_compiler_static_works_CXX=no
  19541. + save_LDFLAGS="$LDFLAGS"
  19542. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  19543. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  19544. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  19545. + # The linker can only warn and ignore the option if not recognized
  19546. + # So say no if there are warnings
  19547. + if test -s conftest.err; then
  19548. + # Append any errors to the config.log.
  19549. + cat conftest.err 1>&5
  19550. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  19551. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19552. + if diff conftest.exp conftest.er2 >/dev/null; then
  19553. + lt_prog_compiler_static_works_CXX=yes
  19554. + fi
  19555. + else
  19556. + lt_prog_compiler_static_works_CXX=yes
  19557. + fi
  19558. + fi
  19559. + $rm conftest*
  19560. + LDFLAGS="$save_LDFLAGS"
  19561. +
  19562. +fi
  19563. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  19564. +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  19565. +
  19566. +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  19567. + :
  19568. +else
  19569. + lt_prog_compiler_static_CXX=
  19570. +fi
  19571. +
  19572. +
  19573. +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  19574. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  19575. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  19576. + echo $ECHO_N "(cached) $ECHO_C" >&6
  19577. +else
  19578. + lt_cv_prog_compiler_c_o_CXX=no
  19579. + $rm -r conftest 2>/dev/null
  19580. + mkdir conftest
  19581. + cd conftest
  19582. + mkdir out
  19583. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  19584. +
  19585. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  19586. + # Insert the option either (1) after the last *FLAGS variable, or
  19587. + # (2) before a word containing "conftest.", or (3) at the end.
  19588. + # Note that $ac_compile itself does not contain backslashes and begins
  19589. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  19590. + lt_compile=`echo "$ac_compile" | $SED \
  19591. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19592. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19593. + -e 's:$: $lt_compiler_flag:'`
  19594. + (eval echo "\"\$as_me:12621: $lt_compile\"" >&5)
  19595. + (eval "$lt_compile" 2>out/conftest.err)
  19596. + ac_status=$?
  19597. + cat out/conftest.err >&5
  19598. + echo "$as_me:12625: \$? = $ac_status" >&5
  19599. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  19600. + then
  19601. + # The compiler can only warn and ignore the option if not recognized
  19602. + # So say no if there are warnings
  19603. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  19604. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  19605. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  19606. + lt_cv_prog_compiler_c_o_CXX=yes
  19607. + fi
  19608. + fi
  19609. + chmod u+w . 2>&5
  19610. + $rm conftest*
  19611. + # SGI C++ compiler will create directory out/ii_files/ for
  19612. + # template instantiation
  19613. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  19614. + $rm out/* && rmdir out
  19615. + cd ..
  19616. + rmdir conftest
  19617. + $rm conftest*
  19618. +
  19619. +fi
  19620. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  19621. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  19622. +
  19623. +
  19624. +hard_links="nottested"
  19625. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  19626. + # do not overwrite the value of need_locks provided by the user
  19627. + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  19628. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  19629. + hard_links=yes
  19630. + $rm conftest*
  19631. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19632. + touch conftest.a
  19633. + ln conftest.a conftest.b 2>&5 || hard_links=no
  19634. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19635. + { echo "$as_me:$LINENO: result: $hard_links" >&5
  19636. +echo "${ECHO_T}$hard_links" >&6; }
  19637. + if test "$hard_links" = no; then
  19638. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  19639. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  19640. + need_locks=warn
  19641. + fi
  19642. +else
  19643. + need_locks=no
  19644. +fi
  19645. +
  19646. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  19647. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  19648. +
  19649. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  19650. + case $host_os in
  19651. + aix4* | aix5*)
  19652. + # If we're using GNU nm, then we don't want the "-C" option.
  19653. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  19654. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  19655. + 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'
  19656. + else
  19657. + 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'
  19658. + fi
  19659. + ;;
  19660. + pw32*)
  19661. + export_symbols_cmds_CXX="$ltdll_cmds"
  19662. + ;;
  19663. + cygwin* | mingw*)
  19664. + 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'
  19665. + ;;
  19666. + linux* | k*bsd*-gnu)
  19667. + link_all_deplibs_CXX=no
  19668. + ;;
  19669. + *)
  19670. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  19671. + ;;
  19672. + esac
  19673. +
  19674. +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  19675. +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  19676. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  19677. +
  19678. +#
  19679. +# Do we need to explicitly link libc?
  19680. +#
  19681. +case "x$archive_cmds_need_lc_CXX" in
  19682. +x|xyes)
  19683. + # Assume -lc should be added
  19684. + archive_cmds_need_lc_CXX=yes
  19685. +
  19686. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  19687. + case $archive_cmds_CXX in
  19688. + *'~'*)
  19689. + # FIXME: we may have to deal with multi-command sequences.
  19690. + ;;
  19691. + '$CC '*)
  19692. + # Test whether the compiler implicitly links with -lc since on some
  19693. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  19694. + # to ld, don't add -lc before -lgcc.
  19695. + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  19696. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  19697. + $rm conftest*
  19698. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  19699. +
  19700. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19701. + (eval $ac_compile) 2>&5
  19702. + ac_status=$?
  19703. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19704. + (exit $ac_status); } 2>conftest.err; then
  19705. + soname=conftest
  19706. + lib=conftest
  19707. + libobjs=conftest.$ac_objext
  19708. + deplibs=
  19709. + wl=$lt_prog_compiler_wl_CXX
  19710. + pic_flag=$lt_prog_compiler_pic_CXX
  19711. + compiler_flags=-v
  19712. + linker_flags=-v
  19713. + verstring=
  19714. + output_objdir=.
  19715. + libname=conftest
  19716. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  19717. + allow_undefined_flag_CXX=
  19718. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  19719. + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  19720. + ac_status=$?
  19721. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19722. + (exit $ac_status); }
  19723. + then
  19724. + archive_cmds_need_lc_CXX=no
  19725. + else
  19726. + archive_cmds_need_lc_CXX=yes
  19727. + fi
  19728. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  19729. + else
  19730. + cat conftest.err 1>&5
  19731. + fi
  19732. + $rm conftest*
  19733. + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  19734. +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  19735. + ;;
  19736. + esac
  19737. + fi
  19738. + ;;
  19739. +esac
  19740. +
  19741. +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  19742. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  19743. +library_names_spec=
  19744. +libname_spec='lib$name'
  19745. +soname_spec=
  19746. +shrext_cmds=".so"
  19747. +postinstall_cmds=
  19748. +postuninstall_cmds=
  19749. +finish_cmds=
  19750. +finish_eval=
  19751. +shlibpath_var=
  19752. +shlibpath_overrides_runpath=unknown
  19753. +version_type=none
  19754. +dynamic_linker="$host_os ld.so"
  19755. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  19756. +if test "$GCC" = yes; then
  19757. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19758. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  19759. + # if the path contains ";" then we assume it to be the separator
  19760. + # otherwise default to the standard path separator (i.e. ":") - it is
  19761. + # assumed that no part of a normal pathname contains ";" but that should
  19762. + # okay in the real world where ";" in dirpaths is itself problematic.
  19763. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19764. + else
  19765. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19766. + fi
  19767. +else
  19768. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  19769. +fi
  19770. +need_lib_prefix=unknown
  19771. +hardcode_into_libs=no
  19772. +
  19773. +# when you set need_version to no, make sure it does not cause -set_version
  19774. +# flags to be left without arguments
  19775. +need_version=unknown
  19776. +
  19777. +case $host_os in
  19778. +aix3*)
  19779. + version_type=linux
  19780. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  19781. + shlibpath_var=LIBPATH
  19782. +
  19783. + # AIX 3 has no versioning support, so we append a major version to the name.
  19784. + soname_spec='${libname}${release}${shared_ext}$major'
  19785. + ;;
  19786. +
  19787. +aix4* | aix5*)
  19788. + version_type=linux
  19789. + need_lib_prefix=no
  19790. + need_version=no
  19791. + hardcode_into_libs=yes
  19792. + if test "$host_cpu" = ia64; then
  19793. + # AIX 5 supports IA64
  19794. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  19795. + shlibpath_var=LD_LIBRARY_PATH
  19796. + else
  19797. + # With GCC up to 2.95.x, collect2 would create an import file
  19798. + # for dependence libraries. The import file would start with
  19799. + # the line `#! .'. This would cause the generated library to
  19800. + # depend on `.', always an invalid library. This was fixed in
  19801. + # development snapshots of GCC prior to 3.0.
  19802. + case $host_os in
  19803. + aix4 | aix4.[01] | aix4.[01].*)
  19804. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  19805. + echo ' yes '
  19806. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  19807. + :
  19808. + else
  19809. + can_build_shared=no
  19810. + fi
  19811. + ;;
  19812. + esac
  19813. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  19814. + # soname into executable. Probably we can add versioning support to
  19815. + # collect2, so additional links can be useful in future.
  19816. + if test "$aix_use_runtimelinking" = yes; then
  19817. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  19818. + # instead of lib<name>.a to let people know that these are not
  19819. + # typical AIX shared libraries.
  19820. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19821. + else
  19822. + # We preserve .a as extension for shared libraries through AIX4.2
  19823. + # and later when we are not doing run time linking.
  19824. + library_names_spec='${libname}${release}.a $libname.a'
  19825. + soname_spec='${libname}${release}${shared_ext}$major'
  19826. + fi
  19827. + shlibpath_var=LIBPATH
  19828. + fi
  19829. + ;;
  19830. +
  19831. +amigaos*)
  19832. + library_names_spec='$libname.ixlibrary $libname.a'
  19833. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  19834. + 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'
  19835. + ;;
  19836. +
  19837. +beos*)
  19838. + library_names_spec='${libname}${shared_ext}'
  19839. + dynamic_linker="$host_os ld.so"
  19840. + shlibpath_var=LIBRARY_PATH
  19841. + ;;
  19842. +
  19843. +bsdi[45]*)
  19844. + version_type=linux
  19845. + need_version=no
  19846. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19847. + soname_spec='${libname}${release}${shared_ext}$major'
  19848. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  19849. + shlibpath_var=LD_LIBRARY_PATH
  19850. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  19851. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  19852. + # the default ld.so.conf also contains /usr/contrib/lib and
  19853. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  19854. + # libtool to hard-code these into programs
  19855. + ;;
  19856. +
  19857. +cygwin* | mingw* | pw32*)
  19858. + version_type=windows
  19859. + shrext_cmds=".dll"
  19860. + need_version=no
  19861. + need_lib_prefix=no
  19862. +
  19863. + case $GCC,$host_os in
  19864. + yes,cygwin* | yes,mingw* | yes,pw32*)
  19865. + library_names_spec='$libname.dll.a'
  19866. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  19867. + postinstall_cmds='base_file=`basename \${file}`~
  19868. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  19869. + dldir=$destdir/`dirname \$dlpath`~
  19870. + test -d \$dldir || mkdir -p \$dldir~
  19871. + $install_prog $dir/$dlname \$dldir/$dlname~
  19872. + chmod a+x \$dldir/$dlname'
  19873. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  19874. + dlpath=$dir/\$dldll~
  19875. + $rm \$dlpath'
  19876. + shlibpath_overrides_runpath=yes
  19877. +
  19878. + case $host_os in
  19879. + cygwin*)
  19880. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  19881. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19882. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  19883. + ;;
  19884. + mingw*)
  19885. + # MinGW DLLs use traditional 'lib' prefix
  19886. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19887. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19888. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  19889. + # It is most probably a Windows format PATH printed by
  19890. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  19891. + # path with ; separators, and with drive letters. We can handle the
  19892. + # drive letters (cygwin fileutils understands them), so leave them,
  19893. + # especially as we might pass files found there to a mingw objdump,
  19894. + # which wouldn't understand a cygwinified path. Ahh.
  19895. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19896. + else
  19897. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19898. + fi
  19899. + ;;
  19900. + pw32*)
  19901. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  19902. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19903. + ;;
  19904. + esac
  19905. + ;;
  19906. +
  19907. + *)
  19908. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  19909. + ;;
  19910. + esac
  19911. + dynamic_linker='Win32 ld.exe'
  19912. + # FIXME: first we should search . and the directory the executable is in
  19913. + shlibpath_var=PATH
  19914. + ;;
  19915. +
  19916. +darwin* | rhapsody*)
  19917. + dynamic_linker="$host_os dyld"
  19918. + version_type=darwin
  19919. + need_lib_prefix=no
  19920. + need_version=no
  19921. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  19922. + soname_spec='${libname}${release}${major}$shared_ext'
  19923. + shlibpath_overrides_runpath=yes
  19924. + shlibpath_var=DYLD_LIBRARY_PATH
  19925. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  19926. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  19927. + if test "$GCC" = yes; then
  19928. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  19929. + else
  19930. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  19931. + fi
  19932. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  19933. + ;;
  19934. +
  19935. +dgux*)
  19936. + version_type=linux
  19937. + need_lib_prefix=no
  19938. + need_version=no
  19939. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  19940. + soname_spec='${libname}${release}${shared_ext}$major'
  19941. + shlibpath_var=LD_LIBRARY_PATH
  19942. + ;;
  19943. +
  19944. +freebsd1*)
  19945. + dynamic_linker=no
  19946. + ;;
  19947. +
  19948. +freebsd* | dragonfly*)
  19949. + # DragonFly does not have aout. When/if they implement a new
  19950. + # versioning mechanism, adjust this.
  19951. + if test -x /usr/bin/objformat; then
  19952. + objformat=`/usr/bin/objformat`
  19953. + else
  19954. + case $host_os in
  19955. + freebsd[123]*) objformat=aout ;;
  19956. + *) objformat=elf ;;
  19957. + esac
  19958. + fi
  19959. + version_type=freebsd-$objformat
  19960. + case $version_type in
  19961. + freebsd-elf*)
  19962. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  19963. + need_version=no
  19964. + need_lib_prefix=no
  19965. + ;;
  19966. + freebsd-*)
  19967. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  19968. + need_version=yes
  19969. + ;;
  19970. + esac
  19971. + shlibpath_var=LD_LIBRARY_PATH
  19972. + case $host_os in
  19973. + freebsd2*)
  19974. + shlibpath_overrides_runpath=yes
  19975. + ;;
  19976. + freebsd3.[01]* | freebsdelf3.[01]*)
  19977. + shlibpath_overrides_runpath=yes
  19978. + hardcode_into_libs=yes
  19979. + ;;
  19980. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  19981. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  19982. + shlibpath_overrides_runpath=no
  19983. + hardcode_into_libs=yes
  19984. + ;;
  19985. + freebsd*) # from 4.6 on
  19986. + shlibpath_overrides_runpath=yes
  19987. + hardcode_into_libs=yes
  19988. + ;;
  19989. + esac
  19990. + ;;
  19991. +
  19992. +gnu*)
  19993. + version_type=linux
  19994. + need_lib_prefix=no
  19995. + need_version=no
  19996. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  19997. + soname_spec='${libname}${release}${shared_ext}$major'
  19998. + shlibpath_var=LD_LIBRARY_PATH
  19999. + hardcode_into_libs=yes
  20000. + ;;
  20001. +
  20002. +hpux9* | hpux10* | hpux11*)
  20003. + # Give a soname corresponding to the major version so that dld.sl refuses to
  20004. + # link against other versions.
  20005. + version_type=sunos
  20006. + need_lib_prefix=no
  20007. + need_version=no
  20008. + case $host_cpu in
  20009. + ia64*)
  20010. + shrext_cmds='.so'
  20011. + hardcode_into_libs=yes
  20012. + dynamic_linker="$host_os dld.so"
  20013. + shlibpath_var=LD_LIBRARY_PATH
  20014. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20015. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20016. + soname_spec='${libname}${release}${shared_ext}$major'
  20017. + if test "X$HPUX_IA64_MODE" = X32; then
  20018. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  20019. + else
  20020. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  20021. + fi
  20022. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20023. + ;;
  20024. + hppa*64*)
  20025. + shrext_cmds='.sl'
  20026. + hardcode_into_libs=yes
  20027. + dynamic_linker="$host_os dld.sl"
  20028. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  20029. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20030. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20031. + soname_spec='${libname}${release}${shared_ext}$major'
  20032. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  20033. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20034. + ;;
  20035. + *)
  20036. + shrext_cmds='.sl'
  20037. + dynamic_linker="$host_os dld.sl"
  20038. + shlibpath_var=SHLIB_PATH
  20039. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  20040. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20041. + soname_spec='${libname}${release}${shared_ext}$major'
  20042. + ;;
  20043. + esac
  20044. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  20045. + postinstall_cmds='chmod 555 $lib'
  20046. + ;;
  20047. +
  20048. +interix3*)
  20049. + version_type=linux
  20050. + need_lib_prefix=no
  20051. + need_version=no
  20052. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20053. + soname_spec='${libname}${release}${shared_ext}$major'
  20054. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  20055. + shlibpath_var=LD_LIBRARY_PATH
  20056. + shlibpath_overrides_runpath=no
  20057. + hardcode_into_libs=yes
  20058. + ;;
  20059. +
  20060. +irix5* | irix6* | nonstopux*)
  20061. + case $host_os in
  20062. + nonstopux*) version_type=nonstopux ;;
  20063. + *)
  20064. + if test "$lt_cv_prog_gnu_ld" = yes; then
  20065. + version_type=linux
  20066. + else
  20067. + version_type=irix
  20068. + fi ;;
  20069. + esac
  20070. + need_lib_prefix=no
  20071. + need_version=no
  20072. + soname_spec='${libname}${release}${shared_ext}$major'
  20073. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  20074. + case $host_os in
  20075. + irix5* | nonstopux*)
  20076. + libsuff= shlibsuff=
  20077. + ;;
  20078. + *)
  20079. + case $LD in # libtool.m4 will add one of these switches to LD
  20080. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  20081. + libsuff= shlibsuff= libmagic=32-bit;;
  20082. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  20083. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  20084. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  20085. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  20086. + *) libsuff= shlibsuff= libmagic=never-match;;
  20087. + esac
  20088. + ;;
  20089. + esac
  20090. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  20091. + shlibpath_overrides_runpath=no
  20092. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  20093. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  20094. + hardcode_into_libs=yes
  20095. + ;;
  20096. +
  20097. +# No shared lib support for Linux oldld, aout, or coff.
  20098. +linux*oldld* | linux*aout* | linux*coff*)
  20099. + dynamic_linker=no
  20100. + ;;
  20101. +
  20102. +# This must be Linux ELF.
  20103. +linux* | k*bsd*-gnu)
  20104. + version_type=linux
  20105. + need_lib_prefix=no
  20106. + need_version=no
  20107. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20108. + soname_spec='${libname}${release}${shared_ext}$major'
  20109. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  20110. + shlibpath_var=LD_LIBRARY_PATH
  20111. + shlibpath_overrides_runpath=no
  20112. + # This implies no fast_install, which is unacceptable.
  20113. + # Some rework will be needed to allow for fast_install
  20114. + # before this can be enabled.
  20115. + hardcode_into_libs=yes
  20116. +
  20117. + # Append ld.so.conf contents to the search path
  20118. + if test -f /etc/ld.so.conf; then
  20119. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  20120. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  20121. + fi
  20122. +
  20123. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  20124. + # powerpc, because MkLinux only supported shared libraries with the
  20125. + # GNU dynamic linker. Since this was broken with cross compilers,
  20126. + # most powerpc-linux boxes support dynamic linking these days and
  20127. + # people can always --disable-shared, the test was removed, and we
  20128. + # assume the GNU/Linux dynamic linker is in use.
  20129. + dynamic_linker='GNU/Linux ld.so'
  20130. + ;;
  20131. +
  20132. +netbsdelf*-gnu)
  20133. + version_type=linux
  20134. + need_lib_prefix=no
  20135. + need_version=no
  20136. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20137. + soname_spec='${libname}${release}${shared_ext}$major'
  20138. + shlibpath_var=LD_LIBRARY_PATH
  20139. + shlibpath_overrides_runpath=no
  20140. + hardcode_into_libs=yes
  20141. + dynamic_linker='NetBSD ld.elf_so'
  20142. + ;;
  20143. +
  20144. +netbsd*)
  20145. + version_type=sunos
  20146. + need_lib_prefix=no
  20147. + need_version=no
  20148. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  20149. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  20150. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  20151. + dynamic_linker='NetBSD (a.out) ld.so'
  20152. + else
  20153. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20154. + soname_spec='${libname}${release}${shared_ext}$major'
  20155. + dynamic_linker='NetBSD ld.elf_so'
  20156. + fi
  20157. + shlibpath_var=LD_LIBRARY_PATH
  20158. + shlibpath_overrides_runpath=yes
  20159. + hardcode_into_libs=yes
  20160. + ;;
  20161. +
  20162. +newsos6)
  20163. + version_type=linux
  20164. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20165. + shlibpath_var=LD_LIBRARY_PATH
  20166. + shlibpath_overrides_runpath=yes
  20167. + ;;
  20168. +
  20169. +nto-qnx*)
  20170. + version_type=linux
  20171. + need_lib_prefix=no
  20172. + need_version=no
  20173. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20174. + soname_spec='${libname}${release}${shared_ext}$major'
  20175. + shlibpath_var=LD_LIBRARY_PATH
  20176. + shlibpath_overrides_runpath=yes
  20177. + ;;
  20178. +
  20179. +openbsd*)
  20180. + version_type=sunos
  20181. + sys_lib_dlsearch_path_spec="/usr/lib"
  20182. + need_lib_prefix=no
  20183. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  20184. + case $host_os in
  20185. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  20186. + *) need_version=no ;;
  20187. + esac
  20188. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  20189. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  20190. + shlibpath_var=LD_LIBRARY_PATH
  20191. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20192. + case $host_os in
  20193. + openbsd2.[89] | openbsd2.[89].*)
  20194. + shlibpath_overrides_runpath=no
  20195. + ;;
  20196. + *)
  20197. + shlibpath_overrides_runpath=yes
  20198. + ;;
  20199. + esac
  20200. + else
  20201. + shlibpath_overrides_runpath=yes
  20202. + fi
  20203. + ;;
  20204. +
  20205. +os2*)
  20206. + libname_spec='$name'
  20207. + shrext_cmds=".dll"
  20208. + need_lib_prefix=no
  20209. + library_names_spec='$libname${shared_ext} $libname.a'
  20210. + dynamic_linker='OS/2 ld.exe'
  20211. + shlibpath_var=LIBPATH
  20212. + ;;
  20213. +
  20214. +osf3* | osf4* | osf5*)
  20215. + version_type=osf
  20216. + need_lib_prefix=no
  20217. + need_version=no
  20218. + soname_spec='${libname}${release}${shared_ext}$major'
  20219. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20220. + shlibpath_var=LD_LIBRARY_PATH
  20221. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  20222. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  20223. + ;;
  20224. +
  20225. +solaris*)
  20226. + version_type=linux
  20227. + need_lib_prefix=no
  20228. + need_version=no
  20229. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20230. + soname_spec='${libname}${release}${shared_ext}$major'
  20231. + shlibpath_var=LD_LIBRARY_PATH
  20232. + shlibpath_overrides_runpath=yes
  20233. + hardcode_into_libs=yes
  20234. + # ldd complains unless libraries are executable
  20235. + postinstall_cmds='chmod +x $lib'
  20236. + ;;
  20237. +
  20238. +sunos4*)
  20239. + version_type=sunos
  20240. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  20241. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  20242. + shlibpath_var=LD_LIBRARY_PATH
  20243. + shlibpath_overrides_runpath=yes
  20244. + if test "$with_gnu_ld" = yes; then
  20245. + need_lib_prefix=no
  20246. + fi
  20247. + need_version=yes
  20248. + ;;
  20249. +
  20250. +sysv4 | sysv4.3*)
  20251. + version_type=linux
  20252. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20253. + soname_spec='${libname}${release}${shared_ext}$major'
  20254. + shlibpath_var=LD_LIBRARY_PATH
  20255. + case $host_vendor in
  20256. + sni)
  20257. + shlibpath_overrides_runpath=no
  20258. + need_lib_prefix=no
  20259. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  20260. + runpath_var=LD_RUN_PATH
  20261. + ;;
  20262. + siemens)
  20263. + need_lib_prefix=no
  20264. + ;;
  20265. + motorola)
  20266. + need_lib_prefix=no
  20267. + need_version=no
  20268. + shlibpath_overrides_runpath=no
  20269. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  20270. + ;;
  20271. + esac
  20272. + ;;
  20273. +
  20274. +sysv4*MP*)
  20275. + if test -d /usr/nec ;then
  20276. + version_type=linux
  20277. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  20278. + soname_spec='$libname${shared_ext}.$major'
  20279. + shlibpath_var=LD_LIBRARY_PATH
  20280. + fi
  20281. + ;;
  20282. +
  20283. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  20284. + version_type=freebsd-elf
  20285. + need_lib_prefix=no
  20286. + need_version=no
  20287. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  20288. + soname_spec='${libname}${release}${shared_ext}$major'
  20289. + shlibpath_var=LD_LIBRARY_PATH
  20290. + hardcode_into_libs=yes
  20291. + if test "$with_gnu_ld" = yes; then
  20292. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  20293. + shlibpath_overrides_runpath=no
  20294. + else
  20295. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  20296. + shlibpath_overrides_runpath=yes
  20297. + case $host_os in
  20298. + sco3.2v5*)
  20299. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  20300. + ;;
  20301. + esac
  20302. + fi
  20303. + sys_lib_dlsearch_path_spec='/usr/lib'
  20304. + ;;
  20305. +
  20306. +uts4*)
  20307. + version_type=linux
  20308. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20309. + soname_spec='${libname}${release}${shared_ext}$major'
  20310. + shlibpath_var=LD_LIBRARY_PATH
  20311. + ;;
  20312. +
  20313. +*)
  20314. + dynamic_linker=no
  20315. + ;;
  20316. +esac
  20317. +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  20318. +echo "${ECHO_T}$dynamic_linker" >&6; }
  20319. +test "$dynamic_linker" = no && can_build_shared=no
  20320. +
  20321. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  20322. +if test "$GCC" = yes; then
  20323. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  20324. +fi
  20325. +
  20326. +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  20327. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  20328. +hardcode_action_CXX=
  20329. +if test -n "$hardcode_libdir_flag_spec_CXX" || \
  20330. + test -n "$runpath_var_CXX" || \
  20331. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  20332. +
  20333. + # We can hardcode non-existant directories.
  20334. + if test "$hardcode_direct_CXX" != no &&
  20335. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  20336. + # have to relink, otherwise we might link with an installed library
  20337. + # when we should be linking with a yet-to-be-installed one
  20338. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  20339. + test "$hardcode_minus_L_CXX" != no; then
  20340. + # Linking always hardcodes the temporary library directory.
  20341. + hardcode_action_CXX=relink
  20342. + else
  20343. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  20344. + hardcode_action_CXX=immediate
  20345. + fi
  20346. +else
  20347. + # We cannot hardcode anything, or else we can only hardcode existing
  20348. + # directories.
  20349. + hardcode_action_CXX=unsupported
  20350. +fi
  20351. +{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  20352. +echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  20353. +
  20354. +if test "$hardcode_action_CXX" = relink; then
  20355. + # Fast installation is not supported
  20356. + enable_fast_install=no
  20357. +elif test "$shlibpath_overrides_runpath" = yes ||
  20358. + test "$enable_shared" = no; then
  20359. + # Fast installation is not necessary
  20360. + enable_fast_install=needless
  20361. +fi
  20362. +
  20363. +
  20364. +# The else clause should only fire when bootstrapping the
  20365. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  20366. +# with your package, and you will get complaints that there are
  20367. +# no rules to generate ltmain.sh.
  20368. +if test -f "$ltmain"; then
  20369. + # See if we are running on zsh, and set the options which allow our commands through
  20370. + # without removal of \ escapes.
  20371. + if test -n "${ZSH_VERSION+set}" ; then
  20372. + setopt NO_GLOB_SUBST
  20373. + fi
  20374. + # Now quote all the things that may contain metacharacters while being
  20375. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  20376. + # variables and quote the copies for generation of the libtool script.
  20377. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  20378. + SED SHELL STRIP \
  20379. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  20380. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  20381. + deplibs_check_method reload_flag reload_cmds need_locks \
  20382. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  20383. + lt_cv_sys_global_symbol_to_c_name_address \
  20384. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  20385. + old_postinstall_cmds old_postuninstall_cmds \
  20386. + compiler_CXX \
  20387. + CC_CXX \
  20388. + LD_CXX \
  20389. + lt_prog_compiler_wl_CXX \
  20390. + lt_prog_compiler_pic_CXX \
  20391. + lt_prog_compiler_static_CXX \
  20392. + lt_prog_compiler_no_builtin_flag_CXX \
  20393. + export_dynamic_flag_spec_CXX \
  20394. + thread_safe_flag_spec_CXX \
  20395. + whole_archive_flag_spec_CXX \
  20396. + enable_shared_with_static_runtimes_CXX \
  20397. + old_archive_cmds_CXX \
  20398. + old_archive_from_new_cmds_CXX \
  20399. + predep_objects_CXX \
  20400. + postdep_objects_CXX \
  20401. + predeps_CXX \
  20402. + postdeps_CXX \
  20403. + compiler_lib_search_path_CXX \
  20404. + archive_cmds_CXX \
  20405. + archive_expsym_cmds_CXX \
  20406. + postinstall_cmds_CXX \
  20407. + postuninstall_cmds_CXX \
  20408. + old_archive_from_expsyms_cmds_CXX \
  20409. + allow_undefined_flag_CXX \
  20410. + no_undefined_flag_CXX \
  20411. + export_symbols_cmds_CXX \
  20412. + hardcode_libdir_flag_spec_CXX \
  20413. + hardcode_libdir_flag_spec_ld_CXX \
  20414. + hardcode_libdir_separator_CXX \
  20415. + hardcode_automatic_CXX \
  20416. + module_cmds_CXX \
  20417. + module_expsym_cmds_CXX \
  20418. + lt_cv_prog_compiler_c_o_CXX \
  20419. + exclude_expsyms_CXX \
  20420. + include_expsyms_CXX; do
  20421. +
  20422. + case $var in
  20423. + old_archive_cmds_CXX | \
  20424. + old_archive_from_new_cmds_CXX | \
  20425. + archive_cmds_CXX | \
  20426. + archive_expsym_cmds_CXX | \
  20427. + module_cmds_CXX | \
  20428. + module_expsym_cmds_CXX | \
  20429. + old_archive_from_expsyms_cmds_CXX | \
  20430. + export_symbols_cmds_CXX | \
  20431. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  20432. + postinstall_cmds | postuninstall_cmds | \
  20433. + old_postinstall_cmds | old_postuninstall_cmds | \
  20434. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  20435. + # Double-quote double-evaled strings.
  20436. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  20437. + ;;
  20438. + *)
  20439. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  20440. + ;;
  20441. + esac
  20442. + done
  20443. +
  20444. + case $lt_echo in
  20445. + *'\$0 --fallback-echo"')
  20446. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  20447. + ;;
  20448. + esac
  20449. +
  20450. +cfgfile="$ofile"
  20451. +
  20452. + cat <<__EOF__ >> "$cfgfile"
  20453. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  20454. +
  20455. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20456. +
  20457. +# Shell to use when invoking shell scripts.
  20458. +SHELL=$lt_SHELL
  20459. +
  20460. +# Whether or not to build shared libraries.
  20461. +build_libtool_libs=$enable_shared
  20462. +
  20463. +# Whether or not to build static libraries.
  20464. +build_old_libs=$enable_static
  20465. +
  20466. +# Whether or not to add -lc for building shared libraries.
  20467. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20468. +
  20469. +# Whether or not to disallow shared libs when runtime libs are static
  20470. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20471. +
  20472. +# Whether or not to optimize for fast installation.
  20473. +fast_install=$enable_fast_install
  20474. +
  20475. +# The host system.
  20476. +host_alias=$host_alias
  20477. +host=$host
  20478. +host_os=$host_os
  20479. +
  20480. +# The build system.
  20481. +build_alias=$build_alias
  20482. +build=$build
  20483. +build_os=$build_os
  20484. +
  20485. +# An echo program that does not interpret backslashes.
  20486. +echo=$lt_echo
  20487. +
  20488. +# The archiver.
  20489. +AR=$lt_AR
  20490. +AR_FLAGS=$lt_AR_FLAGS
  20491. +
  20492. +# A C compiler.
  20493. +LTCC=$lt_LTCC
  20494. +
  20495. +# LTCC compiler flags.
  20496. +LTCFLAGS=$lt_LTCFLAGS
  20497. +
  20498. +# A language-specific compiler.
  20499. +CC=$lt_compiler_CXX
  20500. +
  20501. +# Is the compiler the GNU C compiler?
  20502. +with_gcc=$GCC_CXX
  20503. +
  20504. +# An ERE matcher.
  20505. +EGREP=$lt_EGREP
  20506. +
  20507. +# The linker used to build libraries.
  20508. +LD=$lt_LD_CXX
  20509. +
  20510. +# Whether we need hard or soft links.
  20511. +LN_S=$lt_LN_S
  20512. +
  20513. +# A BSD-compatible nm program.
  20514. +NM=$lt_NM
  20515. +
  20516. +# A symbol stripping program
  20517. +STRIP=$lt_STRIP
  20518. +
  20519. +# Used to examine libraries when file_magic_cmd begins "file"
  20520. +MAGIC_CMD=$MAGIC_CMD
  20521. +
  20522. +# Used on cygwin: DLL creation program.
  20523. +DLLTOOL="$DLLTOOL"
  20524. +
  20525. +# Used on cygwin: object dumper.
  20526. +OBJDUMP="$OBJDUMP"
  20527. +
  20528. +# Used on cygwin: assembler.
  20529. +AS="$AS"
  20530. +
  20531. +# The name of the directory that contains temporary libtool files.
  20532. +objdir=$objdir
  20533. +
  20534. +# How to create reloadable object files.
  20535. +reload_flag=$lt_reload_flag
  20536. +reload_cmds=$lt_reload_cmds
  20537. +
  20538. +# How to pass a linker flag through the compiler.
  20539. +wl=$lt_lt_prog_compiler_wl_CXX
  20540. +
  20541. +# Object file suffix (normally "o").
  20542. +objext="$ac_objext"
  20543. +
  20544. +# Old archive suffix (normally "a").
  20545. +libext="$libext"
  20546. +
  20547. +# Shared library suffix (normally ".so").
  20548. +shrext_cmds='$shrext_cmds'
  20549. +
  20550. +# Executable file suffix (normally "").
  20551. +exeext="$exeext"
  20552. +
  20553. +# Additional compiler flags for building library objects.
  20554. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  20555. +pic_mode=$pic_mode
  20556. +
  20557. +# What is the maximum length of a command?
  20558. +max_cmd_len=$lt_cv_sys_max_cmd_len
  20559. +
  20560. +# Does compiler simultaneously support -c and -o options?
  20561. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20562. +
  20563. +# Must we lock files when doing compilation?
  20564. +need_locks=$lt_need_locks
  20565. +
  20566. +# Do we need the lib prefix for modules?
  20567. +need_lib_prefix=$need_lib_prefix
  20568. +
  20569. +# Do we need a version for libraries?
  20570. +need_version=$need_version
  20571. +
  20572. +# Whether dlopen is supported.
  20573. +dlopen_support=$enable_dlopen
  20574. +
  20575. +# Whether dlopen of programs is supported.
  20576. +dlopen_self=$enable_dlopen_self
  20577. +
  20578. +# Whether dlopen of statically linked programs is supported.
  20579. +dlopen_self_static=$enable_dlopen_self_static
  20580. +
  20581. +# Compiler flag to prevent dynamic linking.
  20582. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  20583. +
  20584. +# Compiler flag to turn off builtin functions.
  20585. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20586. +
  20587. +# Compiler flag to allow reflexive dlopens.
  20588. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20589. +
  20590. +# Compiler flag to generate shared objects directly from archives.
  20591. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20592. +
  20593. +# Compiler flag to generate thread-safe objects.
  20594. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  20595. +
  20596. +# Library versioning type.
  20597. +version_type=$version_type
  20598. +
  20599. +# Format of library name prefix.
  20600. +libname_spec=$lt_libname_spec
  20601. +
  20602. +# List of archive names. First name is the real one, the rest are links.
  20603. +# The last name is the one that the linker finds with -lNAME.
  20604. +library_names_spec=$lt_library_names_spec
  20605. +
  20606. +# The coded name of the library, if different from the real name.
  20607. +soname_spec=$lt_soname_spec
  20608. +
  20609. +# Commands used to build and install an old-style archive.
  20610. +RANLIB=$lt_RANLIB
  20611. +old_archive_cmds=$lt_old_archive_cmds_CXX
  20612. +old_postinstall_cmds=$lt_old_postinstall_cmds
  20613. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20614. +
  20615. +# Create an old-style archive from a shared archive.
  20616. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20617. +
  20618. +# Create a temporary old-style archive to link instead of a shared archive.
  20619. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20620. +
  20621. +# Commands used to build and install a shared archive.
  20622. +archive_cmds=$lt_archive_cmds_CXX
  20623. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20624. +postinstall_cmds=$lt_postinstall_cmds
  20625. +postuninstall_cmds=$lt_postuninstall_cmds
  20626. +
  20627. +# Commands used to build a loadable module (assumed same as above if empty)
  20628. +module_cmds=$lt_module_cmds_CXX
  20629. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20630. +
  20631. +# Commands to strip libraries.
  20632. +old_striplib=$lt_old_striplib
  20633. +striplib=$lt_striplib
  20634. +
  20635. +# Dependencies to place before the objects being linked to create a
  20636. +# shared library.
  20637. +predep_objects=$lt_predep_objects_CXX
  20638. +
  20639. +# Dependencies to place after the objects being linked to create a
  20640. +# shared library.
  20641. +postdep_objects=$lt_postdep_objects_CXX
  20642. +
  20643. +# Dependencies to place before the objects being linked to create a
  20644. +# shared library.
  20645. +predeps=$lt_predeps_CXX
  20646. +
  20647. +# Dependencies to place after the objects being linked to create a
  20648. +# shared library.
  20649. +postdeps=$lt_postdeps_CXX
  20650. +
  20651. +# The library search path used internally by the compiler when linking
  20652. +# a shared library.
  20653. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20654. +
  20655. +# Method to check whether dependent libraries are shared objects.
  20656. +deplibs_check_method=$lt_deplibs_check_method
  20657. +
  20658. +# Command to use when deplibs_check_method == file_magic.
  20659. +file_magic_cmd=$lt_file_magic_cmd
  20660. +
  20661. +# Flag that allows shared libraries with undefined symbols to be built.
  20662. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20663. +
  20664. +# Flag that forces no undefined symbols.
  20665. +no_undefined_flag=$lt_no_undefined_flag_CXX
  20666. +
  20667. +# Commands used to finish a libtool library installation in a directory.
  20668. +finish_cmds=$lt_finish_cmds
  20669. +
  20670. +# Same as above, but a single script fragment to be evaled but not shown.
  20671. +finish_eval=$lt_finish_eval
  20672. +
  20673. +# Take the output of nm and produce a listing of raw symbols and C names.
  20674. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20675. +
  20676. +# Transform the output of nm in a proper C declaration
  20677. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20678. +
  20679. +# Transform the output of nm in a C name address pair
  20680. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20681. +
  20682. +# This is the shared library runtime path variable.
  20683. +runpath_var=$runpath_var
  20684. +
  20685. +# This is the shared library path variable.
  20686. +shlibpath_var=$shlibpath_var
  20687. +
  20688. +# Is shlibpath searched before the hard-coded library search path?
  20689. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20690. +
  20691. +# How to hardcode a shared library path into an executable.
  20692. +hardcode_action=$hardcode_action_CXX
  20693. +
  20694. +# Whether we should hardcode library paths into libraries.
  20695. +hardcode_into_libs=$hardcode_into_libs
  20696. +
  20697. +# Flag to hardcode \$libdir into a binary during linking.
  20698. +# This must work even if \$libdir does not exist.
  20699. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20700. +
  20701. +# If ld is used when linking, flag to hardcode \$libdir into
  20702. +# a binary during linking. This must work even if \$libdir does
  20703. +# not exist.
  20704. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  20705. +
  20706. +# Whether we need a single -rpath flag with a separated argument.
  20707. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20708. +
  20709. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  20710. +# resulting binary.
  20711. +hardcode_direct=$hardcode_direct_CXX
  20712. +
  20713. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  20714. +# resulting binary.
  20715. +hardcode_minus_L=$hardcode_minus_L_CXX
  20716. +
  20717. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  20718. +# the resulting binary.
  20719. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20720. +
  20721. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  20722. +# and all subsequent libraries and executables linked against it.
  20723. +hardcode_automatic=$hardcode_automatic_CXX
  20724. +
  20725. +# Variables whose values should be saved in libtool wrapper scripts and
  20726. +# restored at relink time.
  20727. +variables_saved_for_relink="$variables_saved_for_relink"
  20728. +
  20729. +# Whether libtool must link a program against all its dependency libraries.
  20730. +link_all_deplibs=$link_all_deplibs_CXX
  20731. +
  20732. +# Compile-time system search path for libraries
  20733. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20734. +
  20735. +# Run-time system search path for libraries
  20736. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20737. +
  20738. +# Fix the shell variable \$srcfile for the compiler.
  20739. +fix_srcfile_path="$fix_srcfile_path_CXX"
  20740. +
  20741. +# Set to yes if exported symbols are required.
  20742. +always_export_symbols=$always_export_symbols_CXX
  20743. +
  20744. +# The commands to list exported symbols.
  20745. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20746. +
  20747. +# The commands to extract the exported symbol list from a shared archive.
  20748. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20749. +
  20750. +# Symbols that should not be listed in the preloaded symbols.
  20751. +exclude_expsyms=$lt_exclude_expsyms_CXX
  20752. +
  20753. +# Symbols that must always be exported.
  20754. +include_expsyms=$lt_include_expsyms_CXX
  20755. +
  20756. +# ### END LIBTOOL TAG CONFIG: $tagname
  20757. +
  20758. +__EOF__
  20759. +
  20760. +
  20761. +else
  20762. + # If there is no Makefile yet, we rely on a make rule to execute
  20763. + # `config.status --recheck' to rerun these tests and create the
  20764. + # libtool script then.
  20765. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  20766. + if test -f "$ltmain_in"; then
  20767. + test -f Makefile && make "$ltmain"
  20768. + fi
  20769. +fi
  20770. +
  20771. +
  20772. +ac_ext=c
  20773. +ac_cpp='$CPP $CPPFLAGS'
  20774. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20775. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20776. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20777. +
  20778. +CC=$lt_save_CC
  20779. +LDCXX=$LD
  20780. +LD=$lt_save_LD
  20781. +GCC=$lt_save_GCC
  20782. +with_gnu_ldcxx=$with_gnu_ld
  20783. +with_gnu_ld=$lt_save_with_gnu_ld
  20784. +lt_cv_path_LDCXX=$lt_cv_path_LD
  20785. +lt_cv_path_LD=$lt_save_path_LD
  20786. +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  20787. +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  20788. +
  20789. + else
  20790. + tagname=""
  20791. + fi
  20792. + ;;
  20793. +
  20794. + F77)
  20795. + if test -n "$F77" && test "X$F77" != "Xno"; then
  20796. +
  20797. +ac_ext=f
  20798. +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  20799. +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20800. +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  20801. +
  20802. +
  20803. +archive_cmds_need_lc_F77=no
  20804. +allow_undefined_flag_F77=
  20805. +always_export_symbols_F77=no
  20806. +archive_expsym_cmds_F77=
  20807. +export_dynamic_flag_spec_F77=
  20808. +hardcode_direct_F77=no
  20809. +hardcode_libdir_flag_spec_F77=
  20810. +hardcode_libdir_flag_spec_ld_F77=
  20811. +hardcode_libdir_separator_F77=
  20812. +hardcode_minus_L_F77=no
  20813. +hardcode_automatic_F77=no
  20814. +module_cmds_F77=
  20815. +module_expsym_cmds_F77=
  20816. +link_all_deplibs_F77=unknown
  20817. +old_archive_cmds_F77=$old_archive_cmds
  20818. +no_undefined_flag_F77=
  20819. +whole_archive_flag_spec_F77=
  20820. +enable_shared_with_static_runtimes_F77=no
  20821. +
  20822. +# Source file extension for f77 test sources.
  20823. +ac_ext=f
  20824. +
  20825. +# Object file extension for compiled f77 test sources.
  20826. +objext=o
  20827. +objext_F77=$objext
  20828. +
  20829. +# Code to be used in simple compile tests
  20830. +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  20831. +
  20832. +# Code to be used in simple link tests
  20833. +lt_simple_link_test_code=" program t\n end\n"
  20834. +
  20835. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  20836. +
  20837. +# If no C compiler was specified, use CC.
  20838. +LTCC=${LTCC-"$CC"}
  20839. +
  20840. +# If no C compiler flags were specified, use CFLAGS.
  20841. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  20842. +
  20843. +# Allow CC to be a program name with arguments.
  20844. +compiler=$CC
  20845. +
  20846. +
  20847. +# save warnings/boilerplate of simple test code
  20848. +ac_outfile=conftest.$ac_objext
  20849. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  20850. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  20851. +_lt_compiler_boilerplate=`cat conftest.err`
  20852. +$rm conftest*
  20853. +
  20854. +ac_outfile=conftest.$ac_objext
  20855. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  20856. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  20857. +_lt_linker_boilerplate=`cat conftest.err`
  20858. +$rm conftest*
  20859. +
  20860. +
  20861. +# Allow CC to be a program name with arguments.
  20862. +lt_save_CC="$CC"
  20863. +CC=${F77-"f77"}
  20864. +compiler=$CC
  20865. +compiler_F77=$CC
  20866. +for cc_temp in $compiler""; do
  20867. + case $cc_temp in
  20868. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20869. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20870. + \-*) ;;
  20871. + *) break;;
  20872. + esac
  20873. +done
  20874. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  20875. +
  20876. +
  20877. +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  20878. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  20879. +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  20880. +echo "${ECHO_T}$can_build_shared" >&6; }
  20881. +
  20882. +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  20883. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  20884. +test "$can_build_shared" = "no" && enable_shared=no
  20885. +
  20886. +# On AIX, shared libraries and static libraries use the same namespace, and
  20887. +# are all built from PIC.
  20888. +case $host_os in
  20889. +aix3*)
  20890. + test "$enable_shared" = yes && enable_static=no
  20891. + if test -n "$RANLIB"; then
  20892. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  20893. + postinstall_cmds='$RANLIB $lib'
  20894. + fi
  20895. + ;;
  20896. +aix4* | aix5*)
  20897. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  20898. + test "$enable_shared" = yes && enable_static=no
  20899. + fi
  20900. + ;;
  20901. +esac
  20902. +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  20903. +echo "${ECHO_T}$enable_shared" >&6; }
  20904. +
  20905. +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  20906. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  20907. +# Make sure either enable_shared or enable_static is yes.
  20908. +test "$enable_shared" = yes || enable_static=yes
  20909. +{ echo "$as_me:$LINENO: result: $enable_static" >&5
  20910. +echo "${ECHO_T}$enable_static" >&6; }
  20911. +
  20912. +GCC_F77="$G77"
  20913. +LD_F77="$LD"
  20914. +
  20915. +lt_prog_compiler_wl_F77=
  20916. +lt_prog_compiler_pic_F77=
  20917. +lt_prog_compiler_static_F77=
  20918. +
  20919. +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  20920. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  20921. +
  20922. + if test "$GCC" = yes; then
  20923. + lt_prog_compiler_wl_F77='-Wl,'
  20924. + lt_prog_compiler_static_F77='-static'
  20925. +
  20926. + case $host_os in
  20927. + aix*)
  20928. + # All AIX code is PIC.
  20929. + if test "$host_cpu" = ia64; then
  20930. + # AIX 5 now supports IA64 processor
  20931. + lt_prog_compiler_static_F77='-Bstatic'
  20932. + fi
  20933. + ;;
  20934. +
  20935. + amigaos*)
  20936. + # FIXME: we need at least 68020 code to build shared libraries, but
  20937. + # adding the `-m68020' flag to GCC prevents building anything better,
  20938. + # like `-m68040'.
  20939. + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  20940. + ;;
  20941. +
  20942. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  20943. + # PIC is the default for these OSes.
  20944. + ;;
  20945. +
  20946. + mingw* | pw32* | os2*)
  20947. + # This hack is so that the source file can tell whether it is being
  20948. + # built for inclusion in a dll (and should export symbols for example).
  20949. + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  20950. + ;;
  20951. +
  20952. + darwin* | rhapsody*)
  20953. + # PIC is the default on this platform
  20954. + # Common symbols not allowed in MH_DYLIB files
  20955. + lt_prog_compiler_pic_F77='-fno-common'
  20956. + ;;
  20957. +
  20958. + interix3*)
  20959. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  20960. + # Instead, we relocate shared libraries at runtime.
  20961. + ;;
  20962. +
  20963. + msdosdjgpp*)
  20964. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  20965. + # on systems that don't support them.
  20966. + lt_prog_compiler_can_build_shared_F77=no
  20967. + enable_shared=no
  20968. + ;;
  20969. +
  20970. + sysv4*MP*)
  20971. + if test -d /usr/nec; then
  20972. + lt_prog_compiler_pic_F77=-Kconform_pic
  20973. + fi
  20974. + ;;
  20975. +
  20976. + hpux*)
  20977. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  20978. + # not for PA HP-UX.
  20979. + case $host_cpu in
  20980. + hppa*64*|ia64*)
  20981. + # +Z the default
  20982. + ;;
  20983. + *)
  20984. + lt_prog_compiler_pic_F77='-fPIC'
  20985. + ;;
  20986. + esac
  20987. + ;;
  20988. +
  20989. + *)
  20990. + lt_prog_compiler_pic_F77='-fPIC'
  20991. + ;;
  20992. + esac
  20993. + else
  20994. + # PORTME Check for flag to pass linker flags through the system compiler.
  20995. + case $host_os in
  20996. + aix*)
  20997. + lt_prog_compiler_wl_F77='-Wl,'
  20998. + if test "$host_cpu" = ia64; then
  20999. + # AIX 5 now supports IA64 processor
  21000. + lt_prog_compiler_static_F77='-Bstatic'
  21001. + else
  21002. + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  21003. + fi
  21004. + ;;
  21005. + darwin*)
  21006. + # PIC is the default on this platform
  21007. + # Common symbols not allowed in MH_DYLIB files
  21008. + case $cc_basename in
  21009. + xlc*)
  21010. + lt_prog_compiler_pic_F77='-qnocommon'
  21011. + lt_prog_compiler_wl_F77='-Wl,'
  21012. + ;;
  21013. + esac
  21014. + ;;
  21015. +
  21016. + mingw* | pw32* | os2*)
  21017. + # This hack is so that the source file can tell whether it is being
  21018. + # built for inclusion in a dll (and should export symbols for example).
  21019. + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  21020. + ;;
  21021. +
  21022. + hpux9* | hpux10* | hpux11*)
  21023. + lt_prog_compiler_wl_F77='-Wl,'
  21024. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21025. + # not for PA HP-UX.
  21026. + case $host_cpu in
  21027. + hppa*64*|ia64*)
  21028. + # +Z the default
  21029. + ;;
  21030. + *)
  21031. + lt_prog_compiler_pic_F77='+Z'
  21032. + ;;
  21033. + esac
  21034. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  21035. + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  21036. + ;;
  21037. +
  21038. + irix5* | irix6* | nonstopux*)
  21039. + lt_prog_compiler_wl_F77='-Wl,'
  21040. + # PIC (with -KPIC) is the default.
  21041. + lt_prog_compiler_static_F77='-non_shared'
  21042. + ;;
  21043. +
  21044. + newsos6)
  21045. + lt_prog_compiler_pic_F77='-KPIC'
  21046. + lt_prog_compiler_static_F77='-Bstatic'
  21047. + ;;
  21048. +
  21049. + linux* | k*bsd*-gnu)
  21050. + case $cc_basename in
  21051. + icc* | ecc*)
  21052. + lt_prog_compiler_wl_F77='-Wl,'
  21053. + lt_prog_compiler_pic_F77='-KPIC'
  21054. + lt_prog_compiler_static_F77='-static'
  21055. + ;;
  21056. + pgcc* | pgf77* | pgf90* | pgf95*)
  21057. + # Portland Group compilers (*not* the Pentium gcc compiler,
  21058. + # which looks to be a dead project)
  21059. + lt_prog_compiler_wl_F77='-Wl,'
  21060. + lt_prog_compiler_pic_F77='-fpic'
  21061. + lt_prog_compiler_static_F77='-Bstatic'
  21062. + ;;
  21063. + ccc*)
  21064. + lt_prog_compiler_wl_F77='-Wl,'
  21065. + # All Alpha code is PIC.
  21066. + lt_prog_compiler_static_F77='-non_shared'
  21067. + ;;
  21068. + esac
  21069. + ;;
  21070. +
  21071. + osf3* | osf4* | osf5*)
  21072. + lt_prog_compiler_wl_F77='-Wl,'
  21073. + # All OSF/1 code is PIC.
  21074. + lt_prog_compiler_static_F77='-non_shared'
  21075. + ;;
  21076. +
  21077. + solaris*)
  21078. + lt_prog_compiler_pic_F77='-KPIC'
  21079. + lt_prog_compiler_static_F77='-Bstatic'
  21080. + case $cc_basename in
  21081. + f77* | f90* | f95*)
  21082. + lt_prog_compiler_wl_F77='-Qoption ld ';;
  21083. + *)
  21084. + lt_prog_compiler_wl_F77='-Wl,';;
  21085. + esac
  21086. + ;;
  21087. +
  21088. + sunos4*)
  21089. + lt_prog_compiler_wl_F77='-Qoption ld '
  21090. + lt_prog_compiler_pic_F77='-PIC'
  21091. + lt_prog_compiler_static_F77='-Bstatic'
  21092. + ;;
  21093. +
  21094. + sysv4 | sysv4.2uw2* | sysv4.3*)
  21095. + lt_prog_compiler_wl_F77='-Wl,'
  21096. + lt_prog_compiler_pic_F77='-KPIC'
  21097. + lt_prog_compiler_static_F77='-Bstatic'
  21098. + ;;
  21099. +
  21100. + sysv4*MP*)
  21101. + if test -d /usr/nec ;then
  21102. + lt_prog_compiler_pic_F77='-Kconform_pic'
  21103. + lt_prog_compiler_static_F77='-Bstatic'
  21104. + fi
  21105. + ;;
  21106. +
  21107. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  21108. + lt_prog_compiler_wl_F77='-Wl,'
  21109. + lt_prog_compiler_pic_F77='-KPIC'
  21110. + lt_prog_compiler_static_F77='-Bstatic'
  21111. + ;;
  21112. +
  21113. + unicos*)
  21114. + lt_prog_compiler_wl_F77='-Wl,'
  21115. + lt_prog_compiler_can_build_shared_F77=no
  21116. + ;;
  21117. +
  21118. + uts4*)
  21119. + lt_prog_compiler_pic_F77='-pic'
  21120. + lt_prog_compiler_static_F77='-Bstatic'
  21121. + ;;
  21122. +
  21123. + *)
  21124. + lt_prog_compiler_can_build_shared_F77=no
  21125. + ;;
  21126. + esac
  21127. + fi
  21128. +
  21129. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  21130. +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  21131. +
  21132. +#
  21133. +# Check to make sure the PIC flag actually works.
  21134. +#
  21135. +if test -n "$lt_prog_compiler_pic_F77"; then
  21136. +
  21137. +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  21138. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  21139. +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  21140. + echo $ECHO_N "(cached) $ECHO_C" >&6
  21141. +else
  21142. + lt_prog_compiler_pic_works_F77=no
  21143. + ac_outfile=conftest.$ac_objext
  21144. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  21145. + lt_compiler_flag="$lt_prog_compiler_pic_F77"
  21146. + # Insert the option either (1) after the last *FLAGS variable, or
  21147. + # (2) before a word containing "conftest.", or (3) at the end.
  21148. + # Note that $ac_compile itself does not contain backslashes and begins
  21149. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  21150. + # The option is referenced via a variable to avoid confusing sed.
  21151. + lt_compile=`echo "$ac_compile" | $SED \
  21152. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21153. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21154. + -e 's:$: $lt_compiler_flag:'`
  21155. + (eval echo "\"\$as_me:14182: $lt_compile\"" >&5)
  21156. + (eval "$lt_compile" 2>conftest.err)
  21157. + ac_status=$?
  21158. + cat conftest.err >&5
  21159. + echo "$as_me:14186: \$? = $ac_status" >&5
  21160. + if (exit $ac_status) && test -s "$ac_outfile"; then
  21161. + # The compiler can only warn and ignore the option if not recognized
  21162. + # So say no if there are warnings other than the usual output.
  21163. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21164. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21165. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21166. + lt_prog_compiler_pic_works_F77=yes
  21167. + fi
  21168. + fi
  21169. + $rm conftest*
  21170. +
  21171. +fi
  21172. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  21173. +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  21174. +
  21175. +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  21176. + case $lt_prog_compiler_pic_F77 in
  21177. + "" | " "*) ;;
  21178. + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  21179. + esac
  21180. +else
  21181. + lt_prog_compiler_pic_F77=
  21182. + lt_prog_compiler_can_build_shared_F77=no
  21183. +fi
  21184. +
  21185. +fi
  21186. +case $host_os in
  21187. + # For platforms which do not support PIC, -DPIC is meaningless:
  21188. + *djgpp*)
  21189. + lt_prog_compiler_pic_F77=
  21190. + ;;
  21191. + *)
  21192. + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  21193. + ;;
  21194. +esac
  21195. +
  21196. +#
  21197. +# Check to make sure the static flag actually works.
  21198. +#
  21199. +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  21200. +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  21201. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  21202. +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  21203. + echo $ECHO_N "(cached) $ECHO_C" >&6
  21204. +else
  21205. + lt_prog_compiler_static_works_F77=no
  21206. + save_LDFLAGS="$LDFLAGS"
  21207. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  21208. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  21209. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  21210. + # The linker can only warn and ignore the option if not recognized
  21211. + # So say no if there are warnings
  21212. + if test -s conftest.err; then
  21213. + # Append any errors to the config.log.
  21214. + cat conftest.err 1>&5
  21215. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  21216. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21217. + if diff conftest.exp conftest.er2 >/dev/null; then
  21218. + lt_prog_compiler_static_works_F77=yes
  21219. + fi
  21220. + else
  21221. + lt_prog_compiler_static_works_F77=yes
  21222. + fi
  21223. + fi
  21224. + $rm conftest*
  21225. + LDFLAGS="$save_LDFLAGS"
  21226. +
  21227. +fi
  21228. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  21229. +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  21230. +
  21231. +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  21232. + :
  21233. +else
  21234. + lt_prog_compiler_static_F77=
  21235. +fi
  21236. +
  21237. +
  21238. +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  21239. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  21240. +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  21241. + echo $ECHO_N "(cached) $ECHO_C" >&6
  21242. +else
  21243. + lt_cv_prog_compiler_c_o_F77=no
  21244. + $rm -r conftest 2>/dev/null
  21245. + mkdir conftest
  21246. + cd conftest
  21247. + mkdir out
  21248. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  21249. +
  21250. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  21251. + # Insert the option either (1) after the last *FLAGS variable, or
  21252. + # (2) before a word containing "conftest.", or (3) at the end.
  21253. + # Note that $ac_compile itself does not contain backslashes and begins
  21254. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  21255. + lt_compile=`echo "$ac_compile" | $SED \
  21256. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21257. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21258. + -e 's:$: $lt_compiler_flag:'`
  21259. + (eval echo "\"\$as_me:14286: $lt_compile\"" >&5)
  21260. + (eval "$lt_compile" 2>out/conftest.err)
  21261. + ac_status=$?
  21262. + cat out/conftest.err >&5
  21263. + echo "$as_me:14290: \$? = $ac_status" >&5
  21264. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  21265. + then
  21266. + # The compiler can only warn and ignore the option if not recognized
  21267. + # So say no if there are warnings
  21268. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  21269. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  21270. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  21271. + lt_cv_prog_compiler_c_o_F77=yes
  21272. + fi
  21273. + fi
  21274. + chmod u+w . 2>&5
  21275. + $rm conftest*
  21276. + # SGI C++ compiler will create directory out/ii_files/ for
  21277. + # template instantiation
  21278. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  21279. + $rm out/* && rmdir out
  21280. + cd ..
  21281. + rmdir conftest
  21282. + $rm conftest*
  21283. +
  21284. +fi
  21285. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  21286. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  21287. +
  21288. +
  21289. +hard_links="nottested"
  21290. +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  21291. + # do not overwrite the value of need_locks provided by the user
  21292. + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  21293. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  21294. + hard_links=yes
  21295. + $rm conftest*
  21296. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  21297. + touch conftest.a
  21298. + ln conftest.a conftest.b 2>&5 || hard_links=no
  21299. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  21300. + { echo "$as_me:$LINENO: result: $hard_links" >&5
  21301. +echo "${ECHO_T}$hard_links" >&6; }
  21302. + if test "$hard_links" = no; then
  21303. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  21304. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  21305. + need_locks=warn
  21306. + fi
  21307. +else
  21308. + need_locks=no
  21309. +fi
  21310. +
  21311. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  21312. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  21313. +
  21314. + runpath_var=
  21315. + allow_undefined_flag_F77=
  21316. + enable_shared_with_static_runtimes_F77=no
  21317. + archive_cmds_F77=
  21318. + archive_expsym_cmds_F77=
  21319. + old_archive_From_new_cmds_F77=
  21320. + old_archive_from_expsyms_cmds_F77=
  21321. + export_dynamic_flag_spec_F77=
  21322. + whole_archive_flag_spec_F77=
  21323. + thread_safe_flag_spec_F77=
  21324. + hardcode_libdir_flag_spec_F77=
  21325. + hardcode_libdir_flag_spec_ld_F77=
  21326. + hardcode_libdir_separator_F77=
  21327. + hardcode_direct_F77=no
  21328. + hardcode_minus_L_F77=no
  21329. + hardcode_shlibpath_var_F77=unsupported
  21330. + link_all_deplibs_F77=unknown
  21331. + hardcode_automatic_F77=no
  21332. + module_cmds_F77=
  21333. + module_expsym_cmds_F77=
  21334. + always_export_symbols_F77=no
  21335. + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  21336. + # include_expsyms should be a list of space-separated symbols to be *always*
  21337. + # included in the symbol list
  21338. + include_expsyms_F77=
  21339. + # exclude_expsyms can be an extended regexp of symbols to exclude
  21340. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  21341. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  21342. + # as well as any symbol that contains `d'.
  21343. + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  21344. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  21345. + # platforms (ab)use it in PIC code, but their linkers get confused if
  21346. + # the symbol is explicitly referenced. Since portable code cannot
  21347. + # rely on this symbol name, it's probably fine to never include it in
  21348. + # preloaded symbol tables.
  21349. + extract_expsyms_cmds=
  21350. + # Just being paranoid about ensuring that cc_basename is set.
  21351. + for cc_temp in $compiler""; do
  21352. + case $cc_temp in
  21353. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  21354. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  21355. + \-*) ;;
  21356. + *) break;;
  21357. + esac
  21358. +done
  21359. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  21360. +
  21361. + case $host_os in
  21362. + cygwin* | mingw* | pw32*)
  21363. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  21364. + # When not using gcc, we currently assume that we are using
  21365. + # Microsoft Visual C++.
  21366. + if test "$GCC" != yes; then
  21367. + with_gnu_ld=no
  21368. + fi
  21369. + ;;
  21370. + interix*)
  21371. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  21372. + with_gnu_ld=yes
  21373. + ;;
  21374. + openbsd*)
  21375. + with_gnu_ld=no
  21376. + ;;
  21377. + esac
  21378. +
  21379. + ld_shlibs_F77=yes
  21380. + if test "$with_gnu_ld" = yes; then
  21381. + # If archive_cmds runs LD, not CC, wlarc should be empty
  21382. + wlarc='${wl}'
  21383. +
  21384. + # Set some defaults for GNU ld with shared library support. These
  21385. + # are reset later if shared libraries are not supported. Putting them
  21386. + # here allows them to be overridden if necessary.
  21387. + runpath_var=LD_RUN_PATH
  21388. + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  21389. + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  21390. + # ancient GNU ld didn't support --whole-archive et. al.
  21391. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  21392. + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  21393. + else
  21394. + whole_archive_flag_spec_F77=
  21395. + fi
  21396. + supports_anon_versioning=no
  21397. + case `$LD -v 2>/dev/null` in
  21398. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  21399. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  21400. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  21401. + *\ 2.11.*) ;; # other 2.11 versions
  21402. + *) supports_anon_versioning=yes ;;
  21403. + esac
  21404. +
  21405. + # See if GNU ld supports shared libraries.
  21406. + case $host_os in
  21407. + aix3* | aix4* | aix5*)
  21408. + # On AIX/PPC, the GNU linker is very broken
  21409. + if test "$host_cpu" != ia64; then
  21410. + ld_shlibs_F77=no
  21411. + cat <<EOF 1>&2
  21412. +
  21413. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  21414. +*** to be unable to reliably create shared libraries on AIX.
  21415. +*** Therefore, libtool is disabling shared libraries support. If you
  21416. +*** really care for shared libraries, you may want to modify your PATH
  21417. +*** so that a non-GNU linker is found, and then restart.
  21418. +
  21419. +EOF
  21420. + fi
  21421. + ;;
  21422. +
  21423. + amigaos*)
  21424. + 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)'
  21425. + hardcode_libdir_flag_spec_F77='-L$libdir'
  21426. + hardcode_minus_L_F77=yes
  21427. +
  21428. + # Samuel A. Falvo II <[email protected]> reports
  21429. + # that the semantics of dynamic libraries on AmigaOS, at least up
  21430. + # to version 4, is to share data among multiple programs linked
  21431. + # with the same dynamic library. Since this doesn't match the
  21432. + # behavior of shared libraries on other platforms, we can't use
  21433. + # them.
  21434. + ld_shlibs_F77=no
  21435. + ;;
  21436. +
  21437. + beos*)
  21438. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21439. + allow_undefined_flag_F77=unsupported
  21440. + # Joseph Beckenbach <[email protected]> says some releases of gcc
  21441. + # support --undefined. This deserves some investigation. FIXME
  21442. + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21443. + else
  21444. + ld_shlibs_F77=no
  21445. + fi
  21446. + ;;
  21447. +
  21448. + cygwin* | mingw* | pw32*)
  21449. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  21450. + # as there is no search path for DLLs.
  21451. + hardcode_libdir_flag_spec_F77='-L$libdir'
  21452. + allow_undefined_flag_F77=unsupported
  21453. + always_export_symbols_F77=no
  21454. + enable_shared_with_static_runtimes_F77=yes
  21455. + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  21456. +
  21457. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  21458. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  21459. + # If the export-symbols file already is a .def file (1st line
  21460. + # is EXPORTS), use it as is; otherwise, prepend...
  21461. + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  21462. + cp $export_symbols $output_objdir/$soname.def;
  21463. + else
  21464. + echo EXPORTS > $output_objdir/$soname.def;
  21465. + cat $export_symbols >> $output_objdir/$soname.def;
  21466. + fi~
  21467. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  21468. + else
  21469. + ld_shlibs_F77=no
  21470. + fi
  21471. + ;;
  21472. +
  21473. + interix3*)
  21474. + hardcode_direct_F77=no
  21475. + hardcode_shlibpath_var_F77=no
  21476. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  21477. + export_dynamic_flag_spec_F77='${wl}-E'
  21478. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  21479. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  21480. + # default) and relocated if they conflict, which is a slow very memory
  21481. + # consuming and fragmenting process. To avoid this, we pick a random,
  21482. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  21483. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  21484. + 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'
  21485. + 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'
  21486. + ;;
  21487. +
  21488. + linux* | k*bsd*-gnu)
  21489. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21490. + tmp_addflag=
  21491. + case $cc_basename,$host_cpu in
  21492. + pgcc*) # Portland Group C compiler
  21493. + 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'
  21494. + tmp_addflag=' $pic_flag'
  21495. + ;;
  21496. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  21497. + 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'
  21498. + tmp_addflag=' $pic_flag -Mnomain' ;;
  21499. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  21500. + tmp_addflag=' -i_dynamic' ;;
  21501. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  21502. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  21503. + ifc* | ifort*) # Intel Fortran compiler
  21504. + tmp_addflag=' -nofor_main' ;;
  21505. + esac
  21506. + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21507. +
  21508. + if test $supports_anon_versioning = yes; then
  21509. + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  21510. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  21511. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  21512. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  21513. + fi
  21514. + link_all_deplibs_F77=no
  21515. + else
  21516. + ld_shlibs_F77=no
  21517. + fi
  21518. + ;;
  21519. +
  21520. + netbsd* | netbsdelf*-gnu)
  21521. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  21522. + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  21523. + wlarc=
  21524. + else
  21525. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21526. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21527. + fi
  21528. + ;;
  21529. +
  21530. + solaris*)
  21531. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  21532. + ld_shlibs_F77=no
  21533. + cat <<EOF 1>&2
  21534. +
  21535. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  21536. +*** create shared libraries on Solaris systems. Therefore, libtool
  21537. +*** is disabling shared libraries support. We urge you to upgrade GNU
  21538. +*** binutils to release 2.9.1 or newer. Another option is to modify
  21539. +*** your PATH or compiler configuration so that the native linker is
  21540. +*** used, and then restart.
  21541. +
  21542. +EOF
  21543. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21544. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21545. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21546. + else
  21547. + ld_shlibs_F77=no
  21548. + fi
  21549. + ;;
  21550. +
  21551. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  21552. + case `$LD -v 2>&1` in
  21553. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  21554. + ld_shlibs_F77=no
  21555. + cat <<_LT_EOF 1>&2
  21556. +
  21557. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  21558. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  21559. +*** is disabling shared libraries support. We urge you to upgrade GNU
  21560. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  21561. +*** your PATH or compiler configuration so that the native linker is
  21562. +*** used, and then restart.
  21563. +
  21564. +_LT_EOF
  21565. + ;;
  21566. + *)
  21567. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21568. + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  21569. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  21570. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  21571. + else
  21572. + ld_shlibs_F77=no
  21573. + fi
  21574. + ;;
  21575. + esac
  21576. + ;;
  21577. +
  21578. + sunos4*)
  21579. + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  21580. + wlarc=
  21581. + hardcode_direct_F77=yes
  21582. + hardcode_shlibpath_var_F77=no
  21583. + ;;
  21584. +
  21585. + *)
  21586. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21587. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21588. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21589. + else
  21590. + ld_shlibs_F77=no
  21591. + fi
  21592. + ;;
  21593. + esac
  21594. +
  21595. + if test "$ld_shlibs_F77" = no; then
  21596. + runpath_var=
  21597. + hardcode_libdir_flag_spec_F77=
  21598. + export_dynamic_flag_spec_F77=
  21599. + whole_archive_flag_spec_F77=
  21600. + fi
  21601. + else
  21602. + # PORTME fill in a description of your system's linker (not GNU ld)
  21603. + case $host_os in
  21604. + aix3*)
  21605. + allow_undefined_flag_F77=unsupported
  21606. + always_export_symbols_F77=yes
  21607. + 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'
  21608. + # Note: this linker hardcodes the directories in LIBPATH if there
  21609. + # are no directories specified by -L.
  21610. + hardcode_minus_L_F77=yes
  21611. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  21612. + # Neither direct hardcoding nor static linking is supported with a
  21613. + # broken collect2.
  21614. + hardcode_direct_F77=unsupported
  21615. + fi
  21616. + ;;
  21617. +
  21618. + aix4* | aix5*)
  21619. + if test "$host_cpu" = ia64; then
  21620. + # On IA64, the linker does run time linking by default, so we don't
  21621. + # have to do anything special.
  21622. + aix_use_runtimelinking=no
  21623. + exp_sym_flag='-Bexport'
  21624. + no_entry_flag=""
  21625. + else
  21626. + # If we're using GNU nm, then we don't want the "-C" option.
  21627. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  21628. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  21629. + 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'
  21630. + else
  21631. + 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'
  21632. + fi
  21633. + aix_use_runtimelinking=no
  21634. +
  21635. + # Test if we are trying to use run time linking or normal
  21636. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  21637. + # need to do runtime linking.
  21638. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  21639. + for ld_flag in $LDFLAGS; do
  21640. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  21641. + aix_use_runtimelinking=yes
  21642. + break
  21643. + fi
  21644. + done
  21645. + ;;
  21646. + esac
  21647. +
  21648. + exp_sym_flag='-bexport'
  21649. + no_entry_flag='-bnoentry'
  21650. + fi
  21651. +
  21652. + # When large executables or shared objects are built, AIX ld can
  21653. + # have problems creating the table of contents. If linking a library
  21654. + # or program results in "error TOC overflow" add -mminimal-toc to
  21655. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  21656. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  21657. +
  21658. + archive_cmds_F77=''
  21659. + hardcode_direct_F77=yes
  21660. + hardcode_libdir_separator_F77=':'
  21661. + link_all_deplibs_F77=yes
  21662. +
  21663. + if test "$GCC" = yes; then
  21664. + case $host_os in aix4.[012]|aix4.[012].*)
  21665. + # We only want to do this on AIX 4.2 and lower, the check
  21666. + # below for broken collect2 doesn't work under 4.3+
  21667. + collect2name=`${CC} -print-prog-name=collect2`
  21668. + if test -f "$collect2name" && \
  21669. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  21670. + then
  21671. + # We have reworked collect2
  21672. + hardcode_direct_F77=yes
  21673. + else
  21674. + # We have old collect2
  21675. + hardcode_direct_F77=unsupported
  21676. + # It fails to find uninstalled libraries when the uninstalled
  21677. + # path is not listed in the libpath. Setting hardcode_minus_L
  21678. + # to unsupported forces relinking
  21679. + hardcode_minus_L_F77=yes
  21680. + hardcode_libdir_flag_spec_F77='-L$libdir'
  21681. + hardcode_libdir_separator_F77=
  21682. + fi
  21683. + ;;
  21684. + esac
  21685. + shared_flag='-shared'
  21686. + if test "$aix_use_runtimelinking" = yes; then
  21687. + shared_flag="$shared_flag "'${wl}-G'
  21688. + fi
  21689. + else
  21690. + # not using gcc
  21691. + if test "$host_cpu" = ia64; then
  21692. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  21693. + # chokes on -Wl,-G. The following line is correct:
  21694. + shared_flag='-G'
  21695. + else
  21696. + if test "$aix_use_runtimelinking" = yes; then
  21697. + shared_flag='${wl}-G'
  21698. + else
  21699. + shared_flag='${wl}-bM:SRE'
  21700. + fi
  21701. + fi
  21702. + fi
  21703. +
  21704. + # It seems that -bexpall does not export symbols beginning with
  21705. + # underscore (_), so it is better to generate a list of symbols to export.
  21706. + always_export_symbols_F77=yes
  21707. + if test "$aix_use_runtimelinking" = yes; then
  21708. + # Warning - without using the other runtime loading flags (-brtl),
  21709. + # -berok will link without error, but may produce a broken library.
  21710. + allow_undefined_flag_F77='-berok'
  21711. + # Determine the default libpath from the value encoded in an empty executable.
  21712. + cat >conftest.$ac_ext <<_ACEOF
  21713. + program main
  21714. +
  21715. + end
  21716. +_ACEOF
  21717. +rm -f conftest.$ac_objext conftest$ac_exeext
  21718. +if { (ac_try="$ac_link"
  21719. +case "(($ac_try" in
  21720. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21721. + *) ac_try_echo=$ac_try;;
  21722. +esac
  21723. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21724. + (eval "$ac_link") 2>conftest.er1
  21725. + ac_status=$?
  21726. + grep -v '^ *+' conftest.er1 >conftest.err
  21727. + rm -f conftest.er1
  21728. + cat conftest.err >&5
  21729. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21730. + (exit $ac_status); } && {
  21731. + test -z "$ac_f77_werror_flag" ||
  21732. + test ! -s conftest.err
  21733. + } && test -s conftest$ac_exeext &&
  21734. + $as_test_x conftest$ac_exeext; then
  21735. +
  21736. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  21737. +}'`
  21738. +# Check for a 64-bit object if we didn't find anything.
  21739. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  21740. +}'`; fi
  21741. +else
  21742. + echo "$as_me: failed program was:" >&5
  21743. +sed 's/^/| /' conftest.$ac_ext >&5
  21744. +
  21745. +
  21746. +fi
  21747. +
  21748. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21749. + conftest$ac_exeext conftest.$ac_ext
  21750. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  21751. +
  21752. + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  21753. + 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"
  21754. + else
  21755. + if test "$host_cpu" = ia64; then
  21756. + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  21757. + allow_undefined_flag_F77="-z nodefs"
  21758. + 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"
  21759. + else
  21760. + # Determine the default libpath from the value encoded in an empty executable.
  21761. + cat >conftest.$ac_ext <<_ACEOF
  21762. + program main
  21763. +
  21764. + end
  21765. +_ACEOF
  21766. +rm -f conftest.$ac_objext conftest$ac_exeext
  21767. +if { (ac_try="$ac_link"
  21768. +case "(($ac_try" in
  21769. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21770. + *) ac_try_echo=$ac_try;;
  21771. +esac
  21772. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21773. + (eval "$ac_link") 2>conftest.er1
  21774. + ac_status=$?
  21775. + grep -v '^ *+' conftest.er1 >conftest.err
  21776. + rm -f conftest.er1
  21777. + cat conftest.err >&5
  21778. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21779. + (exit $ac_status); } && {
  21780. + test -z "$ac_f77_werror_flag" ||
  21781. + test ! -s conftest.err
  21782. + } && test -s conftest$ac_exeext &&
  21783. + $as_test_x conftest$ac_exeext; then
  21784. +
  21785. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  21786. +}'`
  21787. +# Check for a 64-bit object if we didn't find anything.
  21788. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  21789. +}'`; fi
  21790. +else
  21791. + echo "$as_me: failed program was:" >&5
  21792. +sed 's/^/| /' conftest.$ac_ext >&5
  21793. +
  21794. +
  21795. +fi
  21796. +
  21797. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21798. + conftest$ac_exeext conftest.$ac_ext
  21799. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  21800. +
  21801. + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  21802. + # Warning - without using the other run time loading flags,
  21803. + # -berok will link without error, but may produce a broken library.
  21804. + no_undefined_flag_F77=' ${wl}-bernotok'
  21805. + allow_undefined_flag_F77=' ${wl}-berok'
  21806. + # Exported symbols can be pulled into shared objects from archives
  21807. + whole_archive_flag_spec_F77='$convenience'
  21808. + archive_cmds_need_lc_F77=yes
  21809. + # This is similar to how AIX traditionally builds its shared libraries.
  21810. + 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'
  21811. + fi
  21812. + fi
  21813. + ;;
  21814. +
  21815. + amigaos*)
  21816. + 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)'
  21817. + hardcode_libdir_flag_spec_F77='-L$libdir'
  21818. + hardcode_minus_L_F77=yes
  21819. + # see comment about different semantics on the GNU ld section
  21820. + ld_shlibs_F77=no
  21821. + ;;
  21822. +
  21823. + bsdi[45]*)
  21824. + export_dynamic_flag_spec_F77=-rdynamic
  21825. + ;;
  21826. +
  21827. + cygwin* | mingw* | pw32*)
  21828. + # When not using gcc, we currently assume that we are using
  21829. + # Microsoft Visual C++.
  21830. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  21831. + # no search path for DLLs.
  21832. + hardcode_libdir_flag_spec_F77=' '
  21833. + allow_undefined_flag_F77=unsupported
  21834. + # Tell ltmain to make .lib files, not .a files.
  21835. + libext=lib
  21836. + # Tell ltmain to make .dll files, not .so files.
  21837. + shrext_cmds=".dll"
  21838. + # FIXME: Setting linknames here is a bad hack.
  21839. + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  21840. + # The linker will automatically build a .lib file if we build a DLL.
  21841. + old_archive_From_new_cmds_F77='true'
  21842. + # FIXME: Should let the user specify the lib program.
  21843. + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  21844. + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  21845. + enable_shared_with_static_runtimes_F77=yes
  21846. + ;;
  21847. +
  21848. + darwin* | rhapsody*)
  21849. + case $host_os in
  21850. + rhapsody* | darwin1.[012])
  21851. + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  21852. + ;;
  21853. + *) # Darwin 1.3 on
  21854. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  21855. + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  21856. + else
  21857. + case ${MACOSX_DEPLOYMENT_TARGET} in
  21858. + 10.[012])
  21859. + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  21860. + ;;
  21861. + 10.*)
  21862. + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  21863. + ;;
  21864. + esac
  21865. + fi
  21866. + ;;
  21867. + esac
  21868. + archive_cmds_need_lc_F77=no
  21869. + hardcode_direct_F77=no
  21870. + hardcode_automatic_F77=yes
  21871. + hardcode_shlibpath_var_F77=unsupported
  21872. + whole_archive_flag_spec_F77=''
  21873. + link_all_deplibs_F77=yes
  21874. + if test "$GCC" = yes ; then
  21875. + output_verbose_link_cmd='echo'
  21876. + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  21877. + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  21878. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  21879. + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  21880. + 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}'
  21881. + else
  21882. + case $cc_basename in
  21883. + xlc*)
  21884. + output_verbose_link_cmd='echo'
  21885. + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  21886. + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  21887. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  21888. + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  21889. + 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}'
  21890. + ;;
  21891. + *)
  21892. + ld_shlibs_F77=no
  21893. + ;;
  21894. + esac
  21895. + fi
  21896. + ;;
  21897. +
  21898. + dgux*)
  21899. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21900. + hardcode_libdir_flag_spec_F77='-L$libdir'
  21901. + hardcode_shlibpath_var_F77=no
  21902. + ;;
  21903. +
  21904. + freebsd1*)
  21905. + ld_shlibs_F77=no
  21906. + ;;
  21907. +
  21908. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  21909. + # support. Future versions do this automatically, but an explicit c++rt0.o
  21910. + # does not break anything, and helps significantly (at the cost of a little
  21911. + # extra space).
  21912. + freebsd2.2*)
  21913. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  21914. + hardcode_libdir_flag_spec_F77='-R$libdir'
  21915. + hardcode_direct_F77=yes
  21916. + hardcode_shlibpath_var_F77=no
  21917. + ;;
  21918. +
  21919. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  21920. + freebsd2*)
  21921. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  21922. + hardcode_direct_F77=yes
  21923. + hardcode_minus_L_F77=yes
  21924. + hardcode_shlibpath_var_F77=no
  21925. + ;;
  21926. +
  21927. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  21928. + freebsd* | dragonfly*)
  21929. + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  21930. + hardcode_libdir_flag_spec_F77='-R$libdir'
  21931. + hardcode_direct_F77=yes
  21932. + hardcode_shlibpath_var_F77=no
  21933. + ;;
  21934. +
  21935. + hpux9*)
  21936. + if test "$GCC" = yes; then
  21937. + 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'
  21938. + else
  21939. + 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'
  21940. + fi
  21941. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  21942. + hardcode_libdir_separator_F77=:
  21943. + hardcode_direct_F77=yes
  21944. +
  21945. + # hardcode_minus_L: Not really in the search PATH,
  21946. + # but as the default location of the library.
  21947. + hardcode_minus_L_F77=yes
  21948. + export_dynamic_flag_spec_F77='${wl}-E'
  21949. + ;;
  21950. +
  21951. + hpux10*)
  21952. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  21953. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  21954. + else
  21955. + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  21956. + fi
  21957. + if test "$with_gnu_ld" = no; then
  21958. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  21959. + hardcode_libdir_separator_F77=:
  21960. +
  21961. + hardcode_direct_F77=yes
  21962. + export_dynamic_flag_spec_F77='${wl}-E'
  21963. +
  21964. + # hardcode_minus_L: Not really in the search PATH,
  21965. + # but as the default location of the library.
  21966. + hardcode_minus_L_F77=yes
  21967. + fi
  21968. + ;;
  21969. +
  21970. + hpux11*)
  21971. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  21972. + case $host_cpu in
  21973. + hppa*64*)
  21974. + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  21975. + ;;
  21976. + ia64*)
  21977. + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  21978. + ;;
  21979. + *)
  21980. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  21981. + ;;
  21982. + esac
  21983. + else
  21984. + case $host_cpu in
  21985. + hppa*64*)
  21986. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  21987. + ;;
  21988. + ia64*)
  21989. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  21990. + ;;
  21991. + *)
  21992. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  21993. + ;;
  21994. + esac
  21995. + fi
  21996. + if test "$with_gnu_ld" = no; then
  21997. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  21998. + hardcode_libdir_separator_F77=:
  21999. +
  22000. + case $host_cpu in
  22001. + hppa*64*|ia64*)
  22002. + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  22003. + hardcode_direct_F77=no
  22004. + hardcode_shlibpath_var_F77=no
  22005. + ;;
  22006. + *)
  22007. + hardcode_direct_F77=yes
  22008. + export_dynamic_flag_spec_F77='${wl}-E'
  22009. +
  22010. + # hardcode_minus_L: Not really in the search PATH,
  22011. + # but as the default location of the library.
  22012. + hardcode_minus_L_F77=yes
  22013. + ;;
  22014. + esac
  22015. + fi
  22016. + ;;
  22017. +
  22018. + irix5* | irix6* | nonstopux*)
  22019. + if test "$GCC" = yes; then
  22020. + 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'
  22021. + else
  22022. + 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'
  22023. + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  22024. + fi
  22025. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  22026. + hardcode_libdir_separator_F77=:
  22027. + link_all_deplibs_F77=yes
  22028. + ;;
  22029. +
  22030. + netbsd* | netbsdelf*-gnu)
  22031. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22032. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  22033. + else
  22034. + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  22035. + fi
  22036. + hardcode_libdir_flag_spec_F77='-R$libdir'
  22037. + hardcode_direct_F77=yes
  22038. + hardcode_shlibpath_var_F77=no
  22039. + ;;
  22040. +
  22041. + newsos6)
  22042. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22043. + hardcode_direct_F77=yes
  22044. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  22045. + hardcode_libdir_separator_F77=:
  22046. + hardcode_shlibpath_var_F77=no
  22047. + ;;
  22048. +
  22049. + openbsd*)
  22050. + hardcode_direct_F77=yes
  22051. + hardcode_shlibpath_var_F77=no
  22052. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22053. + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22054. + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  22055. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  22056. + export_dynamic_flag_spec_F77='${wl}-E'
  22057. + else
  22058. + case $host_os in
  22059. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  22060. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22061. + hardcode_libdir_flag_spec_F77='-R$libdir'
  22062. + ;;
  22063. + *)
  22064. + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22065. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  22066. + ;;
  22067. + esac
  22068. + fi
  22069. + ;;
  22070. +
  22071. + os2*)
  22072. + hardcode_libdir_flag_spec_F77='-L$libdir'
  22073. + hardcode_minus_L_F77=yes
  22074. + allow_undefined_flag_F77=unsupported
  22075. + 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'
  22076. + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  22077. + ;;
  22078. +
  22079. + osf3*)
  22080. + if test "$GCC" = yes; then
  22081. + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  22082. + 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'
  22083. + else
  22084. + allow_undefined_flag_F77=' -expect_unresolved \*'
  22085. + 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'
  22086. + fi
  22087. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  22088. + hardcode_libdir_separator_F77=:
  22089. + ;;
  22090. +
  22091. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  22092. + if test "$GCC" = yes; then
  22093. + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  22094. + 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'
  22095. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  22096. + else
  22097. + allow_undefined_flag_F77=' -expect_unresolved \*'
  22098. + 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'
  22099. + 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~
  22100. + $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'
  22101. +
  22102. + # Both c and cxx compiler support -rpath directly
  22103. + hardcode_libdir_flag_spec_F77='-rpath $libdir'
  22104. + fi
  22105. + hardcode_libdir_separator_F77=:
  22106. + ;;
  22107. +
  22108. + solaris*)
  22109. + no_undefined_flag_F77=' -z text'
  22110. + if test "$GCC" = yes; then
  22111. + wlarc='${wl}'
  22112. + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22113. + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  22114. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  22115. + else
  22116. + wlarc=''
  22117. + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22118. + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  22119. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  22120. + fi
  22121. + hardcode_libdir_flag_spec_F77='-R$libdir'
  22122. + hardcode_shlibpath_var_F77=no
  22123. + case $host_os in
  22124. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  22125. + *)
  22126. + # The compiler driver will combine linker options so we
  22127. + # cannot just pass the convience library names through
  22128. + # without $wl, iff we do not link with $LD.
  22129. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  22130. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  22131. + case $wlarc in
  22132. + '')
  22133. + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  22134. + *)
  22135. + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  22136. + esac ;;
  22137. + esac
  22138. + link_all_deplibs_F77=yes
  22139. + ;;
  22140. +
  22141. + sunos4*)
  22142. + if test "x$host_vendor" = xsequent; then
  22143. + # Use $CC to link under sequent, because it throws in some extra .o
  22144. + # files that make .init and .fini sections work.
  22145. + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  22146. + else
  22147. + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  22148. + fi
  22149. + hardcode_libdir_flag_spec_F77='-L$libdir'
  22150. + hardcode_direct_F77=yes
  22151. + hardcode_minus_L_F77=yes
  22152. + hardcode_shlibpath_var_F77=no
  22153. + ;;
  22154. +
  22155. + sysv4)
  22156. + case $host_vendor in
  22157. + sni)
  22158. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22159. + hardcode_direct_F77=yes # is this really true???
  22160. + ;;
  22161. + siemens)
  22162. + ## LD is ld it makes a PLAMLIB
  22163. + ## CC just makes a GrossModule.
  22164. + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  22165. + reload_cmds_F77='$CC -r -o $output$reload_objs'
  22166. + hardcode_direct_F77=no
  22167. + ;;
  22168. + motorola)
  22169. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22170. + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  22171. + ;;
  22172. + esac
  22173. + runpath_var='LD_RUN_PATH'
  22174. + hardcode_shlibpath_var_F77=no
  22175. + ;;
  22176. +
  22177. + sysv4.3*)
  22178. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22179. + hardcode_shlibpath_var_F77=no
  22180. + export_dynamic_flag_spec_F77='-Bexport'
  22181. + ;;
  22182. +
  22183. + sysv4*MP*)
  22184. + if test -d /usr/nec; then
  22185. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22186. + hardcode_shlibpath_var_F77=no
  22187. + runpath_var=LD_RUN_PATH
  22188. + hardcode_runpath_var=yes
  22189. + ld_shlibs_F77=yes
  22190. + fi
  22191. + ;;
  22192. +
  22193. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  22194. + no_undefined_flag_F77='${wl}-z,text'
  22195. + archive_cmds_need_lc_F77=no
  22196. + hardcode_shlibpath_var_F77=no
  22197. + runpath_var='LD_RUN_PATH'
  22198. +
  22199. + if test "$GCC" = yes; then
  22200. + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22201. + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22202. + else
  22203. + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22204. + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22205. + fi
  22206. + ;;
  22207. +
  22208. + sysv5* | sco3.2v5* | sco5v6*)
  22209. + # Note: We can NOT use -z defs as we might desire, because we do not
  22210. + # link with -lc, and that would cause any symbols used from libc to
  22211. + # always be unresolved, which means just about no library would
  22212. + # ever link correctly. If we're not using GNU ld we use -z text
  22213. + # though, which does catch some bad symbols but isn't as heavy-handed
  22214. + # as -z defs.
  22215. + no_undefined_flag_F77='${wl}-z,text'
  22216. + allow_undefined_flag_F77='${wl}-z,nodefs'
  22217. + archive_cmds_need_lc_F77=no
  22218. + hardcode_shlibpath_var_F77=no
  22219. + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  22220. + hardcode_libdir_separator_F77=':'
  22221. + link_all_deplibs_F77=yes
  22222. + export_dynamic_flag_spec_F77='${wl}-Bexport'
  22223. + runpath_var='LD_RUN_PATH'
  22224. +
  22225. + if test "$GCC" = yes; then
  22226. + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22227. + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22228. + else
  22229. + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22230. + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22231. + fi
  22232. + ;;
  22233. +
  22234. + uts4*)
  22235. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22236. + hardcode_libdir_flag_spec_F77='-L$libdir'
  22237. + hardcode_shlibpath_var_F77=no
  22238. + ;;
  22239. +
  22240. + *)
  22241. + ld_shlibs_F77=no
  22242. + ;;
  22243. + esac
  22244. + fi
  22245. +
  22246. +{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  22247. +echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  22248. +test "$ld_shlibs_F77" = no && can_build_shared=no
  22249. +
  22250. +#
  22251. +# Do we need to explicitly link libc?
  22252. +#
  22253. +case "x$archive_cmds_need_lc_F77" in
  22254. +x|xyes)
  22255. + # Assume -lc should be added
  22256. + archive_cmds_need_lc_F77=yes
  22257. +
  22258. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  22259. + case $archive_cmds_F77 in
  22260. + *'~'*)
  22261. + # FIXME: we may have to deal with multi-command sequences.
  22262. + ;;
  22263. + '$CC '*)
  22264. + # Test whether the compiler implicitly links with -lc since on some
  22265. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  22266. + # to ld, don't add -lc before -lgcc.
  22267. + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  22268. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  22269. + $rm conftest*
  22270. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  22271. +
  22272. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22273. + (eval $ac_compile) 2>&5
  22274. + ac_status=$?
  22275. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22276. + (exit $ac_status); } 2>conftest.err; then
  22277. + soname=conftest
  22278. + lib=conftest
  22279. + libobjs=conftest.$ac_objext
  22280. + deplibs=
  22281. + wl=$lt_prog_compiler_wl_F77
  22282. + pic_flag=$lt_prog_compiler_pic_F77
  22283. + compiler_flags=-v
  22284. + linker_flags=-v
  22285. + verstring=
  22286. + output_objdir=.
  22287. + libname=conftest
  22288. + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  22289. + allow_undefined_flag_F77=
  22290. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  22291. + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  22292. + ac_status=$?
  22293. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22294. + (exit $ac_status); }
  22295. + then
  22296. + archive_cmds_need_lc_F77=no
  22297. + else
  22298. + archive_cmds_need_lc_F77=yes
  22299. + fi
  22300. + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  22301. + else
  22302. + cat conftest.err 1>&5
  22303. + fi
  22304. + $rm conftest*
  22305. + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  22306. +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  22307. + ;;
  22308. + esac
  22309. + fi
  22310. + ;;
  22311. +esac
  22312. +
  22313. +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  22314. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  22315. +library_names_spec=
  22316. +libname_spec='lib$name'
  22317. +soname_spec=
  22318. +shrext_cmds=".so"
  22319. +postinstall_cmds=
  22320. +postuninstall_cmds=
  22321. +finish_cmds=
  22322. +finish_eval=
  22323. +shlibpath_var=
  22324. +shlibpath_overrides_runpath=unknown
  22325. +version_type=none
  22326. +dynamic_linker="$host_os ld.so"
  22327. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  22328. +if test "$GCC" = yes; then
  22329. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  22330. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  22331. + # if the path contains ";" then we assume it to be the separator
  22332. + # otherwise default to the standard path separator (i.e. ":") - it is
  22333. + # assumed that no part of a normal pathname contains ";" but that should
  22334. + # okay in the real world where ";" in dirpaths is itself problematic.
  22335. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  22336. + else
  22337. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  22338. + fi
  22339. +else
  22340. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  22341. +fi
  22342. +need_lib_prefix=unknown
  22343. +hardcode_into_libs=no
  22344. +
  22345. +# when you set need_version to no, make sure it does not cause -set_version
  22346. +# flags to be left without arguments
  22347. +need_version=unknown
  22348. +
  22349. +case $host_os in
  22350. +aix3*)
  22351. + version_type=linux
  22352. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  22353. + shlibpath_var=LIBPATH
  22354. +
  22355. + # AIX 3 has no versioning support, so we append a major version to the name.
  22356. + soname_spec='${libname}${release}${shared_ext}$major'
  22357. + ;;
  22358. +
  22359. +aix4* | aix5*)
  22360. + version_type=linux
  22361. + need_lib_prefix=no
  22362. + need_version=no
  22363. + hardcode_into_libs=yes
  22364. + if test "$host_cpu" = ia64; then
  22365. + # AIX 5 supports IA64
  22366. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  22367. + shlibpath_var=LD_LIBRARY_PATH
  22368. + else
  22369. + # With GCC up to 2.95.x, collect2 would create an import file
  22370. + # for dependence libraries. The import file would start with
  22371. + # the line `#! .'. This would cause the generated library to
  22372. + # depend on `.', always an invalid library. This was fixed in
  22373. + # development snapshots of GCC prior to 3.0.
  22374. + case $host_os in
  22375. + aix4 | aix4.[01] | aix4.[01].*)
  22376. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  22377. + echo ' yes '
  22378. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  22379. + :
  22380. + else
  22381. + can_build_shared=no
  22382. + fi
  22383. + ;;
  22384. + esac
  22385. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  22386. + # soname into executable. Probably we can add versioning support to
  22387. + # collect2, so additional links can be useful in future.
  22388. + if test "$aix_use_runtimelinking" = yes; then
  22389. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  22390. + # instead of lib<name>.a to let people know that these are not
  22391. + # typical AIX shared libraries.
  22392. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22393. + else
  22394. + # We preserve .a as extension for shared libraries through AIX4.2
  22395. + # and later when we are not doing run time linking.
  22396. + library_names_spec='${libname}${release}.a $libname.a'
  22397. + soname_spec='${libname}${release}${shared_ext}$major'
  22398. + fi
  22399. + shlibpath_var=LIBPATH
  22400. + fi
  22401. + ;;
  22402. +
  22403. +amigaos*)
  22404. + library_names_spec='$libname.ixlibrary $libname.a'
  22405. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  22406. + 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'
  22407. + ;;
  22408. +
  22409. +beos*)
  22410. + library_names_spec='${libname}${shared_ext}'
  22411. + dynamic_linker="$host_os ld.so"
  22412. + shlibpath_var=LIBRARY_PATH
  22413. + ;;
  22414. +
  22415. +bsdi[45]*)
  22416. + version_type=linux
  22417. + need_version=no
  22418. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22419. + soname_spec='${libname}${release}${shared_ext}$major'
  22420. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  22421. + shlibpath_var=LD_LIBRARY_PATH
  22422. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  22423. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  22424. + # the default ld.so.conf also contains /usr/contrib/lib and
  22425. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  22426. + # libtool to hard-code these into programs
  22427. + ;;
  22428. +
  22429. +cygwin* | mingw* | pw32*)
  22430. + version_type=windows
  22431. + shrext_cmds=".dll"
  22432. + need_version=no
  22433. + need_lib_prefix=no
  22434. +
  22435. + case $GCC,$host_os in
  22436. + yes,cygwin* | yes,mingw* | yes,pw32*)
  22437. + library_names_spec='$libname.dll.a'
  22438. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  22439. + postinstall_cmds='base_file=`basename \${file}`~
  22440. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  22441. + dldir=$destdir/`dirname \$dlpath`~
  22442. + test -d \$dldir || mkdir -p \$dldir~
  22443. + $install_prog $dir/$dlname \$dldir/$dlname~
  22444. + chmod a+x \$dldir/$dlname'
  22445. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  22446. + dlpath=$dir/\$dldll~
  22447. + $rm \$dlpath'
  22448. + shlibpath_overrides_runpath=yes
  22449. +
  22450. + case $host_os in
  22451. + cygwin*)
  22452. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  22453. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  22454. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  22455. + ;;
  22456. + mingw*)
  22457. + # MinGW DLLs use traditional 'lib' prefix
  22458. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  22459. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  22460. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  22461. + # It is most probably a Windows format PATH printed by
  22462. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  22463. + # path with ; separators, and with drive letters. We can handle the
  22464. + # drive letters (cygwin fileutils understands them), so leave them,
  22465. + # especially as we might pass files found there to a mingw objdump,
  22466. + # which wouldn't understand a cygwinified path. Ahh.
  22467. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  22468. + else
  22469. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  22470. + fi
  22471. + ;;
  22472. + pw32*)
  22473. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  22474. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  22475. + ;;
  22476. + esac
  22477. + ;;
  22478. +
  22479. + *)
  22480. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  22481. + ;;
  22482. + esac
  22483. + dynamic_linker='Win32 ld.exe'
  22484. + # FIXME: first we should search . and the directory the executable is in
  22485. + shlibpath_var=PATH
  22486. + ;;
  22487. +
  22488. +darwin* | rhapsody*)
  22489. + dynamic_linker="$host_os dyld"
  22490. + version_type=darwin
  22491. + need_lib_prefix=no
  22492. + need_version=no
  22493. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  22494. + soname_spec='${libname}${release}${major}$shared_ext'
  22495. + shlibpath_overrides_runpath=yes
  22496. + shlibpath_var=DYLD_LIBRARY_PATH
  22497. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  22498. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  22499. + if test "$GCC" = yes; then
  22500. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  22501. + else
  22502. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  22503. + fi
  22504. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  22505. + ;;
  22506. +
  22507. +dgux*)
  22508. + version_type=linux
  22509. + need_lib_prefix=no
  22510. + need_version=no
  22511. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  22512. + soname_spec='${libname}${release}${shared_ext}$major'
  22513. + shlibpath_var=LD_LIBRARY_PATH
  22514. + ;;
  22515. +
  22516. +freebsd1*)
  22517. + dynamic_linker=no
  22518. + ;;
  22519. +
  22520. +freebsd* | dragonfly*)
  22521. + # DragonFly does not have aout. When/if they implement a new
  22522. + # versioning mechanism, adjust this.
  22523. + if test -x /usr/bin/objformat; then
  22524. + objformat=`/usr/bin/objformat`
  22525. + else
  22526. + case $host_os in
  22527. + freebsd[123]*) objformat=aout ;;
  22528. + *) objformat=elf ;;
  22529. + esac
  22530. + fi
  22531. + version_type=freebsd-$objformat
  22532. + case $version_type in
  22533. + freebsd-elf*)
  22534. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  22535. + need_version=no
  22536. + need_lib_prefix=no
  22537. + ;;
  22538. + freebsd-*)
  22539. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  22540. + need_version=yes
  22541. + ;;
  22542. + esac
  22543. + shlibpath_var=LD_LIBRARY_PATH
  22544. + case $host_os in
  22545. + freebsd2*)
  22546. + shlibpath_overrides_runpath=yes
  22547. + ;;
  22548. + freebsd3.[01]* | freebsdelf3.[01]*)
  22549. + shlibpath_overrides_runpath=yes
  22550. + hardcode_into_libs=yes
  22551. + ;;
  22552. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  22553. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  22554. + shlibpath_overrides_runpath=no
  22555. + hardcode_into_libs=yes
  22556. + ;;
  22557. + freebsd*) # from 4.6 on
  22558. + shlibpath_overrides_runpath=yes
  22559. + hardcode_into_libs=yes
  22560. + ;;
  22561. + esac
  22562. + ;;
  22563. +
  22564. +gnu*)
  22565. + version_type=linux
  22566. + need_lib_prefix=no
  22567. + need_version=no
  22568. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  22569. + soname_spec='${libname}${release}${shared_ext}$major'
  22570. + shlibpath_var=LD_LIBRARY_PATH
  22571. + hardcode_into_libs=yes
  22572. + ;;
  22573. +
  22574. +hpux9* | hpux10* | hpux11*)
  22575. + # Give a soname corresponding to the major version so that dld.sl refuses to
  22576. + # link against other versions.
  22577. + version_type=sunos
  22578. + need_lib_prefix=no
  22579. + need_version=no
  22580. + case $host_cpu in
  22581. + ia64*)
  22582. + shrext_cmds='.so'
  22583. + hardcode_into_libs=yes
  22584. + dynamic_linker="$host_os dld.so"
  22585. + shlibpath_var=LD_LIBRARY_PATH
  22586. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  22587. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22588. + soname_spec='${libname}${release}${shared_ext}$major'
  22589. + if test "X$HPUX_IA64_MODE" = X32; then
  22590. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  22591. + else
  22592. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  22593. + fi
  22594. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  22595. + ;;
  22596. + hppa*64*)
  22597. + shrext_cmds='.sl'
  22598. + hardcode_into_libs=yes
  22599. + dynamic_linker="$host_os dld.sl"
  22600. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  22601. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  22602. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22603. + soname_spec='${libname}${release}${shared_ext}$major'
  22604. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  22605. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  22606. + ;;
  22607. + *)
  22608. + shrext_cmds='.sl'
  22609. + dynamic_linker="$host_os dld.sl"
  22610. + shlibpath_var=SHLIB_PATH
  22611. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  22612. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22613. + soname_spec='${libname}${release}${shared_ext}$major'
  22614. + ;;
  22615. + esac
  22616. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  22617. + postinstall_cmds='chmod 555 $lib'
  22618. + ;;
  22619. +
  22620. +interix3*)
  22621. + version_type=linux
  22622. + need_lib_prefix=no
  22623. + need_version=no
  22624. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  22625. + soname_spec='${libname}${release}${shared_ext}$major'
  22626. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  22627. + shlibpath_var=LD_LIBRARY_PATH
  22628. + shlibpath_overrides_runpath=no
  22629. + hardcode_into_libs=yes
  22630. + ;;
  22631. +
  22632. +irix5* | irix6* | nonstopux*)
  22633. + case $host_os in
  22634. + nonstopux*) version_type=nonstopux ;;
  22635. + *)
  22636. + if test "$lt_cv_prog_gnu_ld" = yes; then
  22637. + version_type=linux
  22638. + else
  22639. + version_type=irix
  22640. + fi ;;
  22641. + esac
  22642. + need_lib_prefix=no
  22643. + need_version=no
  22644. + soname_spec='${libname}${release}${shared_ext}$major'
  22645. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  22646. + case $host_os in
  22647. + irix5* | nonstopux*)
  22648. + libsuff= shlibsuff=
  22649. + ;;
  22650. + *)
  22651. + case $LD in # libtool.m4 will add one of these switches to LD
  22652. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  22653. + libsuff= shlibsuff= libmagic=32-bit;;
  22654. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  22655. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  22656. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  22657. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  22658. + *) libsuff= shlibsuff= libmagic=never-match;;
  22659. + esac
  22660. + ;;
  22661. + esac
  22662. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  22663. + shlibpath_overrides_runpath=no
  22664. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  22665. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  22666. + hardcode_into_libs=yes
  22667. + ;;
  22668. +
  22669. +# No shared lib support for Linux oldld, aout, or coff.
  22670. +linux*oldld* | linux*aout* | linux*coff*)
  22671. + dynamic_linker=no
  22672. + ;;
  22673. +
  22674. +# This must be Linux ELF.
  22675. +linux* | k*bsd*-gnu)
  22676. + version_type=linux
  22677. + need_lib_prefix=no
  22678. + need_version=no
  22679. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22680. + soname_spec='${libname}${release}${shared_ext}$major'
  22681. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  22682. + shlibpath_var=LD_LIBRARY_PATH
  22683. + shlibpath_overrides_runpath=no
  22684. + # This implies no fast_install, which is unacceptable.
  22685. + # Some rework will be needed to allow for fast_install
  22686. + # before this can be enabled.
  22687. + hardcode_into_libs=yes
  22688. +
  22689. + # Append ld.so.conf contents to the search path
  22690. + if test -f /etc/ld.so.conf; then
  22691. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  22692. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  22693. + fi
  22694. +
  22695. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  22696. + # powerpc, because MkLinux only supported shared libraries with the
  22697. + # GNU dynamic linker. Since this was broken with cross compilers,
  22698. + # most powerpc-linux boxes support dynamic linking these days and
  22699. + # people can always --disable-shared, the test was removed, and we
  22700. + # assume the GNU/Linux dynamic linker is in use.
  22701. + dynamic_linker='GNU/Linux ld.so'
  22702. + ;;
  22703. +
  22704. +netbsdelf*-gnu)
  22705. + version_type=linux
  22706. + need_lib_prefix=no
  22707. + need_version=no
  22708. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  22709. + soname_spec='${libname}${release}${shared_ext}$major'
  22710. + shlibpath_var=LD_LIBRARY_PATH
  22711. + shlibpath_overrides_runpath=no
  22712. + hardcode_into_libs=yes
  22713. + dynamic_linker='NetBSD ld.elf_so'
  22714. + ;;
  22715. +
  22716. +netbsd*)
  22717. + version_type=sunos
  22718. + need_lib_prefix=no
  22719. + need_version=no
  22720. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22721. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  22722. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  22723. + dynamic_linker='NetBSD (a.out) ld.so'
  22724. + else
  22725. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  22726. + soname_spec='${libname}${release}${shared_ext}$major'
  22727. + dynamic_linker='NetBSD ld.elf_so'
  22728. + fi
  22729. + shlibpath_var=LD_LIBRARY_PATH
  22730. + shlibpath_overrides_runpath=yes
  22731. + hardcode_into_libs=yes
  22732. + ;;
  22733. +
  22734. +newsos6)
  22735. + version_type=linux
  22736. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22737. + shlibpath_var=LD_LIBRARY_PATH
  22738. + shlibpath_overrides_runpath=yes
  22739. + ;;
  22740. +
  22741. +nto-qnx*)
  22742. + version_type=linux
  22743. + need_lib_prefix=no
  22744. + need_version=no
  22745. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22746. + soname_spec='${libname}${release}${shared_ext}$major'
  22747. + shlibpath_var=LD_LIBRARY_PATH
  22748. + shlibpath_overrides_runpath=yes
  22749. + ;;
  22750. +
  22751. +openbsd*)
  22752. + version_type=sunos
  22753. + sys_lib_dlsearch_path_spec="/usr/lib"
  22754. + need_lib_prefix=no
  22755. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  22756. + case $host_os in
  22757. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  22758. + *) need_version=no ;;
  22759. + esac
  22760. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  22761. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  22762. + shlibpath_var=LD_LIBRARY_PATH
  22763. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22764. + case $host_os in
  22765. + openbsd2.[89] | openbsd2.[89].*)
  22766. + shlibpath_overrides_runpath=no
  22767. + ;;
  22768. + *)
  22769. + shlibpath_overrides_runpath=yes
  22770. + ;;
  22771. + esac
  22772. + else
  22773. + shlibpath_overrides_runpath=yes
  22774. + fi
  22775. + ;;
  22776. +
  22777. +os2*)
  22778. + libname_spec='$name'
  22779. + shrext_cmds=".dll"
  22780. + need_lib_prefix=no
  22781. + library_names_spec='$libname${shared_ext} $libname.a'
  22782. + dynamic_linker='OS/2 ld.exe'
  22783. + shlibpath_var=LIBPATH
  22784. + ;;
  22785. +
  22786. +osf3* | osf4* | osf5*)
  22787. + version_type=osf
  22788. + need_lib_prefix=no
  22789. + need_version=no
  22790. + soname_spec='${libname}${release}${shared_ext}$major'
  22791. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22792. + shlibpath_var=LD_LIBRARY_PATH
  22793. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  22794. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  22795. + ;;
  22796. +
  22797. +solaris*)
  22798. + version_type=linux
  22799. + need_lib_prefix=no
  22800. + need_version=no
  22801. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22802. + soname_spec='${libname}${release}${shared_ext}$major'
  22803. + shlibpath_var=LD_LIBRARY_PATH
  22804. + shlibpath_overrides_runpath=yes
  22805. + hardcode_into_libs=yes
  22806. + # ldd complains unless libraries are executable
  22807. + postinstall_cmds='chmod +x $lib'
  22808. + ;;
  22809. +
  22810. +sunos4*)
  22811. + version_type=sunos
  22812. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  22813. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  22814. + shlibpath_var=LD_LIBRARY_PATH
  22815. + shlibpath_overrides_runpath=yes
  22816. + if test "$with_gnu_ld" = yes; then
  22817. + need_lib_prefix=no
  22818. + fi
  22819. + need_version=yes
  22820. + ;;
  22821. +
  22822. +sysv4 | sysv4.3*)
  22823. + version_type=linux
  22824. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22825. + soname_spec='${libname}${release}${shared_ext}$major'
  22826. + shlibpath_var=LD_LIBRARY_PATH
  22827. + case $host_vendor in
  22828. + sni)
  22829. + shlibpath_overrides_runpath=no
  22830. + need_lib_prefix=no
  22831. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  22832. + runpath_var=LD_RUN_PATH
  22833. + ;;
  22834. + siemens)
  22835. + need_lib_prefix=no
  22836. + ;;
  22837. + motorola)
  22838. + need_lib_prefix=no
  22839. + need_version=no
  22840. + shlibpath_overrides_runpath=no
  22841. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  22842. + ;;
  22843. + esac
  22844. + ;;
  22845. +
  22846. +sysv4*MP*)
  22847. + if test -d /usr/nec ;then
  22848. + version_type=linux
  22849. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  22850. + soname_spec='$libname${shared_ext}.$major'
  22851. + shlibpath_var=LD_LIBRARY_PATH
  22852. + fi
  22853. + ;;
  22854. +
  22855. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  22856. + version_type=freebsd-elf
  22857. + need_lib_prefix=no
  22858. + need_version=no
  22859. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  22860. + soname_spec='${libname}${release}${shared_ext}$major'
  22861. + shlibpath_var=LD_LIBRARY_PATH
  22862. + hardcode_into_libs=yes
  22863. + if test "$with_gnu_ld" = yes; then
  22864. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  22865. + shlibpath_overrides_runpath=no
  22866. + else
  22867. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  22868. + shlibpath_overrides_runpath=yes
  22869. + case $host_os in
  22870. + sco3.2v5*)
  22871. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  22872. + ;;
  22873. + esac
  22874. + fi
  22875. + sys_lib_dlsearch_path_spec='/usr/lib'
  22876. + ;;
  22877. +
  22878. +uts4*)
  22879. + version_type=linux
  22880. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22881. + soname_spec='${libname}${release}${shared_ext}$major'
  22882. + shlibpath_var=LD_LIBRARY_PATH
  22883. + ;;
  22884. +
  22885. +*)
  22886. + dynamic_linker=no
  22887. + ;;
  22888. +esac
  22889. +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  22890. +echo "${ECHO_T}$dynamic_linker" >&6; }
  22891. +test "$dynamic_linker" = no && can_build_shared=no
  22892. +
  22893. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  22894. +if test "$GCC" = yes; then
  22895. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  22896. +fi
  22897. +
  22898. +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  22899. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  22900. +hardcode_action_F77=
  22901. +if test -n "$hardcode_libdir_flag_spec_F77" || \
  22902. + test -n "$runpath_var_F77" || \
  22903. + test "X$hardcode_automatic_F77" = "Xyes" ; then
  22904. +
  22905. + # We can hardcode non-existant directories.
  22906. + if test "$hardcode_direct_F77" != no &&
  22907. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  22908. + # have to relink, otherwise we might link with an installed library
  22909. + # when we should be linking with a yet-to-be-installed one
  22910. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  22911. + test "$hardcode_minus_L_F77" != no; then
  22912. + # Linking always hardcodes the temporary library directory.
  22913. + hardcode_action_F77=relink
  22914. + else
  22915. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  22916. + hardcode_action_F77=immediate
  22917. + fi
  22918. +else
  22919. + # We cannot hardcode anything, or else we can only hardcode existing
  22920. + # directories.
  22921. + hardcode_action_F77=unsupported
  22922. +fi
  22923. +{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  22924. +echo "${ECHO_T}$hardcode_action_F77" >&6; }
  22925. +
  22926. +if test "$hardcode_action_F77" = relink; then
  22927. + # Fast installation is not supported
  22928. + enable_fast_install=no
  22929. +elif test "$shlibpath_overrides_runpath" = yes ||
  22930. + test "$enable_shared" = no; then
  22931. + # Fast installation is not necessary
  22932. + enable_fast_install=needless
  22933. +fi
  22934. +
  22935. +
  22936. +# The else clause should only fire when bootstrapping the
  22937. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  22938. +# with your package, and you will get complaints that there are
  22939. +# no rules to generate ltmain.sh.
  22940. +if test -f "$ltmain"; then
  22941. + # See if we are running on zsh, and set the options which allow our commands through
  22942. + # without removal of \ escapes.
  22943. + if test -n "${ZSH_VERSION+set}" ; then
  22944. + setopt NO_GLOB_SUBST
  22945. + fi
  22946. + # Now quote all the things that may contain metacharacters while being
  22947. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  22948. + # variables and quote the copies for generation of the libtool script.
  22949. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  22950. + SED SHELL STRIP \
  22951. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  22952. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  22953. + deplibs_check_method reload_flag reload_cmds need_locks \
  22954. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  22955. + lt_cv_sys_global_symbol_to_c_name_address \
  22956. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  22957. + old_postinstall_cmds old_postuninstall_cmds \
  22958. + compiler_F77 \
  22959. + CC_F77 \
  22960. + LD_F77 \
  22961. + lt_prog_compiler_wl_F77 \
  22962. + lt_prog_compiler_pic_F77 \
  22963. + lt_prog_compiler_static_F77 \
  22964. + lt_prog_compiler_no_builtin_flag_F77 \
  22965. + export_dynamic_flag_spec_F77 \
  22966. + thread_safe_flag_spec_F77 \
  22967. + whole_archive_flag_spec_F77 \
  22968. + enable_shared_with_static_runtimes_F77 \
  22969. + old_archive_cmds_F77 \
  22970. + old_archive_from_new_cmds_F77 \
  22971. + predep_objects_F77 \
  22972. + postdep_objects_F77 \
  22973. + predeps_F77 \
  22974. + postdeps_F77 \
  22975. + compiler_lib_search_path_F77 \
  22976. + archive_cmds_F77 \
  22977. + archive_expsym_cmds_F77 \
  22978. + postinstall_cmds_F77 \
  22979. + postuninstall_cmds_F77 \
  22980. + old_archive_from_expsyms_cmds_F77 \
  22981. + allow_undefined_flag_F77 \
  22982. + no_undefined_flag_F77 \
  22983. + export_symbols_cmds_F77 \
  22984. + hardcode_libdir_flag_spec_F77 \
  22985. + hardcode_libdir_flag_spec_ld_F77 \
  22986. + hardcode_libdir_separator_F77 \
  22987. + hardcode_automatic_F77 \
  22988. + module_cmds_F77 \
  22989. + module_expsym_cmds_F77 \
  22990. + lt_cv_prog_compiler_c_o_F77 \
  22991. + exclude_expsyms_F77 \
  22992. + include_expsyms_F77; do
  22993. +
  22994. + case $var in
  22995. + old_archive_cmds_F77 | \
  22996. + old_archive_from_new_cmds_F77 | \
  22997. + archive_cmds_F77 | \
  22998. + archive_expsym_cmds_F77 | \
  22999. + module_cmds_F77 | \
  23000. + module_expsym_cmds_F77 | \
  23001. + old_archive_from_expsyms_cmds_F77 | \
  23002. + export_symbols_cmds_F77 | \
  23003. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  23004. + postinstall_cmds | postuninstall_cmds | \
  23005. + old_postinstall_cmds | old_postuninstall_cmds | \
  23006. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  23007. + # Double-quote double-evaled strings.
  23008. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  23009. + ;;
  23010. + *)
  23011. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  23012. + ;;
  23013. + esac
  23014. + done
  23015. +
  23016. + case $lt_echo in
  23017. + *'\$0 --fallback-echo"')
  23018. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  23019. + ;;
  23020. + esac
  23021. +
  23022. +cfgfile="$ofile"
  23023. +
  23024. + cat <<__EOF__ >> "$cfgfile"
  23025. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  23026. +
  23027. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23028. +
  23029. +# Shell to use when invoking shell scripts.
  23030. +SHELL=$lt_SHELL
  23031. +
  23032. +# Whether or not to build shared libraries.
  23033. +build_libtool_libs=$enable_shared
  23034. +
  23035. +# Whether or not to build static libraries.
  23036. +build_old_libs=$enable_static
  23037. +
  23038. +# Whether or not to add -lc for building shared libraries.
  23039. +build_libtool_need_lc=$archive_cmds_need_lc_F77
  23040. +
  23041. +# Whether or not to disallow shared libs when runtime libs are static
  23042. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  23043. +
  23044. +# Whether or not to optimize for fast installation.
  23045. +fast_install=$enable_fast_install
  23046. +
  23047. +# The host system.
  23048. +host_alias=$host_alias
  23049. +host=$host
  23050. +host_os=$host_os
  23051. +
  23052. +# The build system.
  23053. +build_alias=$build_alias
  23054. +build=$build
  23055. +build_os=$build_os
  23056. +
  23057. +# An echo program that does not interpret backslashes.
  23058. +echo=$lt_echo
  23059. +
  23060. +# The archiver.
  23061. +AR=$lt_AR
  23062. +AR_FLAGS=$lt_AR_FLAGS
  23063. +
  23064. +# A C compiler.
  23065. +LTCC=$lt_LTCC
  23066. +
  23067. +# LTCC compiler flags.
  23068. +LTCFLAGS=$lt_LTCFLAGS
  23069. +
  23070. +# A language-specific compiler.
  23071. +CC=$lt_compiler_F77
  23072. +
  23073. +# Is the compiler the GNU C compiler?
  23074. +with_gcc=$GCC_F77
  23075. +
  23076. +# An ERE matcher.
  23077. +EGREP=$lt_EGREP
  23078. +
  23079. +# The linker used to build libraries.
  23080. +LD=$lt_LD_F77
  23081. +
  23082. +# Whether we need hard or soft links.
  23083. +LN_S=$lt_LN_S
  23084. +
  23085. +# A BSD-compatible nm program.
  23086. +NM=$lt_NM
  23087. +
  23088. +# A symbol stripping program
  23089. +STRIP=$lt_STRIP
  23090. +
  23091. +# Used to examine libraries when file_magic_cmd begins "file"
  23092. +MAGIC_CMD=$MAGIC_CMD
  23093. +
  23094. +# Used on cygwin: DLL creation program.
  23095. +DLLTOOL="$DLLTOOL"
  23096. +
  23097. +# Used on cygwin: object dumper.
  23098. +OBJDUMP="$OBJDUMP"
  23099. +
  23100. +# Used on cygwin: assembler.
  23101. +AS="$AS"
  23102. +
  23103. +# The name of the directory that contains temporary libtool files.
  23104. +objdir=$objdir
  23105. +
  23106. +# How to create reloadable object files.
  23107. +reload_flag=$lt_reload_flag
  23108. +reload_cmds=$lt_reload_cmds
  23109. +
  23110. +# How to pass a linker flag through the compiler.
  23111. +wl=$lt_lt_prog_compiler_wl_F77
  23112. +
  23113. +# Object file suffix (normally "o").
  23114. +objext="$ac_objext"
  23115. +
  23116. +# Old archive suffix (normally "a").
  23117. +libext="$libext"
  23118. +
  23119. +# Shared library suffix (normally ".so").
  23120. +shrext_cmds='$shrext_cmds'
  23121. +
  23122. +# Executable file suffix (normally "").
  23123. +exeext="$exeext"
  23124. +
  23125. +# Additional compiler flags for building library objects.
  23126. +pic_flag=$lt_lt_prog_compiler_pic_F77
  23127. +pic_mode=$pic_mode
  23128. +
  23129. +# What is the maximum length of a command?
  23130. +max_cmd_len=$lt_cv_sys_max_cmd_len
  23131. +
  23132. +# Does compiler simultaneously support -c and -o options?
  23133. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  23134. +
  23135. +# Must we lock files when doing compilation?
  23136. +need_locks=$lt_need_locks
  23137. +
  23138. +# Do we need the lib prefix for modules?
  23139. +need_lib_prefix=$need_lib_prefix
  23140. +
  23141. +# Do we need a version for libraries?
  23142. +need_version=$need_version
  23143. +
  23144. +# Whether dlopen is supported.
  23145. +dlopen_support=$enable_dlopen
  23146. +
  23147. +# Whether dlopen of programs is supported.
  23148. +dlopen_self=$enable_dlopen_self
  23149. +
  23150. +# Whether dlopen of statically linked programs is supported.
  23151. +dlopen_self_static=$enable_dlopen_self_static
  23152. +
  23153. +# Compiler flag to prevent dynamic linking.
  23154. +link_static_flag=$lt_lt_prog_compiler_static_F77
  23155. +
  23156. +# Compiler flag to turn off builtin functions.
  23157. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  23158. +
  23159. +# Compiler flag to allow reflexive dlopens.
  23160. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  23161. +
  23162. +# Compiler flag to generate shared objects directly from archives.
  23163. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  23164. +
  23165. +# Compiler flag to generate thread-safe objects.
  23166. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  23167. +
  23168. +# Library versioning type.
  23169. +version_type=$version_type
  23170. +
  23171. +# Format of library name prefix.
  23172. +libname_spec=$lt_libname_spec
  23173. +
  23174. +# List of archive names. First name is the real one, the rest are links.
  23175. +# The last name is the one that the linker finds with -lNAME.
  23176. +library_names_spec=$lt_library_names_spec
  23177. +
  23178. +# The coded name of the library, if different from the real name.
  23179. +soname_spec=$lt_soname_spec
  23180. +
  23181. +# Commands used to build and install an old-style archive.
  23182. +RANLIB=$lt_RANLIB
  23183. +old_archive_cmds=$lt_old_archive_cmds_F77
  23184. +old_postinstall_cmds=$lt_old_postinstall_cmds
  23185. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23186. +
  23187. +# Create an old-style archive from a shared archive.
  23188. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  23189. +
  23190. +# Create a temporary old-style archive to link instead of a shared archive.
  23191. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  23192. +
  23193. +# Commands used to build and install a shared archive.
  23194. +archive_cmds=$lt_archive_cmds_F77
  23195. +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  23196. +postinstall_cmds=$lt_postinstall_cmds
  23197. +postuninstall_cmds=$lt_postuninstall_cmds
  23198. +
  23199. +# Commands used to build a loadable module (assumed same as above if empty)
  23200. +module_cmds=$lt_module_cmds_F77
  23201. +module_expsym_cmds=$lt_module_expsym_cmds_F77
  23202. +
  23203. +# Commands to strip libraries.
  23204. +old_striplib=$lt_old_striplib
  23205. +striplib=$lt_striplib
  23206. +
  23207. +# Dependencies to place before the objects being linked to create a
  23208. +# shared library.
  23209. +predep_objects=$lt_predep_objects_F77
  23210. +
  23211. +# Dependencies to place after the objects being linked to create a
  23212. +# shared library.
  23213. +postdep_objects=$lt_postdep_objects_F77
  23214. +
  23215. +# Dependencies to place before the objects being linked to create a
  23216. +# shared library.
  23217. +predeps=$lt_predeps_F77
  23218. +
  23219. +# Dependencies to place after the objects being linked to create a
  23220. +# shared library.
  23221. +postdeps=$lt_postdeps_F77
  23222. +
  23223. +# The library search path used internally by the compiler when linking
  23224. +# a shared library.
  23225. +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  23226. +
  23227. +# Method to check whether dependent libraries are shared objects.
  23228. +deplibs_check_method=$lt_deplibs_check_method
  23229. +
  23230. +# Command to use when deplibs_check_method == file_magic.
  23231. +file_magic_cmd=$lt_file_magic_cmd
  23232. +
  23233. +# Flag that allows shared libraries with undefined symbols to be built.
  23234. +allow_undefined_flag=$lt_allow_undefined_flag_F77
  23235. +
  23236. +# Flag that forces no undefined symbols.
  23237. +no_undefined_flag=$lt_no_undefined_flag_F77
  23238. +
  23239. +# Commands used to finish a libtool library installation in a directory.
  23240. +finish_cmds=$lt_finish_cmds
  23241. +
  23242. +# Same as above, but a single script fragment to be evaled but not shown.
  23243. +finish_eval=$lt_finish_eval
  23244. +
  23245. +# Take the output of nm and produce a listing of raw symbols and C names.
  23246. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23247. +
  23248. +# Transform the output of nm in a proper C declaration
  23249. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23250. +
  23251. +# Transform the output of nm in a C name address pair
  23252. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23253. +
  23254. +# This is the shared library runtime path variable.
  23255. +runpath_var=$runpath_var
  23256. +
  23257. +# This is the shared library path variable.
  23258. +shlibpath_var=$shlibpath_var
  23259. +
  23260. +# Is shlibpath searched before the hard-coded library search path?
  23261. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23262. +
  23263. +# How to hardcode a shared library path into an executable.
  23264. +hardcode_action=$hardcode_action_F77
  23265. +
  23266. +# Whether we should hardcode library paths into libraries.
  23267. +hardcode_into_libs=$hardcode_into_libs
  23268. +
  23269. +# Flag to hardcode \$libdir into a binary during linking.
  23270. +# This must work even if \$libdir does not exist.
  23271. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  23272. +
  23273. +# If ld is used when linking, flag to hardcode \$libdir into
  23274. +# a binary during linking. This must work even if \$libdir does
  23275. +# not exist.
  23276. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  23277. +
  23278. +# Whether we need a single -rpath flag with a separated argument.
  23279. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  23280. +
  23281. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  23282. +# resulting binary.
  23283. +hardcode_direct=$hardcode_direct_F77
  23284. +
  23285. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  23286. +# resulting binary.
  23287. +hardcode_minus_L=$hardcode_minus_L_F77
  23288. +
  23289. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  23290. +# the resulting binary.
  23291. +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  23292. +
  23293. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  23294. +# and all subsequent libraries and executables linked against it.
  23295. +hardcode_automatic=$hardcode_automatic_F77
  23296. +
  23297. +# Variables whose values should be saved in libtool wrapper scripts and
  23298. +# restored at relink time.
  23299. +variables_saved_for_relink="$variables_saved_for_relink"
  23300. +
  23301. +# Whether libtool must link a program against all its dependency libraries.
  23302. +link_all_deplibs=$link_all_deplibs_F77
  23303. +
  23304. +# Compile-time system search path for libraries
  23305. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23306. +
  23307. +# Run-time system search path for libraries
  23308. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23309. +
  23310. +# Fix the shell variable \$srcfile for the compiler.
  23311. +fix_srcfile_path="$fix_srcfile_path_F77"
  23312. +
  23313. +# Set to yes if exported symbols are required.
  23314. +always_export_symbols=$always_export_symbols_F77
  23315. +
  23316. +# The commands to list exported symbols.
  23317. +export_symbols_cmds=$lt_export_symbols_cmds_F77
  23318. +
  23319. +# The commands to extract the exported symbol list from a shared archive.
  23320. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23321. +
  23322. +# Symbols that should not be listed in the preloaded symbols.
  23323. +exclude_expsyms=$lt_exclude_expsyms_F77
  23324. +
  23325. +# Symbols that must always be exported.
  23326. +include_expsyms=$lt_include_expsyms_F77
  23327. +
  23328. +# ### END LIBTOOL TAG CONFIG: $tagname
  23329. +
  23330. +__EOF__
  23331. +
  23332. +
  23333. +else
  23334. + # If there is no Makefile yet, we rely on a make rule to execute
  23335. + # `config.status --recheck' to rerun these tests and create the
  23336. + # libtool script then.
  23337. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  23338. + if test -f "$ltmain_in"; then
  23339. + test -f Makefile && make "$ltmain"
  23340. + fi
  23341. +fi
  23342. +
  23343. +
  23344. +ac_ext=c
  23345. +ac_cpp='$CPP $CPPFLAGS'
  23346. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23347. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23348. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23349. +
  23350. +CC="$lt_save_CC"
  23351. +
  23352. + else
  23353. + tagname=""
  23354. + fi
  23355. + ;;
  23356. +
  23357. + GCJ)
  23358. + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  23359. +
  23360. +
  23361. +# Source file extension for Java test sources.
  23362. +ac_ext=java
  23363. +
  23364. +# Object file extension for compiled Java test sources.
  23365. +objext=o
  23366. +objext_GCJ=$objext
  23367. +
  23368. +# Code to be used in simple compile tests
  23369. +lt_simple_compile_test_code="class foo {}\n"
  23370. +
  23371. +# Code to be used in simple link tests
  23372. +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  23373. +
  23374. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  23375. +
  23376. +# If no C compiler was specified, use CC.
  23377. +LTCC=${LTCC-"$CC"}
  23378. +
  23379. +# If no C compiler flags were specified, use CFLAGS.
  23380. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23381. +
  23382. +# Allow CC to be a program name with arguments.
  23383. +compiler=$CC
  23384. +
  23385. +
  23386. +# save warnings/boilerplate of simple test code
  23387. +ac_outfile=conftest.$ac_objext
  23388. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  23389. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23390. +_lt_compiler_boilerplate=`cat conftest.err`
  23391. +$rm conftest*
  23392. +
  23393. +ac_outfile=conftest.$ac_objext
  23394. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  23395. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23396. +_lt_linker_boilerplate=`cat conftest.err`
  23397. +$rm conftest*
  23398. +
  23399. +
  23400. +# Allow CC to be a program name with arguments.
  23401. +lt_save_CC="$CC"
  23402. +CC=${GCJ-"gcj"}
  23403. +compiler=$CC
  23404. +compiler_GCJ=$CC
  23405. +for cc_temp in $compiler""; do
  23406. + case $cc_temp in
  23407. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23408. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23409. + \-*) ;;
  23410. + *) break;;
  23411. + esac
  23412. +done
  23413. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  23414. +
  23415. +
  23416. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  23417. +archive_cmds_need_lc_GCJ=no
  23418. +
  23419. +old_archive_cmds_GCJ=$old_archive_cmds
  23420. +
  23421. +
  23422. +lt_prog_compiler_no_builtin_flag_GCJ=
  23423. +
  23424. +if test "$GCC" = yes; then
  23425. + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  23426. +
  23427. +
  23428. +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  23429. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  23430. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  23431. + echo $ECHO_N "(cached) $ECHO_C" >&6
  23432. +else
  23433. + lt_cv_prog_compiler_rtti_exceptions=no
  23434. + ac_outfile=conftest.$ac_objext
  23435. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23436. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  23437. + # Insert the option either (1) after the last *FLAGS variable, or
  23438. + # (2) before a word containing "conftest.", or (3) at the end.
  23439. + # Note that $ac_compile itself does not contain backslashes and begins
  23440. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  23441. + # The option is referenced via a variable to avoid confusing sed.
  23442. + lt_compile=`echo "$ac_compile" | $SED \
  23443. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23444. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23445. + -e 's:$: $lt_compiler_flag:'`
  23446. + (eval echo "\"\$as_me:16473: $lt_compile\"" >&5)
  23447. + (eval "$lt_compile" 2>conftest.err)
  23448. + ac_status=$?
  23449. + cat conftest.err >&5
  23450. + echo "$as_me:16477: \$? = $ac_status" >&5
  23451. + if (exit $ac_status) && test -s "$ac_outfile"; then
  23452. + # The compiler can only warn and ignore the option if not recognized
  23453. + # So say no if there are warnings other than the usual output.
  23454. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  23455. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23456. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  23457. + lt_cv_prog_compiler_rtti_exceptions=yes
  23458. + fi
  23459. + fi
  23460. + $rm conftest*
  23461. +
  23462. +fi
  23463. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  23464. +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  23465. +
  23466. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  23467. + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  23468. +else
  23469. + :
  23470. +fi
  23471. +
  23472. +fi
  23473. +
  23474. +lt_prog_compiler_wl_GCJ=
  23475. +lt_prog_compiler_pic_GCJ=
  23476. +lt_prog_compiler_static_GCJ=
  23477. +
  23478. +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  23479. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  23480. +
  23481. + if test "$GCC" = yes; then
  23482. + lt_prog_compiler_wl_GCJ='-Wl,'
  23483. + lt_prog_compiler_static_GCJ='-static'
  23484. +
  23485. + case $host_os in
  23486. + aix*)
  23487. + # All AIX code is PIC.
  23488. + if test "$host_cpu" = ia64; then
  23489. + # AIX 5 now supports IA64 processor
  23490. + lt_prog_compiler_static_GCJ='-Bstatic'
  23491. + fi
  23492. + ;;
  23493. +
  23494. + amigaos*)
  23495. + # FIXME: we need at least 68020 code to build shared libraries, but
  23496. + # adding the `-m68020' flag to GCC prevents building anything better,
  23497. + # like `-m68040'.
  23498. + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  23499. + ;;
  23500. +
  23501. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  23502. + # PIC is the default for these OSes.
  23503. + ;;
  23504. +
  23505. + mingw* | pw32* | os2*)
  23506. + # This hack is so that the source file can tell whether it is being
  23507. + # built for inclusion in a dll (and should export symbols for example).
  23508. + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  23509. + ;;
  23510. +
  23511. + darwin* | rhapsody*)
  23512. + # PIC is the default on this platform
  23513. + # Common symbols not allowed in MH_DYLIB files
  23514. + lt_prog_compiler_pic_GCJ='-fno-common'
  23515. + ;;
  23516. +
  23517. + interix3*)
  23518. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  23519. + # Instead, we relocate shared libraries at runtime.
  23520. + ;;
  23521. +
  23522. + msdosdjgpp*)
  23523. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  23524. + # on systems that don't support them.
  23525. + lt_prog_compiler_can_build_shared_GCJ=no
  23526. + enable_shared=no
  23527. + ;;
  23528. +
  23529. + sysv4*MP*)
  23530. + if test -d /usr/nec; then
  23531. + lt_prog_compiler_pic_GCJ=-Kconform_pic
  23532. + fi
  23533. + ;;
  23534. +
  23535. + hpux*)
  23536. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23537. + # not for PA HP-UX.
  23538. + case $host_cpu in
  23539. + hppa*64*|ia64*)
  23540. + # +Z the default
  23541. + ;;
  23542. + *)
  23543. + lt_prog_compiler_pic_GCJ='-fPIC'
  23544. + ;;
  23545. + esac
  23546. + ;;
  23547. +
  23548. + *)
  23549. + lt_prog_compiler_pic_GCJ='-fPIC'
  23550. + ;;
  23551. + esac
  23552. + else
  23553. + # PORTME Check for flag to pass linker flags through the system compiler.
  23554. + case $host_os in
  23555. + aix*)
  23556. + lt_prog_compiler_wl_GCJ='-Wl,'
  23557. + if test "$host_cpu" = ia64; then
  23558. + # AIX 5 now supports IA64 processor
  23559. + lt_prog_compiler_static_GCJ='-Bstatic'
  23560. + else
  23561. + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  23562. + fi
  23563. + ;;
  23564. + darwin*)
  23565. + # PIC is the default on this platform
  23566. + # Common symbols not allowed in MH_DYLIB files
  23567. + case $cc_basename in
  23568. + xlc*)
  23569. + lt_prog_compiler_pic_GCJ='-qnocommon'
  23570. + lt_prog_compiler_wl_GCJ='-Wl,'
  23571. + ;;
  23572. + esac
  23573. + ;;
  23574. +
  23575. + mingw* | pw32* | os2*)
  23576. + # This hack is so that the source file can tell whether it is being
  23577. + # built for inclusion in a dll (and should export symbols for example).
  23578. + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  23579. + ;;
  23580. +
  23581. + hpux9* | hpux10* | hpux11*)
  23582. + lt_prog_compiler_wl_GCJ='-Wl,'
  23583. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23584. + # not for PA HP-UX.
  23585. + case $host_cpu in
  23586. + hppa*64*|ia64*)
  23587. + # +Z the default
  23588. + ;;
  23589. + *)
  23590. + lt_prog_compiler_pic_GCJ='+Z'
  23591. + ;;
  23592. + esac
  23593. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  23594. + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  23595. + ;;
  23596. +
  23597. + irix5* | irix6* | nonstopux*)
  23598. + lt_prog_compiler_wl_GCJ='-Wl,'
  23599. + # PIC (with -KPIC) is the default.
  23600. + lt_prog_compiler_static_GCJ='-non_shared'
  23601. + ;;
  23602. +
  23603. + newsos6)
  23604. + lt_prog_compiler_pic_GCJ='-KPIC'
  23605. + lt_prog_compiler_static_GCJ='-Bstatic'
  23606. + ;;
  23607. +
  23608. + linux* | k*bsd*-gnu)
  23609. + case $cc_basename in
  23610. + icc* | ecc*)
  23611. + lt_prog_compiler_wl_GCJ='-Wl,'
  23612. + lt_prog_compiler_pic_GCJ='-KPIC'
  23613. + lt_prog_compiler_static_GCJ='-static'
  23614. + ;;
  23615. + pgcc* | pgf77* | pgf90* | pgf95*)
  23616. + # Portland Group compilers (*not* the Pentium gcc compiler,
  23617. + # which looks to be a dead project)
  23618. + lt_prog_compiler_wl_GCJ='-Wl,'
  23619. + lt_prog_compiler_pic_GCJ='-fpic'
  23620. + lt_prog_compiler_static_GCJ='-Bstatic'
  23621. + ;;
  23622. + ccc*)
  23623. + lt_prog_compiler_wl_GCJ='-Wl,'
  23624. + # All Alpha code is PIC.
  23625. + lt_prog_compiler_static_GCJ='-non_shared'
  23626. + ;;
  23627. + esac
  23628. + ;;
  23629. +
  23630. + osf3* | osf4* | osf5*)
  23631. + lt_prog_compiler_wl_GCJ='-Wl,'
  23632. + # All OSF/1 code is PIC.
  23633. + lt_prog_compiler_static_GCJ='-non_shared'
  23634. + ;;
  23635. +
  23636. + solaris*)
  23637. + lt_prog_compiler_pic_GCJ='-KPIC'
  23638. + lt_prog_compiler_static_GCJ='-Bstatic'
  23639. + case $cc_basename in
  23640. + f77* | f90* | f95*)
  23641. + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  23642. + *)
  23643. + lt_prog_compiler_wl_GCJ='-Wl,';;
  23644. + esac
  23645. + ;;
  23646. +
  23647. + sunos4*)
  23648. + lt_prog_compiler_wl_GCJ='-Qoption ld '
  23649. + lt_prog_compiler_pic_GCJ='-PIC'
  23650. + lt_prog_compiler_static_GCJ='-Bstatic'
  23651. + ;;
  23652. +
  23653. + sysv4 | sysv4.2uw2* | sysv4.3*)
  23654. + lt_prog_compiler_wl_GCJ='-Wl,'
  23655. + lt_prog_compiler_pic_GCJ='-KPIC'
  23656. + lt_prog_compiler_static_GCJ='-Bstatic'
  23657. + ;;
  23658. +
  23659. + sysv4*MP*)
  23660. + if test -d /usr/nec ;then
  23661. + lt_prog_compiler_pic_GCJ='-Kconform_pic'
  23662. + lt_prog_compiler_static_GCJ='-Bstatic'
  23663. + fi
  23664. + ;;
  23665. +
  23666. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  23667. + lt_prog_compiler_wl_GCJ='-Wl,'
  23668. + lt_prog_compiler_pic_GCJ='-KPIC'
  23669. + lt_prog_compiler_static_GCJ='-Bstatic'
  23670. + ;;
  23671. +
  23672. + unicos*)
  23673. + lt_prog_compiler_wl_GCJ='-Wl,'
  23674. + lt_prog_compiler_can_build_shared_GCJ=no
  23675. + ;;
  23676. +
  23677. + uts4*)
  23678. + lt_prog_compiler_pic_GCJ='-pic'
  23679. + lt_prog_compiler_static_GCJ='-Bstatic'
  23680. + ;;
  23681. +
  23682. + *)
  23683. + lt_prog_compiler_can_build_shared_GCJ=no
  23684. + ;;
  23685. + esac
  23686. + fi
  23687. +
  23688. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  23689. +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  23690. +
  23691. +#
  23692. +# Check to make sure the PIC flag actually works.
  23693. +#
  23694. +if test -n "$lt_prog_compiler_pic_GCJ"; then
  23695. +
  23696. +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  23697. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  23698. +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  23699. + echo $ECHO_N "(cached) $ECHO_C" >&6
  23700. +else
  23701. + lt_prog_compiler_pic_works_GCJ=no
  23702. + ac_outfile=conftest.$ac_objext
  23703. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23704. + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  23705. + # Insert the option either (1) after the last *FLAGS variable, or
  23706. + # (2) before a word containing "conftest.", or (3) at the end.
  23707. + # Note that $ac_compile itself does not contain backslashes and begins
  23708. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  23709. + # The option is referenced via a variable to avoid confusing sed.
  23710. + lt_compile=`echo "$ac_compile" | $SED \
  23711. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23712. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23713. + -e 's:$: $lt_compiler_flag:'`
  23714. + (eval echo "\"\$as_me:16741: $lt_compile\"" >&5)
  23715. + (eval "$lt_compile" 2>conftest.err)
  23716. + ac_status=$?
  23717. + cat conftest.err >&5
  23718. + echo "$as_me:16745: \$? = $ac_status" >&5
  23719. + if (exit $ac_status) && test -s "$ac_outfile"; then
  23720. + # The compiler can only warn and ignore the option if not recognized
  23721. + # So say no if there are warnings other than the usual output.
  23722. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  23723. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23724. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  23725. + lt_prog_compiler_pic_works_GCJ=yes
  23726. + fi
  23727. + fi
  23728. + $rm conftest*
  23729. +
  23730. +fi
  23731. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  23732. +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  23733. +
  23734. +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  23735. + case $lt_prog_compiler_pic_GCJ in
  23736. + "" | " "*) ;;
  23737. + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  23738. + esac
  23739. +else
  23740. + lt_prog_compiler_pic_GCJ=
  23741. + lt_prog_compiler_can_build_shared_GCJ=no
  23742. +fi
  23743. +
  23744. +fi
  23745. +case $host_os in
  23746. + # For platforms which do not support PIC, -DPIC is meaningless:
  23747. + *djgpp*)
  23748. + lt_prog_compiler_pic_GCJ=
  23749. + ;;
  23750. + *)
  23751. + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  23752. + ;;
  23753. +esac
  23754. +
  23755. +#
  23756. +# Check to make sure the static flag actually works.
  23757. +#
  23758. +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  23759. +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  23760. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  23761. +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  23762. + echo $ECHO_N "(cached) $ECHO_C" >&6
  23763. +else
  23764. + lt_prog_compiler_static_works_GCJ=no
  23765. + save_LDFLAGS="$LDFLAGS"
  23766. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  23767. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  23768. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  23769. + # The linker can only warn and ignore the option if not recognized
  23770. + # So say no if there are warnings
  23771. + if test -s conftest.err; then
  23772. + # Append any errors to the config.log.
  23773. + cat conftest.err 1>&5
  23774. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  23775. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23776. + if diff conftest.exp conftest.er2 >/dev/null; then
  23777. + lt_prog_compiler_static_works_GCJ=yes
  23778. + fi
  23779. + else
  23780. + lt_prog_compiler_static_works_GCJ=yes
  23781. + fi
  23782. + fi
  23783. + $rm conftest*
  23784. + LDFLAGS="$save_LDFLAGS"
  23785. +
  23786. +fi
  23787. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  23788. +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  23789. +
  23790. +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  23791. + :
  23792. +else
  23793. + lt_prog_compiler_static_GCJ=
  23794. +fi
  23795. +
  23796. +
  23797. +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  23798. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  23799. +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  23800. + echo $ECHO_N "(cached) $ECHO_C" >&6
  23801. +else
  23802. + lt_cv_prog_compiler_c_o_GCJ=no
  23803. + $rm -r conftest 2>/dev/null
  23804. + mkdir conftest
  23805. + cd conftest
  23806. + mkdir out
  23807. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23808. +
  23809. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  23810. + # Insert the option either (1) after the last *FLAGS variable, or
  23811. + # (2) before a word containing "conftest.", or (3) at the end.
  23812. + # Note that $ac_compile itself does not contain backslashes and begins
  23813. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  23814. + lt_compile=`echo "$ac_compile" | $SED \
  23815. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23816. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23817. + -e 's:$: $lt_compiler_flag:'`
  23818. + (eval echo "\"\$as_me:16845: $lt_compile\"" >&5)
  23819. + (eval "$lt_compile" 2>out/conftest.err)
  23820. + ac_status=$?
  23821. + cat out/conftest.err >&5
  23822. + echo "$as_me:16849: \$? = $ac_status" >&5
  23823. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  23824. + then
  23825. + # The compiler can only warn and ignore the option if not recognized
  23826. + # So say no if there are warnings
  23827. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  23828. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  23829. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  23830. + lt_cv_prog_compiler_c_o_GCJ=yes
  23831. + fi
  23832. + fi
  23833. + chmod u+w . 2>&5
  23834. + $rm conftest*
  23835. + # SGI C++ compiler will create directory out/ii_files/ for
  23836. + # template instantiation
  23837. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  23838. + $rm out/* && rmdir out
  23839. + cd ..
  23840. + rmdir conftest
  23841. + $rm conftest*
  23842. +
  23843. +fi
  23844. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  23845. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  23846. +
  23847. +
  23848. +hard_links="nottested"
  23849. +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  23850. + # do not overwrite the value of need_locks provided by the user
  23851. + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  23852. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  23853. + hard_links=yes
  23854. + $rm conftest*
  23855. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  23856. + touch conftest.a
  23857. + ln conftest.a conftest.b 2>&5 || hard_links=no
  23858. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  23859. + { echo "$as_me:$LINENO: result: $hard_links" >&5
  23860. +echo "${ECHO_T}$hard_links" >&6; }
  23861. + if test "$hard_links" = no; then
  23862. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  23863. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  23864. + need_locks=warn
  23865. + fi
  23866. +else
  23867. + need_locks=no
  23868. +fi
  23869. +
  23870. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  23871. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  23872. +
  23873. + runpath_var=
  23874. + allow_undefined_flag_GCJ=
  23875. + enable_shared_with_static_runtimes_GCJ=no
  23876. + archive_cmds_GCJ=
  23877. + archive_expsym_cmds_GCJ=
  23878. + old_archive_From_new_cmds_GCJ=
  23879. + old_archive_from_expsyms_cmds_GCJ=
  23880. + export_dynamic_flag_spec_GCJ=
  23881. + whole_archive_flag_spec_GCJ=
  23882. + thread_safe_flag_spec_GCJ=
  23883. + hardcode_libdir_flag_spec_GCJ=
  23884. + hardcode_libdir_flag_spec_ld_GCJ=
  23885. + hardcode_libdir_separator_GCJ=
  23886. + hardcode_direct_GCJ=no
  23887. + hardcode_minus_L_GCJ=no
  23888. + hardcode_shlibpath_var_GCJ=unsupported
  23889. + link_all_deplibs_GCJ=unknown
  23890. + hardcode_automatic_GCJ=no
  23891. + module_cmds_GCJ=
  23892. + module_expsym_cmds_GCJ=
  23893. + always_export_symbols_GCJ=no
  23894. + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  23895. + # include_expsyms should be a list of space-separated symbols to be *always*
  23896. + # included in the symbol list
  23897. + include_expsyms_GCJ=
  23898. + # exclude_expsyms can be an extended regexp of symbols to exclude
  23899. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  23900. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  23901. + # as well as any symbol that contains `d'.
  23902. + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  23903. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  23904. + # platforms (ab)use it in PIC code, but their linkers get confused if
  23905. + # the symbol is explicitly referenced. Since portable code cannot
  23906. + # rely on this symbol name, it's probably fine to never include it in
  23907. + # preloaded symbol tables.
  23908. + extract_expsyms_cmds=
  23909. + # Just being paranoid about ensuring that cc_basename is set.
  23910. + for cc_temp in $compiler""; do
  23911. + case $cc_temp in
  23912. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23913. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23914. + \-*) ;;
  23915. + *) break;;
  23916. + esac
  23917. +done
  23918. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  23919. +
  23920. + case $host_os in
  23921. + cygwin* | mingw* | pw32*)
  23922. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  23923. + # When not using gcc, we currently assume that we are using
  23924. + # Microsoft Visual C++.
  23925. + if test "$GCC" != yes; then
  23926. + with_gnu_ld=no
  23927. + fi
  23928. + ;;
  23929. + interix*)
  23930. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  23931. + with_gnu_ld=yes
  23932. + ;;
  23933. + openbsd*)
  23934. + with_gnu_ld=no
  23935. + ;;
  23936. + esac
  23937. +
  23938. + ld_shlibs_GCJ=yes
  23939. + if test "$with_gnu_ld" = yes; then
  23940. + # If archive_cmds runs LD, not CC, wlarc should be empty
  23941. + wlarc='${wl}'
  23942. +
  23943. + # Set some defaults for GNU ld with shared library support. These
  23944. + # are reset later if shared libraries are not supported. Putting them
  23945. + # here allows them to be overridden if necessary.
  23946. + runpath_var=LD_RUN_PATH
  23947. + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  23948. + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  23949. + # ancient GNU ld didn't support --whole-archive et. al.
  23950. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  23951. + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  23952. + else
  23953. + whole_archive_flag_spec_GCJ=
  23954. + fi
  23955. + supports_anon_versioning=no
  23956. + case `$LD -v 2>/dev/null` in
  23957. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  23958. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  23959. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  23960. + *\ 2.11.*) ;; # other 2.11 versions
  23961. + *) supports_anon_versioning=yes ;;
  23962. + esac
  23963. +
  23964. + # See if GNU ld supports shared libraries.
  23965. + case $host_os in
  23966. + aix3* | aix4* | aix5*)
  23967. + # On AIX/PPC, the GNU linker is very broken
  23968. + if test "$host_cpu" != ia64; then
  23969. + ld_shlibs_GCJ=no
  23970. + cat <<EOF 1>&2
  23971. +
  23972. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  23973. +*** to be unable to reliably create shared libraries on AIX.
  23974. +*** Therefore, libtool is disabling shared libraries support. If you
  23975. +*** really care for shared libraries, you may want to modify your PATH
  23976. +*** so that a non-GNU linker is found, and then restart.
  23977. +
  23978. +EOF
  23979. + fi
  23980. + ;;
  23981. +
  23982. + amigaos*)
  23983. + 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)'
  23984. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  23985. + hardcode_minus_L_GCJ=yes
  23986. +
  23987. + # Samuel A. Falvo II <[email protected]> reports
  23988. + # that the semantics of dynamic libraries on AmigaOS, at least up
  23989. + # to version 4, is to share data among multiple programs linked
  23990. + # with the same dynamic library. Since this doesn't match the
  23991. + # behavior of shared libraries on other platforms, we can't use
  23992. + # them.
  23993. + ld_shlibs_GCJ=no
  23994. + ;;
  23995. +
  23996. + beos*)
  23997. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  23998. + allow_undefined_flag_GCJ=unsupported
  23999. + # Joseph Beckenbach <[email protected]> says some releases of gcc
  24000. + # support --undefined. This deserves some investigation. FIXME
  24001. + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24002. + else
  24003. + ld_shlibs_GCJ=no
  24004. + fi
  24005. + ;;
  24006. +
  24007. + cygwin* | mingw* | pw32*)
  24008. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  24009. + # as there is no search path for DLLs.
  24010. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  24011. + allow_undefined_flag_GCJ=unsupported
  24012. + always_export_symbols_GCJ=no
  24013. + enable_shared_with_static_runtimes_GCJ=yes
  24014. + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  24015. +
  24016. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  24017. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24018. + # If the export-symbols file already is a .def file (1st line
  24019. + # is EXPORTS), use it as is; otherwise, prepend...
  24020. + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  24021. + cp $export_symbols $output_objdir/$soname.def;
  24022. + else
  24023. + echo EXPORTS > $output_objdir/$soname.def;
  24024. + cat $export_symbols >> $output_objdir/$soname.def;
  24025. + fi~
  24026. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24027. + else
  24028. + ld_shlibs_GCJ=no
  24029. + fi
  24030. + ;;
  24031. +
  24032. + interix3*)
  24033. + hardcode_direct_GCJ=no
  24034. + hardcode_shlibpath_var_GCJ=no
  24035. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  24036. + export_dynamic_flag_spec_GCJ='${wl}-E'
  24037. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  24038. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  24039. + # default) and relocated if they conflict, which is a slow very memory
  24040. + # consuming and fragmenting process. To avoid this, we pick a random,
  24041. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  24042. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  24043. + 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'
  24044. + 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'
  24045. + ;;
  24046. +
  24047. + linux* | k*bsd*-gnu)
  24048. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24049. + tmp_addflag=
  24050. + case $cc_basename,$host_cpu in
  24051. + pgcc*) # Portland Group C compiler
  24052. + 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'
  24053. + tmp_addflag=' $pic_flag'
  24054. + ;;
  24055. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  24056. + 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'
  24057. + tmp_addflag=' $pic_flag -Mnomain' ;;
  24058. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  24059. + tmp_addflag=' -i_dynamic' ;;
  24060. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  24061. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  24062. + ifc* | ifort*) # Intel Fortran compiler
  24063. + tmp_addflag=' -nofor_main' ;;
  24064. + esac
  24065. + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24066. +
  24067. + if test $supports_anon_versioning = yes; then
  24068. + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  24069. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  24070. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  24071. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  24072. + fi
  24073. + link_all_deplibs_GCJ=no
  24074. + else
  24075. + ld_shlibs_GCJ=no
  24076. + fi
  24077. + ;;
  24078. +
  24079. + netbsd* | netbsdelf*-gnu)
  24080. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24081. + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  24082. + wlarc=
  24083. + else
  24084. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24085. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24086. + fi
  24087. + ;;
  24088. +
  24089. + solaris*)
  24090. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  24091. + ld_shlibs_GCJ=no
  24092. + cat <<EOF 1>&2
  24093. +
  24094. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  24095. +*** create shared libraries on Solaris systems. Therefore, libtool
  24096. +*** is disabling shared libraries support. We urge you to upgrade GNU
  24097. +*** binutils to release 2.9.1 or newer. Another option is to modify
  24098. +*** your PATH or compiler configuration so that the native linker is
  24099. +*** used, and then restart.
  24100. +
  24101. +EOF
  24102. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24103. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24104. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24105. + else
  24106. + ld_shlibs_GCJ=no
  24107. + fi
  24108. + ;;
  24109. +
  24110. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  24111. + case `$LD -v 2>&1` in
  24112. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  24113. + ld_shlibs_GCJ=no
  24114. + cat <<_LT_EOF 1>&2
  24115. +
  24116. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  24117. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  24118. +*** is disabling shared libraries support. We urge you to upgrade GNU
  24119. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  24120. +*** your PATH or compiler configuration so that the native linker is
  24121. +*** used, and then restart.
  24122. +
  24123. +_LT_EOF
  24124. + ;;
  24125. + *)
  24126. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24127. + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  24128. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  24129. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  24130. + else
  24131. + ld_shlibs_GCJ=no
  24132. + fi
  24133. + ;;
  24134. + esac
  24135. + ;;
  24136. +
  24137. + sunos4*)
  24138. + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24139. + wlarc=
  24140. + hardcode_direct_GCJ=yes
  24141. + hardcode_shlibpath_var_GCJ=no
  24142. + ;;
  24143. +
  24144. + *)
  24145. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24146. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24147. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24148. + else
  24149. + ld_shlibs_GCJ=no
  24150. + fi
  24151. + ;;
  24152. + esac
  24153. +
  24154. + if test "$ld_shlibs_GCJ" = no; then
  24155. + runpath_var=
  24156. + hardcode_libdir_flag_spec_GCJ=
  24157. + export_dynamic_flag_spec_GCJ=
  24158. + whole_archive_flag_spec_GCJ=
  24159. + fi
  24160. + else
  24161. + # PORTME fill in a description of your system's linker (not GNU ld)
  24162. + case $host_os in
  24163. + aix3*)
  24164. + allow_undefined_flag_GCJ=unsupported
  24165. + always_export_symbols_GCJ=yes
  24166. + 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'
  24167. + # Note: this linker hardcodes the directories in LIBPATH if there
  24168. + # are no directories specified by -L.
  24169. + hardcode_minus_L_GCJ=yes
  24170. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  24171. + # Neither direct hardcoding nor static linking is supported with a
  24172. + # broken collect2.
  24173. + hardcode_direct_GCJ=unsupported
  24174. + fi
  24175. + ;;
  24176. +
  24177. + aix4* | aix5*)
  24178. + if test "$host_cpu" = ia64; then
  24179. + # On IA64, the linker does run time linking by default, so we don't
  24180. + # have to do anything special.
  24181. + aix_use_runtimelinking=no
  24182. + exp_sym_flag='-Bexport'
  24183. + no_entry_flag=""
  24184. + else
  24185. + # If we're using GNU nm, then we don't want the "-C" option.
  24186. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  24187. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  24188. + 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'
  24189. + else
  24190. + 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'
  24191. + fi
  24192. + aix_use_runtimelinking=no
  24193. +
  24194. + # Test if we are trying to use run time linking or normal
  24195. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  24196. + # need to do runtime linking.
  24197. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  24198. + for ld_flag in $LDFLAGS; do
  24199. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  24200. + aix_use_runtimelinking=yes
  24201. + break
  24202. + fi
  24203. + done
  24204. + ;;
  24205. + esac
  24206. +
  24207. + exp_sym_flag='-bexport'
  24208. + no_entry_flag='-bnoentry'
  24209. + fi
  24210. +
  24211. + # When large executables or shared objects are built, AIX ld can
  24212. + # have problems creating the table of contents. If linking a library
  24213. + # or program results in "error TOC overflow" add -mminimal-toc to
  24214. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  24215. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  24216. +
  24217. + archive_cmds_GCJ=''
  24218. + hardcode_direct_GCJ=yes
  24219. + hardcode_libdir_separator_GCJ=':'
  24220. + link_all_deplibs_GCJ=yes
  24221. +
  24222. + if test "$GCC" = yes; then
  24223. + case $host_os in aix4.[012]|aix4.[012].*)
  24224. + # We only want to do this on AIX 4.2 and lower, the check
  24225. + # below for broken collect2 doesn't work under 4.3+
  24226. + collect2name=`${CC} -print-prog-name=collect2`
  24227. + if test -f "$collect2name" && \
  24228. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  24229. + then
  24230. + # We have reworked collect2
  24231. + hardcode_direct_GCJ=yes
  24232. + else
  24233. + # We have old collect2
  24234. + hardcode_direct_GCJ=unsupported
  24235. + # It fails to find uninstalled libraries when the uninstalled
  24236. + # path is not listed in the libpath. Setting hardcode_minus_L
  24237. + # to unsupported forces relinking
  24238. + hardcode_minus_L_GCJ=yes
  24239. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  24240. + hardcode_libdir_separator_GCJ=
  24241. + fi
  24242. + ;;
  24243. + esac
  24244. + shared_flag='-shared'
  24245. + if test "$aix_use_runtimelinking" = yes; then
  24246. + shared_flag="$shared_flag "'${wl}-G'
  24247. + fi
  24248. + else
  24249. + # not using gcc
  24250. + if test "$host_cpu" = ia64; then
  24251. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  24252. + # chokes on -Wl,-G. The following line is correct:
  24253. + shared_flag='-G'
  24254. + else
  24255. + if test "$aix_use_runtimelinking" = yes; then
  24256. + shared_flag='${wl}-G'
  24257. + else
  24258. + shared_flag='${wl}-bM:SRE'
  24259. + fi
  24260. + fi
  24261. + fi
  24262. +
  24263. + # It seems that -bexpall does not export symbols beginning with
  24264. + # underscore (_), so it is better to generate a list of symbols to export.
  24265. + always_export_symbols_GCJ=yes
  24266. + if test "$aix_use_runtimelinking" = yes; then
  24267. + # Warning - without using the other runtime loading flags (-brtl),
  24268. + # -berok will link without error, but may produce a broken library.
  24269. + allow_undefined_flag_GCJ='-berok'
  24270. + # Determine the default libpath from the value encoded in an empty executable.
  24271. + cat >conftest.$ac_ext <<_ACEOF
  24272. +/* confdefs.h. */
  24273. +_ACEOF
  24274. +cat confdefs.h >>conftest.$ac_ext
  24275. +cat >>conftest.$ac_ext <<_ACEOF
  24276. +/* end confdefs.h. */
  24277. +
  24278. +int
  24279. +main ()
  24280. +{
  24281. +
  24282. + ;
  24283. + return 0;
  24284. +}
  24285. +_ACEOF
  24286. +rm -f conftest.$ac_objext conftest$ac_exeext
  24287. +if { (ac_try="$ac_link"
  24288. +case "(($ac_try" in
  24289. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24290. + *) ac_try_echo=$ac_try;;
  24291. +esac
  24292. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24293. + (eval "$ac_link") 2>conftest.er1
  24294. + ac_status=$?
  24295. + grep -v '^ *+' conftest.er1 >conftest.err
  24296. + rm -f conftest.er1
  24297. + cat conftest.err >&5
  24298. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24299. + (exit $ac_status); } && {
  24300. + test -z "$ac_c_werror_flag" ||
  24301. + test ! -s conftest.err
  24302. + } && test -s conftest$ac_exeext &&
  24303. + $as_test_x conftest$ac_exeext; then
  24304. +
  24305. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24306. +}'`
  24307. +# Check for a 64-bit object if we didn't find anything.
  24308. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24309. +}'`; fi
  24310. +else
  24311. + echo "$as_me: failed program was:" >&5
  24312. +sed 's/^/| /' conftest.$ac_ext >&5
  24313. +
  24314. +
  24315. +fi
  24316. +
  24317. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24318. + conftest$ac_exeext conftest.$ac_ext
  24319. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24320. +
  24321. + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  24322. + 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"
  24323. + else
  24324. + if test "$host_cpu" = ia64; then
  24325. + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  24326. + allow_undefined_flag_GCJ="-z nodefs"
  24327. + 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"
  24328. + else
  24329. + # Determine the default libpath from the value encoded in an empty executable.
  24330. + cat >conftest.$ac_ext <<_ACEOF
  24331. +/* confdefs.h. */
  24332. +_ACEOF
  24333. +cat confdefs.h >>conftest.$ac_ext
  24334. +cat >>conftest.$ac_ext <<_ACEOF
  24335. +/* end confdefs.h. */
  24336. +
  24337. +int
  24338. +main ()
  24339. +{
  24340. +
  24341. + ;
  24342. + return 0;
  24343. +}
  24344. +_ACEOF
  24345. +rm -f conftest.$ac_objext conftest$ac_exeext
  24346. +if { (ac_try="$ac_link"
  24347. +case "(($ac_try" in
  24348. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24349. + *) ac_try_echo=$ac_try;;
  24350. +esac
  24351. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24352. + (eval "$ac_link") 2>conftest.er1
  24353. + ac_status=$?
  24354. + grep -v '^ *+' conftest.er1 >conftest.err
  24355. + rm -f conftest.er1
  24356. + cat conftest.err >&5
  24357. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24358. + (exit $ac_status); } && {
  24359. + test -z "$ac_c_werror_flag" ||
  24360. + test ! -s conftest.err
  24361. + } && test -s conftest$ac_exeext &&
  24362. + $as_test_x conftest$ac_exeext; then
  24363. +
  24364. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24365. +}'`
  24366. +# Check for a 64-bit object if we didn't find anything.
  24367. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24368. +}'`; fi
  24369. +else
  24370. + echo "$as_me: failed program was:" >&5
  24371. +sed 's/^/| /' conftest.$ac_ext >&5
  24372. +
  24373. +
  24374. +fi
  24375. +
  24376. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24377. + conftest$ac_exeext conftest.$ac_ext
  24378. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24379. +
  24380. + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  24381. + # Warning - without using the other run time loading flags,
  24382. + # -berok will link without error, but may produce a broken library.
  24383. + no_undefined_flag_GCJ=' ${wl}-bernotok'
  24384. + allow_undefined_flag_GCJ=' ${wl}-berok'
  24385. + # Exported symbols can be pulled into shared objects from archives
  24386. + whole_archive_flag_spec_GCJ='$convenience'
  24387. + archive_cmds_need_lc_GCJ=yes
  24388. + # This is similar to how AIX traditionally builds its shared libraries.
  24389. + 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'
  24390. + fi
  24391. + fi
  24392. + ;;
  24393. +
  24394. + amigaos*)
  24395. + 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)'
  24396. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  24397. + hardcode_minus_L_GCJ=yes
  24398. + # see comment about different semantics on the GNU ld section
  24399. + ld_shlibs_GCJ=no
  24400. + ;;
  24401. +
  24402. + bsdi[45]*)
  24403. + export_dynamic_flag_spec_GCJ=-rdynamic
  24404. + ;;
  24405. +
  24406. + cygwin* | mingw* | pw32*)
  24407. + # When not using gcc, we currently assume that we are using
  24408. + # Microsoft Visual C++.
  24409. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  24410. + # no search path for DLLs.
  24411. + hardcode_libdir_flag_spec_GCJ=' '
  24412. + allow_undefined_flag_GCJ=unsupported
  24413. + # Tell ltmain to make .lib files, not .a files.
  24414. + libext=lib
  24415. + # Tell ltmain to make .dll files, not .so files.
  24416. + shrext_cmds=".dll"
  24417. + # FIXME: Setting linknames here is a bad hack.
  24418. + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  24419. + # The linker will automatically build a .lib file if we build a DLL.
  24420. + old_archive_From_new_cmds_GCJ='true'
  24421. + # FIXME: Should let the user specify the lib program.
  24422. + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  24423. + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  24424. + enable_shared_with_static_runtimes_GCJ=yes
  24425. + ;;
  24426. +
  24427. + darwin* | rhapsody*)
  24428. + case $host_os in
  24429. + rhapsody* | darwin1.[012])
  24430. + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  24431. + ;;
  24432. + *) # Darwin 1.3 on
  24433. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  24434. + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  24435. + else
  24436. + case ${MACOSX_DEPLOYMENT_TARGET} in
  24437. + 10.[012])
  24438. + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  24439. + ;;
  24440. + 10.*)
  24441. + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  24442. + ;;
  24443. + esac
  24444. + fi
  24445. + ;;
  24446. + esac
  24447. + archive_cmds_need_lc_GCJ=no
  24448. + hardcode_direct_GCJ=no
  24449. + hardcode_automatic_GCJ=yes
  24450. + hardcode_shlibpath_var_GCJ=unsupported
  24451. + whole_archive_flag_spec_GCJ=''
  24452. + link_all_deplibs_GCJ=yes
  24453. + if test "$GCC" = yes ; then
  24454. + output_verbose_link_cmd='echo'
  24455. + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  24456. + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24457. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  24458. + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24459. + 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}'
  24460. + else
  24461. + case $cc_basename in
  24462. + xlc*)
  24463. + output_verbose_link_cmd='echo'
  24464. + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  24465. + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24466. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  24467. + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24468. + 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}'
  24469. + ;;
  24470. + *)
  24471. + ld_shlibs_GCJ=no
  24472. + ;;
  24473. + esac
  24474. + fi
  24475. + ;;
  24476. +
  24477. + dgux*)
  24478. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24479. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  24480. + hardcode_shlibpath_var_GCJ=no
  24481. + ;;
  24482. +
  24483. + freebsd1*)
  24484. + ld_shlibs_GCJ=no
  24485. + ;;
  24486. +
  24487. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  24488. + # support. Future versions do this automatically, but an explicit c++rt0.o
  24489. + # does not break anything, and helps significantly (at the cost of a little
  24490. + # extra space).
  24491. + freebsd2.2*)
  24492. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  24493. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  24494. + hardcode_direct_GCJ=yes
  24495. + hardcode_shlibpath_var_GCJ=no
  24496. + ;;
  24497. +
  24498. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  24499. + freebsd2*)
  24500. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24501. + hardcode_direct_GCJ=yes
  24502. + hardcode_minus_L_GCJ=yes
  24503. + hardcode_shlibpath_var_GCJ=no
  24504. + ;;
  24505. +
  24506. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  24507. + freebsd* | dragonfly*)
  24508. + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  24509. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  24510. + hardcode_direct_GCJ=yes
  24511. + hardcode_shlibpath_var_GCJ=no
  24512. + ;;
  24513. +
  24514. + hpux9*)
  24515. + if test "$GCC" = yes; then
  24516. + 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'
  24517. + else
  24518. + 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'
  24519. + fi
  24520. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  24521. + hardcode_libdir_separator_GCJ=:
  24522. + hardcode_direct_GCJ=yes
  24523. +
  24524. + # hardcode_minus_L: Not really in the search PATH,
  24525. + # but as the default location of the library.
  24526. + hardcode_minus_L_GCJ=yes
  24527. + export_dynamic_flag_spec_GCJ='${wl}-E'
  24528. + ;;
  24529. +
  24530. + hpux10*)
  24531. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  24532. + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24533. + else
  24534. + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  24535. + fi
  24536. + if test "$with_gnu_ld" = no; then
  24537. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  24538. + hardcode_libdir_separator_GCJ=:
  24539. +
  24540. + hardcode_direct_GCJ=yes
  24541. + export_dynamic_flag_spec_GCJ='${wl}-E'
  24542. +
  24543. + # hardcode_minus_L: Not really in the search PATH,
  24544. + # but as the default location of the library.
  24545. + hardcode_minus_L_GCJ=yes
  24546. + fi
  24547. + ;;
  24548. +
  24549. + hpux11*)
  24550. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  24551. + case $host_cpu in
  24552. + hppa*64*)
  24553. + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24554. + ;;
  24555. + ia64*)
  24556. + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  24557. + ;;
  24558. + *)
  24559. + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24560. + ;;
  24561. + esac
  24562. + else
  24563. + case $host_cpu in
  24564. + hppa*64*)
  24565. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24566. + ;;
  24567. + ia64*)
  24568. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  24569. + ;;
  24570. + *)
  24571. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24572. + ;;
  24573. + esac
  24574. + fi
  24575. + if test "$with_gnu_ld" = no; then
  24576. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  24577. + hardcode_libdir_separator_GCJ=:
  24578. +
  24579. + case $host_cpu in
  24580. + hppa*64*|ia64*)
  24581. + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  24582. + hardcode_direct_GCJ=no
  24583. + hardcode_shlibpath_var_GCJ=no
  24584. + ;;
  24585. + *)
  24586. + hardcode_direct_GCJ=yes
  24587. + export_dynamic_flag_spec_GCJ='${wl}-E'
  24588. +
  24589. + # hardcode_minus_L: Not really in the search PATH,
  24590. + # but as the default location of the library.
  24591. + hardcode_minus_L_GCJ=yes
  24592. + ;;
  24593. + esac
  24594. + fi
  24595. + ;;
  24596. +
  24597. + irix5* | irix6* | nonstopux*)
  24598. + if test "$GCC" = yes; then
  24599. + 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'
  24600. + else
  24601. + 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'
  24602. + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  24603. + fi
  24604. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  24605. + hardcode_libdir_separator_GCJ=:
  24606. + link_all_deplibs_GCJ=yes
  24607. + ;;
  24608. +
  24609. + netbsd* | netbsdelf*-gnu)
  24610. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24611. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  24612. + else
  24613. + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  24614. + fi
  24615. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  24616. + hardcode_direct_GCJ=yes
  24617. + hardcode_shlibpath_var_GCJ=no
  24618. + ;;
  24619. +
  24620. + newsos6)
  24621. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24622. + hardcode_direct_GCJ=yes
  24623. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  24624. + hardcode_libdir_separator_GCJ=:
  24625. + hardcode_shlibpath_var_GCJ=no
  24626. + ;;
  24627. +
  24628. + openbsd*)
  24629. + hardcode_direct_GCJ=yes
  24630. + hardcode_shlibpath_var_GCJ=no
  24631. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24632. + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  24633. + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  24634. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  24635. + export_dynamic_flag_spec_GCJ='${wl}-E'
  24636. + else
  24637. + case $host_os in
  24638. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  24639. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24640. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  24641. + ;;
  24642. + *)
  24643. + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  24644. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  24645. + ;;
  24646. + esac
  24647. + fi
  24648. + ;;
  24649. +
  24650. + os2*)
  24651. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  24652. + hardcode_minus_L_GCJ=yes
  24653. + allow_undefined_flag_GCJ=unsupported
  24654. + 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'
  24655. + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  24656. + ;;
  24657. +
  24658. + osf3*)
  24659. + if test "$GCC" = yes; then
  24660. + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  24661. + 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'
  24662. + else
  24663. + allow_undefined_flag_GCJ=' -expect_unresolved \*'
  24664. + 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'
  24665. + fi
  24666. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  24667. + hardcode_libdir_separator_GCJ=:
  24668. + ;;
  24669. +
  24670. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  24671. + if test "$GCC" = yes; then
  24672. + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  24673. + 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'
  24674. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  24675. + else
  24676. + allow_undefined_flag_GCJ=' -expect_unresolved \*'
  24677. + 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'
  24678. + 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~
  24679. + $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'
  24680. +
  24681. + # Both c and cxx compiler support -rpath directly
  24682. + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  24683. + fi
  24684. + hardcode_libdir_separator_GCJ=:
  24685. + ;;
  24686. +
  24687. + solaris*)
  24688. + no_undefined_flag_GCJ=' -z text'
  24689. + if test "$GCC" = yes; then
  24690. + wlarc='${wl}'
  24691. + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24692. + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24693. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  24694. + else
  24695. + wlarc=''
  24696. + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24697. + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24698. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  24699. + fi
  24700. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  24701. + hardcode_shlibpath_var_GCJ=no
  24702. + case $host_os in
  24703. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  24704. + *)
  24705. + # The compiler driver will combine linker options so we
  24706. + # cannot just pass the convience library names through
  24707. + # without $wl, iff we do not link with $LD.
  24708. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  24709. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  24710. + case $wlarc in
  24711. + '')
  24712. + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  24713. + *)
  24714. + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  24715. + esac ;;
  24716. + esac
  24717. + link_all_deplibs_GCJ=yes
  24718. + ;;
  24719. +
  24720. + sunos4*)
  24721. + if test "x$host_vendor" = xsequent; then
  24722. + # Use $CC to link under sequent, because it throws in some extra .o
  24723. + # files that make .init and .fini sections work.
  24724. + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  24725. + else
  24726. + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  24727. + fi
  24728. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  24729. + hardcode_direct_GCJ=yes
  24730. + hardcode_minus_L_GCJ=yes
  24731. + hardcode_shlibpath_var_GCJ=no
  24732. + ;;
  24733. +
  24734. + sysv4)
  24735. + case $host_vendor in
  24736. + sni)
  24737. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24738. + hardcode_direct_GCJ=yes # is this really true???
  24739. + ;;
  24740. + siemens)
  24741. + ## LD is ld it makes a PLAMLIB
  24742. + ## CC just makes a GrossModule.
  24743. + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  24744. + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  24745. + hardcode_direct_GCJ=no
  24746. + ;;
  24747. + motorola)
  24748. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24749. + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  24750. + ;;
  24751. + esac
  24752. + runpath_var='LD_RUN_PATH'
  24753. + hardcode_shlibpath_var_GCJ=no
  24754. + ;;
  24755. +
  24756. + sysv4.3*)
  24757. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24758. + hardcode_shlibpath_var_GCJ=no
  24759. + export_dynamic_flag_spec_GCJ='-Bexport'
  24760. + ;;
  24761. +
  24762. + sysv4*MP*)
  24763. + if test -d /usr/nec; then
  24764. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24765. + hardcode_shlibpath_var_GCJ=no
  24766. + runpath_var=LD_RUN_PATH
  24767. + hardcode_runpath_var=yes
  24768. + ld_shlibs_GCJ=yes
  24769. + fi
  24770. + ;;
  24771. +
  24772. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  24773. + no_undefined_flag_GCJ='${wl}-z,text'
  24774. + archive_cmds_need_lc_GCJ=no
  24775. + hardcode_shlibpath_var_GCJ=no
  24776. + runpath_var='LD_RUN_PATH'
  24777. +
  24778. + if test "$GCC" = yes; then
  24779. + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  24780. + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  24781. + else
  24782. + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  24783. + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  24784. + fi
  24785. + ;;
  24786. +
  24787. + sysv5* | sco3.2v5* | sco5v6*)
  24788. + # Note: We can NOT use -z defs as we might desire, because we do not
  24789. + # link with -lc, and that would cause any symbols used from libc to
  24790. + # always be unresolved, which means just about no library would
  24791. + # ever link correctly. If we're not using GNU ld we use -z text
  24792. + # though, which does catch some bad symbols but isn't as heavy-handed
  24793. + # as -z defs.
  24794. + no_undefined_flag_GCJ='${wl}-z,text'
  24795. + allow_undefined_flag_GCJ='${wl}-z,nodefs'
  24796. + archive_cmds_need_lc_GCJ=no
  24797. + hardcode_shlibpath_var_GCJ=no
  24798. + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  24799. + hardcode_libdir_separator_GCJ=':'
  24800. + link_all_deplibs_GCJ=yes
  24801. + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  24802. + runpath_var='LD_RUN_PATH'
  24803. +
  24804. + if test "$GCC" = yes; then
  24805. + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24806. + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24807. + else
  24808. + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24809. + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24810. + fi
  24811. + ;;
  24812. +
  24813. + uts4*)
  24814. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24815. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  24816. + hardcode_shlibpath_var_GCJ=no
  24817. + ;;
  24818. +
  24819. + *)
  24820. + ld_shlibs_GCJ=no
  24821. + ;;
  24822. + esac
  24823. + fi
  24824. +
  24825. +{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  24826. +echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  24827. +test "$ld_shlibs_GCJ" = no && can_build_shared=no
  24828. +
  24829. +#
  24830. +# Do we need to explicitly link libc?
  24831. +#
  24832. +case "x$archive_cmds_need_lc_GCJ" in
  24833. +x|xyes)
  24834. + # Assume -lc should be added
  24835. + archive_cmds_need_lc_GCJ=yes
  24836. +
  24837. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  24838. + case $archive_cmds_GCJ in
  24839. + *'~'*)
  24840. + # FIXME: we may have to deal with multi-command sequences.
  24841. + ;;
  24842. + '$CC '*)
  24843. + # Test whether the compiler implicitly links with -lc since on some
  24844. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  24845. + # to ld, don't add -lc before -lgcc.
  24846. + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  24847. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  24848. + $rm conftest*
  24849. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24850. +
  24851. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24852. + (eval $ac_compile) 2>&5
  24853. + ac_status=$?
  24854. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24855. + (exit $ac_status); } 2>conftest.err; then
  24856. + soname=conftest
  24857. + lib=conftest
  24858. + libobjs=conftest.$ac_objext
  24859. + deplibs=
  24860. + wl=$lt_prog_compiler_wl_GCJ
  24861. + pic_flag=$lt_prog_compiler_pic_GCJ
  24862. + compiler_flags=-v
  24863. + linker_flags=-v
  24864. + verstring=
  24865. + output_objdir=.
  24866. + libname=conftest
  24867. + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  24868. + allow_undefined_flag_GCJ=
  24869. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  24870. + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  24871. + ac_status=$?
  24872. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24873. + (exit $ac_status); }
  24874. + then
  24875. + archive_cmds_need_lc_GCJ=no
  24876. + else
  24877. + archive_cmds_need_lc_GCJ=yes
  24878. + fi
  24879. + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  24880. + else
  24881. + cat conftest.err 1>&5
  24882. + fi
  24883. + $rm conftest*
  24884. + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  24885. +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  24886. + ;;
  24887. + esac
  24888. + fi
  24889. + ;;
  24890. +esac
  24891. +
  24892. +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  24893. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  24894. +library_names_spec=
  24895. +libname_spec='lib$name'
  24896. +soname_spec=
  24897. +shrext_cmds=".so"
  24898. +postinstall_cmds=
  24899. +postuninstall_cmds=
  24900. +finish_cmds=
  24901. +finish_eval=
  24902. +shlibpath_var=
  24903. +shlibpath_overrides_runpath=unknown
  24904. +version_type=none
  24905. +dynamic_linker="$host_os ld.so"
  24906. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  24907. +if test "$GCC" = yes; then
  24908. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24909. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  24910. + # if the path contains ";" then we assume it to be the separator
  24911. + # otherwise default to the standard path separator (i.e. ":") - it is
  24912. + # assumed that no part of a normal pathname contains ";" but that should
  24913. + # okay in the real world where ";" in dirpaths is itself problematic.
  24914. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  24915. + else
  24916. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  24917. + fi
  24918. +else
  24919. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  24920. +fi
  24921. +need_lib_prefix=unknown
  24922. +hardcode_into_libs=no
  24923. +
  24924. +# when you set need_version to no, make sure it does not cause -set_version
  24925. +# flags to be left without arguments
  24926. +need_version=unknown
  24927. +
  24928. +case $host_os in
  24929. +aix3*)
  24930. + version_type=linux
  24931. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  24932. + shlibpath_var=LIBPATH
  24933. +
  24934. + # AIX 3 has no versioning support, so we append a major version to the name.
  24935. + soname_spec='${libname}${release}${shared_ext}$major'
  24936. + ;;
  24937. +
  24938. +aix4* | aix5*)
  24939. + version_type=linux
  24940. + need_lib_prefix=no
  24941. + need_version=no
  24942. + hardcode_into_libs=yes
  24943. + if test "$host_cpu" = ia64; then
  24944. + # AIX 5 supports IA64
  24945. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  24946. + shlibpath_var=LD_LIBRARY_PATH
  24947. + else
  24948. + # With GCC up to 2.95.x, collect2 would create an import file
  24949. + # for dependence libraries. The import file would start with
  24950. + # the line `#! .'. This would cause the generated library to
  24951. + # depend on `.', always an invalid library. This was fixed in
  24952. + # development snapshots of GCC prior to 3.0.
  24953. + case $host_os in
  24954. + aix4 | aix4.[01] | aix4.[01].*)
  24955. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  24956. + echo ' yes '
  24957. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  24958. + :
  24959. + else
  24960. + can_build_shared=no
  24961. + fi
  24962. + ;;
  24963. + esac
  24964. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  24965. + # soname into executable. Probably we can add versioning support to
  24966. + # collect2, so additional links can be useful in future.
  24967. + if test "$aix_use_runtimelinking" = yes; then
  24968. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  24969. + # instead of lib<name>.a to let people know that these are not
  24970. + # typical AIX shared libraries.
  24971. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24972. + else
  24973. + # We preserve .a as extension for shared libraries through AIX4.2
  24974. + # and later when we are not doing run time linking.
  24975. + library_names_spec='${libname}${release}.a $libname.a'
  24976. + soname_spec='${libname}${release}${shared_ext}$major'
  24977. + fi
  24978. + shlibpath_var=LIBPATH
  24979. + fi
  24980. + ;;
  24981. +
  24982. +amigaos*)
  24983. + library_names_spec='$libname.ixlibrary $libname.a'
  24984. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  24985. + 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'
  24986. + ;;
  24987. +
  24988. +beos*)
  24989. + library_names_spec='${libname}${shared_ext}'
  24990. + dynamic_linker="$host_os ld.so"
  24991. + shlibpath_var=LIBRARY_PATH
  24992. + ;;
  24993. +
  24994. +bsdi[45]*)
  24995. version_type=linux
  24996. need_version=no
  24997. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  24998. - soname_spec='${libname}${release}.so$major'
  24999. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25000. + soname_spec='${libname}${release}${shared_ext}$major'
  25001. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  25002. shlibpath_var=LD_LIBRARY_PATH
  25003. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  25004. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  25005. - export_dynamic_flag_spec=-rdynamic
  25006. # the default ld.so.conf also contains /usr/contrib/lib and
  25007. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  25008. # libtool to hard-code these into programs
  25009. @@ -6487,29 +18034,56 @@
  25010. cygwin* | mingw* | pw32*)
  25011. version_type=windows
  25012. + shrext_cmds=".dll"
  25013. need_version=no
  25014. need_lib_prefix=no
  25015. +
  25016. case $GCC,$host_os in
  25017. - yes,cygwin*)
  25018. + yes,cygwin* | yes,mingw* | yes,pw32*)
  25019. library_names_spec='$libname.dll.a'
  25020. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  25021. - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  25022. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  25023. + postinstall_cmds='base_file=`basename \${file}`~
  25024. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  25025. dldir=$destdir/`dirname \$dlpath`~
  25026. test -d \$dldir || mkdir -p \$dldir~
  25027. - $install_prog .libs/$dlname \$dldir/$dlname'
  25028. - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  25029. + $install_prog $dir/$dlname \$dldir/$dlname~
  25030. + chmod a+x \$dldir/$dlname'
  25031. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  25032. dlpath=$dir/\$dldll~
  25033. $rm \$dlpath'
  25034. + shlibpath_overrides_runpath=yes
  25035. +
  25036. + case $host_os in
  25037. + cygwin*)
  25038. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  25039. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25040. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  25041. + ;;
  25042. + mingw*)
  25043. + # MinGW DLLs use traditional 'lib' prefix
  25044. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25045. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25046. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  25047. + # It is most probably a Windows format PATH printed by
  25048. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  25049. + # path with ; separators, and with drive letters. We can handle the
  25050. + # drive letters (cygwin fileutils understands them), so leave them,
  25051. + # especially as we might pass files found there to a mingw objdump,
  25052. + # which wouldn't understand a cygwinified path. Ahh.
  25053. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  25054. + else
  25055. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25056. + fi
  25057. + ;;
  25058. + pw32*)
  25059. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  25060. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25061. + ;;
  25062. + esac
  25063. ;;
  25064. - yes,mingw*)
  25065. - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  25066. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  25067. - ;;
  25068. - yes,pw32*)
  25069. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  25070. - ;;
  25071. +
  25072. *)
  25073. - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  25074. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  25075. ;;
  25076. esac
  25077. dynamic_linker='Win32 ld.exe'
  25078. @@ -6521,43 +18095,54 @@
  25079. dynamic_linker="$host_os dyld"
  25080. version_type=darwin
  25081. need_lib_prefix=no
  25082. - need_version=no
  25083. - # FIXME: Relying on posixy $() will cause problems for
  25084. - # cross-compilation, but unfortunately the echo tests do not
  25085. - # yet detect zsh echo's removal of \ escapes.
  25086. - library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  25087. - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  25088. - shlibpath_overrides_runpath=yes
  25089. - shlibpath_var=DYLD_LIBRARY_PATH
  25090. - ;;
  25091. -
  25092. -freebsd1*)
  25093. - dynamic_linker=no
  25094. + need_version=no
  25095. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  25096. + soname_spec='${libname}${release}${major}$shared_ext'
  25097. + shlibpath_overrides_runpath=yes
  25098. + shlibpath_var=DYLD_LIBRARY_PATH
  25099. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  25100. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  25101. + if test "$GCC" = yes; then
  25102. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  25103. + else
  25104. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  25105. + fi
  25106. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  25107. ;;
  25108. -freebsd*-gnu*)
  25109. +dgux*)
  25110. version_type=linux
  25111. need_lib_prefix=no
  25112. need_version=no
  25113. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25114. - soname_spec='${libname}${release}.so$major'
  25115. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  25116. + soname_spec='${libname}${release}${shared_ext}$major'
  25117. shlibpath_var=LD_LIBRARY_PATH
  25118. - shlibpath_overrides_runpath=no
  25119. - hardcode_into_libs=yes
  25120. - dynamic_linker='GNU/FreeBSD ld.so'
  25121. ;;
  25122. -freebsd*)
  25123. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  25124. +freebsd1*)
  25125. + dynamic_linker=no
  25126. + ;;
  25127. +
  25128. +freebsd* | dragonfly*)
  25129. + # DragonFly does not have aout. When/if they implement a new
  25130. + # versioning mechanism, adjust this.
  25131. + if test -x /usr/bin/objformat; then
  25132. + objformat=`/usr/bin/objformat`
  25133. + else
  25134. + case $host_os in
  25135. + freebsd[123]*) objformat=aout ;;
  25136. + *) objformat=elf ;;
  25137. + esac
  25138. + fi
  25139. version_type=freebsd-$objformat
  25140. case $version_type in
  25141. freebsd-elf*)
  25142. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  25143. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25144. need_version=no
  25145. need_lib_prefix=no
  25146. ;;
  25147. freebsd-*)
  25148. - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  25149. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  25150. need_version=yes
  25151. ;;
  25152. esac
  25153. @@ -6566,10 +18151,19 @@
  25154. freebsd2*)
  25155. shlibpath_overrides_runpath=yes
  25156. ;;
  25157. - *)
  25158. + freebsd3.[01]* | freebsdelf3.[01]*)
  25159. + shlibpath_overrides_runpath=yes
  25160. + hardcode_into_libs=yes
  25161. + ;;
  25162. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  25163. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  25164. shlibpath_overrides_runpath=no
  25165. hardcode_into_libs=yes
  25166. ;;
  25167. + freebsd*) # from 4.6 on
  25168. + shlibpath_overrides_runpath=yes
  25169. + hardcode_into_libs=yes
  25170. + ;;
  25171. esac
  25172. ;;
  25173. @@ -6577,8 +18171,8 @@
  25174. version_type=linux
  25175. need_lib_prefix=no
  25176. need_version=no
  25177. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  25178. - soname_spec='${libname}${release}.so$major'
  25179. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  25180. + soname_spec='${libname}${release}${shared_ext}$major'
  25181. shlibpath_var=LD_LIBRARY_PATH
  25182. hardcode_into_libs=yes
  25183. ;;
  25184. @@ -6586,36 +18180,87 @@
  25185. hpux9* | hpux10* | hpux11*)
  25186. # Give a soname corresponding to the major version so that dld.sl refuses to
  25187. # link against other versions.
  25188. - dynamic_linker="$host_os dld.sl"
  25189. version_type=sunos
  25190. need_lib_prefix=no
  25191. need_version=no
  25192. - shlibpath_var=SHLIB_PATH
  25193. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  25194. - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  25195. - soname_spec='${libname}${release}.sl$major'
  25196. + case $host_cpu in
  25197. + ia64*)
  25198. + shrext_cmds='.so'
  25199. + hardcode_into_libs=yes
  25200. + dynamic_linker="$host_os dld.so"
  25201. + shlibpath_var=LD_LIBRARY_PATH
  25202. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25203. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25204. + soname_spec='${libname}${release}${shared_ext}$major'
  25205. + if test "X$HPUX_IA64_MODE" = X32; then
  25206. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  25207. + else
  25208. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  25209. + fi
  25210. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25211. + ;;
  25212. + hppa*64*)
  25213. + shrext_cmds='.sl'
  25214. + hardcode_into_libs=yes
  25215. + dynamic_linker="$host_os dld.sl"
  25216. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  25217. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25218. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25219. + soname_spec='${libname}${release}${shared_ext}$major'
  25220. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  25221. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25222. + ;;
  25223. + *)
  25224. + shrext_cmds='.sl'
  25225. + dynamic_linker="$host_os dld.sl"
  25226. + shlibpath_var=SHLIB_PATH
  25227. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  25228. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25229. + soname_spec='${libname}${release}${shared_ext}$major'
  25230. + ;;
  25231. + esac
  25232. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  25233. postinstall_cmds='chmod 555 $lib'
  25234. ;;
  25235. +interix3*)
  25236. + version_type=linux
  25237. + need_lib_prefix=no
  25238. + need_version=no
  25239. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25240. + soname_spec='${libname}${release}${shared_ext}$major'
  25241. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  25242. + shlibpath_var=LD_LIBRARY_PATH
  25243. + shlibpath_overrides_runpath=no
  25244. + hardcode_into_libs=yes
  25245. + ;;
  25246. +
  25247. irix5* | irix6* | nonstopux*)
  25248. case $host_os in
  25249. nonstopux*) version_type=nonstopux ;;
  25250. - *) version_type=irix ;;
  25251. + *)
  25252. + if test "$lt_cv_prog_gnu_ld" = yes; then
  25253. + version_type=linux
  25254. + else
  25255. + version_type=irix
  25256. + fi ;;
  25257. esac
  25258. need_lib_prefix=no
  25259. need_version=no
  25260. - soname_spec='${libname}${release}.so$major'
  25261. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  25262. + soname_spec='${libname}${release}${shared_ext}$major'
  25263. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  25264. case $host_os in
  25265. irix5* | nonstopux*)
  25266. libsuff= shlibsuff=
  25267. ;;
  25268. *)
  25269. case $LD in # libtool.m4 will add one of these switches to LD
  25270. - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  25271. - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  25272. - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  25273. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  25274. + libsuff= shlibsuff= libmagic=32-bit;;
  25275. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  25276. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  25277. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  25278. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  25279. *) libsuff= shlibsuff= libmagic=never-match;;
  25280. esac
  25281. ;;
  25282. @@ -6624,20 +18269,21 @@
  25283. shlibpath_overrides_runpath=no
  25284. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  25285. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  25286. + hardcode_into_libs=yes
  25287. ;;
  25288. # No shared lib support for Linux oldld, aout, or coff.
  25289. -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  25290. +linux*oldld* | linux*aout* | linux*coff*)
  25291. dynamic_linker=no
  25292. ;;
  25293. # This must be Linux ELF.
  25294. -linux-gnu*)
  25295. +linux* | k*bsd*-gnu)
  25296. version_type=linux
  25297. need_lib_prefix=no
  25298. need_version=no
  25299. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25300. - soname_spec='${libname}${release}.so$major'
  25301. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25302. + soname_spec='${libname}${release}${shared_ext}$major'
  25303. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  25304. shlibpath_var=LD_LIBRARY_PATH
  25305. shlibpath_overrides_runpath=no
  25306. @@ -6646,6 +18292,12 @@
  25307. # before this can be enabled.
  25308. hardcode_into_libs=yes
  25309. + # Append ld.so.conf contents to the search path
  25310. + if test -f /etc/ld.so.conf; then
  25311. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  25312. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  25313. + fi
  25314. +
  25315. # We used to test for /lib/ld.so.1 and disable shared libraries on
  25316. # powerpc, because MkLinux only supported shared libraries with the
  25317. # GNU dynamic linker. Since this was broken with cross compilers,
  25318. @@ -6655,17 +18307,29 @@
  25319. dynamic_linker='GNU/Linux ld.so'
  25320. ;;
  25321. +netbsdelf*-gnu)
  25322. + version_type=linux
  25323. + need_lib_prefix=no
  25324. + need_version=no
  25325. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25326. + soname_spec='${libname}${release}${shared_ext}$major'
  25327. + shlibpath_var=LD_LIBRARY_PATH
  25328. + shlibpath_overrides_runpath=no
  25329. + hardcode_into_libs=yes
  25330. + dynamic_linker='NetBSD ld.elf_so'
  25331. + ;;
  25332. +
  25333. netbsd*)
  25334. version_type=sunos
  25335. need_lib_prefix=no
  25336. need_version=no
  25337. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25338. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  25339. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25340. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25341. dynamic_linker='NetBSD (a.out) ld.so'
  25342. else
  25343. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  25344. - soname_spec='${libname}${release}.so$major'
  25345. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25346. + soname_spec='${libname}${release}${shared_ext}$major'
  25347. dynamic_linker='NetBSD ld.elf_so'
  25348. fi
  25349. shlibpath_var=LD_LIBRARY_PATH
  25350. @@ -6675,65 +18339,73 @@
  25351. newsos6)
  25352. version_type=linux
  25353. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25354. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25355. + shlibpath_var=LD_LIBRARY_PATH
  25356. + shlibpath_overrides_runpath=yes
  25357. + ;;
  25358. +
  25359. +nto-qnx*)
  25360. + version_type=linux
  25361. + need_lib_prefix=no
  25362. + need_version=no
  25363. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25364. + soname_spec='${libname}${release}${shared_ext}$major'
  25365. shlibpath_var=LD_LIBRARY_PATH
  25366. shlibpath_overrides_runpath=yes
  25367. ;;
  25368. openbsd*)
  25369. version_type=sunos
  25370. + sys_lib_dlsearch_path_spec="/usr/lib"
  25371. need_lib_prefix=no
  25372. - need_version=no
  25373. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  25374. + case $host_os in
  25375. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  25376. + *) need_version=no ;;
  25377. + esac
  25378. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25379. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25380. + shlibpath_var=LD_LIBRARY_PATH
  25381. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25382. - case "$host_os" in
  25383. - openbsd2.[89] | openbsd2.[89].*)
  25384. - shlibpath_overrides_runpath=no
  25385. - ;;
  25386. - *)
  25387. - shlibpath_overrides_runpath=yes
  25388. - ;;
  25389. - esac
  25390. + case $host_os in
  25391. + openbsd2.[89] | openbsd2.[89].*)
  25392. + shlibpath_overrides_runpath=no
  25393. + ;;
  25394. + *)
  25395. + shlibpath_overrides_runpath=yes
  25396. + ;;
  25397. + esac
  25398. else
  25399. shlibpath_overrides_runpath=yes
  25400. fi
  25401. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  25402. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25403. - shlibpath_var=LD_LIBRARY_PATH
  25404. ;;
  25405. os2*)
  25406. libname_spec='$name'
  25407. + shrext_cmds=".dll"
  25408. need_lib_prefix=no
  25409. - library_names_spec='$libname.dll $libname.a'
  25410. + library_names_spec='$libname${shared_ext} $libname.a'
  25411. dynamic_linker='OS/2 ld.exe'
  25412. shlibpath_var=LIBPATH
  25413. ;;
  25414. osf3* | osf4* | osf5*)
  25415. version_type=osf
  25416. - need_version=no
  25417. need_lib_prefix=no
  25418. - soname_spec='${libname}${release}.so$major'
  25419. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25420. + need_version=no
  25421. + soname_spec='${libname}${release}${shared_ext}$major'
  25422. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25423. shlibpath_var=LD_LIBRARY_PATH
  25424. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  25425. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  25426. - hardcode_into_libs=yes
  25427. - ;;
  25428. -
  25429. -sco3.2v5*)
  25430. - version_type=osf
  25431. - soname_spec='${libname}${release}.so$major'
  25432. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25433. - shlibpath_var=LD_LIBRARY_PATH
  25434. ;;
  25435. solaris*)
  25436. version_type=linux
  25437. need_lib_prefix=no
  25438. need_version=no
  25439. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25440. - soname_spec='${libname}${release}.so$major'
  25441. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25442. + soname_spec='${libname}${release}${shared_ext}$major'
  25443. shlibpath_var=LD_LIBRARY_PATH
  25444. shlibpath_overrides_runpath=yes
  25445. hardcode_into_libs=yes
  25446. @@ -6743,7 +18415,7 @@
  25447. sunos4*)
  25448. version_type=sunos
  25449. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  25450. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25451. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  25452. shlibpath_var=LD_LIBRARY_PATH
  25453. shlibpath_overrides_runpath=yes
  25454. @@ -6753,10 +18425,10 @@
  25455. need_version=yes
  25456. ;;
  25457. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  25458. +sysv4 | sysv4.3*)
  25459. version_type=linux
  25460. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25461. - soname_spec='${libname}${release}.so$major'
  25462. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25463. + soname_spec='${libname}${release}${shared_ext}$major'
  25464. shlibpath_var=LD_LIBRARY_PATH
  25465. case $host_vendor in
  25466. sni)
  25467. @@ -6777,77 +18449,87 @@
  25468. esac
  25469. ;;
  25470. -uts4*)
  25471. - version_type=linux
  25472. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25473. - soname_spec='${libname}${release}.so$major'
  25474. - shlibpath_var=LD_LIBRARY_PATH
  25475. +sysv4*MP*)
  25476. + if test -d /usr/nec ;then
  25477. + version_type=linux
  25478. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  25479. + soname_spec='$libname${shared_ext}.$major'
  25480. + shlibpath_var=LD_LIBRARY_PATH
  25481. + fi
  25482. ;;
  25483. -dgux*)
  25484. - version_type=linux
  25485. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  25486. + version_type=freebsd-elf
  25487. need_lib_prefix=no
  25488. need_version=no
  25489. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  25490. - soname_spec='${libname}${release}.so$major'
  25491. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25492. + soname_spec='${libname}${release}${shared_ext}$major'
  25493. shlibpath_var=LD_LIBRARY_PATH
  25494. + hardcode_into_libs=yes
  25495. + if test "$with_gnu_ld" = yes; then
  25496. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  25497. + shlibpath_overrides_runpath=no
  25498. + else
  25499. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  25500. + shlibpath_overrides_runpath=yes
  25501. + case $host_os in
  25502. + sco3.2v5*)
  25503. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  25504. + ;;
  25505. + esac
  25506. + fi
  25507. + sys_lib_dlsearch_path_spec='/usr/lib'
  25508. ;;
  25509. -sysv4*MP*)
  25510. - if test -d /usr/nec ;then
  25511. - version_type=linux
  25512. - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  25513. - soname_spec='$libname.so.$major'
  25514. - shlibpath_var=LD_LIBRARY_PATH
  25515. - fi
  25516. +uts4*)
  25517. + version_type=linux
  25518. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25519. + soname_spec='${libname}${release}${shared_ext}$major'
  25520. + shlibpath_var=LD_LIBRARY_PATH
  25521. ;;
  25522. *)
  25523. dynamic_linker=no
  25524. ;;
  25525. esac
  25526. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  25527. -echo "${ECHO_T}$dynamic_linker" >&6
  25528. +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  25529. +echo "${ECHO_T}$dynamic_linker" >&6; }
  25530. test "$dynamic_linker" = no && can_build_shared=no
  25531. -# Report the final consequences.
  25532. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  25533. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  25534. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  25535. -echo "${ECHO_T}$can_build_shared" >&6
  25536. -
  25537. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  25538. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  25539. -test "$can_build_shared" = "no" && enable_shared=no
  25540. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  25541. +if test "$GCC" = yes; then
  25542. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  25543. +fi
  25544. -# On AIX, shared libraries and static libraries use the same namespace, and
  25545. -# are all built from PIC.
  25546. -case "$host_os" in
  25547. -aix3*)
  25548. - test "$enable_shared" = yes && enable_static=no
  25549. - if test -n "$RANLIB"; then
  25550. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  25551. - postinstall_cmds='$RANLIB $lib'
  25552. - fi
  25553. - ;;
  25554. +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  25555. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  25556. +hardcode_action_GCJ=
  25557. +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  25558. + test -n "$runpath_var_GCJ" || \
  25559. + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  25560. -aix4*)
  25561. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  25562. - test "$enable_shared" = yes && enable_static=no
  25563. + # We can hardcode non-existant directories.
  25564. + if test "$hardcode_direct_GCJ" != no &&
  25565. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  25566. + # have to relink, otherwise we might link with an installed library
  25567. + # when we should be linking with a yet-to-be-installed one
  25568. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  25569. + test "$hardcode_minus_L_GCJ" != no; then
  25570. + # Linking always hardcodes the temporary library directory.
  25571. + hardcode_action_GCJ=relink
  25572. + else
  25573. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  25574. + hardcode_action_GCJ=immediate
  25575. fi
  25576. - ;;
  25577. -esac
  25578. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  25579. -echo "${ECHO_T}$enable_shared" >&6
  25580. -
  25581. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  25582. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  25583. -# Make sure either enable_shared or enable_static is yes.
  25584. -test "$enable_shared" = yes || enable_static=yes
  25585. -echo "$as_me:$LINENO: result: $enable_static" >&5
  25586. -echo "${ECHO_T}$enable_static" >&6
  25587. +else
  25588. + # We cannot hardcode anything, or else we can only hardcode existing
  25589. + # directories.
  25590. + hardcode_action_GCJ=unsupported
  25591. +fi
  25592. +{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  25593. +echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  25594. -if test "$hardcode_action" = relink; then
  25595. +if test "$hardcode_action_GCJ" = relink; then
  25596. # Fast installation is not supported
  25597. enable_fast_install=no
  25598. elif test "$shlibpath_overrides_runpath" = yes ||
  25599. @@ -6856,832 +18538,558 @@
  25600. enable_fast_install=needless
  25601. fi
  25602. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  25603. -if test "$GCC" = yes; then
  25604. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  25605. -fi
  25606. -if test "x$enable_dlopen" != xyes; then
  25607. - enable_dlopen=unknown
  25608. - enable_dlopen_self=unknown
  25609. - enable_dlopen_self_static=unknown
  25610. -else
  25611. - lt_cv_dlopen=no
  25612. - lt_cv_dlopen_libs=
  25613. +# The else clause should only fire when bootstrapping the
  25614. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  25615. +# with your package, and you will get complaints that there are
  25616. +# no rules to generate ltmain.sh.
  25617. +if test -f "$ltmain"; then
  25618. + # See if we are running on zsh, and set the options which allow our commands through
  25619. + # without removal of \ escapes.
  25620. + if test -n "${ZSH_VERSION+set}" ; then
  25621. + setopt NO_GLOB_SUBST
  25622. + fi
  25623. + # Now quote all the things that may contain metacharacters while being
  25624. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  25625. + # variables and quote the copies for generation of the libtool script.
  25626. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  25627. + SED SHELL STRIP \
  25628. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  25629. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  25630. + deplibs_check_method reload_flag reload_cmds need_locks \
  25631. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  25632. + lt_cv_sys_global_symbol_to_c_name_address \
  25633. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  25634. + old_postinstall_cmds old_postuninstall_cmds \
  25635. + compiler_GCJ \
  25636. + CC_GCJ \
  25637. + LD_GCJ \
  25638. + lt_prog_compiler_wl_GCJ \
  25639. + lt_prog_compiler_pic_GCJ \
  25640. + lt_prog_compiler_static_GCJ \
  25641. + lt_prog_compiler_no_builtin_flag_GCJ \
  25642. + export_dynamic_flag_spec_GCJ \
  25643. + thread_safe_flag_spec_GCJ \
  25644. + whole_archive_flag_spec_GCJ \
  25645. + enable_shared_with_static_runtimes_GCJ \
  25646. + old_archive_cmds_GCJ \
  25647. + old_archive_from_new_cmds_GCJ \
  25648. + predep_objects_GCJ \
  25649. + postdep_objects_GCJ \
  25650. + predeps_GCJ \
  25651. + postdeps_GCJ \
  25652. + compiler_lib_search_path_GCJ \
  25653. + archive_cmds_GCJ \
  25654. + archive_expsym_cmds_GCJ \
  25655. + postinstall_cmds_GCJ \
  25656. + postuninstall_cmds_GCJ \
  25657. + old_archive_from_expsyms_cmds_GCJ \
  25658. + allow_undefined_flag_GCJ \
  25659. + no_undefined_flag_GCJ \
  25660. + export_symbols_cmds_GCJ \
  25661. + hardcode_libdir_flag_spec_GCJ \
  25662. + hardcode_libdir_flag_spec_ld_GCJ \
  25663. + hardcode_libdir_separator_GCJ \
  25664. + hardcode_automatic_GCJ \
  25665. + module_cmds_GCJ \
  25666. + module_expsym_cmds_GCJ \
  25667. + lt_cv_prog_compiler_c_o_GCJ \
  25668. + exclude_expsyms_GCJ \
  25669. + include_expsyms_GCJ; do
  25670. +
  25671. + case $var in
  25672. + old_archive_cmds_GCJ | \
  25673. + old_archive_from_new_cmds_GCJ | \
  25674. + archive_cmds_GCJ | \
  25675. + archive_expsym_cmds_GCJ | \
  25676. + module_cmds_GCJ | \
  25677. + module_expsym_cmds_GCJ | \
  25678. + old_archive_from_expsyms_cmds_GCJ | \
  25679. + export_symbols_cmds_GCJ | \
  25680. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  25681. + postinstall_cmds | postuninstall_cmds | \
  25682. + old_postinstall_cmds | old_postuninstall_cmds | \
  25683. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  25684. + # Double-quote double-evaled strings.
  25685. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  25686. + ;;
  25687. + *)
  25688. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  25689. + ;;
  25690. + esac
  25691. + done
  25692. +
  25693. + case $lt_echo in
  25694. + *'\$0 --fallback-echo"')
  25695. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  25696. + ;;
  25697. + esac
  25698. +
  25699. +cfgfile="$ofile"
  25700. +
  25701. + cat <<__EOF__ >> "$cfgfile"
  25702. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  25703. +
  25704. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25705. +
  25706. +# Shell to use when invoking shell scripts.
  25707. +SHELL=$lt_SHELL
  25708. +
  25709. +# Whether or not to build shared libraries.
  25710. +build_libtool_libs=$enable_shared
  25711. +
  25712. +# Whether or not to build static libraries.
  25713. +build_old_libs=$enable_static
  25714. +
  25715. +# Whether or not to add -lc for building shared libraries.
  25716. +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  25717. +
  25718. +# Whether or not to disallow shared libs when runtime libs are static
  25719. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  25720. +
  25721. +# Whether or not to optimize for fast installation.
  25722. +fast_install=$enable_fast_install
  25723. +
  25724. +# The host system.
  25725. +host_alias=$host_alias
  25726. +host=$host
  25727. +host_os=$host_os
  25728. +
  25729. +# The build system.
  25730. +build_alias=$build_alias
  25731. +build=$build
  25732. +build_os=$build_os
  25733. +
  25734. +# An echo program that does not interpret backslashes.
  25735. +echo=$lt_echo
  25736. +
  25737. +# The archiver.
  25738. +AR=$lt_AR
  25739. +AR_FLAGS=$lt_AR_FLAGS
  25740. +
  25741. +# A C compiler.
  25742. +LTCC=$lt_LTCC
  25743. +
  25744. +# LTCC compiler flags.
  25745. +LTCFLAGS=$lt_LTCFLAGS
  25746. +
  25747. +# A language-specific compiler.
  25748. +CC=$lt_compiler_GCJ
  25749. +
  25750. +# Is the compiler the GNU C compiler?
  25751. +with_gcc=$GCC_GCJ
  25752. +
  25753. +# An ERE matcher.
  25754. +EGREP=$lt_EGREP
  25755. +
  25756. +# The linker used to build libraries.
  25757. +LD=$lt_LD_GCJ
  25758. +
  25759. +# Whether we need hard or soft links.
  25760. +LN_S=$lt_LN_S
  25761. +
  25762. +# A BSD-compatible nm program.
  25763. +NM=$lt_NM
  25764. +
  25765. +# A symbol stripping program
  25766. +STRIP=$lt_STRIP
  25767. +
  25768. +# Used to examine libraries when file_magic_cmd begins "file"
  25769. +MAGIC_CMD=$MAGIC_CMD
  25770. +
  25771. +# Used on cygwin: DLL creation program.
  25772. +DLLTOOL="$DLLTOOL"
  25773. +
  25774. +# Used on cygwin: object dumper.
  25775. +OBJDUMP="$OBJDUMP"
  25776. +
  25777. +# Used on cygwin: assembler.
  25778. +AS="$AS"
  25779. +
  25780. +# The name of the directory that contains temporary libtool files.
  25781. +objdir=$objdir
  25782. +
  25783. +# How to create reloadable object files.
  25784. +reload_flag=$lt_reload_flag
  25785. +reload_cmds=$lt_reload_cmds
  25786. +
  25787. +# How to pass a linker flag through the compiler.
  25788. +wl=$lt_lt_prog_compiler_wl_GCJ
  25789. +
  25790. +# Object file suffix (normally "o").
  25791. +objext="$ac_objext"
  25792. +
  25793. +# Old archive suffix (normally "a").
  25794. +libext="$libext"
  25795. +
  25796. +# Shared library suffix (normally ".so").
  25797. +shrext_cmds='$shrext_cmds'
  25798. - case $host_os in
  25799. - beos*)
  25800. - lt_cv_dlopen="load_add_on"
  25801. - lt_cv_dlopen_libs=
  25802. - lt_cv_dlopen_self=yes
  25803. - ;;
  25804. +# Executable file suffix (normally "").
  25805. +exeext="$exeext"
  25806. - cygwin* | mingw* | pw32*)
  25807. - lt_cv_dlopen="LoadLibrary"
  25808. - lt_cv_dlopen_libs=
  25809. - ;;
  25810. +# Additional compiler flags for building library objects.
  25811. +pic_flag=$lt_lt_prog_compiler_pic_GCJ
  25812. +pic_mode=$pic_mode
  25813. - *)
  25814. - echo "$as_me:$LINENO: checking for shl_load" >&5
  25815. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  25816. -if test "${ac_cv_func_shl_load+set}" = set; then
  25817. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25818. -else
  25819. - cat >conftest.$ac_ext <<_ACEOF
  25820. -/* confdefs.h. */
  25821. -_ACEOF
  25822. -cat confdefs.h >>conftest.$ac_ext
  25823. -cat >>conftest.$ac_ext <<_ACEOF
  25824. -/* end confdefs.h. */
  25825. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  25826. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25827. -#define shl_load innocuous_shl_load
  25828. +# What is the maximum length of a command?
  25829. +max_cmd_len=$lt_cv_sys_max_cmd_len
  25830. -/* System header to define __stub macros and hopefully few prototypes,
  25831. - which can conflict with char shl_load (); below.
  25832. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25833. - <limits.h> exists even on freestanding compilers. */
  25834. +# Does compiler simultaneously support -c and -o options?
  25835. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  25836. -#ifdef __STDC__
  25837. -# include <limits.h>
  25838. -#else
  25839. -# include <assert.h>
  25840. -#endif
  25841. +# Must we lock files when doing compilation?
  25842. +need_locks=$lt_need_locks
  25843. -#undef shl_load
  25844. +# Do we need the lib prefix for modules?
  25845. +need_lib_prefix=$need_lib_prefix
  25846. -/* Override any gcc2 internal prototype to avoid an error. */
  25847. -#ifdef __cplusplus
  25848. -extern "C"
  25849. -{
  25850. -#endif
  25851. -/* We use char because int might match the return type of a gcc2
  25852. - builtin and then its argument prototype would still apply. */
  25853. -char shl_load ();
  25854. -/* The GNU C library defines this for functions which it implements
  25855. - to always fail with ENOSYS. Some functions are actually named
  25856. - something starting with __ and the normal name is an alias. */
  25857. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  25858. -choke me
  25859. -#else
  25860. -char (*f) () = shl_load;
  25861. -#endif
  25862. -#ifdef __cplusplus
  25863. -}
  25864. -#endif
  25865. +# Do we need a version for libraries?
  25866. +need_version=$need_version
  25867. -int
  25868. -main ()
  25869. -{
  25870. -return f != shl_load;
  25871. - ;
  25872. - return 0;
  25873. -}
  25874. -_ACEOF
  25875. -rm -f conftest.$ac_objext conftest$ac_exeext
  25876. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25877. - (eval $ac_link) 2>conftest.er1
  25878. - ac_status=$?
  25879. - grep -v '^ *+' conftest.er1 >conftest.err
  25880. - rm -f conftest.er1
  25881. - cat conftest.err >&5
  25882. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25883. - (exit $ac_status); } &&
  25884. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25885. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25886. - (eval $ac_try) 2>&5
  25887. - ac_status=$?
  25888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25889. - (exit $ac_status); }; } &&
  25890. - { ac_try='test -s conftest$ac_exeext'
  25891. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25892. - (eval $ac_try) 2>&5
  25893. - ac_status=$?
  25894. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25895. - (exit $ac_status); }; }; then
  25896. - ac_cv_func_shl_load=yes
  25897. -else
  25898. - echo "$as_me: failed program was:" >&5
  25899. -sed 's/^/| /' conftest.$ac_ext >&5
  25900. +# Whether dlopen is supported.
  25901. +dlopen_support=$enable_dlopen
  25902. -ac_cv_func_shl_load=no
  25903. -fi
  25904. -rm -f conftest.err conftest.$ac_objext \
  25905. - conftest$ac_exeext conftest.$ac_ext
  25906. -fi
  25907. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  25908. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  25909. -if test $ac_cv_func_shl_load = yes; then
  25910. - lt_cv_dlopen="shl_load"
  25911. -else
  25912. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  25913. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  25914. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  25915. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25916. -else
  25917. - ac_check_lib_save_LIBS=$LIBS
  25918. -LIBS="-ldld $LIBS"
  25919. -cat >conftest.$ac_ext <<_ACEOF
  25920. -/* confdefs.h. */
  25921. -_ACEOF
  25922. -cat confdefs.h >>conftest.$ac_ext
  25923. -cat >>conftest.$ac_ext <<_ACEOF
  25924. -/* end confdefs.h. */
  25925. +# Whether dlopen of programs is supported.
  25926. +dlopen_self=$enable_dlopen_self
  25927. -/* Override any gcc2 internal prototype to avoid an error. */
  25928. -#ifdef __cplusplus
  25929. -extern "C"
  25930. -#endif
  25931. -/* We use char because int might match the return type of a gcc2
  25932. - builtin and then its argument prototype would still apply. */
  25933. -char shl_load ();
  25934. -int
  25935. -main ()
  25936. -{
  25937. -shl_load ();
  25938. - ;
  25939. - return 0;
  25940. -}
  25941. -_ACEOF
  25942. -rm -f conftest.$ac_objext conftest$ac_exeext
  25943. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25944. - (eval $ac_link) 2>conftest.er1
  25945. - ac_status=$?
  25946. - grep -v '^ *+' conftest.er1 >conftest.err
  25947. - rm -f conftest.er1
  25948. - cat conftest.err >&5
  25949. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25950. - (exit $ac_status); } &&
  25951. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25952. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25953. - (eval $ac_try) 2>&5
  25954. - ac_status=$?
  25955. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25956. - (exit $ac_status); }; } &&
  25957. - { ac_try='test -s conftest$ac_exeext'
  25958. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25959. - (eval $ac_try) 2>&5
  25960. - ac_status=$?
  25961. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25962. - (exit $ac_status); }; }; then
  25963. - ac_cv_lib_dld_shl_load=yes
  25964. -else
  25965. - echo "$as_me: failed program was:" >&5
  25966. -sed 's/^/| /' conftest.$ac_ext >&5
  25967. +# Whether dlopen of statically linked programs is supported.
  25968. +dlopen_self_static=$enable_dlopen_self_static
  25969. -ac_cv_lib_dld_shl_load=no
  25970. -fi
  25971. -rm -f conftest.err conftest.$ac_objext \
  25972. - conftest$ac_exeext conftest.$ac_ext
  25973. -LIBS=$ac_check_lib_save_LIBS
  25974. -fi
  25975. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  25976. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  25977. -if test $ac_cv_lib_dld_shl_load = yes; then
  25978. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  25979. -else
  25980. - echo "$as_me:$LINENO: checking for dlopen" >&5
  25981. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  25982. -if test "${ac_cv_func_dlopen+set}" = set; then
  25983. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25984. -else
  25985. - cat >conftest.$ac_ext <<_ACEOF
  25986. -/* confdefs.h. */
  25987. -_ACEOF
  25988. -cat confdefs.h >>conftest.$ac_ext
  25989. -cat >>conftest.$ac_ext <<_ACEOF
  25990. -/* end confdefs.h. */
  25991. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  25992. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25993. -#define dlopen innocuous_dlopen
  25994. +# Compiler flag to prevent dynamic linking.
  25995. +link_static_flag=$lt_lt_prog_compiler_static_GCJ
  25996. -/* System header to define __stub macros and hopefully few prototypes,
  25997. - which can conflict with char dlopen (); below.
  25998. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25999. - <limits.h> exists even on freestanding compilers. */
  26000. +# Compiler flag to turn off builtin functions.
  26001. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  26002. -#ifdef __STDC__
  26003. -# include <limits.h>
  26004. -#else
  26005. -# include <assert.h>
  26006. -#endif
  26007. +# Compiler flag to allow reflexive dlopens.
  26008. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  26009. -#undef dlopen
  26010. +# Compiler flag to generate shared objects directly from archives.
  26011. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  26012. -/* Override any gcc2 internal prototype to avoid an error. */
  26013. -#ifdef __cplusplus
  26014. -extern "C"
  26015. -{
  26016. -#endif
  26017. -/* We use char because int might match the return type of a gcc2
  26018. - builtin and then its argument prototype would still apply. */
  26019. -char dlopen ();
  26020. -/* The GNU C library defines this for functions which it implements
  26021. - to always fail with ENOSYS. Some functions are actually named
  26022. - something starting with __ and the normal name is an alias. */
  26023. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  26024. -choke me
  26025. -#else
  26026. -char (*f) () = dlopen;
  26027. -#endif
  26028. -#ifdef __cplusplus
  26029. -}
  26030. -#endif
  26031. +# Compiler flag to generate thread-safe objects.
  26032. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  26033. -int
  26034. -main ()
  26035. -{
  26036. -return f != dlopen;
  26037. - ;
  26038. - return 0;
  26039. -}
  26040. -_ACEOF
  26041. -rm -f conftest.$ac_objext conftest$ac_exeext
  26042. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26043. - (eval $ac_link) 2>conftest.er1
  26044. - ac_status=$?
  26045. - grep -v '^ *+' conftest.er1 >conftest.err
  26046. - rm -f conftest.er1
  26047. - cat conftest.err >&5
  26048. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26049. - (exit $ac_status); } &&
  26050. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26051. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26052. - (eval $ac_try) 2>&5
  26053. - ac_status=$?
  26054. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26055. - (exit $ac_status); }; } &&
  26056. - { ac_try='test -s conftest$ac_exeext'
  26057. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26058. - (eval $ac_try) 2>&5
  26059. - ac_status=$?
  26060. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26061. - (exit $ac_status); }; }; then
  26062. - ac_cv_func_dlopen=yes
  26063. -else
  26064. - echo "$as_me: failed program was:" >&5
  26065. -sed 's/^/| /' conftest.$ac_ext >&5
  26066. +# Library versioning type.
  26067. +version_type=$version_type
  26068. -ac_cv_func_dlopen=no
  26069. -fi
  26070. -rm -f conftest.err conftest.$ac_objext \
  26071. - conftest$ac_exeext conftest.$ac_ext
  26072. -fi
  26073. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  26074. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  26075. -if test $ac_cv_func_dlopen = yes; then
  26076. - lt_cv_dlopen="dlopen"
  26077. -else
  26078. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  26079. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  26080. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  26081. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26082. -else
  26083. - ac_check_lib_save_LIBS=$LIBS
  26084. -LIBS="-ldl $LIBS"
  26085. -cat >conftest.$ac_ext <<_ACEOF
  26086. -/* confdefs.h. */
  26087. -_ACEOF
  26088. -cat confdefs.h >>conftest.$ac_ext
  26089. -cat >>conftest.$ac_ext <<_ACEOF
  26090. -/* end confdefs.h. */
  26091. +# Format of library name prefix.
  26092. +libname_spec=$lt_libname_spec
  26093. -/* Override any gcc2 internal prototype to avoid an error. */
  26094. -#ifdef __cplusplus
  26095. -extern "C"
  26096. -#endif
  26097. -/* We use char because int might match the return type of a gcc2
  26098. - builtin and then its argument prototype would still apply. */
  26099. -char dlopen ();
  26100. -int
  26101. -main ()
  26102. -{
  26103. -dlopen ();
  26104. - ;
  26105. - return 0;
  26106. -}
  26107. -_ACEOF
  26108. -rm -f conftest.$ac_objext conftest$ac_exeext
  26109. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26110. - (eval $ac_link) 2>conftest.er1
  26111. - ac_status=$?
  26112. - grep -v '^ *+' conftest.er1 >conftest.err
  26113. - rm -f conftest.er1
  26114. - cat conftest.err >&5
  26115. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26116. - (exit $ac_status); } &&
  26117. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26118. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26119. - (eval $ac_try) 2>&5
  26120. - ac_status=$?
  26121. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26122. - (exit $ac_status); }; } &&
  26123. - { ac_try='test -s conftest$ac_exeext'
  26124. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26125. - (eval $ac_try) 2>&5
  26126. - ac_status=$?
  26127. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26128. - (exit $ac_status); }; }; then
  26129. - ac_cv_lib_dl_dlopen=yes
  26130. -else
  26131. - echo "$as_me: failed program was:" >&5
  26132. -sed 's/^/| /' conftest.$ac_ext >&5
  26133. +# List of archive names. First name is the real one, the rest are links.
  26134. +# The last name is the one that the linker finds with -lNAME.
  26135. +library_names_spec=$lt_library_names_spec
  26136. +
  26137. +# The coded name of the library, if different from the real name.
  26138. +soname_spec=$lt_soname_spec
  26139. +
  26140. +# Commands used to build and install an old-style archive.
  26141. +RANLIB=$lt_RANLIB
  26142. +old_archive_cmds=$lt_old_archive_cmds_GCJ
  26143. +old_postinstall_cmds=$lt_old_postinstall_cmds
  26144. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26145. -ac_cv_lib_dl_dlopen=no
  26146. -fi
  26147. -rm -f conftest.err conftest.$ac_objext \
  26148. - conftest$ac_exeext conftest.$ac_ext
  26149. -LIBS=$ac_check_lib_save_LIBS
  26150. -fi
  26151. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  26152. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  26153. -if test $ac_cv_lib_dl_dlopen = yes; then
  26154. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  26155. -else
  26156. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  26157. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  26158. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  26159. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26160. -else
  26161. - ac_check_lib_save_LIBS=$LIBS
  26162. -LIBS="-lsvld $LIBS"
  26163. -cat >conftest.$ac_ext <<_ACEOF
  26164. -/* confdefs.h. */
  26165. -_ACEOF
  26166. -cat confdefs.h >>conftest.$ac_ext
  26167. -cat >>conftest.$ac_ext <<_ACEOF
  26168. -/* end confdefs.h. */
  26169. +# Create an old-style archive from a shared archive.
  26170. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  26171. -/* Override any gcc2 internal prototype to avoid an error. */
  26172. -#ifdef __cplusplus
  26173. -extern "C"
  26174. -#endif
  26175. -/* We use char because int might match the return type of a gcc2
  26176. - builtin and then its argument prototype would still apply. */
  26177. -char dlopen ();
  26178. -int
  26179. -main ()
  26180. -{
  26181. -dlopen ();
  26182. - ;
  26183. - return 0;
  26184. -}
  26185. -_ACEOF
  26186. -rm -f conftest.$ac_objext conftest$ac_exeext
  26187. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26188. - (eval $ac_link) 2>conftest.er1
  26189. - ac_status=$?
  26190. - grep -v '^ *+' conftest.er1 >conftest.err
  26191. - rm -f conftest.er1
  26192. - cat conftest.err >&5
  26193. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26194. - (exit $ac_status); } &&
  26195. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26196. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26197. - (eval $ac_try) 2>&5
  26198. - ac_status=$?
  26199. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26200. - (exit $ac_status); }; } &&
  26201. - { ac_try='test -s conftest$ac_exeext'
  26202. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26203. - (eval $ac_try) 2>&5
  26204. - ac_status=$?
  26205. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26206. - (exit $ac_status); }; }; then
  26207. - ac_cv_lib_svld_dlopen=yes
  26208. -else
  26209. - echo "$as_me: failed program was:" >&5
  26210. -sed 's/^/| /' conftest.$ac_ext >&5
  26211. +# Create a temporary old-style archive to link instead of a shared archive.
  26212. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  26213. -ac_cv_lib_svld_dlopen=no
  26214. -fi
  26215. -rm -f conftest.err conftest.$ac_objext \
  26216. - conftest$ac_exeext conftest.$ac_ext
  26217. -LIBS=$ac_check_lib_save_LIBS
  26218. -fi
  26219. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  26220. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  26221. -if test $ac_cv_lib_svld_dlopen = yes; then
  26222. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  26223. -else
  26224. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  26225. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  26226. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  26227. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26228. -else
  26229. - ac_check_lib_save_LIBS=$LIBS
  26230. -LIBS="-ldld $LIBS"
  26231. -cat >conftest.$ac_ext <<_ACEOF
  26232. -/* confdefs.h. */
  26233. -_ACEOF
  26234. -cat confdefs.h >>conftest.$ac_ext
  26235. -cat >>conftest.$ac_ext <<_ACEOF
  26236. -/* end confdefs.h. */
  26237. +# Commands used to build and install a shared archive.
  26238. +archive_cmds=$lt_archive_cmds_GCJ
  26239. +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  26240. +postinstall_cmds=$lt_postinstall_cmds
  26241. +postuninstall_cmds=$lt_postuninstall_cmds
  26242. -/* Override any gcc2 internal prototype to avoid an error. */
  26243. -#ifdef __cplusplus
  26244. -extern "C"
  26245. -#endif
  26246. -/* We use char because int might match the return type of a gcc2
  26247. - builtin and then its argument prototype would still apply. */
  26248. -char dld_link ();
  26249. -int
  26250. -main ()
  26251. -{
  26252. -dld_link ();
  26253. - ;
  26254. - return 0;
  26255. -}
  26256. -_ACEOF
  26257. -rm -f conftest.$ac_objext conftest$ac_exeext
  26258. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26259. - (eval $ac_link) 2>conftest.er1
  26260. - ac_status=$?
  26261. - grep -v '^ *+' conftest.er1 >conftest.err
  26262. - rm -f conftest.er1
  26263. - cat conftest.err >&5
  26264. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26265. - (exit $ac_status); } &&
  26266. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26267. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26268. - (eval $ac_try) 2>&5
  26269. - ac_status=$?
  26270. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26271. - (exit $ac_status); }; } &&
  26272. - { ac_try='test -s conftest$ac_exeext'
  26273. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26274. - (eval $ac_try) 2>&5
  26275. - ac_status=$?
  26276. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26277. - (exit $ac_status); }; }; then
  26278. - ac_cv_lib_dld_dld_link=yes
  26279. -else
  26280. - echo "$as_me: failed program was:" >&5
  26281. -sed 's/^/| /' conftest.$ac_ext >&5
  26282. +# Commands used to build a loadable module (assumed same as above if empty)
  26283. +module_cmds=$lt_module_cmds_GCJ
  26284. +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  26285. -ac_cv_lib_dld_dld_link=no
  26286. -fi
  26287. -rm -f conftest.err conftest.$ac_objext \
  26288. - conftest$ac_exeext conftest.$ac_ext
  26289. -LIBS=$ac_check_lib_save_LIBS
  26290. -fi
  26291. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  26292. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  26293. -if test $ac_cv_lib_dld_dld_link = yes; then
  26294. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  26295. -fi
  26296. +# Commands to strip libraries.
  26297. +old_striplib=$lt_old_striplib
  26298. +striplib=$lt_striplib
  26299. +# Dependencies to place before the objects being linked to create a
  26300. +# shared library.
  26301. +predep_objects=$lt_predep_objects_GCJ
  26302. +
  26303. +# Dependencies to place after the objects being linked to create a
  26304. +# shared library.
  26305. +postdep_objects=$lt_postdep_objects_GCJ
  26306. +
  26307. +# Dependencies to place before the objects being linked to create a
  26308. +# shared library.
  26309. +predeps=$lt_predeps_GCJ
  26310. +
  26311. +# Dependencies to place after the objects being linked to create a
  26312. +# shared library.
  26313. +postdeps=$lt_postdeps_GCJ
  26314. +
  26315. +# The library search path used internally by the compiler when linking
  26316. +# a shared library.
  26317. +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  26318. -fi
  26319. +# Method to check whether dependent libraries are shared objects.
  26320. +deplibs_check_method=$lt_deplibs_check_method
  26321. +# Command to use when deplibs_check_method == file_magic.
  26322. +file_magic_cmd=$lt_file_magic_cmd
  26323. -fi
  26324. +# Flag that allows shared libraries with undefined symbols to be built.
  26325. +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  26326. +# Flag that forces no undefined symbols.
  26327. +no_undefined_flag=$lt_no_undefined_flag_GCJ
  26328. -fi
  26329. +# Commands used to finish a libtool library installation in a directory.
  26330. +finish_cmds=$lt_finish_cmds
  26331. +# Same as above, but a single script fragment to be evaled but not shown.
  26332. +finish_eval=$lt_finish_eval
  26333. -fi
  26334. +# Take the output of nm and produce a listing of raw symbols and C names.
  26335. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26336. +# Transform the output of nm in a proper C declaration
  26337. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26338. -fi
  26339. +# Transform the output of nm in a C name address pair
  26340. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26341. - ;;
  26342. - esac
  26343. +# This is the shared library runtime path variable.
  26344. +runpath_var=$runpath_var
  26345. - if test "x$lt_cv_dlopen" != xno; then
  26346. - enable_dlopen=yes
  26347. - else
  26348. - enable_dlopen=no
  26349. - fi
  26350. +# This is the shared library path variable.
  26351. +shlibpath_var=$shlibpath_var
  26352. - case $lt_cv_dlopen in
  26353. - dlopen)
  26354. - save_CPPFLAGS="$CPPFLAGS"
  26355. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  26356. +# Is shlibpath searched before the hard-coded library search path?
  26357. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26358. - save_LDFLAGS="$LDFLAGS"
  26359. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  26360. +# How to hardcode a shared library path into an executable.
  26361. +hardcode_action=$hardcode_action_GCJ
  26362. - save_LIBS="$LIBS"
  26363. - LIBS="$lt_cv_dlopen_libs $LIBS"
  26364. +# Whether we should hardcode library paths into libraries.
  26365. +hardcode_into_libs=$hardcode_into_libs
  26366. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  26367. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  26368. -if test "${lt_cv_dlopen_self+set}" = set; then
  26369. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26370. -else
  26371. - if test "$cross_compiling" = yes; then :
  26372. - lt_cv_dlopen_self=cross
  26373. -else
  26374. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  26375. - lt_status=$lt_dlunknown
  26376. - cat > conftest.$ac_ext <<EOF
  26377. -#line 7380 "configure"
  26378. -#include "confdefs.h"
  26379. +# Flag to hardcode \$libdir into a binary during linking.
  26380. +# This must work even if \$libdir does not exist.
  26381. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  26382. -#if HAVE_DLFCN_H
  26383. -#include <dlfcn.h>
  26384. -#endif
  26385. +# If ld is used when linking, flag to hardcode \$libdir into
  26386. +# a binary during linking. This must work even if \$libdir does
  26387. +# not exist.
  26388. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  26389. -#include <stdio.h>
  26390. +# Whether we need a single -rpath flag with a separated argument.
  26391. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  26392. -#ifdef RTLD_GLOBAL
  26393. -# define LT_DLGLOBAL RTLD_GLOBAL
  26394. -#else
  26395. -# ifdef DL_GLOBAL
  26396. -# define LT_DLGLOBAL DL_GLOBAL
  26397. -# else
  26398. -# define LT_DLGLOBAL 0
  26399. -# endif
  26400. -#endif
  26401. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26402. +# resulting binary.
  26403. +hardcode_direct=$hardcode_direct_GCJ
  26404. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  26405. - find out it does not work in some platform. */
  26406. -#ifndef LT_DLLAZY_OR_NOW
  26407. -# ifdef RTLD_LAZY
  26408. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  26409. -# else
  26410. -# ifdef DL_LAZY
  26411. -# define LT_DLLAZY_OR_NOW DL_LAZY
  26412. -# else
  26413. -# ifdef RTLD_NOW
  26414. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  26415. -# else
  26416. -# ifdef DL_NOW
  26417. -# define LT_DLLAZY_OR_NOW DL_NOW
  26418. -# else
  26419. -# define LT_DLLAZY_OR_NOW 0
  26420. -# endif
  26421. -# endif
  26422. -# endif
  26423. -# endif
  26424. -#endif
  26425. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26426. +# resulting binary.
  26427. +hardcode_minus_L=$hardcode_minus_L_GCJ
  26428. -#ifdef __cplusplus
  26429. -extern "C" void exit (int);
  26430. -#endif
  26431. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26432. +# the resulting binary.
  26433. +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  26434. -void fnord() { int i=42;}
  26435. -int main ()
  26436. -{
  26437. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  26438. - int status = $lt_dlunknown;
  26439. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  26440. +# and all subsequent libraries and executables linked against it.
  26441. +hardcode_automatic=$hardcode_automatic_GCJ
  26442. - if (self)
  26443. - {
  26444. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  26445. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  26446. - /* dlclose (self); */
  26447. - }
  26448. +# Variables whose values should be saved in libtool wrapper scripts and
  26449. +# restored at relink time.
  26450. +variables_saved_for_relink="$variables_saved_for_relink"
  26451. - exit (status);
  26452. -}
  26453. -EOF
  26454. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26455. - (eval $ac_link) 2>&5
  26456. - ac_status=$?
  26457. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26458. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  26459. - (./conftest; exit; ) 2>/dev/null
  26460. - lt_status=$?
  26461. - case x$lt_status in
  26462. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  26463. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  26464. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  26465. - esac
  26466. - else :
  26467. - # compilation failed
  26468. - lt_cv_dlopen_self=no
  26469. - fi
  26470. -fi
  26471. -rm -fr conftest*
  26472. +# Whether libtool must link a program against all its dependency libraries.
  26473. +link_all_deplibs=$link_all_deplibs_GCJ
  26474. +
  26475. +# Compile-time system search path for libraries
  26476. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26477. +
  26478. +# Run-time system search path for libraries
  26479. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26480. +
  26481. +# Fix the shell variable \$srcfile for the compiler.
  26482. +fix_srcfile_path="$fix_srcfile_path_GCJ"
  26483. +
  26484. +# Set to yes if exported symbols are required.
  26485. +always_export_symbols=$always_export_symbols_GCJ
  26486. +
  26487. +# The commands to list exported symbols.
  26488. +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  26489. +
  26490. +# The commands to extract the exported symbol list from a shared archive.
  26491. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26492. +
  26493. +# Symbols that should not be listed in the preloaded symbols.
  26494. +exclude_expsyms=$lt_exclude_expsyms_GCJ
  26495. +
  26496. +# Symbols that must always be exported.
  26497. +include_expsyms=$lt_include_expsyms_GCJ
  26498. +# ### END LIBTOOL TAG CONFIG: $tagname
  26499. +
  26500. +__EOF__
  26501. -fi
  26502. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  26503. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  26504. - if test "x$lt_cv_dlopen_self" = xyes; then
  26505. - LDFLAGS="$LDFLAGS $link_static_flag"
  26506. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  26507. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  26508. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  26509. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26510. -else
  26511. - if test "$cross_compiling" = yes; then :
  26512. - lt_cv_dlopen_self_static=cross
  26513. else
  26514. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  26515. - lt_status=$lt_dlunknown
  26516. - cat > conftest.$ac_ext <<EOF
  26517. -#line 7478 "configure"
  26518. -#include "confdefs.h"
  26519. + # If there is no Makefile yet, we rely on a make rule to execute
  26520. + # `config.status --recheck' to rerun these tests and create the
  26521. + # libtool script then.
  26522. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  26523. + if test -f "$ltmain_in"; then
  26524. + test -f Makefile && make "$ltmain"
  26525. + fi
  26526. +fi
  26527. -#if HAVE_DLFCN_H
  26528. -#include <dlfcn.h>
  26529. -#endif
  26530. -#include <stdio.h>
  26531. +ac_ext=c
  26532. +ac_cpp='$CPP $CPPFLAGS'
  26533. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26534. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26535. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26536. -#ifdef RTLD_GLOBAL
  26537. -# define LT_DLGLOBAL RTLD_GLOBAL
  26538. -#else
  26539. -# ifdef DL_GLOBAL
  26540. -# define LT_DLGLOBAL DL_GLOBAL
  26541. -# else
  26542. -# define LT_DLGLOBAL 0
  26543. -# endif
  26544. -#endif
  26545. +CC="$lt_save_CC"
  26546. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  26547. - find out it does not work in some platform. */
  26548. -#ifndef LT_DLLAZY_OR_NOW
  26549. -# ifdef RTLD_LAZY
  26550. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  26551. -# else
  26552. -# ifdef DL_LAZY
  26553. -# define LT_DLLAZY_OR_NOW DL_LAZY
  26554. -# else
  26555. -# ifdef RTLD_NOW
  26556. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  26557. -# else
  26558. -# ifdef DL_NOW
  26559. -# define LT_DLLAZY_OR_NOW DL_NOW
  26560. -# else
  26561. -# define LT_DLLAZY_OR_NOW 0
  26562. -# endif
  26563. -# endif
  26564. -# endif
  26565. -# endif
  26566. -#endif
  26567. + else
  26568. + tagname=""
  26569. + fi
  26570. + ;;
  26571. -#ifdef __cplusplus
  26572. -extern "C" void exit (int);
  26573. -#endif
  26574. + RC)
  26575. -void fnord() { int i=42;}
  26576. -int main ()
  26577. -{
  26578. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  26579. - int status = $lt_dlunknown;
  26580. - if (self)
  26581. - {
  26582. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  26583. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  26584. - /* dlclose (self); */
  26585. - }
  26586. +# Source file extension for RC test sources.
  26587. +ac_ext=rc
  26588. - exit (status);
  26589. -}
  26590. -EOF
  26591. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26592. - (eval $ac_link) 2>&5
  26593. - ac_status=$?
  26594. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26595. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  26596. - (./conftest; exit; ) 2>/dev/null
  26597. - lt_status=$?
  26598. - case x$lt_status in
  26599. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  26600. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  26601. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  26602. - esac
  26603. - else :
  26604. - # compilation failed
  26605. - lt_cv_dlopen_self_static=no
  26606. - fi
  26607. -fi
  26608. -rm -fr conftest*
  26609. +# Object file extension for compiled RC test sources.
  26610. +objext=o
  26611. +objext_RC=$objext
  26612. +# Code to be used in simple compile tests
  26613. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  26614. -fi
  26615. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  26616. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  26617. - fi
  26618. +# Code to be used in simple link tests
  26619. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  26620. - CPPFLAGS="$save_CPPFLAGS"
  26621. - LDFLAGS="$save_LDFLAGS"
  26622. - LIBS="$save_LIBS"
  26623. - ;;
  26624. - esac
  26625. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  26626. - case $lt_cv_dlopen_self in
  26627. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  26628. - *) enable_dlopen_self=unknown ;;
  26629. - esac
  26630. +# If no C compiler was specified, use CC.
  26631. +LTCC=${LTCC-"$CC"}
  26632. - case $lt_cv_dlopen_self_static in
  26633. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  26634. - *) enable_dlopen_self_static=unknown ;;
  26635. - esac
  26636. -fi
  26637. +# If no C compiler flags were specified, use CFLAGS.
  26638. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26639. +# Allow CC to be a program name with arguments.
  26640. +compiler=$CC
  26641. -if test "$enable_shared" = yes && test "$GCC" = yes; then
  26642. - case $archive_cmds in
  26643. - *'~'*)
  26644. - # FIXME: we may have to deal with multi-command sequences.
  26645. - ;;
  26646. - '$CC '*)
  26647. - # Test whether the compiler implicitly links with -lc since on some
  26648. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  26649. - # to ld, don't add -lc before -lgcc.
  26650. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  26651. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  26652. - if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  26653. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26654. -else
  26655. - $rm conftest*
  26656. - echo 'static int dummy;' > conftest.$ac_ext
  26657. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26658. - (eval $ac_compile) 2>&5
  26659. - ac_status=$?
  26660. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26661. - (exit $ac_status); }; then
  26662. - soname=conftest
  26663. - lib=conftest
  26664. - libobjs=conftest.$ac_objext
  26665. - deplibs=
  26666. - wl=$lt_cv_prog_cc_wl
  26667. - compiler_flags=-v
  26668. - linker_flags=-v
  26669. - verstring=
  26670. - output_objdir=.
  26671. - libname=conftest
  26672. - save_allow_undefined_flag=$allow_undefined_flag
  26673. - allow_undefined_flag=
  26674. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  26675. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  26676. - ac_status=$?
  26677. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26678. - (exit $ac_status); }
  26679. - then
  26680. - lt_cv_archive_cmds_need_lc=no
  26681. - else
  26682. - lt_cv_archive_cmds_need_lc=yes
  26683. - fi
  26684. - allow_undefined_flag=$save_allow_undefined_flag
  26685. - else
  26686. - cat conftest.err 1>&5
  26687. - fi
  26688. -fi
  26689. +# save warnings/boilerplate of simple test code
  26690. +ac_outfile=conftest.$ac_objext
  26691. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  26692. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26693. +_lt_compiler_boilerplate=`cat conftest.err`
  26694. +$rm conftest*
  26695. +
  26696. +ac_outfile=conftest.$ac_objext
  26697. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  26698. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26699. +_lt_linker_boilerplate=`cat conftest.err`
  26700. +$rm conftest*
  26701. - echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  26702. -echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  26703. - ;;
  26704. +
  26705. +# Allow CC to be a program name with arguments.
  26706. +lt_save_CC="$CC"
  26707. +CC=${RC-"windres"}
  26708. +compiler=$CC
  26709. +compiler_RC=$CC
  26710. +for cc_temp in $compiler""; do
  26711. + case $cc_temp in
  26712. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26713. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26714. + \-*) ;;
  26715. + *) break;;
  26716. esac
  26717. -fi
  26718. -need_lc=${lt_cv_archive_cmds_need_lc-yes}
  26719. +done
  26720. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26721. -# The second clause should only fire when bootstrapping the
  26722. +lt_cv_prog_compiler_c_o_RC=yes
  26723. +
  26724. +# The else clause should only fire when bootstrapping the
  26725. # libtool distribution, otherwise you forgot to ship ltmain.sh
  26726. # with your package, and you will get complaints that there are
  26727. # no rules to generate ltmain.sh.
  26728. if test -f "$ltmain"; then
  26729. - :
  26730. -else
  26731. - # If there is no Makefile yet, we rely on a make rule to execute
  26732. - # `config.status --recheck' to rerun these tests and create the
  26733. - # libtool script then.
  26734. - test -f Makefile && make "$ltmain"
  26735. -fi
  26736. -
  26737. -if test -f "$ltmain"; then
  26738. - trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  26739. - $rm -f "${ofile}T"
  26740. -
  26741. - echo creating $ofile
  26742. -
  26743. + # See if we are running on zsh, and set the options which allow our commands through
  26744. + # without removal of \ escapes.
  26745. + if test -n "${ZSH_VERSION+set}" ; then
  26746. + setopt NO_GLOB_SUBST
  26747. + fi
  26748. # Now quote all the things that may contain metacharacters while being
  26749. # careful not to overquote the AC_SUBSTed values. We take copies of the
  26750. # variables and quote the copies for generation of the libtool script.
  26751. - for var in echo old_CC old_CFLAGS SED \
  26752. - AR AR_FLAGS CC LD LN_S NM SHELL \
  26753. - reload_flag reload_cmds wl \
  26754. - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  26755. - thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  26756. - library_names_spec soname_spec \
  26757. - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  26758. - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  26759. - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  26760. - old_striplib striplib file_magic_cmd export_symbols_cmds \
  26761. - deplibs_check_method allow_undefined_flag no_undefined_flag \
  26762. - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  26763. - global_symbol_to_c_name_address \
  26764. - hardcode_libdir_flag_spec hardcode_libdir_separator \
  26765. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  26766. + SED SHELL STRIP \
  26767. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  26768. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  26769. + deplibs_check_method reload_flag reload_cmds need_locks \
  26770. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  26771. + lt_cv_sys_global_symbol_to_c_name_address \
  26772. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  26773. - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  26774. + old_postinstall_cmds old_postuninstall_cmds \
  26775. + compiler_RC \
  26776. + CC_RC \
  26777. + LD_RC \
  26778. + lt_prog_compiler_wl_RC \
  26779. + lt_prog_compiler_pic_RC \
  26780. + lt_prog_compiler_static_RC \
  26781. + lt_prog_compiler_no_builtin_flag_RC \
  26782. + export_dynamic_flag_spec_RC \
  26783. + thread_safe_flag_spec_RC \
  26784. + whole_archive_flag_spec_RC \
  26785. + enable_shared_with_static_runtimes_RC \
  26786. + old_archive_cmds_RC \
  26787. + old_archive_from_new_cmds_RC \
  26788. + predep_objects_RC \
  26789. + postdep_objects_RC \
  26790. + predeps_RC \
  26791. + postdeps_RC \
  26792. + compiler_lib_search_path_RC \
  26793. + archive_cmds_RC \
  26794. + archive_expsym_cmds_RC \
  26795. + postinstall_cmds_RC \
  26796. + postuninstall_cmds_RC \
  26797. + old_archive_from_expsyms_cmds_RC \
  26798. + allow_undefined_flag_RC \
  26799. + no_undefined_flag_RC \
  26800. + export_symbols_cmds_RC \
  26801. + hardcode_libdir_flag_spec_RC \
  26802. + hardcode_libdir_flag_spec_ld_RC \
  26803. + hardcode_libdir_separator_RC \
  26804. + hardcode_automatic_RC \
  26805. + module_cmds_RC \
  26806. + module_expsym_cmds_RC \
  26807. + lt_cv_prog_compiler_c_o_RC \
  26808. + exclude_expsyms_RC \
  26809. + include_expsyms_RC; do
  26810. case $var in
  26811. - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  26812. - old_postinstall_cmds | old_postuninstall_cmds | \
  26813. - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  26814. - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  26815. + old_archive_cmds_RC | \
  26816. + old_archive_from_new_cmds_RC | \
  26817. + archive_cmds_RC | \
  26818. + archive_expsym_cmds_RC | \
  26819. + module_cmds_RC | \
  26820. + module_expsym_cmds_RC | \
  26821. + old_archive_from_expsyms_cmds_RC | \
  26822. + export_symbols_cmds_RC | \
  26823. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  26824. postinstall_cmds | postuninstall_cmds | \
  26825. - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  26826. + old_postinstall_cmds | old_postuninstall_cmds | \
  26827. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  26828. # Double-quote double-evaled strings.
  26829. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  26830. ;;
  26831. @@ -7691,46 +19099,16 @@
  26832. esac
  26833. done
  26834. - cat <<__EOF__ > "${ofile}T"
  26835. -#! $SHELL
  26836. -
  26837. -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  26838. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  26839. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26840. -#
  26841. -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  26842. -# Originally by Gordon Matzigkeit <[email protected]>, 1996
  26843. -#
  26844. -# This program is free software; you can redistribute it and/or modify
  26845. -# it under the terms of the GNU General Public License as published by
  26846. -# the Free Software Foundation; either version 2 of the License, or
  26847. -# (at your option) any later version.
  26848. -#
  26849. -# This program is distributed in the hope that it will be useful, but
  26850. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  26851. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26852. -# General Public License for more details.
  26853. -#
  26854. -# You should have received a copy of the GNU General Public License
  26855. -# along with this program; if not, write to the Free Software
  26856. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  26857. -#
  26858. -# As a special exception to the GNU General Public License, if you
  26859. -# distribute this file as part of a program that contains a
  26860. -# configuration script generated by Autoconf, you may include it under
  26861. -# the same distribution terms that you use for the rest of that program.
  26862. -
  26863. -# A sed that does not truncate output.
  26864. -SED=$lt_SED
  26865. -
  26866. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26867. -Xsed="${SED} -e s/^X//"
  26868. + case $lt_echo in
  26869. + *'\$0 --fallback-echo"')
  26870. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  26871. + ;;
  26872. + esac
  26873. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  26874. -# if CDPATH is set.
  26875. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  26876. +cfgfile="$ofile"
  26877. -# ### BEGIN LIBTOOL CONFIG
  26878. + cat <<__EOF__ >> "$cfgfile"
  26879. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  26880. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26881. @@ -7744,7 +19122,10 @@
  26882. build_old_libs=$enable_static
  26883. # Whether or not to add -lc for building shared libraries.
  26884. -build_libtool_need_lc=$need_lc
  26885. +build_libtool_need_lc=$archive_cmds_need_lc_RC
  26886. +
  26887. +# Whether or not to disallow shared libs when runtime libs are static
  26888. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26889. # Whether or not to optimize for fast installation.
  26890. fast_install=$enable_fast_install
  26891. @@ -7752,6 +19133,12 @@
  26892. # The host system.
  26893. host_alias=$host_alias
  26894. host=$host
  26895. +host_os=$host_os
  26896. +
  26897. +# The build system.
  26898. +build_alias=$build_alias
  26899. +build=$build
  26900. +build_os=$build_os
  26901. # An echo program that does not interpret backslashes.
  26902. echo=$lt_echo
  26903. @@ -7760,14 +19147,23 @@
  26904. AR=$lt_AR
  26905. AR_FLAGS=$lt_AR_FLAGS
  26906. -# The default C compiler.
  26907. -CC=$lt_CC
  26908. +# A C compiler.
  26909. +LTCC=$lt_LTCC
  26910. +
  26911. +# LTCC compiler flags.
  26912. +LTCFLAGS=$lt_LTCFLAGS
  26913. +
  26914. +# A language-specific compiler.
  26915. +CC=$lt_compiler_RC
  26916. # Is the compiler the GNU C compiler?
  26917. -with_gcc=$GCC
  26918. +with_gcc=$GCC_RC
  26919. +
  26920. +# An ERE matcher.
  26921. +EGREP=$lt_EGREP
  26922. # The linker used to build libraries.
  26923. -LD=$lt_LD
  26924. +LD=$lt_LD_RC
  26925. # Whether we need hard or soft links.
  26926. LN_S=$lt_LN_S
  26927. @@ -7776,7 +19172,7 @@
  26928. NM=$lt_NM
  26929. # A symbol stripping program
  26930. -STRIP=$STRIP
  26931. +STRIP=$lt_STRIP
  26932. # Used to examine libraries when file_magic_cmd begins "file"
  26933. MAGIC_CMD=$MAGIC_CMD
  26934. @@ -7798,7 +19194,7 @@
  26935. reload_cmds=$lt_reload_cmds
  26936. # How to pass a linker flag through the compiler.
  26937. -wl=$lt_wl
  26938. +wl=$lt_lt_prog_compiler_wl_RC
  26939. # Object file suffix (normally "o").
  26940. objext="$ac_objext"
  26941. @@ -7806,20 +19202,23 @@
  26942. # Old archive suffix (normally "a").
  26943. libext="$libext"
  26944. +# Shared library suffix (normally ".so").
  26945. +shrext_cmds='$shrext_cmds'
  26946. +
  26947. # Executable file suffix (normally "").
  26948. exeext="$exeext"
  26949. # Additional compiler flags for building library objects.
  26950. -pic_flag=$lt_pic_flag
  26951. +pic_flag=$lt_lt_prog_compiler_pic_RC
  26952. pic_mode=$pic_mode
  26953. -# Does compiler simultaneously support -c and -o options?
  26954. -compiler_c_o=$lt_compiler_c_o
  26955. +# What is the maximum length of a command?
  26956. +max_cmd_len=$lt_cv_sys_max_cmd_len
  26957. -# Can we write directly to a .lo ?
  26958. -compiler_o_lo=$lt_compiler_o_lo
  26959. +# Does compiler simultaneously support -c and -o options?
  26960. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26961. -# Must we lock files when doing compilation ?
  26962. +# Must we lock files when doing compilation?
  26963. need_locks=$lt_need_locks
  26964. # Do we need the lib prefix for modules?
  26965. @@ -7838,19 +19237,19 @@
  26966. dlopen_self_static=$enable_dlopen_self_static
  26967. # Compiler flag to prevent dynamic linking.
  26968. -link_static_flag=$lt_link_static_flag
  26969. +link_static_flag=$lt_lt_prog_compiler_static_RC
  26970. # Compiler flag to turn off builtin functions.
  26971. -no_builtin_flag=$lt_no_builtin_flag
  26972. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26973. # Compiler flag to allow reflexive dlopens.
  26974. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26975. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26976. # Compiler flag to generate shared objects directly from archives.
  26977. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26978. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26979. # Compiler flag to generate thread-safe objects.
  26980. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  26981. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  26982. # Library versioning type.
  26983. version_type=$version_type
  26984. @@ -7867,26 +19266,50 @@
  26985. # Commands used to build and install an old-style archive.
  26986. RANLIB=$lt_RANLIB
  26987. -old_archive_cmds=$lt_old_archive_cmds
  26988. +old_archive_cmds=$lt_old_archive_cmds_RC
  26989. old_postinstall_cmds=$lt_old_postinstall_cmds
  26990. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26991. # Create an old-style archive from a shared archive.
  26992. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26993. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26994. # Create a temporary old-style archive to link instead of a shared archive.
  26995. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26996. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26997. # Commands used to build and install a shared archive.
  26998. -archive_cmds=$lt_archive_cmds
  26999. -archive_expsym_cmds=$lt_archive_expsym_cmds
  27000. +archive_cmds=$lt_archive_cmds_RC
  27001. +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27002. postinstall_cmds=$lt_postinstall_cmds
  27003. postuninstall_cmds=$lt_postuninstall_cmds
  27004. +# Commands used to build a loadable module (assumed same as above if empty)
  27005. +module_cmds=$lt_module_cmds_RC
  27006. +module_expsym_cmds=$lt_module_expsym_cmds_RC
  27007. +
  27008. # Commands to strip libraries.
  27009. old_striplib=$lt_old_striplib
  27010. striplib=$lt_striplib
  27011. +# Dependencies to place before the objects being linked to create a
  27012. +# shared library.
  27013. +predep_objects=$lt_predep_objects_RC
  27014. +
  27015. +# Dependencies to place after the objects being linked to create a
  27016. +# shared library.
  27017. +postdep_objects=$lt_postdep_objects_RC
  27018. +
  27019. +# Dependencies to place before the objects being linked to create a
  27020. +# shared library.
  27021. +predeps=$lt_predeps_RC
  27022. +
  27023. +# Dependencies to place after the objects being linked to create a
  27024. +# shared library.
  27025. +postdeps=$lt_postdeps_RC
  27026. +
  27027. +# The library search path used internally by the compiler when linking
  27028. +# a shared library.
  27029. +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27030. +
  27031. # Method to check whether dependent libraries are shared objects.
  27032. deplibs_check_method=$lt_deplibs_check_method
  27033. @@ -7894,10 +19317,10 @@
  27034. file_magic_cmd=$lt_file_magic_cmd
  27035. # Flag that allows shared libraries with undefined symbols to be built.
  27036. -allow_undefined_flag=$lt_allow_undefined_flag
  27037. +allow_undefined_flag=$lt_allow_undefined_flag_RC
  27038. # Flag that forces no undefined symbols.
  27039. -no_undefined_flag=$lt_no_undefined_flag
  27040. +no_undefined_flag=$lt_no_undefined_flag_RC
  27041. # Commands used to finish a libtool library installation in a directory.
  27042. finish_cmds=$lt_finish_cmds
  27043. @@ -7906,13 +19329,13 @@
  27044. finish_eval=$lt_finish_eval
  27045. # Take the output of nm and produce a listing of raw symbols and C names.
  27046. -global_symbol_pipe=$lt_global_symbol_pipe
  27047. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27048. # Transform the output of nm in a proper C declaration
  27049. -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  27050. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27051. # Transform the output of nm in a C name address pair
  27052. -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  27053. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27054. # This is the shared library runtime path variable.
  27055. runpath_var=$runpath_var
  27056. @@ -7924,290 +19347,158 @@
  27057. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27058. # How to hardcode a shared library path into an executable.
  27059. -hardcode_action=$hardcode_action
  27060. +hardcode_action=$hardcode_action_RC
  27061. # Whether we should hardcode library paths into libraries.
  27062. hardcode_into_libs=$hardcode_into_libs
  27063. # Flag to hardcode \$libdir into a binary during linking.
  27064. # This must work even if \$libdir does not exist.
  27065. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27066. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27067. +
  27068. +# If ld is used when linking, flag to hardcode \$libdir into
  27069. +# a binary during linking. This must work even if \$libdir does
  27070. +# not exist.
  27071. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  27072. # Whether we need a single -rpath flag with a separated argument.
  27073. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27074. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27075. -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  27076. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  27077. # resulting binary.
  27078. -hardcode_direct=$hardcode_direct
  27079. +hardcode_direct=$hardcode_direct_RC
  27080. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  27081. # resulting binary.
  27082. -hardcode_minus_L=$hardcode_minus_L
  27083. +hardcode_minus_L=$hardcode_minus_L_RC
  27084. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  27085. # the resulting binary.
  27086. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  27087. +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27088. +
  27089. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  27090. +# and all subsequent libraries and executables linked against it.
  27091. +hardcode_automatic=$hardcode_automatic_RC
  27092. # Variables whose values should be saved in libtool wrapper scripts and
  27093. # restored at relink time.
  27094. variables_saved_for_relink="$variables_saved_for_relink"
  27095. -# Whether libtool must link a program against all its dependency libraries.
  27096. -link_all_deplibs=$link_all_deplibs
  27097. +# Whether libtool must link a program against all its dependency libraries.
  27098. +link_all_deplibs=$link_all_deplibs_RC
  27099. +
  27100. +# Compile-time system search path for libraries
  27101. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27102. +
  27103. +# Run-time system search path for libraries
  27104. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  27105. +
  27106. +# Fix the shell variable \$srcfile for the compiler.
  27107. +fix_srcfile_path="$fix_srcfile_path_RC"
  27108. +
  27109. +# Set to yes if exported symbols are required.
  27110. +always_export_symbols=$always_export_symbols_RC
  27111. +
  27112. +# The commands to list exported symbols.
  27113. +export_symbols_cmds=$lt_export_symbols_cmds_RC
  27114. +
  27115. +# The commands to extract the exported symbol list from a shared archive.
  27116. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27117. +
  27118. +# Symbols that should not be listed in the preloaded symbols.
  27119. +exclude_expsyms=$lt_exclude_expsyms_RC
  27120. +
  27121. +# Symbols that must always be exported.
  27122. +include_expsyms=$lt_include_expsyms_RC
  27123. +
  27124. +# ### END LIBTOOL TAG CONFIG: $tagname
  27125. +
  27126. +__EOF__
  27127. +
  27128. +
  27129. +else
  27130. + # If there is no Makefile yet, we rely on a make rule to execute
  27131. + # `config.status --recheck' to rerun these tests and create the
  27132. + # libtool script then.
  27133. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  27134. + if test -f "$ltmain_in"; then
  27135. + test -f Makefile && make "$ltmain"
  27136. + fi
  27137. +fi
  27138. +
  27139. +
  27140. +ac_ext=c
  27141. +ac_cpp='$CPP $CPPFLAGS'
  27142. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27143. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27144. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27145. +
  27146. +CC="$lt_save_CC"
  27147. +
  27148. + ;;
  27149. +
  27150. + *)
  27151. + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  27152. +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  27153. + { (exit 1); exit 1; }; }
  27154. + ;;
  27155. + esac
  27156. +
  27157. + # Append the new tag name to the list of available tags.
  27158. + if test -n "$tagname" ; then
  27159. + available_tags="$available_tags $tagname"
  27160. + fi
  27161. + fi
  27162. + done
  27163. + IFS="$lt_save_ifs"
  27164. +
  27165. + # Now substitute the updated list of available tags.
  27166. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  27167. + mv "${ofile}T" "$ofile"
  27168. + chmod +x "$ofile"
  27169. + else
  27170. + rm -f "${ofile}T"
  27171. + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  27172. +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  27173. + { (exit 1); exit 1; }; }
  27174. + fi
  27175. +fi
  27176. -# Compile-time system search path for libraries
  27177. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27178. -# Run-time system search path for libraries
  27179. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  27180. -# Fix the shell variable \$srcfile for the compiler.
  27181. -fix_srcfile_path="$fix_srcfile_path"
  27182. +# This can be used to rebuild libtool when needed
  27183. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  27184. -# Set to yes if exported symbols are required.
  27185. -always_export_symbols=$always_export_symbols
  27186. +# Always use our own libtool.
  27187. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  27188. -# The commands to list exported symbols.
  27189. -export_symbols_cmds=$lt_export_symbols_cmds
  27190. +# Prevent multiple expansion
  27191. -# The commands to extract the exported symbol list from a shared archive.
  27192. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27193. -# Symbols that should not be listed in the preloaded symbols.
  27194. -exclude_expsyms=$lt_exclude_expsyms
  27195. -# Symbols that must always be exported.
  27196. -include_expsyms=$lt_include_expsyms
  27197. -# ### END LIBTOOL CONFIG
  27198. -__EOF__
  27199. - case $host_os in
  27200. - aix3*)
  27201. - cat <<\EOF >> "${ofile}T"
  27202. -# AIX sometimes has problems with the GCC collect2 program. For some
  27203. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  27204. -# vanish in a puff of smoke.
  27205. -if test "X${COLLECT_NAMES+set}" != Xset; then
  27206. - COLLECT_NAMES=
  27207. - export COLLECT_NAMES
  27208. -fi
  27209. -EOF
  27210. - ;;
  27211. - esac
  27212. - case $host_os in
  27213. - cygwin* | mingw* | pw32* | os2*)
  27214. - cat <<'EOF' >> "${ofile}T"
  27215. - # This is a source program that is used to create dlls on Windows
  27216. - # Don't remove nor modify the starting and closing comments
  27217. -# /* ltdll.c starts here */
  27218. -# #define WIN32_LEAN_AND_MEAN
  27219. -# #include <windows.h>
  27220. -# #undef WIN32_LEAN_AND_MEAN
  27221. -# #include <stdio.h>
  27222. -#
  27223. -# #ifndef __CYGWIN__
  27224. -# # ifdef __CYGWIN32__
  27225. -# # define __CYGWIN__ __CYGWIN32__
  27226. -# # endif
  27227. -# #endif
  27228. -#
  27229. -# #ifdef __cplusplus
  27230. -# extern "C" {
  27231. -# #endif
  27232. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  27233. -# #ifdef __cplusplus
  27234. -# }
  27235. -# #endif
  27236. -#
  27237. -# #ifdef __CYGWIN__
  27238. -# #include <cygwin/cygwin_dll.h>
  27239. -# DECLARE_CYGWIN_DLL( DllMain );
  27240. -# #endif
  27241. -# HINSTANCE __hDllInstance_base;
  27242. -#
  27243. -# BOOL APIENTRY
  27244. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  27245. -# {
  27246. -# __hDllInstance_base = hInst;
  27247. -# return TRUE;
  27248. -# }
  27249. -# /* ltdll.c ends here */
  27250. - # This is a source program that is used to create import libraries
  27251. - # on Windows for dlls which lack them. Don't remove nor modify the
  27252. - # starting and closing comments
  27253. -# /* impgen.c starts here */
  27254. -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  27255. -#
  27256. -# This file is part of GNU libtool.
  27257. -#
  27258. -# This program is free software; you can redistribute it and/or modify
  27259. -# it under the terms of the GNU General Public License as published by
  27260. -# the Free Software Foundation; either version 2 of the License, or
  27261. -# (at your option) any later version.
  27262. -#
  27263. -# This program is distributed in the hope that it will be useful,
  27264. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  27265. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27266. -# GNU General Public License for more details.
  27267. -#
  27268. -# You should have received a copy of the GNU General Public License
  27269. -# along with this program; if not, write to the Free Software
  27270. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  27271. -# */
  27272. -#
  27273. -# #include <stdio.h> /* for printf() */
  27274. -# #include <unistd.h> /* for open(), lseek(), read() */
  27275. -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  27276. -# #include <string.h> /* for strdup() */
  27277. -#
  27278. -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  27279. -# #ifndef O_BINARY
  27280. -# #define O_BINARY 0
  27281. -# #endif
  27282. -#
  27283. -# static unsigned int
  27284. -# pe_get16 (fd, offset)
  27285. -# int fd;
  27286. -# int offset;
  27287. -# {
  27288. -# unsigned char b[2];
  27289. -# lseek (fd, offset, SEEK_SET);
  27290. -# read (fd, b, 2);
  27291. -# return b[0] + (b[1]<<8);
  27292. -# }
  27293. -#
  27294. -# static unsigned int
  27295. -# pe_get32 (fd, offset)
  27296. -# int fd;
  27297. -# int offset;
  27298. -# {
  27299. -# unsigned char b[4];
  27300. -# lseek (fd, offset, SEEK_SET);
  27301. -# read (fd, b, 4);
  27302. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  27303. -# }
  27304. -#
  27305. -# static unsigned int
  27306. -# pe_as32 (ptr)
  27307. -# void *ptr;
  27308. -# {
  27309. -# unsigned char *b = ptr;
  27310. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  27311. -# }
  27312. -#
  27313. -# int
  27314. -# main (argc, argv)
  27315. -# int argc;
  27316. -# char *argv[];
  27317. -# {
  27318. -# int dll;
  27319. -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  27320. -# unsigned long export_rva, export_size, nsections, secptr, expptr;
  27321. -# unsigned long name_rvas, nexp;
  27322. -# unsigned char *expdata, *erva;
  27323. -# char *filename, *dll_name;
  27324. -#
  27325. -# filename = argv[1];
  27326. -#
  27327. -# dll = open(filename, O_RDONLY|O_BINARY);
  27328. -# if (dll < 1)
  27329. -# return 1;
  27330. -#
  27331. -# dll_name = filename;
  27332. -#
  27333. -# for (i=0; filename[i]; i++)
  27334. -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  27335. -# dll_name = filename + i +1;
  27336. -#
  27337. -# pe_header_offset = pe_get32 (dll, 0x3c);
  27338. -# opthdr_ofs = pe_header_offset + 4 + 20;
  27339. -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  27340. -#
  27341. -# if (num_entries < 1) /* no exports */
  27342. -# return 1;
  27343. -#
  27344. -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  27345. -# export_size = pe_get32 (dll, opthdr_ofs + 100);
  27346. -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  27347. -# secptr = (pe_header_offset + 4 + 20 +
  27348. -# pe_get16 (dll, pe_header_offset + 4 + 16));
  27349. -#
  27350. -# expptr = 0;
  27351. -# for (i = 0; i < nsections; i++)
  27352. -# {
  27353. -# char sname[8];
  27354. -# unsigned long secptr1 = secptr + 40 * i;
  27355. -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  27356. -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  27357. -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  27358. -# lseek(dll, secptr1, SEEK_SET);
  27359. -# read(dll, sname, 8);
  27360. -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  27361. -# {
  27362. -# expptr = fptr + (export_rva - vaddr);
  27363. -# if (export_rva + export_size > vaddr + vsize)
  27364. -# export_size = vsize - (export_rva - vaddr);
  27365. -# break;
  27366. -# }
  27367. -# }
  27368. -#
  27369. -# expdata = (unsigned char*)malloc(export_size);
  27370. -# lseek (dll, expptr, SEEK_SET);
  27371. -# read (dll, expdata, export_size);
  27372. -# erva = expdata - export_rva;
  27373. -#
  27374. -# nexp = pe_as32 (expdata+24);
  27375. -# name_rvas = pe_as32 (expdata+32);
  27376. -#
  27377. -# printf ("EXPORTS\n");
  27378. -# for (i = 0; i<nexp; i++)
  27379. -# {
  27380. -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  27381. -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  27382. -# }
  27383. -#
  27384. -# return 0;
  27385. -# }
  27386. -# /* impgen.c ends here */
  27387. -EOF
  27388. - ;;
  27389. - esac
  27390. - # We use sed instead of cat because bash on DJGPP gets confused if
  27391. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27392. - # text mode, it properly converts lines to CR/LF. This bash problem
  27393. - # is reportedly fixed, but why not run on old versions too?
  27394. - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  27395. - mv -f "${ofile}T" "$ofile" || \
  27396. - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  27397. - chmod +x "$ofile"
  27398. -fi
  27399. -# This can be used to rebuild libtool when needed
  27400. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  27401. -# Always use our own libtool.
  27402. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  27403. -# Prevent multiple expansion
  27404. # Extract the first word of "perl", so it can be a program name with args.
  27405. set dummy perl; ac_word=$2
  27406. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  27407. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  27408. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  27409. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  27410. if test "${ac_cv_path_PERL+set}" = set; then
  27411. echo $ECHO_N "(cached) $ECHO_C" >&6
  27412. else
  27413. @@ -8222,42 +19513,43 @@
  27414. IFS=$as_save_IFS
  27415. test -z "$as_dir" && as_dir=.
  27416. for ac_exec_ext in '' $ac_executable_extensions; do
  27417. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  27418. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27419. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  27420. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  27421. break 2
  27422. fi
  27423. done
  27424. done
  27425. +IFS=$as_save_IFS
  27426. ;;
  27427. esac
  27428. fi
  27429. PERL=$ac_cv_path_PERL
  27430. -
  27431. if test -n "$PERL"; then
  27432. - echo "$as_me:$LINENO: result: $PERL" >&5
  27433. -echo "${ECHO_T}$PERL" >&6
  27434. + { echo "$as_me:$LINENO: result: $PERL" >&5
  27435. +echo "${ECHO_T}$PERL" >&6; }
  27436. else
  27437. - echo "$as_me:$LINENO: result: no" >&5
  27438. -echo "${ECHO_T}no" >&6
  27439. + { echo "$as_me:$LINENO: result: no" >&5
  27440. +echo "${ECHO_T}no" >&6; }
  27441. fi
  27442. +
  27443. if test "${ac_cv_header_asm_errno_h+set}" = set; then
  27444. - echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  27445. -echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
  27446. + { echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  27447. +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6; }
  27448. if test "${ac_cv_header_asm_errno_h+set}" = set; then
  27449. echo $ECHO_N "(cached) $ECHO_C" >&6
  27450. fi
  27451. -echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  27452. -echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
  27453. +{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  27454. +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6; }
  27455. else
  27456. # Is the header compilable?
  27457. -echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
  27458. -echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
  27459. +{ echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
  27460. +echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6; }
  27461. cat >conftest.$ac_ext <<_ACEOF
  27462. /* confdefs.h. */
  27463. _ACEOF
  27464. @@ -8268,40 +19560,37 @@
  27465. #include <asm/errno.h>
  27466. _ACEOF
  27467. rm -f conftest.$ac_objext
  27468. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27469. - (eval $ac_compile) 2>conftest.er1
  27470. +if { (ac_try="$ac_compile"
  27471. +case "(($ac_try" in
  27472. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27473. + *) ac_try_echo=$ac_try;;
  27474. +esac
  27475. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27476. + (eval "$ac_compile") 2>conftest.er1
  27477. ac_status=$?
  27478. grep -v '^ *+' conftest.er1 >conftest.err
  27479. rm -f conftest.er1
  27480. cat conftest.err >&5
  27481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27482. - (exit $ac_status); } &&
  27483. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27484. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27485. - (eval $ac_try) 2>&5
  27486. - ac_status=$?
  27487. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27488. - (exit $ac_status); }; } &&
  27489. - { ac_try='test -s conftest.$ac_objext'
  27490. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27491. - (eval $ac_try) 2>&5
  27492. - ac_status=$?
  27493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27494. - (exit $ac_status); }; }; then
  27495. + (exit $ac_status); } && {
  27496. + test -z "$ac_c_werror_flag" ||
  27497. + test ! -s conftest.err
  27498. + } && test -s conftest.$ac_objext; then
  27499. ac_header_compiler=yes
  27500. else
  27501. echo "$as_me: failed program was:" >&5
  27502. sed 's/^/| /' conftest.$ac_ext >&5
  27503. -ac_header_compiler=no
  27504. + ac_header_compiler=no
  27505. fi
  27506. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27507. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27508. -echo "${ECHO_T}$ac_header_compiler" >&6
  27509. +
  27510. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27511. +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27512. +echo "${ECHO_T}$ac_header_compiler" >&6; }
  27513. # Is the header present?
  27514. -echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
  27515. -echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
  27516. +{ echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
  27517. +echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6; }
  27518. cat >conftest.$ac_ext <<_ACEOF
  27519. /* confdefs.h. */
  27520. _ACEOF
  27521. @@ -8310,24 +19599,22 @@
  27522. /* end confdefs.h. */
  27523. #include <asm/errno.h>
  27524. _ACEOF
  27525. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27526. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27527. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  27528. +case "(($ac_try" in
  27529. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27530. + *) ac_try_echo=$ac_try;;
  27531. +esac
  27532. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27533. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27534. ac_status=$?
  27535. grep -v '^ *+' conftest.er1 >conftest.err
  27536. rm -f conftest.er1
  27537. cat conftest.err >&5
  27538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27539. - (exit $ac_status); } >/dev/null; then
  27540. - if test -s conftest.err; then
  27541. - ac_cpp_err=$ac_c_preproc_warn_flag
  27542. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27543. - else
  27544. - ac_cpp_err=
  27545. - fi
  27546. -else
  27547. - ac_cpp_err=yes
  27548. -fi
  27549. -if test -z "$ac_cpp_err"; then
  27550. + (exit $ac_status); } >/dev/null && {
  27551. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27552. + test ! -s conftest.err
  27553. + }; then
  27554. ac_header_preproc=yes
  27555. else
  27556. echo "$as_me: failed program was:" >&5
  27557. @@ -8335,9 +19622,10 @@
  27558. ac_header_preproc=no
  27559. fi
  27560. +
  27561. rm -f conftest.err conftest.$ac_ext
  27562. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27563. -echo "${ECHO_T}$ac_header_preproc" >&6
  27564. +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27565. +echo "${ECHO_T}$ac_header_preproc" >&6; }
  27566. # So? What about this header?
  27567. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27568. @@ -8361,25 +19649,18 @@
  27569. echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  27570. { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
  27571. echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
  27572. - (
  27573. - cat <<\_ASBOX
  27574. -## ------------------------------------------ ##
  27575. -## Report this to the AC_PACKAGE_NAME lists. ##
  27576. -## ------------------------------------------ ##
  27577. -_ASBOX
  27578. - ) |
  27579. - sed "s/^/$as_me: WARNING: /" >&2
  27580. +
  27581. ;;
  27582. esac
  27583. -echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  27584. -echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
  27585. +{ echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  27586. +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6; }
  27587. if test "${ac_cv_header_asm_errno_h+set}" = set; then
  27588. echo $ECHO_N "(cached) $ECHO_C" >&6
  27589. else
  27590. ac_cv_header_asm_errno_h=$ac_header_preproc
  27591. fi
  27592. -echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  27593. -echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
  27594. +{ echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  27595. +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6; }
  27596. fi
  27597. if test $ac_cv_header_asm_errno_h = yes; then
  27598. @@ -8394,17 +19675,17 @@
  27599. if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  27600. - echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  27601. -echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
  27602. + { echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  27603. +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6; }
  27604. if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  27605. echo $ECHO_N "(cached) $ECHO_C" >&6
  27606. fi
  27607. -echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  27608. -echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
  27609. +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  27610. +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6; }
  27611. else
  27612. # Is the header compilable?
  27613. -echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
  27614. -echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
  27615. +{ echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
  27616. +echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6; }
  27617. cat >conftest.$ac_ext <<_ACEOF
  27618. /* confdefs.h. */
  27619. _ACEOF
  27620. @@ -8415,40 +19696,37 @@
  27621. #include <linux/atmsap.h>
  27622. _ACEOF
  27623. rm -f conftest.$ac_objext
  27624. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27625. - (eval $ac_compile) 2>conftest.er1
  27626. +if { (ac_try="$ac_compile"
  27627. +case "(($ac_try" in
  27628. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27629. + *) ac_try_echo=$ac_try;;
  27630. +esac
  27631. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27632. + (eval "$ac_compile") 2>conftest.er1
  27633. ac_status=$?
  27634. grep -v '^ *+' conftest.er1 >conftest.err
  27635. rm -f conftest.er1
  27636. cat conftest.err >&5
  27637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27638. - (exit $ac_status); } &&
  27639. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27640. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27641. - (eval $ac_try) 2>&5
  27642. - ac_status=$?
  27643. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27644. - (exit $ac_status); }; } &&
  27645. - { ac_try='test -s conftest.$ac_objext'
  27646. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27647. - (eval $ac_try) 2>&5
  27648. - ac_status=$?
  27649. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27650. - (exit $ac_status); }; }; then
  27651. + (exit $ac_status); } && {
  27652. + test -z "$ac_c_werror_flag" ||
  27653. + test ! -s conftest.err
  27654. + } && test -s conftest.$ac_objext; then
  27655. ac_header_compiler=yes
  27656. else
  27657. echo "$as_me: failed program was:" >&5
  27658. sed 's/^/| /' conftest.$ac_ext >&5
  27659. -ac_header_compiler=no
  27660. + ac_header_compiler=no
  27661. fi
  27662. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27663. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27664. -echo "${ECHO_T}$ac_header_compiler" >&6
  27665. +
  27666. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27667. +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27668. +echo "${ECHO_T}$ac_header_compiler" >&6; }
  27669. # Is the header present?
  27670. -echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
  27671. -echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
  27672. +{ echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
  27673. +echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6; }
  27674. cat >conftest.$ac_ext <<_ACEOF
  27675. /* confdefs.h. */
  27676. _ACEOF
  27677. @@ -8457,24 +19735,22 @@
  27678. /* end confdefs.h. */
  27679. #include <linux/atmsap.h>
  27680. _ACEOF
  27681. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27682. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27683. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  27684. +case "(($ac_try" in
  27685. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27686. + *) ac_try_echo=$ac_try;;
  27687. +esac
  27688. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27689. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27690. ac_status=$?
  27691. grep -v '^ *+' conftest.er1 >conftest.err
  27692. rm -f conftest.er1
  27693. cat conftest.err >&5
  27694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27695. - (exit $ac_status); } >/dev/null; then
  27696. - if test -s conftest.err; then
  27697. - ac_cpp_err=$ac_c_preproc_warn_flag
  27698. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27699. - else
  27700. - ac_cpp_err=
  27701. - fi
  27702. -else
  27703. - ac_cpp_err=yes
  27704. -fi
  27705. -if test -z "$ac_cpp_err"; then
  27706. + (exit $ac_status); } >/dev/null && {
  27707. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27708. + test ! -s conftest.err
  27709. + }; then
  27710. ac_header_preproc=yes
  27711. else
  27712. echo "$as_me: failed program was:" >&5
  27713. @@ -8482,9 +19758,10 @@
  27714. ac_header_preproc=no
  27715. fi
  27716. +
  27717. rm -f conftest.err conftest.$ac_ext
  27718. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27719. -echo "${ECHO_T}$ac_header_preproc" >&6
  27720. +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27721. +echo "${ECHO_T}$ac_header_preproc" >&6; }
  27722. # So? What about this header?
  27723. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27724. @@ -8508,25 +19785,18 @@
  27725. echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  27726. { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
  27727. echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
  27728. - (
  27729. - cat <<\_ASBOX
  27730. -## ------------------------------------------ ##
  27731. -## Report this to the AC_PACKAGE_NAME lists. ##
  27732. -## ------------------------------------------ ##
  27733. -_ASBOX
  27734. - ) |
  27735. - sed "s/^/$as_me: WARNING: /" >&2
  27736. +
  27737. ;;
  27738. esac
  27739. -echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  27740. -echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
  27741. +{ echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  27742. +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6; }
  27743. if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  27744. echo $ECHO_N "(cached) $ECHO_C" >&6
  27745. else
  27746. ac_cv_header_linux_atmsap_h=$ac_header_preproc
  27747. fi
  27748. -echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  27749. -echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
  27750. +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  27751. +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6; }
  27752. fi
  27753. if test $ac_cv_header_linux_atmsap_h = yes; then
  27754. @@ -8541,8 +19811,8 @@
  27755. -echo "$as_me:$LINENO: checking for main in -lresolv" >&5
  27756. -echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
  27757. +{ echo "$as_me:$LINENO: checking for main in -lresolv" >&5
  27758. +echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
  27759. if test "${ac_cv_lib_resolv_main+set}" = set; then
  27760. echo $ECHO_N "(cached) $ECHO_C" >&6
  27761. else
  27762. @@ -8559,45 +19829,43 @@
  27763. int
  27764. main ()
  27765. {
  27766. -main ();
  27767. +return main ();
  27768. ;
  27769. return 0;
  27770. }
  27771. _ACEOF
  27772. rm -f conftest.$ac_objext conftest$ac_exeext
  27773. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27774. - (eval $ac_link) 2>conftest.er1
  27775. +if { (ac_try="$ac_link"
  27776. +case "(($ac_try" in
  27777. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27778. + *) ac_try_echo=$ac_try;;
  27779. +esac
  27780. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27781. + (eval "$ac_link") 2>conftest.er1
  27782. ac_status=$?
  27783. grep -v '^ *+' conftest.er1 >conftest.err
  27784. rm -f conftest.er1
  27785. cat conftest.err >&5
  27786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27787. - (exit $ac_status); } &&
  27788. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27789. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27790. - (eval $ac_try) 2>&5
  27791. - ac_status=$?
  27792. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27793. - (exit $ac_status); }; } &&
  27794. - { ac_try='test -s conftest$ac_exeext'
  27795. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27796. - (eval $ac_try) 2>&5
  27797. - ac_status=$?
  27798. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27799. - (exit $ac_status); }; }; then
  27800. + (exit $ac_status); } && {
  27801. + test -z "$ac_c_werror_flag" ||
  27802. + test ! -s conftest.err
  27803. + } && test -s conftest$ac_exeext &&
  27804. + $as_test_x conftest$ac_exeext; then
  27805. ac_cv_lib_resolv_main=yes
  27806. else
  27807. echo "$as_me: failed program was:" >&5
  27808. sed 's/^/| /' conftest.$ac_ext >&5
  27809. -ac_cv_lib_resolv_main=no
  27810. + ac_cv_lib_resolv_main=no
  27811. fi
  27812. -rm -f conftest.err conftest.$ac_objext \
  27813. +
  27814. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27815. conftest$ac_exeext conftest.$ac_ext
  27816. LIBS=$ac_check_lib_save_LIBS
  27817. fi
  27818. -echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
  27819. -echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
  27820. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
  27821. +echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
  27822. if test $ac_cv_lib_resolv_main = yes; then
  27823. cat >>confdefs.h <<_ACEOF
  27824. #define HAVE_LIBRESOLV 1
  27825. @@ -8633,10 +19901,9 @@
  27826. -# Check whether --with-uni or --without-uni was given.
  27827. +# Check whether --with-uni was given.
  27828. if test "${with_uni+set}" = set; then
  27829. - withval="$with_uni"
  27830. -
  27831. + withval=$with_uni;
  27832. case "$with_uni" in
  27833. "3.0" ) cat >>confdefs.h <<\_ACEOF
  27834. #define UNI30 1
  27835. @@ -8668,12 +19935,12 @@
  27836. _ACEOF
  27837. -fi;
  27838. +fi
  27839. -# Check whether --enable-allow_uni30 or --disable-allow_uni30 was given.
  27840. -if test "${enable_allow_uni30+set}" = set; then
  27841. - enableval="$enable_allow_uni30"
  27842. +# Check whether --enable-allow_uni30 was given.
  27843. +if test "${enable_allow_uni30+set}" = set; then
  27844. + enableval=$enable_allow_uni30;
  27845. if test "$with_uni" = "3.1" ; then
  27846. cat >>confdefs.h <<\_ACEOF
  27847. #define ALLOW_UNI30 1
  27848. @@ -8685,12 +19952,12 @@
  27849. fi
  27850. -fi;
  27851. +fi
  27852. +
  27853. -# Check whether --enable-q2963_1 or --disable-q2963_1 was given.
  27854. +# Check whether --enable-q2963_1 was given.
  27855. if test "${enable_q2963_1+set}" = set; then
  27856. - enableval="$enable_q2963_1"
  27857. -
  27858. + enableval=$enable_q2963_1;
  27859. if test "$with_uni" = "4.0" ; then
  27860. cat >>confdefs.h <<\_ACEOF
  27861. #define Q2963_1 1
  27862. @@ -8702,52 +19969,52 @@
  27863. fi
  27864. -fi;
  27865. +fi
  27866. +
  27867. -# Check whether --enable-cisco or --disable-cisco was given.
  27868. +# Check whether --enable-cisco was given.
  27869. if test "${enable_cisco+set}" = set; then
  27870. - enableval="$enable_cisco"
  27871. - cat >>confdefs.h <<\_ACEOF
  27872. + enableval=$enable_cisco; cat >>confdefs.h <<\_ACEOF
  27873. #define CISCO 1
  27874. _ACEOF
  27875. -fi;
  27876. +fi
  27877. +
  27878. -# Check whether --enable-thomflex or --disable-thomflex was given.
  27879. +# Check whether --enable-thomflex was given.
  27880. if test "${enable_thomflex+set}" = set; then
  27881. - enableval="$enable_thomflex"
  27882. - cat >>confdefs.h <<\_ACEOF
  27883. + enableval=$enable_thomflex; cat >>confdefs.h <<\_ACEOF
  27884. #define THOMFLEX 1
  27885. _ACEOF
  27886. -fi;
  27887. +fi
  27888. +
  27889. cat >>confdefs.h <<\_ACEOF
  27890. #define BROKEN_POLL 1
  27891. _ACEOF
  27892. -# Check whether --enable-mpoa_1_1 or --disable-mpoa_1_1 was given.
  27893. +# Check whether --enable-mpoa_1_1 was given.
  27894. if test "${enable_mpoa_1_1+set}" = set; then
  27895. - enableval="$enable_mpoa_1_1"
  27896. - cat >>confdefs.h <<\_ACEOF
  27897. + enableval=$enable_mpoa_1_1; cat >>confdefs.h <<\_ACEOF
  27898. #define MPOA_1_1 1
  27899. _ACEOF
  27900. -fi;
  27901. +fi
  27902. +
  27903. -# Check whether --enable-mpr or --disable-mpr was given.
  27904. +# Check whether --enable-mpr was given.
  27905. if test "${enable_mpr+set}" = set; then
  27906. - enableval="$enable_mpr"
  27907. -
  27908. + enableval=$enable_mpr;
  27909. case "$enable_mpr" in
  27910. "" | y | ye | yes | Y | YE | YES )
  27911. -echo "$as_me:$LINENO: checking for main in -lmpr" >&5
  27912. -echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6
  27913. +{ echo "$as_me:$LINENO: checking for main in -lmpr" >&5
  27914. +echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6; }
  27915. if test "${ac_cv_lib_mpr_main+set}" = set; then
  27916. echo $ECHO_N "(cached) $ECHO_C" >&6
  27917. else
  27918. @@ -8764,45 +20031,43 @@
  27919. int
  27920. main ()
  27921. {
  27922. -main ();
  27923. +return main ();
  27924. ;
  27925. return 0;
  27926. }
  27927. _ACEOF
  27928. rm -f conftest.$ac_objext conftest$ac_exeext
  27929. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27930. - (eval $ac_link) 2>conftest.er1
  27931. +if { (ac_try="$ac_link"
  27932. +case "(($ac_try" in
  27933. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27934. + *) ac_try_echo=$ac_try;;
  27935. +esac
  27936. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27937. + (eval "$ac_link") 2>conftest.er1
  27938. ac_status=$?
  27939. grep -v '^ *+' conftest.er1 >conftest.err
  27940. rm -f conftest.er1
  27941. cat conftest.err >&5
  27942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27943. - (exit $ac_status); } &&
  27944. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27945. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27946. - (eval $ac_try) 2>&5
  27947. - ac_status=$?
  27948. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27949. - (exit $ac_status); }; } &&
  27950. - { ac_try='test -s conftest$ac_exeext'
  27951. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27952. - (eval $ac_try) 2>&5
  27953. - ac_status=$?
  27954. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27955. - (exit $ac_status); }; }; then
  27956. + (exit $ac_status); } && {
  27957. + test -z "$ac_c_werror_flag" ||
  27958. + test ! -s conftest.err
  27959. + } && test -s conftest$ac_exeext &&
  27960. + $as_test_x conftest$ac_exeext; then
  27961. ac_cv_lib_mpr_main=yes
  27962. else
  27963. echo "$as_me: failed program was:" >&5
  27964. sed 's/^/| /' conftest.$ac_ext >&5
  27965. -ac_cv_lib_mpr_main=no
  27966. + ac_cv_lib_mpr_main=no
  27967. fi
  27968. -rm -f conftest.err conftest.$ac_objext \
  27969. +
  27970. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27971. conftest$ac_exeext conftest.$ac_ext
  27972. LIBS=$ac_check_lib_save_LIBS
  27973. fi
  27974. -echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
  27975. -echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6
  27976. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
  27977. +echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6; }
  27978. if test $ac_cv_lib_mpr_main = yes; then
  27979. cat >>confdefs.h <<_ACEOF
  27980. #define HAVE_LIBMPR 1
  27981. @@ -8822,10 +20087,12 @@
  27982. esac
  27983. -fi;
  27984. +fi
  27985. +
  27986. +
  27987. +ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile"
  27988. - ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile"
  27989. cat >confcache <<\_ACEOF
  27990. # This file is a shell script that caches the results of configure
  27991. # tests run on this system so they can be shared between configure
  27992. @@ -8844,39 +20111,58 @@
  27993. # The following way of writing the cache mishandles newlines in values,
  27994. # but we know of no workaround that is simple, portable, and efficient.
  27995. -# So, don't put newlines in cache variables' values.
  27996. +# So, we kill variables containing newlines.
  27997. # Ultrix sh set writes to stderr and can't be redirected directly,
  27998. # and sets the high bit in the cache file unless we assign to the vars.
  27999. -{
  28000. +(
  28001. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  28002. + eval ac_val=\$$ac_var
  28003. + case $ac_val in #(
  28004. + *${as_nl}*)
  28005. + case $ac_var in #(
  28006. + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  28007. +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  28008. + esac
  28009. + case $ac_var in #(
  28010. + _ | IFS | as_nl) ;; #(
  28011. + *) $as_unset $ac_var ;;
  28012. + esac ;;
  28013. + esac
  28014. + done
  28015. +
  28016. (set) 2>&1 |
  28017. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  28018. - *ac_space=\ *)
  28019. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  28020. + *${as_nl}ac_space=\ *)
  28021. # `set' does not quote correctly, so add quotes (double-quote
  28022. # substitution turns \\\\ into \\, and sed turns \\ into \).
  28023. sed -n \
  28024. "s/'/'\\\\''/g;
  28025. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  28026. - ;;
  28027. + ;; #(
  28028. *)
  28029. # `set' quotes correctly as required by POSIX, so do not add quotes.
  28030. - sed -n \
  28031. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  28032. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  28033. ;;
  28034. - esac;
  28035. -} |
  28036. + esac |
  28037. + sort
  28038. +) |
  28039. sed '
  28040. + /^ac_cv_env_/b end
  28041. t clear
  28042. - : clear
  28043. + :clear
  28044. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  28045. t end
  28046. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  28047. - : end' >>confcache
  28048. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  28049. - if test -w $cache_file; then
  28050. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  28051. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  28052. + :end' >>confcache
  28053. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  28054. + if test -w "$cache_file"; then
  28055. + test "x$cache_file" != "x/dev/null" &&
  28056. + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  28057. +echo "$as_me: updating cache $cache_file" >&6;}
  28058. cat confcache >$cache_file
  28059. else
  28060. - echo "not updating unwritable cache $cache_file"
  28061. + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  28062. +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  28063. fi
  28064. fi
  28065. rm -f confcache
  28066. @@ -8885,38 +20171,45 @@
  28067. # Let make expand exec_prefix.
  28068. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  28069. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  28070. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  28071. -# trailing colons and then remove the whole line if VPATH becomes empty
  28072. -# (actually we leave an empty line to preserve line numbers).
  28073. -if test "x$srcdir" = x.; then
  28074. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  28075. -s/:*\$(srcdir):*/:/;
  28076. -s/:*\${srcdir}:*/:/;
  28077. -s/:*@srcdir@:*/:/;
  28078. -s/^\([^=]*=[ ]*\):*/\1/;
  28079. -s/:*$//;
  28080. -s/^[^=]*=[ ]*$//;
  28081. -}'
  28082. -fi
  28083. -
  28084. DEFS=-DHAVE_CONFIG_H
  28085. ac_libobjs=
  28086. ac_ltlibobjs=
  28087. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  28088. # 1. Remove the extension, and $U if already installed.
  28089. - ac_i=`echo "$ac_i" |
  28090. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  28091. - # 2. Add them.
  28092. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  28093. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  28094. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  28095. + ac_i=`echo "$ac_i" | sed "$ac_script"`
  28096. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  28097. + # will be set to the directory where LIBOBJS objects are built.
  28098. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  28099. + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  28100. done
  28101. LIBOBJS=$ac_libobjs
  28102. LTLIBOBJS=$ac_ltlibobjs
  28103. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  28104. + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  28105. +Usually this means the macro was only invoked conditionally." >&5
  28106. +echo "$as_me: error: conditional \"AMDEP\" was never defined.
  28107. +Usually this means the macro was only invoked conditionally." >&2;}
  28108. + { (exit 1); exit 1; }; }
  28109. +fi
  28110. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  28111. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  28112. +Usually this means the macro was only invoked conditionally." >&5
  28113. +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  28114. +Usually this means the macro was only invoked conditionally." >&2;}
  28115. + { (exit 1); exit 1; }; }
  28116. +fi
  28117. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  28118. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  28119. +Usually this means the macro was only invoked conditionally." >&5
  28120. +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  28121. +Usually this means the macro was only invoked conditionally." >&2;}
  28122. + { (exit 1); exit 1; }; }
  28123. +fi
  28124. : ${CONFIG_STATUS=./config.status}
  28125. ac_clean_files_save=$ac_clean_files
  28126. @@ -8941,17 +20234,45 @@
  28127. ## M4sh Initialization. ##
  28128. ## --------------------- ##
  28129. -# Be Bourne compatible
  28130. +# Be more Bourne compatible
  28131. +DUALCASE=1; export DUALCASE # for MKS sh
  28132. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  28133. emulate sh
  28134. NULLCMD=:
  28135. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  28136. # is contrary to our usage. Disable this feature.
  28137. alias -g '${1+"$@"}'='"$@"'
  28138. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  28139. - set -o posix
  28140. + setopt NO_GLOB_SUBST
  28141. +else
  28142. + case `(set -o) 2>/dev/null` in
  28143. + *posix*) set -o posix ;;
  28144. +esac
  28145. +
  28146. +fi
  28147. +
  28148. +
  28149. +
  28150. +
  28151. +# PATH needs CR
  28152. +# Avoid depending upon Character Ranges.
  28153. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28154. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  28155. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  28156. +as_cr_digits='0123456789'
  28157. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  28158. +
  28159. +# The user is always right.
  28160. +if test "${PATH_SEPARATOR+set}" != set; then
  28161. + echo "#! /bin/sh" >conf$$.sh
  28162. + echo "exit 0" >>conf$$.sh
  28163. + chmod +x conf$$.sh
  28164. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  28165. + PATH_SEPARATOR=';'
  28166. + else
  28167. + PATH_SEPARATOR=:
  28168. + fi
  28169. + rm -f conf$$.sh
  28170. fi
  28171. -DUALCASE=1; export DUALCASE # for MKS sh
  28172. # Support unset when possible.
  28173. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  28174. @@ -8961,8 +20282,43 @@
  28175. fi
  28176. +# IFS
  28177. +# We need space, tab and new line, in precisely that order. Quoting is
  28178. +# there to prevent editors from complaining about space-tab.
  28179. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  28180. +# splitting by setting IFS to empty value.)
  28181. +as_nl='
  28182. +'
  28183. +IFS=" "" $as_nl"
  28184. +
  28185. +# Find who we are. Look in the path if we contain no directory separator.
  28186. +case $0 in
  28187. + *[\\/]* ) as_myself=$0 ;;
  28188. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28189. +for as_dir in $PATH
  28190. +do
  28191. + IFS=$as_save_IFS
  28192. + test -z "$as_dir" && as_dir=.
  28193. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  28194. +done
  28195. +IFS=$as_save_IFS
  28196. +
  28197. + ;;
  28198. +esac
  28199. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  28200. +# in which case we are not to be found in the path.
  28201. +if test "x$as_myself" = x; then
  28202. + as_myself=$0
  28203. +fi
  28204. +if test ! -f "$as_myself"; then
  28205. + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  28206. + { (exit 1); exit 1; }
  28207. +fi
  28208. +
  28209. # Work around bugs in pre-3.0 UWIN ksh.
  28210. -$as_unset ENV MAIL MAILPATH
  28211. +for as_var in ENV MAIL MAILPATH
  28212. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  28213. +done
  28214. PS1='$ '
  28215. PS2='> '
  28216. PS4='+ '
  28217. @@ -8976,18 +20332,19 @@
  28218. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  28219. eval $as_var=C; export $as_var
  28220. else
  28221. - $as_unset $as_var
  28222. + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  28223. fi
  28224. done
  28225. # Required to use basename.
  28226. -if expr a : '\(a\)' >/dev/null 2>&1; then
  28227. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  28228. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  28229. as_expr=expr
  28230. else
  28231. as_expr=false
  28232. fi
  28233. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  28234. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  28235. as_basename=basename
  28236. else
  28237. as_basename=false
  28238. @@ -8995,159 +20352,120 @@
  28239. # Name of the executable.
  28240. -as_me=`$as_basename "$0" ||
  28241. +as_me=`$as_basename -- "$0" ||
  28242. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  28243. X"$0" : 'X\(//\)$' \| \
  28244. - X"$0" : 'X\(/\)$' \| \
  28245. - . : '\(.\)' 2>/dev/null ||
  28246. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  28247. echo X/"$0" |
  28248. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  28249. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  28250. - /^X\/\(\/\).*/{ s//\1/; q; }
  28251. - s/.*/./; q'`
  28252. -
  28253. -
  28254. -# PATH needs CR, and LINENO needs CR and PATH.
  28255. -# Avoid depending upon Character Ranges.
  28256. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28257. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  28258. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  28259. -as_cr_digits='0123456789'
  28260. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  28261. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  28262. + s//\1/
  28263. + q
  28264. + }
  28265. + /^X\/\(\/\/\)$/{
  28266. + s//\1/
  28267. + q
  28268. + }
  28269. + /^X\/\(\/\).*/{
  28270. + s//\1/
  28271. + q
  28272. + }
  28273. + s/.*/./; q'`
  28274. -# The user is always right.
  28275. -if test "${PATH_SEPARATOR+set}" != set; then
  28276. - echo "#! /bin/sh" >conf$$.sh
  28277. - echo "exit 0" >>conf$$.sh
  28278. - chmod +x conf$$.sh
  28279. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  28280. - PATH_SEPARATOR=';'
  28281. - else
  28282. - PATH_SEPARATOR=:
  28283. - fi
  28284. - rm -f conf$$.sh
  28285. -fi
  28286. +# CDPATH.
  28287. +$as_unset CDPATH
  28288. - as_lineno_1=$LINENO
  28289. - as_lineno_2=$LINENO
  28290. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  28291. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  28292. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  28293. - # Find who we are. Look in the path if we contain no path at all
  28294. - # relative or not.
  28295. - case $0 in
  28296. - *[\\/]* ) as_myself=$0 ;;
  28297. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28298. -for as_dir in $PATH
  28299. -do
  28300. - IFS=$as_save_IFS
  28301. - test -z "$as_dir" && as_dir=.
  28302. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  28303. -done
  28304. - ;;
  28305. - esac
  28306. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  28307. - # in which case we are not to be found in the path.
  28308. - if test "x$as_myself" = x; then
  28309. - as_myself=$0
  28310. - fi
  28311. - if test ! -f "$as_myself"; then
  28312. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  28313. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  28314. - { (exit 1); exit 1; }; }
  28315. - fi
  28316. - case $CONFIG_SHELL in
  28317. - '')
  28318. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28319. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  28320. -do
  28321. - IFS=$as_save_IFS
  28322. - test -z "$as_dir" && as_dir=.
  28323. - for as_base in sh bash ksh sh5; do
  28324. - case $as_dir in
  28325. - /*)
  28326. - if ("$as_dir/$as_base" -c '
  28327. as_lineno_1=$LINENO
  28328. as_lineno_2=$LINENO
  28329. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  28330. test "x$as_lineno_1" != "x$as_lineno_2" &&
  28331. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  28332. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  28333. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  28334. - CONFIG_SHELL=$as_dir/$as_base
  28335. - export CONFIG_SHELL
  28336. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  28337. - fi;;
  28338. - esac
  28339. - done
  28340. -done
  28341. -;;
  28342. - esac
  28343. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  28344. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  28345. # uniformly replaced by the line number. The first 'sed' inserts a
  28346. - # line-number line before each line; the second 'sed' does the real
  28347. - # work. The second script uses 'N' to pair each line-number line
  28348. - # with the numbered line, and appends trailing '-' during
  28349. - # substitution so that $LINENO is not a special case at line end.
  28350. + # line-number line after each line using $LINENO; the second 'sed'
  28351. + # does the real work. The second script uses 'N' to pair each
  28352. + # line-number line with the line containing $LINENO, and appends
  28353. + # trailing '-' during substitution so that $LINENO is not a special
  28354. + # case at line end.
  28355. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  28356. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  28357. - sed '=' <$as_myself |
  28358. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  28359. + # E. McMahon (1931-1989) for sed's syntax. :-)
  28360. + sed -n '
  28361. + p
  28362. + /[$]LINENO/=
  28363. + ' <$as_myself |
  28364. sed '
  28365. + s/[$]LINENO.*/&-/
  28366. + t lineno
  28367. + b
  28368. + :lineno
  28369. N
  28370. - s,$,-,
  28371. - : loop
  28372. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  28373. + :loop
  28374. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  28375. t loop
  28376. - s,-$,,
  28377. - s,^['$as_cr_digits']*\n,,
  28378. + s/-\n.*//
  28379. ' >$as_me.lineno &&
  28380. - chmod +x $as_me.lineno ||
  28381. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  28382. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  28383. + chmod +x "$as_me.lineno" ||
  28384. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  28385. { (exit 1); exit 1; }; }
  28386. # Don't try to exec as it changes $[0], causing all sort of problems
  28387. # (the dirname of $[0] is not the place where we might find the
  28388. - # original and so on. Autoconf is especially sensible to this).
  28389. - . ./$as_me.lineno
  28390. + # original and so on. Autoconf is especially sensitive to this).
  28391. + . "./$as_me.lineno"
  28392. # Exit status is that of the last command.
  28393. exit
  28394. }
  28395. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  28396. - *c*,-n*) ECHO_N= ECHO_C='
  28397. -' ECHO_T=' ' ;;
  28398. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  28399. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  28400. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  28401. + as_dirname=dirname
  28402. +else
  28403. + as_dirname=false
  28404. +fi
  28405. +
  28406. +ECHO_C= ECHO_N= ECHO_T=
  28407. +case `echo -n x` in
  28408. +-n*)
  28409. + case `echo 'x\c'` in
  28410. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  28411. + *) ECHO_C='\c';;
  28412. + esac;;
  28413. +*)
  28414. + ECHO_N='-n';;
  28415. esac
  28416. -if expr a : '\(a\)' >/dev/null 2>&1; then
  28417. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  28418. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  28419. as_expr=expr
  28420. else
  28421. as_expr=false
  28422. fi
  28423. rm -f conf$$ conf$$.exe conf$$.file
  28424. +if test -d conf$$.dir; then
  28425. + rm -f conf$$.dir/conf$$.file
  28426. +else
  28427. + rm -f conf$$.dir
  28428. + mkdir conf$$.dir
  28429. +fi
  28430. echo >conf$$.file
  28431. if ln -s conf$$.file conf$$ 2>/dev/null; then
  28432. - # We could just check for DJGPP; but this test a) works b) is more generic
  28433. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  28434. - if test -f conf$$.exe; then
  28435. - # Don't use ln at all; we don't have any links
  28436. + as_ln_s='ln -s'
  28437. + # ... but there are two gotchas:
  28438. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  28439. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  28440. + # In both cases, we have to default to `cp -p'.
  28441. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  28442. as_ln_s='cp -p'
  28443. - else
  28444. - as_ln_s='ln -s'
  28445. - fi
  28446. elif ln conf$$.file conf$$ 2>/dev/null; then
  28447. as_ln_s=ln
  28448. else
  28449. as_ln_s='cp -p'
  28450. fi
  28451. -rm -f conf$$ conf$$.exe conf$$.file
  28452. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  28453. +rmdir conf$$.dir 2>/dev/null
  28454. if mkdir -p . 2>/dev/null; then
  28455. as_mkdir_p=:
  28456. @@ -9155,8 +20473,29 @@
  28457. test -d ./-p && rmdir ./-p
  28458. as_mkdir_p=false
  28459. fi
  28460. -
  28461. -as_executable_p="test -f"
  28462. +
  28463. +if test -x / >/dev/null 2>&1; then
  28464. + as_test_x='test -x'
  28465. +else
  28466. + if ls -dL / >/dev/null 2>&1; then
  28467. + as_ls_L_option=L
  28468. + else
  28469. + as_ls_L_option=
  28470. + fi
  28471. + as_test_x='
  28472. + eval sh -c '\''
  28473. + if test -d "$1"; then
  28474. + test -d "$1/.";
  28475. + else
  28476. + case $1 in
  28477. + -*)set "./$1";;
  28478. + esac;
  28479. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  28480. + ???[sx]*):;;*)false;;esac;fi
  28481. + '\'' sh
  28482. + '
  28483. +fi
  28484. +as_executable_p=$as_test_x
  28485. # Sed expression to map a string onto a valid CPP name.
  28486. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  28487. @@ -9165,31 +20504,14 @@
  28488. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  28489. -# IFS
  28490. -# We need space, tab and new line, in precisely that order.
  28491. -as_nl='
  28492. -'
  28493. -IFS=" $as_nl"
  28494. -
  28495. -# CDPATH.
  28496. -$as_unset CDPATH
  28497. -
  28498. exec 6>&1
  28499. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  28500. +# Save the log message, to keep $[0] and so on meaningful, and to
  28501. # report actual input values of CONFIG_FILES etc. instead of their
  28502. -# values after options handling. Logging --version etc. is OK.
  28503. -exec 5>>config.log
  28504. -{
  28505. - echo
  28506. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  28507. -## Running $as_me. ##
  28508. -_ASBOX
  28509. -} >&5
  28510. -cat >&5 <<_CSEOF
  28511. -
  28512. +# values after options handling.
  28513. +ac_log="
  28514. This file was extended by $as_me, which was
  28515. -generated by GNU Autoconf 2.59. Invocation command line was
  28516. +generated by GNU Autoconf 2.61. Invocation command line was
  28517. CONFIG_FILES = $CONFIG_FILES
  28518. CONFIG_HEADERS = $CONFIG_HEADERS
  28519. @@ -9197,30 +20519,20 @@
  28520. CONFIG_COMMANDS = $CONFIG_COMMANDS
  28521. $ $0 $@
  28522. -_CSEOF
  28523. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  28524. -echo >&5
  28525. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  28526. +"
  28527. +
  28528. _ACEOF
  28529. +cat >>$CONFIG_STATUS <<_ACEOF
  28530. # Files that config.status was made for.
  28531. -if test -n "$ac_config_files"; then
  28532. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  28533. -fi
  28534. -
  28535. -if test -n "$ac_config_headers"; then
  28536. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  28537. -fi
  28538. -
  28539. -if test -n "$ac_config_links"; then
  28540. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  28541. -fi
  28542. +config_files="$ac_config_files"
  28543. +config_headers="$ac_config_headers"
  28544. +config_commands="$ac_config_commands"
  28545. -if test -n "$ac_config_commands"; then
  28546. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  28547. -fi
  28548. +_ACEOF
  28549. cat >>$CONFIG_STATUS <<\_ACEOF
  28550. -
  28551. ac_cs_usage="\
  28552. \`$as_me' instantiates files from templates according to the
  28553. current configuration.
  28554. @@ -9228,7 +20540,7 @@
  28555. Usage: $0 [OPTIONS] [FILE]...
  28556. -h, --help print this help, then exit
  28557. - -V, --version print version number, then exit
  28558. + -V, --version print version number and configuration settings, then exit
  28559. -q, --quiet do not print progress messages
  28560. -d, --debug don't remove temporary files
  28561. --recheck update $as_me by reconfiguring in the same conditions
  28562. @@ -9247,19 +20559,21 @@
  28563. $config_commands
  28564. Report bugs to <[email protected]>."
  28565. -_ACEOF
  28566. +_ACEOF
  28567. cat >>$CONFIG_STATUS <<_ACEOF
  28568. ac_cs_version="\\
  28569. config.status
  28570. -configured by $0, generated by GNU Autoconf 2.59,
  28571. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  28572. +configured by $0, generated by GNU Autoconf 2.61,
  28573. + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  28574. -Copyright (C) 2003 Free Software Foundation, Inc.
  28575. +Copyright (C) 2006 Free Software Foundation, Inc.
  28576. This config.status script is free software; the Free Software Foundation
  28577. gives unlimited permission to copy, distribute and modify it."
  28578. -srcdir=$srcdir
  28579. -INSTALL="$INSTALL"
  28580. +
  28581. +ac_pwd='$ac_pwd'
  28582. +srcdir='$srcdir'
  28583. +INSTALL='$INSTALL'
  28584. _ACEOF
  28585. cat >>$CONFIG_STATUS <<\_ACEOF
  28586. @@ -9270,39 +20584,24 @@
  28587. do
  28588. case $1 in
  28589. --*=*)
  28590. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  28591. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  28592. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  28593. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  28594. ac_shift=:
  28595. ;;
  28596. - -*)
  28597. + *)
  28598. ac_option=$1
  28599. ac_optarg=$2
  28600. ac_shift=shift
  28601. ;;
  28602. - *) # This is not an option, so the user has probably given explicit
  28603. - # arguments.
  28604. - ac_option=$1
  28605. - ac_need_defaults=false;;
  28606. esac
  28607. case $ac_option in
  28608. # Handling of the options.
  28609. -_ACEOF
  28610. -cat >>$CONFIG_STATUS <<\_ACEOF
  28611. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  28612. ac_cs_recheck=: ;;
  28613. - --version | --vers* | -V )
  28614. - echo "$ac_cs_version"; exit 0 ;;
  28615. - --he | --h)
  28616. - # Conflict between --help and --header
  28617. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  28618. -Try \`$0 --help' for more information." >&5
  28619. -echo "$as_me: error: ambiguous option: $1
  28620. -Try \`$0 --help' for more information." >&2;}
  28621. - { (exit 1); exit 1; }; };;
  28622. - --help | --hel | -h )
  28623. - echo "$ac_cs_usage"; exit 0 ;;
  28624. - --debug | --d* | -d )
  28625. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  28626. + echo "$ac_cs_version"; exit ;;
  28627. + --debug | --debu | --deb | --de | --d | -d )
  28628. debug=: ;;
  28629. --file | --fil | --fi | --f )
  28630. $ac_shift
  28631. @@ -9312,18 +20611,24 @@
  28632. $ac_shift
  28633. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  28634. ac_need_defaults=false;;
  28635. + --he | --h)
  28636. + # Conflict between --help and --header
  28637. + { echo "$as_me: error: ambiguous option: $1
  28638. +Try \`$0 --help' for more information." >&2
  28639. + { (exit 1); exit 1; }; };;
  28640. + --help | --hel | -h )
  28641. + echo "$ac_cs_usage"; exit ;;
  28642. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  28643. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  28644. ac_cs_silent=: ;;
  28645. # This is an error.
  28646. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  28647. -Try \`$0 --help' for more information." >&5
  28648. -echo "$as_me: error: unrecognized option: $1
  28649. -Try \`$0 --help' for more information." >&2;}
  28650. + -*) { echo "$as_me: error: unrecognized option: $1
  28651. +Try \`$0 --help' for more information." >&2
  28652. { (exit 1); exit 1; }; } ;;
  28653. - *) ac_config_targets="$ac_config_targets $1" ;;
  28654. + *) ac_config_targets="$ac_config_targets $1"
  28655. + ac_need_defaults=false ;;
  28656. esac
  28657. shift
  28658. @@ -9339,43 +20644,55 @@
  28659. _ACEOF
  28660. cat >>$CONFIG_STATUS <<_ACEOF
  28661. if \$ac_cs_recheck; then
  28662. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  28663. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  28664. + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  28665. + CONFIG_SHELL=$SHELL
  28666. + export CONFIG_SHELL
  28667. + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  28668. fi
  28669. _ACEOF
  28670. +cat >>$CONFIG_STATUS <<\_ACEOF
  28671. +exec 5>>config.log
  28672. +{
  28673. + echo
  28674. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  28675. +## Running $as_me. ##
  28676. +_ASBOX
  28677. + echo "$ac_log"
  28678. +} >&5
  28679. +_ACEOF
  28680. cat >>$CONFIG_STATUS <<_ACEOF
  28681. #
  28682. -# INIT-COMMANDS section.
  28683. +# INIT-COMMANDS
  28684. #
  28685. -
  28686. -
  28687. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  28688. _ACEOF
  28689. -
  28690. -
  28691. cat >>$CONFIG_STATUS <<\_ACEOF
  28692. +
  28693. +# Handling of arguments.
  28694. for ac_config_target in $ac_config_targets
  28695. do
  28696. - case "$ac_config_target" in
  28697. - # Handling of arguments.
  28698. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  28699. - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  28700. - "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  28701. - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  28702. - "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  28703. - "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  28704. - "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
  28705. - "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  28706. - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  28707. + case $ac_config_target in
  28708. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  28709. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  28710. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  28711. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  28712. + "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  28713. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  28714. + "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  28715. + "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  28716. + "src/arpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
  28717. +
  28718. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  28719. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  28720. { (exit 1); exit 1; }; };;
  28721. esac
  28722. done
  28723. +
  28724. # If the user did not use the arguments to specify the items to instantiate,
  28725. # then the envvar interface is used. Set only those that are not.
  28726. # We use the long form for the default assignment because of an extremely
  28727. @@ -9387,335 +20704,471 @@
  28728. fi
  28729. # Have a temporary directory for convenience. Make it in the build tree
  28730. -# simply because there is no reason to put it here, and in addition,
  28731. +# simply because there is no reason against having it here, and in addition,
  28732. # creating and moving files from /tmp can sometimes cause problems.
  28733. -# Create a temporary directory, and hook for its removal unless debugging.
  28734. +# Hook for its removal unless debugging.
  28735. +# Note that there is a small window in which the directory will not be cleaned:
  28736. +# after its creation but before its name has been assigned to `$tmp'.
  28737. $debug ||
  28738. {
  28739. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  28740. + tmp=
  28741. + trap 'exit_status=$?
  28742. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  28743. +' 0
  28744. trap '{ (exit 1); exit 1; }' 1 2 13 15
  28745. }
  28746. -
  28747. # Create a (secure) tmp directory for tmp files.
  28748. {
  28749. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  28750. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  28751. test -n "$tmp" && test -d "$tmp"
  28752. } ||
  28753. {
  28754. - tmp=./confstat$$-$RANDOM
  28755. - (umask 077 && mkdir $tmp)
  28756. + tmp=./conf$$-$RANDOM
  28757. + (umask 077 && mkdir "$tmp")
  28758. } ||
  28759. {
  28760. echo "$me: cannot create a temporary directory in ." >&2
  28761. { (exit 1); exit 1; }
  28762. }
  28763. -_ACEOF
  28764. -
  28765. -cat >>$CONFIG_STATUS <<_ACEOF
  28766. -
  28767. #
  28768. -# CONFIG_FILES section.
  28769. +# Set up the sed scripts for CONFIG_FILES section.
  28770. #
  28771. # No need to generate the scripts if there are no CONFIG_FILES.
  28772. # This happens for instance when ./config.status config.h
  28773. -if test -n "\$CONFIG_FILES"; then
  28774. - # Protect against being on the right side of a sed subst in config.status.
  28775. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  28776. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  28777. -s,@SHELL@,$SHELL,;t t
  28778. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  28779. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  28780. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  28781. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  28782. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  28783. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  28784. -s,@exec_prefix@,$exec_prefix,;t t
  28785. -s,@prefix@,$prefix,;t t
  28786. -s,@program_transform_name@,$program_transform_name,;t t
  28787. -s,@bindir@,$bindir,;t t
  28788. -s,@sbindir@,$sbindir,;t t
  28789. -s,@libexecdir@,$libexecdir,;t t
  28790. -s,@datadir@,$datadir,;t t
  28791. -s,@sysconfdir@,$sysconfdir,;t t
  28792. -s,@sharedstatedir@,$sharedstatedir,;t t
  28793. -s,@localstatedir@,$localstatedir,;t t
  28794. -s,@libdir@,$libdir,;t t
  28795. -s,@includedir@,$includedir,;t t
  28796. -s,@oldincludedir@,$oldincludedir,;t t
  28797. -s,@infodir@,$infodir,;t t
  28798. -s,@mandir@,$mandir,;t t
  28799. -s,@build_alias@,$build_alias,;t t
  28800. -s,@host_alias@,$host_alias,;t t
  28801. -s,@target_alias@,$target_alias,;t t
  28802. -s,@DEFS@,$DEFS,;t t
  28803. -s,@ECHO_C@,$ECHO_C,;t t
  28804. -s,@ECHO_N@,$ECHO_N,;t t
  28805. -s,@ECHO_T@,$ECHO_T,;t t
  28806. -s,@LIBS@,$LIBS,;t t
  28807. -s,@build@,$build,;t t
  28808. -s,@build_cpu@,$build_cpu,;t t
  28809. -s,@build_vendor@,$build_vendor,;t t
  28810. -s,@build_os@,$build_os,;t t
  28811. -s,@host@,$host,;t t
  28812. -s,@host_cpu@,$host_cpu,;t t
  28813. -s,@host_vendor@,$host_vendor,;t t
  28814. -s,@host_os@,$host_os,;t t
  28815. -s,@target@,$target,;t t
  28816. -s,@target_cpu@,$target_cpu,;t t
  28817. -s,@target_vendor@,$target_vendor,;t t
  28818. -s,@target_os@,$target_os,;t t
  28819. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  28820. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  28821. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  28822. -s,@PACKAGE@,$PACKAGE,;t t
  28823. -s,@VERSION@,$VERSION,;t t
  28824. -s,@ACLOCAL@,$ACLOCAL,;t t
  28825. -s,@AUTOCONF@,$AUTOCONF,;t t
  28826. -s,@AUTOMAKE@,$AUTOMAKE,;t t
  28827. -s,@AUTOHEADER@,$AUTOHEADER,;t t
  28828. -s,@MAKEINFO@,$MAKEINFO,;t t
  28829. -s,@SET_MAKE@,$SET_MAKE,;t t
  28830. -s,@LIBVER_CURRENT@,$LIBVER_CURRENT,;t t
  28831. -s,@LIBVER_REVISION@,$LIBVER_REVISION,;t t
  28832. -s,@LIBVER_AGE@,$LIBVER_AGE,;t t
  28833. -s,@CC@,$CC,;t t
  28834. -s,@CFLAGS@,$CFLAGS,;t t
  28835. -s,@LDFLAGS@,$LDFLAGS,;t t
  28836. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  28837. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  28838. -s,@EXEEXT@,$EXEEXT,;t t
  28839. -s,@OBJEXT@,$OBJEXT,;t t
  28840. -s,@LEX@,$LEX,;t t
  28841. -s,@LEXLIB@,$LEXLIB,;t t
  28842. -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
  28843. -s,@YACC@,$YACC,;t t
  28844. -s,@LN_S@,$LN_S,;t t
  28845. -s,@ECHO@,$ECHO,;t t
  28846. -s,@RANLIB@,$RANLIB,;t t
  28847. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  28848. -s,@STRIP@,$STRIP,;t t
  28849. -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  28850. -s,@CPP@,$CPP,;t t
  28851. -s,@EGREP@,$EGREP,;t t
  28852. -s,@LIBTOOL@,$LIBTOOL,;t t
  28853. -s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
  28854. -s,@PERL@,$PERL,;t t
  28855. -s,@LIBOBJS@,$LIBOBJS,;t t
  28856. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  28857. -CEOF
  28858. -
  28859. -_ACEOF
  28860. -
  28861. - cat >>$CONFIG_STATUS <<\_ACEOF
  28862. - # Split the substitutions into bite-sized pieces for seds with
  28863. - # small command number limits, like on Digital OSF/1 and HP-UX.
  28864. - ac_max_sed_lines=48
  28865. - ac_sed_frag=1 # Number of current file.
  28866. - ac_beg=1 # First line for current file.
  28867. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  28868. - ac_more_lines=:
  28869. - ac_sed_cmds=
  28870. - while $ac_more_lines; do
  28871. - if test $ac_beg -gt 1; then
  28872. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  28873. - else
  28874. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  28875. - fi
  28876. - if test ! -s $tmp/subs.frag; then
  28877. - ac_more_lines=false
  28878. - else
  28879. - # The purpose of the label and of the branching condition is to
  28880. - # speed up the sed processing (if there are no `@' at all, there
  28881. - # is no need to browse any of the substitutions).
  28882. - # These are the two extra sed commands mentioned above.
  28883. - (echo ':t
  28884. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  28885. - if test -z "$ac_sed_cmds"; then
  28886. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  28887. - else
  28888. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  28889. - fi
  28890. - ac_sed_frag=`expr $ac_sed_frag + 1`
  28891. - ac_beg=$ac_end
  28892. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  28893. - fi
  28894. - done
  28895. - if test -z "$ac_sed_cmds"; then
  28896. - ac_sed_cmds=cat
  28897. +if test -n "$CONFIG_FILES"; then
  28898. +
  28899. +_ACEOF
  28900. +
  28901. +
  28902. +
  28903. +ac_delim='%!_!# '
  28904. +for ac_last_try in false false false false false :; do
  28905. + cat >conf$$subs.sed <<_ACEOF
  28906. +SHELL!$SHELL$ac_delim
  28907. +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  28908. +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  28909. +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  28910. +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  28911. +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  28912. +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  28913. +exec_prefix!$exec_prefix$ac_delim
  28914. +prefix!$prefix$ac_delim
  28915. +program_transform_name!$program_transform_name$ac_delim
  28916. +bindir!$bindir$ac_delim
  28917. +sbindir!$sbindir$ac_delim
  28918. +libexecdir!$libexecdir$ac_delim
  28919. +datarootdir!$datarootdir$ac_delim
  28920. +datadir!$datadir$ac_delim
  28921. +sysconfdir!$sysconfdir$ac_delim
  28922. +sharedstatedir!$sharedstatedir$ac_delim
  28923. +localstatedir!$localstatedir$ac_delim
  28924. +includedir!$includedir$ac_delim
  28925. +oldincludedir!$oldincludedir$ac_delim
  28926. +docdir!$docdir$ac_delim
  28927. +infodir!$infodir$ac_delim
  28928. +htmldir!$htmldir$ac_delim
  28929. +dvidir!$dvidir$ac_delim
  28930. +pdfdir!$pdfdir$ac_delim
  28931. +psdir!$psdir$ac_delim
  28932. +libdir!$libdir$ac_delim
  28933. +localedir!$localedir$ac_delim
  28934. +mandir!$mandir$ac_delim
  28935. +DEFS!$DEFS$ac_delim
  28936. +ECHO_C!$ECHO_C$ac_delim
  28937. +ECHO_N!$ECHO_N$ac_delim
  28938. +ECHO_T!$ECHO_T$ac_delim
  28939. +LIBS!$LIBS$ac_delim
  28940. +build_alias!$build_alias$ac_delim
  28941. +host_alias!$host_alias$ac_delim
  28942. +target_alias!$target_alias$ac_delim
  28943. +build!$build$ac_delim
  28944. +build_cpu!$build_cpu$ac_delim
  28945. +build_vendor!$build_vendor$ac_delim
  28946. +build_os!$build_os$ac_delim
  28947. +host!$host$ac_delim
  28948. +host_cpu!$host_cpu$ac_delim
  28949. +host_vendor!$host_vendor$ac_delim
  28950. +host_os!$host_os$ac_delim
  28951. +target!$target$ac_delim
  28952. +target_cpu!$target_cpu$ac_delim
  28953. +target_vendor!$target_vendor$ac_delim
  28954. +target_os!$target_os$ac_delim
  28955. +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  28956. +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  28957. +INSTALL_DATA!$INSTALL_DATA$ac_delim
  28958. +CYGPATH_W!$CYGPATH_W$ac_delim
  28959. +PACKAGE!$PACKAGE$ac_delim
  28960. +VERSION!$VERSION$ac_delim
  28961. +ACLOCAL!$ACLOCAL$ac_delim
  28962. +AUTOCONF!$AUTOCONF$ac_delim
  28963. +AUTOMAKE!$AUTOMAKE$ac_delim
  28964. +AUTOHEADER!$AUTOHEADER$ac_delim
  28965. +MAKEINFO!$MAKEINFO$ac_delim
  28966. +install_sh!$install_sh$ac_delim
  28967. +STRIP!$STRIP$ac_delim
  28968. +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  28969. +mkdir_p!$mkdir_p$ac_delim
  28970. +AWK!$AWK$ac_delim
  28971. +SET_MAKE!$SET_MAKE$ac_delim
  28972. +am__leading_dot!$am__leading_dot$ac_delim
  28973. +AMTAR!$AMTAR$ac_delim
  28974. +am__tar!$am__tar$ac_delim
  28975. +am__untar!$am__untar$ac_delim
  28976. +LIBVER_CURRENT!$LIBVER_CURRENT$ac_delim
  28977. +LIBVER_REVISION!$LIBVER_REVISION$ac_delim
  28978. +LIBVER_AGE!$LIBVER_AGE$ac_delim
  28979. +CC!$CC$ac_delim
  28980. +CFLAGS!$CFLAGS$ac_delim
  28981. +LDFLAGS!$LDFLAGS$ac_delim
  28982. +CPPFLAGS!$CPPFLAGS$ac_delim
  28983. +ac_ct_CC!$ac_ct_CC$ac_delim
  28984. +EXEEXT!$EXEEXT$ac_delim
  28985. +OBJEXT!$OBJEXT$ac_delim
  28986. +DEPDIR!$DEPDIR$ac_delim
  28987. +am__include!$am__include$ac_delim
  28988. +am__quote!$am__quote$ac_delim
  28989. +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  28990. +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  28991. +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  28992. +CCDEPMODE!$CCDEPMODE$ac_delim
  28993. +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  28994. +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  28995. +LEX!$LEX$ac_delim
  28996. +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
  28997. +LEXLIB!$LEXLIB$ac_delim
  28998. +YACC!$YACC$ac_delim
  28999. +YFLAGS!$YFLAGS$ac_delim
  29000. +GREP!$GREP$ac_delim
  29001. +EGREP!$EGREP$ac_delim
  29002. +LN_S!$LN_S$ac_delim
  29003. +_ACEOF
  29004. +
  29005. + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  29006. + break
  29007. + elif $ac_last_try; then
  29008. + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  29009. +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  29010. + { (exit 1); exit 1; }; }
  29011. + else
  29012. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29013. fi
  29014. -fi # test -n "$CONFIG_FILES"
  29015. +done
  29016. +
  29017. +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  29018. +if test -n "$ac_eof"; then
  29019. + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  29020. + ac_eof=`expr $ac_eof + 1`
  29021. +fi
  29022. +
  29023. +cat >>$CONFIG_STATUS <<_ACEOF
  29024. +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  29025. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  29026. +_ACEOF
  29027. +sed '
  29028. +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  29029. +s/^/s,@/; s/!/@,|#_!!_#|/
  29030. +:n
  29031. +t n
  29032. +s/'"$ac_delim"'$/,g/; t
  29033. +s/$/\\/; p
  29034. +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  29035. +' >>$CONFIG_STATUS <conf$$subs.sed
  29036. +rm -f conf$$subs.sed
  29037. +cat >>$CONFIG_STATUS <<_ACEOF
  29038. +CEOF$ac_eof
  29039. +_ACEOF
  29040. +
  29041. +
  29042. +ac_delim='%!_!# '
  29043. +for ac_last_try in false false false false false :; do
  29044. + cat >conf$$subs.sed <<_ACEOF
  29045. +ECHO!$ECHO$ac_delim
  29046. +AR!$AR$ac_delim
  29047. +RANLIB!$RANLIB$ac_delim
  29048. +CPP!$CPP$ac_delim
  29049. +CXX!$CXX$ac_delim
  29050. +CXXFLAGS!$CXXFLAGS$ac_delim
  29051. +ac_ct_CXX!$ac_ct_CXX$ac_delim
  29052. +CXXDEPMODE!$CXXDEPMODE$ac_delim
  29053. +am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  29054. +am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  29055. +CXXCPP!$CXXCPP$ac_delim
  29056. +F77!$F77$ac_delim
  29057. +FFLAGS!$FFLAGS$ac_delim
  29058. +ac_ct_F77!$ac_ct_F77$ac_delim
  29059. +LIBTOOL!$LIBTOOL$ac_delim
  29060. +LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
  29061. +PERL!$PERL$ac_delim
  29062. +LIBOBJS!$LIBOBJS$ac_delim
  29063. +LTLIBOBJS!$LTLIBOBJS$ac_delim
  29064. +_ACEOF
  29065. +
  29066. + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
  29067. + break
  29068. + elif $ac_last_try; then
  29069. + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  29070. +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  29071. + { (exit 1); exit 1; }; }
  29072. + else
  29073. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29074. + fi
  29075. +done
  29076. +
  29077. +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  29078. +if test -n "$ac_eof"; then
  29079. + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  29080. + ac_eof=`expr $ac_eof + 1`
  29081. +fi
  29082. +cat >>$CONFIG_STATUS <<_ACEOF
  29083. +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  29084. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  29085. _ACEOF
  29086. +sed '
  29087. +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  29088. +s/^/s,@/; s/!/@,|#_!!_#|/
  29089. +:n
  29090. +t n
  29091. +s/'"$ac_delim"'$/,g/; t
  29092. +s/$/\\/; p
  29093. +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  29094. +' >>$CONFIG_STATUS <conf$$subs.sed
  29095. +rm -f conf$$subs.sed
  29096. +cat >>$CONFIG_STATUS <<_ACEOF
  29097. +:end
  29098. +s/|#_!!_#|//g
  29099. +CEOF$ac_eof
  29100. +_ACEOF
  29101. +
  29102. +
  29103. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  29104. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  29105. +# trailing colons and then remove the whole line if VPATH becomes empty
  29106. +# (actually we leave an empty line to preserve line numbers).
  29107. +if test "x$srcdir" = x.; then
  29108. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  29109. +s/:*\$(srcdir):*/:/
  29110. +s/:*\${srcdir}:*/:/
  29111. +s/:*@srcdir@:*/:/
  29112. +s/^\([^=]*=[ ]*\):*/\1/
  29113. +s/:*$//
  29114. +s/^[^=]*=[ ]*$//
  29115. +}'
  29116. +fi
  29117. +
  29118. cat >>$CONFIG_STATUS <<\_ACEOF
  29119. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  29120. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  29121. - case $ac_file in
  29122. - - | *:- | *:-:* ) # input from stdin
  29123. - cat >$tmp/stdin
  29124. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  29125. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  29126. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  29127. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  29128. - * ) ac_file_in=$ac_file.in ;;
  29129. +fi # test -n "$CONFIG_FILES"
  29130. +
  29131. +
  29132. +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  29133. +do
  29134. + case $ac_tag in
  29135. + :[FHLC]) ac_mode=$ac_tag; continue;;
  29136. + esac
  29137. + case $ac_mode$ac_tag in
  29138. + :[FHL]*:*);;
  29139. + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  29140. +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  29141. + { (exit 1); exit 1; }; };;
  29142. + :[FH]-) ac_tag=-:-;;
  29143. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  29144. + esac
  29145. + ac_save_IFS=$IFS
  29146. + IFS=:
  29147. + set x $ac_tag
  29148. + IFS=$ac_save_IFS
  29149. + shift
  29150. + ac_file=$1
  29151. + shift
  29152. +
  29153. + case $ac_mode in
  29154. + :L) ac_source=$1;;
  29155. + :[FH])
  29156. + ac_file_inputs=
  29157. + for ac_f
  29158. + do
  29159. + case $ac_f in
  29160. + -) ac_f="$tmp/stdin";;
  29161. + *) # Look for the file first in the build tree, then in the source tree
  29162. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  29163. + # because $ac_f cannot contain `:'.
  29164. + test -f "$ac_f" ||
  29165. + case $ac_f in
  29166. + [\\/$]*) false;;
  29167. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  29168. + esac ||
  29169. + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  29170. +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  29171. + { (exit 1); exit 1; }; };;
  29172. + esac
  29173. + ac_file_inputs="$ac_file_inputs $ac_f"
  29174. + done
  29175. +
  29176. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  29177. + # use $as_me), people would be surprised to read:
  29178. + # /* config.h. Generated by config.status. */
  29179. + configure_input="Generated from "`IFS=:
  29180. + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  29181. + if test x"$ac_file" != x-; then
  29182. + configure_input="$ac_file. $configure_input"
  29183. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  29184. +echo "$as_me: creating $ac_file" >&6;}
  29185. + fi
  29186. +
  29187. + case $ac_tag in
  29188. + *:-:* | *:-) cat >"$tmp/stdin";;
  29189. + esac
  29190. + ;;
  29191. esac
  29192. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  29193. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  29194. + ac_dir=`$as_dirname -- "$ac_file" ||
  29195. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29196. X"$ac_file" : 'X\(//\)[^/]' \| \
  29197. X"$ac_file" : 'X\(//\)$' \| \
  29198. - X"$ac_file" : 'X\(/\)' \| \
  29199. - . : '\(.\)' 2>/dev/null ||
  29200. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  29201. echo X"$ac_file" |
  29202. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  29203. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  29204. - /^X\(\/\/\)$/{ s//\1/; q; }
  29205. - /^X\(\/\).*/{ s//\1/; q; }
  29206. - s/.*/./; q'`
  29207. - { if $as_mkdir_p; then
  29208. - mkdir -p "$ac_dir"
  29209. - else
  29210. - as_dir="$ac_dir"
  29211. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29212. + s//\1/
  29213. + q
  29214. + }
  29215. + /^X\(\/\/\)[^/].*/{
  29216. + s//\1/
  29217. + q
  29218. + }
  29219. + /^X\(\/\/\)$/{
  29220. + s//\1/
  29221. + q
  29222. + }
  29223. + /^X\(\/\).*/{
  29224. + s//\1/
  29225. + q
  29226. + }
  29227. + s/.*/./; q'`
  29228. + { as_dir="$ac_dir"
  29229. + case $as_dir in #(
  29230. + -*) as_dir=./$as_dir;;
  29231. + esac
  29232. + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  29233. as_dirs=
  29234. - while test ! -d "$as_dir"; do
  29235. - as_dirs="$as_dir $as_dirs"
  29236. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  29237. + while :; do
  29238. + case $as_dir in #(
  29239. + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  29240. + *) as_qdir=$as_dir;;
  29241. + esac
  29242. + as_dirs="'$as_qdir' $as_dirs"
  29243. + as_dir=`$as_dirname -- "$as_dir" ||
  29244. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29245. X"$as_dir" : 'X\(//\)[^/]' \| \
  29246. X"$as_dir" : 'X\(//\)$' \| \
  29247. - X"$as_dir" : 'X\(/\)' \| \
  29248. - . : '\(.\)' 2>/dev/null ||
  29249. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  29250. echo X"$as_dir" |
  29251. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  29252. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  29253. - /^X\(\/\/\)$/{ s//\1/; q; }
  29254. - /^X\(\/\).*/{ s//\1/; q; }
  29255. - s/.*/./; q'`
  29256. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29257. + s//\1/
  29258. + q
  29259. + }
  29260. + /^X\(\/\/\)[^/].*/{
  29261. + s//\1/
  29262. + q
  29263. + }
  29264. + /^X\(\/\/\)$/{
  29265. + s//\1/
  29266. + q
  29267. + }
  29268. + /^X\(\/\).*/{
  29269. + s//\1/
  29270. + q
  29271. + }
  29272. + s/.*/./; q'`
  29273. + test -d "$as_dir" && break
  29274. done
  29275. - test ! -n "$as_dirs" || mkdir $as_dirs
  29276. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  29277. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  29278. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  29279. + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  29280. +echo "$as_me: error: cannot create directory $as_dir" >&2;}
  29281. { (exit 1); exit 1; }; }; }
  29282. -
  29283. ac_builddir=.
  29284. -if test "$ac_dir" != .; then
  29285. +case "$ac_dir" in
  29286. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  29287. +*)
  29288. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  29289. - # A "../" for each directory in $ac_dir_suffix.
  29290. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  29291. -else
  29292. - ac_dir_suffix= ac_top_builddir=
  29293. -fi
  29294. + # A ".." for each directory in $ac_dir_suffix.
  29295. + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  29296. + case $ac_top_builddir_sub in
  29297. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  29298. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  29299. + esac ;;
  29300. +esac
  29301. +ac_abs_top_builddir=$ac_pwd
  29302. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  29303. +# for backward compatibility:
  29304. +ac_top_builddir=$ac_top_build_prefix
  29305. case $srcdir in
  29306. - .) # No --srcdir option. We are building in place.
  29307. + .) # We are building in place.
  29308. ac_srcdir=.
  29309. - if test -z "$ac_top_builddir"; then
  29310. - ac_top_srcdir=.
  29311. - else
  29312. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  29313. - fi ;;
  29314. - [\\/]* | ?:[\\/]* ) # Absolute path.
  29315. + ac_top_srcdir=$ac_top_builddir_sub
  29316. + ac_abs_top_srcdir=$ac_pwd ;;
  29317. + [\\/]* | ?:[\\/]* ) # Absolute name.
  29318. ac_srcdir=$srcdir$ac_dir_suffix;
  29319. - ac_top_srcdir=$srcdir ;;
  29320. - *) # Relative path.
  29321. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  29322. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  29323. + ac_top_srcdir=$srcdir
  29324. + ac_abs_top_srcdir=$srcdir ;;
  29325. + *) # Relative name.
  29326. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  29327. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  29328. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  29329. esac
  29330. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  29331. -# Do not use `cd foo && pwd` to compute absolute paths, because
  29332. -# the directories may not exist.
  29333. -case `pwd` in
  29334. -.) ac_abs_builddir="$ac_dir";;
  29335. -*)
  29336. - case "$ac_dir" in
  29337. - .) ac_abs_builddir=`pwd`;;
  29338. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  29339. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  29340. - esac;;
  29341. -esac
  29342. -case $ac_abs_builddir in
  29343. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  29344. -*)
  29345. - case ${ac_top_builddir}. in
  29346. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  29347. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  29348. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  29349. - esac;;
  29350. -esac
  29351. -case $ac_abs_builddir in
  29352. -.) ac_abs_srcdir=$ac_srcdir;;
  29353. -*)
  29354. - case $ac_srcdir in
  29355. - .) ac_abs_srcdir=$ac_abs_builddir;;
  29356. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  29357. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  29358. - esac;;
  29359. -esac
  29360. -case $ac_abs_builddir in
  29361. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  29362. -*)
  29363. - case $ac_top_srcdir in
  29364. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  29365. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  29366. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  29367. - esac;;
  29368. -esac
  29369. + case $ac_mode in
  29370. + :F)
  29371. + #
  29372. + # CONFIG_FILE
  29373. + #
  29374. case $INSTALL in
  29375. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  29376. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  29377. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  29378. esac
  29379. +_ACEOF
  29380. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  29381. - # use $as_me), people would be surprised to read:
  29382. - # /* config.h. Generated by config.status. */
  29383. - if test x"$ac_file" = x-; then
  29384. - configure_input=
  29385. - else
  29386. - configure_input="$ac_file. "
  29387. - fi
  29388. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  29389. - sed 's,.*/,,'` by configure."
  29390. -
  29391. - # First look for the input files in the build tree, otherwise in the
  29392. - # src tree.
  29393. - ac_file_inputs=`IFS=:
  29394. - for f in $ac_file_in; do
  29395. - case $f in
  29396. - -) echo $tmp/stdin ;;
  29397. - [\\/$]*)
  29398. - # Absolute (can't be DOS-style, as IFS=:)
  29399. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  29400. -echo "$as_me: error: cannot find input file: $f" >&2;}
  29401. - { (exit 1); exit 1; }; }
  29402. - echo "$f";;
  29403. - *) # Relative
  29404. - if test -f "$f"; then
  29405. - # Build tree
  29406. - echo "$f"
  29407. - elif test -f "$srcdir/$f"; then
  29408. - # Source tree
  29409. - echo "$srcdir/$f"
  29410. - else
  29411. - # /dev/null tree
  29412. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  29413. -echo "$as_me: error: cannot find input file: $f" >&2;}
  29414. - { (exit 1); exit 1; }; }
  29415. - fi;;
  29416. - esac
  29417. - done` || { (exit 1); exit 1; }
  29418. -
  29419. - if test x"$ac_file" != x-; then
  29420. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  29421. -echo "$as_me: creating $ac_file" >&6;}
  29422. - rm -f "$ac_file"
  29423. - fi
  29424. +cat >>$CONFIG_STATUS <<\_ACEOF
  29425. +# If the template does not know about datarootdir, expand it.
  29426. +# FIXME: This hack should be removed a few years after 2.60.
  29427. +ac_datarootdir_hack=; ac_datarootdir_seen=
  29428. +
  29429. +case `sed -n '/datarootdir/ {
  29430. + p
  29431. + q
  29432. +}
  29433. +/@datadir@/p
  29434. +/@docdir@/p
  29435. +/@infodir@/p
  29436. +/@localedir@/p
  29437. +/@mandir@/p
  29438. +' $ac_file_inputs` in
  29439. +*datarootdir*) ac_datarootdir_seen=yes;;
  29440. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  29441. + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  29442. +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  29443. +_ACEOF
  29444. +cat >>$CONFIG_STATUS <<_ACEOF
  29445. + ac_datarootdir_hack='
  29446. + s&@datadir@&$datadir&g
  29447. + s&@docdir@&$docdir&g
  29448. + s&@infodir@&$infodir&g
  29449. + s&@localedir@&$localedir&g
  29450. + s&@mandir@&$mandir&g
  29451. + s&\\\${datarootdir}&$datarootdir&g' ;;
  29452. +esac
  29453. _ACEOF
  29454. +
  29455. +# Neutralize VPATH when `$srcdir' = `.'.
  29456. +# Shell code in configure.ac might set extrasub.
  29457. +# FIXME: do we really want to maintain this feature?
  29458. cat >>$CONFIG_STATUS <<_ACEOF
  29459. sed "$ac_vpsub
  29460. $extrasub
  29461. @@ -9723,370 +21176,299 @@
  29462. cat >>$CONFIG_STATUS <<\_ACEOF
  29463. :t
  29464. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  29465. -s,@configure_input@,$configure_input,;t t
  29466. -s,@srcdir@,$ac_srcdir,;t t
  29467. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  29468. -s,@top_srcdir@,$ac_top_srcdir,;t t
  29469. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  29470. -s,@builddir@,$ac_builddir,;t t
  29471. -s,@abs_builddir@,$ac_abs_builddir,;t t
  29472. -s,@top_builddir@,$ac_top_builddir,;t t
  29473. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  29474. -s,@INSTALL@,$ac_INSTALL,;t t
  29475. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  29476. - rm -f $tmp/stdin
  29477. - if test x"$ac_file" != x-; then
  29478. - mv $tmp/out $ac_file
  29479. - else
  29480. - cat $tmp/out
  29481. - rm -f $tmp/out
  29482. - fi
  29483. -
  29484. -done
  29485. -_ACEOF
  29486. -cat >>$CONFIG_STATUS <<\_ACEOF
  29487. -
  29488. -#
  29489. -# CONFIG_HEADER section.
  29490. -#
  29491. -
  29492. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  29493. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  29494. -#
  29495. -# ac_d sets the value in "#define NAME VALUE" lines.
  29496. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  29497. -ac_dB='[ ].*$,\1#\2'
  29498. -ac_dC=' '
  29499. -ac_dD=',;t'
  29500. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  29501. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  29502. -ac_uB='$,\1#\2define\3'
  29503. -ac_uC=' '
  29504. -ac_uD=',;t'
  29505. +s&@configure_input@&$configure_input&;t t
  29506. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  29507. +s&@srcdir@&$ac_srcdir&;t t
  29508. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  29509. +s&@top_srcdir@&$ac_top_srcdir&;t t
  29510. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  29511. +s&@builddir@&$ac_builddir&;t t
  29512. +s&@abs_builddir@&$ac_abs_builddir&;t t
  29513. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  29514. +s&@INSTALL@&$ac_INSTALL&;t t
  29515. +$ac_datarootdir_hack
  29516. +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  29517. +
  29518. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  29519. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  29520. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  29521. + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  29522. +which seems to be undefined. Please make sure it is defined." >&5
  29523. +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  29524. +which seems to be undefined. Please make sure it is defined." >&2;}
  29525. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  29526. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  29527. + rm -f "$tmp/stdin"
  29528. case $ac_file in
  29529. - - | *:- | *:-:* ) # input from stdin
  29530. - cat >$tmp/stdin
  29531. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  29532. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  29533. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  29534. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  29535. - * ) ac_file_in=$ac_file.in ;;
  29536. + -) cat "$tmp/out"; rm -f "$tmp/out";;
  29537. + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  29538. esac
  29539. -
  29540. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  29541. -echo "$as_me: creating $ac_file" >&6;}
  29542. -
  29543. - # First look for the input files in the build tree, otherwise in the
  29544. - # src tree.
  29545. - ac_file_inputs=`IFS=:
  29546. - for f in $ac_file_in; do
  29547. - case $f in
  29548. - -) echo $tmp/stdin ;;
  29549. - [\\/$]*)
  29550. - # Absolute (can't be DOS-style, as IFS=:)
  29551. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  29552. -echo "$as_me: error: cannot find input file: $f" >&2;}
  29553. - { (exit 1); exit 1; }; }
  29554. - # Do quote $f, to prevent DOS paths from being IFS'd.
  29555. - echo "$f";;
  29556. - *) # Relative
  29557. - if test -f "$f"; then
  29558. - # Build tree
  29559. - echo "$f"
  29560. - elif test -f "$srcdir/$f"; then
  29561. - # Source tree
  29562. - echo "$srcdir/$f"
  29563. - else
  29564. - # /dev/null tree
  29565. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  29566. -echo "$as_me: error: cannot find input file: $f" >&2;}
  29567. - { (exit 1); exit 1; }; }
  29568. - fi;;
  29569. - esac
  29570. - done` || { (exit 1); exit 1; }
  29571. - # Remove the trailing spaces.
  29572. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  29573. -
  29574. + ;;
  29575. + :H)
  29576. + #
  29577. + # CONFIG_HEADER
  29578. + #
  29579. _ACEOF
  29580. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  29581. -# `conftest.undefs', that substitutes the proper values into
  29582. -# config.h.in to produce config.h. The first handles `#define'
  29583. -# templates, and the second `#undef' templates.
  29584. -# And first: Protect against being on the right side of a sed subst in
  29585. -# config.status. Protect against being in an unquoted here document
  29586. -# in config.status.
  29587. -rm -f conftest.defines conftest.undefs
  29588. -# Using a here document instead of a string reduces the quoting nightmare.
  29589. -# Putting comments in sed scripts is not portable.
  29590. -#
  29591. -# `end' is used to avoid that the second main sed command (meant for
  29592. -# 0-ary CPP macros) applies to n-ary macro definitions.
  29593. -# See the Autoconf documentation for `clear'.
  29594. -cat >confdef2sed.sed <<\_ACEOF
  29595. -s/[\\&,]/\\&/g
  29596. -s,[\\$`],\\&,g
  29597. -t clear
  29598. -: clear
  29599. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  29600. -t end
  29601. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  29602. -: end
  29603. -_ACEOF
  29604. -# If some macros were called several times there might be several times
  29605. -# the same #defines, which is useless. Nevertheless, we may not want to
  29606. -# sort them, since we want the *last* AC-DEFINE to be honored.
  29607. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  29608. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  29609. -rm -f confdef2sed.sed
  29610. +# Transform confdefs.h into a sed script `conftest.defines', that
  29611. +# substitutes the proper values into config.h.in to produce config.h.
  29612. +rm -f conftest.defines conftest.tail
  29613. +# First, append a space to every undef/define line, to ease matching.
  29614. +echo 's/$/ /' >conftest.defines
  29615. +# Then, protect against being on the right side of a sed subst, or in
  29616. +# an unquoted here document, in config.status. If some macros were
  29617. +# called several times there might be several #defines for the same
  29618. +# symbol, which is useless. But do not sort them, since the last
  29619. +# AC_DEFINE must be honored.
  29620. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  29621. +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  29622. +# NAME is the cpp macro being defined, VALUE is the value it is being given.
  29623. +# PARAMS is the parameter list in the macro definition--in most cases, it's
  29624. +# just an empty string.
  29625. +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  29626. +ac_dB='\\)[ (].*,\\1define\\2'
  29627. +ac_dC=' '
  29628. +ac_dD=' ,'
  29629. +
  29630. +uniq confdefs.h |
  29631. + sed -n '
  29632. + t rset
  29633. + :rset
  29634. + s/^[ ]*#[ ]*define[ ][ ]*//
  29635. + t ok
  29636. + d
  29637. + :ok
  29638. + s/[\\&,]/\\&/g
  29639. + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  29640. + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  29641. + ' >>conftest.defines
  29642. -# This sed command replaces #undef with comments. This is necessary, for
  29643. +# Remove the space that was appended to ease matching.
  29644. +# Then replace #undef with comments. This is necessary, for
  29645. # example, in the case of _POSIX_SOURCE, which is predefined and required
  29646. # on some systems where configure will not decide to define it.
  29647. -cat >>conftest.undefs <<\_ACEOF
  29648. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  29649. -_ACEOF
  29650. +# (The regexp can be short, since the line contains either #define or #undef.)
  29651. +echo 's/ $//
  29652. +s,^[ #]*u.*,/* & */,' >>conftest.defines
  29653. +
  29654. +# Break up conftest.defines:
  29655. +ac_max_sed_lines=50
  29656. +
  29657. +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  29658. +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  29659. +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  29660. +# et cetera.
  29661. +ac_in='$ac_file_inputs'
  29662. +ac_out='"$tmp/out1"'
  29663. +ac_nxt='"$tmp/out2"'
  29664. -# Break up conftest.defines because some shells have a limit on the size
  29665. -# of here documents, and old seds have small limits too (100 cmds).
  29666. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  29667. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  29668. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  29669. -echo ' :' >>$CONFIG_STATUS
  29670. -rm -f conftest.tail
  29671. -while grep . conftest.defines >/dev/null
  29672. -do
  29673. - # Write a limited-size here document to $tmp/defines.sed.
  29674. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  29675. - # Speed up: don't consider the non `#define' lines.
  29676. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  29677. - # Work around the forget-to-reset-the-flag bug.
  29678. - echo 't clr' >>$CONFIG_STATUS
  29679. - echo ': clr' >>$CONFIG_STATUS
  29680. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  29681. +while :
  29682. +do
  29683. + # Write a here document:
  29684. + cat >>$CONFIG_STATUS <<_ACEOF
  29685. + # First, check the format of the line:
  29686. + cat >"\$tmp/defines.sed" <<\\CEOF
  29687. +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  29688. +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  29689. +b
  29690. +:def
  29691. +_ACEOF
  29692. + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  29693. echo 'CEOF
  29694. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  29695. - rm -f $tmp/in
  29696. - mv $tmp/out $tmp/in
  29697. -' >>$CONFIG_STATUS
  29698. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  29699. + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  29700. + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  29701. + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  29702. + grep . conftest.tail >/dev/null || break
  29703. rm -f conftest.defines
  29704. mv conftest.tail conftest.defines
  29705. done
  29706. -rm -f conftest.defines
  29707. -echo ' fi # grep' >>$CONFIG_STATUS
  29708. -echo >>$CONFIG_STATUS
  29709. -
  29710. -# Break up conftest.undefs because some shells have a limit on the size
  29711. -# of here documents, and old seds have small limits too (100 cmds).
  29712. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  29713. -rm -f conftest.tail
  29714. -while grep . conftest.undefs >/dev/null
  29715. -do
  29716. - # Write a limited-size here document to $tmp/undefs.sed.
  29717. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  29718. - # Speed up: don't consider the non `#undef'
  29719. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  29720. - # Work around the forget-to-reset-the-flag bug.
  29721. - echo 't clr' >>$CONFIG_STATUS
  29722. - echo ': clr' >>$CONFIG_STATUS
  29723. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  29724. - echo 'CEOF
  29725. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  29726. - rm -f $tmp/in
  29727. - mv $tmp/out $tmp/in
  29728. -' >>$CONFIG_STATUS
  29729. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  29730. - rm -f conftest.undefs
  29731. - mv conftest.tail conftest.undefs
  29732. -done
  29733. -rm -f conftest.undefs
  29734. +rm -f conftest.defines conftest.tail
  29735. +echo "ac_result=$ac_in" >>$CONFIG_STATUS
  29736. cat >>$CONFIG_STATUS <<\_ACEOF
  29737. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  29738. - # use $as_me), people would be surprised to read:
  29739. - # /* config.h. Generated by config.status. */
  29740. - if test x"$ac_file" = x-; then
  29741. - echo "/* Generated by configure. */" >$tmp/config.h
  29742. - else
  29743. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  29744. - fi
  29745. - cat $tmp/in >>$tmp/config.h
  29746. - rm -f $tmp/in
  29747. if test x"$ac_file" != x-; then
  29748. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  29749. + echo "/* $configure_input */" >"$tmp/config.h"
  29750. + cat "$ac_result" >>"$tmp/config.h"
  29751. + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  29752. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  29753. echo "$as_me: $ac_file is unchanged" >&6;}
  29754. else
  29755. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  29756. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29757. - X"$ac_file" : 'X\(//\)[^/]' \| \
  29758. - X"$ac_file" : 'X\(//\)$' \| \
  29759. - X"$ac_file" : 'X\(/\)' \| \
  29760. - . : '\(.\)' 2>/dev/null ||
  29761. -echo X"$ac_file" |
  29762. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  29763. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  29764. - /^X\(\/\/\)$/{ s//\1/; q; }
  29765. - /^X\(\/\).*/{ s//\1/; q; }
  29766. - s/.*/./; q'`
  29767. - { if $as_mkdir_p; then
  29768. - mkdir -p "$ac_dir"
  29769. - else
  29770. - as_dir="$ac_dir"
  29771. - as_dirs=
  29772. - while test ! -d "$as_dir"; do
  29773. - as_dirs="$as_dir $as_dirs"
  29774. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  29775. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29776. - X"$as_dir" : 'X\(//\)[^/]' \| \
  29777. - X"$as_dir" : 'X\(//\)$' \| \
  29778. - X"$as_dir" : 'X\(/\)' \| \
  29779. - . : '\(.\)' 2>/dev/null ||
  29780. -echo X"$as_dir" |
  29781. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  29782. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  29783. - /^X\(\/\/\)$/{ s//\1/; q; }
  29784. - /^X\(\/\).*/{ s//\1/; q; }
  29785. - s/.*/./; q'`
  29786. - done
  29787. - test ! -n "$as_dirs" || mkdir $as_dirs
  29788. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  29789. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  29790. - { (exit 1); exit 1; }; }; }
  29791. -
  29792. rm -f $ac_file
  29793. - mv $tmp/config.h $ac_file
  29794. + mv "$tmp/config.h" $ac_file
  29795. fi
  29796. else
  29797. - cat $tmp/config.h
  29798. - rm -f $tmp/config.h
  29799. + echo "/* $configure_input */"
  29800. + cat "$ac_result"
  29801. fi
  29802. + rm -f "$tmp/out12"
  29803. +# Compute $ac_file's index in $config_headers.
  29804. +_am_stamp_count=1
  29805. +for _am_header in $config_headers :; do
  29806. + case $_am_header in
  29807. + $ac_file | $ac_file:* )
  29808. + break ;;
  29809. + * )
  29810. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  29811. + esac
  29812. done
  29813. -_ACEOF
  29814. -cat >>$CONFIG_STATUS <<\_ACEOF
  29815. +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  29816. +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29817. + X$ac_file : 'X\(//\)[^/]' \| \
  29818. + X$ac_file : 'X\(//\)$' \| \
  29819. + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  29820. +echo X$ac_file |
  29821. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29822. + s//\1/
  29823. + q
  29824. + }
  29825. + /^X\(\/\/\)[^/].*/{
  29826. + s//\1/
  29827. + q
  29828. + }
  29829. + /^X\(\/\/\)$/{
  29830. + s//\1/
  29831. + q
  29832. + }
  29833. + /^X\(\/\).*/{
  29834. + s//\1/
  29835. + q
  29836. + }
  29837. + s/.*/./; q'`/stamp-h$_am_stamp_count
  29838. + ;;
  29839. +
  29840. + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  29841. +echo "$as_me: executing $ac_file commands" >&6;}
  29842. + ;;
  29843. + esac
  29844. -#
  29845. -# CONFIG_COMMANDS section.
  29846. -#
  29847. -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  29848. - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  29849. - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  29850. - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  29851. -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29852. - X"$ac_dest" : 'X\(//\)[^/]' \| \
  29853. - X"$ac_dest" : 'X\(//\)$' \| \
  29854. - X"$ac_dest" : 'X\(/\)' \| \
  29855. - . : '\(.\)' 2>/dev/null ||
  29856. -echo X"$ac_dest" |
  29857. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  29858. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  29859. - /^X\(\/\/\)$/{ s//\1/; q; }
  29860. - /^X\(\/\).*/{ s//\1/; q; }
  29861. - s/.*/./; q'`
  29862. - { if $as_mkdir_p; then
  29863. - mkdir -p "$ac_dir"
  29864. +
  29865. + case $ac_file$ac_mode in
  29866. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  29867. + # Strip MF so we end up with the name of the file.
  29868. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  29869. + # Check whether this is an Automake generated Makefile or not.
  29870. + # We used to match only the files named `Makefile.in', but
  29871. + # some people rename them; so instead we look at the file content.
  29872. + # Grep'ing the first line is not enough: some people post-process
  29873. + # each Makefile.in and add a new line on top of each file to say so.
  29874. + # So let's grep whole file.
  29875. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  29876. + dirpart=`$as_dirname -- "$mf" ||
  29877. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29878. + X"$mf" : 'X\(//\)[^/]' \| \
  29879. + X"$mf" : 'X\(//\)$' \| \
  29880. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  29881. +echo X"$mf" |
  29882. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29883. + s//\1/
  29884. + q
  29885. + }
  29886. + /^X\(\/\/\)[^/].*/{
  29887. + s//\1/
  29888. + q
  29889. + }
  29890. + /^X\(\/\/\)$/{
  29891. + s//\1/
  29892. + q
  29893. + }
  29894. + /^X\(\/\).*/{
  29895. + s//\1/
  29896. + q
  29897. + }
  29898. + s/.*/./; q'`
  29899. else
  29900. - as_dir="$ac_dir"
  29901. + continue
  29902. + fi
  29903. + # Extract the definition of DEPDIR, am__include, and am__quote
  29904. + # from the Makefile without running `make'.
  29905. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  29906. + test -z "$DEPDIR" && continue
  29907. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  29908. + test -z "am__include" && continue
  29909. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  29910. + # When using ansi2knr, U may be empty or an underscore; expand it
  29911. + U=`sed -n 's/^U = //p' < "$mf"`
  29912. + # Find all dependency output files, they are included files with
  29913. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  29914. + # simplest approach to changing $(DEPDIR) to its actual value in the
  29915. + # expansion.
  29916. + for file in `sed -n "
  29917. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  29918. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  29919. + # Make sure the directory exists.
  29920. + test -f "$dirpart/$file" && continue
  29921. + fdir=`$as_dirname -- "$file" ||
  29922. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29923. + X"$file" : 'X\(//\)[^/]' \| \
  29924. + X"$file" : 'X\(//\)$' \| \
  29925. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  29926. +echo X"$file" |
  29927. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29928. + s//\1/
  29929. + q
  29930. + }
  29931. + /^X\(\/\/\)[^/].*/{
  29932. + s//\1/
  29933. + q
  29934. + }
  29935. + /^X\(\/\/\)$/{
  29936. + s//\1/
  29937. + q
  29938. + }
  29939. + /^X\(\/\).*/{
  29940. + s//\1/
  29941. + q
  29942. + }
  29943. + s/.*/./; q'`
  29944. + { as_dir=$dirpart/$fdir
  29945. + case $as_dir in #(
  29946. + -*) as_dir=./$as_dir;;
  29947. + esac
  29948. + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  29949. as_dirs=
  29950. - while test ! -d "$as_dir"; do
  29951. - as_dirs="$as_dir $as_dirs"
  29952. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  29953. + while :; do
  29954. + case $as_dir in #(
  29955. + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  29956. + *) as_qdir=$as_dir;;
  29957. + esac
  29958. + as_dirs="'$as_qdir' $as_dirs"
  29959. + as_dir=`$as_dirname -- "$as_dir" ||
  29960. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29961. X"$as_dir" : 'X\(//\)[^/]' \| \
  29962. X"$as_dir" : 'X\(//\)$' \| \
  29963. - X"$as_dir" : 'X\(/\)' \| \
  29964. - . : '\(.\)' 2>/dev/null ||
  29965. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  29966. echo X"$as_dir" |
  29967. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  29968. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  29969. - /^X\(\/\/\)$/{ s//\1/; q; }
  29970. - /^X\(\/\).*/{ s//\1/; q; }
  29971. - s/.*/./; q'`
  29972. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29973. + s//\1/
  29974. + q
  29975. + }
  29976. + /^X\(\/\/\)[^/].*/{
  29977. + s//\1/
  29978. + q
  29979. + }
  29980. + /^X\(\/\/\)$/{
  29981. + s//\1/
  29982. + q
  29983. + }
  29984. + /^X\(\/\).*/{
  29985. + s//\1/
  29986. + q
  29987. + }
  29988. + s/.*/./; q'`
  29989. + test -d "$as_dir" && break
  29990. done
  29991. - test ! -n "$as_dirs" || mkdir $as_dirs
  29992. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  29993. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  29994. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  29995. + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  29996. +echo "$as_me: error: cannot create directory $as_dir" >&2;}
  29997. { (exit 1); exit 1; }; }; }
  29998. + # echo "creating $dirpart/$file"
  29999. + echo '# dummy' > "$dirpart/$file"
  30000. + done
  30001. +done
  30002. + ;;
  30003. - ac_builddir=.
  30004. -
  30005. -if test "$ac_dir" != .; then
  30006. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  30007. - # A "../" for each directory in $ac_dir_suffix.
  30008. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  30009. -else
  30010. - ac_dir_suffix= ac_top_builddir=
  30011. -fi
  30012. -
  30013. -case $srcdir in
  30014. - .) # No --srcdir option. We are building in place.
  30015. - ac_srcdir=.
  30016. - if test -z "$ac_top_builddir"; then
  30017. - ac_top_srcdir=.
  30018. - else
  30019. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  30020. - fi ;;
  30021. - [\\/]* | ?:[\\/]* ) # Absolute path.
  30022. - ac_srcdir=$srcdir$ac_dir_suffix;
  30023. - ac_top_srcdir=$srcdir ;;
  30024. - *) # Relative path.
  30025. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  30026. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  30027. -esac
  30028. -
  30029. -# Do not use `cd foo && pwd` to compute absolute paths, because
  30030. -# the directories may not exist.
  30031. -case `pwd` in
  30032. -.) ac_abs_builddir="$ac_dir";;
  30033. -*)
  30034. - case "$ac_dir" in
  30035. - .) ac_abs_builddir=`pwd`;;
  30036. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  30037. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  30038. - esac;;
  30039. -esac
  30040. -case $ac_abs_builddir in
  30041. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  30042. -*)
  30043. - case ${ac_top_builddir}. in
  30044. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  30045. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  30046. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  30047. - esac;;
  30048. -esac
  30049. -case $ac_abs_builddir in
  30050. -.) ac_abs_srcdir=$ac_srcdir;;
  30051. -*)
  30052. - case $ac_srcdir in
  30053. - .) ac_abs_srcdir=$ac_abs_builddir;;
  30054. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  30055. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  30056. - esac;;
  30057. -esac
  30058. -case $ac_abs_builddir in
  30059. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  30060. -*)
  30061. - case $ac_top_srcdir in
  30062. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  30063. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  30064. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  30065. - esac;;
  30066. -esac
  30067. -
  30068. -
  30069. - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  30070. -echo "$as_me: executing $ac_dest commands" >&6;}
  30071. - case $ac_dest in
  30072. - default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  30073. esac
  30074. -done
  30075. -_ACEOF
  30076. +done # for ac_tag
  30077. -cat >>$CONFIG_STATUS <<\_ACEOF
  30078. { (exit 0); exit 0; }
  30079. _ACEOF
  30080. Index: linux-atm-2.4.1/depcomp
  30081. ===================================================================
  30082. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  30083. +++ linux-atm-2.4.1/depcomp 2007-10-20 21:45:44.287356221 +0200
  30084. @@ -0,0 +1,530 @@
  30085. +#! /bin/sh
  30086. +# depcomp - compile a program generating dependencies as side-effects
  30087. +
  30088. +scriptversion=2005-07-09.11
  30089. +
  30090. +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
  30091. +
  30092. +# This program is free software; you can redistribute it and/or modify
  30093. +# it under the terms of the GNU General Public License as published by
  30094. +# the Free Software Foundation; either version 2, or (at your option)
  30095. +# any later version.
  30096. +
  30097. +# This program is distributed in the hope that it will be useful,
  30098. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  30099. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30100. +# GNU General Public License for more details.
  30101. +
  30102. +# You should have received a copy of the GNU General Public License
  30103. +# along with this program; if not, write to the Free Software
  30104. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  30105. +# 02110-1301, USA.
  30106. +
  30107. +# As a special exception to the GNU General Public License, if you
  30108. +# distribute this file as part of a program that contains a
  30109. +# configuration script generated by Autoconf, you may include it under
  30110. +# the same distribution terms that you use for the rest of that program.
  30111. +
  30112. +# Originally written by Alexandre Oliva <[email protected]>.
  30113. +
  30114. +case $1 in
  30115. + '')
  30116. + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
  30117. + exit 1;
  30118. + ;;
  30119. + -h | --h*)
  30120. + cat <<\EOF
  30121. +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
  30122. +
  30123. +Run PROGRAMS ARGS to compile a file, generating dependencies
  30124. +as side-effects.
  30125. +
  30126. +Environment variables:
  30127. + depmode Dependency tracking mode.
  30128. + source Source file read by `PROGRAMS ARGS'.
  30129. + object Object file output by `PROGRAMS ARGS'.
  30130. + DEPDIR directory where to store dependencies.
  30131. + depfile Dependency file to output.
  30132. + tmpdepfile Temporary file to use when outputing dependencies.
  30133. + libtool Whether libtool is used (yes/no).
  30134. +
  30135. +Report bugs to <[email protected]>.
  30136. +EOF
  30137. + exit $?
  30138. + ;;
  30139. + -v | --v*)
  30140. + echo "depcomp $scriptversion"
  30141. + exit $?
  30142. + ;;
  30143. +esac
  30144. +
  30145. +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
  30146. + echo "depcomp: Variables source, object and depmode must be set" 1>&2
  30147. + exit 1
  30148. +fi
  30149. +
  30150. +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
  30151. +depfile=${depfile-`echo "$object" |
  30152. + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
  30153. +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
  30154. +
  30155. +rm -f "$tmpdepfile"
  30156. +
  30157. +# Some modes work just like other modes, but use different flags. We
  30158. +# parameterize here, but still list the modes in the big case below,
  30159. +# to make depend.m4 easier to write. Note that we *cannot* use a case
  30160. +# here, because this file can only contain one case statement.
  30161. +if test "$depmode" = hp; then
  30162. + # HP compiler uses -M and no extra arg.
  30163. + gccflag=-M
  30164. + depmode=gcc
  30165. +fi
  30166. +
  30167. +if test "$depmode" = dashXmstdout; then
  30168. + # This is just like dashmstdout with a different argument.
  30169. + dashmflag=-xM
  30170. + depmode=dashmstdout
  30171. +fi
  30172. +
  30173. +case "$depmode" in
  30174. +gcc3)
  30175. +## gcc 3 implements dependency tracking that does exactly what
  30176. +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  30177. +## it if -MD -MP comes after the -MF stuff. Hmm.
  30178. + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
  30179. + stat=$?
  30180. + if test $stat -eq 0; then :
  30181. + else
  30182. + rm -f "$tmpdepfile"
  30183. + exit $stat
  30184. + fi
  30185. + mv "$tmpdepfile" "$depfile"
  30186. + ;;
  30187. +
  30188. +gcc)
  30189. +## There are various ways to get dependency output from gcc. Here's
  30190. +## why we pick this rather obscure method:
  30191. +## - Don't want to use -MD because we'd like the dependencies to end
  30192. +## up in a subdir. Having to rename by hand is ugly.
  30193. +## (We might end up doing this anyway to support other compilers.)
  30194. +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
  30195. +## -MM, not -M (despite what the docs say).
  30196. +## - Using -M directly means running the compiler twice (even worse
  30197. +## than renaming).
  30198. + if test -z "$gccflag"; then
  30199. + gccflag=-MD,
  30200. + fi
  30201. + "$@" -Wp,"$gccflag$tmpdepfile"
  30202. + stat=$?
  30203. + if test $stat -eq 0; then :
  30204. + else
  30205. + rm -f "$tmpdepfile"
  30206. + exit $stat
  30207. + fi
  30208. + rm -f "$depfile"
  30209. + echo "$object : \\" > "$depfile"
  30210. + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  30211. +## The second -e expression handles DOS-style file names with drive letters.
  30212. + sed -e 's/^[^:]*: / /' \
  30213. + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
  30214. +## This next piece of magic avoids the `deleted header file' problem.
  30215. +## The problem is that when a header file which appears in a .P file
  30216. +## is deleted, the dependency causes make to die (because there is
  30217. +## typically no way to rebuild the header). We avoid this by adding
  30218. +## dummy dependencies for each header file. Too bad gcc doesn't do
  30219. +## this for us directly.
  30220. + tr ' ' '
  30221. +' < "$tmpdepfile" |
  30222. +## Some versions of gcc put a space before the `:'. On the theory
  30223. +## that the space means something, we add a space to the output as
  30224. +## well.
  30225. +## Some versions of the HPUX 10.20 sed can't process this invocation
  30226. +## correctly. Breaking it into two sed invocations is a workaround.
  30227. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  30228. + rm -f "$tmpdepfile"
  30229. + ;;
  30230. +
  30231. +hp)
  30232. + # This case exists only to let depend.m4 do its work. It works by
  30233. + # looking at the text of this script. This case will never be run,
  30234. + # since it is checked for above.
  30235. + exit 1
  30236. + ;;
  30237. +
  30238. +sgi)
  30239. + if test "$libtool" = yes; then
  30240. + "$@" "-Wp,-MDupdate,$tmpdepfile"
  30241. + else
  30242. + "$@" -MDupdate "$tmpdepfile"
  30243. + fi
  30244. + stat=$?
  30245. + if test $stat -eq 0; then :
  30246. + else
  30247. + rm -f "$tmpdepfile"
  30248. + exit $stat
  30249. + fi
  30250. + rm -f "$depfile"
  30251. +
  30252. + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
  30253. + echo "$object : \\" > "$depfile"
  30254. +
  30255. + # Clip off the initial element (the dependent). Don't try to be
  30256. + # clever and replace this with sed code, as IRIX sed won't handle
  30257. + # lines with more than a fixed number of characters (4096 in
  30258. + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
  30259. + # the IRIX cc adds comments like `#:fec' to the end of the
  30260. + # dependency line.
  30261. + tr ' ' '
  30262. +' < "$tmpdepfile" \
  30263. + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  30264. + tr '
  30265. +' ' ' >> $depfile
  30266. + echo >> $depfile
  30267. +
  30268. + # The second pass generates a dummy entry for each header file.
  30269. + tr ' ' '
  30270. +' < "$tmpdepfile" \
  30271. + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  30272. + >> $depfile
  30273. + else
  30274. + # The sourcefile does not contain any dependencies, so just
  30275. + # store a dummy comment line, to avoid errors with the Makefile
  30276. + # "include basename.Plo" scheme.
  30277. + echo "#dummy" > "$depfile"
  30278. + fi
  30279. + rm -f "$tmpdepfile"
  30280. + ;;
  30281. +
  30282. +aix)
  30283. + # The C for AIX Compiler uses -M and outputs the dependencies
  30284. + # in a .u file. In older versions, this file always lives in the
  30285. + # current directory. Also, the AIX compiler puts `$object:' at the
  30286. + # start of each line; $object doesn't have directory information.
  30287. + # Version 6 uses the directory in both cases.
  30288. + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  30289. + tmpdepfile="$stripped.u"
  30290. + if test "$libtool" = yes; then
  30291. + "$@" -Wc,-M
  30292. + else
  30293. + "$@" -M
  30294. + fi
  30295. + stat=$?
  30296. +
  30297. + if test -f "$tmpdepfile"; then :
  30298. + else
  30299. + stripped=`echo "$stripped" | sed 's,^.*/,,'`
  30300. + tmpdepfile="$stripped.u"
  30301. + fi
  30302. +
  30303. + if test $stat -eq 0; then :
  30304. + else
  30305. + rm -f "$tmpdepfile"
  30306. + exit $stat
  30307. + fi
  30308. +
  30309. + if test -f "$tmpdepfile"; then
  30310. + outname="$stripped.o"
  30311. + # Each line is of the form `foo.o: dependent.h'.
  30312. + # Do two passes, one to just change these to
  30313. + # `$object: dependent.h' and one to simply `dependent.h:'.
  30314. + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  30315. + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  30316. + else
  30317. + # The sourcefile does not contain any dependencies, so just
  30318. + # store a dummy comment line, to avoid errors with the Makefile
  30319. + # "include basename.Plo" scheme.
  30320. + echo "#dummy" > "$depfile"
  30321. + fi
  30322. + rm -f "$tmpdepfile"
  30323. + ;;
  30324. +
  30325. +icc)
  30326. + # Intel's C compiler understands `-MD -MF file'. However on
  30327. + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
  30328. + # ICC 7.0 will fill foo.d with something like
  30329. + # foo.o: sub/foo.c
  30330. + # foo.o: sub/foo.h
  30331. + # which is wrong. We want:
  30332. + # sub/foo.o: sub/foo.c
  30333. + # sub/foo.o: sub/foo.h
  30334. + # sub/foo.c:
  30335. + # sub/foo.h:
  30336. + # ICC 7.1 will output
  30337. + # foo.o: sub/foo.c sub/foo.h
  30338. + # and will wrap long lines using \ :
  30339. + # foo.o: sub/foo.c ... \
  30340. + # sub/foo.h ... \
  30341. + # ...
  30342. +
  30343. + "$@" -MD -MF "$tmpdepfile"
  30344. + stat=$?
  30345. + if test $stat -eq 0; then :
  30346. + else
  30347. + rm -f "$tmpdepfile"
  30348. + exit $stat
  30349. + fi
  30350. + rm -f "$depfile"
  30351. + # Each line is of the form `foo.o: dependent.h',
  30352. + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
  30353. + # Do two passes, one to just change these to
  30354. + # `$object: dependent.h' and one to simply `dependent.h:'.
  30355. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  30356. + # Some versions of the HPUX 10.20 sed can't process this invocation
  30357. + # correctly. Breaking it into two sed invocations is a workaround.
  30358. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
  30359. + sed -e 's/$/ :/' >> "$depfile"
  30360. + rm -f "$tmpdepfile"
  30361. + ;;
  30362. +
  30363. +tru64)
  30364. + # The Tru64 compiler uses -MD to generate dependencies as a side
  30365. + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  30366. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
  30367. + # dependencies in `foo.d' instead, so we check for that too.
  30368. + # Subdirectories are respected.
  30369. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  30370. + test "x$dir" = "x$object" && dir=
  30371. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  30372. +
  30373. + if test "$libtool" = yes; then
  30374. + # With Tru64 cc, shared objects can also be used to make a
  30375. + # static library. This mecanism is used in libtool 1.4 series to
  30376. + # handle both shared and static libraries in a single compilation.
  30377. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  30378. + #
  30379. + # With libtool 1.5 this exception was removed, and libtool now
  30380. + # generates 2 separate objects for the 2 libraries. These two
  30381. + # compilations output dependencies in in $dir.libs/$base.o.d and
  30382. + # in $dir$base.o.d. We have to check for both files, because
  30383. + # one of the two compilations can be disabled. We should prefer
  30384. + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  30385. + # automatically cleaned when .libs/ is deleted, while ignoring
  30386. + # the former would cause a distcleancheck panic.
  30387. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
  30388. + tmpdepfile2=$dir$base.o.d # libtool 1.5
  30389. + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
  30390. + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
  30391. + "$@" -Wc,-MD
  30392. + else
  30393. + tmpdepfile1=$dir$base.o.d
  30394. + tmpdepfile2=$dir$base.d
  30395. + tmpdepfile3=$dir$base.d
  30396. + tmpdepfile4=$dir$base.d
  30397. + "$@" -MD
  30398. + fi
  30399. +
  30400. + stat=$?
  30401. + if test $stat -eq 0; then :
  30402. + else
  30403. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  30404. + exit $stat
  30405. + fi
  30406. +
  30407. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  30408. + do
  30409. + test -f "$tmpdepfile" && break
  30410. + done
  30411. + if test -f "$tmpdepfile"; then
  30412. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  30413. + # That's a tab and a space in the [].
  30414. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  30415. + else
  30416. + echo "#dummy" > "$depfile"
  30417. + fi
  30418. + rm -f "$tmpdepfile"
  30419. + ;;
  30420. +
  30421. +#nosideeffect)
  30422. + # This comment above is used by automake to tell side-effect
  30423. + # dependency tracking mechanisms from slower ones.
  30424. +
  30425. +dashmstdout)
  30426. + # Important note: in order to support this mode, a compiler *must*
  30427. + # always write the preprocessed file to stdout, regardless of -o.
  30428. + "$@" || exit $?
  30429. +
  30430. + # Remove the call to Libtool.
  30431. + if test "$libtool" = yes; then
  30432. + while test $1 != '--mode=compile'; do
  30433. + shift
  30434. + done
  30435. + shift
  30436. + fi
  30437. +
  30438. + # Remove `-o $object'.
  30439. + IFS=" "
  30440. + for arg
  30441. + do
  30442. + case $arg in
  30443. + -o)
  30444. + shift
  30445. + ;;
  30446. + $object)
  30447. + shift
  30448. + ;;
  30449. + *)
  30450. + set fnord "$@" "$arg"
  30451. + shift # fnord
  30452. + shift # $arg
  30453. + ;;
  30454. + esac
  30455. + done
  30456. +
  30457. + test -z "$dashmflag" && dashmflag=-M
  30458. + # Require at least two characters before searching for `:'
  30459. + # in the target name. This is to cope with DOS-style filenames:
  30460. + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
  30461. + "$@" $dashmflag |
  30462. + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
  30463. + rm -f "$depfile"
  30464. + cat < "$tmpdepfile" > "$depfile"
  30465. + tr ' ' '
  30466. +' < "$tmpdepfile" | \
  30467. +## Some versions of the HPUX 10.20 sed can't process this invocation
  30468. +## correctly. Breaking it into two sed invocations is a workaround.
  30469. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  30470. + rm -f "$tmpdepfile"
  30471. + ;;
  30472. +
  30473. +dashXmstdout)
  30474. + # This case only exists to satisfy depend.m4. It is never actually
  30475. + # run, as this mode is specially recognized in the preamble.
  30476. + exit 1
  30477. + ;;
  30478. +
  30479. +makedepend)
  30480. + "$@" || exit $?
  30481. + # Remove any Libtool call
  30482. + if test "$libtool" = yes; then
  30483. + while test $1 != '--mode=compile'; do
  30484. + shift
  30485. + done
  30486. + shift
  30487. + fi
  30488. + # X makedepend
  30489. + shift
  30490. + cleared=no
  30491. + for arg in "$@"; do
  30492. + case $cleared in
  30493. + no)
  30494. + set ""; shift
  30495. + cleared=yes ;;
  30496. + esac
  30497. + case "$arg" in
  30498. + -D*|-I*)
  30499. + set fnord "$@" "$arg"; shift ;;
  30500. + # Strip any option that makedepend may not understand. Remove
  30501. + # the object too, otherwise makedepend will parse it as a source file.
  30502. + -*|$object)
  30503. + ;;
  30504. + *)
  30505. + set fnord "$@" "$arg"; shift ;;
  30506. + esac
  30507. + done
  30508. + obj_suffix="`echo $object | sed 's/^.*\././'`"
  30509. + touch "$tmpdepfile"
  30510. + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  30511. + rm -f "$depfile"
  30512. + cat < "$tmpdepfile" > "$depfile"
  30513. + sed '1,2d' "$tmpdepfile" | tr ' ' '
  30514. +' | \
  30515. +## Some versions of the HPUX 10.20 sed can't process this invocation
  30516. +## correctly. Breaking it into two sed invocations is a workaround.
  30517. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  30518. + rm -f "$tmpdepfile" "$tmpdepfile".bak
  30519. + ;;
  30520. +
  30521. +cpp)
  30522. + # Important note: in order to support this mode, a compiler *must*
  30523. + # always write the preprocessed file to stdout.
  30524. + "$@" || exit $?
  30525. +
  30526. + # Remove the call to Libtool.
  30527. + if test "$libtool" = yes; then
  30528. + while test $1 != '--mode=compile'; do
  30529. + shift
  30530. + done
  30531. + shift
  30532. + fi
  30533. +
  30534. + # Remove `-o $object'.
  30535. + IFS=" "
  30536. + for arg
  30537. + do
  30538. + case $arg in
  30539. + -o)
  30540. + shift
  30541. + ;;
  30542. + $object)
  30543. + shift
  30544. + ;;
  30545. + *)
  30546. + set fnord "$@" "$arg"
  30547. + shift # fnord
  30548. + shift # $arg
  30549. + ;;
  30550. + esac
  30551. + done
  30552. +
  30553. + "$@" -E |
  30554. + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  30555. + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  30556. + sed '$ s: \\$::' > "$tmpdepfile"
  30557. + rm -f "$depfile"
  30558. + echo "$object : \\" > "$depfile"
  30559. + cat < "$tmpdepfile" >> "$depfile"
  30560. + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
  30561. + rm -f "$tmpdepfile"
  30562. + ;;
  30563. +
  30564. +msvisualcpp)
  30565. + # Important note: in order to support this mode, a compiler *must*
  30566. + # always write the preprocessed file to stdout, regardless of -o,
  30567. + # because we must use -o when running libtool.
  30568. + "$@" || exit $?
  30569. + IFS=" "
  30570. + for arg
  30571. + do
  30572. + case "$arg" in
  30573. + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  30574. + set fnord "$@"
  30575. + shift
  30576. + shift
  30577. + ;;
  30578. + *)
  30579. + set fnord "$@" "$arg"
  30580. + shift
  30581. + shift
  30582. + ;;
  30583. + esac
  30584. + done
  30585. + "$@" -E |
  30586. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  30587. + rm -f "$depfile"
  30588. + echo "$object : \\" > "$depfile"
  30589. + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  30590. + echo " " >> "$depfile"
  30591. + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  30592. + rm -f "$tmpdepfile"
  30593. + ;;
  30594. +
  30595. +none)
  30596. + exec "$@"
  30597. + ;;
  30598. +
  30599. +*)
  30600. + echo "Unknown depmode $depmode" 1>&2
  30601. + exit 1
  30602. + ;;
  30603. +esac
  30604. +
  30605. +exit 0
  30606. +
  30607. +# Local Variables:
  30608. +# mode: shell-script
  30609. +# sh-indentation: 2
  30610. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  30611. +# time-stamp-start: "scriptversion="
  30612. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  30613. +# time-stamp-end: "$"
  30614. +# End:
  30615. Index: linux-atm-2.4.1/doc/Makefile.in
  30616. ===================================================================
  30617. --- linux-atm-2.4.1.orig/doc/Makefile.in 2007-10-20 21:45:35.722868157 +0200
  30618. +++ linux-atm-2.4.1/doc/Makefile.in 2007-10-20 21:45:44.291356451 +0200
  30619. @@ -1,6 +1,8 @@
  30620. -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  30621. +# Makefile.in generated by automake 1.9.6 from Makefile.am.
  30622. +# @configure_input@
  30623. -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  30624. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  30625. +# 2003, 2004, 2005 Free Software Foundation, Inc.
  30626. # This Makefile.in is free software; the Free Software Foundation
  30627. # gives unlimited permission to copy and/or distribute it,
  30628. # with or without modifications, as long as this notice is preserved.
  30629. @@ -10,198 +12,310 @@
  30630. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  30631. # PARTICULAR PURPOSE.
  30632. -
  30633. -SHELL = @SHELL@
  30634. -
  30635. +@SET_MAKE@
  30636. srcdir = @srcdir@
  30637. top_srcdir = @top_srcdir@
  30638. VPATH = @srcdir@
  30639. -prefix = @prefix@
  30640. -exec_prefix = @exec_prefix@
  30641. -
  30642. -bindir = @bindir@
  30643. -sbindir = @sbindir@
  30644. -libexecdir = @libexecdir@
  30645. -datadir = @datadir@
  30646. -sysconfdir = @sysconfdir@
  30647. -sharedstatedir = @sharedstatedir@
  30648. -localstatedir = @localstatedir@
  30649. -libdir = @libdir@
  30650. -infodir = @infodir@
  30651. -mandir = @mandir@
  30652. -includedir = @includedir@
  30653. -oldincludedir = /usr/include
  30654. -
  30655. -DESTDIR =
  30656. -
  30657. pkgdatadir = $(datadir)/@PACKAGE@
  30658. pkglibdir = $(libdir)/@PACKAGE@
  30659. pkgincludedir = $(includedir)/@PACKAGE@
  30660. -
  30661. top_builddir = ..
  30662. -
  30663. -ACLOCAL = @ACLOCAL@
  30664. -AUTOCONF = @AUTOCONF@
  30665. -AUTOMAKE = @AUTOMAKE@
  30666. -AUTOHEADER = @AUTOHEADER@
  30667. -
  30668. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  30669. INSTALL = @INSTALL@
  30670. -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
  30671. -INSTALL_DATA = @INSTALL_DATA@
  30672. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  30673. -transform = @program_transform_name@
  30674. -
  30675. +install_sh_DATA = $(install_sh) -c -m 644
  30676. +install_sh_PROGRAM = $(install_sh) -c
  30677. +install_sh_SCRIPT = $(install_sh) -c
  30678. +INSTALL_HEADER = $(INSTALL_DATA)
  30679. +transform = $(program_transform_name)
  30680. NORMAL_INSTALL = :
  30681. PRE_INSTALL = :
  30682. POST_INSTALL = :
  30683. NORMAL_UNINSTALL = :
  30684. PRE_UNINSTALL = :
  30685. POST_UNINSTALL = :
  30686. -build_alias = @build_alias@
  30687. build_triplet = @build@
  30688. -host_alias = @host_alias@
  30689. host_triplet = @host@
  30690. -target_alias = @target_alias@
  30691. target_triplet = @target@
  30692. +subdir = doc
  30693. +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  30694. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  30695. +am__aclocal_m4_deps = $(top_srcdir)/configure.in
  30696. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  30697. + $(ACLOCAL_M4)
  30698. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  30699. +CONFIG_HEADER = $(top_builddir)/config.h
  30700. +CONFIG_CLEAN_FILES =
  30701. +SOURCES =
  30702. +DIST_SOURCES =
  30703. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  30704. +ACLOCAL = @ACLOCAL@
  30705. +AMDEP_FALSE = @AMDEP_FALSE@
  30706. +AMDEP_TRUE = @AMDEP_TRUE@
  30707. +AMTAR = @AMTAR@
  30708. AR = @AR@
  30709. -AS = @AS@
  30710. +AUTOCONF = @AUTOCONF@
  30711. +AUTOHEADER = @AUTOHEADER@
  30712. +AUTOMAKE = @AUTOMAKE@
  30713. +AWK = @AWK@
  30714. CC = @CC@
  30715. +CCDEPMODE = @CCDEPMODE@
  30716. +CFLAGS = @CFLAGS@
  30717. +CPP = @CPP@
  30718. +CPPFLAGS = @CPPFLAGS@
  30719. CXX = @CXX@
  30720. CXXCPP = @CXXCPP@
  30721. -DLLTOOL = @DLLTOOL@
  30722. +CXXDEPMODE = @CXXDEPMODE@
  30723. +CXXFLAGS = @CXXFLAGS@
  30724. +CYGPATH_W = @CYGPATH_W@
  30725. +DEFS = @DEFS@
  30726. +DEPDIR = @DEPDIR@
  30727. ECHO = @ECHO@
  30728. +ECHO_C = @ECHO_C@
  30729. +ECHO_N = @ECHO_N@
  30730. +ECHO_T = @ECHO_T@
  30731. EGREP = @EGREP@
  30732. EXEEXT = @EXEEXT@
  30733. F77 = @F77@
  30734. -GCJ = @GCJ@
  30735. -GCJFLAGS = @GCJFLAGS@
  30736. -HAVE_LIB = @HAVE_LIB@
  30737. +FFLAGS = @FFLAGS@
  30738. +GREP = @GREP@
  30739. +INSTALL_DATA = @INSTALL_DATA@
  30740. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  30741. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  30742. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  30743. +LDFLAGS = @LDFLAGS@
  30744. LEX = @LEX@
  30745. -LIB = @LIB@
  30746. +LEXLIB = @LEXLIB@
  30747. +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  30748. +LIBOBJS = @LIBOBJS@
  30749. +LIBS = @LIBS@
  30750. LIBTOOL = @LIBTOOL@
  30751. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  30752. LIBVER_AGE = @LIBVER_AGE@
  30753. LIBVER_CURRENT = @LIBVER_CURRENT@
  30754. LIBVER_REVISION = @LIBVER_REVISION@
  30755. LN_S = @LN_S@
  30756. -LTLIB = @LTLIB@
  30757. +LTLIBOBJS = @LTLIBOBJS@
  30758. MAKEINFO = @MAKEINFO@
  30759. -OBJDUMP = @OBJDUMP@
  30760. OBJEXT = @OBJEXT@
  30761. PACKAGE = @PACKAGE@
  30762. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  30763. +PACKAGE_NAME = @PACKAGE_NAME@
  30764. +PACKAGE_STRING = @PACKAGE_STRING@
  30765. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  30766. +PACKAGE_VERSION = @PACKAGE_VERSION@
  30767. +PATH_SEPARATOR = @PATH_SEPARATOR@
  30768. PERL = @PERL@
  30769. RANLIB = @RANLIB@
  30770. -RC = @RC@
  30771. +SET_MAKE = @SET_MAKE@
  30772. +SHELL = @SHELL@
  30773. STRIP = @STRIP@
  30774. VERSION = @VERSION@
  30775. YACC = @YACC@
  30776. -
  30777. +YFLAGS = @YFLAGS@
  30778. +ac_ct_CC = @ac_ct_CC@
  30779. +ac_ct_CXX = @ac_ct_CXX@
  30780. +ac_ct_F77 = @ac_ct_F77@
  30781. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  30782. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  30783. +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  30784. +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  30785. +am__include = @am__include@
  30786. +am__leading_dot = @am__leading_dot@
  30787. +am__quote = @am__quote@
  30788. +am__tar = @am__tar@
  30789. +am__untar = @am__untar@
  30790. +bindir = @bindir@
  30791. +build = @build@
  30792. +build_alias = @build_alias@
  30793. +build_cpu = @build_cpu@
  30794. +build_os = @build_os@
  30795. +build_vendor = @build_vendor@
  30796. +datadir = @datadir@
  30797. +datarootdir = @datarootdir@
  30798. +docdir = @docdir@
  30799. +dvidir = @dvidir@
  30800. +exec_prefix = @exec_prefix@
  30801. +host = @host@
  30802. +host_alias = @host_alias@
  30803. +host_cpu = @host_cpu@
  30804. +host_os = @host_os@
  30805. +host_vendor = @host_vendor@
  30806. +htmldir = @htmldir@
  30807. +includedir = @includedir@
  30808. +infodir = @infodir@
  30809. +install_sh = @install_sh@
  30810. +libdir = @libdir@
  30811. +libexecdir = @libexecdir@
  30812. +localedir = @localedir@
  30813. +localstatedir = @localstatedir@
  30814. +mandir = @mandir@
  30815. +mkdir_p = @mkdir_p@
  30816. +oldincludedir = @oldincludedir@
  30817. +pdfdir = @pdfdir@
  30818. +prefix = @prefix@
  30819. +program_transform_name = @program_transform_name@
  30820. +psdir = @psdir@
  30821. +sbindir = @sbindir@
  30822. +sharedstatedir = @sharedstatedir@
  30823. +sysconfdir = @sysconfdir@
  30824. +target = @target@
  30825. +target_alias = @target_alias@
  30826. +target_cpu = @target_cpu@
  30827. +target_os = @target_os@
  30828. +target_vendor = @target_vendor@
  30829. EXTRA_DIST = README.CLP README.tc atm-linux-howto.sgml atm-linux-howto.txt
  30830. -
  30831. HOWTO = atm-linux-howto.sgml
  30832. -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  30833. -CONFIG_HEADER = ../config.h
  30834. -CONFIG_CLEAN_FILES =
  30835. -DIST_COMMON = README Makefile.am Makefile.in
  30836. -
  30837. +all: all-am
  30838. -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  30839. -
  30840. -TAR = tar
  30841. -GZIP_ENV = --best
  30842. -all: all-redirect
  30843. .SUFFIXES:
  30844. -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  30845. - cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile
  30846. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  30847. + @for dep in $?; do \
  30848. + case '$(am__configure_deps)' in \
  30849. + *$$dep*) \
  30850. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  30851. + && exit 0; \
  30852. + exit 1;; \
  30853. + esac; \
  30854. + done; \
  30855. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  30856. + cd $(top_srcdir) && \
  30857. + $(AUTOMAKE) --gnu doc/Makefile
  30858. +.PRECIOUS: Makefile
  30859. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  30860. + @case '$?' in \
  30861. + *config.status*) \
  30862. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  30863. + *) \
  30864. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  30865. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  30866. + esac;
  30867. +
  30868. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  30869. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  30870. +
  30871. +$(top_srcdir)/configure: $(am__configure_deps)
  30872. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  30873. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  30874. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  30875. +
  30876. +mostlyclean-libtool:
  30877. + -rm -f *.lo
  30878. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  30879. - cd $(top_builddir) \
  30880. - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  30881. +clean-libtool:
  30882. + -rm -rf .libs _libs
  30883. +distclean-libtool:
  30884. + -rm -f libtool
  30885. +uninstall-info-am:
  30886. tags: TAGS
  30887. TAGS:
  30888. +ctags: CTAGS
  30889. +CTAGS:
  30890. -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  30891. -
  30892. -subdir = doc
  30893. distdir: $(DISTFILES)
  30894. - here=`cd $(top_builddir) && pwd`; \
  30895. - top_distdir=`cd $(top_distdir) && pwd`; \
  30896. - distdir=`cd $(distdir) && pwd`; \
  30897. - cd $(top_srcdir) \
  30898. - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile
  30899. - @for file in $(DISTFILES); do \
  30900. - d=$(srcdir); \
  30901. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  30902. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  30903. + list='$(DISTFILES)'; for file in $$list; do \
  30904. + case $$file in \
  30905. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  30906. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  30907. + esac; \
  30908. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  30909. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  30910. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  30911. + dir="/$$dir"; \
  30912. + $(mkdir_p) "$(distdir)$$dir"; \
  30913. + else \
  30914. + dir=''; \
  30915. + fi; \
  30916. if test -d $$d/$$file; then \
  30917. - cp -pr $$d/$$file $(distdir)/$$file; \
  30918. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  30919. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  30920. + fi; \
  30921. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  30922. else \
  30923. test -f $(distdir)/$$file \
  30924. - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  30925. - || cp -p $$d/$$file $(distdir)/$$file || :; \
  30926. + || cp -p $$d/$$file $(distdir)/$$file \
  30927. + || exit 1; \
  30928. fi; \
  30929. done
  30930. -info-am:
  30931. -info: info-am
  30932. -dvi-am:
  30933. -dvi: dvi-am
  30934. check-am: all-am
  30935. check: check-am
  30936. -installcheck-am:
  30937. -installcheck: installcheck-am
  30938. -install-exec-am:
  30939. +all-am: Makefile
  30940. +installdirs:
  30941. +install: install-am
  30942. install-exec: install-exec-am
  30943. -
  30944. -install-data-am:
  30945. install-data: install-data-am
  30946. +uninstall: uninstall-am
  30947. install-am: all-am
  30948. @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  30949. -install: install-am
  30950. -uninstall-am:
  30951. -uninstall: uninstall-am
  30952. -all-am: Makefile
  30953. -all-redirect: all-am
  30954. -install-strip:
  30955. - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  30956. -installdirs:
  30957. -
  30958. +installcheck: installcheck-am
  30959. +install-strip:
  30960. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  30961. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  30962. + `test -z '$(STRIP)' || \
  30963. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  30964. mostlyclean-generic:
  30965. clean-generic:
  30966. distclean-generic:
  30967. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  30968. - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  30969. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  30970. maintainer-clean-generic:
  30971. -mostlyclean-am: mostlyclean-generic
  30972. + @echo "This command is intended for maintainers to use"
  30973. + @echo "it deletes files that may require special tools to rebuild."
  30974. +clean-am: clean-generic clean-libtool mostlyclean-am
  30975. -mostlyclean: mostlyclean-am
  30976. +distclean: distclean-am
  30977. + -rm -f Makefile
  30978. +distclean-am: clean-am distclean-generic distclean-libtool
  30979. -clean-am: clean-generic mostlyclean-am
  30980. +dvi: dvi-am
  30981. -clean: clean-am
  30982. +dvi-am:
  30983. -distclean-am: distclean-generic clean-am
  30984. - -rm -f libtool
  30985. +info: info-am
  30986. -distclean: distclean-am
  30987. +info-am:
  30988. -maintainer-clean-am: maintainer-clean-generic distclean-am
  30989. - @echo "This command is intended for maintainers to use;"
  30990. - @echo "it deletes files that may require special tools to rebuild."
  30991. +install-data-am:
  30992. +
  30993. +install-exec-am:
  30994. +
  30995. +install-info: install-info-am
  30996. +
  30997. +install-man:
  30998. +
  30999. +installcheck-am:
  31000. maintainer-clean: maintainer-clean-am
  31001. + -rm -f Makefile
  31002. +maintainer-clean-am: distclean-am maintainer-clean-generic
  31003. -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
  31004. -installcheck-am installcheck install-exec-am install-exec \
  31005. -install-data-am install-data install-am install uninstall-am uninstall \
  31006. -all-redirect all-am all installdirs mostlyclean-generic \
  31007. -distclean-generic clean-generic maintainer-clean-generic clean \
  31008. -mostlyclean distclean maintainer-clean
  31009. +mostlyclean: mostlyclean-am
  31010. +
  31011. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  31012. +
  31013. +pdf-am:
  31014. +
  31015. +ps-am:
  31016. +
  31017. +uninstall-am: uninstall-info-am
  31018. +
  31019. +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
  31020. + distclean distclean-generic distclean-libtool distdir dvi \
  31021. + dvi-am html html-am info info-am install install-am \
  31022. + install-data install-data-am install-exec install-exec-am \
  31023. + install-info install-info-am install-man install-strip \
  31024. + installcheck installcheck-am installdirs maintainer-clean \
  31025. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  31026. + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
  31027. + uninstall-info-am
  31028. atm-linux-howto/atm-linux-howto.html: ${HOWTO}
  31029. @@ -231,7 +345,6 @@
  31030. clean:
  31031. -rm -rf atm-linux-howto/ *.ps *.pdf *.rtf *.out
  31032. -
  31033. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  31034. # Otherwise a system limit (for SysV at least) may be exceeded.
  31035. .NOEXPORT:
  31036. Index: linux-atm-2.4.1/ltmain.sh
  31037. ===================================================================
  31038. --- linux-atm-2.4.1.orig/ltmain.sh 2007-10-20 21:45:35.514856307 +0200
  31039. +++ linux-atm-2.4.1/ltmain.sh 2007-10-20 21:45:44.295356677 +0200
  31040. @@ -1,7 +1,7 @@
  31041. # ltmain.sh - Provide generalized library-building support services.
  31042. # NOTE: Changing this file will not affect anything until you rerun configure.
  31043. #
  31044. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  31045. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  31046. # Free Software Foundation, Inc.
  31047. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  31048. #
  31049. @@ -17,13 +17,41 @@
  31050. #
  31051. # You should have received a copy of the GNU General Public License
  31052. # along with this program; if not, write to the Free Software
  31053. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  31054. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  31055. #
  31056. # As a special exception to the GNU General Public License, if you
  31057. # distribute this file as part of a program that contains a
  31058. # configuration script generated by Autoconf, you may include it under
  31059. # the same distribution terms that you use for the rest of that program.
  31060. +basename="s,^.*/,,g"
  31061. +
  31062. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  31063. +# is ksh but when the shell is invoked as "sh" and the current value of
  31064. +# the _XPG environment variable is not equal to 1 (one), the special
  31065. +# positional parameter $0, within a function call, is the name of the
  31066. +# function.
  31067. +progpath="$0"
  31068. +
  31069. +# The name of this program:
  31070. +progname=`echo "$progpath" | $SED $basename`
  31071. +modename="$progname"
  31072. +
  31073. +# Global variables:
  31074. +EXIT_SUCCESS=0
  31075. +EXIT_FAILURE=1
  31076. +
  31077. +PROGRAM=ltmain.sh
  31078. +PACKAGE=libtool
  31079. +VERSION="1.5.22 Debian 1.5.22-4"
  31080. +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  31081. +
  31082. +# See if we are running on zsh, and set the options which allow our
  31083. +# commands through without removal of \ escapes.
  31084. +if test -n "${ZSH_VERSION+set}" ; then
  31085. + setopt NO_GLOB_SUBST
  31086. +fi
  31087. +
  31088. # Check that we have a working $echo.
  31089. if test "X$1" = X--no-reexec; then
  31090. # Discard the --no-reexec flag, and continue.
  31091. @@ -36,7 +64,7 @@
  31092. :
  31093. else
  31094. # Restart under the correct shell, and then maybe $echo will work.
  31095. - exec $SHELL "$0" --no-reexec ${1+"$@"}
  31096. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  31097. fi
  31098. if test "X$1" = X--fallback-echo; then
  31099. @@ -45,19 +73,9 @@
  31100. cat <<EOF
  31101. $*
  31102. EOF
  31103. - exit 0
  31104. + exit $EXIT_SUCCESS
  31105. fi
  31106. -# The name of this program.
  31107. -progname=`$echo "$0" | ${SED} 's%^.*/%%'`
  31108. -modename="$progname"
  31109. -
  31110. -# Constants.
  31111. -PROGRAM=ltmain.sh
  31112. -PACKAGE=libtool
  31113. -VERSION=1.4.3
  31114. -TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
  31115. -
  31116. default_mode=
  31117. help="Try \`$progname --help' for more information."
  31118. magic="%%%MAGIC variable%%%"
  31119. @@ -69,17 +87,18 @@
  31120. # metacharacters that are still active within double-quoted strings.
  31121. Xsed="${SED}"' -e 1s/^X//'
  31122. sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  31123. -# test EBCDIC or ASCII
  31124. -case `echo A|od -x` in
  31125. - *[Cc]1*) # EBCDIC based system
  31126. - SP2NL="tr '\100' '\n'"
  31127. - NL2SP="tr '\r\n' '\100\100'"
  31128. - ;;
  31129. - *) # Assume ASCII based system
  31130. - SP2NL="tr '\040' '\012'"
  31131. - NL2SP="tr '\015\012' '\040\040'"
  31132. - ;;
  31133. -esac
  31134. +# test EBCDIC or ASCII
  31135. +case `echo X|tr X '\101'` in
  31136. + A) # ASCII based system
  31137. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  31138. + SP2NL='tr \040 \012'
  31139. + NL2SP='tr \015\012 \040\040'
  31140. + ;;
  31141. + *) # EBCDIC based system
  31142. + SP2NL='tr \100 \n'
  31143. + NL2SP='tr \r\n \100\100'
  31144. + ;;
  31145. +esac
  31146. # NLS nuisances.
  31147. # Only set LANG and LC_ALL to C if already set.
  31148. @@ -94,12 +113,14 @@
  31149. fi
  31150. # Make sure IFS has a sensible default
  31151. -: ${IFS=" "}
  31152. +lt_nl='
  31153. +'
  31154. +IFS=" $lt_nl"
  31155. if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  31156. - echo "$modename: not configured to build any kind of library" 1>&2
  31157. - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  31158. - exit 1
  31159. + $echo "$modename: not configured to build any kind of library" 1>&2
  31160. + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  31161. + exit $EXIT_FAILURE
  31162. fi
  31163. # Global variables.
  31164. @@ -111,11 +132,268 @@
  31165. show="$echo"
  31166. show_help=
  31167. execute_dlfiles=
  31168. +duplicate_deps=no
  31169. +preserve_args=
  31170. lo2o="s/\\.lo\$/.${objext}/"
  31171. o2lo="s/\\.${objext}\$/.lo/"
  31172. +#####################################
  31173. +# Shell function definitions:
  31174. +# This seems to be the best place for them
  31175. +
  31176. +# func_mktempdir [string]
  31177. +# Make a temporary directory that won't clash with other running
  31178. +# libtool processes, and avoids race conditions if possible. If
  31179. +# given, STRING is the basename for that directory.
  31180. +func_mktempdir ()
  31181. +{
  31182. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  31183. +
  31184. + if test "$run" = ":"; then
  31185. + # Return a directory name, but don't create it in dry-run mode
  31186. + my_tmpdir="${my_template}-$$"
  31187. + else
  31188. +
  31189. + # If mktemp works, use that first and foremost
  31190. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  31191. +
  31192. + if test ! -d "$my_tmpdir"; then
  31193. + # Failing that, at least try and use $RANDOM to avoid a race
  31194. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  31195. +
  31196. + save_mktempdir_umask=`umask`
  31197. + umask 0077
  31198. + $mkdir "$my_tmpdir"
  31199. + umask $save_mktempdir_umask
  31200. + fi
  31201. +
  31202. + # If we're not in dry-run mode, bomb out on failure
  31203. + test -d "$my_tmpdir" || {
  31204. + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  31205. + exit $EXIT_FAILURE
  31206. + }
  31207. + fi
  31208. +
  31209. + $echo "X$my_tmpdir" | $Xsed
  31210. +}
  31211. +
  31212. +
  31213. +# func_win32_libid arg
  31214. +# return the library type of file 'arg'
  31215. +#
  31216. +# Need a lot of goo to handle *both* DLLs and import libs
  31217. +# Has to be a shell function in order to 'eat' the argument
  31218. +# that is supplied when $file_magic_command is called.
  31219. +func_win32_libid ()
  31220. +{
  31221. + win32_libid_type="unknown"
  31222. + win32_fileres=`file -L $1 2>/dev/null`
  31223. + case $win32_fileres in
  31224. + *ar\ archive\ import\ library*) # definitely import
  31225. + win32_libid_type="x86 archive import"
  31226. + ;;
  31227. + *ar\ archive*) # could be an import, or static
  31228. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  31229. + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  31230. + win32_nmres=`eval $NM -f posix -A $1 | \
  31231. + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  31232. + case $win32_nmres in
  31233. + import*) win32_libid_type="x86 archive import";;
  31234. + *) win32_libid_type="x86 archive static";;
  31235. + esac
  31236. + fi
  31237. + ;;
  31238. + *DLL*)
  31239. + win32_libid_type="x86 DLL"
  31240. + ;;
  31241. + *executable*) # but shell scripts are "executable" too...
  31242. + case $win32_fileres in
  31243. + *MS\ Windows\ PE\ Intel*)
  31244. + win32_libid_type="x86 DLL"
  31245. + ;;
  31246. + esac
  31247. + ;;
  31248. + esac
  31249. + $echo $win32_libid_type
  31250. +}
  31251. +
  31252. +
  31253. +# func_infer_tag arg
  31254. +# Infer tagged configuration to use if any are available and
  31255. +# if one wasn't chosen via the "--tag" command line option.
  31256. +# Only attempt this if the compiler in the base compile
  31257. +# command doesn't match the default compiler.
  31258. +# arg is usually of the form 'gcc ...'
  31259. +func_infer_tag ()
  31260. +{
  31261. + if test -n "$available_tags" && test -z "$tagname"; then
  31262. + CC_quoted=
  31263. + for arg in $CC; do
  31264. + case $arg in
  31265. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  31266. + arg="\"$arg\""
  31267. + ;;
  31268. + esac
  31269. + CC_quoted="$CC_quoted $arg"
  31270. + done
  31271. + case $@ in
  31272. + # Blanks in the command may have been stripped by the calling shell,
  31273. + # but not from the CC environment variable when configure was run.
  31274. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  31275. + # Blanks at the start of $base_compile will cause this to fail
  31276. + # if we don't check for them as well.
  31277. + *)
  31278. + for z in $available_tags; do
  31279. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  31280. + # Evaluate the configuration.
  31281. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  31282. + CC_quoted=
  31283. + for arg in $CC; do
  31284. + # Double-quote args containing other shell metacharacters.
  31285. + case $arg in
  31286. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  31287. + arg="\"$arg\""
  31288. + ;;
  31289. + esac
  31290. + CC_quoted="$CC_quoted $arg"
  31291. + done
  31292. + case "$@ " in
  31293. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  31294. + # The compiler in the base compile command matches
  31295. + # the one in the tagged configuration.
  31296. + # Assume this is the tagged configuration we want.
  31297. + tagname=$z
  31298. + break
  31299. + ;;
  31300. + esac
  31301. + fi
  31302. + done
  31303. + # If $tagname still isn't set, then no tagged configuration
  31304. + # was found and let the user know that the "--tag" command
  31305. + # line option must be used.
  31306. + if test -z "$tagname"; then
  31307. + $echo "$modename: unable to infer tagged configuration"
  31308. + $echo "$modename: specify a tag with \`--tag'" 1>&2
  31309. + exit $EXIT_FAILURE
  31310. +# else
  31311. +# $echo "$modename: using $tagname tagged configuration"
  31312. + fi
  31313. + ;;
  31314. + esac
  31315. + fi
  31316. +}
  31317. +
  31318. +
  31319. +# func_extract_an_archive dir oldlib
  31320. +func_extract_an_archive ()
  31321. +{
  31322. + f_ex_an_ar_dir="$1"; shift
  31323. + f_ex_an_ar_oldlib="$1"
  31324. +
  31325. + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  31326. + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  31327. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  31328. + :
  31329. + else
  31330. + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  31331. + exit $EXIT_FAILURE
  31332. + fi
  31333. +}
  31334. +
  31335. +# func_extract_archives gentop oldlib ...
  31336. +func_extract_archives ()
  31337. +{
  31338. + my_gentop="$1"; shift
  31339. + my_oldlibs=${1+"$@"}
  31340. + my_oldobjs=""
  31341. + my_xlib=""
  31342. + my_xabs=""
  31343. + my_xdir=""
  31344. + my_status=""
  31345. +
  31346. + $show "${rm}r $my_gentop"
  31347. + $run ${rm}r "$my_gentop"
  31348. + $show "$mkdir $my_gentop"
  31349. + $run $mkdir "$my_gentop"
  31350. + my_status=$?
  31351. + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  31352. + exit $my_status
  31353. + fi
  31354. +
  31355. + for my_xlib in $my_oldlibs; do
  31356. + # Extract the objects.
  31357. + case $my_xlib in
  31358. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  31359. + *) my_xabs=`pwd`"/$my_xlib" ;;
  31360. + esac
  31361. + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  31362. + my_xdir="$my_gentop/$my_xlib"
  31363. +
  31364. + $show "${rm}r $my_xdir"
  31365. + $run ${rm}r "$my_xdir"
  31366. + $show "$mkdir $my_xdir"
  31367. + $run $mkdir "$my_xdir"
  31368. + exit_status=$?
  31369. + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  31370. + exit $exit_status
  31371. + fi
  31372. + case $host in
  31373. + *-darwin*)
  31374. + $show "Extracting $my_xabs"
  31375. + # Do not bother doing anything if just a dry run
  31376. + if test -z "$run"; then
  31377. + darwin_orig_dir=`pwd`
  31378. + cd $my_xdir || exit $?
  31379. + darwin_archive=$my_xabs
  31380. + darwin_curdir=`pwd`
  31381. + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  31382. + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  31383. + if test -n "$darwin_arches"; then
  31384. + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  31385. + darwin_arch=
  31386. + $show "$darwin_base_archive has multiple architectures $darwin_arches"
  31387. + for darwin_arch in $darwin_arches ; do
  31388. + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  31389. + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  31390. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  31391. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  31392. + cd "$darwin_curdir"
  31393. + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  31394. + done # $darwin_arches
  31395. + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  31396. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  31397. + darwin_file=
  31398. + darwin_files=
  31399. + for darwin_file in $darwin_filelist; do
  31400. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  31401. + lipo -create -output "$darwin_file" $darwin_files
  31402. + done # $darwin_filelist
  31403. + ${rm}r unfat-$$
  31404. + cd "$darwin_orig_dir"
  31405. + else
  31406. + cd "$darwin_orig_dir"
  31407. + func_extract_an_archive "$my_xdir" "$my_xabs"
  31408. + fi # $darwin_arches
  31409. + fi # $run
  31410. + ;;
  31411. + *)
  31412. + func_extract_an_archive "$my_xdir" "$my_xabs"
  31413. + ;;
  31414. + esac
  31415. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  31416. + done
  31417. + func_extract_archives_result="$my_oldobjs"
  31418. +}
  31419. +# End of Shell function definitions
  31420. +#####################################
  31421. +
  31422. +# Darwin sucks
  31423. +eval std_shrext=\"$shrext_cmds\"
  31424. +
  31425. +disable_libs=no
  31426. +
  31427. # Parse our command line options once, thoroughly.
  31428. -while test $# -gt 0
  31429. +while test "$#" -gt 0
  31430. do
  31431. arg="$1"
  31432. shift
  31433. @@ -131,6 +409,34 @@
  31434. execute_dlfiles)
  31435. execute_dlfiles="$execute_dlfiles $arg"
  31436. ;;
  31437. + tag)
  31438. + tagname="$arg"
  31439. + preserve_args="${preserve_args}=$arg"
  31440. +
  31441. + # Check whether tagname contains only valid characters
  31442. + case $tagname in
  31443. + *[!-_A-Za-z0-9,/]*)
  31444. + $echo "$progname: invalid tag name: $tagname" 1>&2
  31445. + exit $EXIT_FAILURE
  31446. + ;;
  31447. + esac
  31448. +
  31449. + case $tagname in
  31450. + CC)
  31451. + # Don't test for the "default" C tag, as we know, it's there, but
  31452. + # not specially marked.
  31453. + ;;
  31454. + *)
  31455. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  31456. + taglist="$taglist $tagname"
  31457. + # Evaluate the configuration.
  31458. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  31459. + else
  31460. + $echo "$progname: ignoring unknown tag $tagname" 1>&2
  31461. + fi
  31462. + ;;
  31463. + esac
  31464. + ;;
  31465. *)
  31466. eval "$prev=\$arg"
  31467. ;;
  31468. @@ -148,18 +454,27 @@
  31469. ;;
  31470. --version)
  31471. - echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  31472. - exit 0
  31473. + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  31474. + $echo
  31475. + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  31476. + $echo "This is free software; see the source for copying conditions. There is NO"
  31477. + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  31478. + exit $?
  31479. ;;
  31480. --config)
  31481. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
  31482. - exit 0
  31483. + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  31484. + # Now print the configurations for the tags.
  31485. + for tagname in $taglist; do
  31486. + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  31487. + done
  31488. + exit $?
  31489. ;;
  31490. --debug)
  31491. - echo "$progname: enabling shell trace mode"
  31492. + $echo "$progname: enabling shell trace mode"
  31493. set -x
  31494. + preserve_args="$preserve_args $arg"
  31495. ;;
  31496. --dry-run | -n)
  31497. @@ -167,18 +482,18 @@
  31498. ;;
  31499. --features)
  31500. - echo "host: $host"
  31501. + $echo "host: $host"
  31502. if test "$build_libtool_libs" = yes; then
  31503. - echo "enable shared libraries"
  31504. + $echo "enable shared libraries"
  31505. else
  31506. - echo "disable shared libraries"
  31507. + $echo "disable shared libraries"
  31508. fi
  31509. if test "$build_old_libs" = yes; then
  31510. - echo "enable static libraries"
  31511. + $echo "enable static libraries"
  31512. else
  31513. - echo "disable static libraries"
  31514. + $echo "disable static libraries"
  31515. fi
  31516. - exit 0
  31517. + exit $?
  31518. ;;
  31519. --finish) mode="finish" ;;
  31520. @@ -190,6 +505,19 @@
  31521. --quiet | --silent)
  31522. show=:
  31523. + preserve_args="$preserve_args $arg"
  31524. + ;;
  31525. +
  31526. + --tag)
  31527. + prevopt="--tag"
  31528. + prev=tag
  31529. + preserve_args="$preserve_args --tag"
  31530. + ;;
  31531. + --tag=*)
  31532. + set tag "$optarg" ${1+"$@"}
  31533. + shift
  31534. + prev=tag
  31535. + preserve_args="$preserve_args --tag"
  31536. ;;
  31537. -dlopen)
  31538. @@ -200,7 +528,7 @@
  31539. -*)
  31540. $echo "$modename: unrecognized option \`$arg'" 1>&2
  31541. $echo "$help" 1>&2
  31542. - exit 1
  31543. + exit $EXIT_FAILURE
  31544. ;;
  31545. *)
  31546. @@ -213,9 +541,21 @@
  31547. if test -n "$prevopt"; then
  31548. $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  31549. $echo "$help" 1>&2
  31550. - exit 1
  31551. + exit $EXIT_FAILURE
  31552. fi
  31553. +case $disable_libs in
  31554. +no)
  31555. + ;;
  31556. +shared)
  31557. + build_libtool_libs=no
  31558. + build_old_libs=yes
  31559. + ;;
  31560. +static)
  31561. + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  31562. + ;;
  31563. +esac
  31564. +
  31565. # If this variable is set in any of the actions, the command in it
  31566. # will be execed at the end. This prevents here-documents from being
  31567. # left over by shells.
  31568. @@ -225,8 +565,10 @@
  31569. # Infer the operation mode.
  31570. if test -z "$mode"; then
  31571. + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  31572. + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  31573. case $nonopt in
  31574. - *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
  31575. + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  31576. mode=link
  31577. for arg
  31578. do
  31579. @@ -267,7 +609,7 @@
  31580. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  31581. $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  31582. $echo "$help" 1>&2
  31583. - exit 1
  31584. + exit $EXIT_FAILURE
  31585. fi
  31586. # Change the help message to a mode-specific one.
  31587. @@ -281,158 +623,127 @@
  31588. modename="$modename: compile"
  31589. # Get the compilation command and the source file.
  31590. base_compile=
  31591. - prev=
  31592. - lastarg=
  31593. - srcfile="$nonopt"
  31594. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  31595. + suppress_opt=yes
  31596. suppress_output=
  31597. + arg_mode=normal
  31598. + libobj=
  31599. + later=
  31600. - user_target=no
  31601. for arg
  31602. do
  31603. - case $prev in
  31604. - "") ;;
  31605. - xcompiler)
  31606. - # Aesthetically quote the previous argument.
  31607. - prev=
  31608. - lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  31609. -
  31610. - case $arg in
  31611. - # Double-quote args containing other shell metacharacters.
  31612. - # Many Bourne shells cannot handle close brackets correctly
  31613. - # in scan sets, so we specify it separately.
  31614. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  31615. - arg="\"$arg\""
  31616. - ;;
  31617. - esac
  31618. -
  31619. - # Add the previous argument to base_compile.
  31620. - if test -z "$base_compile"; then
  31621. - base_compile="$lastarg"
  31622. - else
  31623. - base_compile="$base_compile $lastarg"
  31624. - fi
  31625. - continue
  31626. + case $arg_mode in
  31627. + arg )
  31628. + # do not "continue". Instead, add this to base_compile
  31629. + lastarg="$arg"
  31630. + arg_mode=normal
  31631. ;;
  31632. - esac
  31633. - # Accept any command-line options.
  31634. - case $arg in
  31635. - -o)
  31636. - if test "$user_target" != "no"; then
  31637. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  31638. - exit 1
  31639. - fi
  31640. - user_target=next
  31641. - ;;
  31642. -
  31643. - -static)
  31644. - build_old_libs=yes
  31645. + target )
  31646. + libobj="$arg"
  31647. + arg_mode=normal
  31648. continue
  31649. ;;
  31650. - -prefer-pic)
  31651. - pic_mode=yes
  31652. - continue
  31653. - ;;
  31654. + normal )
  31655. + # Accept any command-line options.
  31656. + case $arg in
  31657. + -o)
  31658. + if test -n "$libobj" ; then
  31659. + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  31660. + exit $EXIT_FAILURE
  31661. + fi
  31662. + arg_mode=target
  31663. + continue
  31664. + ;;
  31665. - -prefer-non-pic)
  31666. - pic_mode=no
  31667. - continue
  31668. - ;;
  31669. + -static | -prefer-pic | -prefer-non-pic)
  31670. + later="$later $arg"
  31671. + continue
  31672. + ;;
  31673. - -Xcompiler)
  31674. - prev=xcompiler
  31675. - continue
  31676. - ;;
  31677. + -no-suppress)
  31678. + suppress_opt=no
  31679. + continue
  31680. + ;;
  31681. - -Wc,*)
  31682. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  31683. - lastarg=
  31684. - save_ifs="$IFS"; IFS=','
  31685. - for arg in $args; do
  31686. - IFS="$save_ifs"
  31687. + -Xcompiler)
  31688. + arg_mode=arg # the next one goes into the "base_compile" arg list
  31689. + continue # The current "srcfile" will either be retained or
  31690. + ;; # replaced later. I would guess that would be a bug.
  31691. +
  31692. + -Wc,*)
  31693. + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  31694. + lastarg=
  31695. + save_ifs="$IFS"; IFS=','
  31696. + for arg in $args; do
  31697. + IFS="$save_ifs"
  31698. - # Double-quote args containing other shell metacharacters.
  31699. - # Many Bourne shells cannot handle close brackets correctly
  31700. - # in scan sets, so we specify it separately.
  31701. - case $arg in
  31702. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  31703. - arg="\"$arg\""
  31704. - ;;
  31705. - esac
  31706. - lastarg="$lastarg $arg"
  31707. - done
  31708. - IFS="$save_ifs"
  31709. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  31710. + # Double-quote args containing other shell metacharacters.
  31711. + # Many Bourne shells cannot handle close brackets correctly
  31712. + # in scan sets, so we specify it separately.
  31713. + case $arg in
  31714. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  31715. + arg="\"$arg\""
  31716. + ;;
  31717. + esac
  31718. + lastarg="$lastarg $arg"
  31719. + done
  31720. + IFS="$save_ifs"
  31721. + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  31722. - # Add the arguments to base_compile.
  31723. - if test -z "$base_compile"; then
  31724. - base_compile="$lastarg"
  31725. - else
  31726. + # Add the arguments to base_compile.
  31727. base_compile="$base_compile $lastarg"
  31728. - fi
  31729. - continue
  31730. - ;;
  31731. - esac
  31732. + continue
  31733. + ;;
  31734. - case $user_target in
  31735. - next)
  31736. - # The next one is the -o target name
  31737. - user_target=yes
  31738. - continue
  31739. - ;;
  31740. - yes)
  31741. - # We got the output file
  31742. - user_target=set
  31743. - libobj="$arg"
  31744. - continue
  31745. + * )
  31746. + # Accept the current argument as the source file.
  31747. + # The previous "srcfile" becomes the current argument.
  31748. + #
  31749. + lastarg="$srcfile"
  31750. + srcfile="$arg"
  31751. + ;;
  31752. + esac # case $arg
  31753. ;;
  31754. - esac
  31755. -
  31756. - # Accept the current argument as the source file.
  31757. - lastarg="$srcfile"
  31758. - srcfile="$arg"
  31759. + esac # case $arg_mode
  31760. # Aesthetically quote the previous argument.
  31761. -
  31762. - # Backslashify any backslashes, double quotes, and dollar signs.
  31763. - # These are the only characters that are still specially
  31764. - # interpreted inside of double-quoted scrings.
  31765. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  31766. + case $lastarg in
  31767. # Double-quote args containing other shell metacharacters.
  31768. # Many Bourne shells cannot handle close brackets correctly
  31769. - # in scan sets, so we specify it separately.
  31770. - case $lastarg in
  31771. + # in scan sets, and some SunOS ksh mistreat backslash-escaping
  31772. + # in scan sets (worked around with variable expansion),
  31773. + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  31774. + # at all, so we specify them separately.
  31775. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  31776. lastarg="\"$lastarg\""
  31777. ;;
  31778. esac
  31779. - # Add the previous argument to base_compile.
  31780. - if test -z "$base_compile"; then
  31781. - base_compile="$lastarg"
  31782. - else
  31783. - base_compile="$base_compile $lastarg"
  31784. - fi
  31785. - done
  31786. + base_compile="$base_compile $lastarg"
  31787. + done # for arg
  31788. - case $user_target in
  31789. - set)
  31790. + case $arg_mode in
  31791. + arg)
  31792. + $echo "$modename: you must specify an argument for -Xcompile"
  31793. + exit $EXIT_FAILURE
  31794. ;;
  31795. - no)
  31796. - # Get the name of the library object.
  31797. - libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  31798. + target)
  31799. + $echo "$modename: you must specify a target with \`-o'" 1>&2
  31800. + exit $EXIT_FAILURE
  31801. ;;
  31802. *)
  31803. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  31804. - exit 1
  31805. + # Get the name of the library object.
  31806. + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  31807. ;;
  31808. esac
  31809. # Recognize several different file suffixes.
  31810. # If the user specifies -o file.o, it is replaced with file.lo
  31811. - xform='[cCFSfmso]'
  31812. + xform='[cCFSifmso]'
  31813. case $libobj in
  31814. *.ada) xform=ada ;;
  31815. *.adb) xform=adb ;;
  31816. @@ -440,10 +751,13 @@
  31817. *.asm) xform=asm ;;
  31818. *.c++) xform=c++ ;;
  31819. *.cc) xform=cc ;;
  31820. + *.ii) xform=ii ;;
  31821. + *.class) xform=class ;;
  31822. *.cpp) xform=cpp ;;
  31823. *.cxx) xform=cxx ;;
  31824. *.f90) xform=f90 ;;
  31825. *.for) xform=for ;;
  31826. + *.java) xform=java ;;
  31827. esac
  31828. libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  31829. @@ -452,25 +766,63 @@
  31830. *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  31831. *)
  31832. $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  31833. - exit 1
  31834. + exit $EXIT_FAILURE
  31835. ;;
  31836. esac
  31837. + func_infer_tag $base_compile
  31838. +
  31839. + for arg in $later; do
  31840. + case $arg in
  31841. + -static)
  31842. + build_old_libs=yes
  31843. + continue
  31844. + ;;
  31845. +
  31846. + -prefer-pic)
  31847. + pic_mode=yes
  31848. + continue
  31849. + ;;
  31850. +
  31851. + -prefer-non-pic)
  31852. + pic_mode=no
  31853. + continue
  31854. + ;;
  31855. + esac
  31856. + done
  31857. +
  31858. + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  31859. + case $qlibobj in
  31860. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  31861. + qlibobj="\"$qlibobj\"" ;;
  31862. + esac
  31863. + test "X$libobj" != "X$qlibobj" \
  31864. + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  31865. + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  31866. + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  31867. + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  31868. + if test "X$xdir" = "X$obj"; then
  31869. + xdir=
  31870. + else
  31871. + xdir=$xdir/
  31872. + fi
  31873. + lobj=${xdir}$objdir/$objname
  31874. +
  31875. if test -z "$base_compile"; then
  31876. $echo "$modename: you must specify a compilation command" 1>&2
  31877. $echo "$help" 1>&2
  31878. - exit 1
  31879. + exit $EXIT_FAILURE
  31880. fi
  31881. # Delete any leftover library objects.
  31882. if test "$build_old_libs" = yes; then
  31883. - removelist="$obj $libobj"
  31884. + removelist="$obj $lobj $libobj ${libobj}T"
  31885. else
  31886. - removelist="$libobj"
  31887. + removelist="$lobj $libobj ${libobj}T"
  31888. fi
  31889. $run $rm $removelist
  31890. - trap "$run $rm $removelist; exit 1" 1 2 15
  31891. + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  31892. # On Cygwin there's no "real" PIC flag so we must build both object types
  31893. case $host_os in
  31894. @@ -489,8 +841,9 @@
  31895. output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  31896. lockfile="$output_obj.lock"
  31897. removelist="$removelist $output_obj $lockfile"
  31898. - trap "$run $rm $removelist; exit 1" 1 2 15
  31899. + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  31900. else
  31901. + output_obj=
  31902. need_locks=no
  31903. lockfile=
  31904. fi
  31905. @@ -498,13 +851,13 @@
  31906. # Lock this critical section if it is needed
  31907. # We use this script file to make the link, it avoids creating a new file
  31908. if test "$need_locks" = yes; then
  31909. - until $run ln "$0" "$lockfile" 2>/dev/null; do
  31910. + until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  31911. $show "Waiting for $lockfile to be removed"
  31912. sleep 2
  31913. done
  31914. elif test "$need_locks" = warn; then
  31915. if test -f "$lockfile"; then
  31916. - echo "\
  31917. + $echo "\
  31918. *** ERROR, $lockfile exists and contains:
  31919. `cat $lockfile 2>/dev/null`
  31920. @@ -516,14 +869,33 @@
  31921. compiler."
  31922. $run $rm $removelist
  31923. - exit 1
  31924. + exit $EXIT_FAILURE
  31925. fi
  31926. - echo $srcfile > "$lockfile"
  31927. + $echo "$srcfile" > "$lockfile"
  31928. fi
  31929. if test -n "$fix_srcfile_path"; then
  31930. eval srcfile=\"$fix_srcfile_path\"
  31931. fi
  31932. + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  31933. + case $qsrcfile in
  31934. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  31935. + qsrcfile="\"$qsrcfile\"" ;;
  31936. + esac
  31937. +
  31938. + $run $rm "$libobj" "${libobj}T"
  31939. +
  31940. + # Create a libtool object file (analogous to a ".la" file),
  31941. + # but don't create it if we're doing a dry run.
  31942. + test -z "$run" && cat > ${libobj}T <<EOF
  31943. +# $libobj - a libtool object file
  31944. +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  31945. +#
  31946. +# Please DO NOT delete this file!
  31947. +# It is necessary for linking the library.
  31948. +
  31949. +# Name of the PIC object.
  31950. +EOF
  31951. # Only build a PIC object if we are building libtool libraries.
  31952. if test "$build_libtool_libs" = yes; then
  31953. @@ -531,53 +903,38 @@
  31954. fbsd_hideous_sh_bug=$base_compile
  31955. if test "$pic_mode" != no; then
  31956. - # All platforms use -DPIC, to notify preprocessed assembler code.
  31957. - command="$base_compile $srcfile $pic_flag -DPIC"
  31958. + command="$base_compile $qsrcfile $pic_flag"
  31959. else
  31960. # Don't build PIC code
  31961. - command="$base_compile $srcfile"
  31962. + command="$base_compile $qsrcfile"
  31963. fi
  31964. - if test "$build_old_libs" = yes; then
  31965. - lo_libobj="$libobj"
  31966. - dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  31967. - if test "X$dir" = "X$libobj"; then
  31968. - dir="$objdir"
  31969. - else
  31970. - dir="$dir/$objdir"
  31971. - fi
  31972. - libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
  31973. - if test -d "$dir"; then
  31974. - $show "$rm $libobj"
  31975. - $run $rm $libobj
  31976. - else
  31977. - $show "$mkdir $dir"
  31978. - $run $mkdir $dir
  31979. - status=$?
  31980. - if test $status -ne 0 && test ! -d $dir; then
  31981. - exit $status
  31982. - fi
  31983. + if test ! -d "${xdir}$objdir"; then
  31984. + $show "$mkdir ${xdir}$objdir"
  31985. + $run $mkdir ${xdir}$objdir
  31986. + exit_status=$?
  31987. + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  31988. + exit $exit_status
  31989. fi
  31990. fi
  31991. - if test "$compiler_o_lo" = yes; then
  31992. - output_obj="$libobj"
  31993. - command="$command -o $output_obj"
  31994. - elif test "$compiler_c_o" = yes; then
  31995. - output_obj="$obj"
  31996. - command="$command -o $output_obj"
  31997. +
  31998. + if test -z "$output_obj"; then
  31999. + # Place PIC objects in $objdir
  32000. + command="$command -o $lobj"
  32001. fi
  32002. - $run $rm "$output_obj"
  32003. + $run $rm "$lobj" "$output_obj"
  32004. +
  32005. $show "$command"
  32006. if $run eval "$command"; then :
  32007. else
  32008. test -n "$output_obj" && $run $rm $removelist
  32009. - exit 1
  32010. + exit $EXIT_FAILURE
  32011. fi
  32012. if test "$need_locks" = warn &&
  32013. - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
  32014. - echo "\
  32015. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  32016. + $echo "\
  32017. *** ERROR, $lockfile contains:
  32018. `cat $lockfile 2>/dev/null`
  32019. @@ -592,13 +949,13 @@
  32020. compiler."
  32021. $run $rm $removelist
  32022. - exit 1
  32023. + exit $EXIT_FAILURE
  32024. fi
  32025. # Just move the object if needed, then go on to compile the next one
  32026. - if test x"$output_obj" != x"$libobj"; then
  32027. - $show "$mv $output_obj $libobj"
  32028. - if $run $mv $output_obj $libobj; then :
  32029. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  32030. + $show "$mv $output_obj $lobj"
  32031. + if $run $mv $output_obj $lobj; then :
  32032. else
  32033. error=$?
  32034. $run $rm $removelist
  32035. @@ -606,77 +963,50 @@
  32036. fi
  32037. fi
  32038. - # If we have no pic_flag, then copy the object into place and finish.
  32039. - if (test -z "$pic_flag" || test "$pic_mode" != default) &&
  32040. - test "$build_old_libs" = yes; then
  32041. - # Rename the .lo from within objdir to obj
  32042. - if test -f $obj; then
  32043. - $show $rm $obj
  32044. - $run $rm $obj
  32045. - fi
  32046. + # Append the name of the PIC object to the libtool object file.
  32047. + test -z "$run" && cat >> ${libobj}T <<EOF
  32048. +pic_object='$objdir/$objname'
  32049. - $show "$mv $libobj $obj"
  32050. - if $run $mv $libobj $obj; then :
  32051. - else
  32052. - error=$?
  32053. - $run $rm $removelist
  32054. - exit $error
  32055. - fi
  32056. +EOF
  32057. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  32058. - if test "X$xdir" = "X$obj"; then
  32059. - xdir="."
  32060. - else
  32061. - xdir="$xdir"
  32062. - fi
  32063. - baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
  32064. - libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  32065. - # Now arrange that obj and lo_libobj become the same file
  32066. - $show "(cd $xdir && $LN_S $baseobj $libobj)"
  32067. - if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
  32068. - # Unlock the critical section if it was locked
  32069. - if test "$need_locks" != no; then
  32070. - $run $rm "$lockfile"
  32071. - fi
  32072. - exit 0
  32073. - else
  32074. - error=$?
  32075. - $run $rm $removelist
  32076. - exit $error
  32077. - fi
  32078. + # Allow error messages only from the first compilation.
  32079. + if test "$suppress_opt" = yes; then
  32080. + suppress_output=' >/dev/null 2>&1'
  32081. fi
  32082. + else
  32083. + # No PIC object so indicate it doesn't exist in the libtool
  32084. + # object file.
  32085. + test -z "$run" && cat >> ${libobj}T <<EOF
  32086. +pic_object=none
  32087. - # Allow error messages only from the first compilation.
  32088. - suppress_output=' >/dev/null 2>&1'
  32089. +EOF
  32090. fi
  32091. # Only build a position-dependent object if we build old libraries.
  32092. if test "$build_old_libs" = yes; then
  32093. if test "$pic_mode" != yes; then
  32094. # Don't build PIC code
  32095. - command="$base_compile $srcfile"
  32096. + command="$base_compile $qsrcfile"
  32097. else
  32098. - # All platforms use -DPIC, to notify preprocessed assembler code.
  32099. - command="$base_compile $srcfile $pic_flag -DPIC"
  32100. + command="$base_compile $qsrcfile $pic_flag"
  32101. fi
  32102. if test "$compiler_c_o" = yes; then
  32103. command="$command -o $obj"
  32104. - output_obj="$obj"
  32105. fi
  32106. # Suppress compiler output if we already did a PIC compilation.
  32107. command="$command$suppress_output"
  32108. - $run $rm "$output_obj"
  32109. + $run $rm "$obj" "$output_obj"
  32110. $show "$command"
  32111. if $run eval "$command"; then :
  32112. else
  32113. $run $rm $removelist
  32114. - exit 1
  32115. + exit $EXIT_FAILURE
  32116. fi
  32117. if test "$need_locks" = warn &&
  32118. - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
  32119. - echo "\
  32120. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  32121. + $echo "\
  32122. *** ERROR, $lockfile contains:
  32123. `cat $lockfile 2>/dev/null`
  32124. @@ -691,11 +1021,11 @@
  32125. compiler."
  32126. $run $rm $removelist
  32127. - exit 1
  32128. + exit $EXIT_FAILURE
  32129. fi
  32130. # Just move the object if needed
  32131. - if test x"$output_obj" != x"$obj"; then
  32132. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  32133. $show "$mv $output_obj $obj"
  32134. if $run $mv $output_obj $obj; then :
  32135. else
  32136. @@ -705,29 +1035,31 @@
  32137. fi
  32138. fi
  32139. - # Create an invalid libtool object if no PIC, so that we do not
  32140. - # accidentally link it into a program.
  32141. - if test "$build_libtool_libs" != yes; then
  32142. - $show "echo timestamp > $libobj"
  32143. - $run eval "echo timestamp > \$libobj" || exit $?
  32144. - else
  32145. - # Move the .lo from within objdir
  32146. - $show "$mv $libobj $lo_libobj"
  32147. - if $run $mv $libobj $lo_libobj; then :
  32148. - else
  32149. - error=$?
  32150. - $run $rm $removelist
  32151. - exit $error
  32152. - fi
  32153. - fi
  32154. + # Append the name of the non-PIC object the libtool object file.
  32155. + # Only append if the libtool object file exists.
  32156. + test -z "$run" && cat >> ${libobj}T <<EOF
  32157. +# Name of the non-PIC object.
  32158. +non_pic_object='$objname'
  32159. +
  32160. +EOF
  32161. + else
  32162. + # Append the name of the non-PIC object the libtool object file.
  32163. + # Only append if the libtool object file exists.
  32164. + test -z "$run" && cat >> ${libobj}T <<EOF
  32165. +# Name of the non-PIC object.
  32166. +non_pic_object=none
  32167. +
  32168. +EOF
  32169. fi
  32170. + $run $mv "${libobj}T" "${libobj}"
  32171. +
  32172. # Unlock the critical section if it was locked
  32173. if test "$need_locks" != no; then
  32174. $run $rm "$lockfile"
  32175. fi
  32176. - exit 0
  32177. + exit $EXIT_SUCCESS
  32178. ;;
  32179. # libtool link mode
  32180. @@ -738,7 +1070,7 @@
  32181. # It is impossible to link a dll without this setting, and
  32182. # we shouldn't force the makefile maintainer to figure out
  32183. # which system we are compiling for in order to pass an extra
  32184. - # flag for every libtool invokation.
  32185. + # flag for every libtool invocation.
  32186. # allow_undefined=no
  32187. # FIXME: Unfortunately, there are problems with the above when trying
  32188. @@ -753,6 +1085,7 @@
  32189. ;;
  32190. esac
  32191. libtool_args="$nonopt"
  32192. + base_compile="$nonopt $@"
  32193. compile_command="$nonopt"
  32194. finalize_command="$nonopt"
  32195. @@ -783,6 +1116,9 @@
  32196. module=no
  32197. no_install=no
  32198. objs=
  32199. + non_pic_objects=
  32200. + notinst_path= # paths that contain not-installed libtool libraries
  32201. + precious_files_regex=
  32202. prefer_static_libs=no
  32203. preload=no
  32204. prev=
  32205. @@ -794,6 +1130,9 @@
  32206. temp_rpath=
  32207. thread_safe=no
  32208. vinfo=
  32209. + vinfo_number=no
  32210. +
  32211. + func_infer_tag $base_compile
  32212. # We need to know -static, to get the right output filenames.
  32213. for arg
  32214. @@ -807,14 +1146,15 @@
  32215. if test -n "$link_static_flag"; then
  32216. dlopen_self=$dlopen_self_static
  32217. fi
  32218. + prefer_static_libs=yes
  32219. else
  32220. if test -z "$pic_flag" && test -n "$link_static_flag"; then
  32221. dlopen_self=$dlopen_self_static
  32222. fi
  32223. + prefer_static_libs=built
  32224. fi
  32225. build_libtool_libs=no
  32226. build_old_libs=yes
  32227. - prefer_static_libs=yes
  32228. break
  32229. ;;
  32230. esac
  32231. @@ -824,7 +1164,7 @@
  32232. test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  32233. # Go through the arguments, transforming them on the way.
  32234. - while test $# -gt 0; do
  32235. + while test "$#" -gt 0; do
  32236. arg="$1"
  32237. shift
  32238. case $arg in
  32239. @@ -889,7 +1229,7 @@
  32240. export_symbols="$arg"
  32241. if test ! -f "$arg"; then
  32242. $echo "$modename: symbol file \`$arg' does not exist"
  32243. - exit 1
  32244. + exit $EXIT_FAILURE
  32245. fi
  32246. prev=
  32247. continue
  32248. @@ -904,18 +1244,135 @@
  32249. prev=
  32250. continue
  32251. ;;
  32252. + precious_regex)
  32253. + precious_files_regex="$arg"
  32254. + prev=
  32255. + continue
  32256. + ;;
  32257. release)
  32258. release="-$arg"
  32259. prev=
  32260. continue
  32261. ;;
  32262. + objectlist)
  32263. + if test -f "$arg"; then
  32264. + save_arg=$arg
  32265. + moreargs=
  32266. + for fil in `cat $save_arg`
  32267. + do
  32268. +# moreargs="$moreargs $fil"
  32269. + arg=$fil
  32270. + # A libtool-controlled object.
  32271. +
  32272. + # Check to see that this really is a libtool object.
  32273. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  32274. + pic_object=
  32275. + non_pic_object=
  32276. +
  32277. + # Read the .lo file
  32278. + # If there is no directory component, then add one.
  32279. + case $arg in
  32280. + */* | *\\*) . $arg ;;
  32281. + *) . ./$arg ;;
  32282. + esac
  32283. +
  32284. + if test -z "$pic_object" || \
  32285. + test -z "$non_pic_object" ||
  32286. + test "$pic_object" = none && \
  32287. + test "$non_pic_object" = none; then
  32288. + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  32289. + exit $EXIT_FAILURE
  32290. + fi
  32291. +
  32292. + # Extract subdirectory from the argument.
  32293. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  32294. + if test "X$xdir" = "X$arg"; then
  32295. + xdir=
  32296. + else
  32297. + xdir="$xdir/"
  32298. + fi
  32299. +
  32300. + if test "$pic_object" != none; then
  32301. + # Prepend the subdirectory the object is found in.
  32302. + pic_object="$xdir$pic_object"
  32303. +
  32304. + if test "$prev" = dlfiles; then
  32305. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  32306. + dlfiles="$dlfiles $pic_object"
  32307. + prev=
  32308. + continue
  32309. + else
  32310. + # If libtool objects are unsupported, then we need to preload.
  32311. + prev=dlprefiles
  32312. + fi
  32313. + fi
  32314. +
  32315. + # CHECK ME: I think I busted this. -Ossama
  32316. + if test "$prev" = dlprefiles; then
  32317. + # Preload the old-style object.
  32318. + dlprefiles="$dlprefiles $pic_object"
  32319. + prev=
  32320. + fi
  32321. +
  32322. + # A PIC object.
  32323. + libobjs="$libobjs $pic_object"
  32324. + arg="$pic_object"
  32325. + fi
  32326. +
  32327. + # Non-PIC object.
  32328. + if test "$non_pic_object" != none; then
  32329. + # Prepend the subdirectory the object is found in.
  32330. + non_pic_object="$xdir$non_pic_object"
  32331. +
  32332. + # A standard non-PIC object
  32333. + non_pic_objects="$non_pic_objects $non_pic_object"
  32334. + if test -z "$pic_object" || test "$pic_object" = none ; then
  32335. + arg="$non_pic_object"
  32336. + fi
  32337. + else
  32338. + # If the PIC object exists, use it instead.
  32339. + # $xdir was prepended to $pic_object above.
  32340. + non_pic_object="$pic_object"
  32341. + non_pic_objects="$non_pic_objects $non_pic_object"
  32342. + fi
  32343. + else
  32344. + # Only an error if not doing a dry-run.
  32345. + if test -z "$run"; then
  32346. + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  32347. + exit $EXIT_FAILURE
  32348. + else
  32349. + # Dry-run case.
  32350. +
  32351. + # Extract subdirectory from the argument.
  32352. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  32353. + if test "X$xdir" = "X$arg"; then
  32354. + xdir=
  32355. + else
  32356. + xdir="$xdir/"
  32357. + fi
  32358. +
  32359. + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  32360. + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  32361. + libobjs="$libobjs $pic_object"
  32362. + non_pic_objects="$non_pic_objects $non_pic_object"
  32363. + fi
  32364. + fi
  32365. + done
  32366. + else
  32367. + $echo "$modename: link input file \`$save_arg' does not exist"
  32368. + exit $EXIT_FAILURE
  32369. + fi
  32370. + arg=$save_arg
  32371. + prev=
  32372. + continue
  32373. + ;;
  32374. rpath | xrpath)
  32375. # We need an absolute path.
  32376. case $arg in
  32377. [\\/]* | [A-Za-z]:[\\/]*) ;;
  32378. *)
  32379. $echo "$modename: only absolute run-paths are allowed" 1>&2
  32380. - exit 1
  32381. + exit $EXIT_FAILURE
  32382. ;;
  32383. esac
  32384. if test "$prev" = rpath; then
  32385. @@ -947,13 +1404,33 @@
  32386. finalize_command="$finalize_command $wl$qarg"
  32387. continue
  32388. ;;
  32389. + xcclinker)
  32390. + linker_flags="$linker_flags $qarg"
  32391. + compiler_flags="$compiler_flags $qarg"
  32392. + prev=
  32393. + compile_command="$compile_command $qarg"
  32394. + finalize_command="$finalize_command $qarg"
  32395. + continue
  32396. + ;;
  32397. + shrext)
  32398. + shrext_cmds="$arg"
  32399. + prev=
  32400. + continue
  32401. + ;;
  32402. + darwin_framework|darwin_framework_skip)
  32403. + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  32404. + compile_command="$compile_command $arg"
  32405. + finalize_command="$finalize_command $arg"
  32406. + prev=
  32407. + continue
  32408. + ;;
  32409. *)
  32410. eval "$prev=\"\$arg\""
  32411. prev=
  32412. continue
  32413. ;;
  32414. esac
  32415. - fi # test -n $prev
  32416. + fi # test -n "$prev"
  32417. prevarg="$arg"
  32418. @@ -995,7 +1472,7 @@
  32419. -export-symbols | -export-symbols-regex)
  32420. if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  32421. $echo "$modename: more than one -exported-symbols argument is not allowed"
  32422. - exit 1
  32423. + exit $EXIT_FAILURE
  32424. fi
  32425. if test "X$arg" = "X-export-symbols"; then
  32426. prev=expsyms
  32427. @@ -1005,16 +1482,28 @@
  32428. continue
  32429. ;;
  32430. + -framework|-arch|-isysroot)
  32431. + case " $CC " in
  32432. + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  32433. + prev=darwin_framework_skip ;;
  32434. + *) compiler_flags="$compiler_flags $arg"
  32435. + prev=darwin_framework ;;
  32436. + esac
  32437. + compile_command="$compile_command $arg"
  32438. + finalize_command="$finalize_command $arg"
  32439. + continue
  32440. + ;;
  32441. +
  32442. -inst-prefix-dir)
  32443. - prev=inst_prefix
  32444. - continue
  32445. - ;;
  32446. + prev=inst_prefix
  32447. + continue
  32448. + ;;
  32449. # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  32450. # so, if we see these flags be careful not to treat them like -L
  32451. -L[A-Z][A-Z]*:*)
  32452. case $with_gcc/$host in
  32453. - no/*-*-irix* | no/*-*-nonstopux*)
  32454. + no/*-*-irix* | /*-*-irix*)
  32455. compile_command="$compile_command $arg"
  32456. finalize_command="$finalize_command $arg"
  32457. ;;
  32458. @@ -1031,7 +1520,8 @@
  32459. absdir=`cd "$dir" && pwd`
  32460. if test -z "$absdir"; then
  32461. $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  32462. - exit 1
  32463. + absdir="$dir"
  32464. + notinst_path="$notinst_path $dir"
  32465. fi
  32466. dir="$absdir"
  32467. ;;
  32468. @@ -1045,10 +1535,15 @@
  32469. esac
  32470. case $host in
  32471. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  32472. + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  32473. case :$dllsearchpath: in
  32474. *":$dir:"*) ;;
  32475. *) dllsearchpath="$dllsearchpath:$dir";;
  32476. esac
  32477. + case :$dllsearchpath: in
  32478. + *":$testbindir:"*) ;;
  32479. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  32480. + esac
  32481. ;;
  32482. esac
  32483. continue
  32484. @@ -1057,36 +1552,98 @@
  32485. -l*)
  32486. if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  32487. case $host in
  32488. - *-*-cygwin* | *-*-pw32* | *-*-beos*)
  32489. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  32490. # These systems don't actually have a C or math library (as such)
  32491. continue
  32492. ;;
  32493. - *-*-mingw* | *-*-os2*)
  32494. + *-*-os2*)
  32495. # These systems don't actually have a C library (as such)
  32496. test "X$arg" = "X-lc" && continue
  32497. ;;
  32498. - *-*-openbsd* | *-*-freebsd*)
  32499. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  32500. # Do not include libc due to us having libc/libc_r.
  32501. test "X$arg" = "X-lc" && continue
  32502. ;;
  32503. - esac
  32504. - elif test "X$arg" = "X-lc_r"; then
  32505. - case $host in
  32506. - *-*-openbsd* | *-*-freebsd*)
  32507. - # Do not include libc_r directly, use -pthread flag.
  32508. + *-*-rhapsody* | *-*-darwin1.[012])
  32509. + # Rhapsody C and math libraries are in the System framework
  32510. + deplibs="$deplibs -framework System"
  32511. continue
  32512. ;;
  32513. + *-*-sco3.2v5* | *-*-sco5v6*)
  32514. + # Causes problems with __ctype
  32515. + test "X$arg" = "X-lc" && continue
  32516. + ;;
  32517. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  32518. + # Compiler inserts libc in the correct place for threads to work
  32519. + test "X$arg" = "X-lc" && continue
  32520. + ;;
  32521. esac
  32522. + elif test "X$arg" = "X-lc_r"; then
  32523. + case $host in
  32524. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  32525. + # Do not include libc_r directly, use -pthread flag.
  32526. + continue
  32527. + ;;
  32528. + esac
  32529. fi
  32530. deplibs="$deplibs $arg"
  32531. continue
  32532. ;;
  32533. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  32534. + # classes, name mangling, and exception handling.
  32535. + -model)
  32536. + compile_command="$compile_command $arg"
  32537. + compiler_flags="$compiler_flags $arg"
  32538. + finalize_command="$finalize_command $arg"
  32539. + prev=xcompiler
  32540. + continue
  32541. + ;;
  32542. +
  32543. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  32544. + compiler_flags="$compiler_flags $arg"
  32545. + compile_command="$compile_command $arg"
  32546. + finalize_command="$finalize_command $arg"
  32547. + continue
  32548. + ;;
  32549. +
  32550. -module)
  32551. module=yes
  32552. continue
  32553. ;;
  32554. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  32555. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  32556. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  32557. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  32558. + # -q* pass through compiler args for the IBM compiler
  32559. + # -m* pass through architecture-specific compiler args for GCC
  32560. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  32561. + # compiler args for GCC
  32562. + # -pg pass through profiling flag for GCC
  32563. + # @file GCC response files
  32564. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  32565. + -t[45]*|-txscale*|@*)
  32566. +
  32567. + # Unknown arguments in both finalize_command and compile_command need
  32568. + # to be aesthetically quoted because they are evaled later.
  32569. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  32570. + case $arg in
  32571. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  32572. + arg="\"$arg\""
  32573. + ;;
  32574. + esac
  32575. + compile_command="$compile_command $arg"
  32576. + finalize_command="$finalize_command $arg"
  32577. + compiler_flags="$compiler_flags $arg"
  32578. + continue
  32579. + ;;
  32580. +
  32581. + -shrext)
  32582. + prev=shrext
  32583. + continue
  32584. + ;;
  32585. +
  32586. -no-fast-install)
  32587. fast_install=no
  32588. continue
  32589. @@ -1111,8 +1668,18 @@
  32590. continue
  32591. ;;
  32592. + -objectlist)
  32593. + prev=objectlist
  32594. + continue
  32595. + ;;
  32596. +
  32597. -o) prev=output ;;
  32598. + -precious-files-regex)
  32599. + prev=precious_regex
  32600. + continue
  32601. + ;;
  32602. +
  32603. -release)
  32604. prev=release
  32605. continue
  32606. @@ -1135,7 +1702,7 @@
  32607. [\\/]* | [A-Za-z]:[\\/]*) ;;
  32608. *)
  32609. $echo "$modename: only absolute run-paths are allowed" 1>&2
  32610. - exit 1
  32611. + exit $EXIT_FAILURE
  32612. ;;
  32613. esac
  32614. case "$xrpath " in
  32615. @@ -1163,6 +1730,11 @@
  32616. prev=vinfo
  32617. continue
  32618. ;;
  32619. + -version-number)
  32620. + prev=vinfo
  32621. + vinfo_number=yes
  32622. + continue
  32623. + ;;
  32624. -Wc,*)
  32625. args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  32626. @@ -1211,6 +1783,11 @@
  32627. continue
  32628. ;;
  32629. + -XCClinker)
  32630. + prev=xcclinker
  32631. + continue
  32632. + ;;
  32633. +
  32634. # Some other compiler flag.
  32635. -* | +*)
  32636. # Unknown arguments in both finalize_command and compile_command need
  32637. @@ -1223,29 +1800,106 @@
  32638. esac
  32639. ;;
  32640. - *.lo | *.$objext)
  32641. - # A library or standard object.
  32642. - if test "$prev" = dlfiles; then
  32643. - # This file was specified with -dlopen.
  32644. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  32645. - dlfiles="$dlfiles $arg"
  32646. - prev=
  32647. - continue
  32648. - else
  32649. - # If libtool objects are unsupported, then we need to preload.
  32650. - prev=dlprefiles
  32651. + *.$objext)
  32652. + # A standard object.
  32653. + objs="$objs $arg"
  32654. + ;;
  32655. +
  32656. + *.lo)
  32657. + # A libtool-controlled object.
  32658. +
  32659. + # Check to see that this really is a libtool object.
  32660. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  32661. + pic_object=
  32662. + non_pic_object=
  32663. +
  32664. + # Read the .lo file
  32665. + # If there is no directory component, then add one.
  32666. + case $arg in
  32667. + */* | *\\*) . $arg ;;
  32668. + *) . ./$arg ;;
  32669. + esac
  32670. +
  32671. + if test -z "$pic_object" || \
  32672. + test -z "$non_pic_object" ||
  32673. + test "$pic_object" = none && \
  32674. + test "$non_pic_object" = none; then
  32675. + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  32676. + exit $EXIT_FAILURE
  32677. + fi
  32678. +
  32679. + # Extract subdirectory from the argument.
  32680. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  32681. + if test "X$xdir" = "X$arg"; then
  32682. + xdir=
  32683. + else
  32684. + xdir="$xdir/"
  32685. + fi
  32686. +
  32687. + if test "$pic_object" != none; then
  32688. + # Prepend the subdirectory the object is found in.
  32689. + pic_object="$xdir$pic_object"
  32690. +
  32691. + if test "$prev" = dlfiles; then
  32692. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  32693. + dlfiles="$dlfiles $pic_object"
  32694. + prev=
  32695. + continue
  32696. + else
  32697. + # If libtool objects are unsupported, then we need to preload.
  32698. + prev=dlprefiles
  32699. + fi
  32700. + fi
  32701. +
  32702. + # CHECK ME: I think I busted this. -Ossama
  32703. + if test "$prev" = dlprefiles; then
  32704. + # Preload the old-style object.
  32705. + dlprefiles="$dlprefiles $pic_object"
  32706. + prev=
  32707. + fi
  32708. +
  32709. + # A PIC object.
  32710. + libobjs="$libobjs $pic_object"
  32711. + arg="$pic_object"
  32712. fi
  32713. - fi
  32714. - if test "$prev" = dlprefiles; then
  32715. - # Preload the old-style object.
  32716. - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
  32717. - prev=
  32718. + # Non-PIC object.
  32719. + if test "$non_pic_object" != none; then
  32720. + # Prepend the subdirectory the object is found in.
  32721. + non_pic_object="$xdir$non_pic_object"
  32722. +
  32723. + # A standard non-PIC object
  32724. + non_pic_objects="$non_pic_objects $non_pic_object"
  32725. + if test -z "$pic_object" || test "$pic_object" = none ; then
  32726. + arg="$non_pic_object"
  32727. + fi
  32728. + else
  32729. + # If the PIC object exists, use it instead.
  32730. + # $xdir was prepended to $pic_object above.
  32731. + non_pic_object="$pic_object"
  32732. + non_pic_objects="$non_pic_objects $non_pic_object"
  32733. + fi
  32734. else
  32735. - case $arg in
  32736. - *.lo) libobjs="$libobjs $arg" ;;
  32737. - *) objs="$objs $arg" ;;
  32738. - esac
  32739. + # Only an error if not doing a dry-run.
  32740. + if test -z "$run"; then
  32741. + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  32742. + exit $EXIT_FAILURE
  32743. + else
  32744. + # Dry-run case.
  32745. +
  32746. + # Extract subdirectory from the argument.
  32747. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  32748. + if test "X$xdir" = "X$arg"; then
  32749. + xdir=
  32750. + else
  32751. + xdir="$xdir/"
  32752. + fi
  32753. +
  32754. + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  32755. + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  32756. + libobjs="$libobjs $pic_object"
  32757. + non_pic_objects="$non_pic_objects $non_pic_object"
  32758. + fi
  32759. fi
  32760. ;;
  32761. @@ -1296,7 +1950,7 @@
  32762. if test -n "$prev"; then
  32763. $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  32764. $echo "$help" 1>&2
  32765. - exit 1
  32766. + exit $EXIT_FAILURE
  32767. fi
  32768. if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  32769. @@ -1305,6 +1959,7 @@
  32770. finalize_command="$finalize_command $arg"
  32771. fi
  32772. + oldlibs=
  32773. # calculate the name of the file, without its directory
  32774. outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  32775. libobjs_save="$libobjs"
  32776. @@ -1325,12 +1980,12 @@
  32777. output_objdir="$output_objdir/$objdir"
  32778. fi
  32779. # Create the object directory.
  32780. - if test ! -d $output_objdir; then
  32781. + if test ! -d "$output_objdir"; then
  32782. $show "$mkdir $output_objdir"
  32783. $run $mkdir $output_objdir
  32784. - status=$?
  32785. - if test $status -ne 0 && test ! -d $output_objdir; then
  32786. - exit $status
  32787. + exit_status=$?
  32788. + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  32789. + exit $exit_status
  32790. fi
  32791. fi
  32792. @@ -1339,7 +1994,7 @@
  32793. "")
  32794. $echo "$modename: you must specify an output file" 1>&2
  32795. $echo "$help" 1>&2
  32796. - exit 1
  32797. + exit $EXIT_FAILURE
  32798. ;;
  32799. *.$libext) linkmode=oldlib ;;
  32800. *.lo | *.$objext) linkmode=obj ;;
  32801. @@ -1347,7 +2002,17 @@
  32802. *) linkmode=prog ;; # Anything else should be a program.
  32803. esac
  32804. + case $host in
  32805. + *cygwin* | *mingw* | *pw32*)
  32806. + # don't eliminate duplications in $postdeps and $predeps
  32807. + duplicate_compiler_generated_deps=yes
  32808. + ;;
  32809. + *)
  32810. + duplicate_compiler_generated_deps=$duplicate_deps
  32811. + ;;
  32812. + esac
  32813. specialdeplibs=
  32814. +
  32815. libs=
  32816. # Find all interdependent deplibs by searching for libraries
  32817. # that are linked more than once (e.g. -la -lb -la)
  32818. @@ -1359,12 +2024,30 @@
  32819. fi
  32820. libs="$libs $deplib"
  32821. done
  32822. +
  32823. + if test "$linkmode" = lib; then
  32824. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  32825. +
  32826. + # Compute libraries that are listed more than once in $predeps
  32827. + # $postdeps and mark them as special (i.e., whose duplicates are
  32828. + # not to be eliminated).
  32829. + pre_post_deps=
  32830. + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  32831. + for pre_post_dep in $predeps $postdeps; do
  32832. + case "$pre_post_deps " in
  32833. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  32834. + esac
  32835. + pre_post_deps="$pre_post_deps $pre_post_dep"
  32836. + done
  32837. + fi
  32838. + pre_post_deps=
  32839. + fi
  32840. +
  32841. deplibs=
  32842. newdependency_libs=
  32843. newlib_search_path=
  32844. need_relink=no # whether we're linking any uninstalled libtool libraries
  32845. notinst_deplibs= # not-installed libtool libraries
  32846. - notinst_path= # paths that contain not-installed libtool libraries
  32847. case $linkmode in
  32848. lib)
  32849. passes="conv link"
  32850. @@ -1373,7 +2056,7 @@
  32851. *.la) ;;
  32852. *)
  32853. $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  32854. - exit 1
  32855. + exit $EXIT_FAILURE
  32856. ;;
  32857. esac
  32858. done
  32859. @@ -1390,39 +2073,58 @@
  32860. ;;
  32861. esac
  32862. for pass in $passes; do
  32863. - if test $linkmode = prog; then
  32864. - # Determine which files to process
  32865. + if test "$linkmode,$pass" = "lib,link" ||
  32866. + test "$linkmode,$pass" = "prog,scan"; then
  32867. + libs="$deplibs"
  32868. + deplibs=
  32869. + fi
  32870. + if test "$linkmode" = prog; then
  32871. case $pass in
  32872. - dlopen)
  32873. - libs="$dlfiles"
  32874. - save_deplibs="$deplibs" # Collect dlpreopened libraries
  32875. - deplibs=
  32876. - ;;
  32877. + dlopen) libs="$dlfiles" ;;
  32878. dlpreopen) libs="$dlprefiles" ;;
  32879. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  32880. + link)
  32881. + libs="$deplibs %DEPLIBS%"
  32882. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  32883. + ;;
  32884. esac
  32885. fi
  32886. + if test "$pass" = dlopen; then
  32887. + # Collect dlpreopened libraries
  32888. + save_deplibs="$deplibs"
  32889. + deplibs=
  32890. + fi
  32891. for deplib in $libs; do
  32892. lib=
  32893. found=no
  32894. case $deplib in
  32895. - -l*)
  32896. - if test $linkmode = oldlib && test $linkmode = obj; then
  32897. - $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
  32898. - continue
  32899. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  32900. + if test "$linkmode,$pass" = "prog,link"; then
  32901. + compile_deplibs="$deplib $compile_deplibs"
  32902. + finalize_deplibs="$deplib $finalize_deplibs"
  32903. + else
  32904. + compiler_flags="$compiler_flags $deplib"
  32905. fi
  32906. - if test $pass = conv; then
  32907. - deplibs="$deplib $deplibs"
  32908. + continue
  32909. + ;;
  32910. + -l*)
  32911. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  32912. + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  32913. continue
  32914. fi
  32915. name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  32916. for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  32917. - # Search the libtool library
  32918. - lib="$searchdir/lib${name}.la"
  32919. - if test -f "$lib"; then
  32920. - found=yes
  32921. - break
  32922. - fi
  32923. + for search_ext in .la $std_shrext .so .a; do
  32924. + # Search the libtool library
  32925. + lib="$searchdir/lib${name}${search_ext}"
  32926. + if test -f "$lib"; then
  32927. + if test "$search_ext" = ".la"; then
  32928. + found=yes
  32929. + else
  32930. + found=no
  32931. + fi
  32932. + break 2
  32933. + fi
  32934. + done
  32935. done
  32936. if test "$found" != yes; then
  32937. # deplib doesn't seem to be a libtool library
  32938. @@ -1431,40 +2133,76 @@
  32939. finalize_deplibs="$deplib $finalize_deplibs"
  32940. else
  32941. deplibs="$deplib $deplibs"
  32942. - test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
  32943. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  32944. fi
  32945. continue
  32946. + else # deplib is a libtool library
  32947. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  32948. + # We need to do some special things here, and not later.
  32949. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  32950. + case " $predeps $postdeps " in
  32951. + *" $deplib "*)
  32952. + if (${SED} -e '2q' $lib |
  32953. + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  32954. + library_names=
  32955. + old_library=
  32956. + case $lib in
  32957. + */* | *\\*) . $lib ;;
  32958. + *) . ./$lib ;;
  32959. + esac
  32960. + for l in $old_library $library_names; do
  32961. + ll="$l"
  32962. + done
  32963. + if test "X$ll" = "X$old_library" ; then # only static version available
  32964. + found=no
  32965. + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  32966. + test "X$ladir" = "X$lib" && ladir="."
  32967. + lib=$ladir/$old_library
  32968. + if test "$linkmode,$pass" = "prog,link"; then
  32969. + compile_deplibs="$deplib $compile_deplibs"
  32970. + finalize_deplibs="$deplib $finalize_deplibs"
  32971. + else
  32972. + deplibs="$deplib $deplibs"
  32973. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  32974. + fi
  32975. + continue
  32976. + fi
  32977. + fi
  32978. + ;;
  32979. + *) ;;
  32980. + esac
  32981. + fi
  32982. fi
  32983. ;; # -l
  32984. -L*)
  32985. case $linkmode in
  32986. lib)
  32987. deplibs="$deplib $deplibs"
  32988. - test $pass = conv && continue
  32989. + test "$pass" = conv && continue
  32990. newdependency_libs="$deplib $newdependency_libs"
  32991. newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  32992. ;;
  32993. prog)
  32994. - if test $pass = conv; then
  32995. + if test "$pass" = conv; then
  32996. deplibs="$deplib $deplibs"
  32997. continue
  32998. fi
  32999. - if test $pass = scan; then
  33000. + if test "$pass" = scan; then
  33001. deplibs="$deplib $deplibs"
  33002. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  33003. else
  33004. compile_deplibs="$deplib $compile_deplibs"
  33005. finalize_deplibs="$deplib $finalize_deplibs"
  33006. fi
  33007. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  33008. ;;
  33009. *)
  33010. - $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
  33011. + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  33012. ;;
  33013. esac # linkmode
  33014. continue
  33015. ;; # -L
  33016. -R*)
  33017. - if test $pass = link; then
  33018. + if test "$pass" = link; then
  33019. dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  33020. # Make sure the xrpath contains only unique directories.
  33021. case "$xrpath " in
  33022. @@ -1477,30 +2215,45 @@
  33023. ;;
  33024. *.la) lib="$deplib" ;;
  33025. *.$libext)
  33026. - if test $pass = conv; then
  33027. + if test "$pass" = conv; then
  33028. deplibs="$deplib $deplibs"
  33029. continue
  33030. fi
  33031. case $linkmode in
  33032. lib)
  33033. - if test "$deplibs_check_method" != pass_all; then
  33034. - echo
  33035. - echo "*** Warning: Trying to link with static lib archive $deplib."
  33036. - echo "*** I have the capability to make that library automatically link in when"
  33037. - echo "*** you link to this library. But I can only do this if you have a"
  33038. - echo "*** shared version of the library, which you do not appear to have"
  33039. - echo "*** because the file extensions .$libext of this argument makes me believe"
  33040. - echo "*** that it is just a static archive that I should not used here."
  33041. + valid_a_lib=no
  33042. + case $deplibs_check_method in
  33043. + match_pattern*)
  33044. + set dummy $deplibs_check_method
  33045. + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  33046. + if eval $echo \"$deplib\" 2>/dev/null \
  33047. + | $SED 10q \
  33048. + | $EGREP "$match_pattern_regex" > /dev/null; then
  33049. + valid_a_lib=yes
  33050. + fi
  33051. + ;;
  33052. + pass_all)
  33053. + valid_a_lib=yes
  33054. + ;;
  33055. + esac
  33056. + if test "$valid_a_lib" != yes; then
  33057. + $echo
  33058. + $echo "*** Warning: Trying to link with static lib archive $deplib."
  33059. + $echo "*** I have the capability to make that library automatically link in when"
  33060. + $echo "*** you link to this library. But I can only do this if you have a"
  33061. + $echo "*** shared version of the library, which you do not appear to have"
  33062. + $echo "*** because the file extensions .$libext of this argument makes me believe"
  33063. + $echo "*** that it is just a static archive that I should not used here."
  33064. else
  33065. - echo
  33066. - echo "*** Warning: Linking the shared library $output against the"
  33067. - echo "*** static library $deplib is not portable!"
  33068. + $echo
  33069. + $echo "*** Warning: Linking the shared library $output against the"
  33070. + $echo "*** static library $deplib is not portable!"
  33071. deplibs="$deplib $deplibs"
  33072. fi
  33073. continue
  33074. ;;
  33075. prog)
  33076. - if test $pass != link; then
  33077. + if test "$pass" != link; then
  33078. deplibs="$deplib $deplibs"
  33079. else
  33080. compile_deplibs="$deplib $compile_deplibs"
  33081. @@ -1511,14 +2264,18 @@
  33082. esac # linkmode
  33083. ;; # *.$libext
  33084. *.lo | *.$objext)
  33085. - if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  33086. - # If there is no dlopen support or we're linking statically,
  33087. - # we need to preload.
  33088. - newdlprefiles="$newdlprefiles $deplib"
  33089. - compile_deplibs="$deplib $compile_deplibs"
  33090. - finalize_deplibs="$deplib $finalize_deplibs"
  33091. - else
  33092. - newdlfiles="$newdlfiles $deplib"
  33093. + if test "$pass" = conv; then
  33094. + deplibs="$deplib $deplibs"
  33095. + elif test "$linkmode" = prog; then
  33096. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  33097. + # If there is no dlopen support or we're linking statically,
  33098. + # we need to preload.
  33099. + newdlprefiles="$newdlprefiles $deplib"
  33100. + compile_deplibs="$deplib $compile_deplibs"
  33101. + finalize_deplibs="$deplib $finalize_deplibs"
  33102. + else
  33103. + newdlfiles="$newdlfiles $deplib"
  33104. + fi
  33105. fi
  33106. continue
  33107. ;;
  33108. @@ -1527,17 +2284,17 @@
  33109. continue
  33110. ;;
  33111. esac # case $deplib
  33112. - if test $found = yes || test -f "$lib"; then :
  33113. + if test "$found" = yes || test -f "$lib"; then :
  33114. else
  33115. - $echo "$modename: cannot find the library \`$lib'" 1>&2
  33116. - exit 1
  33117. + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  33118. + exit $EXIT_FAILURE
  33119. fi
  33120. # Check to see that this really is a libtool archive.
  33121. - if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  33122. + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  33123. else
  33124. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  33125. - exit 1
  33126. + exit $EXIT_FAILURE
  33127. fi
  33128. ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  33129. @@ -1550,8 +2307,11 @@
  33130. library_names=
  33131. old_library=
  33132. # If the library was installed with an old release of libtool,
  33133. - # it will not redefine variable installed.
  33134. + # it will not redefine variables installed, or shouldnotlink
  33135. installed=yes
  33136. + shouldnotlink=no
  33137. + avoidtemprpath=
  33138. +
  33139. # Read the .la file
  33140. case $lib in
  33141. @@ -1561,19 +2321,18 @@
  33142. if test "$linkmode,$pass" = "lib,link" ||
  33143. test "$linkmode,$pass" = "prog,scan" ||
  33144. - { test $linkmode = oldlib && test $linkmode = obj; }; then
  33145. - # Add dl[pre]opened files of deplib
  33146. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  33147. test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  33148. test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  33149. fi
  33150. - if test $pass = conv; then
  33151. + if test "$pass" = conv; then
  33152. # Only check for convenience libraries
  33153. deplibs="$lib $deplibs"
  33154. if test -z "$libdir"; then
  33155. if test -z "$old_library"; then
  33156. $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  33157. - exit 1
  33158. + exit $EXIT_FAILURE
  33159. fi
  33160. # It is a libtool convenience library, so add in its objects.
  33161. convenience="$convenience $ladir/$objdir/$old_library"
  33162. @@ -1588,13 +2347,14 @@
  33163. fi
  33164. tmp_libs="$tmp_libs $deplib"
  33165. done
  33166. - elif test $linkmode != prog && test $linkmode != lib; then
  33167. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  33168. $echo "$modename: \`$lib' is not a convenience library" 1>&2
  33169. - exit 1
  33170. + exit $EXIT_FAILURE
  33171. fi
  33172. continue
  33173. fi # $pass = conv
  33174. +
  33175. # Get the name of the library we link against.
  33176. linklib=
  33177. for l in $old_library $library_names; do
  33178. @@ -1602,19 +2362,23 @@
  33179. done
  33180. if test -z "$linklib"; then
  33181. $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  33182. - exit 1
  33183. + exit $EXIT_FAILURE
  33184. fi
  33185. # This library was specified with -dlopen.
  33186. - if test $pass = dlopen; then
  33187. + if test "$pass" = dlopen; then
  33188. if test -z "$libdir"; then
  33189. $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  33190. - exit 1
  33191. + exit $EXIT_FAILURE
  33192. fi
  33193. - if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  33194. + if test -z "$dlname" ||
  33195. + test "$dlopen_support" != yes ||
  33196. + test "$build_libtool_libs" = no; then
  33197. # If there is no dlname, no dlopen support or we're linking
  33198. - # statically, we need to preload.
  33199. - dlprefiles="$dlprefiles $lib"
  33200. + # statically, we need to preload. We also need to preload any
  33201. + # dependent libraries so libltdl's deplib preloader doesn't
  33202. + # bomb out in the load deplibs phase.
  33203. + dlprefiles="$dlprefiles $lib $dependency_libs"
  33204. else
  33205. newdlfiles="$newdlfiles $lib"
  33206. fi
  33207. @@ -1646,19 +2410,27 @@
  33208. dir="$libdir"
  33209. absdir="$libdir"
  33210. fi
  33211. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  33212. else
  33213. - dir="$ladir/$objdir"
  33214. - absdir="$abs_ladir/$objdir"
  33215. - # Remove this search path later
  33216. - notinst_path="$notinst_path $abs_ladir"
  33217. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  33218. + dir="$ladir"
  33219. + absdir="$abs_ladir"
  33220. + # Remove this search path later
  33221. + notinst_path="$notinst_path $abs_ladir"
  33222. + else
  33223. + dir="$ladir/$objdir"
  33224. + absdir="$abs_ladir/$objdir"
  33225. + # Remove this search path later
  33226. + notinst_path="$notinst_path $abs_ladir"
  33227. + fi
  33228. fi # $installed = yes
  33229. name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  33230. # This library was specified with -dlpreopen.
  33231. - if test $pass = dlpreopen; then
  33232. + if test "$pass" = dlpreopen; then
  33233. if test -z "$libdir"; then
  33234. $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  33235. - exit 1
  33236. + exit $EXIT_FAILURE
  33237. fi
  33238. # Prefer using a static library (so that no silly _DYNAMIC symbols
  33239. # are required to link).
  33240. @@ -1674,18 +2446,19 @@
  33241. if test -z "$libdir"; then
  33242. # Link the convenience library
  33243. - if test $linkmode = lib; then
  33244. + if test "$linkmode" = lib; then
  33245. deplibs="$dir/$old_library $deplibs"
  33246. elif test "$linkmode,$pass" = "prog,link"; then
  33247. compile_deplibs="$dir/$old_library $compile_deplibs"
  33248. finalize_deplibs="$dir/$old_library $finalize_deplibs"
  33249. else
  33250. - deplibs="$lib $deplibs"
  33251. + deplibs="$lib $deplibs" # used for prog,scan pass
  33252. fi
  33253. continue
  33254. fi
  33255. - if test $linkmode = prog && test $pass != link; then
  33256. +
  33257. + if test "$linkmode" = prog && test "$pass" != link; then
  33258. newlib_search_path="$newlib_search_path $ladir"
  33259. deplibs="$lib $deplibs"
  33260. @@ -1701,7 +2474,7 @@
  33261. -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  33262. esac
  33263. # Need to link against all dependency_libs?
  33264. - if test $linkalldeplibs = yes; then
  33265. + if test "$linkalldeplibs" = yes; then
  33266. deplibs="$deplib $deplibs"
  33267. else
  33268. # Need to hardcode shared library paths
  33269. @@ -1718,13 +2491,19 @@
  33270. continue
  33271. fi # $linkmode = prog...
  33272. - link_static=no # Whether the deplib will be linked statically
  33273. - if test -n "$library_names" &&
  33274. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  33275. - # Link against this shared library
  33276. + if test "$linkmode,$pass" = "prog,link"; then
  33277. + if test -n "$library_names" &&
  33278. + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  33279. + # We need to hardcode the library path
  33280. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  33281. + # Make sure the rpath contains only unique directories.
  33282. + case "$temp_rpath " in
  33283. + *" $dir "*) ;;
  33284. + *" $absdir "*) ;;
  33285. + *) temp_rpath="$temp_rpath $absdir" ;;
  33286. + esac
  33287. + fi
  33288. - if test "$linkmode,$pass" = "prog,link" ||
  33289. - { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
  33290. # Hardcode the library path.
  33291. # Skip directories that are in the system default run-time
  33292. # search path.
  33293. @@ -1746,17 +2525,6 @@
  33294. esac
  33295. ;;
  33296. esac
  33297. - if test $linkmode = prog; then
  33298. - # We need to hardcode the library path
  33299. - if test -n "$shlibpath_var"; then
  33300. - # Make sure the rpath contains only unique directories.
  33301. - case "$temp_rpath " in
  33302. - *" $dir "*) ;;
  33303. - *" $absdir "*) ;;
  33304. - *) temp_rpath="$temp_rpath $dir" ;;
  33305. - esac
  33306. - fi
  33307. - fi
  33308. fi # $linkmode,$pass = prog,link...
  33309. if test "$alldeplibs" = yes &&
  33310. @@ -1766,11 +2534,56 @@
  33311. # We only need to search for static libraries
  33312. continue
  33313. fi
  33314. + fi
  33315. + link_static=no # Whether the deplib will be linked statically
  33316. + use_static_libs=$prefer_static_libs
  33317. + if test "$use_static_libs" = built && test "$installed" = yes ; then
  33318. + use_static_libs=no
  33319. + fi
  33320. + if test -n "$library_names" &&
  33321. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  33322. if test "$installed" = no; then
  33323. notinst_deplibs="$notinst_deplibs $lib"
  33324. need_relink=yes
  33325. fi
  33326. + # This is a shared library
  33327. +
  33328. + # Warn about portability, can't link against -module's on
  33329. + # some systems (darwin)
  33330. + if test "$shouldnotlink" = yes && test "$pass" = link ; then
  33331. + $echo
  33332. + if test "$linkmode" = prog; then
  33333. + $echo "*** Warning: Linking the executable $output against the loadable module"
  33334. + else
  33335. + $echo "*** Warning: Linking the shared library $output against the loadable module"
  33336. + fi
  33337. + $echo "*** $linklib is not portable!"
  33338. + fi
  33339. + if test "$linkmode" = lib &&
  33340. + test "$hardcode_into_libs" = yes; then
  33341. + # Hardcode the library path.
  33342. + # Skip directories that are in the system default run-time
  33343. + # search path.
  33344. + case " $sys_lib_dlsearch_path " in
  33345. + *" $absdir "*) ;;
  33346. + *)
  33347. + case "$compile_rpath " in
  33348. + *" $absdir "*) ;;
  33349. + *) compile_rpath="$compile_rpath $absdir"
  33350. + esac
  33351. + ;;
  33352. + esac
  33353. + case " $sys_lib_dlsearch_path " in
  33354. + *" $libdir "*) ;;
  33355. + *)
  33356. + case "$finalize_rpath " in
  33357. + *" $libdir "*) ;;
  33358. + *) finalize_rpath="$finalize_rpath $libdir"
  33359. + esac
  33360. + ;;
  33361. + esac
  33362. + fi
  33363. if test -n "$old_archive_from_expsyms_cmds"; then
  33364. # figure out the soname
  33365. @@ -1784,7 +2597,7 @@
  33366. elif test -n "$soname_spec"; then
  33367. # bleh windows
  33368. case $host in
  33369. - *cygwin*)
  33370. + *cygwin* | mingw*)
  33371. major=`expr $current - $age`
  33372. versuffix="-$major"
  33373. ;;
  33374. @@ -1796,17 +2609,18 @@
  33375. # Make a new name for the extract_expsyms_cmds to use
  33376. soroot="$soname"
  33377. - soname=`echo $soroot | ${SED} -e 's/^.*\///'`
  33378. - newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  33379. + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  33380. + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  33381. # If the library has no export list, then create one now
  33382. if test -f "$output_objdir/$soname-def"; then :
  33383. else
  33384. $show "extracting exported symbol list from \`$soname'"
  33385. save_ifs="$IFS"; IFS='~'
  33386. - eval cmds=\"$extract_expsyms_cmds\"
  33387. + cmds=$extract_expsyms_cmds
  33388. for cmd in $cmds; do
  33389. IFS="$save_ifs"
  33390. + eval cmd=\"$cmd\"
  33391. $show "$cmd"
  33392. $run eval "$cmd" || exit $?
  33393. done
  33394. @@ -1817,9 +2631,10 @@
  33395. if test -f "$output_objdir/$newlib"; then :; else
  33396. $show "generating import library for \`$soname'"
  33397. save_ifs="$IFS"; IFS='~'
  33398. - eval cmds=\"$old_archive_from_expsyms_cmds\"
  33399. + cmds=$old_archive_from_expsyms_cmds
  33400. for cmd in $cmds; do
  33401. IFS="$save_ifs"
  33402. + eval cmd=\"$cmd\"
  33403. $show "$cmd"
  33404. $run eval "$cmd" || exit $?
  33405. done
  33406. @@ -1828,9 +2643,9 @@
  33407. # make sure the library variables are pointing to the new library
  33408. dir=$output_objdir
  33409. linklib=$newlib
  33410. - fi # test -n $old_archive_from_expsyms_cmds
  33411. + fi # test -n "$old_archive_from_expsyms_cmds"
  33412. - if test $linkmode = prog || test "$mode" != relink; then
  33413. + if test "$linkmode" = prog || test "$mode" != relink; then
  33414. add_shlibpath=
  33415. add_dir=
  33416. add=
  33417. @@ -1839,6 +2654,26 @@
  33418. immediate | unsupported)
  33419. if test "$hardcode_direct" = no; then
  33420. add="$dir/$linklib"
  33421. + case $host in
  33422. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  33423. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  33424. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  33425. + *-*-unixware7*) add_dir="-L$dir" ;;
  33426. + *-*-darwin* )
  33427. + # if the lib is a module then we can not link against
  33428. + # it, someone is ignoring the new warnings I added
  33429. + if /usr/bin/file -L $add 2> /dev/null |
  33430. + $EGREP ": [^:]* bundle" >/dev/null ; then
  33431. + $echo "** Warning, lib $linklib is a module, not a shared library"
  33432. + if test -z "$old_library" ; then
  33433. + $echo
  33434. + $echo "** And there doesn't seem to be a static archive available"
  33435. + $echo "** The link will probably fail, sorry"
  33436. + else
  33437. + add="$dir/$old_library"
  33438. + fi
  33439. + fi
  33440. + esac
  33441. elif test "$hardcode_minus_L" = no; then
  33442. case $host in
  33443. *-*-sunos*) add_shlibpath="$dir" ;;
  33444. @@ -1859,10 +2694,10 @@
  33445. add_dir="-L$dir"
  33446. # Try looking first in the location we're being installed to.
  33447. if test -n "$inst_prefix_dir"; then
  33448. - case "$libdir" in
  33449. - [\/]*)
  33450. - add_dir="-L$inst_prefix_dir$libdir $add_dir"
  33451. - ;;
  33452. + case $libdir in
  33453. + [\\/]*)
  33454. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  33455. + ;;
  33456. esac
  33457. fi
  33458. add="-l$name"
  33459. @@ -1878,7 +2713,7 @@
  33460. if test "$lib_linked" != yes; then
  33461. $echo "$modename: configuration error: unsupported hardcode properties"
  33462. - exit 1
  33463. + exit $EXIT_FAILURE
  33464. fi
  33465. if test -n "$add_shlibpath"; then
  33466. @@ -1887,7 +2722,7 @@
  33467. *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  33468. esac
  33469. fi
  33470. - if test $linkmode = prog; then
  33471. + if test "$linkmode" = prog; then
  33472. test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  33473. test -n "$add" && compile_deplibs="$add $compile_deplibs"
  33474. else
  33475. @@ -1904,7 +2739,7 @@
  33476. fi
  33477. fi
  33478. - if test $linkmode = prog || test "$mode" = relink; then
  33479. + if test "$linkmode" = prog || test "$mode" = relink; then
  33480. add_shlibpath=
  33481. add_dir=
  33482. add=
  33483. @@ -1920,21 +2755,28 @@
  33484. *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  33485. esac
  33486. add="-l$name"
  33487. + elif test "$hardcode_automatic" = yes; then
  33488. + if test -n "$inst_prefix_dir" &&
  33489. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  33490. + add="$inst_prefix_dir$libdir/$linklib"
  33491. + else
  33492. + add="$libdir/$linklib"
  33493. + fi
  33494. else
  33495. # We cannot seem to hardcode it, guess we'll fake it.
  33496. add_dir="-L$libdir"
  33497. # Try looking first in the location we're being installed to.
  33498. if test -n "$inst_prefix_dir"; then
  33499. - case "$libdir" in
  33500. - [\/]*)
  33501. - add_dir="-L$inst_prefix_dir$libdir $add_dir"
  33502. - ;;
  33503. + case $libdir in
  33504. + [\\/]*)
  33505. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  33506. + ;;
  33507. esac
  33508. fi
  33509. add="-l$name"
  33510. fi
  33511. - if test $linkmode = prog; then
  33512. + if test "$linkmode" = prog; then
  33513. test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  33514. test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  33515. else
  33516. @@ -1942,16 +2784,7 @@
  33517. test -n "$add" && deplibs="$add $deplibs"
  33518. fi
  33519. fi
  33520. - elif test $linkmode = prog; then
  33521. - if test "$alldeplibs" = yes &&
  33522. - { test "$deplibs_check_method" = pass_all ||
  33523. - { test "$build_libtool_libs" = yes &&
  33524. - test -n "$library_names"; }; }; then
  33525. - # We only need to search for static libraries
  33526. - continue
  33527. - fi
  33528. -
  33529. - # Try to link the static library
  33530. + elif test "$linkmode" = prog; then
  33531. # Here we assume that one of hardcode_direct or hardcode_minus_L
  33532. # is not unsupported. This is valid on all known static and
  33533. # shared platforms.
  33534. @@ -1971,21 +2804,21 @@
  33535. # Just print a warning and add the library to dependency_libs so
  33536. # that the program can be linked against the static library.
  33537. - echo
  33538. - echo "*** Warning: This system can not link to static lib archive $lib."
  33539. - echo "*** I have the capability to make that library automatically link in when"
  33540. - echo "*** you link to this library. But I can only do this if you have a"
  33541. - echo "*** shared version of the library, which you do not appear to have."
  33542. + $echo
  33543. + $echo "*** Warning: This system can not link to static lib archive $lib."
  33544. + $echo "*** I have the capability to make that library automatically link in when"
  33545. + $echo "*** you link to this library. But I can only do this if you have a"
  33546. + $echo "*** shared version of the library, which you do not appear to have."
  33547. if test "$module" = yes; then
  33548. - echo "*** But as you try to build a module library, libtool will still create "
  33549. - echo "*** a static module, that should work as long as the dlopening application"
  33550. - echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  33551. + $echo "*** But as you try to build a module library, libtool will still create "
  33552. + $echo "*** a static module, that should work as long as the dlopening application"
  33553. + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  33554. if test -z "$global_symbol_pipe"; then
  33555. - echo
  33556. - echo "*** However, this would only work if libtool was able to extract symbol"
  33557. - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  33558. - echo "*** not find such a program. So, this module is probably useless."
  33559. - echo "*** \`nm' from GNU binutils and a full rebuild may help."
  33560. + $echo
  33561. + $echo "*** However, this would only work if libtool was able to extract symbol"
  33562. + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  33563. + $echo "*** not find such a program. So, this module is probably useless."
  33564. + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  33565. fi
  33566. if test "$build_old_libs" = no; then
  33567. build_libtool_libs=module
  33568. @@ -1995,17 +2828,16 @@
  33569. fi
  33570. fi
  33571. else
  33572. - convenience="$convenience $dir/$old_library"
  33573. - old_convenience="$old_convenience $dir/$old_library"
  33574. deplibs="$dir/$old_library $deplibs"
  33575. link_static=yes
  33576. fi
  33577. fi # link shared/static library?
  33578. - if test $linkmode = lib; then
  33579. + if test "$linkmode" = lib; then
  33580. if test -n "$dependency_libs" &&
  33581. - { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
  33582. - test $link_static = yes; }; then
  33583. + { test "$hardcode_into_libs" != yes ||
  33584. + test "$build_old_libs" = yes ||
  33585. + test "$link_static" = yes; }; then
  33586. # Extract -R from dependency_libs
  33587. temp_deplibs=
  33588. for libdir in $dependency_libs; do
  33589. @@ -2036,7 +2868,7 @@
  33590. tmp_libs="$tmp_libs $deplib"
  33591. done
  33592. - if test $link_all_deplibs != no; then
  33593. + if test "$link_all_deplibs" != no; then
  33594. # Add the search paths of all dependency libraries
  33595. for deplib in $dependency_libs; do
  33596. case $deplib in
  33597. @@ -2056,38 +2888,83 @@
  33598. ;;
  33599. esac
  33600. if grep "^installed=no" $deplib > /dev/null; then
  33601. - path="-L$absdir/$objdir"
  33602. + path="$absdir/$objdir"
  33603. else
  33604. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  33605. if test -z "$libdir"; then
  33606. $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  33607. - exit 1
  33608. + exit $EXIT_FAILURE
  33609. fi
  33610. if test "$absdir" != "$libdir"; then
  33611. $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  33612. fi
  33613. - path="-L$absdir"
  33614. + path="$absdir"
  33615. fi
  33616. + depdepl=
  33617. + case $host in
  33618. + *-*-darwin*)
  33619. + # we do not want to link against static libs,
  33620. + # but need to link against shared
  33621. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  33622. + if test -n "$deplibrary_names" ; then
  33623. + for tmp in $deplibrary_names ; do
  33624. + depdepl=$tmp
  33625. + done
  33626. + if test -f "$path/$depdepl" ; then
  33627. + depdepl="$path/$depdepl"
  33628. + fi
  33629. + # do not add paths which are already there
  33630. + case " $newlib_search_path " in
  33631. + *" $path "*) ;;
  33632. + *) newlib_search_path="$newlib_search_path $path";;
  33633. + esac
  33634. + fi
  33635. + path=""
  33636. + ;;
  33637. + *)
  33638. + path="-L$path"
  33639. + ;;
  33640. + esac
  33641. + ;;
  33642. + -l*)
  33643. + case $host in
  33644. + *-*-darwin*)
  33645. + # Again, we only want to link against shared libraries
  33646. + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  33647. + for tmp in $newlib_search_path ; do
  33648. + if test -f "$tmp/lib$tmp_libs.dylib" ; then
  33649. + eval depdepl="$tmp/lib$tmp_libs.dylib"
  33650. + break
  33651. + fi
  33652. + done
  33653. + path=""
  33654. + ;;
  33655. + *) continue ;;
  33656. + esac
  33657. ;;
  33658. *) continue ;;
  33659. esac
  33660. case " $deplibs " in
  33661. *" $path "*) ;;
  33662. - *) deplibs="$deplibs $path" ;;
  33663. + *) deplibs="$path $deplibs" ;;
  33664. + esac
  33665. + case " $deplibs " in
  33666. + *" $depdepl "*) ;;
  33667. + *) deplibs="$depdepl $deplibs" ;;
  33668. esac
  33669. done
  33670. fi # link_all_deplibs != no
  33671. fi # linkmode = lib
  33672. done # for deplib in $libs
  33673. - if test $pass = dlpreopen; then
  33674. + dependency_libs="$newdependency_libs"
  33675. + if test "$pass" = dlpreopen; then
  33676. # Link the dlpreopened libraries before other libraries
  33677. for deplib in $save_deplibs; do
  33678. deplibs="$deplib $deplibs"
  33679. done
  33680. fi
  33681. - if test $pass != dlopen; then
  33682. - test $pass != scan && dependency_libs="$newdependency_libs"
  33683. - if test $pass != conv; then
  33684. + if test "$pass" != dlopen; then
  33685. + if test "$pass" != conv; then
  33686. # Make sure lib_search_path contains only unique directories.
  33687. lib_search_path=
  33688. for dir in $newlib_search_path; do
  33689. @@ -2109,9 +2986,30 @@
  33690. eval tmp_libs=\"\$$var\"
  33691. new_libs=
  33692. for deplib in $tmp_libs; do
  33693. + # FIXME: Pedantically, this is the right thing to do, so
  33694. + # that some nasty dependency loop isn't accidentally
  33695. + # broken:
  33696. + #new_libs="$deplib $new_libs"
  33697. + # Pragmatically, this seems to cause very few problems in
  33698. + # practice:
  33699. case $deplib in
  33700. -L*) new_libs="$deplib $new_libs" ;;
  33701. + -R*) ;;
  33702. *)
  33703. + # And here is the reason: when a library appears more
  33704. + # than once as an explicit dependence of a library, or
  33705. + # is implicitly linked in more than once by the
  33706. + # compiler, it is considered special, and multiple
  33707. + # occurrences thereof are not removed. Compare this
  33708. + # with having the same library being listed as a
  33709. + # dependency of multiple other libraries: in this case,
  33710. + # we know (pedantically, we assume) the library does not
  33711. + # need to be listed more than once, so we keep only the
  33712. + # last copy. This is not always right, but it is rare
  33713. + # enough that we require users that really mean to play
  33714. + # such unportable linking tricks to link the library
  33715. + # using -Wl,-lname, so that libtool does not consider it
  33716. + # for duplicate removal.
  33717. case " $specialdeplibs " in
  33718. *" $deplib "*) new_libs="$deplib $new_libs" ;;
  33719. *)
  33720. @@ -2139,19 +3037,32 @@
  33721. eval $var=\"$tmp_libs\"
  33722. done # for var
  33723. fi
  33724. - if test "$pass" = "conv" &&
  33725. - { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
  33726. - libs="$deplibs" # reset libs
  33727. - deplibs=
  33728. - fi
  33729. + # Last step: remove runtime libs from dependency_libs
  33730. + # (they stay in deplibs)
  33731. + tmp_libs=
  33732. + for i in $dependency_libs ; do
  33733. + case " $predeps $postdeps $compiler_lib_search_path " in
  33734. + *" $i "*)
  33735. + i=""
  33736. + ;;
  33737. + esac
  33738. + if test -n "$i" ; then
  33739. + tmp_libs="$tmp_libs $i"
  33740. + fi
  33741. + done
  33742. + dependency_libs=$tmp_libs
  33743. done # for pass
  33744. - if test $linkmode = prog; then
  33745. + if test "$linkmode" = prog; then
  33746. dlfiles="$newdlfiles"
  33747. dlprefiles="$newdlprefiles"
  33748. fi
  33749. case $linkmode in
  33750. oldlib)
  33751. + if test -n "$deplibs"; then
  33752. + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  33753. + fi
  33754. +
  33755. if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  33756. $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  33757. fi
  33758. @@ -2165,7 +3076,7 @@
  33759. fi
  33760. if test -n "$vinfo"; then
  33761. - $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
  33762. + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  33763. fi
  33764. if test -n "$release"; then
  33765. @@ -2187,17 +3098,19 @@
  33766. case $outputname in
  33767. lib*)
  33768. name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  33769. + eval shared_ext=\"$shrext_cmds\"
  33770. eval libname=\"$libname_spec\"
  33771. ;;
  33772. *)
  33773. if test "$module" = no; then
  33774. $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  33775. $echo "$help" 1>&2
  33776. - exit 1
  33777. + exit $EXIT_FAILURE
  33778. fi
  33779. if test "$need_lib_prefix" != no; then
  33780. # Add the "lib" prefix for modules if required
  33781. name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  33782. + eval shared_ext=\"$shrext_cmds\"
  33783. eval libname=\"$libname_spec\"
  33784. else
  33785. libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  33786. @@ -2208,11 +3121,11 @@
  33787. if test -n "$objs"; then
  33788. if test "$deplibs_check_method" != pass_all; then
  33789. $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  33790. - exit 1
  33791. + exit $EXIT_FAILURE
  33792. else
  33793. - echo
  33794. - echo "*** Warning: Linking the shared library $output against the non-libtool"
  33795. - echo "*** objects $objs is not portable!"
  33796. + $echo
  33797. + $echo "*** Warning: Linking the shared library $output against the non-libtool"
  33798. + $echo "*** objects $objs is not portable!"
  33799. libobjs="$libobjs $objs"
  33800. fi
  33801. fi
  33802. @@ -2222,7 +3135,7 @@
  33803. fi
  33804. set dummy $rpath
  33805. - if test $# -gt 2; then
  33806. + if test "$#" -gt 2; then
  33807. $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  33808. fi
  33809. install_libdir="$2"
  33810. @@ -2231,14 +3144,16 @@
  33811. if test -z "$rpath"; then
  33812. if test "$build_libtool_libs" = yes; then
  33813. # Building a libtool convenience library.
  33814. - libext=al
  33815. + # Some compilers have problems with a `.al' extension so
  33816. + # convenience libraries should have the same extension an
  33817. + # archive normally would.
  33818. oldlibs="$output_objdir/$libname.$libext $oldlibs"
  33819. build_libtool_libs=convenience
  33820. build_old_libs=yes
  33821. fi
  33822. if test -n "$vinfo"; then
  33823. - $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
  33824. + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  33825. fi
  33826. if test -n "$release"; then
  33827. @@ -2254,45 +3169,87 @@
  33828. if test -n "$8"; then
  33829. $echo "$modename: too many parameters to \`-version-info'" 1>&2
  33830. $echo "$help" 1>&2
  33831. - exit 1
  33832. + exit $EXIT_FAILURE
  33833. fi
  33834. - current="$2"
  33835. - revision="$3"
  33836. - age="$4"
  33837. + # convert absolute version numbers to libtool ages
  33838. + # this retains compatibility with .la files and attempts
  33839. + # to make the code below a bit more comprehensible
  33840. +
  33841. + case $vinfo_number in
  33842. + yes)
  33843. + number_major="$2"
  33844. + number_minor="$3"
  33845. + number_revision="$4"
  33846. + #
  33847. + # There are really only two kinds -- those that
  33848. + # use the current revision as the major version
  33849. + # and those that subtract age and use age as
  33850. + # a minor version. But, then there is irix
  33851. + # which has an extra 1 added just for fun
  33852. + #
  33853. + case $version_type in
  33854. + darwin|linux|osf|windows)
  33855. + current=`expr $number_major + $number_minor`
  33856. + age="$number_minor"
  33857. + revision="$number_revision"
  33858. + ;;
  33859. + freebsd-aout|freebsd-elf|sunos)
  33860. + current="$number_major"
  33861. + revision="$number_minor"
  33862. + age="0"
  33863. + ;;
  33864. + irix|nonstopux)
  33865. + current=`expr $number_major + $number_minor - 1`
  33866. + age="$number_minor"
  33867. + revision="$number_minor"
  33868. + ;;
  33869. + *)
  33870. + $echo "$modename: unknown library version type \`$version_type'" 1>&2
  33871. + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  33872. + exit $EXIT_FAILURE
  33873. + ;;
  33874. + esac
  33875. + ;;
  33876. + no)
  33877. + current="$2"
  33878. + revision="$3"
  33879. + age="$4"
  33880. + ;;
  33881. + esac
  33882. # Check that each of the things are valid numbers.
  33883. case $current in
  33884. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  33885. + 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]) ;;
  33886. *)
  33887. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  33888. + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  33889. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  33890. - exit 1
  33891. + exit $EXIT_FAILURE
  33892. ;;
  33893. esac
  33894. case $revision in
  33895. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  33896. + 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]) ;;
  33897. *)
  33898. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  33899. + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  33900. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  33901. - exit 1
  33902. + exit $EXIT_FAILURE
  33903. ;;
  33904. esac
  33905. case $age in
  33906. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  33907. + 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]) ;;
  33908. *)
  33909. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  33910. + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  33911. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  33912. - exit 1
  33913. + exit $EXIT_FAILURE
  33914. ;;
  33915. esac
  33916. - if test $age -gt $current; then
  33917. + if test "$age" -gt "$current"; then
  33918. $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  33919. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  33920. - exit 1
  33921. + exit $EXIT_FAILURE
  33922. fi
  33923. # Calculate the version variables.
  33924. @@ -2309,7 +3266,7 @@
  33925. versuffix="$major.$age.$revision"
  33926. # Darwin ld doesn't like 0 for these options...
  33927. minor_current=`expr $current + 1`
  33928. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  33929. + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  33930. ;;
  33931. freebsd-aout)
  33932. @@ -2333,7 +3290,7 @@
  33933. # Add in all the interfaces that we are compatible with.
  33934. loop=$revision
  33935. - while test $loop != 0; do
  33936. + while test "$loop" -ne 0; do
  33937. iface=`expr $revision - $loop`
  33938. loop=`expr $loop - 1`
  33939. verstring="$verstring_prefix$major.$iface:$verstring"
  33940. @@ -2356,7 +3313,7 @@
  33941. # Add in all the interfaces that we are compatible with.
  33942. loop=$age
  33943. - while test $loop != 0; do
  33944. + while test "$loop" -ne 0; do
  33945. iface=`expr $current - $loop`
  33946. loop=`expr $loop - 1`
  33947. verstring="$verstring:${iface}.0"
  33948. @@ -2380,20 +3337,19 @@
  33949. *)
  33950. $echo "$modename: unknown library version type \`$version_type'" 1>&2
  33951. - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  33952. - exit 1
  33953. + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  33954. + exit $EXIT_FAILURE
  33955. ;;
  33956. esac
  33957. # Clear the version info if we defaulted, and they specified a release.
  33958. if test -z "$vinfo" && test -n "$release"; then
  33959. major=
  33960. - verstring="0.0"
  33961. case $version_type in
  33962. darwin)
  33963. # we can't check for "0.0" in archive_cmds due to quoting
  33964. # problems, so we reset it completely
  33965. - verstring=""
  33966. + verstring=
  33967. ;;
  33968. *)
  33969. verstring="0.0"
  33970. @@ -2427,9 +3383,30 @@
  33971. fi
  33972. if test "$mode" != relink; then
  33973. - # Remove our outputs.
  33974. - $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
  33975. - $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
  33976. + # Remove our outputs, but don't remove object files since they
  33977. + # may have been created when compiling PIC objects.
  33978. + removelist=
  33979. + tempremovelist=`$echo "$output_objdir/*"`
  33980. + for p in $tempremovelist; do
  33981. + case $p in
  33982. + *.$objext)
  33983. + ;;
  33984. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  33985. + if test "X$precious_files_regex" != "X"; then
  33986. + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  33987. + then
  33988. + continue
  33989. + fi
  33990. + fi
  33991. + removelist="$removelist $p"
  33992. + ;;
  33993. + *) ;;
  33994. + esac
  33995. + done
  33996. + if test -n "$removelist"; then
  33997. + $show "${rm}r $removelist"
  33998. + $run ${rm}r $removelist
  33999. + fi
  34000. fi
  34001. # Now set the variables for building old libraries.
  34002. @@ -2442,9 +3419,9 @@
  34003. # Eliminate all temporary directories.
  34004. for path in $notinst_path; do
  34005. - lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  34006. - deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  34007. - dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  34008. + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  34009. + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  34010. + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  34011. done
  34012. if test -n "$xrpath"; then
  34013. @@ -2457,7 +3434,7 @@
  34014. *) finalize_rpath="$finalize_rpath $libdir" ;;
  34015. esac
  34016. done
  34017. - if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
  34018. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  34019. dependency_libs="$temp_xrpath $dependency_libs"
  34020. fi
  34021. fi
  34022. @@ -2495,12 +3472,18 @@
  34023. *-*-netbsd*)
  34024. # Don't link with libc until the a.out ld.so is fixed.
  34025. ;;
  34026. - *-*-openbsd* | *-*-freebsd*)
  34027. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  34028. # Do not include libc due to us having libc/libc_r.
  34029. ;;
  34030. - *)
  34031. + *-*-sco3.2v5* | *-*-sco5v6*)
  34032. + # Causes problems with __ctype
  34033. + ;;
  34034. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  34035. + # Compiler inserts libc in the correct place for threads to work
  34036. + ;;
  34037. + *)
  34038. # Add libc to deplibs on all other systems if necessary.
  34039. - if test $build_libtool_need_lc = "yes"; then
  34040. + if test "$build_libtool_need_lc" = "yes"; then
  34041. deplibs="$deplibs -lc"
  34042. fi
  34043. ;;
  34044. @@ -2527,7 +3510,7 @@
  34045. # This might be a little naive. We might want to check
  34046. # whether the library exists or not. But this is on
  34047. # osf3 & osf4 and I'm not really sure... Just
  34048. - # implementing what was already the behaviour.
  34049. + # implementing what was already the behavior.
  34050. newdeplibs=$deplibs
  34051. ;;
  34052. test_compile)
  34053. @@ -2540,68 +3523,88 @@
  34054. int main() { return 0; }
  34055. EOF
  34056. $rm conftest
  34057. - $CC -o conftest conftest.c $deplibs
  34058. - if test $? -eq 0 ; then
  34059. + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  34060. + if test "$?" -eq 0 ; then
  34061. ldd_output=`ldd conftest`
  34062. for i in $deplibs; do
  34063. - name="`expr $i : '-l\(.*\)'`"
  34064. + name=`expr $i : '-l\(.*\)'`
  34065. # If $name is empty we are operating on a -L argument.
  34066. - if test -n "$name" && test "$name" != "0"; then
  34067. - libname=`eval \\$echo \"$libname_spec\"`
  34068. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  34069. - set dummy $deplib_matches
  34070. - deplib_match=$2
  34071. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  34072. - newdeplibs="$newdeplibs $i"
  34073. - else
  34074. - droppeddeps=yes
  34075. - echo
  34076. - echo "*** Warning: dynamic linker does not accept needed library $i."
  34077. - echo "*** I have the capability to make that library automatically link in when"
  34078. - echo "*** you link to this library. But I can only do this if you have a"
  34079. - echo "*** shared version of the library, which I believe you do not have"
  34080. - echo "*** because a test_compile did reveal that the linker did not use it for"
  34081. - echo "*** its dynamic dependency list that programs get resolved with at runtime."
  34082. + if test "$name" != "" && test "$name" -ne "0"; then
  34083. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  34084. + case " $predeps $postdeps " in
  34085. + *" $i "*)
  34086. + newdeplibs="$newdeplibs $i"
  34087. + i=""
  34088. + ;;
  34089. + esac
  34090. + fi
  34091. + if test -n "$i" ; then
  34092. + libname=`eval \\$echo \"$libname_spec\"`
  34093. + deplib_matches=`eval \\$echo \"$library_names_spec\"`
  34094. + set dummy $deplib_matches
  34095. + deplib_match=$2
  34096. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  34097. + newdeplibs="$newdeplibs $i"
  34098. + else
  34099. + droppeddeps=yes
  34100. + $echo
  34101. + $echo "*** Warning: dynamic linker does not accept needed library $i."
  34102. + $echo "*** I have the capability to make that library automatically link in when"
  34103. + $echo "*** you link to this library. But I can only do this if you have a"
  34104. + $echo "*** shared version of the library, which I believe you do not have"
  34105. + $echo "*** because a test_compile did reveal that the linker did not use it for"
  34106. + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  34107. + fi
  34108. fi
  34109. else
  34110. newdeplibs="$newdeplibs $i"
  34111. fi
  34112. done
  34113. else
  34114. - # Error occured in the first compile. Let's try to salvage
  34115. + # Error occurred in the first compile. Let's try to salvage
  34116. # the situation: Compile a separate program for each library.
  34117. for i in $deplibs; do
  34118. - name="`expr $i : '-l\(.*\)'`"
  34119. - # If $name is empty we are operating on a -L argument.
  34120. - if test -n "$name" && test "$name" != "0"; then
  34121. + name=`expr $i : '-l\(.*\)'`
  34122. + # If $name is empty we are operating on a -L argument.
  34123. + if test "$name" != "" && test "$name" != "0"; then
  34124. $rm conftest
  34125. - $CC -o conftest conftest.c $i
  34126. + $LTCC $LTCFLAGS -o conftest conftest.c $i
  34127. # Did it work?
  34128. - if test $? -eq 0 ; then
  34129. + if test "$?" -eq 0 ; then
  34130. ldd_output=`ldd conftest`
  34131. - libname=`eval \\$echo \"$libname_spec\"`
  34132. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  34133. - set dummy $deplib_matches
  34134. - deplib_match=$2
  34135. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  34136. - newdeplibs="$newdeplibs $i"
  34137. - else
  34138. - droppeddeps=yes
  34139. - echo
  34140. - echo "*** Warning: dynamic linker does not accept needed library $i."
  34141. - echo "*** I have the capability to make that library automatically link in when"
  34142. - echo "*** you link to this library. But I can only do this if you have a"
  34143. - echo "*** shared version of the library, which you do not appear to have"
  34144. - echo "*** because a test_compile did reveal that the linker did not use this one"
  34145. - echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  34146. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  34147. + case " $predeps $postdeps " in
  34148. + *" $i "*)
  34149. + newdeplibs="$newdeplibs $i"
  34150. + i=""
  34151. + ;;
  34152. + esac
  34153. + fi
  34154. + if test -n "$i" ; then
  34155. + libname=`eval \\$echo \"$libname_spec\"`
  34156. + deplib_matches=`eval \\$echo \"$library_names_spec\"`
  34157. + set dummy $deplib_matches
  34158. + deplib_match=$2
  34159. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  34160. + newdeplibs="$newdeplibs $i"
  34161. + else
  34162. + droppeddeps=yes
  34163. + $echo
  34164. + $echo "*** Warning: dynamic linker does not accept needed library $i."
  34165. + $echo "*** I have the capability to make that library automatically link in when"
  34166. + $echo "*** you link to this library. But I can only do this if you have a"
  34167. + $echo "*** shared version of the library, which you do not appear to have"
  34168. + $echo "*** because a test_compile did reveal that the linker did not use this one"
  34169. + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  34170. + fi
  34171. fi
  34172. else
  34173. droppeddeps=yes
  34174. - echo
  34175. - echo "*** Warning! Library $i is needed by this library but I was not able to"
  34176. - echo "*** make it link in! You will probably need to install it or some"
  34177. - echo "*** library that it depends on before this library will be fully"
  34178. - echo "*** functional. Installing it before continuing would be even better."
  34179. + $echo
  34180. + $echo "*** Warning! Library $i is needed by this library but I was not able to"
  34181. + $echo "*** make it link in! You will probably need to install it or some"
  34182. + $echo "*** library that it depends on before this library will be fully"
  34183. + $echo "*** functional. Installing it before continuing would be even better."
  34184. fi
  34185. else
  34186. newdeplibs="$newdeplibs $i"
  34187. @@ -2613,13 +3616,22 @@
  34188. set dummy $deplibs_check_method
  34189. file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  34190. for a_deplib in $deplibs; do
  34191. - name="`expr $a_deplib : '-l\(.*\)'`"
  34192. + name=`expr $a_deplib : '-l\(.*\)'`
  34193. # If $name is empty we are operating on a -L argument.
  34194. - if test -n "$name" && test "$name" != "0"; then
  34195. - libname=`eval \\$echo \"$libname_spec\"`
  34196. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  34197. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  34198. - for potent_lib in $potential_libs; do
  34199. + if test "$name" != "" && test "$name" != "0"; then
  34200. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  34201. + case " $predeps $postdeps " in
  34202. + *" $a_deplib "*)
  34203. + newdeplibs="$newdeplibs $a_deplib"
  34204. + a_deplib=""
  34205. + ;;
  34206. + esac
  34207. + fi
  34208. + if test -n "$a_deplib" ; then
  34209. + libname=`eval \\$echo \"$libname_spec\"`
  34210. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  34211. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  34212. + for potent_lib in $potential_libs; do
  34213. # Follow soft links.
  34214. if ls -lLd "$potent_lib" 2>/dev/null \
  34215. | grep " -> " >/dev/null; then
  34216. @@ -2640,26 +3652,27 @@
  34217. done
  34218. if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  34219. | ${SED} 10q \
  34220. - | egrep "$file_magic_regex" > /dev/null; then
  34221. + | $EGREP "$file_magic_regex" > /dev/null; then
  34222. newdeplibs="$newdeplibs $a_deplib"
  34223. a_deplib=""
  34224. break 2
  34225. fi
  34226. - done
  34227. - done
  34228. + done
  34229. + done
  34230. + fi
  34231. if test -n "$a_deplib" ; then
  34232. droppeddeps=yes
  34233. - echo
  34234. - echo "*** Warning: linker path does not have real file for library $a_deplib."
  34235. - echo "*** I have the capability to make that library automatically link in when"
  34236. - echo "*** you link to this library. But I can only do this if you have a"
  34237. - echo "*** shared version of the library, which you do not appear to have"
  34238. - echo "*** because I did check the linker path looking for a file starting"
  34239. + $echo
  34240. + $echo "*** Warning: linker path does not have real file for library $a_deplib."
  34241. + $echo "*** I have the capability to make that library automatically link in when"
  34242. + $echo "*** you link to this library. But I can only do this if you have a"
  34243. + $echo "*** shared version of the library, which you do not appear to have"
  34244. + $echo "*** because I did check the linker path looking for a file starting"
  34245. if test -z "$potlib" ; then
  34246. - echo "*** with $libname but no candidates were found. (...for file magic test)"
  34247. + $echo "*** with $libname but no candidates were found. (...for file magic test)"
  34248. else
  34249. - echo "*** with $libname and none of the candidates passed a file format test"
  34250. - echo "*** using a file magic. Last file checked: $potlib"
  34251. + $echo "*** with $libname and none of the candidates passed a file format test"
  34252. + $echo "*** using a file magic. Last file checked: $potlib"
  34253. fi
  34254. fi
  34255. else
  34256. @@ -2672,36 +3685,46 @@
  34257. set dummy $deplibs_check_method
  34258. match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  34259. for a_deplib in $deplibs; do
  34260. - name="`expr $a_deplib : '-l\(.*\)'`"
  34261. + name=`expr $a_deplib : '-l\(.*\)'`
  34262. # If $name is empty we are operating on a -L argument.
  34263. if test -n "$name" && test "$name" != "0"; then
  34264. - libname=`eval \\$echo \"$libname_spec\"`
  34265. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  34266. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  34267. - for potent_lib in $potential_libs; do
  34268. - potlib="$potent_lib" # see symlink-check below in file_magic test
  34269. - if eval echo \"$potent_lib\" 2>/dev/null \
  34270. - | ${SED} 10q \
  34271. - | egrep "$match_pattern_regex" > /dev/null; then
  34272. - newdeplibs="$newdeplibs $a_deplib"
  34273. - a_deplib=""
  34274. - break 2
  34275. - fi
  34276. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  34277. + case " $predeps $postdeps " in
  34278. + *" $a_deplib "*)
  34279. + newdeplibs="$newdeplibs $a_deplib"
  34280. + a_deplib=""
  34281. + ;;
  34282. + esac
  34283. + fi
  34284. + if test -n "$a_deplib" ; then
  34285. + libname=`eval \\$echo \"$libname_spec\"`
  34286. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  34287. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  34288. + for potent_lib in $potential_libs; do
  34289. + potlib="$potent_lib" # see symlink-check above in file_magic test
  34290. + if eval $echo \"$potent_lib\" 2>/dev/null \
  34291. + | ${SED} 10q \
  34292. + | $EGREP "$match_pattern_regex" > /dev/null; then
  34293. + newdeplibs="$newdeplibs $a_deplib"
  34294. + a_deplib=""
  34295. + break 2
  34296. + fi
  34297. + done
  34298. done
  34299. - done
  34300. + fi
  34301. if test -n "$a_deplib" ; then
  34302. droppeddeps=yes
  34303. - echo
  34304. - echo "*** Warning: linker path does not have real file for library $a_deplib."
  34305. - echo "*** I have the capability to make that library automatically link in when"
  34306. - echo "*** you link to this library. But I can only do this if you have a"
  34307. - echo "*** shared version of the library, which you do not appear to have"
  34308. - echo "*** because I did check the linker path looking for a file starting"
  34309. + $echo
  34310. + $echo "*** Warning: linker path does not have real file for library $a_deplib."
  34311. + $echo "*** I have the capability to make that library automatically link in when"
  34312. + $echo "*** you link to this library. But I can only do this if you have a"
  34313. + $echo "*** shared version of the library, which you do not appear to have"
  34314. + $echo "*** because I did check the linker path looking for a file starting"
  34315. if test -z "$potlib" ; then
  34316. - echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  34317. + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  34318. else
  34319. - echo "*** with $libname and none of the candidates passed a file format test"
  34320. - echo "*** using a regex pattern. Last file checked: $potlib"
  34321. + $echo "*** with $libname and none of the candidates passed a file format test"
  34322. + $echo "*** using a regex pattern. Last file checked: $potlib"
  34323. fi
  34324. fi
  34325. else
  34326. @@ -2712,16 +3735,23 @@
  34327. ;;
  34328. none | unknown | *)
  34329. newdeplibs=""
  34330. - if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  34331. - -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
  34332. - grep . >/dev/null; then
  34333. - echo
  34334. + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  34335. + -e 's/ -[LR][^ ]*//g'`
  34336. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  34337. + for i in $predeps $postdeps ; do
  34338. + # can't use Xsed below, because $i might contain '/'
  34339. + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  34340. + done
  34341. + fi
  34342. + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  34343. + | grep . >/dev/null; then
  34344. + $echo
  34345. if test "X$deplibs_check_method" = "Xnone"; then
  34346. - echo "*** Warning: inter-library dependencies are not supported in this platform."
  34347. + $echo "*** Warning: inter-library dependencies are not supported in this platform."
  34348. else
  34349. - echo "*** Warning: inter-library dependencies are not known to be supported."
  34350. + $echo "*** Warning: inter-library dependencies are not known to be supported."
  34351. fi
  34352. - echo "*** All declared inter-library dependencies are being dropped."
  34353. + $echo "*** All declared inter-library dependencies are being dropped."
  34354. droppeddeps=yes
  34355. fi
  34356. ;;
  34357. @@ -2741,17 +3771,17 @@
  34358. if test "$droppeddeps" = yes; then
  34359. if test "$module" = yes; then
  34360. - echo
  34361. - echo "*** Warning: libtool could not satisfy all declared inter-library"
  34362. - echo "*** dependencies of module $libname. Therefore, libtool will create"
  34363. - echo "*** a static module, that should work as long as the dlopening"
  34364. - echo "*** application is linked with the -dlopen flag."
  34365. + $echo
  34366. + $echo "*** Warning: libtool could not satisfy all declared inter-library"
  34367. + $echo "*** dependencies of module $libname. Therefore, libtool will create"
  34368. + $echo "*** a static module, that should work as long as the dlopening"
  34369. + $echo "*** application is linked with the -dlopen flag."
  34370. if test -z "$global_symbol_pipe"; then
  34371. - echo
  34372. - echo "*** However, this would only work if libtool was able to extract symbol"
  34373. - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  34374. - echo "*** not find such a program. So, this module is probably useless."
  34375. - echo "*** \`nm' from GNU binutils and a full rebuild may help."
  34376. + $echo
  34377. + $echo "*** However, this would only work if libtool was able to extract symbol"
  34378. + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  34379. + $echo "*** not find such a program. So, this module is probably useless."
  34380. + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  34381. fi
  34382. if test "$build_old_libs" = no; then
  34383. oldlibs="$output_objdir/$libname.$libext"
  34384. @@ -2761,16 +3791,16 @@
  34385. build_libtool_libs=no
  34386. fi
  34387. else
  34388. - echo "*** The inter-library dependencies that have been dropped here will be"
  34389. - echo "*** automatically added whenever a program is linked with this library"
  34390. - echo "*** or is declared to -dlopen it."
  34391. -
  34392. - if test $allow_undefined = no; then
  34393. - echo
  34394. - echo "*** Since this library must not contain undefined symbols,"
  34395. - echo "*** because either the platform does not support them or"
  34396. - echo "*** it was explicitly requested with -no-undefined,"
  34397. - echo "*** libtool will only create a static version of it."
  34398. + $echo "*** The inter-library dependencies that have been dropped here will be"
  34399. + $echo "*** automatically added whenever a program is linked with this library"
  34400. + $echo "*** or is declared to -dlopen it."
  34401. +
  34402. + if test "$allow_undefined" = no; then
  34403. + $echo
  34404. + $echo "*** Since this library must not contain undefined symbols,"
  34405. + $echo "*** because either the platform does not support them or"
  34406. + $echo "*** it was explicitly requested with -no-undefined,"
  34407. + $echo "*** libtool will only create a static version of it."
  34408. if test "$build_old_libs" = no; then
  34409. oldlibs="$output_objdir/$libname.$libext"
  34410. build_libtool_libs=module
  34411. @@ -2785,6 +3815,35 @@
  34412. deplibs=$newdeplibs
  34413. fi
  34414. +
  34415. + # move library search paths that coincide with paths to not yet
  34416. + # installed libraries to the beginning of the library search list
  34417. + new_libs=
  34418. + for path in $notinst_path; do
  34419. + case " $new_libs " in
  34420. + *" -L$path/$objdir "*) ;;
  34421. + *)
  34422. + case " $deplibs " in
  34423. + *" -L$path/$objdir "*)
  34424. + new_libs="$new_libs -L$path/$objdir" ;;
  34425. + esac
  34426. + ;;
  34427. + esac
  34428. + done
  34429. + for deplib in $deplibs; do
  34430. + case $deplib in
  34431. + -L*)
  34432. + case " $new_libs " in
  34433. + *" $deplib "*) ;;
  34434. + *) new_libs="$new_libs $deplib" ;;
  34435. + esac
  34436. + ;;
  34437. + *) new_libs="$new_libs $deplib" ;;
  34438. + esac
  34439. + done
  34440. + deplibs="$new_libs"
  34441. +
  34442. +
  34443. # All the library-specific variables (install_libdir is set above).
  34444. library_names=
  34445. old_library=
  34446. @@ -2792,7 +3851,7 @@
  34447. # Test again, we may have decided not to build it any more
  34448. if test "$build_libtool_libs" = yes; then
  34449. - if test $hardcode_into_libs = yes; then
  34450. + if test "$hardcode_into_libs" = yes; then
  34451. # Hardcode the library paths
  34452. hardcode_libdirs=
  34453. dep_rpath=
  34454. @@ -2828,7 +3887,11 @@
  34455. if test -n "$hardcode_libdir_separator" &&
  34456. test -n "$hardcode_libdirs"; then
  34457. libdir="$hardcode_libdirs"
  34458. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  34459. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  34460. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  34461. + else
  34462. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  34463. + fi
  34464. fi
  34465. if test -n "$runpath_var" && test -n "$perm_rpath"; then
  34466. # We should set the runpath_var.
  34467. @@ -2848,6 +3911,7 @@
  34468. fi
  34469. # Get the real and link names of the library.
  34470. + eval shared_ext=\"$shrext_cmds\"
  34471. eval library_names=\"$library_names_spec\"
  34472. set dummy $library_names
  34473. realname="$2"
  34474. @@ -2858,31 +3922,17 @@
  34475. else
  34476. soname="$realname"
  34477. fi
  34478. - test -z "$dlname" && dlname=$soname
  34479. + if test -z "$dlname"; then
  34480. + dlname=$soname
  34481. + fi
  34482. lib="$output_objdir/$realname"
  34483. + linknames=
  34484. for link
  34485. do
  34486. linknames="$linknames $link"
  34487. done
  34488. - # Ensure that we have .o objects for linkers which dislike .lo
  34489. - # (e.g. aix) in case we are running --disable-static
  34490. - for obj in $libobjs; do
  34491. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  34492. - if test "X$xdir" = "X$obj"; then
  34493. - xdir="."
  34494. - else
  34495. - xdir="$xdir"
  34496. - fi
  34497. - baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  34498. - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
  34499. - if test ! -f $xdir/$oldobj; then
  34500. - $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
  34501. - $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
  34502. - fi
  34503. - done
  34504. -
  34505. # Use standard objects if they are pic
  34506. test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  34507. @@ -2892,17 +3942,29 @@
  34508. $show "generating symbol list for \`$libname.la'"
  34509. export_symbols="$output_objdir/$libname.exp"
  34510. $run $rm $export_symbols
  34511. - eval cmds=\"$export_symbols_cmds\"
  34512. + cmds=$export_symbols_cmds
  34513. save_ifs="$IFS"; IFS='~'
  34514. for cmd in $cmds; do
  34515. IFS="$save_ifs"
  34516. - $show "$cmd"
  34517. - $run eval "$cmd" || exit $?
  34518. + eval cmd=\"$cmd\"
  34519. + if len=`expr "X$cmd" : ".*"` &&
  34520. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  34521. + $show "$cmd"
  34522. + $run eval "$cmd" || exit $?
  34523. + skipped_export=false
  34524. + else
  34525. + # The command line is too long to execute in one step.
  34526. + $show "using reloadable object file for export list..."
  34527. + skipped_export=:
  34528. + # Break out early, otherwise skipped_export may be
  34529. + # set to false by a later but shorter cmd.
  34530. + break
  34531. + fi
  34532. done
  34533. IFS="$save_ifs"
  34534. if test -n "$export_symbols_regex"; then
  34535. - $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  34536. - $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  34537. + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  34538. + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  34539. $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  34540. $run eval '$mv "${export_symbols}T" "$export_symbols"'
  34541. fi
  34542. @@ -2913,46 +3975,30 @@
  34543. $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  34544. fi
  34545. + tmp_deplibs=
  34546. + for test_deplib in $deplibs; do
  34547. + case " $convenience " in
  34548. + *" $test_deplib "*) ;;
  34549. + *)
  34550. + tmp_deplibs="$tmp_deplibs $test_deplib"
  34551. + ;;
  34552. + esac
  34553. + done
  34554. + deplibs="$tmp_deplibs"
  34555. +
  34556. if test -n "$convenience"; then
  34557. if test -n "$whole_archive_flag_spec"; then
  34558. + save_libobjs=$libobjs
  34559. eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  34560. else
  34561. gentop="$output_objdir/${outputname}x"
  34562. - $show "${rm}r $gentop"
  34563. - $run ${rm}r "$gentop"
  34564. - $show "mkdir $gentop"
  34565. - $run mkdir "$gentop"
  34566. - status=$?
  34567. - if test $status -ne 0 && test ! -d "$gentop"; then
  34568. - exit $status
  34569. - fi
  34570. generated="$generated $gentop"
  34571. - for xlib in $convenience; do
  34572. - # Extract the objects.
  34573. - case $xlib in
  34574. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  34575. - *) xabs=`pwd`"/$xlib" ;;
  34576. - esac
  34577. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  34578. - xdir="$gentop/$xlib"
  34579. -
  34580. - $show "${rm}r $xdir"
  34581. - $run ${rm}r "$xdir"
  34582. - $show "mkdir $xdir"
  34583. - $run mkdir "$xdir"
  34584. - status=$?
  34585. - if test $status -ne 0 && test ! -d "$xdir"; then
  34586. - exit $status
  34587. - fi
  34588. - $show "(cd $xdir && $AR x $xabs)"
  34589. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  34590. -
  34591. - libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  34592. - done
  34593. + func_extract_archives $gentop $convenience
  34594. + libobjs="$libobjs $func_extract_archives_result"
  34595. fi
  34596. fi
  34597. -
  34598. +
  34599. if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  34600. eval flag=\"$thread_safe_flag_spec\"
  34601. linker_flags="$linker_flags $flag"
  34602. @@ -2964,34 +4010,175 @@
  34603. fi
  34604. # Do each of the archive commands.
  34605. + if test "$module" = yes && test -n "$module_cmds" ; then
  34606. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  34607. + eval test_cmds=\"$module_expsym_cmds\"
  34608. + cmds=$module_expsym_cmds
  34609. + else
  34610. + eval test_cmds=\"$module_cmds\"
  34611. + cmds=$module_cmds
  34612. + fi
  34613. + else
  34614. if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  34615. - eval cmds=\"$archive_expsym_cmds\"
  34616. + eval test_cmds=\"$archive_expsym_cmds\"
  34617. + cmds=$archive_expsym_cmds
  34618. + else
  34619. + eval test_cmds=\"$archive_cmds\"
  34620. + cmds=$archive_cmds
  34621. + fi
  34622. + fi
  34623. +
  34624. + if test "X$skipped_export" != "X:" &&
  34625. + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  34626. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  34627. + :
  34628. else
  34629. - save_deplibs="$deplibs"
  34630. - for conv in $convenience; do
  34631. - tmp_deplibs=
  34632. - for test_deplib in $deplibs; do
  34633. - if test "$test_deplib" != "$conv"; then
  34634. - tmp_deplibs="$tmp_deplibs $test_deplib"
  34635. + # The command line is too long to link in one step, link piecewise.
  34636. + $echo "creating reloadable object files..."
  34637. +
  34638. + # Save the value of $output and $libobjs because we want to
  34639. + # use them later. If we have whole_archive_flag_spec, we
  34640. + # want to use save_libobjs as it was before
  34641. + # whole_archive_flag_spec was expanded, because we can't
  34642. + # assume the linker understands whole_archive_flag_spec.
  34643. + # This may have to be revisited, in case too many
  34644. + # convenience libraries get linked in and end up exceeding
  34645. + # the spec.
  34646. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  34647. + save_libobjs=$libobjs
  34648. + fi
  34649. + save_output=$output
  34650. + output_la=`$echo "X$output" | $Xsed -e "$basename"`
  34651. +
  34652. + # Clear the reloadable object creation command queue and
  34653. + # initialize k to one.
  34654. + test_cmds=
  34655. + concat_cmds=
  34656. + objlist=
  34657. + delfiles=
  34658. + last_robj=
  34659. + k=1
  34660. + output=$output_objdir/$output_la-${k}.$objext
  34661. + # Loop over the list of objects to be linked.
  34662. + for obj in $save_libobjs
  34663. + do
  34664. + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  34665. + if test "X$objlist" = X ||
  34666. + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  34667. + test "$len" -le "$max_cmd_len"; }; then
  34668. + objlist="$objlist $obj"
  34669. + else
  34670. + # The command $test_cmds is almost too long, add a
  34671. + # command to the queue.
  34672. + if test "$k" -eq 1 ; then
  34673. + # The first file doesn't have a previous command to add.
  34674. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  34675. + else
  34676. + # All subsequent reloadable object files will link in
  34677. + # the last one created.
  34678. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  34679. fi
  34680. - done
  34681. - deplibs="$tmp_deplibs"
  34682. + last_robj=$output_objdir/$output_la-${k}.$objext
  34683. + k=`expr $k + 1`
  34684. + output=$output_objdir/$output_la-${k}.$objext
  34685. + objlist=$obj
  34686. + len=1
  34687. + fi
  34688. + done
  34689. + # Handle the remaining objects by creating one last
  34690. + # reloadable object file. All subsequent reloadable object
  34691. + # files will link in the last one created.
  34692. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  34693. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  34694. +
  34695. + if ${skipped_export-false}; then
  34696. + $show "generating symbol list for \`$libname.la'"
  34697. + export_symbols="$output_objdir/$libname.exp"
  34698. + $run $rm $export_symbols
  34699. + libobjs=$output
  34700. + # Append the command to create the export file.
  34701. + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  34702. + fi
  34703. +
  34704. + # Set up a command to remove the reloadable object files
  34705. + # after they are used.
  34706. + i=0
  34707. + while test "$i" -lt "$k"
  34708. + do
  34709. + i=`expr $i + 1`
  34710. + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  34711. + done
  34712. +
  34713. + $echo "creating a temporary reloadable object file: $output"
  34714. +
  34715. + # Loop through the commands generated above and execute them.
  34716. + save_ifs="$IFS"; IFS='~'
  34717. + for cmd in $concat_cmds; do
  34718. + IFS="$save_ifs"
  34719. + $show "$cmd"
  34720. + $run eval "$cmd" || exit $?
  34721. done
  34722. - eval cmds=\"$archive_cmds\"
  34723. - deplibs="$save_deplibs"
  34724. + IFS="$save_ifs"
  34725. +
  34726. + libobjs=$output
  34727. + # Restore the value of output.
  34728. + output=$save_output
  34729. +
  34730. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  34731. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  34732. + fi
  34733. + # Expand the library linking commands again to reset the
  34734. + # value of $libobjs for piecewise linking.
  34735. +
  34736. + # Do each of the archive commands.
  34737. + if test "$module" = yes && test -n "$module_cmds" ; then
  34738. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  34739. + cmds=$module_expsym_cmds
  34740. + else
  34741. + cmds=$module_cmds
  34742. + fi
  34743. + else
  34744. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  34745. + cmds=$archive_expsym_cmds
  34746. + else
  34747. + cmds=$archive_cmds
  34748. + fi
  34749. + fi
  34750. +
  34751. + # Append the command to remove the reloadable object files
  34752. + # to the just-reset $cmds.
  34753. + eval cmds=\"\$cmds~\$rm $delfiles\"
  34754. fi
  34755. save_ifs="$IFS"; IFS='~'
  34756. for cmd in $cmds; do
  34757. IFS="$save_ifs"
  34758. + eval cmd=\"$cmd\"
  34759. $show "$cmd"
  34760. - $run eval "$cmd" || exit $?
  34761. + $run eval "$cmd" || {
  34762. + lt_exit=$?
  34763. +
  34764. + # Restore the uninstalled library and exit
  34765. + if test "$mode" = relink; then
  34766. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  34767. + fi
  34768. +
  34769. + exit $lt_exit
  34770. + }
  34771. done
  34772. IFS="$save_ifs"
  34773. # Restore the uninstalled library and exit
  34774. if test "$mode" = relink; then
  34775. $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  34776. - exit 0
  34777. +
  34778. + if test -n "$convenience"; then
  34779. + if test -z "$whole_archive_flag_spec"; then
  34780. + $show "${rm}r $gentop"
  34781. + $run ${rm}r "$gentop"
  34782. + fi
  34783. + fi
  34784. +
  34785. + exit $EXIT_SUCCESS
  34786. fi
  34787. # Create links to the real library.
  34788. @@ -3039,7 +4226,7 @@
  34789. *.lo)
  34790. if test -n "$objs$old_deplibs"; then
  34791. $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  34792. - exit 1
  34793. + exit $EXIT_FAILURE
  34794. fi
  34795. libobj="$output"
  34796. obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  34797. @@ -3068,38 +4255,10 @@
  34798. eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  34799. else
  34800. gentop="$output_objdir/${obj}x"
  34801. - $show "${rm}r $gentop"
  34802. - $run ${rm}r "$gentop"
  34803. - $show "mkdir $gentop"
  34804. - $run mkdir "$gentop"
  34805. - status=$?
  34806. - if test $status -ne 0 && test ! -d "$gentop"; then
  34807. - exit $status
  34808. - fi
  34809. generated="$generated $gentop"
  34810. - for xlib in $convenience; do
  34811. - # Extract the objects.
  34812. - case $xlib in
  34813. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  34814. - *) xabs=`pwd`"/$xlib" ;;
  34815. - esac
  34816. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  34817. - xdir="$gentop/$xlib"
  34818. -
  34819. - $show "${rm}r $xdir"
  34820. - $run ${rm}r "$xdir"
  34821. - $show "mkdir $xdir"
  34822. - $run mkdir "$xdir"
  34823. - status=$?
  34824. - if test $status -ne 0 && test ! -d "$xdir"; then
  34825. - exit $status
  34826. - fi
  34827. - $show "(cd $xdir && $AR x $xabs)"
  34828. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  34829. -
  34830. - reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  34831. - done
  34832. + func_extract_archives $gentop $convenience
  34833. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  34834. fi
  34835. fi
  34836. @@ -3107,10 +4266,11 @@
  34837. 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
  34838. output="$obj"
  34839. - eval cmds=\"$reload_cmds\"
  34840. + cmds=$reload_cmds
  34841. save_ifs="$IFS"; IFS='~'
  34842. for cmd in $cmds; do
  34843. IFS="$save_ifs"
  34844. + eval cmd=\"$cmd\"
  34845. $show "$cmd"
  34846. $run eval "$cmd" || exit $?
  34847. done
  34848. @@ -3123,7 +4283,7 @@
  34849. $run ${rm}r $gentop
  34850. fi
  34851. - exit 0
  34852. + exit $EXIT_SUCCESS
  34853. fi
  34854. if test "$build_libtool_libs" != yes; then
  34855. @@ -3134,37 +4294,24 @@
  34856. # Create an invalid libtool object if no PIC, so that we don't
  34857. # accidentally link it into a program.
  34858. - $show "echo timestamp > $libobj"
  34859. - $run eval "echo timestamp > $libobj" || exit $?
  34860. - exit 0
  34861. + # $show "echo timestamp > $libobj"
  34862. + # $run eval "echo timestamp > $libobj" || exit $?
  34863. + exit $EXIT_SUCCESS
  34864. fi
  34865. if test -n "$pic_flag" || test "$pic_mode" != default; then
  34866. # Only do commands if we really have different PIC objects.
  34867. reload_objs="$libobjs $reload_conv_objs"
  34868. output="$libobj"
  34869. - eval cmds=\"$reload_cmds\"
  34870. + cmds=$reload_cmds
  34871. save_ifs="$IFS"; IFS='~'
  34872. for cmd in $cmds; do
  34873. IFS="$save_ifs"
  34874. + eval cmd=\"$cmd\"
  34875. $show "$cmd"
  34876. $run eval "$cmd" || exit $?
  34877. done
  34878. IFS="$save_ifs"
  34879. - else
  34880. - # Just create a symlink.
  34881. - $show $rm $libobj
  34882. - $run $rm $libobj
  34883. - xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  34884. - if test "X$xdir" = "X$libobj"; then
  34885. - xdir="."
  34886. - else
  34887. - xdir="$xdir"
  34888. - fi
  34889. - baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
  34890. - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
  34891. - $show "(cd $xdir && $LN_S $oldobj $baseobj)"
  34892. - $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
  34893. fi
  34894. if test -n "$gentop"; then
  34895. @@ -3172,12 +4319,12 @@
  34896. $run ${rm}r $gentop
  34897. fi
  34898. - exit 0
  34899. + exit $EXIT_SUCCESS
  34900. ;;
  34901. prog)
  34902. case $host in
  34903. - *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  34904. + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  34905. esac
  34906. if test -n "$vinfo"; then
  34907. $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  34908. @@ -3199,16 +4346,48 @@
  34909. # On Rhapsody replace the C library is the System framework
  34910. compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  34911. finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  34912. - case $host in
  34913. - *darwin*)
  34914. - # Don't allow lazy linking, it breaks C++ global constructors
  34915. - compile_command="$compile_command ${wl}-bind_at_load"
  34916. - finalize_command="$finalize_command ${wl}-bind_at_load"
  34917. - ;;
  34918. - esac
  34919. ;;
  34920. esac
  34921. + case $host in
  34922. + *darwin*)
  34923. + # Don't allow lazy linking, it breaks C++ global constructors
  34924. + if test "$tagname" = CXX ; then
  34925. + compile_command="$compile_command ${wl}-bind_at_load"
  34926. + finalize_command="$finalize_command ${wl}-bind_at_load"
  34927. + fi
  34928. + ;;
  34929. + esac
  34930. +
  34931. +
  34932. + # move library search paths that coincide with paths to not yet
  34933. + # installed libraries to the beginning of the library search list
  34934. + new_libs=
  34935. + for path in $notinst_path; do
  34936. + case " $new_libs " in
  34937. + *" -L$path/$objdir "*) ;;
  34938. + *)
  34939. + case " $compile_deplibs " in
  34940. + *" -L$path/$objdir "*)
  34941. + new_libs="$new_libs -L$path/$objdir" ;;
  34942. + esac
  34943. + ;;
  34944. + esac
  34945. + done
  34946. + for deplib in $compile_deplibs; do
  34947. + case $deplib in
  34948. + -L*)
  34949. + case " $new_libs " in
  34950. + *" $deplib "*) ;;
  34951. + *) new_libs="$new_libs $deplib" ;;
  34952. + esac
  34953. + ;;
  34954. + *) new_libs="$new_libs $deplib" ;;
  34955. + esac
  34956. + done
  34957. + compile_deplibs="$new_libs"
  34958. +
  34959. +
  34960. compile_command="$compile_command $compile_deplibs"
  34961. finalize_command="$finalize_command $finalize_deplibs"
  34962. @@ -3253,10 +4432,15 @@
  34963. fi
  34964. case $host in
  34965. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  34966. + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  34967. case :$dllsearchpath: in
  34968. *":$libdir:"*) ;;
  34969. *) dllsearchpath="$dllsearchpath:$libdir";;
  34970. esac
  34971. + case :$dllsearchpath: in
  34972. + *":$testbindir:"*) ;;
  34973. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  34974. + esac
  34975. ;;
  34976. esac
  34977. done
  34978. @@ -3359,31 +4543,43 @@
  34979. done
  34980. if test -n "$exclude_expsyms"; then
  34981. - $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  34982. + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  34983. $run eval '$mv "$nlist"T "$nlist"'
  34984. fi
  34985. if test -n "$export_symbols_regex"; then
  34986. - $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  34987. + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  34988. $run eval '$mv "$nlist"T "$nlist"'
  34989. fi
  34990. # Prepare the list of exported symbols
  34991. if test -z "$export_symbols"; then
  34992. - export_symbols="$output_objdir/$output.exp"
  34993. + export_symbols="$output_objdir/$outputname.exp"
  34994. $run $rm $export_symbols
  34995. - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  34996. + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  34997. + case $host in
  34998. + *cygwin* | *mingw* )
  34999. + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  35000. + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  35001. + ;;
  35002. + esac
  35003. else
  35004. - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  35005. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  35006. + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  35007. + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  35008. $run eval 'mv "$nlist"T "$nlist"'
  35009. + case $host in
  35010. + *cygwin* | *mingw* )
  35011. + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  35012. + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  35013. + ;;
  35014. + esac
  35015. fi
  35016. fi
  35017. for arg in $dlprefiles; do
  35018. $show "extracting global C symbols from \`$arg'"
  35019. - name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
  35020. - $run eval 'echo ": $name " >> "$nlist"'
  35021. + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  35022. + $run eval '$echo ": $name " >> "$nlist"'
  35023. $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  35024. done
  35025. @@ -3392,7 +4588,7 @@
  35026. test -f "$nlist" || : > "$nlist"
  35027. if test -n "$exclude_expsyms"; then
  35028. - egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  35029. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  35030. $mv "$nlist"T "$nlist"
  35031. fi
  35032. @@ -3412,7 +4608,7 @@
  35033. if test -f "$nlist"S; then
  35034. eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  35035. else
  35036. - echo '/* NONE */' >> "$output_objdir/$dlsyms"
  35037. + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  35038. fi
  35039. $echo >> "$output_objdir/$dlsyms" "\
  35040. @@ -3427,7 +4623,26 @@
  35041. #endif
  35042. /* The mapping between symbol names and symbols. */
  35043. +"
  35044. +
  35045. + case $host in
  35046. + *cygwin* | *mingw* )
  35047. + $echo >> "$output_objdir/$dlsyms" "\
  35048. +/* DATA imports from DLLs on WIN32 can't be const, because
  35049. + runtime relocations are performed -- see ld's documentation
  35050. + on pseudo-relocs */
  35051. +struct {
  35052. +"
  35053. + ;;
  35054. + * )
  35055. + $echo >> "$output_objdir/$dlsyms" "\
  35056. const struct {
  35057. +"
  35058. + ;;
  35059. + esac
  35060. +
  35061. +
  35062. + $echo >> "$output_objdir/$dlsyms" "\
  35063. const char *name;
  35064. lt_ptr address;
  35065. }
  35066. @@ -3464,30 +4679,43 @@
  35067. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  35068. case "$compile_command " in
  35069. *" -static "*) ;;
  35070. - *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
  35071. + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  35072. esac;;
  35073. *-*-hpux*)
  35074. case "$compile_command " in
  35075. *" -static "*) ;;
  35076. - *) pic_flag_for_symtable=" $pic_flag -DPIC";;
  35077. + *) pic_flag_for_symtable=" $pic_flag";;
  35078. esac
  35079. esac
  35080. # Now compile the dynamic symbol file.
  35081. - $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  35082. - $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  35083. + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  35084. + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  35085. # Clean up the generated files.
  35086. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  35087. $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  35088. # Transform the symbol file into the correct name.
  35089. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  35090. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  35091. + case $host in
  35092. + *cygwin* | *mingw* )
  35093. + if test -f "$output_objdir/${outputname}.def" ; then
  35094. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  35095. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  35096. + else
  35097. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  35098. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  35099. + fi
  35100. + ;;
  35101. + * )
  35102. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  35103. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  35104. + ;;
  35105. + esac
  35106. ;;
  35107. *)
  35108. $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  35109. - exit 1
  35110. + exit $EXIT_FAILURE
  35111. ;;
  35112. esac
  35113. else
  35114. @@ -3500,7 +4728,7 @@
  35115. finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  35116. fi
  35117. - if test $need_relink = no || test "$build_libtool_libs" != yes; then
  35118. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  35119. # Replace the output file specification.
  35120. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  35121. link_command="$compile_command$compile_rpath"
  35122. @@ -3508,7 +4736,7 @@
  35123. # We have no uninstalled library dependencies, so finalize right now.
  35124. $show "$link_command"
  35125. $run eval "$link_command"
  35126. - status=$?
  35127. + exit_status=$?
  35128. # Delete the generated files.
  35129. if test -n "$dlsyms"; then
  35130. @@ -3516,7 +4744,7 @@
  35131. $run $rm "$output_objdir/${outputname}S.${objext}"
  35132. fi
  35133. - exit $status
  35134. + exit $exit_status
  35135. fi
  35136. if test -n "$shlibpath_var"; then
  35137. @@ -3575,7 +4803,7 @@
  35138. # Link the executable and exit
  35139. $show "$link_command"
  35140. $run eval "$link_command" || exit $?
  35141. - exit 0
  35142. + exit $EXIT_SUCCESS
  35143. fi
  35144. if test "$hardcode_action" = relink; then
  35145. @@ -3630,10 +4858,10 @@
  35146. fi
  35147. # Quote $echo for shipping.
  35148. - if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
  35149. - case $0 in
  35150. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
  35151. - *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
  35152. + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  35153. + case $progpath in
  35154. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  35155. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  35156. esac
  35157. qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  35158. else
  35159. @@ -3645,15 +4873,376 @@
  35160. # win32 will think the script is a binary if it has
  35161. # a .exe suffix, so we strip it off here.
  35162. case $output in
  35163. - *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
  35164. + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  35165. esac
  35166. # test for cygwin because mv fails w/o .exe extensions
  35167. case $host in
  35168. - *cygwin*) exeext=.exe ;;
  35169. + *cygwin*)
  35170. + exeext=.exe
  35171. + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  35172. *) exeext= ;;
  35173. esac
  35174. - $rm $output
  35175. - trap "$rm $output; exit 1" 1 2 15
  35176. + case $host in
  35177. + *cygwin* | *mingw* )
  35178. + output_name=`basename $output`
  35179. + output_path=`dirname $output`
  35180. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  35181. + cwrapper="$output_path/$output_name.exe"
  35182. + $rm $cwrappersource $cwrapper
  35183. + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  35184. +
  35185. + cat > $cwrappersource <<EOF
  35186. +
  35187. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  35188. + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  35189. +
  35190. + The $output program cannot be directly executed until all the libtool
  35191. + libraries that it depends on are installed.
  35192. +
  35193. + This wrapper executable should never be moved out of the build directory.
  35194. + If it is, it will not operate correctly.
  35195. +
  35196. + Currently, it simply execs the wrapper *script* "/bin/sh $output",
  35197. + but could eventually absorb all of the scripts functionality and
  35198. + exec $objdir/$outputname directly.
  35199. +*/
  35200. +EOF
  35201. + cat >> $cwrappersource<<"EOF"
  35202. +#include <stdio.h>
  35203. +#include <stdlib.h>
  35204. +#include <unistd.h>
  35205. +#include <malloc.h>
  35206. +#include <stdarg.h>
  35207. +#include <assert.h>
  35208. +#include <string.h>
  35209. +#include <ctype.h>
  35210. +#include <sys/stat.h>
  35211. +
  35212. +#if defined(PATH_MAX)
  35213. +# define LT_PATHMAX PATH_MAX
  35214. +#elif defined(MAXPATHLEN)
  35215. +# define LT_PATHMAX MAXPATHLEN
  35216. +#else
  35217. +# define LT_PATHMAX 1024
  35218. +#endif
  35219. +
  35220. +#ifndef DIR_SEPARATOR
  35221. +# define DIR_SEPARATOR '/'
  35222. +# define PATH_SEPARATOR ':'
  35223. +#endif
  35224. +
  35225. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  35226. + defined (__OS2__)
  35227. +# define HAVE_DOS_BASED_FILE_SYSTEM
  35228. +# ifndef DIR_SEPARATOR_2
  35229. +# define DIR_SEPARATOR_2 '\\'
  35230. +# endif
  35231. +# ifndef PATH_SEPARATOR_2
  35232. +# define PATH_SEPARATOR_2 ';'
  35233. +# endif
  35234. +#endif
  35235. +
  35236. +#ifndef DIR_SEPARATOR_2
  35237. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  35238. +#else /* DIR_SEPARATOR_2 */
  35239. +# define IS_DIR_SEPARATOR(ch) \
  35240. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  35241. +#endif /* DIR_SEPARATOR_2 */
  35242. +
  35243. +#ifndef PATH_SEPARATOR_2
  35244. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  35245. +#else /* PATH_SEPARATOR_2 */
  35246. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  35247. +#endif /* PATH_SEPARATOR_2 */
  35248. +
  35249. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  35250. +#define XFREE(stale) do { \
  35251. + if (stale) { free ((void *) stale); stale = 0; } \
  35252. +} while (0)
  35253. +
  35254. +/* -DDEBUG is fairly common in CFLAGS. */
  35255. +#undef DEBUG
  35256. +#if defined DEBUGWRAPPER
  35257. +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  35258. +#else
  35259. +# define DEBUG(format, ...)
  35260. +#endif
  35261. +
  35262. +const char *program_name = NULL;
  35263. +
  35264. +void * xmalloc (size_t num);
  35265. +char * xstrdup (const char *string);
  35266. +const char * base_name (const char *name);
  35267. +char * find_executable(const char *wrapper);
  35268. +int check_executable(const char *path);
  35269. +char * strendzap(char *str, const char *pat);
  35270. +void lt_fatal (const char *message, ...);
  35271. +
  35272. +int
  35273. +main (int argc, char *argv[])
  35274. +{
  35275. + char **newargz;
  35276. + int i;
  35277. +
  35278. + program_name = (char *) xstrdup (base_name (argv[0]));
  35279. + DEBUG("(main) argv[0] : %s\n",argv[0]);
  35280. + DEBUG("(main) program_name : %s\n",program_name);
  35281. + newargz = XMALLOC(char *, argc+2);
  35282. +EOF
  35283. +
  35284. + cat >> $cwrappersource <<EOF
  35285. + newargz[0] = (char *) xstrdup("$SHELL");
  35286. +EOF
  35287. +
  35288. + cat >> $cwrappersource <<"EOF"
  35289. + newargz[1] = find_executable(argv[0]);
  35290. + if (newargz[1] == NULL)
  35291. + lt_fatal("Couldn't find %s", argv[0]);
  35292. + DEBUG("(main) found exe at : %s\n",newargz[1]);
  35293. + /* we know the script has the same name, without the .exe */
  35294. + /* so make sure newargz[1] doesn't end in .exe */
  35295. + strendzap(newargz[1],".exe");
  35296. + for (i = 1; i < argc; i++)
  35297. + newargz[i+1] = xstrdup(argv[i]);
  35298. + newargz[argc+1] = NULL;
  35299. +
  35300. + for (i=0; i<argc+1; i++)
  35301. + {
  35302. + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  35303. + ;
  35304. + }
  35305. +
  35306. +EOF
  35307. +
  35308. + case $host_os in
  35309. + mingw*)
  35310. + cat >> $cwrappersource <<EOF
  35311. + execv("$SHELL",(char const **)newargz);
  35312. +EOF
  35313. + ;;
  35314. + *)
  35315. + cat >> $cwrappersource <<EOF
  35316. + execv("$SHELL",newargz);
  35317. +EOF
  35318. + ;;
  35319. + esac
  35320. +
  35321. + cat >> $cwrappersource <<"EOF"
  35322. + return 127;
  35323. +}
  35324. +
  35325. +void *
  35326. +xmalloc (size_t num)
  35327. +{
  35328. + void * p = (void *) malloc (num);
  35329. + if (!p)
  35330. + lt_fatal ("Memory exhausted");
  35331. +
  35332. + return p;
  35333. +}
  35334. +
  35335. +char *
  35336. +xstrdup (const char *string)
  35337. +{
  35338. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  35339. +;
  35340. +}
  35341. +
  35342. +const char *
  35343. +base_name (const char *name)
  35344. +{
  35345. + const char *base;
  35346. +
  35347. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  35348. + /* Skip over the disk name in MSDOS pathnames. */
  35349. + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  35350. + name += 2;
  35351. +#endif
  35352. +
  35353. + for (base = name; *name; name++)
  35354. + if (IS_DIR_SEPARATOR (*name))
  35355. + base = name + 1;
  35356. + return base;
  35357. +}
  35358. +
  35359. +int
  35360. +check_executable(const char * path)
  35361. +{
  35362. + struct stat st;
  35363. +
  35364. + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  35365. + if ((!path) || (!*path))
  35366. + return 0;
  35367. +
  35368. + if ((stat (path, &st) >= 0) &&
  35369. + (
  35370. + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  35371. +#if defined (S_IXOTH)
  35372. + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  35373. +#endif
  35374. +#if defined (S_IXGRP)
  35375. + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  35376. +#endif
  35377. + ((st.st_mode & S_IXUSR) == S_IXUSR))
  35378. + )
  35379. + return 1;
  35380. + else
  35381. + return 0;
  35382. +}
  35383. +
  35384. +/* Searches for the full path of the wrapper. Returns
  35385. + newly allocated full path name if found, NULL otherwise */
  35386. +char *
  35387. +find_executable (const char* wrapper)
  35388. +{
  35389. + int has_slash = 0;
  35390. + const char* p;
  35391. + const char* p_next;
  35392. + /* static buffer for getcwd */
  35393. + char tmp[LT_PATHMAX + 1];
  35394. + int tmp_len;
  35395. + char* concat_name;
  35396. +
  35397. + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  35398. +
  35399. + if ((wrapper == NULL) || (*wrapper == '\0'))
  35400. + return NULL;
  35401. +
  35402. + /* Absolute path? */
  35403. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  35404. + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  35405. + {
  35406. + concat_name = xstrdup (wrapper);
  35407. + if (check_executable(concat_name))
  35408. + return concat_name;
  35409. + XFREE(concat_name);
  35410. + }
  35411. + else
  35412. + {
  35413. +#endif
  35414. + if (IS_DIR_SEPARATOR (wrapper[0]))
  35415. + {
  35416. + concat_name = xstrdup (wrapper);
  35417. + if (check_executable(concat_name))
  35418. + return concat_name;
  35419. + XFREE(concat_name);
  35420. + }
  35421. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  35422. + }
  35423. +#endif
  35424. +
  35425. + for (p = wrapper; *p; p++)
  35426. + if (*p == '/')
  35427. + {
  35428. + has_slash = 1;
  35429. + break;
  35430. + }
  35431. + if (!has_slash)
  35432. + {
  35433. + /* no slashes; search PATH */
  35434. + const char* path = getenv ("PATH");
  35435. + if (path != NULL)
  35436. + {
  35437. + for (p = path; *p; p = p_next)
  35438. + {
  35439. + const char* q;
  35440. + size_t p_len;
  35441. + for (q = p; *q; q++)
  35442. + if (IS_PATH_SEPARATOR(*q))
  35443. + break;
  35444. + p_len = q - p;
  35445. + p_next = (*q == '\0' ? q : q + 1);
  35446. + if (p_len == 0)
  35447. + {
  35448. + /* empty path: current directory */
  35449. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  35450. + lt_fatal ("getcwd failed");
  35451. + tmp_len = strlen(tmp);
  35452. + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  35453. + memcpy (concat_name, tmp, tmp_len);
  35454. + concat_name[tmp_len] = '/';
  35455. + strcpy (concat_name + tmp_len + 1, wrapper);
  35456. + }
  35457. + else
  35458. + {
  35459. + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  35460. + memcpy (concat_name, p, p_len);
  35461. + concat_name[p_len] = '/';
  35462. + strcpy (concat_name + p_len + 1, wrapper);
  35463. + }
  35464. + if (check_executable(concat_name))
  35465. + return concat_name;
  35466. + XFREE(concat_name);
  35467. + }
  35468. + }
  35469. + /* not found in PATH; assume curdir */
  35470. + }
  35471. + /* Relative path | not found in path: prepend cwd */
  35472. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  35473. + lt_fatal ("getcwd failed");
  35474. + tmp_len = strlen(tmp);
  35475. + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  35476. + memcpy (concat_name, tmp, tmp_len);
  35477. + concat_name[tmp_len] = '/';
  35478. + strcpy (concat_name + tmp_len + 1, wrapper);
  35479. +
  35480. + if (check_executable(concat_name))
  35481. + return concat_name;
  35482. + XFREE(concat_name);
  35483. + return NULL;
  35484. +}
  35485. +
  35486. +char *
  35487. +strendzap(char *str, const char *pat)
  35488. +{
  35489. + size_t len, patlen;
  35490. +
  35491. + assert(str != NULL);
  35492. + assert(pat != NULL);
  35493. +
  35494. + len = strlen(str);
  35495. + patlen = strlen(pat);
  35496. +
  35497. + if (patlen <= len)
  35498. + {
  35499. + str += len - patlen;
  35500. + if (strcmp(str, pat) == 0)
  35501. + *str = '\0';
  35502. + }
  35503. + return str;
  35504. +}
  35505. +
  35506. +static void
  35507. +lt_error_core (int exit_status, const char * mode,
  35508. + const char * message, va_list ap)
  35509. +{
  35510. + fprintf (stderr, "%s: %s: ", program_name, mode);
  35511. + vfprintf (stderr, message, ap);
  35512. + fprintf (stderr, ".\n");
  35513. +
  35514. + if (exit_status >= 0)
  35515. + exit (exit_status);
  35516. +}
  35517. +
  35518. +void
  35519. +lt_fatal (const char *message, ...)
  35520. +{
  35521. + va_list ap;
  35522. + va_start (ap, message);
  35523. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  35524. + va_end (ap);
  35525. +}
  35526. +EOF
  35527. + # we should really use a build-platform specific compiler
  35528. + # here, but OTOH, the wrappers (shell script and this C one)
  35529. + # are only useful if you want to execute the "real" binary.
  35530. + # Since the "real" binary is built for $host, then this
  35531. + # wrapper might as well be built for $host, too.
  35532. + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  35533. + ;;
  35534. + esac
  35535. + $rm $output
  35536. + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  35537. $echo > $output "\
  35538. #! $SHELL
  35539. @@ -3669,12 +5258,12 @@
  35540. # Sed substitution that helps us do robust quoting. It backslashifies
  35541. # metacharacters that are still active within double-quoted strings.
  35542. -Xsed="${SED}"' -e 1s/^X//'
  35543. +Xsed='${SED} -e 1s/^X//'
  35544. sed_quote_subst='$sed_quote_subst'
  35545. # The HP-UX ksh and POSIX shell print the target directory to stdout
  35546. # if CDPATH is set.
  35547. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  35548. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  35549. relink_command=\"$relink_command\"
  35550. @@ -3729,7 +5318,7 @@
  35551. "
  35552. if test "$fast_install" = yes; then
  35553. - echo >> $output "\
  35554. + $echo >> $output "\
  35555. program=lt-'$outputname'$exeext
  35556. progdir=\"\$thisdir/$objdir\"
  35557. @@ -3745,7 +5334,7 @@
  35558. $rm \"\$progdir/\$file\"
  35559. fi"
  35560. - echo >> $output "\
  35561. + $echo >> $output "\
  35562. # relink executable if necessary
  35563. if test -n \"\$relink_command\"; then
  35564. @@ -3753,7 +5342,7 @@
  35565. else
  35566. $echo \"\$relink_command_output\" >&2
  35567. $rm \"\$progdir/\$file\"
  35568. - exit 1
  35569. + exit $EXIT_FAILURE
  35570. fi
  35571. fi
  35572. @@ -3763,13 +5352,13 @@
  35573. $rm \"\$progdir/\$file\"
  35574. fi"
  35575. else
  35576. - echo >> $output "\
  35577. + $echo >> $output "\
  35578. program='$outputname'
  35579. progdir=\"\$thisdir/$objdir\"
  35580. "
  35581. fi
  35582. - echo >> $output "\
  35583. + $echo >> $output "\
  35584. if test -f \"\$progdir/\$program\"; then"
  35585. @@ -3780,7 +5369,7 @@
  35586. $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  35587. # Some systems cannot cope with colon-terminated $shlibpath_var
  35588. - # The second colon is a workaround for a bug in BeOS R4 ${SED}
  35589. + # The second colon is a workaround for a bug in BeOS R4 sed
  35590. $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  35591. export $shlibpath_var
  35592. @@ -3800,47 +5389,35 @@
  35593. # Run the actual program with our arguments.
  35594. "
  35595. case $host in
  35596. - # win32 systems need to use the prog path for dll
  35597. - # lookup to work
  35598. - *-*-cygwin* | *-*-pw32*)
  35599. - $echo >> $output "\
  35600. - exec \$progdir/\$program \${1+\"\$@\"}
  35601. -"
  35602. - ;;
  35603. -
  35604. # Backslashes separate directories on plain windows
  35605. *-*-mingw | *-*-os2*)
  35606. $echo >> $output "\
  35607. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  35608. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  35609. "
  35610. ;;
  35611. *)
  35612. $echo >> $output "\
  35613. - # Export the path to the program.
  35614. - PATH=\"\$progdir:\$PATH\"
  35615. - export PATH
  35616. -
  35617. - exec \$program \${1+\"\$@\"}
  35618. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  35619. "
  35620. ;;
  35621. esac
  35622. $echo >> $output "\
  35623. \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  35624. - exit 1
  35625. + exit $EXIT_FAILURE
  35626. fi
  35627. else
  35628. # The program doesn't exist.
  35629. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  35630. + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  35631. \$echo \"This script is just a wrapper for \$program.\" 1>&2
  35632. - echo \"See the $PACKAGE documentation for more information.\" 1>&2
  35633. - exit 1
  35634. + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  35635. + exit $EXIT_FAILURE
  35636. fi
  35637. fi\
  35638. "
  35639. chmod +x $output
  35640. fi
  35641. - exit 0
  35642. + exit $EXIT_SUCCESS
  35643. ;;
  35644. esac
  35645. @@ -3856,74 +5433,130 @@
  35646. oldobjs="$libobjs_save"
  35647. build_libtool_libs=no
  35648. else
  35649. - oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
  35650. + oldobjs="$old_deplibs $non_pic_objects"
  35651. fi
  35652. addlibs="$old_convenience"
  35653. fi
  35654. if test -n "$addlibs"; then
  35655. gentop="$output_objdir/${outputname}x"
  35656. - $show "${rm}r $gentop"
  35657. - $run ${rm}r "$gentop"
  35658. - $show "mkdir $gentop"
  35659. - $run mkdir "$gentop"
  35660. - status=$?
  35661. - if test $status -ne 0 && test ! -d "$gentop"; then
  35662. - exit $status
  35663. - fi
  35664. generated="$generated $gentop"
  35665. - # Add in members from convenience archives.
  35666. - for xlib in $addlibs; do
  35667. - # Extract the objects.
  35668. - case $xlib in
  35669. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  35670. - *) xabs=`pwd`"/$xlib" ;;
  35671. - esac
  35672. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  35673. - xdir="$gentop/$xlib"
  35674. -
  35675. - $show "${rm}r $xdir"
  35676. - $run ${rm}r "$xdir"
  35677. - $show "mkdir $xdir"
  35678. - $run mkdir "$xdir"
  35679. - status=$?
  35680. - if test $status -ne 0 && test ! -d "$xdir"; then
  35681. - exit $status
  35682. - fi
  35683. - $show "(cd $xdir && $AR x $xabs)"
  35684. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  35685. -
  35686. - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  35687. - done
  35688. + func_extract_archives $gentop $addlibs
  35689. + oldobjs="$oldobjs $func_extract_archives_result"
  35690. fi
  35691. # Do each command in the archive commands.
  35692. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  35693. - eval cmds=\"$old_archive_from_new_cmds\"
  35694. + cmds=$old_archive_from_new_cmds
  35695. else
  35696. - # Ensure that we have .o objects in place in case we decided
  35697. - # not to build a shared library, and have fallen back to building
  35698. - # static libs even though --disable-static was passed!
  35699. - for oldobj in $oldobjs; do
  35700. - if test ! -f $oldobj; then
  35701. - xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
  35702. - if test "X$xdir" = "X$oldobj"; then
  35703. - xdir="."
  35704. - else
  35705. - xdir="$xdir"
  35706. + # POSIX demands no paths to be encoded in archives. We have
  35707. + # to avoid creating archives with duplicate basenames if we
  35708. + # might have to extract them afterwards, e.g., when creating a
  35709. + # static archive out of a convenience library, or when linking
  35710. + # the entirety of a libtool archive into another (currently
  35711. + # not supported by libtool).
  35712. + if (for obj in $oldobjs
  35713. + do
  35714. + $echo "X$obj" | $Xsed -e 's%^.*/%%'
  35715. + done | sort | sort -uc >/dev/null 2>&1); then
  35716. + :
  35717. + else
  35718. + $echo "copying selected object files to avoid basename conflicts..."
  35719. +
  35720. + if test -z "$gentop"; then
  35721. + gentop="$output_objdir/${outputname}x"
  35722. + generated="$generated $gentop"
  35723. +
  35724. + $show "${rm}r $gentop"
  35725. + $run ${rm}r "$gentop"
  35726. + $show "$mkdir $gentop"
  35727. + $run $mkdir "$gentop"
  35728. + exit_status=$?
  35729. + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  35730. + exit $exit_status
  35731. fi
  35732. - baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
  35733. - obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  35734. - $show "(cd $xdir && ${LN_S} $obj $baseobj)"
  35735. - $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
  35736. fi
  35737. - done
  35738. +
  35739. + save_oldobjs=$oldobjs
  35740. + oldobjs=
  35741. + counter=1
  35742. + for obj in $save_oldobjs
  35743. + do
  35744. + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  35745. + case " $oldobjs " in
  35746. + " ") oldobjs=$obj ;;
  35747. + *[\ /]"$objbase "*)
  35748. + while :; do
  35749. + # Make sure we don't pick an alternate name that also
  35750. + # overlaps.
  35751. + newobj=lt$counter-$objbase
  35752. + counter=`expr $counter + 1`
  35753. + case " $oldobjs " in
  35754. + *[\ /]"$newobj "*) ;;
  35755. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  35756. + esac
  35757. + done
  35758. + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  35759. + $run ln "$obj" "$gentop/$newobj" ||
  35760. + $run cp "$obj" "$gentop/$newobj"
  35761. + oldobjs="$oldobjs $gentop/$newobj"
  35762. + ;;
  35763. + *) oldobjs="$oldobjs $obj" ;;
  35764. + esac
  35765. + done
  35766. + fi
  35767. eval cmds=\"$old_archive_cmds\"
  35768. +
  35769. + if len=`expr "X$cmds" : ".*"` &&
  35770. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  35771. + cmds=$old_archive_cmds
  35772. + else
  35773. + # the command line is too long to link in one step, link in parts
  35774. + $echo "using piecewise archive linking..."
  35775. + save_RANLIB=$RANLIB
  35776. + RANLIB=:
  35777. + objlist=
  35778. + concat_cmds=
  35779. + save_oldobjs=$oldobjs
  35780. +
  35781. + # Is there a better way of finding the last object in the list?
  35782. + for obj in $save_oldobjs
  35783. + do
  35784. + last_oldobj=$obj
  35785. + done
  35786. + for obj in $save_oldobjs
  35787. + do
  35788. + oldobjs="$objlist $obj"
  35789. + objlist="$objlist $obj"
  35790. + eval test_cmds=\"$old_archive_cmds\"
  35791. + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  35792. + test "$len" -le "$max_cmd_len"; then
  35793. + :
  35794. + else
  35795. + # the above command should be used before it gets too long
  35796. + oldobjs=$objlist
  35797. + if test "$obj" = "$last_oldobj" ; then
  35798. + RANLIB=$save_RANLIB
  35799. + fi
  35800. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  35801. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  35802. + objlist=
  35803. + fi
  35804. + done
  35805. + RANLIB=$save_RANLIB
  35806. + oldobjs=$objlist
  35807. + if test "X$oldobjs" = "X" ; then
  35808. + eval cmds=\"\$concat_cmds\"
  35809. + else
  35810. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  35811. + fi
  35812. + fi
  35813. fi
  35814. save_ifs="$IFS"; IFS='~'
  35815. for cmd in $cmds; do
  35816. + eval cmd=\"$cmd\"
  35817. IFS="$save_ifs"
  35818. $show "$cmd"
  35819. $run eval "$cmd" || exit $?
  35820. @@ -3955,8 +5588,12 @@
  35821. fi
  35822. done
  35823. # Quote the link command for shipping.
  35824. - relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
  35825. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  35826. relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  35827. + if test "$hardcode_automatic" = yes ; then
  35828. + relink_command=
  35829. + fi
  35830. +
  35831. # Only create the output if not a dry run.
  35832. if test -z "$run"; then
  35833. @@ -3975,7 +5612,7 @@
  35834. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  35835. if test -z "$libdir"; then
  35836. $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  35837. - exit 1
  35838. + exit $EXIT_FAILURE
  35839. fi
  35840. newdependency_libs="$newdependency_libs $libdir/$name"
  35841. ;;
  35842. @@ -3989,7 +5626,7 @@
  35843. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  35844. if test -z "$libdir"; then
  35845. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  35846. - exit 1
  35847. + exit $EXIT_FAILURE
  35848. fi
  35849. newdlfiles="$newdlfiles $libdir/$name"
  35850. done
  35851. @@ -4000,17 +5637,36 @@
  35852. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  35853. if test -z "$libdir"; then
  35854. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  35855. - exit 1
  35856. + exit $EXIT_FAILURE
  35857. fi
  35858. newdlprefiles="$newdlprefiles $libdir/$name"
  35859. done
  35860. dlprefiles="$newdlprefiles"
  35861. + else
  35862. + newdlfiles=
  35863. + for lib in $dlfiles; do
  35864. + case $lib in
  35865. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  35866. + *) abs=`pwd`"/$lib" ;;
  35867. + esac
  35868. + newdlfiles="$newdlfiles $abs"
  35869. + done
  35870. + dlfiles="$newdlfiles"
  35871. + newdlprefiles=
  35872. + for lib in $dlprefiles; do
  35873. + case $lib in
  35874. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  35875. + *) abs=`pwd`"/$lib" ;;
  35876. + esac
  35877. + newdlprefiles="$newdlprefiles $abs"
  35878. + done
  35879. + dlprefiles="$newdlprefiles"
  35880. fi
  35881. $rm $output
  35882. # place dlname in correct position for cygwin
  35883. tdlname=$dlname
  35884. case $host,$output,$installed,$module,$dlname in
  35885. - *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  35886. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  35887. esac
  35888. $echo > $output "\
  35889. # $outputname - a libtool library file
  35890. @@ -4039,13 +5695,16 @@
  35891. # Is this an already installed library?
  35892. installed=$installed
  35893. +# Should we warn about portability when linking against -modules?
  35894. +shouldnotlink=$module
  35895. +
  35896. # Files to dlopen/dlpreopen
  35897. dlopen='$dlfiles'
  35898. dlpreopen='$dlprefiles'
  35899. # Directory that this library needs to be installed in:
  35900. libdir='$install_libdir'"
  35901. - if test "$installed" = no && test $need_relink = yes; then
  35902. + if test "$installed" = no && test "$need_relink" = yes; then
  35903. $echo >> $output "\
  35904. relink_command=\"$relink_command\""
  35905. fi
  35906. @@ -4058,7 +5717,7 @@
  35907. $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  35908. ;;
  35909. esac
  35910. - exit 0
  35911. + exit $EXIT_SUCCESS
  35912. ;;
  35913. # libtool install mode
  35914. @@ -4069,11 +5728,11 @@
  35915. # install_prog (especially on Windows NT).
  35916. if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  35917. # Allow the use of GNU shtool's install command.
  35918. - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  35919. + $echo "X$nonopt" | grep shtool > /dev/null; then
  35920. # Aesthetically quote it.
  35921. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  35922. case $arg in
  35923. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  35924. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  35925. arg="\"$arg\""
  35926. ;;
  35927. esac
  35928. @@ -4082,14 +5741,14 @@
  35929. shift
  35930. else
  35931. install_prog=
  35932. - arg="$nonopt"
  35933. + arg=$nonopt
  35934. fi
  35935. # The real first argument should be the name of the installation program.
  35936. # Aesthetically quote it.
  35937. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  35938. case $arg in
  35939. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  35940. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  35941. arg="\"$arg\""
  35942. ;;
  35943. esac
  35944. @@ -4107,28 +5766,31 @@
  35945. do
  35946. if test -n "$dest"; then
  35947. files="$files $dest"
  35948. - dest="$arg"
  35949. + dest=$arg
  35950. continue
  35951. fi
  35952. case $arg in
  35953. -d) isdir=yes ;;
  35954. - -f) prev="-f" ;;
  35955. - -g) prev="-g" ;;
  35956. - -m) prev="-m" ;;
  35957. - -o) prev="-o" ;;
  35958. + -f)
  35959. + case " $install_prog " in
  35960. + *[\\\ /]cp\ *) ;;
  35961. + *) prev=$arg ;;
  35962. + esac
  35963. + ;;
  35964. + -g | -m | -o) prev=$arg ;;
  35965. -s)
  35966. stripme=" -s"
  35967. continue
  35968. ;;
  35969. - -*) ;;
  35970. -
  35971. + -*)
  35972. + ;;
  35973. *)
  35974. # If the previous option needed an argument, then skip it.
  35975. if test -n "$prev"; then
  35976. prev=
  35977. else
  35978. - dest="$arg"
  35979. + dest=$arg
  35980. continue
  35981. fi
  35982. ;;
  35983. @@ -4137,7 +5799,7 @@
  35984. # Aesthetically quote the argument.
  35985. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  35986. case $arg in
  35987. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  35988. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  35989. arg="\"$arg\""
  35990. ;;
  35991. esac
  35992. @@ -4147,13 +5809,13 @@
  35993. if test -z "$install_prog"; then
  35994. $echo "$modename: you must specify an install program" 1>&2
  35995. $echo "$help" 1>&2
  35996. - exit 1
  35997. + exit $EXIT_FAILURE
  35998. fi
  35999. if test -n "$prev"; then
  36000. $echo "$modename: the \`$prev' option requires an argument" 1>&2
  36001. $echo "$help" 1>&2
  36002. - exit 1
  36003. + exit $EXIT_FAILURE
  36004. fi
  36005. if test -z "$files"; then
  36006. @@ -4163,7 +5825,7 @@
  36007. $echo "$modename: you must specify a destination" 1>&2
  36008. fi
  36009. $echo "$help" 1>&2
  36010. - exit 1
  36011. + exit $EXIT_FAILURE
  36012. fi
  36013. # Strip any trailing slash from the destination.
  36014. @@ -4181,10 +5843,10 @@
  36015. # Not a directory, so check to see that there is only one file specified.
  36016. set dummy $files
  36017. - if test $# -gt 2; then
  36018. + if test "$#" -gt 2; then
  36019. $echo "$modename: \`$dest' is not a directory" 1>&2
  36020. $echo "$help" 1>&2
  36021. - exit 1
  36022. + exit $EXIT_FAILURE
  36023. fi
  36024. fi
  36025. case $destdir in
  36026. @@ -4196,7 +5858,7 @@
  36027. *)
  36028. $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  36029. $echo "$help" 1>&2
  36030. - exit 1
  36031. + exit $EXIT_FAILURE
  36032. ;;
  36033. esac
  36034. done
  36035. @@ -4221,11 +5883,11 @@
  36036. *.la)
  36037. # Check to see that this really is a libtool archive.
  36038. - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  36039. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  36040. else
  36041. $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  36042. $echo "$help" 1>&2
  36043. - exit 1
  36044. + exit $EXIT_FAILURE
  36045. fi
  36046. library_names=
  36047. @@ -4256,30 +5918,33 @@
  36048. dir="$dir$objdir"
  36049. if test -n "$relink_command"; then
  36050. - # Determine the prefix the user has applied to our future dir.
  36051. - inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
  36052. -
  36053. - # Don't allow the user to place us outside of our expected
  36054. - # location b/c this prevents finding dependent libraries that
  36055. - # are installed to the same prefix.
  36056. - if test "$inst_prefix_dir" = "$destdir"; then
  36057. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  36058. - exit 1
  36059. - fi
  36060. -
  36061. - if test -n "$inst_prefix_dir"; then
  36062. - # Stick the inst_prefix_dir data into the link command.
  36063. - relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  36064. - else
  36065. - relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
  36066. - fi
  36067. + # Determine the prefix the user has applied to our future dir.
  36068. + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  36069. +
  36070. + # Don't allow the user to place us outside of our expected
  36071. + # location b/c this prevents finding dependent libraries that
  36072. + # are installed to the same prefix.
  36073. + # At present, this check doesn't affect windows .dll's that
  36074. + # are installed into $libdir/../bin (currently, that works fine)
  36075. + # but it's something to keep an eye on.
  36076. + if test "$inst_prefix_dir" = "$destdir"; then
  36077. + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  36078. + exit $EXIT_FAILURE
  36079. + fi
  36080. +
  36081. + if test -n "$inst_prefix_dir"; then
  36082. + # Stick the inst_prefix_dir data into the link command.
  36083. + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  36084. + else
  36085. + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  36086. + fi
  36087. $echo "$modename: warning: relinking \`$file'" 1>&2
  36088. $show "$relink_command"
  36089. if $run eval "$relink_command"; then :
  36090. else
  36091. $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  36092. - exit 1
  36093. + exit $EXIT_FAILURE
  36094. fi
  36095. fi
  36096. @@ -4301,25 +5966,38 @@
  36097. $run eval "$striplib $destdir/$realname" || exit $?
  36098. fi
  36099. - if test $# -gt 0; then
  36100. + if test "$#" -gt 0; then
  36101. # Delete the old symlinks, and create new ones.
  36102. + # Try `ln -sf' first, because the `ln' binary might depend on
  36103. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  36104. + # so we also need to try rm && ln -s.
  36105. for linkname
  36106. do
  36107. if test "$linkname" != "$realname"; then
  36108. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  36109. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  36110. + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  36111. + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  36112. fi
  36113. done
  36114. fi
  36115. # Do each command in the postinstall commands.
  36116. lib="$destdir/$realname"
  36117. - eval cmds=\"$postinstall_cmds\"
  36118. + cmds=$postinstall_cmds
  36119. save_ifs="$IFS"; IFS='~'
  36120. for cmd in $cmds; do
  36121. IFS="$save_ifs"
  36122. + eval cmd=\"$cmd\"
  36123. $show "$cmd"
  36124. - $run eval "$cmd" || exit $?
  36125. + $run eval "$cmd" || {
  36126. + lt_exit=$?
  36127. +
  36128. + # Restore the uninstalled library and exit
  36129. + if test "$mode" = relink; then
  36130. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  36131. + fi
  36132. +
  36133. + exit $lt_exit
  36134. + }
  36135. done
  36136. IFS="$save_ifs"
  36137. fi
  36138. @@ -4357,7 +6035,7 @@
  36139. *)
  36140. $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  36141. $echo "$help" 1>&2
  36142. - exit 1
  36143. + exit $EXIT_FAILURE
  36144. ;;
  36145. esac
  36146. @@ -4375,7 +6053,7 @@
  36147. $show "$install_prog $staticobj $staticdest"
  36148. $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  36149. fi
  36150. - exit 0
  36151. + exit $EXIT_SUCCESS
  36152. ;;
  36153. *)
  36154. @@ -4387,29 +6065,47 @@
  36155. destfile="$destdir/$destfile"
  36156. fi
  36157. + # If the file is missing, and there is a .exe on the end, strip it
  36158. + # because it is most likely a libtool script we actually want to
  36159. + # install
  36160. + stripped_ext=""
  36161. + case $file in
  36162. + *.exe)
  36163. + if test ! -f "$file"; then
  36164. + file=`$echo $file|${SED} 's,.exe$,,'`
  36165. + stripped_ext=".exe"
  36166. + fi
  36167. + ;;
  36168. + esac
  36169. +
  36170. # Do a test to see if this is really a libtool program.
  36171. case $host in
  36172. *cygwin*|*mingw*)
  36173. - wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
  36174. + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  36175. ;;
  36176. *)
  36177. wrapper=$file
  36178. ;;
  36179. esac
  36180. - if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  36181. + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  36182. notinst_deplibs=
  36183. relink_command=
  36184. + # Note that it is not necessary on cygwin/mingw to append a dot to
  36185. + # foo even if both foo and FILE.exe exist: automatic-append-.exe
  36186. + # behavior happens only for exec(3), not for open(2)! Also, sourcing
  36187. + # `FILE.' does not work on cygwin managed mounts.
  36188. + #
  36189. # If there is no directory component, then add one.
  36190. - case $file in
  36191. - */* | *\\*) . $wrapper ;;
  36192. - *) . ./$wrapper ;;
  36193. + case $wrapper in
  36194. + */* | *\\*) . ${wrapper} ;;
  36195. + *) . ./${wrapper} ;;
  36196. esac
  36197. # Check the variables that should have been set.
  36198. if test -z "$notinst_deplibs"; then
  36199. $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  36200. - exit 1
  36201. + exit $EXIT_FAILURE
  36202. fi
  36203. finalize=yes
  36204. @@ -4431,24 +6127,22 @@
  36205. done
  36206. relink_command=
  36207. + # Note that it is not necessary on cygwin/mingw to append a dot to
  36208. + # foo even if both foo and FILE.exe exist: automatic-append-.exe
  36209. + # behavior happens only for exec(3), not for open(2)! Also, sourcing
  36210. + # `FILE.' does not work on cygwin managed mounts.
  36211. + #
  36212. # If there is no directory component, then add one.
  36213. - case $file in
  36214. - */* | *\\*) . $wrapper ;;
  36215. - *) . ./$wrapper ;;
  36216. + case $wrapper in
  36217. + */* | *\\*) . ${wrapper} ;;
  36218. + *) . ./${wrapper} ;;
  36219. esac
  36220. outputname=
  36221. if test "$fast_install" = no && test -n "$relink_command"; then
  36222. if test "$finalize" = yes && test -z "$run"; then
  36223. - tmpdir="/tmp"
  36224. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  36225. - tmpdir="$tmpdir/libtool-$$"
  36226. - if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
  36227. - else
  36228. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  36229. - continue
  36230. - fi
  36231. - file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  36232. + tmpdir=`func_mktempdir`
  36233. + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  36234. outputname="$tmpdir/$file"
  36235. # Replace the output file specification.
  36236. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  36237. @@ -4466,14 +6160,14 @@
  36238. fi
  36239. else
  36240. # Install the binary that we compiled earlier.
  36241. - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  36242. + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  36243. fi
  36244. fi
  36245. # remove .exe since cygwin /usr/bin/install will append another
  36246. - # one anyways
  36247. + # one anyway
  36248. case $install_prog,$host in
  36249. - /usr/bin/install*,*cygwin*)
  36250. + */usr/bin/install*,*cygwin*)
  36251. case $file:$destfile in
  36252. *.exe:*.exe)
  36253. # this is ok
  36254. @@ -4482,7 +6176,7 @@
  36255. destfile=$destfile.exe
  36256. ;;
  36257. *:*.exe)
  36258. - destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
  36259. + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  36260. ;;
  36261. esac
  36262. ;;
  36263. @@ -4503,16 +6197,17 @@
  36264. $show "$install_prog $file $oldlib"
  36265. $run eval "$install_prog \$file \$oldlib" || exit $?
  36266. - if test -n "$stripme" && test -n "$striplib"; then
  36267. + if test -n "$stripme" && test -n "$old_striplib"; then
  36268. $show "$old_striplib $oldlib"
  36269. $run eval "$old_striplib $oldlib" || exit $?
  36270. fi
  36271. # Do each command in the postinstall commands.
  36272. - eval cmds=\"$old_postinstall_cmds\"
  36273. + cmds=$old_postinstall_cmds
  36274. save_ifs="$IFS"; IFS='~'
  36275. for cmd in $cmds; do
  36276. IFS="$save_ifs"
  36277. + eval cmd=\"$cmd\"
  36278. $show "$cmd"
  36279. $run eval "$cmd" || exit $?
  36280. done
  36281. @@ -4526,9 +6221,9 @@
  36282. if test -n "$current_libdirs"; then
  36283. # Maybe just do a dry run.
  36284. test -n "$run" && current_libdirs=" -n$current_libdirs"
  36285. - exec_cmd='$SHELL $0 --finish$current_libdirs'
  36286. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  36287. else
  36288. - exit 0
  36289. + exit $EXIT_SUCCESS
  36290. fi
  36291. ;;
  36292. @@ -4547,10 +6242,11 @@
  36293. for libdir in $libdirs; do
  36294. if test -n "$finish_cmds"; then
  36295. # Do each command in the finish commands.
  36296. - eval cmds=\"$finish_cmds\"
  36297. + cmds=$finish_cmds
  36298. save_ifs="$IFS"; IFS='~'
  36299. for cmd in $cmds; do
  36300. IFS="$save_ifs"
  36301. + eval cmd=\"$cmd\"
  36302. $show "$cmd"
  36303. $run eval "$cmd" || admincmds="$admincmds
  36304. $cmd"
  36305. @@ -4567,43 +6263,43 @@
  36306. fi
  36307. # Exit here if they wanted silent mode.
  36308. - test "$show" = ":" && exit 0
  36309. + test "$show" = : && exit $EXIT_SUCCESS
  36310. - echo "----------------------------------------------------------------------"
  36311. - echo "Libraries have been installed in:"
  36312. + $echo "X----------------------------------------------------------------------" | $Xsed
  36313. + $echo "Libraries have been installed in:"
  36314. for libdir in $libdirs; do
  36315. - echo " $libdir"
  36316. + $echo " $libdir"
  36317. done
  36318. - echo
  36319. - echo "If you ever happen to want to link against installed libraries"
  36320. - echo "in a given directory, LIBDIR, you must either use libtool, and"
  36321. - echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  36322. - echo "flag during linking and do at least one of the following:"
  36323. + $echo
  36324. + $echo "If you ever happen to want to link against installed libraries"
  36325. + $echo "in a given directory, LIBDIR, you must either use libtool, and"
  36326. + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  36327. + $echo "flag during linking and do at least one of the following:"
  36328. if test -n "$shlibpath_var"; then
  36329. - echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  36330. - echo " during execution"
  36331. + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  36332. + $echo " during execution"
  36333. fi
  36334. if test -n "$runpath_var"; then
  36335. - echo " - add LIBDIR to the \`$runpath_var' environment variable"
  36336. - echo " during linking"
  36337. + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  36338. + $echo " during linking"
  36339. fi
  36340. if test -n "$hardcode_libdir_flag_spec"; then
  36341. libdir=LIBDIR
  36342. eval flag=\"$hardcode_libdir_flag_spec\"
  36343. - echo " - use the \`$flag' linker flag"
  36344. + $echo " - use the \`$flag' linker flag"
  36345. fi
  36346. if test -n "$admincmds"; then
  36347. - echo " - have your system administrator run these commands:$admincmds"
  36348. + $echo " - have your system administrator run these commands:$admincmds"
  36349. fi
  36350. if test -f /etc/ld.so.conf; then
  36351. - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  36352. + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  36353. fi
  36354. - echo
  36355. - echo "See any operating system documentation about shared libraries for"
  36356. - echo "more information, such as the ld(1) and ld.so(8) manual pages."
  36357. - echo "----------------------------------------------------------------------"
  36358. - exit 0
  36359. + $echo
  36360. + $echo "See any operating system documentation about shared libraries for"
  36361. + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  36362. + $echo "X----------------------------------------------------------------------" | $Xsed
  36363. + exit $EXIT_SUCCESS
  36364. ;;
  36365. # libtool execute mode
  36366. @@ -4615,7 +6311,7 @@
  36367. if test -z "$cmd"; then
  36368. $echo "$modename: you must specify a COMMAND" 1>&2
  36369. $echo "$help"
  36370. - exit 1
  36371. + exit $EXIT_FAILURE
  36372. fi
  36373. # Handle -dlopen flags immediately.
  36374. @@ -4623,18 +6319,18 @@
  36375. if test ! -f "$file"; then
  36376. $echo "$modename: \`$file' is not a file" 1>&2
  36377. $echo "$help" 1>&2
  36378. - exit 1
  36379. + exit $EXIT_FAILURE
  36380. fi
  36381. dir=
  36382. case $file in
  36383. *.la)
  36384. # Check to see that this really is a libtool archive.
  36385. - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  36386. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  36387. else
  36388. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  36389. $echo "$help" 1>&2
  36390. - exit 1
  36391. + exit $EXIT_FAILURE
  36392. fi
  36393. # Read the libtool library.
  36394. @@ -4661,7 +6357,7 @@
  36395. dir="$dir/$objdir"
  36396. else
  36397. $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  36398. - exit 1
  36399. + exit $EXIT_FAILURE
  36400. fi
  36401. ;;
  36402. @@ -4701,7 +6397,7 @@
  36403. -*) ;;
  36404. *)
  36405. # Do a test to see if this is really a libtool program.
  36406. - if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  36407. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  36408. # If there is no directory component, then add one.
  36409. case $file in
  36410. */* | *\\*) . $file ;;
  36411. @@ -4724,7 +6420,7 @@
  36412. eval "export $shlibpath_var"
  36413. fi
  36414. - # Restore saved enviroment variables
  36415. + # Restore saved environment variables
  36416. if test "${save_LC_ALL+set}" = set; then
  36417. LC_ALL="$save_LC_ALL"; export LC_ALL
  36418. fi
  36419. @@ -4741,7 +6437,7 @@
  36420. $echo "export $shlibpath_var"
  36421. fi
  36422. $echo "$cmd$args"
  36423. - exit 0
  36424. + exit $EXIT_SUCCESS
  36425. fi
  36426. ;;
  36427. @@ -4769,24 +6465,25 @@
  36428. if test -z "$rm"; then
  36429. $echo "$modename: you must specify an RM program" 1>&2
  36430. $echo "$help" 1>&2
  36431. - exit 1
  36432. + exit $EXIT_FAILURE
  36433. fi
  36434. rmdirs=
  36435. + origobjdir="$objdir"
  36436. for file in $files; do
  36437. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  36438. if test "X$dir" = "X$file"; then
  36439. dir=.
  36440. - objdir="$objdir"
  36441. + objdir="$origobjdir"
  36442. else
  36443. - objdir="$dir/$objdir"
  36444. + objdir="$dir/$origobjdir"
  36445. fi
  36446. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  36447. - test $mode = uninstall && objdir="$dir"
  36448. + test "$mode" = uninstall && objdir="$dir"
  36449. # Remember objdir for removal later, being careful to avoid duplicates
  36450. - if test $mode = clean; then
  36451. + if test "$mode" = clean; then
  36452. case " $rmdirs " in
  36453. *" $objdir "*) ;;
  36454. *) rmdirs="$rmdirs $objdir" ;;
  36455. @@ -4810,7 +6507,7 @@
  36456. case $name in
  36457. *.la)
  36458. # Possibly a libtool archive, so verify it.
  36459. - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  36460. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  36461. . $dir/$name
  36462. # Delete the libtool libraries and symlinks.
  36463. @@ -4818,18 +6515,27 @@
  36464. rmfiles="$rmfiles $objdir/$n"
  36465. done
  36466. test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  36467. - test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  36468. - if test $mode = uninstall; then
  36469. + case "$mode" in
  36470. + clean)
  36471. + case " $library_names " in
  36472. + # " " in the beginning catches empty $dlname
  36473. + *" $dlname "*) ;;
  36474. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  36475. + esac
  36476. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  36477. + ;;
  36478. + uninstall)
  36479. if test -n "$library_names"; then
  36480. # Do each command in the postuninstall commands.
  36481. - eval cmds=\"$postuninstall_cmds\"
  36482. + cmds=$postuninstall_cmds
  36483. save_ifs="$IFS"; IFS='~'
  36484. for cmd in $cmds; do
  36485. IFS="$save_ifs"
  36486. + eval cmd=\"$cmd\"
  36487. $show "$cmd"
  36488. $run eval "$cmd"
  36489. - if test $? != 0 && test "$rmforce" != yes; then
  36490. + if test "$?" -ne 0 && test "$rmforce" != yes; then
  36491. exit_status=1
  36492. fi
  36493. done
  36494. @@ -4838,40 +6544,72 @@
  36495. if test -n "$old_library"; then
  36496. # Do each command in the old_postuninstall commands.
  36497. - eval cmds=\"$old_postuninstall_cmds\"
  36498. + cmds=$old_postuninstall_cmds
  36499. save_ifs="$IFS"; IFS='~'
  36500. for cmd in $cmds; do
  36501. IFS="$save_ifs"
  36502. + eval cmd=\"$cmd\"
  36503. $show "$cmd"
  36504. $run eval "$cmd"
  36505. - if test $? != 0 && test "$rmforce" != yes; then
  36506. + if test "$?" -ne 0 && test "$rmforce" != yes; then
  36507. exit_status=1
  36508. fi
  36509. done
  36510. IFS="$save_ifs"
  36511. fi
  36512. # FIXME: should reinstall the best remaining shared library.
  36513. - fi
  36514. + ;;
  36515. + esac
  36516. fi
  36517. ;;
  36518. *.lo)
  36519. - if test "$build_old_libs" = yes; then
  36520. - oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
  36521. - rmfiles="$rmfiles $dir/$oldobj"
  36522. + # Possibly a libtool object, so verify it.
  36523. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  36524. +
  36525. + # Read the .lo file
  36526. + . $dir/$name
  36527. +
  36528. + # Add PIC object to the list of files to remove.
  36529. + if test -n "$pic_object" \
  36530. + && test "$pic_object" != none; then
  36531. + rmfiles="$rmfiles $dir/$pic_object"
  36532. + fi
  36533. +
  36534. + # Add non-PIC object to the list of files to remove.
  36535. + if test -n "$non_pic_object" \
  36536. + && test "$non_pic_object" != none; then
  36537. + rmfiles="$rmfiles $dir/$non_pic_object"
  36538. + fi
  36539. fi
  36540. ;;
  36541. *)
  36542. - # Do a test to see if this is a libtool program.
  36543. - if test $mode = clean &&
  36544. - (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  36545. - relink_command=
  36546. - . $dir/$file
  36547. + if test "$mode" = clean ; then
  36548. + noexename=$name
  36549. + case $file in
  36550. + *.exe)
  36551. + file=`$echo $file|${SED} 's,.exe$,,'`
  36552. + noexename=`$echo $name|${SED} 's,.exe$,,'`
  36553. + # $file with .exe has already been added to rmfiles,
  36554. + # add $file without .exe
  36555. + rmfiles="$rmfiles $file"
  36556. + ;;
  36557. + esac
  36558. + # Do a test to see if this is a libtool program.
  36559. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  36560. + relink_command=
  36561. + . $dir/$noexename
  36562. - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  36563. - if test "$fast_install" = yes && test -n "$relink_command"; then
  36564. - rmfiles="$rmfiles $objdir/lt-$name"
  36565. + # note $name still contains .exe if it was in $file originally
  36566. + # as does the version of $file that was added into $rmfiles
  36567. + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  36568. + if test "$fast_install" = yes && test -n "$relink_command"; then
  36569. + rmfiles="$rmfiles $objdir/lt-$name"
  36570. + fi
  36571. + if test "X$noexename" != "X$name" ; then
  36572. + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
  36573. + fi
  36574. fi
  36575. fi
  36576. ;;
  36577. @@ -4879,6 +6617,7 @@
  36578. $show "$rm $rmfiles"
  36579. $run $rm $rmfiles || exit_status=1
  36580. done
  36581. + objdir="$origobjdir"
  36582. # Try to remove the ${objdir}s in the directories where we deleted files
  36583. for dir in $rmdirs; do
  36584. @@ -4894,20 +6633,20 @@
  36585. "")
  36586. $echo "$modename: you must specify a MODE" 1>&2
  36587. $echo "$generic_help" 1>&2
  36588. - exit 1
  36589. + exit $EXIT_FAILURE
  36590. ;;
  36591. esac
  36592. if test -z "$exec_cmd"; then
  36593. $echo "$modename: invalid operation mode \`$mode'" 1>&2
  36594. $echo "$generic_help" 1>&2
  36595. - exit 1
  36596. + exit $EXIT_FAILURE
  36597. fi
  36598. fi # test -z "$show_help"
  36599. if test -n "$exec_cmd"; then
  36600. eval exec $exec_cmd
  36601. - exit 1
  36602. + exit $EXIT_FAILURE
  36603. fi
  36604. # We need to display help for each of the modes.
  36605. @@ -4926,6 +6665,7 @@
  36606. --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  36607. --quiet same as \`--silent'
  36608. --silent don't print informational messages
  36609. + --tag=TAG use configuration variables from tag TAG
  36610. --version print version information
  36611. MODE must be one of the following:
  36612. @@ -4939,8 +6679,10 @@
  36613. uninstall remove libraries from an installed directory
  36614. MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  36615. -a more detailed description of MODE."
  36616. - exit 0
  36617. +a more detailed description of MODE.
  36618. +
  36619. +Report bugs to <[email protected]>."
  36620. + exit $EXIT_SUCCESS
  36621. ;;
  36622. clean)
  36623. @@ -5051,6 +6793,9 @@
  36624. -no-install link a not-installable executable
  36625. -no-undefined declare that a library does not refer to external symbols
  36626. -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  36627. + -objectlist FILE Use a list of object files found in FILE to specify objects
  36628. + -precious-files-regex REGEX
  36629. + don't remove output files matching REGEX
  36630. -release RELEASE specify package release information
  36631. -rpath LIBDIR the created library will eventually be installed in LIBDIR
  36632. -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  36633. @@ -5092,14 +6837,33 @@
  36634. *)
  36635. $echo "$modename: invalid operation mode \`$mode'" 1>&2
  36636. $echo "$help" 1>&2
  36637. - exit 1
  36638. + exit $EXIT_FAILURE
  36639. ;;
  36640. esac
  36641. -echo
  36642. +$echo
  36643. $echo "Try \`$modename --help' for more information about other modes."
  36644. -exit 0
  36645. +exit $?
  36646. +
  36647. +# The TAGs below are defined such that we never get into a situation
  36648. +# in which we disable both kinds of libraries. Given conflicting
  36649. +# choices, we go for a static library, that is the most portable,
  36650. +# since we can't tell whether shared libraries were disabled because
  36651. +# the user asked for that or because the platform doesn't support
  36652. +# them. This is particularly important on AIX, because we don't
  36653. +# support having both static and shared libraries enabled at the same
  36654. +# time on that platform, so we default to a shared-only configuration.
  36655. +# If a disable-shared tag is given, we'll fallback to a static-only
  36656. +# configuration. But we'll never go from static-only to shared-only.
  36657. +
  36658. +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  36659. +disable_libs=shared
  36660. +# ### END LIBTOOL TAG CONFIG: disable-shared
  36661. +
  36662. +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
  36663. +disable_libs=static
  36664. +# ### END LIBTOOL TAG CONFIG: disable-static
  36665. # Local Variables:
  36666. # mode:shell-script
  36667. Index: linux-atm-2.4.1/m4/Makefile.in
  36668. ===================================================================
  36669. --- linux-atm-2.4.1.orig/m4/Makefile.in 2007-10-20 21:45:35.726868386 +0200
  36670. +++ linux-atm-2.4.1/m4/Makefile.in 2007-10-20 21:45:44.303357132 +0200
  36671. @@ -1,6 +1,8 @@
  36672. -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  36673. +# Makefile.in generated by automake 1.9.6 from Makefile.am.
  36674. +# @configure_input@
  36675. -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  36676. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  36677. +# 2003, 2004, 2005 Free Software Foundation, Inc.
  36678. # This Makefile.in is free software; the Free Software Foundation
  36679. # gives unlimited permission to copy and/or distribute it,
  36680. # with or without modifications, as long as this notice is preserved.
  36681. @@ -10,195 +12,316 @@
  36682. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  36683. # PARTICULAR PURPOSE.
  36684. -
  36685. -SHELL = @SHELL@
  36686. -
  36687. +@SET_MAKE@
  36688. srcdir = @srcdir@
  36689. top_srcdir = @top_srcdir@
  36690. VPATH = @srcdir@
  36691. -prefix = @prefix@
  36692. -exec_prefix = @exec_prefix@
  36693. -
  36694. -bindir = @bindir@
  36695. -sbindir = @sbindir@
  36696. -libexecdir = @libexecdir@
  36697. -datadir = @datadir@
  36698. -sysconfdir = @sysconfdir@
  36699. -sharedstatedir = @sharedstatedir@
  36700. -localstatedir = @localstatedir@
  36701. -libdir = @libdir@
  36702. -infodir = @infodir@
  36703. -mandir = @mandir@
  36704. -includedir = @includedir@
  36705. -oldincludedir = /usr/include
  36706. -
  36707. -DESTDIR =
  36708. -
  36709. pkgdatadir = $(datadir)/@PACKAGE@
  36710. pkglibdir = $(libdir)/@PACKAGE@
  36711. pkgincludedir = $(includedir)/@PACKAGE@
  36712. -
  36713. top_builddir = ..
  36714. -
  36715. -ACLOCAL = @ACLOCAL@
  36716. -AUTOCONF = @AUTOCONF@
  36717. -AUTOMAKE = @AUTOMAKE@
  36718. -AUTOHEADER = @AUTOHEADER@
  36719. -
  36720. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  36721. INSTALL = @INSTALL@
  36722. -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
  36723. -INSTALL_DATA = @INSTALL_DATA@
  36724. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  36725. -transform = @program_transform_name@
  36726. -
  36727. +install_sh_DATA = $(install_sh) -c -m 644
  36728. +install_sh_PROGRAM = $(install_sh) -c
  36729. +install_sh_SCRIPT = $(install_sh) -c
  36730. +INSTALL_HEADER = $(INSTALL_DATA)
  36731. +transform = $(program_transform_name)
  36732. NORMAL_INSTALL = :
  36733. PRE_INSTALL = :
  36734. POST_INSTALL = :
  36735. NORMAL_UNINSTALL = :
  36736. PRE_UNINSTALL = :
  36737. POST_UNINSTALL = :
  36738. -build_alias = @build_alias@
  36739. build_triplet = @build@
  36740. -host_alias = @host_alias@
  36741. host_triplet = @host@
  36742. -target_alias = @target_alias@
  36743. target_triplet = @target@
  36744. +subdir = m4
  36745. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  36746. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  36747. +am__aclocal_m4_deps = $(top_srcdir)/configure.in
  36748. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  36749. + $(ACLOCAL_M4)
  36750. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  36751. +CONFIG_HEADER = $(top_builddir)/config.h
  36752. +CONFIG_CLEAN_FILES =
  36753. +SOURCES =
  36754. +DIST_SOURCES =
  36755. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  36756. +ACLOCAL = @ACLOCAL@
  36757. +AMDEP_FALSE = @AMDEP_FALSE@
  36758. +AMDEP_TRUE = @AMDEP_TRUE@
  36759. +AMTAR = @AMTAR@
  36760. AR = @AR@
  36761. -AS = @AS@
  36762. +AUTOCONF = @AUTOCONF@
  36763. +AUTOHEADER = @AUTOHEADER@
  36764. +AUTOMAKE = @AUTOMAKE@
  36765. +AWK = @AWK@
  36766. CC = @CC@
  36767. +CCDEPMODE = @CCDEPMODE@
  36768. +CFLAGS = @CFLAGS@
  36769. +CPP = @CPP@
  36770. +CPPFLAGS = @CPPFLAGS@
  36771. CXX = @CXX@
  36772. CXXCPP = @CXXCPP@
  36773. -DLLTOOL = @DLLTOOL@
  36774. +CXXDEPMODE = @CXXDEPMODE@
  36775. +CXXFLAGS = @CXXFLAGS@
  36776. +CYGPATH_W = @CYGPATH_W@
  36777. +DEFS = @DEFS@
  36778. +DEPDIR = @DEPDIR@
  36779. ECHO = @ECHO@
  36780. +ECHO_C = @ECHO_C@
  36781. +ECHO_N = @ECHO_N@
  36782. +ECHO_T = @ECHO_T@
  36783. EGREP = @EGREP@
  36784. EXEEXT = @EXEEXT@
  36785. F77 = @F77@
  36786. -GCJ = @GCJ@
  36787. -GCJFLAGS = @GCJFLAGS@
  36788. -HAVE_LIB = @HAVE_LIB@
  36789. +FFLAGS = @FFLAGS@
  36790. +GREP = @GREP@
  36791. +INSTALL_DATA = @INSTALL_DATA@
  36792. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  36793. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  36794. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  36795. +LDFLAGS = @LDFLAGS@
  36796. LEX = @LEX@
  36797. -LIB = @LIB@
  36798. +LEXLIB = @LEXLIB@
  36799. +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  36800. +LIBOBJS = @LIBOBJS@
  36801. +LIBS = @LIBS@
  36802. LIBTOOL = @LIBTOOL@
  36803. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  36804. LIBVER_AGE = @LIBVER_AGE@
  36805. LIBVER_CURRENT = @LIBVER_CURRENT@
  36806. LIBVER_REVISION = @LIBVER_REVISION@
  36807. LN_S = @LN_S@
  36808. -LTLIB = @LTLIB@
  36809. +LTLIBOBJS = @LTLIBOBJS@
  36810. MAKEINFO = @MAKEINFO@
  36811. -OBJDUMP = @OBJDUMP@
  36812. OBJEXT = @OBJEXT@
  36813. PACKAGE = @PACKAGE@
  36814. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  36815. +PACKAGE_NAME = @PACKAGE_NAME@
  36816. +PACKAGE_STRING = @PACKAGE_STRING@
  36817. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  36818. +PACKAGE_VERSION = @PACKAGE_VERSION@
  36819. +PATH_SEPARATOR = @PATH_SEPARATOR@
  36820. PERL = @PERL@
  36821. RANLIB = @RANLIB@
  36822. -RC = @RC@
  36823. +SET_MAKE = @SET_MAKE@
  36824. +SHELL = @SHELL@
  36825. STRIP = @STRIP@
  36826. VERSION = @VERSION@
  36827. YACC = @YACC@
  36828. -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  36829. -CONFIG_HEADER = ../config.h
  36830. -CONFIG_CLEAN_FILES =
  36831. -DIST_COMMON = Makefile.am Makefile.in
  36832. -
  36833. -
  36834. -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  36835. +YFLAGS = @YFLAGS@
  36836. +ac_ct_CC = @ac_ct_CC@
  36837. +ac_ct_CXX = @ac_ct_CXX@
  36838. +ac_ct_F77 = @ac_ct_F77@
  36839. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  36840. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  36841. +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  36842. +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  36843. +am__include = @am__include@
  36844. +am__leading_dot = @am__leading_dot@
  36845. +am__quote = @am__quote@
  36846. +am__tar = @am__tar@
  36847. +am__untar = @am__untar@
  36848. +bindir = @bindir@
  36849. +build = @build@
  36850. +build_alias = @build_alias@
  36851. +build_cpu = @build_cpu@
  36852. +build_os = @build_os@
  36853. +build_vendor = @build_vendor@
  36854. +datadir = @datadir@
  36855. +datarootdir = @datarootdir@
  36856. +docdir = @docdir@
  36857. +dvidir = @dvidir@
  36858. +exec_prefix = @exec_prefix@
  36859. +host = @host@
  36860. +host_alias = @host_alias@
  36861. +host_cpu = @host_cpu@
  36862. +host_os = @host_os@
  36863. +host_vendor = @host_vendor@
  36864. +htmldir = @htmldir@
  36865. +includedir = @includedir@
  36866. +infodir = @infodir@
  36867. +install_sh = @install_sh@
  36868. +libdir = @libdir@
  36869. +libexecdir = @libexecdir@
  36870. +localedir = @localedir@
  36871. +localstatedir = @localstatedir@
  36872. +mandir = @mandir@
  36873. +mkdir_p = @mkdir_p@
  36874. +oldincludedir = @oldincludedir@
  36875. +pdfdir = @pdfdir@
  36876. +prefix = @prefix@
  36877. +program_transform_name = @program_transform_name@
  36878. +psdir = @psdir@
  36879. +sbindir = @sbindir@
  36880. +sharedstatedir = @sharedstatedir@
  36881. +sysconfdir = @sysconfdir@
  36882. +target = @target@
  36883. +target_alias = @target_alias@
  36884. +target_cpu = @target_cpu@
  36885. +target_os = @target_os@
  36886. +target_vendor = @target_vendor@
  36887. +all: all-am
  36888. -TAR = tar
  36889. -GZIP_ENV = --best
  36890. -all: all-redirect
  36891. .SUFFIXES:
  36892. -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  36893. - cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile
  36894. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  36895. + @for dep in $?; do \
  36896. + case '$(am__configure_deps)' in \
  36897. + *$$dep*) \
  36898. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  36899. + && exit 0; \
  36900. + exit 1;; \
  36901. + esac; \
  36902. + done; \
  36903. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
  36904. + cd $(top_srcdir) && \
  36905. + $(AUTOMAKE) --gnu m4/Makefile
  36906. +.PRECIOUS: Makefile
  36907. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  36908. + @case '$?' in \
  36909. + *config.status*) \
  36910. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  36911. + *) \
  36912. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  36913. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  36914. + esac;
  36915. +
  36916. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  36917. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  36918. +
  36919. +$(top_srcdir)/configure: $(am__configure_deps)
  36920. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  36921. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  36922. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  36923. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  36924. - cd $(top_builddir) \
  36925. - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  36926. +mostlyclean-libtool:
  36927. + -rm -f *.lo
  36928. +clean-libtool:
  36929. + -rm -rf .libs _libs
  36930. +
  36931. +distclean-libtool:
  36932. + -rm -f libtool
  36933. +uninstall-info-am:
  36934. tags: TAGS
  36935. TAGS:
  36936. +ctags: CTAGS
  36937. +CTAGS:
  36938. -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  36939. -
  36940. -subdir = m4
  36941. distdir: $(DISTFILES)
  36942. - here=`cd $(top_builddir) && pwd`; \
  36943. - top_distdir=`cd $(top_distdir) && pwd`; \
  36944. - distdir=`cd $(distdir) && pwd`; \
  36945. - cd $(top_srcdir) \
  36946. - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu m4/Makefile
  36947. - @for file in $(DISTFILES); do \
  36948. - d=$(srcdir); \
  36949. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  36950. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  36951. + list='$(DISTFILES)'; for file in $$list; do \
  36952. + case $$file in \
  36953. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  36954. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  36955. + esac; \
  36956. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  36957. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  36958. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  36959. + dir="/$$dir"; \
  36960. + $(mkdir_p) "$(distdir)$$dir"; \
  36961. + else \
  36962. + dir=''; \
  36963. + fi; \
  36964. if test -d $$d/$$file; then \
  36965. - cp -pr $$d/$$file $(distdir)/$$file; \
  36966. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  36967. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  36968. + fi; \
  36969. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  36970. else \
  36971. test -f $(distdir)/$$file \
  36972. - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  36973. - || cp -p $$d/$$file $(distdir)/$$file || :; \
  36974. + || cp -p $$d/$$file $(distdir)/$$file \
  36975. + || exit 1; \
  36976. fi; \
  36977. done
  36978. -info-am:
  36979. -info: info-am
  36980. -dvi-am:
  36981. -dvi: dvi-am
  36982. check-am: all-am
  36983. check: check-am
  36984. -installcheck-am:
  36985. -installcheck: installcheck-am
  36986. -install-exec-am:
  36987. +all-am: Makefile
  36988. +installdirs:
  36989. +install: install-am
  36990. install-exec: install-exec-am
  36991. -
  36992. -install-data-am:
  36993. install-data: install-data-am
  36994. +uninstall: uninstall-am
  36995. install-am: all-am
  36996. @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  36997. -install: install-am
  36998. -uninstall-am:
  36999. -uninstall: uninstall-am
  37000. -all-am: Makefile
  37001. -all-redirect: all-am
  37002. -install-strip:
  37003. - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  37004. -installdirs:
  37005. -
  37006. +installcheck: installcheck-am
  37007. +install-strip:
  37008. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  37009. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  37010. + `test -z '$(STRIP)' || \
  37011. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  37012. mostlyclean-generic:
  37013. clean-generic:
  37014. distclean-generic:
  37015. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  37016. - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  37017. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  37018. maintainer-clean-generic:
  37019. -mostlyclean-am: mostlyclean-generic
  37020. + @echo "This command is intended for maintainers to use"
  37021. + @echo "it deletes files that may require special tools to rebuild."
  37022. +clean: clean-am
  37023. -mostlyclean: mostlyclean-am
  37024. +clean-am: clean-generic clean-libtool mostlyclean-am
  37025. -clean-am: clean-generic mostlyclean-am
  37026. +distclean: distclean-am
  37027. + -rm -f Makefile
  37028. +distclean-am: clean-am distclean-generic distclean-libtool
  37029. -clean: clean-am
  37030. +dvi: dvi-am
  37031. -distclean-am: distclean-generic clean-am
  37032. - -rm -f libtool
  37033. +dvi-am:
  37034. -distclean: distclean-am
  37035. +html: html-am
  37036. -maintainer-clean-am: maintainer-clean-generic distclean-am
  37037. - @echo "This command is intended for maintainers to use;"
  37038. - @echo "it deletes files that may require special tools to rebuild."
  37039. +info: info-am
  37040. +
  37041. +info-am:
  37042. +
  37043. +install-data-am:
  37044. +
  37045. +install-exec-am:
  37046. +
  37047. +install-info: install-info-am
  37048. +
  37049. +install-man:
  37050. +
  37051. +installcheck-am:
  37052. maintainer-clean: maintainer-clean-am
  37053. + -rm -f Makefile
  37054. +maintainer-clean-am: distclean-am maintainer-clean-generic
  37055. +
  37056. +mostlyclean: mostlyclean-am
  37057. +
  37058. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  37059. +
  37060. +pdf: pdf-am
  37061. +
  37062. +pdf-am:
  37063. +
  37064. +ps: ps-am
  37065. +
  37066. +ps-am:
  37067. -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
  37068. -installcheck-am installcheck install-exec-am install-exec \
  37069. -install-data-am install-data install-am install uninstall-am uninstall \
  37070. -all-redirect all-am all installdirs mostlyclean-generic \
  37071. -distclean-generic clean-generic maintainer-clean-generic clean \
  37072. -mostlyclean distclean maintainer-clean
  37073. +uninstall-am: uninstall-info-am
  37074. +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
  37075. + distclean distclean-generic distclean-libtool distdir dvi \
  37076. + dvi-am html html-am info info-am install install-am \
  37077. + install-data install-data-am install-exec install-exec-am \
  37078. + install-info install-info-am install-man install-strip \
  37079. + installcheck installcheck-am installdirs maintainer-clean \
  37080. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  37081. + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
  37082. + uninstall-info-am
  37083. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  37084. # Otherwise a system limit (for SysV at least) may be exceeded.
  37085. Index: linux-atm-2.4.1/Makefile.in
  37086. ===================================================================
  37087. --- linux-atm-2.4.1.orig/Makefile.in 2007-10-20 21:45:35.730868614 +0200
  37088. +++ linux-atm-2.4.1/Makefile.in 2007-10-20 21:45:44.307357360 +0200
  37089. @@ -1,6 +1,8 @@
  37090. -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  37091. +# Makefile.in generated by automake 1.9.6 from Makefile.am.
  37092. +# @configure_input@
  37093. -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  37094. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  37095. +# 2003, 2004, 2005 Free Software Foundation, Inc.
  37096. # This Makefile.in is free software; the Free Software Foundation
  37097. # gives unlimited permission to copy and/or distribute it,
  37098. # with or without modifications, as long as this notice is preserved.
  37099. @@ -10,153 +12,248 @@
  37100. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  37101. # PARTICULAR PURPOSE.
  37102. -
  37103. -SHELL = @SHELL@
  37104. -
  37105. +@SET_MAKE@
  37106. srcdir = @srcdir@
  37107. top_srcdir = @top_srcdir@
  37108. VPATH = @srcdir@
  37109. -prefix = @prefix@
  37110. -exec_prefix = @exec_prefix@
  37111. -
  37112. -bindir = @bindir@
  37113. -sbindir = @sbindir@
  37114. -libexecdir = @libexecdir@
  37115. -datadir = @datadir@
  37116. -sysconfdir = @sysconfdir@
  37117. -sharedstatedir = @sharedstatedir@
  37118. -localstatedir = @localstatedir@
  37119. -libdir = @libdir@
  37120. -infodir = @infodir@
  37121. -mandir = @mandir@
  37122. -includedir = @includedir@
  37123. -oldincludedir = /usr/include
  37124. -
  37125. -DESTDIR =
  37126. -
  37127. pkgdatadir = $(datadir)/@PACKAGE@
  37128. pkglibdir = $(libdir)/@PACKAGE@
  37129. pkgincludedir = $(includedir)/@PACKAGE@
  37130. -
  37131. top_builddir = .
  37132. -
  37133. -ACLOCAL = @ACLOCAL@
  37134. -AUTOCONF = @AUTOCONF@
  37135. -AUTOMAKE = @AUTOMAKE@
  37136. -AUTOHEADER = @AUTOHEADER@
  37137. -
  37138. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  37139. INSTALL = @INSTALL@
  37140. -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
  37141. -INSTALL_DATA = @INSTALL_DATA@
  37142. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  37143. -transform = @program_transform_name@
  37144. -
  37145. +install_sh_DATA = $(install_sh) -c -m 644
  37146. +install_sh_PROGRAM = $(install_sh) -c
  37147. +install_sh_SCRIPT = $(install_sh) -c
  37148. +INSTALL_HEADER = $(INSTALL_DATA)
  37149. +transform = $(program_transform_name)
  37150. NORMAL_INSTALL = :
  37151. PRE_INSTALL = :
  37152. POST_INSTALL = :
  37153. NORMAL_UNINSTALL = :
  37154. PRE_UNINSTALL = :
  37155. POST_UNINSTALL = :
  37156. -build_alias = @build_alias@
  37157. build_triplet = @build@
  37158. -host_alias = @host_alias@
  37159. host_triplet = @host@
  37160. -target_alias = @target_alias@
  37161. target_triplet = @target@
  37162. +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  37163. + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
  37164. + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
  37165. + THANKS acconfig.h config.guess config.sub depcomp install-sh \
  37166. + ltmain.sh missing mkinstalldirs
  37167. +subdir = .
  37168. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  37169. +am__aclocal_m4_deps = $(top_srcdir)/configure.in
  37170. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  37171. + $(ACLOCAL_M4)
  37172. +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  37173. + configure.lineno configure.status.lineno
  37174. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  37175. +CONFIG_HEADER = config.h
  37176. +CONFIG_CLEAN_FILES =
  37177. +SOURCES =
  37178. +DIST_SOURCES =
  37179. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  37180. + html-recursive info-recursive install-data-recursive \
  37181. + install-exec-recursive install-info-recursive \
  37182. + install-recursive installcheck-recursive installdirs-recursive \
  37183. + pdf-recursive ps-recursive uninstall-info-recursive \
  37184. + uninstall-recursive
  37185. +ETAGS = etags
  37186. +CTAGS = ctags
  37187. +DIST_SUBDIRS = $(SUBDIRS)
  37188. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  37189. +distdir = $(PACKAGE)-$(VERSION)
  37190. +top_distdir = $(distdir)
  37191. +am__remove_distdir = \
  37192. + { test ! -d $(distdir) \
  37193. + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  37194. + && rm -fr $(distdir); }; }
  37195. +DIST_ARCHIVES = $(distdir).tar.gz
  37196. +GZIP_ENV = --best
  37197. +distuninstallcheck_listfiles = find . -type f -print
  37198. +distcleancheck_listfiles = find . -type f -print
  37199. +ACLOCAL = @ACLOCAL@
  37200. +AMDEP_FALSE = @AMDEP_FALSE@
  37201. +AMDEP_TRUE = @AMDEP_TRUE@
  37202. +AMTAR = @AMTAR@
  37203. AR = @AR@
  37204. -AS = @AS@
  37205. +AUTOCONF = @AUTOCONF@
  37206. +AUTOHEADER = @AUTOHEADER@
  37207. +AUTOMAKE = @AUTOMAKE@
  37208. +AWK = @AWK@
  37209. CC = @CC@
  37210. +CCDEPMODE = @CCDEPMODE@
  37211. +CFLAGS = @CFLAGS@
  37212. +CPP = @CPP@
  37213. +CPPFLAGS = @CPPFLAGS@
  37214. CXX = @CXX@
  37215. CXXCPP = @CXXCPP@
  37216. -DLLTOOL = @DLLTOOL@
  37217. +CXXDEPMODE = @CXXDEPMODE@
  37218. +CXXFLAGS = @CXXFLAGS@
  37219. +CYGPATH_W = @CYGPATH_W@
  37220. +DEFS = @DEFS@
  37221. +DEPDIR = @DEPDIR@
  37222. ECHO = @ECHO@
  37223. +ECHO_C = @ECHO_C@
  37224. +ECHO_N = @ECHO_N@
  37225. +ECHO_T = @ECHO_T@
  37226. EGREP = @EGREP@
  37227. EXEEXT = @EXEEXT@
  37228. F77 = @F77@
  37229. -GCJ = @GCJ@
  37230. -GCJFLAGS = @GCJFLAGS@
  37231. -HAVE_LIB = @HAVE_LIB@
  37232. +FFLAGS = @FFLAGS@
  37233. +GREP = @GREP@
  37234. +INSTALL_DATA = @INSTALL_DATA@
  37235. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  37236. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  37237. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  37238. +LDFLAGS = @LDFLAGS@
  37239. LEX = @LEX@
  37240. -LIB = @LIB@
  37241. +LEXLIB = @LEXLIB@
  37242. +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  37243. +LIBOBJS = @LIBOBJS@
  37244. +LIBS = @LIBS@
  37245. LIBTOOL = @LIBTOOL@
  37246. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  37247. LIBVER_AGE = @LIBVER_AGE@
  37248. LIBVER_CURRENT = @LIBVER_CURRENT@
  37249. LIBVER_REVISION = @LIBVER_REVISION@
  37250. LN_S = @LN_S@
  37251. -LTLIB = @LTLIB@
  37252. +LTLIBOBJS = @LTLIBOBJS@
  37253. MAKEINFO = @MAKEINFO@
  37254. -OBJDUMP = @OBJDUMP@
  37255. OBJEXT = @OBJEXT@
  37256. PACKAGE = @PACKAGE@
  37257. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  37258. +PACKAGE_NAME = @PACKAGE_NAME@
  37259. +PACKAGE_STRING = @PACKAGE_STRING@
  37260. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  37261. +PACKAGE_VERSION = @PACKAGE_VERSION@
  37262. +PATH_SEPARATOR = @PATH_SEPARATOR@
  37263. PERL = @PERL@
  37264. RANLIB = @RANLIB@
  37265. -RC = @RC@
  37266. +SET_MAKE = @SET_MAKE@
  37267. +SHELL = @SHELL@
  37268. STRIP = @STRIP@
  37269. VERSION = @VERSION@
  37270. YACC = @YACC@
  37271. -
  37272. +YFLAGS = @YFLAGS@
  37273. +ac_ct_CC = @ac_ct_CC@
  37274. +ac_ct_CXX = @ac_ct_CXX@
  37275. +ac_ct_F77 = @ac_ct_F77@
  37276. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  37277. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  37278. +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  37279. +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  37280. +am__include = @am__include@
  37281. +am__leading_dot = @am__leading_dot@
  37282. +am__quote = @am__quote@
  37283. +am__tar = @am__tar@
  37284. +am__untar = @am__untar@
  37285. +bindir = @bindir@
  37286. +build = @build@
  37287. +build_alias = @build_alias@
  37288. +build_cpu = @build_cpu@
  37289. +build_os = @build_os@
  37290. +build_vendor = @build_vendor@
  37291. +datadir = @datadir@
  37292. +datarootdir = @datarootdir@
  37293. +docdir = @docdir@
  37294. +dvidir = @dvidir@
  37295. +exec_prefix = @exec_prefix@
  37296. +host = @host@
  37297. +host_alias = @host_alias@
  37298. +host_cpu = @host_cpu@
  37299. +host_os = @host_os@
  37300. +host_vendor = @host_vendor@
  37301. +htmldir = @htmldir@
  37302. +includedir = @includedir@
  37303. +infodir = @infodir@
  37304. +install_sh = @install_sh@
  37305. +libdir = @libdir@
  37306. +libexecdir = @libexecdir@
  37307. +localedir = @localedir@
  37308. +localstatedir = @localstatedir@
  37309. +mandir = @mandir@
  37310. +mkdir_p = @mkdir_p@
  37311. +oldincludedir = @oldincludedir@
  37312. +pdfdir = @pdfdir@
  37313. +prefix = @prefix@
  37314. +program_transform_name = @program_transform_name@
  37315. +psdir = @psdir@
  37316. +sbindir = @sbindir@
  37317. +sharedstatedir = @sharedstatedir@
  37318. +sysconfdir = @sysconfdir@
  37319. +target = @target@
  37320. +target_alias = @target_alias@
  37321. +target_cpu = @target_cpu@
  37322. +target_os = @target_os@
  37323. +target_vendor = @target_vendor@
  37324. SUBDIRS = m4 src doc
  37325. -
  37326. EXTRA_DIST = COPYING.GPL COPYING.LGPL BUGS
  37327. -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  37328. -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  37329. -CONFIG_HEADER = config.h
  37330. -CONFIG_CLEAN_FILES =
  37331. -DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
  37332. -Makefile.am Makefile.in NEWS THANKS acconfig.h aclocal.m4 config.guess \
  37333. -config.h.in config.sub configure configure.in install-sh ltmain.sh \
  37334. -missing mkinstalldirs
  37335. -
  37336. -
  37337. -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  37338. +all: config.h
  37339. + $(MAKE) $(AM_MAKEFLAGS) all-recursive
  37340. -TAR = tar
  37341. -GZIP_ENV = --best
  37342. -all: all-redirect
  37343. .SUFFIXES:
  37344. -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  37345. - cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
  37346. -
  37347. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  37348. - cd $(top_builddir) \
  37349. - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  37350. -
  37351. -$(ACLOCAL_M4): configure.in
  37352. - cd $(srcdir) && $(ACLOCAL)
  37353. +am--refresh:
  37354. + @:
  37355. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  37356. + @for dep in $?; do \
  37357. + case '$(am__configure_deps)' in \
  37358. + *$$dep*) \
  37359. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  37360. + cd $(srcdir) && $(AUTOMAKE) --gnu \
  37361. + && exit 0; \
  37362. + exit 1;; \
  37363. + esac; \
  37364. + done; \
  37365. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  37366. + cd $(top_srcdir) && \
  37367. + $(AUTOMAKE) --gnu Makefile
  37368. +.PRECIOUS: Makefile
  37369. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  37370. + @case '$?' in \
  37371. + *config.status*) \
  37372. + echo ' $(SHELL) ./config.status'; \
  37373. + $(SHELL) ./config.status;; \
  37374. + *) \
  37375. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  37376. + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  37377. + esac;
  37378. -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  37379. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  37380. $(SHELL) ./config.status --recheck
  37381. -$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
  37382. +
  37383. +$(top_srcdir)/configure: $(am__configure_deps)
  37384. cd $(srcdir) && $(AUTOCONF)
  37385. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  37386. + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  37387. -config.h: stamp-h
  37388. +config.h: stamp-h1
  37389. @if test ! -f $@; then \
  37390. - rm -f stamp-h; \
  37391. - $(MAKE) stamp-h; \
  37392. + rm -f stamp-h1; \
  37393. + $(MAKE) stamp-h1; \
  37394. else :; fi
  37395. -stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
  37396. - cd $(top_builddir) \
  37397. - && CONFIG_FILES= CONFIG_HEADERS=config.h \
  37398. - $(SHELL) ./config.status
  37399. - @echo timestamp > stamp-h 2> /dev/null
  37400. -$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
  37401. - @if test ! -f $@; then \
  37402. - rm -f $(srcdir)/stamp-h.in; \
  37403. - $(MAKE) $(srcdir)/stamp-h.in; \
  37404. - else :; fi
  37405. -$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
  37406. +
  37407. +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  37408. + @rm -f stamp-h1
  37409. + cd $(top_builddir) && $(SHELL) ./config.status config.h
  37410. +$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h
  37411. cd $(top_srcdir) && $(AUTOHEADER)
  37412. - @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
  37413. + rm -f stamp-h1
  37414. + touch $@
  37415. -mostlyclean-hdr:
  37416. +distclean-hdr:
  37417. + -rm -f config.h stamp-h1
  37418. -clean-hdr:
  37419. +mostlyclean-libtool:
  37420. + -rm -f *.lo
  37421. -distclean-hdr:
  37422. - -rm -f config.h
  37423. +clean-libtool:
  37424. + -rm -rf .libs _libs
  37425. -maintainer-clean-hdr:
  37426. +distclean-libtool:
  37427. + -rm -f libtool
  37428. +uninstall-info-am:
  37429. # This directory's subdirectories are mostly independent; you can cd
  37430. # into them and run `make' without going through this Makefile.
  37431. @@ -164,13 +261,14 @@
  37432. # (1) if the variable is set in `config.status', edit `config.status'
  37433. # (which will cause the Makefiles to be regenerated when you run `make');
  37434. # (2) otherwise, pass the desired values on the `make' command line.
  37435. -
  37436. -@SET_MAKE@
  37437. -
  37438. -all-recursive install-data-recursive install-exec-recursive \
  37439. -installdirs-recursive install-recursive uninstall-recursive \
  37440. -check-recursive installcheck-recursive info-recursive dvi-recursive:
  37441. - @set fnord $(MAKEFLAGS); amf=$$2; \
  37442. +$(RECURSIVE_TARGETS):
  37443. + @failcom='exit 1'; \
  37444. + for f in x $$MAKEFLAGS; do \
  37445. + case $$f in \
  37446. + *=* | --[!k]*);; \
  37447. + *k*) failcom='fail=yes';; \
  37448. + esac; \
  37449. + done; \
  37450. dot_seen=no; \
  37451. target=`echo $@ | sed s/-recursive//`; \
  37452. list='$(SUBDIRS)'; for subdir in $$list; do \
  37453. @@ -182,7 +280,7 @@
  37454. local_target="$$target"; \
  37455. fi; \
  37456. (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  37457. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  37458. + || eval $$failcom; \
  37459. done; \
  37460. if test "$$dot_seen" = "no"; then \
  37461. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  37462. @@ -190,13 +288,24 @@
  37463. mostlyclean-recursive clean-recursive distclean-recursive \
  37464. maintainer-clean-recursive:
  37465. - @set fnord $(MAKEFLAGS); amf=$$2; \
  37466. + @failcom='exit 1'; \
  37467. + for f in x $$MAKEFLAGS; do \
  37468. + case $$f in \
  37469. + *=* | --[!k]*);; \
  37470. + *k*) failcom='fail=yes';; \
  37471. + esac; \
  37472. + done; \
  37473. dot_seen=no; \
  37474. - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
  37475. - rev="$$subdir $$rev"; \
  37476. - test "$$subdir" != "." || dot_seen=yes; \
  37477. + case "$@" in \
  37478. + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  37479. + *) list='$(SUBDIRS)' ;; \
  37480. + esac; \
  37481. + rev=''; for subdir in $$list; do \
  37482. + if test "$$subdir" = "."; then :; else \
  37483. + rev="$$subdir $$rev"; \
  37484. + fi; \
  37485. done; \
  37486. - test "$$dot_seen" = "no" && rev=". $$rev"; \
  37487. + rev="$$rev ."; \
  37488. target=`echo $@ | sed s/-recursive//`; \
  37489. for subdir in $$rev; do \
  37490. echo "Making $$target in $$subdir"; \
  37491. @@ -206,183 +315,314 @@
  37492. local_target="$$target"; \
  37493. fi; \
  37494. (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  37495. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  37496. + || eval $$failcom; \
  37497. done && test -z "$$fail"
  37498. tags-recursive:
  37499. list='$(SUBDIRS)'; for subdir in $$list; do \
  37500. test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  37501. done
  37502. +ctags-recursive:
  37503. + list='$(SUBDIRS)'; for subdir in $$list; do \
  37504. + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  37505. + done
  37506. -tags: TAGS
  37507. -
  37508. -ID: $(HEADERS) $(SOURCES) $(LISP)
  37509. - list='$(SOURCES) $(HEADERS)'; \
  37510. - unique=`for i in $$list; do echo $$i; done | \
  37511. - awk ' { files[$$0] = 1; } \
  37512. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  37513. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  37514. + unique=`for i in $$list; do \
  37515. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  37516. + done | \
  37517. + $(AWK) ' { files[$$0] = 1; } \
  37518. END { for (i in files) print i; }'`; \
  37519. - here=`pwd` && cd $(srcdir) \
  37520. - && mkid -f$$here/ID $$unique $(LISP)
  37521. + mkid -fID $$unique
  37522. +tags: TAGS
  37523. -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
  37524. +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  37525. + $(TAGS_FILES) $(LISP)
  37526. tags=; \
  37527. here=`pwd`; \
  37528. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  37529. + include_option=--etags-include; \
  37530. + empty_fix=.; \
  37531. + else \
  37532. + include_option=--include; \
  37533. + empty_fix=; \
  37534. + fi; \
  37535. list='$(SUBDIRS)'; for subdir in $$list; do \
  37536. - if test "$$subdir" = .; then :; else \
  37537. - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
  37538. - fi; \
  37539. + if test "$$subdir" = .; then :; else \
  37540. + test ! -f $$subdir/TAGS || \
  37541. + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  37542. + fi; \
  37543. done; \
  37544. - list='$(SOURCES) $(HEADERS)'; \
  37545. - unique=`for i in $$list; do echo $$i; done | \
  37546. - awk ' { files[$$0] = 1; } \
  37547. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  37548. + unique=`for i in $$list; do \
  37549. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  37550. + done | \
  37551. + $(AWK) ' { files[$$0] = 1; } \
  37552. END { for (i in files) print i; }'`; \
  37553. - test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
  37554. - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
  37555. -
  37556. -mostlyclean-tags:
  37557. -
  37558. -clean-tags:
  37559. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  37560. + test -n "$$unique" || unique=$$empty_fix; \
  37561. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  37562. + $$tags $$unique; \
  37563. + fi
  37564. +ctags: CTAGS
  37565. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  37566. + $(TAGS_FILES) $(LISP)
  37567. + tags=; \
  37568. + here=`pwd`; \
  37569. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  37570. + unique=`for i in $$list; do \
  37571. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  37572. + done | \
  37573. + $(AWK) ' { files[$$0] = 1; } \
  37574. + END { for (i in files) print i; }'`; \
  37575. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  37576. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  37577. + $$tags $$unique
  37578. +
  37579. +GTAGS:
  37580. + here=`$(am__cd) $(top_builddir) && pwd` \
  37581. + && cd $(top_srcdir) \
  37582. + && gtags -i $(GTAGS_ARGS) $$here
  37583. distclean-tags:
  37584. - -rm -f TAGS ID
  37585. -
  37586. -maintainer-clean-tags:
  37587. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  37588. -distdir = $(PACKAGE)-$(VERSION)
  37589. -top_distdir = $(distdir)
  37590. -
  37591. -# This target untars the dist file and tries a VPATH configuration. Then
  37592. -# it guarantees that the distribution is self-contained by making another
  37593. -# tarfile.
  37594. -distcheck: dist
  37595. - -rm -rf $(distdir)
  37596. - GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
  37597. - mkdir $(distdir)/=build
  37598. - mkdir $(distdir)/=inst
  37599. - dc_install_base=`cd $(distdir)/=inst && pwd`; \
  37600. - cd $(distdir)/=build \
  37601. - && ../configure --srcdir=.. --prefix=$$dc_install_base \
  37602. - && $(MAKE) $(AM_MAKEFLAGS) \
  37603. - && $(MAKE) $(AM_MAKEFLAGS) dvi \
  37604. - && $(MAKE) $(AM_MAKEFLAGS) check \
  37605. - && $(MAKE) $(AM_MAKEFLAGS) install \
  37606. - && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  37607. - && $(MAKE) $(AM_MAKEFLAGS) dist
  37608. - -rm -rf $(distdir)
  37609. - @banner="$(distdir).tar.gz is ready for distribution"; \
  37610. - dashes=`echo "$$banner" | sed s/./=/g`; \
  37611. - echo "$$dashes"; \
  37612. - echo "$$banner"; \
  37613. - echo "$$dashes"
  37614. -dist: distdir
  37615. - -chmod -R a+r $(distdir)
  37616. - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
  37617. - -rm -rf $(distdir)
  37618. -dist-all: distdir
  37619. - -chmod -R a+r $(distdir)
  37620. - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
  37621. - -rm -rf $(distdir)
  37622. distdir: $(DISTFILES)
  37623. - -rm -rf $(distdir)
  37624. + $(am__remove_distdir)
  37625. mkdir $(distdir)
  37626. - -chmod 777 $(distdir)
  37627. - here=`cd $(top_builddir) && pwd`; \
  37628. - top_distdir=`cd $(distdir) && pwd`; \
  37629. - distdir=`cd $(distdir) && pwd`; \
  37630. - cd $(top_srcdir) \
  37631. - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
  37632. - @for file in $(DISTFILES); do \
  37633. - d=$(srcdir); \
  37634. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  37635. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  37636. + list='$(DISTFILES)'; for file in $$list; do \
  37637. + case $$file in \
  37638. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  37639. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  37640. + esac; \
  37641. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  37642. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  37643. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  37644. + dir="/$$dir"; \
  37645. + $(mkdir_p) "$(distdir)$$dir"; \
  37646. + else \
  37647. + dir=''; \
  37648. + fi; \
  37649. if test -d $$d/$$file; then \
  37650. - cp -pr $$d/$$file $(distdir)/$$file; \
  37651. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  37652. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  37653. + fi; \
  37654. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  37655. else \
  37656. test -f $(distdir)/$$file \
  37657. - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  37658. - || cp -p $$d/$$file $(distdir)/$$file || :; \
  37659. + || cp -p $$d/$$file $(distdir)/$$file \
  37660. + || exit 1; \
  37661. fi; \
  37662. done
  37663. - for subdir in $(SUBDIRS); do \
  37664. + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  37665. if test "$$subdir" = .; then :; else \
  37666. - test -d $(distdir)/$$subdir \
  37667. - || mkdir $(distdir)/$$subdir \
  37668. + test -d "$(distdir)/$$subdir" \
  37669. + || $(mkdir_p) "$(distdir)/$$subdir" \
  37670. || exit 1; \
  37671. - chmod 777 $(distdir)/$$subdir; \
  37672. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
  37673. + distdir=`$(am__cd) $(distdir) && pwd`; \
  37674. + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  37675. + (cd $$subdir && \
  37676. + $(MAKE) $(AM_MAKEFLAGS) \
  37677. + top_distdir="$$top_distdir" \
  37678. + distdir="$$distdir/$$subdir" \
  37679. + distdir) \
  37680. || exit 1; \
  37681. fi; \
  37682. done
  37683. -info-am:
  37684. -info: info-recursive
  37685. -dvi-am:
  37686. -dvi: dvi-recursive
  37687. + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  37688. + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  37689. + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  37690. + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  37691. + || chmod -R a+r $(distdir)
  37692. +dist-gzip: distdir
  37693. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  37694. + $(am__remove_distdir)
  37695. +
  37696. +dist-bzip2: distdir
  37697. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  37698. + $(am__remove_distdir)
  37699. +
  37700. +dist-tarZ: distdir
  37701. + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  37702. + $(am__remove_distdir)
  37703. +
  37704. +dist-shar: distdir
  37705. + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
  37706. + $(am__remove_distdir)
  37707. +
  37708. +dist-zip: distdir
  37709. + -rm -f $(distdir).zip
  37710. + zip -rq $(distdir).zip $(distdir)
  37711. + $(am__remove_distdir)
  37712. +
  37713. +dist dist-all: distdir
  37714. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  37715. + $(am__remove_distdir)
  37716. +
  37717. +# This target untars the dist file and tries a VPATH configuration. Then
  37718. +# it guarantees that the distribution is self-contained by making another
  37719. +# tarfile.
  37720. +distcheck: dist
  37721. + case '$(DIST_ARCHIVES)' in \
  37722. + *.tar.gz*) \
  37723. + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  37724. + *.tar.bz2*) \
  37725. + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  37726. + *.tar.Z*) \
  37727. + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  37728. + *.shar.gz*) \
  37729. + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  37730. + *.zip*) \
  37731. + unzip $(distdir).zip ;;\
  37732. + esac
  37733. + chmod -R a-w $(distdir); chmod a+w $(distdir)
  37734. + mkdir $(distdir)/_build
  37735. + mkdir $(distdir)/_inst
  37736. + chmod a-w $(distdir)
  37737. + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  37738. + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  37739. + && cd $(distdir)/_build \
  37740. + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  37741. + $(DISTCHECK_CONFIGURE_FLAGS) \
  37742. + && $(MAKE) $(AM_MAKEFLAGS) \
  37743. + && $(MAKE) $(AM_MAKEFLAGS) dvi \
  37744. + && $(MAKE) $(AM_MAKEFLAGS) check \
  37745. + && $(MAKE) $(AM_MAKEFLAGS) install \
  37746. + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  37747. + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  37748. + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
  37749. + distuninstallcheck \
  37750. + && chmod -R a-w "$$dc_install_base" \
  37751. + && ({ \
  37752. + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  37753. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  37754. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  37755. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  37756. + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
  37757. + } || { rm -rf "$$dc_destdir"; exit 1; }) \
  37758. + && rm -rf "$$dc_destdir" \
  37759. + && $(MAKE) $(AM_MAKEFLAGS) dist \
  37760. + && rm -rf $(DIST_ARCHIVES) \
  37761. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  37762. + $(am__remove_distdir)
  37763. + @(echo "$(distdir) archives ready for distribution: "; \
  37764. + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  37765. + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  37766. +distuninstallcheck:
  37767. + @cd $(distuninstallcheck_dir) \
  37768. + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  37769. + || { echo "ERROR: files left after uninstall:" ; \
  37770. + if test -n "$(DESTDIR)"; then \
  37771. + echo " (check DESTDIR support)"; \
  37772. + fi ; \
  37773. + $(distuninstallcheck_listfiles) ; \
  37774. + exit 1; } >&2
  37775. +distcleancheck: distclean
  37776. + @if test '$(srcdir)' = . ; then \
  37777. + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
  37778. + exit 1 ; \
  37779. + fi
  37780. + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  37781. + || { echo "ERROR: files left in build directory after distclean:" ; \
  37782. + $(distcleancheck_listfiles) ; \
  37783. + exit 1; } >&2
  37784. check-am: all-am
  37785. check: check-recursive
  37786. -installcheck-am:
  37787. -installcheck: installcheck-recursive
  37788. -all-recursive-am: config.h
  37789. - $(MAKE) $(AM_MAKEFLAGS) all-recursive
  37790. -
  37791. -install-exec-am:
  37792. +all-am: Makefile config.h
  37793. +installdirs: installdirs-recursive
  37794. +installdirs-am:
  37795. +install: install-recursive
  37796. install-exec: install-exec-recursive
  37797. -
  37798. -install-data-am:
  37799. install-data: install-data-recursive
  37800. +uninstall: uninstall-recursive
  37801. install-am: all-am
  37802. @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  37803. -install: install-recursive
  37804. -uninstall-am:
  37805. -uninstall: uninstall-recursive
  37806. -all-am: Makefile config.h
  37807. -all-redirect: all-recursive-am
  37808. -install-strip:
  37809. - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  37810. -installdirs: installdirs-recursive
  37811. -installdirs-am:
  37812. -
  37813. +installcheck: installcheck-recursive
  37814. +install-strip:
  37815. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  37816. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  37817. + `test -z '$(STRIP)' || \
  37818. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  37819. mostlyclean-generic:
  37820. clean-generic:
  37821. distclean-generic:
  37822. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  37823. - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  37824. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  37825. maintainer-clean-generic:
  37826. -mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
  37827. + @echo "This command is intended for maintainers to use"
  37828. + @echo "it deletes files that may require special tools to rebuild."
  37829. +clean: clean-recursive
  37830. -mostlyclean: mostlyclean-recursive
  37831. +clean-am: clean-generic clean-libtool mostlyclean-am
  37832. -clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
  37833. +distclean: distclean-recursive
  37834. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  37835. + -rm -f Makefile
  37836. +distclean-am: clean-am distclean-generic distclean-hdr \
  37837. + distclean-libtool distclean-tags
  37838. -clean: clean-recursive
  37839. +dvi: dvi-recursive
  37840. -distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
  37841. - -rm -f libtool
  37842. +dvi-am:
  37843. -distclean: distclean-recursive
  37844. - -rm -f config.status
  37845. +html: html-recursive
  37846. -maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
  37847. - maintainer-clean-generic distclean-am
  37848. - @echo "This command is intended for maintainers to use;"
  37849. - @echo "it deletes files that may require special tools to rebuild."
  37850. +info: info-recursive
  37851. +
  37852. +info-am:
  37853. +
  37854. +install-data-am:
  37855. +
  37856. +install-exec-am:
  37857. +
  37858. +install-info: install-info-recursive
  37859. +
  37860. +install-man:
  37861. +
  37862. +installcheck-am:
  37863. maintainer-clean: maintainer-clean-recursive
  37864. - -rm -f config.status
  37865. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  37866. + -rm -rf $(top_srcdir)/autom4te.cache
  37867. + -rm -f Makefile
  37868. +maintainer-clean-am: distclean-am maintainer-clean-generic
  37869. +
  37870. +mostlyclean: mostlyclean-recursive
  37871. -.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
  37872. -install-data-recursive uninstall-data-recursive install-exec-recursive \
  37873. -uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
  37874. -all-recursive check-recursive installcheck-recursive info-recursive \
  37875. -dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
  37876. -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
  37877. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  37878. -dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
  37879. -install-exec-am install-exec install-data-am install-data install-am \
  37880. -install uninstall-am uninstall all-redirect all-am all installdirs-am \
  37881. -installdirs mostlyclean-generic distclean-generic clean-generic \
  37882. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  37883. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  37884. +
  37885. +pdf: pdf-recursive
  37886. +
  37887. +pdf-am:
  37888. +
  37889. +ps: ps-recursive
  37890. +
  37891. +ps-am:
  37892. +
  37893. +uninstall-am: uninstall-info-am
  37894. +
  37895. +uninstall-info: uninstall-info-recursive
  37896. +
  37897. +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  37898. + check-am clean clean-generic clean-libtool clean-recursive \
  37899. + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  37900. + dist-shar dist-tarZ dist-zip distcheck distclean \
  37901. + distclean-generic distclean-hdr distclean-libtool \
  37902. + distclean-recursive distclean-tags distcleancheck distdir \
  37903. + distuninstallcheck dvi dvi-am html html-am info info-am \
  37904. + install install-am install-data install-data-am install-exec \
  37905. + install-exec-am install-info install-info-am install-man \
  37906. + install-strip installcheck installcheck-am installdirs \
  37907. + installdirs-am maintainer-clean maintainer-clean-generic \
  37908. + maintainer-clean-recursive mostlyclean mostlyclean-generic \
  37909. + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  37910. + tags tags-recursive uninstall uninstall-am uninstall-info-am
  37911. rpms: dist src/extra/linux-atm.spec
  37912. @@ -395,7 +635,6 @@
  37913. cscope:
  37914. cscope -b -R
  37915. -
  37916. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  37917. # Otherwise a system limit (for SysV at least) may be exceeded.
  37918. .NOEXPORT:
  37919. Index: linux-atm-2.4.1/src/arpd/Makefile.in
  37920. ===================================================================
  37921. --- linux-atm-2.4.1.orig/src/arpd/Makefile.in 2007-10-20 21:45:35.746869525 +0200
  37922. +++ linux-atm-2.4.1/src/arpd/Makefile.in 2007-10-20 21:45:44.311357591 +0200
  37923. @@ -1,6 +1,8 @@
  37924. -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  37925. +# Makefile.in generated by automake 1.9.6 from Makefile.am.
  37926. +# @configure_input@
  37927. -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  37928. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  37929. +# 2003, 2004, 2005 Free Software Foundation, Inc.
  37930. # This Makefile.in is free software; the Free Software Foundation
  37931. # gives unlimited permission to copy and/or distribute it,
  37932. # with or without modifications, as long as this notice is preserved.
  37933. @@ -10,211 +12,307 @@
  37934. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  37935. # PARTICULAR PURPOSE.
  37936. +@SET_MAKE@
  37937. -SHELL = @SHELL@
  37938. srcdir = @srcdir@
  37939. top_srcdir = @top_srcdir@
  37940. VPATH = @srcdir@
  37941. -prefix = @prefix@
  37942. -exec_prefix = @exec_prefix@
  37943. -
  37944. -bindir = @bindir@
  37945. -sbindir = @sbindir@
  37946. -libexecdir = @libexecdir@
  37947. -datadir = @datadir@
  37948. -sysconfdir = @sysconfdir@
  37949. -sharedstatedir = @sharedstatedir@
  37950. -localstatedir = @localstatedir@
  37951. -libdir = @libdir@
  37952. -infodir = @infodir@
  37953. -mandir = @mandir@
  37954. -includedir = @includedir@
  37955. -oldincludedir = /usr/include
  37956. -
  37957. -DESTDIR =
  37958. -
  37959. pkgdatadir = $(datadir)/@PACKAGE@
  37960. pkglibdir = $(libdir)/@PACKAGE@
  37961. pkgincludedir = $(includedir)/@PACKAGE@
  37962. -
  37963. top_builddir = ../..
  37964. -
  37965. -ACLOCAL = @ACLOCAL@
  37966. -AUTOCONF = @AUTOCONF@
  37967. -AUTOMAKE = @AUTOMAKE@
  37968. -AUTOHEADER = @AUTOHEADER@
  37969. -
  37970. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  37971. INSTALL = @INSTALL@
  37972. -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
  37973. -INSTALL_DATA = @INSTALL_DATA@
  37974. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  37975. -transform = @program_transform_name@
  37976. -
  37977. +install_sh_DATA = $(install_sh) -c -m 644
  37978. +install_sh_PROGRAM = $(install_sh) -c
  37979. +install_sh_SCRIPT = $(install_sh) -c
  37980. +INSTALL_HEADER = $(INSTALL_DATA)
  37981. +transform = $(program_transform_name)
  37982. NORMAL_INSTALL = :
  37983. PRE_INSTALL = :
  37984. POST_INSTALL = :
  37985. NORMAL_UNINSTALL = :
  37986. PRE_UNINSTALL = :
  37987. POST_UNINSTALL = :
  37988. -build_alias = @build_alias@
  37989. build_triplet = @build@
  37990. -host_alias = @host_alias@
  37991. host_triplet = @host@
  37992. -target_alias = @target_alias@
  37993. target_triplet = @target@
  37994. +sbin_PROGRAMS = atmarp$(EXEEXT) atmarpd$(EXEEXT)
  37995. +subdir = src/arpd
  37996. +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
  37997. + $(srcdir)/Makefile.in
  37998. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  37999. +am__aclocal_m4_deps = $(top_srcdir)/configure.in
  38000. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  38001. + $(ACLOCAL_M4)
  38002. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  38003. +CONFIG_HEADER = $(top_builddir)/config.h
  38004. +CONFIG_CLEAN_FILES =
  38005. +am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" \
  38006. + "$(DESTDIR)$(includedir)"
  38007. +sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  38008. +PROGRAMS = $(sbin_PROGRAMS)
  38009. +am_atmarp_OBJECTS = atmarp.$(OBJEXT)
  38010. +atmarp_OBJECTS = $(am_atmarp_OBJECTS)
  38011. +atmarp_LDADD = $(LDADD)
  38012. +atmarp_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
  38013. +am_atmarpd_OBJECTS = atmarpd.$(OBJEXT) arp.$(OBJEXT) io.$(OBJEXT) \
  38014. + itf.$(OBJEXT) table.$(OBJEXT)
  38015. +atmarpd_OBJECTS = $(am_atmarpd_OBJECTS)
  38016. +atmarpd_LDADD = $(LDADD)
  38017. +atmarpd_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
  38018. +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  38019. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  38020. +am__depfiles_maybe = depfiles
  38021. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  38022. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  38023. +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  38024. + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  38025. + $(AM_CFLAGS) $(CFLAGS)
  38026. +CCLD = $(CC)
  38027. +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  38028. + $(AM_LDFLAGS) $(LDFLAGS) -o $@
  38029. +SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
  38030. +DIST_SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
  38031. +man8dir = $(mandir)/man8
  38032. +NROFF = nroff
  38033. +MANS = $(man_MANS)
  38034. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  38035. +am__vpath_adj = case $$p in \
  38036. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  38037. + *) f=$$p;; \
  38038. + esac;
  38039. +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  38040. +includeHEADERS_INSTALL = $(INSTALL_HEADER)
  38041. +HEADERS = $(include_HEADERS)
  38042. +ETAGS = etags
  38043. +CTAGS = ctags
  38044. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  38045. +ACLOCAL = @ACLOCAL@
  38046. +AMDEP_FALSE = @AMDEP_FALSE@
  38047. +AMDEP_TRUE = @AMDEP_TRUE@
  38048. +AMTAR = @AMTAR@
  38049. AR = @AR@
  38050. -AS = @AS@
  38051. +AUTOCONF = @AUTOCONF@
  38052. +AUTOHEADER = @AUTOHEADER@
  38053. +AUTOMAKE = @AUTOMAKE@
  38054. +AWK = @AWK@
  38055. CC = @CC@
  38056. +CCDEPMODE = @CCDEPMODE@
  38057. +CFLAGS = @CFLAGS@
  38058. +CPP = @CPP@
  38059. +CPPFLAGS = @CPPFLAGS@
  38060. CXX = @CXX@
  38061. CXXCPP = @CXXCPP@
  38062. -DLLTOOL = @DLLTOOL@
  38063. +CXXDEPMODE = @CXXDEPMODE@
  38064. +CXXFLAGS = @CXXFLAGS@
  38065. +CYGPATH_W = @CYGPATH_W@
  38066. +DEFS = @DEFS@
  38067. +DEPDIR = @DEPDIR@
  38068. ECHO = @ECHO@
  38069. +ECHO_C = @ECHO_C@
  38070. +ECHO_N = @ECHO_N@
  38071. +ECHO_T = @ECHO_T@
  38072. EGREP = @EGREP@
  38073. EXEEXT = @EXEEXT@
  38074. F77 = @F77@
  38075. -GCJ = @GCJ@
  38076. -GCJFLAGS = @GCJFLAGS@
  38077. -HAVE_LIB = @HAVE_LIB@
  38078. +FFLAGS = @FFLAGS@
  38079. +GREP = @GREP@
  38080. +INSTALL_DATA = @INSTALL_DATA@
  38081. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  38082. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  38083. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  38084. +LDFLAGS = @LDFLAGS@
  38085. LEX = @LEX@
  38086. -LIB = @LIB@
  38087. +LEXLIB = @LEXLIB@
  38088. +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  38089. +LIBOBJS = @LIBOBJS@
  38090. +LIBS = @LIBS@
  38091. LIBTOOL = @LIBTOOL@
  38092. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  38093. LIBVER_AGE = @LIBVER_AGE@
  38094. LIBVER_CURRENT = @LIBVER_CURRENT@
  38095. LIBVER_REVISION = @LIBVER_REVISION@
  38096. LN_S = @LN_S@
  38097. -LTLIB = @LTLIB@
  38098. +LTLIBOBJS = @LTLIBOBJS@
  38099. MAKEINFO = @MAKEINFO@
  38100. -OBJDUMP = @OBJDUMP@
  38101. OBJEXT = @OBJEXT@
  38102. PACKAGE = @PACKAGE@
  38103. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  38104. +PACKAGE_NAME = @PACKAGE_NAME@
  38105. +PACKAGE_STRING = @PACKAGE_STRING@
  38106. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  38107. +PACKAGE_VERSION = @PACKAGE_VERSION@
  38108. +PATH_SEPARATOR = @PATH_SEPARATOR@
  38109. PERL = @PERL@
  38110. RANLIB = @RANLIB@
  38111. -RC = @RC@
  38112. +SET_MAKE = @SET_MAKE@
  38113. +SHELL = @SHELL@
  38114. STRIP = @STRIP@
  38115. VERSION = @VERSION@
  38116. YACC = @YACC@
  38117. -
  38118. +YFLAGS = @YFLAGS@
  38119. +ac_ct_CC = @ac_ct_CC@
  38120. +ac_ct_CXX = @ac_ct_CXX@
  38121. +ac_ct_F77 = @ac_ct_F77@
  38122. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  38123. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  38124. +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  38125. +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  38126. +am__include = @am__include@
  38127. +am__leading_dot = @am__leading_dot@
  38128. +am__quote = @am__quote@
  38129. +am__tar = @am__tar@
  38130. +am__untar = @am__untar@
  38131. +bindir = @bindir@
  38132. +build = @build@
  38133. +build_alias = @build_alias@
  38134. +build_cpu = @build_cpu@
  38135. +build_os = @build_os@
  38136. +build_vendor = @build_vendor@
  38137. +datadir = @datadir@
  38138. +datarootdir = @datarootdir@
  38139. +docdir = @docdir@
  38140. +dvidir = @dvidir@
  38141. +exec_prefix = @exec_prefix@
  38142. +host = @host@
  38143. +host_alias = @host_alias@
  38144. +host_cpu = @host_cpu@
  38145. +host_os = @host_os@
  38146. +host_vendor = @host_vendor@
  38147. +htmldir = @htmldir@
  38148. +includedir = @includedir@
  38149. +infodir = @infodir@
  38150. +install_sh = @install_sh@
  38151. +libdir = @libdir@
  38152. +libexecdir = @libexecdir@
  38153. +localedir = @localedir@
  38154. +localstatedir = @localstatedir@
  38155. +mandir = @mandir@
  38156. +mkdir_p = @mkdir_p@
  38157. +oldincludedir = @oldincludedir@
  38158. +pdfdir = @pdfdir@
  38159. +prefix = @prefix@
  38160. +program_transform_name = @program_transform_name@
  38161. +psdir = @psdir@
  38162. +sbindir = @sbindir@
  38163. +sharedstatedir = @sharedstatedir@
  38164. +sysconfdir = @sysconfdir@
  38165. +target = @target@
  38166. +target_alias = @target_alias@
  38167. +target_cpu = @target_cpu@
  38168. +target_os = @target_os@
  38169. +target_vendor = @target_vendor@
  38170. LDADD = $(top_builddir)/src/lib/libatm.la
  38171. -
  38172. -sbin_PROGRAMS = atmarp atmarpd
  38173. -
  38174. atmarp_SOURCES = atmarp.c atmarp.h atmarpd.h
  38175. -atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h table.c table.h atmarp.h
  38176. -
  38177. +atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h \
  38178. + table.c table.h atmarp.h
  38179. include_HEADERS = atmarp.h atmarpd.h
  38180. -
  38181. man_MANS = atmarp.8 atmarpd.8
  38182. -
  38183. EXTRA_DIST = $(man_MANS)
  38184. -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  38185. -CONFIG_HEADER = ../../config.h
  38186. -CONFIG_CLEAN_FILES =
  38187. -sbin_PROGRAMS = atmarp$(EXEEXT) atmarpd$(EXEEXT)
  38188. -PROGRAMS = $(sbin_PROGRAMS)
  38189. -
  38190. +all: all-am
  38191. -DEFS = @DEFS@ -I. -I$(srcdir) -I../..
  38192. -CPPFLAGS = @CPPFLAGS@
  38193. -LDFLAGS = @LDFLAGS@
  38194. -LIBS = @LIBS@
  38195. -atmarp_OBJECTS = atmarp.$(OBJEXT)
  38196. -atmarp_LDADD = $(LDADD)
  38197. -atmarp_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
  38198. -atmarp_LDFLAGS =
  38199. -atmarpd_OBJECTS = atmarpd.$(OBJEXT) arp.$(OBJEXT) io.$(OBJEXT) \
  38200. -itf.$(OBJEXT) table.$(OBJEXT)
  38201. -atmarpd_LDADD = $(LDADD)
  38202. -atmarpd_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
  38203. -atmarpd_LDFLAGS =
  38204. -CFLAGS = @CFLAGS@
  38205. -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  38206. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  38207. -CCLD = $(CC)
  38208. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
  38209. -man8dir = $(mandir)/man8
  38210. -MANS = $(man_MANS)
  38211. -
  38212. -NROFF = nroff
  38213. -HEADERS = $(include_HEADERS)
  38214. -
  38215. -DIST_COMMON = Makefile.am Makefile.in
  38216. -
  38217. -
  38218. -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  38219. -
  38220. -TAR = tar
  38221. -GZIP_ENV = --best
  38222. -DEP_FILES = .deps/arp.P .deps/atmarp.P .deps/atmarpd.P .deps/io.P \
  38223. -.deps/itf.P .deps/table.P
  38224. -SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
  38225. -OBJECTS = $(atmarp_OBJECTS) $(atmarpd_OBJECTS)
  38226. -
  38227. -all: all-redirect
  38228. .SUFFIXES:
  38229. -.SUFFIXES: .S .c .lo .o .obj .s
  38230. -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  38231. - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/arpd/Makefile
  38232. -
  38233. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  38234. - cd $(top_builddir) \
  38235. - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  38236. -
  38237. -
  38238. -mostlyclean-sbinPROGRAMS:
  38239. -
  38240. -clean-sbinPROGRAMS:
  38241. - -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
  38242. -
  38243. -distclean-sbinPROGRAMS:
  38244. -
  38245. -maintainer-clean-sbinPROGRAMS:
  38246. -
  38247. +.SUFFIXES: .c .lo .o .obj
  38248. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  38249. + @for dep in $?; do \
  38250. + case '$(am__configure_deps)' in \
  38251. + *$$dep*) \
  38252. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  38253. + && exit 0; \
  38254. + exit 1;; \
  38255. + esac; \
  38256. + done; \
  38257. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/arpd/Makefile'; \
  38258. + cd $(top_srcdir) && \
  38259. + $(AUTOMAKE) --gnu src/arpd/Makefile
  38260. +.PRECIOUS: Makefile
  38261. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  38262. + @case '$?' in \
  38263. + *config.status*) \
  38264. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  38265. + *) \
  38266. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  38267. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  38268. + esac;
  38269. +
  38270. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  38271. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  38272. +
  38273. +$(top_srcdir)/configure: $(am__configure_deps)
  38274. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  38275. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  38276. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  38277. install-sbinPROGRAMS: $(sbin_PROGRAMS)
  38278. @$(NORMAL_INSTALL)
  38279. - $(mkinstalldirs) $(DESTDIR)$(sbindir)
  38280. + test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
  38281. @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  38282. - if test -f $$p; then \
  38283. - echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
  38284. - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  38285. + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  38286. + if test -f $$p \
  38287. + || test -f $$p1 \
  38288. + ; then \
  38289. + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  38290. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
  38291. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
  38292. else :; fi; \
  38293. done
  38294. uninstall-sbinPROGRAMS:
  38295. @$(NORMAL_UNINSTALL)
  38296. - list='$(sbin_PROGRAMS)'; for p in $$list; do \
  38297. - rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  38298. + @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  38299. + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  38300. + echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
  38301. + rm -f "$(DESTDIR)$(sbindir)/$$f"; \
  38302. done
  38303. -# FIXME: We should only use cygpath when building on Windows,
  38304. -# and only if it is available.
  38305. -.c.obj:
  38306. - $(COMPILE) -c `cygpath -w $<`
  38307. -
  38308. -.s.o:
  38309. - $(COMPILE) -c $<
  38310. -
  38311. -.S.o:
  38312. - $(COMPILE) -c $<
  38313. +clean-sbinPROGRAMS:
  38314. + @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  38315. + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  38316. + echo " rm -f $$p $$f"; \
  38317. + rm -f $$p $$f ; \
  38318. + done
  38319. +atmarp$(EXEEXT): $(atmarp_OBJECTS) $(atmarp_DEPENDENCIES)
  38320. + @rm -f atmarp$(EXEEXT)
  38321. + $(LINK) $(atmarp_LDFLAGS) $(atmarp_OBJECTS) $(atmarp_LDADD) $(LIBS)
  38322. +atmarpd$(EXEEXT): $(atmarpd_OBJECTS) $(atmarpd_DEPENDENCIES)
  38323. + @rm -f atmarpd$(EXEEXT)
  38324. + $(LINK) $(atmarpd_LDFLAGS) $(atmarpd_OBJECTS) $(atmarpd_LDADD) $(LIBS)
  38325. mostlyclean-compile:
  38326. - -rm -f *.o core *.core
  38327. -rm -f *.$(OBJEXT)
  38328. -clean-compile:
  38329. -
  38330. distclean-compile:
  38331. -rm -f *.tab.c
  38332. -maintainer-clean-compile:
  38333. -
  38334. -.s.lo:
  38335. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  38336. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arp.Po@am__quote@
  38337. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmarp.Po@am__quote@
  38338. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmarpd.Po@am__quote@
  38339. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/io.Po@am__quote@
  38340. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/itf.Po@am__quote@
  38341. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/table.Po@am__quote@
  38342. +
  38343. +.c.o:
  38344. +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  38345. +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  38346. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  38347. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38348. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  38349. -.S.lo:
  38350. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  38351. +.c.obj:
  38352. +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  38353. +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  38354. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  38355. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38356. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  38357. +
  38358. +.c.lo:
  38359. +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  38360. +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  38361. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  38362. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38363. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  38364. mostlyclean-libtool:
  38365. -rm -f *.lo
  38366. @@ -223,21 +321,14 @@
  38367. -rm -rf .libs _libs
  38368. distclean-libtool:
  38369. -
  38370. -maintainer-clean-libtool:
  38371. -
  38372. -atmarp$(EXEEXT): $(atmarp_OBJECTS) $(atmarp_DEPENDENCIES)
  38373. - @rm -f atmarp$(EXEEXT)
  38374. - $(LINK) $(atmarp_LDFLAGS) $(atmarp_OBJECTS) $(atmarp_LDADD) $(LIBS)
  38375. -
  38376. -atmarpd$(EXEEXT): $(atmarpd_OBJECTS) $(atmarpd_DEPENDENCIES)
  38377. - @rm -f atmarpd$(EXEEXT)
  38378. - $(LINK) $(atmarpd_LDFLAGS) $(atmarpd_OBJECTS) $(atmarpd_LDADD) $(LIBS)
  38379. -
  38380. -install-man8:
  38381. - $(mkinstalldirs) $(DESTDIR)$(man8dir)
  38382. - @list='$(man8_MANS)'; \
  38383. - l2='$(man_MANS)'; for i in $$l2; do \
  38384. + -rm -f libtool
  38385. +uninstall-info-am:
  38386. +install-man8: $(man8_MANS) $(man_MANS)
  38387. + @$(NORMAL_INSTALL)
  38388. + test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
  38389. + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
  38390. + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  38391. + for i in $$l2; do \
  38392. case "$$i" in \
  38393. *.8*) list="$$list $$i" ;; \
  38394. esac; \
  38395. @@ -246,209 +337,228 @@
  38396. if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  38397. else file=$$i; fi; \
  38398. ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  38399. + case "$$ext" in \
  38400. + 8*) ;; \
  38401. + *) ext='8' ;; \
  38402. + esac; \
  38403. inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  38404. + inst=`echo $$inst | sed -e 's/^.*\///'`; \
  38405. inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  38406. - echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst"; \
  38407. - $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \
  38408. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
  38409. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
  38410. done
  38411. -
  38412. uninstall-man8:
  38413. - @list='$(man8_MANS)'; \
  38414. - l2='$(man_MANS)'; for i in $$l2; do \
  38415. + @$(NORMAL_UNINSTALL)
  38416. + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
  38417. + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  38418. + for i in $$l2; do \
  38419. case "$$i" in \
  38420. *.8*) list="$$list $$i" ;; \
  38421. esac; \
  38422. done; \
  38423. for i in $$list; do \
  38424. ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  38425. + case "$$ext" in \
  38426. + 8*) ;; \
  38427. + *) ext='8' ;; \
  38428. + esac; \
  38429. inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  38430. + inst=`echo $$inst | sed -e 's/^.*\///'`; \
  38431. inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  38432. - echo " rm -f $(DESTDIR)$(man8dir)/$$inst"; \
  38433. - rm -f $(DESTDIR)$(man8dir)/$$inst; \
  38434. + echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
  38435. + rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
  38436. done
  38437. -install-man: $(MANS)
  38438. - @$(NORMAL_INSTALL)
  38439. - $(MAKE) $(AM_MAKEFLAGS) install-man8
  38440. -uninstall-man:
  38441. - @$(NORMAL_UNINSTALL)
  38442. - $(MAKE) $(AM_MAKEFLAGS) uninstall-man8
  38443. -
  38444. install-includeHEADERS: $(include_HEADERS)
  38445. @$(NORMAL_INSTALL)
  38446. - $(mkinstalldirs) $(DESTDIR)$(includedir)
  38447. + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  38448. @list='$(include_HEADERS)'; for p in $$list; do \
  38449. - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
  38450. - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
  38451. - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
  38452. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  38453. + f=$(am__strip_dir) \
  38454. + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  38455. + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  38456. done
  38457. uninstall-includeHEADERS:
  38458. @$(NORMAL_UNINSTALL)
  38459. - list='$(include_HEADERS)'; for p in $$list; do \
  38460. - rm -f $(DESTDIR)$(includedir)/$$p; \
  38461. + @list='$(include_HEADERS)'; for p in $$list; do \
  38462. + f=$(am__strip_dir) \
  38463. + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  38464. + rm -f "$(DESTDIR)$(includedir)/$$f"; \
  38465. done
  38466. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  38467. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38468. + unique=`for i in $$list; do \
  38469. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  38470. + done | \
  38471. + $(AWK) ' { files[$$0] = 1; } \
  38472. + END { for (i in files) print i; }'`; \
  38473. + mkid -fID $$unique
  38474. tags: TAGS
  38475. -ID: $(HEADERS) $(SOURCES) $(LISP)
  38476. - list='$(SOURCES) $(HEADERS)'; \
  38477. - unique=`for i in $$list; do echo $$i; done | \
  38478. - awk ' { files[$$0] = 1; } \
  38479. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  38480. + $(TAGS_FILES) $(LISP)
  38481. + tags=; \
  38482. + here=`pwd`; \
  38483. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38484. + unique=`for i in $$list; do \
  38485. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  38486. + done | \
  38487. + $(AWK) ' { files[$$0] = 1; } \
  38488. END { for (i in files) print i; }'`; \
  38489. - here=`pwd` && cd $(srcdir) \
  38490. - && mkid -f$$here/ID $$unique $(LISP)
  38491. -
  38492. -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
  38493. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  38494. + test -n "$$unique" || unique=$$empty_fix; \
  38495. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  38496. + $$tags $$unique; \
  38497. + fi
  38498. +ctags: CTAGS
  38499. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  38500. + $(TAGS_FILES) $(LISP)
  38501. tags=; \
  38502. here=`pwd`; \
  38503. - list='$(SOURCES) $(HEADERS)'; \
  38504. - unique=`for i in $$list; do echo $$i; done | \
  38505. - awk ' { files[$$0] = 1; } \
  38506. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38507. + unique=`for i in $$list; do \
  38508. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  38509. + done | \
  38510. + $(AWK) ' { files[$$0] = 1; } \
  38511. END { for (i in files) print i; }'`; \
  38512. - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  38513. - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  38514. -
  38515. -mostlyclean-tags:
  38516. -
  38517. -clean-tags:
  38518. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  38519. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  38520. + $$tags $$unique
  38521. +
  38522. +GTAGS:
  38523. + here=`$(am__cd) $(top_builddir) && pwd` \
  38524. + && cd $(top_srcdir) \
  38525. + && gtags -i $(GTAGS_ARGS) $$here
  38526. distclean-tags:
  38527. - -rm -f TAGS ID
  38528. -
  38529. -maintainer-clean-tags:
  38530. -
  38531. -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  38532. -
  38533. -subdir = src/arpd
  38534. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  38535. distdir: $(DISTFILES)
  38536. - here=`cd $(top_builddir) && pwd`; \
  38537. - top_distdir=`cd $(top_distdir) && pwd`; \
  38538. - distdir=`cd $(distdir) && pwd`; \
  38539. - cd $(top_srcdir) \
  38540. - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/arpd/Makefile
  38541. - @for file in $(DISTFILES); do \
  38542. - d=$(srcdir); \
  38543. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  38544. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  38545. + list='$(DISTFILES)'; for file in $$list; do \
  38546. + case $$file in \
  38547. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  38548. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  38549. + esac; \
  38550. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  38551. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  38552. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  38553. + dir="/$$dir"; \
  38554. + $(mkdir_p) "$(distdir)$$dir"; \
  38555. + else \
  38556. + dir=''; \
  38557. + fi; \
  38558. if test -d $$d/$$file; then \
  38559. - cp -pr $$d/$$file $(distdir)/$$file; \
  38560. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  38561. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  38562. + fi; \
  38563. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  38564. else \
  38565. test -f $(distdir)/$$file \
  38566. - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  38567. - || cp -p $$d/$$file $(distdir)/$$file || :; \
  38568. + || cp -p $$d/$$file $(distdir)/$$file \
  38569. + || exit 1; \
  38570. fi; \
  38571. done
  38572. -
  38573. -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  38574. -
  38575. --include $(DEP_FILES)
  38576. -
  38577. -mostlyclean-depend:
  38578. -
  38579. -clean-depend:
  38580. -
  38581. -distclean-depend:
  38582. - -rm -rf .deps
  38583. -
  38584. -maintainer-clean-depend:
  38585. -
  38586. -%.o: %.c
  38587. - @echo '$(COMPILE) -c $<'; \
  38588. - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  38589. - @-cp .deps/$(*F).pp .deps/$(*F).P; \
  38590. - tr ' ' '\012' < .deps/$(*F).pp \
  38591. - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  38592. - >> .deps/$(*F).P; \
  38593. - rm .deps/$(*F).pp
  38594. -
  38595. -%.lo: %.c
  38596. - @echo '$(LTCOMPILE) -c $<'; \
  38597. - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  38598. - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  38599. - < .deps/$(*F).pp > .deps/$(*F).P; \
  38600. - tr ' ' '\012' < .deps/$(*F).pp \
  38601. - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  38602. - >> .deps/$(*F).P; \
  38603. - rm -f .deps/$(*F).pp
  38604. -info-am:
  38605. -info: info-am
  38606. -dvi-am:
  38607. -dvi: dvi-am
  38608. check-am: all-am
  38609. check: check-am
  38610. -installcheck-am:
  38611. -installcheck: installcheck-am
  38612. -install-exec-am: install-sbinPROGRAMS
  38613. +all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS)
  38614. +installdirs:
  38615. + for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(includedir)"; do \
  38616. + test -z "$$dir" || $(mkdir_p) "$$dir"; \
  38617. + done
  38618. +install: install-am
  38619. install-exec: install-exec-am
  38620. -
  38621. -install-data-am: install-man install-includeHEADERS
  38622. install-data: install-data-am
  38623. +uninstall: uninstall-am
  38624. install-am: all-am
  38625. @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  38626. -install: install-am
  38627. -uninstall-am: uninstall-sbinPROGRAMS uninstall-man \
  38628. - uninstall-includeHEADERS
  38629. -uninstall: uninstall-am
  38630. -all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS)
  38631. -all-redirect: all-am
  38632. -install-strip:
  38633. - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  38634. -installdirs:
  38635. - $(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man8 \
  38636. - $(DESTDIR)$(includedir)
  38637. -
  38638. +installcheck: installcheck-am
  38639. +install-strip:
  38640. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  38641. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  38642. + `test -z '$(STRIP)' || \
  38643. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  38644. mostlyclean-generic:
  38645. clean-generic:
  38646. distclean-generic:
  38647. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  38648. - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  38649. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  38650. maintainer-clean-generic:
  38651. -mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  38652. - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  38653. - mostlyclean-generic
  38654. + @echo "This command is intended for maintainers to use"
  38655. + @echo "it deletes files that may require special tools to rebuild."
  38656. +clean: clean-am
  38657. -mostlyclean: mostlyclean-am
  38658. +clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \
  38659. + mostlyclean-am
  38660. -clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  38661. - clean-depend clean-generic mostlyclean-am
  38662. +distclean: distclean-am
  38663. + -rm -rf ./$(DEPDIR)
  38664. + -rm -f Makefile
  38665. +distclean-am: clean-am distclean-compile distclean-generic \
  38666. + distclean-libtool distclean-tags
  38667. -clean: clean-am
  38668. +dvi: dvi-am
  38669. -distclean-am: distclean-sbinPROGRAMS distclean-compile \
  38670. - distclean-libtool distclean-tags distclean-depend \
  38671. - distclean-generic clean-am
  38672. - -rm -f libtool
  38673. +dvi-am:
  38674. -distclean: distclean-am
  38675. +html: html-am
  38676. -maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  38677. - maintainer-clean-compile maintainer-clean-libtool \
  38678. - maintainer-clean-tags maintainer-clean-depend \
  38679. - maintainer-clean-generic distclean-am
  38680. - @echo "This command is intended for maintainers to use;"
  38681. - @echo "it deletes files that may require special tools to rebuild."
  38682. +info: info-am
  38683. +
  38684. +info-am:
  38685. +
  38686. +install-data-am: install-includeHEADERS install-man
  38687. +
  38688. +install-exec-am: install-sbinPROGRAMS
  38689. +
  38690. +install-info: install-info-am
  38691. +
  38692. +install-man: install-man8
  38693. +
  38694. +installcheck-am:
  38695. maintainer-clean: maintainer-clean-am
  38696. + -rm -rf ./$(DEPDIR)
  38697. + -rm -f Makefile
  38698. +maintainer-clean-am: distclean-am maintainer-clean-generic
  38699. +
  38700. +mostlyclean: mostlyclean-am
  38701. +
  38702. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  38703. + mostlyclean-libtool
  38704. +
  38705. +pdf: pdf-am
  38706. +
  38707. +pdf-am:
  38708. -.PHONY: mostlyclean-sbinPROGRAMS distclean-sbinPROGRAMS \
  38709. -clean-sbinPROGRAMS maintainer-clean-sbinPROGRAMS uninstall-sbinPROGRAMS \
  38710. -install-sbinPROGRAMS mostlyclean-compile distclean-compile \
  38711. -clean-compile maintainer-clean-compile mostlyclean-libtool \
  38712. -distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  38713. -uninstall-man8 install-man uninstall-man uninstall-includeHEADERS \
  38714. -install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
  38715. -maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
  38716. -clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
  38717. -check-am installcheck-am installcheck install-exec-am install-exec \
  38718. -install-data-am install-data install-am install uninstall-am uninstall \
  38719. -all-redirect all-am all installdirs mostlyclean-generic \
  38720. -distclean-generic clean-generic maintainer-clean-generic clean \
  38721. -mostlyclean distclean maintainer-clean
  38722. +ps: ps-am
  38723. +ps-am:
  38724. +
  38725. +uninstall-am: uninstall-includeHEADERS uninstall-info-am uninstall-man \
  38726. + uninstall-sbinPROGRAMS
  38727. +
  38728. +uninstall-man: uninstall-man8
  38729. +
  38730. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  38731. + clean-libtool clean-sbinPROGRAMS ctags distclean \
  38732. + distclean-compile distclean-generic distclean-libtool \
  38733. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  38734. + install install-am install-data install-data-am install-exec \
  38735. + install-exec-am install-includeHEADERS install-info \
  38736. + install-info-am install-man install-man8 install-sbinPROGRAMS \
  38737. + install-strip installcheck installcheck-am installdirs \
  38738. + maintainer-clean maintainer-clean-generic mostlyclean \
  38739. + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  38740. + pdf pdf-am ps ps-am tags uninstall uninstall-am \
  38741. + uninstall-includeHEADERS uninstall-info-am uninstall-man \
  38742. + uninstall-man8 uninstall-sbinPROGRAMS
  38743. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  38744. # Otherwise a system limit (for SysV at least) may be exceeded.
  38745. Index: linux-atm-2.4.1/src/include/Makefile.in
  38746. ===================================================================
  38747. --- linux-atm-2.4.1.orig/src/include/Makefile.in 2007-10-20 21:45:35.734868844 +0200
  38748. +++ linux-atm-2.4.1/src/include/Makefile.in 2007-10-20 21:45:44.315357817 +0200
  38749. @@ -1,6 +1,8 @@
  38750. -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  38751. +# Makefile.in generated by automake 1.9.6 from Makefile.am.
  38752. +# @configure_input@
  38753. -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  38754. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  38755. +# 2003, 2004, 2005 Free Software Foundation, Inc.
  38756. # This Makefile.in is free software; the Free Software Foundation
  38757. # gives unlimited permission to copy and/or distribute it,
  38758. # with or without modifications, as long as this notice is preserved.
  38759. @@ -10,244 +12,396 @@
  38760. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  38761. # PARTICULAR PURPOSE.
  38762. -
  38763. -SHELL = @SHELL@
  38764. +@SET_MAKE@
  38765. srcdir = @srcdir@
  38766. top_srcdir = @top_srcdir@
  38767. VPATH = @srcdir@
  38768. -prefix = @prefix@
  38769. -exec_prefix = @exec_prefix@
  38770. -
  38771. -bindir = @bindir@
  38772. -sbindir = @sbindir@
  38773. -libexecdir = @libexecdir@
  38774. -datadir = @datadir@
  38775. -sysconfdir = @sysconfdir@
  38776. -sharedstatedir = @sharedstatedir@
  38777. -localstatedir = @localstatedir@
  38778. -libdir = @libdir@
  38779. -infodir = @infodir@
  38780. -mandir = @mandir@
  38781. -includedir = @includedir@
  38782. -oldincludedir = /usr/include
  38783. -
  38784. -DESTDIR =
  38785. -
  38786. pkgdatadir = $(datadir)/@PACKAGE@
  38787. pkglibdir = $(libdir)/@PACKAGE@
  38788. pkgincludedir = $(includedir)/@PACKAGE@
  38789. -
  38790. top_builddir = ../..
  38791. -
  38792. -ACLOCAL = @ACLOCAL@
  38793. -AUTOCONF = @AUTOCONF@
  38794. -AUTOMAKE = @AUTOMAKE@
  38795. -AUTOHEADER = @AUTOHEADER@
  38796. -
  38797. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  38798. INSTALL = @INSTALL@
  38799. -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
  38800. -INSTALL_DATA = @INSTALL_DATA@
  38801. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  38802. -transform = @program_transform_name@
  38803. -
  38804. +install_sh_DATA = $(install_sh) -c -m 644
  38805. +install_sh_PROGRAM = $(install_sh) -c
  38806. +install_sh_SCRIPT = $(install_sh) -c
  38807. +INSTALL_HEADER = $(INSTALL_DATA)
  38808. +transform = $(program_transform_name)
  38809. NORMAL_INSTALL = :
  38810. PRE_INSTALL = :
  38811. POST_INSTALL = :
  38812. NORMAL_UNINSTALL = :
  38813. PRE_UNINSTALL = :
  38814. POST_UNINSTALL = :
  38815. -build_alias = @build_alias@
  38816. build_triplet = @build@
  38817. -host_alias = @host_alias@
  38818. host_triplet = @host@
  38819. -target_alias = @target_alias@
  38820. target_triplet = @target@
  38821. +subdir = src/include
  38822. +DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) \
  38823. + $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  38824. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  38825. +am__aclocal_m4_deps = $(top_srcdir)/configure.in
  38826. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  38827. + $(ACLOCAL_M4)
  38828. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  38829. +CONFIG_HEADER = $(top_builddir)/config.h
  38830. +CONFIG_CLEAN_FILES =
  38831. +SOURCES =
  38832. +DIST_SOURCES =
  38833. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  38834. +am__vpath_adj = case $$p in \
  38835. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  38836. + *) f=$$p;; \
  38837. + esac;
  38838. +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  38839. +am__installdirs = "$(DESTDIR)$(includedir)"
  38840. +includeHEADERS_INSTALL = $(INSTALL_HEADER)
  38841. +HEADERS = $(include_HEADERS) $(noinst_HEADERS)
  38842. +ETAGS = etags
  38843. +CTAGS = ctags
  38844. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  38845. +ACLOCAL = @ACLOCAL@
  38846. +AMDEP_FALSE = @AMDEP_FALSE@
  38847. +AMDEP_TRUE = @AMDEP_TRUE@
  38848. +AMTAR = @AMTAR@
  38849. AR = @AR@
  38850. -AS = @AS@
  38851. +AUTOCONF = @AUTOCONF@
  38852. +AUTOHEADER = @AUTOHEADER@
  38853. +AUTOMAKE = @AUTOMAKE@
  38854. +AWK = @AWK@
  38855. CC = @CC@
  38856. +CCDEPMODE = @CCDEPMODE@
  38857. +CFLAGS = @CFLAGS@
  38858. +CPP = @CPP@
  38859. +CPPFLAGS = @CPPFLAGS@
  38860. CXX = @CXX@
  38861. CXXCPP = @CXXCPP@
  38862. -DLLTOOL = @DLLTOOL@
  38863. +CXXDEPMODE = @CXXDEPMODE@
  38864. +CXXFLAGS = @CXXFLAGS@
  38865. +CYGPATH_W = @CYGPATH_W@
  38866. +DEFS = @DEFS@
  38867. +DEPDIR = @DEPDIR@
  38868. ECHO = @ECHO@
  38869. +ECHO_C = @ECHO_C@
  38870. +ECHO_N = @ECHO_N@
  38871. +ECHO_T = @ECHO_T@
  38872. EGREP = @EGREP@
  38873. EXEEXT = @EXEEXT@
  38874. F77 = @F77@
  38875. -GCJ = @GCJ@
  38876. -GCJFLAGS = @GCJFLAGS@
  38877. -HAVE_LIB = @HAVE_LIB@
  38878. +FFLAGS = @FFLAGS@
  38879. +GREP = @GREP@
  38880. +INSTALL_DATA = @INSTALL_DATA@
  38881. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  38882. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  38883. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  38884. +LDFLAGS = @LDFLAGS@
  38885. LEX = @LEX@
  38886. -LIB = @LIB@
  38887. +LEXLIB = @LEXLIB@
  38888. +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  38889. +LIBOBJS = @LIBOBJS@
  38890. +LIBS = @LIBS@
  38891. LIBTOOL = @LIBTOOL@
  38892. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  38893. LIBVER_AGE = @LIBVER_AGE@
  38894. LIBVER_CURRENT = @LIBVER_CURRENT@
  38895. LIBVER_REVISION = @LIBVER_REVISION@
  38896. LN_S = @LN_S@
  38897. -LTLIB = @LTLIB@
  38898. +LTLIBOBJS = @LTLIBOBJS@
  38899. MAKEINFO = @MAKEINFO@
  38900. -OBJDUMP = @OBJDUMP@
  38901. OBJEXT = @OBJEXT@
  38902. PACKAGE = @PACKAGE@
  38903. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  38904. +PACKAGE_NAME = @PACKAGE_NAME@
  38905. +PACKAGE_STRING = @PACKAGE_STRING@
  38906. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  38907. +PACKAGE_VERSION = @PACKAGE_VERSION@
  38908. +PATH_SEPARATOR = @PATH_SEPARATOR@
  38909. PERL = @PERL@
  38910. RANLIB = @RANLIB@
  38911. -RC = @RC@
  38912. +SET_MAKE = @SET_MAKE@
  38913. +SHELL = @SHELL@
  38914. STRIP = @STRIP@
  38915. VERSION = @VERSION@
  38916. YACC = @YACC@
  38917. -
  38918. +YFLAGS = @YFLAGS@
  38919. +ac_ct_CC = @ac_ct_CC@
  38920. +ac_ct_CXX = @ac_ct_CXX@
  38921. +ac_ct_F77 = @ac_ct_F77@
  38922. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  38923. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  38924. +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  38925. +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  38926. +am__include = @am__include@
  38927. +am__leading_dot = @am__leading_dot@
  38928. +am__quote = @am__quote@
  38929. +am__tar = @am__tar@
  38930. +am__untar = @am__untar@
  38931. +bindir = @bindir@
  38932. +build = @build@
  38933. +build_alias = @build_alias@
  38934. +build_cpu = @build_cpu@
  38935. +build_os = @build_os@
  38936. +build_vendor = @build_vendor@
  38937. +datadir = @datadir@
  38938. +datarootdir = @datarootdir@
  38939. +docdir = @docdir@
  38940. +dvidir = @dvidir@
  38941. +exec_prefix = @exec_prefix@
  38942. +host = @host@
  38943. +host_alias = @host_alias@
  38944. +host_cpu = @host_cpu@
  38945. +host_os = @host_os@
  38946. +host_vendor = @host_vendor@
  38947. +htmldir = @htmldir@
  38948. +includedir = @includedir@
  38949. +infodir = @infodir@
  38950. +install_sh = @install_sh@
  38951. +libdir = @libdir@
  38952. +libexecdir = @libexecdir@
  38953. +localedir = @localedir@
  38954. +localstatedir = @localstatedir@
  38955. +mandir = @mandir@
  38956. +mkdir_p = @mkdir_p@
  38957. +oldincludedir = @oldincludedir@
  38958. +pdfdir = @pdfdir@
  38959. +prefix = @prefix@
  38960. +program_transform_name = @program_transform_name@
  38961. +psdir = @psdir@
  38962. +sbindir = @sbindir@
  38963. +sharedstatedir = @sharedstatedir@
  38964. +sysconfdir = @sysconfdir@
  38965. +target = @target@
  38966. +target_alias = @target_alias@
  38967. +target_cpu = @target_cpu@
  38968. +target_os = @target_os@
  38969. +target_vendor = @target_vendor@
  38970. include_HEADERS = atm.h atmd.h atmsap.h
  38971. noinst_HEADERS = stdint.h
  38972. -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  38973. -CONFIG_HEADER = ../../config.h
  38974. -CONFIG_CLEAN_FILES =
  38975. -HEADERS = $(include_HEADERS) $(noinst_HEADERS)
  38976. -
  38977. -DIST_COMMON = Makefile.am Makefile.in
  38978. -
  38979. +all: all-am
  38980. -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  38981. -
  38982. -TAR = tar
  38983. -GZIP_ENV = --best
  38984. -all: all-redirect
  38985. .SUFFIXES:
  38986. -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  38987. - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile
  38988. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  38989. + @for dep in $?; do \
  38990. + case '$(am__configure_deps)' in \
  38991. + *$$dep*) \
  38992. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  38993. + && exit 0; \
  38994. + exit 1;; \
  38995. + esac; \
  38996. + done; \
  38997. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile'; \
  38998. + cd $(top_srcdir) && \
  38999. + $(AUTOMAKE) --gnu src/include/Makefile
  39000. +.PRECIOUS: Makefile
  39001. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  39002. + @case '$?' in \
  39003. + *config.status*) \
  39004. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  39005. + *) \
  39006. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  39007. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  39008. + esac;
  39009. +
  39010. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  39011. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  39012. +
  39013. +$(top_srcdir)/configure: $(am__configure_deps)
  39014. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  39015. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  39016. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  39017. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  39018. - cd $(top_builddir) \
  39019. - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  39020. +mostlyclean-libtool:
  39021. + -rm -f *.lo
  39022. +clean-libtool:
  39023. + -rm -rf .libs _libs
  39024. +distclean-libtool:
  39025. + -rm -f libtool
  39026. +uninstall-info-am:
  39027. install-includeHEADERS: $(include_HEADERS)
  39028. @$(NORMAL_INSTALL)
  39029. - $(mkinstalldirs) $(DESTDIR)$(includedir)
  39030. + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  39031. @list='$(include_HEADERS)'; for p in $$list; do \
  39032. - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
  39033. - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
  39034. - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
  39035. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  39036. + f=$(am__strip_dir) \
  39037. + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  39038. + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  39039. done
  39040. uninstall-includeHEADERS:
  39041. @$(NORMAL_UNINSTALL)
  39042. - list='$(include_HEADERS)'; for p in $$list; do \
  39043. - rm -f $(DESTDIR)$(includedir)/$$p; \
  39044. + @list='$(include_HEADERS)'; for p in $$list; do \
  39045. + f=$(am__strip_dir) \
  39046. + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  39047. + rm -f "$(DESTDIR)$(includedir)/$$f"; \
  39048. done
  39049. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  39050. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  39051. + unique=`for i in $$list; do \
  39052. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  39053. + done | \
  39054. + $(AWK) ' { files[$$0] = 1; } \
  39055. + END { for (i in files) print i; }'`; \
  39056. + mkid -fID $$unique
  39057. tags: TAGS
  39058. -ID: $(HEADERS) $(SOURCES) $(LISP)
  39059. - list='$(SOURCES) $(HEADERS)'; \
  39060. - unique=`for i in $$list; do echo $$i; done | \
  39061. - awk ' { files[$$0] = 1; } \
  39062. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  39063. + $(TAGS_FILES) $(LISP)
  39064. + tags=; \
  39065. + here=`pwd`; \
  39066. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  39067. + unique=`for i in $$list; do \
  39068. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  39069. + done | \
  39070. + $(AWK) ' { files[$$0] = 1; } \
  39071. END { for (i in files) print i; }'`; \
  39072. - here=`pwd` && cd $(srcdir) \
  39073. - && mkid -f$$here/ID $$unique $(LISP)
  39074. -
  39075. -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
  39076. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  39077. + test -n "$$unique" || unique=$$empty_fix; \
  39078. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  39079. + $$tags $$unique; \
  39080. + fi
  39081. +ctags: CTAGS
  39082. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  39083. + $(TAGS_FILES) $(LISP)
  39084. tags=; \
  39085. here=`pwd`; \
  39086. - list='$(SOURCES) $(HEADERS)'; \
  39087. - unique=`for i in $$list; do echo $$i; done | \
  39088. - awk ' { files[$$0] = 1; } \
  39089. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  39090. + unique=`for i in $$list; do \
  39091. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  39092. + done | \
  39093. + $(AWK) ' { files[$$0] = 1; } \
  39094. END { for (i in files) print i; }'`; \
  39095. - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  39096. - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  39097. -
  39098. -mostlyclean-tags:
  39099. -
  39100. -clean-tags:
  39101. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  39102. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  39103. + $$tags $$unique
  39104. +
  39105. +GTAGS:
  39106. + here=`$(am__cd) $(top_builddir) && pwd` \
  39107. + && cd $(top_srcdir) \
  39108. + && gtags -i $(GTAGS_ARGS) $$here
  39109. distclean-tags:
  39110. - -rm -f TAGS ID
  39111. -
  39112. -maintainer-clean-tags:
  39113. -
  39114. -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  39115. -
  39116. -subdir = src/include
  39117. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  39118. distdir: $(DISTFILES)
  39119. - here=`cd $(top_builddir) && pwd`; \
  39120. - top_distdir=`cd $(top_distdir) && pwd`; \
  39121. - distdir=`cd $(distdir) && pwd`; \
  39122. - cd $(top_srcdir) \
  39123. - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/include/Makefile
  39124. - @for file in $(DISTFILES); do \
  39125. - d=$(srcdir); \
  39126. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  39127. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  39128. + list='$(DISTFILES)'; for file in $$list; do \
  39129. + case $$file in \
  39130. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  39131. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  39132. + esac; \
  39133. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  39134. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  39135. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  39136. + dir="/$$dir"; \
  39137. + $(mkdir_p) "$(distdir)$$dir"; \
  39138. + else \
  39139. + dir=''; \
  39140. + fi; \
  39141. if test -d $$d/$$file; then \
  39142. - cp -pr $$d/$$file $(distdir)/$$file; \
  39143. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  39144. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  39145. + fi; \
  39146. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  39147. else \
  39148. test -f $(distdir)/$$file \
  39149. - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  39150. - || cp -p $$d/$$file $(distdir)/$$file || :; \
  39151. + || cp -p $$d/$$file $(distdir)/$$file \
  39152. + || exit 1; \
  39153. fi; \
  39154. done
  39155. -info-am:
  39156. -info: info-am
  39157. -dvi-am:
  39158. -dvi: dvi-am
  39159. check-am: all-am
  39160. check: check-am
  39161. -installcheck-am:
  39162. -installcheck: installcheck-am
  39163. -install-exec-am:
  39164. +all-am: Makefile $(HEADERS)
  39165. +installdirs:
  39166. + for dir in "$(DESTDIR)$(includedir)"; do \
  39167. + test -z "$$dir" || $(mkdir_p) "$$dir"; \
  39168. + done
  39169. +install: install-am
  39170. install-exec: install-exec-am
  39171. -
  39172. -install-data-am: install-includeHEADERS
  39173. install-data: install-data-am
  39174. +uninstall: uninstall-am
  39175. install-am: all-am
  39176. @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  39177. -install: install-am
  39178. -uninstall-am: uninstall-includeHEADERS
  39179. -uninstall: uninstall-am
  39180. -all-am: Makefile $(HEADERS)
  39181. -all-redirect: all-am
  39182. -install-strip:
  39183. - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  39184. -installdirs:
  39185. - $(mkinstalldirs) $(DESTDIR)$(includedir)
  39186. -
  39187. +installcheck: installcheck-am
  39188. +install-strip:
  39189. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  39190. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  39191. + `test -z '$(STRIP)' || \
  39192. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  39193. mostlyclean-generic:
  39194. clean-generic:
  39195. distclean-generic:
  39196. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  39197. - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  39198. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  39199. maintainer-clean-generic:
  39200. -mostlyclean-am: mostlyclean-tags mostlyclean-generic
  39201. + @echo "This command is intended for maintainers to use"
  39202. + @echo "it deletes files that may require special tools to rebuild."
  39203. +clean: clean-am
  39204. -mostlyclean: mostlyclean-am
  39205. +clean-am: clean-generic clean-libtool mostlyclean-am
  39206. -clean-am: clean-tags clean-generic mostlyclean-am
  39207. +distclean: distclean-am
  39208. + -rm -f Makefile
  39209. +distclean-am: clean-am distclean-generic distclean-libtool \
  39210. + distclean-tags
  39211. -clean: clean-am
  39212. +dvi: dvi-am
  39213. -distclean-am: distclean-tags distclean-generic clean-am
  39214. - -rm -f libtool
  39215. +dvi-am:
  39216. -distclean: distclean-am
  39217. +html: html-am
  39218. -maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
  39219. - distclean-am
  39220. - @echo "This command is intended for maintainers to use;"
  39221. - @echo "it deletes files that may require special tools to rebuild."
  39222. +info: info-am
  39223. +
  39224. +info-am:
  39225. +
  39226. +install-data-am: install-includeHEADERS
  39227. +
  39228. +install-exec-am:
  39229. +
  39230. +install-info: install-info-am
  39231. +
  39232. +install-man:
  39233. +
  39234. +installcheck-am:
  39235. maintainer-clean: maintainer-clean-am
  39236. + -rm -f Makefile
  39237. +maintainer-clean-am: distclean-am maintainer-clean-generic
  39238. +
  39239. +mostlyclean: mostlyclean-am
  39240. +
  39241. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  39242. +
  39243. +pdf: pdf-am
  39244. +
  39245. +pdf-am:
  39246. +
  39247. +ps: ps-am
  39248. +
  39249. +ps-am:
  39250. -.PHONY: uninstall-includeHEADERS install-includeHEADERS tags \
  39251. -mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
  39252. -distdir info-am info dvi-am dvi check check-am installcheck-am \
  39253. -installcheck install-exec-am install-exec install-data-am install-data \
  39254. -install-am install uninstall-am uninstall all-redirect all-am all \
  39255. -installdirs mostlyclean-generic distclean-generic clean-generic \
  39256. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  39257. +uninstall-am: uninstall-includeHEADERS uninstall-info-am
  39258. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  39259. + clean-libtool ctags distclean distclean-generic \
  39260. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  39261. + html-am info info-am install install-am install-data \
  39262. + install-data-am install-exec install-exec-am \
  39263. + install-includeHEADERS install-info install-info-am \
  39264. + install-man install-strip installcheck installcheck-am \
  39265. + installdirs maintainer-clean maintainer-clean-generic \
  39266. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  39267. + ps ps-am tags uninstall uninstall-am uninstall-includeHEADERS \
  39268. + uninstall-info-am
  39269. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  39270. # Otherwise a system limit (for SysV at least) may be exceeded.
  39271. Index: linux-atm-2.4.1/src/lib/Makefile.am
  39272. ===================================================================
  39273. --- linux-atm-2.4.1.orig/src/lib/Makefile.am 2007-10-20 21:45:34.310787689 +0200
  39274. +++ linux-atm-2.4.1/src/lib/Makefile.am 2007-10-20 21:45:44.319358043 +0200
  39275. @@ -2,7 +2,7 @@
  39276. lib_LTLIBRARIES = libatm.la
  39277. # ATMLIBS_VERSION comes from configure.in in the toplevel directory
  39278. -LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
  39279. +AM_LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
  39280. Index: linux-atm-2.4.1/src/lib/Makefile.in
  39281. ===================================================================
  39282. --- linux-atm-2.4.1.orig/src/lib/Makefile.in 2007-10-20 21:45:35.738869071 +0200
  39283. +++ linux-atm-2.4.1/src/lib/Makefile.in 2007-10-20 21:45:44.323358271 +0200
  39284. @@ -1,6 +1,8 @@
  39285. -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  39286. +# Makefile.in generated by automake 1.9.6 from Makefile.am.
  39287. +# @configure_input@
  39288. -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  39289. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  39290. +# 2003, 2004, 2005 Free Software Foundation, Inc.
  39291. # This Makefile.in is free software; the Free Software Foundation
  39292. # gives unlimited permission to copy and/or distribute it,
  39293. # with or without modifications, as long as this notice is preserved.
  39294. @@ -10,200 +12,310 @@
  39295. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  39296. # PARTICULAR PURPOSE.
  39297. -#lib_LTLIBRARIES = libatm.la libatmd.la
  39298. -
  39299. -
  39300. -SHELL = @SHELL@
  39301. +@SET_MAKE@
  39302. srcdir = @srcdir@
  39303. top_srcdir = @top_srcdir@
  39304. VPATH = @srcdir@
  39305. -prefix = @prefix@
  39306. -exec_prefix = @exec_prefix@
  39307. -
  39308. -bindir = @bindir@
  39309. -sbindir = @sbindir@
  39310. -libexecdir = @libexecdir@
  39311. -datadir = @datadir@
  39312. -sysconfdir = @sysconfdir@
  39313. -sharedstatedir = @sharedstatedir@
  39314. -localstatedir = @localstatedir@
  39315. -libdir = @libdir@
  39316. -infodir = @infodir@
  39317. -mandir = @mandir@
  39318. -includedir = @includedir@
  39319. -oldincludedir = /usr/include
  39320. -
  39321. -DESTDIR =
  39322. -
  39323. pkgdatadir = $(datadir)/@PACKAGE@
  39324. pkglibdir = $(libdir)/@PACKAGE@
  39325. pkgincludedir = $(includedir)/@PACKAGE@
  39326. -
  39327. top_builddir = ../..
  39328. -
  39329. -ACLOCAL = @ACLOCAL@
  39330. -AUTOCONF = @AUTOCONF@
  39331. -AUTOMAKE = @AUTOMAKE@
  39332. -AUTOHEADER = @AUTOHEADER@
  39333. -
  39334. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  39335. INSTALL = @INSTALL@
  39336. -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
  39337. -INSTALL_DATA = @INSTALL_DATA@
  39338. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  39339. -transform = @program_transform_name@
  39340. -
  39341. +install_sh_DATA = $(install_sh) -c -m 644
  39342. +install_sh_PROGRAM = $(install_sh) -c
  39343. +install_sh_SCRIPT = $(install_sh) -c
  39344. +INSTALL_HEADER = $(INSTALL_DATA)
  39345. +transform = $(program_transform_name)
  39346. NORMAL_INSTALL = :
  39347. PRE_INSTALL = :
  39348. POST_INSTALL = :
  39349. NORMAL_UNINSTALL = :
  39350. PRE_UNINSTALL = :
  39351. POST_UNINSTALL = :
  39352. -build_alias = @build_alias@
  39353. build_triplet = @build@
  39354. -host_alias = @host_alias@
  39355. host_triplet = @host@
  39356. -target_alias = @target_alias@
  39357. target_triplet = @target@
  39358. +subdir = src/lib
  39359. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  39360. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  39361. +am__aclocal_m4_deps = $(top_srcdir)/configure.in
  39362. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  39363. + $(ACLOCAL_M4)
  39364. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  39365. +CONFIG_HEADER = $(top_builddir)/config.h
  39366. +CONFIG_CLEAN_FILES =
  39367. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  39368. +am__vpath_adj = case $$p in \
  39369. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  39370. + *) f=$$p;; \
  39371. + esac;
  39372. +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  39373. +am__installdirs = "$(DESTDIR)$(libdir)"
  39374. +libLTLIBRARIES_INSTALL = $(INSTALL)
  39375. +LTLIBRARIES = $(lib_LTLIBRARIES)
  39376. +am_libatm_la_OBJECTS = text2atm.lo atm2text.lo atmequal.lo sdu2cell.lo \
  39377. + text2qos.lo qos2text.lo qosequal.lo sap2text.lo text2sap.lo \
  39378. + sapequal.lo misc.lo ans.lo common.lo diag.lo kptr.lo \
  39379. + text2ip.lo timer.lo unix.lo
  39380. +libatm_la_OBJECTS = $(am_libatm_la_OBJECTS)
  39381. +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  39382. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  39383. +am__depfiles_maybe = depfiles
  39384. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  39385. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  39386. +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  39387. + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  39388. + $(AM_CFLAGS) $(CFLAGS)
  39389. +CCLD = $(CC)
  39390. +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  39391. + $(AM_LDFLAGS) $(LDFLAGS) -o $@
  39392. +SOURCES = $(libatm_la_SOURCES)
  39393. +DIST_SOURCES = $(libatm_la_SOURCES)
  39394. +ETAGS = etags
  39395. +CTAGS = ctags
  39396. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  39397. +ACLOCAL = @ACLOCAL@
  39398. +AMDEP_FALSE = @AMDEP_FALSE@
  39399. +AMDEP_TRUE = @AMDEP_TRUE@
  39400. +AMTAR = @AMTAR@
  39401. AR = @AR@
  39402. -AS = @AS@
  39403. +AUTOCONF = @AUTOCONF@
  39404. +AUTOHEADER = @AUTOHEADER@
  39405. +AUTOMAKE = @AUTOMAKE@
  39406. +AWK = @AWK@
  39407. CC = @CC@
  39408. +CCDEPMODE = @CCDEPMODE@
  39409. +CFLAGS = @CFLAGS@
  39410. +CPP = @CPP@
  39411. +CPPFLAGS = @CPPFLAGS@
  39412. CXX = @CXX@
  39413. CXXCPP = @CXXCPP@
  39414. -DLLTOOL = @DLLTOOL@
  39415. +CXXDEPMODE = @CXXDEPMODE@
  39416. +CXXFLAGS = @CXXFLAGS@
  39417. +CYGPATH_W = @CYGPATH_W@
  39418. +DEFS = @DEFS@
  39419. +DEPDIR = @DEPDIR@
  39420. ECHO = @ECHO@
  39421. +ECHO_C = @ECHO_C@
  39422. +ECHO_N = @ECHO_N@
  39423. +ECHO_T = @ECHO_T@
  39424. EGREP = @EGREP@
  39425. EXEEXT = @EXEEXT@
  39426. F77 = @F77@
  39427. -GCJ = @GCJ@
  39428. -GCJFLAGS = @GCJFLAGS@
  39429. -HAVE_LIB = @HAVE_LIB@
  39430. +FFLAGS = @FFLAGS@
  39431. +GREP = @GREP@
  39432. +INSTALL_DATA = @INSTALL_DATA@
  39433. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  39434. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  39435. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  39436. +LDFLAGS = @LDFLAGS@
  39437. LEX = @LEX@
  39438. -LIB = @LIB@
  39439. +LEXLIB = @LEXLIB@
  39440. +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  39441. +LIBOBJS = @LIBOBJS@
  39442. +LIBS = @LIBS@
  39443. LIBTOOL = @LIBTOOL@
  39444. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  39445. LIBVER_AGE = @LIBVER_AGE@
  39446. LIBVER_CURRENT = @LIBVER_CURRENT@
  39447. LIBVER_REVISION = @LIBVER_REVISION@
  39448. LN_S = @LN_S@
  39449. -LTLIB = @LTLIB@
  39450. +LTLIBOBJS = @LTLIBOBJS@
  39451. MAKEINFO = @MAKEINFO@
  39452. -OBJDUMP = @OBJDUMP@
  39453. OBJEXT = @OBJEXT@
  39454. PACKAGE = @PACKAGE@
  39455. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  39456. +PACKAGE_NAME = @PACKAGE_NAME@
  39457. +PACKAGE_STRING = @PACKAGE_STRING@
  39458. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  39459. +PACKAGE_VERSION = @PACKAGE_VERSION@
  39460. +PATH_SEPARATOR = @PATH_SEPARATOR@
  39461. PERL = @PERL@
  39462. RANLIB = @RANLIB@
  39463. -RC = @RC@
  39464. +SET_MAKE = @SET_MAKE@
  39465. +SHELL = @SHELL@
  39466. STRIP = @STRIP@
  39467. VERSION = @VERSION@
  39468. YACC = @YACC@
  39469. +YFLAGS = @YFLAGS@
  39470. +ac_ct_CC = @ac_ct_CC@
  39471. +ac_ct_CXX = @ac_ct_CXX@
  39472. +ac_ct_F77 = @ac_ct_F77@
  39473. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  39474. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  39475. +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  39476. +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  39477. +am__include = @am__include@
  39478. +am__leading_dot = @am__leading_dot@
  39479. +am__quote = @am__quote@
  39480. +am__tar = @am__tar@
  39481. +am__untar = @am__untar@
  39482. +bindir = @bindir@
  39483. +build = @build@
  39484. +build_alias = @build_alias@
  39485. +build_cpu = @build_cpu@
  39486. +build_os = @build_os@
  39487. +build_vendor = @build_vendor@
  39488. +datadir = @datadir@
  39489. +datarootdir = @datarootdir@
  39490. +docdir = @docdir@
  39491. +dvidir = @dvidir@
  39492. +exec_prefix = @exec_prefix@
  39493. +host = @host@
  39494. +host_alias = @host_alias@
  39495. +host_cpu = @host_cpu@
  39496. +host_os = @host_os@
  39497. +host_vendor = @host_vendor@
  39498. +htmldir = @htmldir@
  39499. +includedir = @includedir@
  39500. +infodir = @infodir@
  39501. +install_sh = @install_sh@
  39502. +libdir = @libdir@
  39503. +libexecdir = @libexecdir@
  39504. +localedir = @localedir@
  39505. +localstatedir = @localstatedir@
  39506. +mandir = @mandir@
  39507. +mkdir_p = @mkdir_p@
  39508. +oldincludedir = @oldincludedir@
  39509. +pdfdir = @pdfdir@
  39510. +prefix = @prefix@
  39511. +program_transform_name = @program_transform_name@
  39512. +psdir = @psdir@
  39513. +sbindir = @sbindir@
  39514. +sharedstatedir = @sharedstatedir@
  39515. +sysconfdir = @sysconfdir@
  39516. +target = @target@
  39517. +target_alias = @target_alias@
  39518. +target_cpu = @target_cpu@
  39519. +target_os = @target_os@
  39520. +target_vendor = @target_vendor@
  39521. +#lib_LTLIBRARIES = libatm.la libatmd.la
  39522. lib_LTLIBRARIES = libatm.la
  39523. # ATMLIBS_VERSION comes from configure.in in the toplevel directory
  39524. -LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
  39525. -
  39526. -libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c qos2text.c qosequal.c sap2text.c text2sap.c sapequal.c misc.c atmres.h ans.c common.c diag.c kptr.c text2ip.c timer.c unix.c
  39527. +AM_LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
  39528. +libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
  39529. + qos2text.c qosequal.c sap2text.c text2sap.c sapequal.c \
  39530. + misc.c atmres.h ans.c \
  39531. + common.c diag.c kptr.c text2ip.c timer.c unix.c
  39532. libatm_la_LIBADD = -lresolv
  39533. -libatm_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h $(top_builddir)/src/include/atmsap.h $(top_builddir)/src/include/stdint.h $(top_builddir)/src/include/atmd.h
  39534. -
  39535. -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  39536. -CONFIG_HEADER = ../../config.h
  39537. -CONFIG_CLEAN_FILES =
  39538. -LTLIBRARIES = $(lib_LTLIBRARIES)
  39539. -
  39540. -
  39541. -DEFS = @DEFS@ -I. -I$(srcdir) -I../..
  39542. -CPPFLAGS = @CPPFLAGS@
  39543. -LIBS = @LIBS@
  39544. -libatm_la_LDFLAGS =
  39545. -libatm_la_OBJECTS = text2atm.lo atm2text.lo atmequal.lo sdu2cell.lo \
  39546. -text2qos.lo qos2text.lo qosequal.lo sap2text.lo text2sap.lo sapequal.lo \
  39547. -misc.lo ans.lo common.lo diag.lo kptr.lo text2ip.lo timer.lo unix.lo
  39548. -CFLAGS = @CFLAGS@
  39549. -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  39550. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  39551. -CCLD = $(CC)
  39552. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
  39553. -DIST_COMMON = Makefile.am Makefile.in
  39554. -
  39555. +libatm_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h \
  39556. + $(top_builddir)/src/include/atmsap.h \
  39557. + $(top_builddir)/src/include/stdint.h \
  39558. + $(top_builddir)/src/include/atmd.h
  39559. -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  39560. +all: all-am
  39561. -TAR = tar
  39562. -GZIP_ENV = --best
  39563. -DEP_FILES = .deps/ans.P .deps/atm2text.P .deps/atmequal.P \
  39564. -.deps/common.P .deps/diag.P .deps/kptr.P .deps/misc.P .deps/qos2text.P \
  39565. -.deps/qosequal.P .deps/sap2text.P .deps/sapequal.P .deps/sdu2cell.P \
  39566. -.deps/text2atm.P .deps/text2ip.P .deps/text2qos.P .deps/text2sap.P \
  39567. -.deps/timer.P .deps/unix.P
  39568. -SOURCES = $(libatm_la_SOURCES)
  39569. -OBJECTS = $(libatm_la_OBJECTS)
  39570. -
  39571. -all: all-redirect
  39572. .SUFFIXES:
  39573. -.SUFFIXES: .S .c .lo .o .obj .s
  39574. -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  39575. - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile
  39576. -
  39577. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  39578. - cd $(top_builddir) \
  39579. - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  39580. -
  39581. -
  39582. -mostlyclean-libLTLIBRARIES:
  39583. -
  39584. -clean-libLTLIBRARIES:
  39585. - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  39586. -
  39587. -distclean-libLTLIBRARIES:
  39588. -
  39589. -maintainer-clean-libLTLIBRARIES:
  39590. -
  39591. +.SUFFIXES: .c .lo .o .obj
  39592. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  39593. + @for dep in $?; do \
  39594. + case '$(am__configure_deps)' in \
  39595. + *$$dep*) \
  39596. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  39597. + && exit 0; \
  39598. + exit 1;; \
  39599. + esac; \
  39600. + done; \
  39601. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile'; \
  39602. + cd $(top_srcdir) && \
  39603. + $(AUTOMAKE) --gnu src/lib/Makefile
  39604. +.PRECIOUS: Makefile
  39605. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  39606. + @case '$?' in \
  39607. + *config.status*) \
  39608. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  39609. + *) \
  39610. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  39611. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  39612. + esac;
  39613. +
  39614. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  39615. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  39616. +
  39617. +$(top_srcdir)/configure: $(am__configure_deps)
  39618. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  39619. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  39620. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  39621. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  39622. @$(NORMAL_INSTALL)
  39623. - $(mkinstalldirs) $(DESTDIR)$(libdir)
  39624. + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  39625. @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  39626. if test -f $$p; then \
  39627. - echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
  39628. - $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
  39629. + f=$(am__strip_dir) \
  39630. + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  39631. + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  39632. else :; fi; \
  39633. done
  39634. uninstall-libLTLIBRARIES:
  39635. @$(NORMAL_UNINSTALL)
  39636. - list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  39637. - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
  39638. + @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  39639. + p=$(am__strip_dir) \
  39640. + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  39641. + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  39642. done
  39643. -# FIXME: We should only use cygpath when building on Windows,
  39644. -# and only if it is available.
  39645. -.c.obj:
  39646. - $(COMPILE) -c `cygpath -w $<`
  39647. -
  39648. -.s.o:
  39649. - $(COMPILE) -c $<
  39650. -
  39651. -.S.o:
  39652. - $(COMPILE) -c $<
  39653. +clean-libLTLIBRARIES:
  39654. + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  39655. + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  39656. + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  39657. + test "$$dir" != "$$p" || dir=.; \
  39658. + echo "rm -f \"$${dir}/so_locations\""; \
  39659. + rm -f "$${dir}/so_locations"; \
  39660. + done
  39661. +libatm.la: $(libatm_la_OBJECTS) $(libatm_la_DEPENDENCIES)
  39662. + $(LINK) -rpath $(libdir) $(libatm_la_LDFLAGS) $(libatm_la_OBJECTS) $(libatm_la_LIBADD) $(LIBS)
  39663. mostlyclean-compile:
  39664. - -rm -f *.o core *.core
  39665. -rm -f *.$(OBJEXT)
  39666. -clean-compile:
  39667. -
  39668. distclean-compile:
  39669. -rm -f *.tab.c
  39670. -maintainer-clean-compile:
  39671. -
  39672. -.s.lo:
  39673. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  39674. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ans.Plo@am__quote@
  39675. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atm2text.Plo@am__quote@
  39676. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atmequal.Plo@am__quote@
  39677. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Plo@am__quote@
  39678. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/diag.Plo@am__quote@
  39679. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kptr.Plo@am__quote@
  39680. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Plo@am__quote@
  39681. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qos2text.Plo@am__quote@
  39682. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qosequal.Plo@am__quote@
  39683. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sap2text.Plo@am__quote@
  39684. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sapequal.Plo@am__quote@
  39685. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sdu2cell.Plo@am__quote@
  39686. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2atm.Plo@am__quote@
  39687. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2ip.Plo@am__quote@
  39688. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2qos.Plo@am__quote@
  39689. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text2sap.Plo@am__quote@
  39690. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Plo@am__quote@
  39691. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unix.Plo@am__quote@
  39692. +
  39693. +.c.o:
  39694. +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  39695. +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  39696. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  39697. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  39698. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  39699. -.S.lo:
  39700. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  39701. +.c.obj:
  39702. +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  39703. +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  39704. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  39705. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  39706. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  39707. +
  39708. +.c.lo:
  39709. +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  39710. +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  39711. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  39712. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  39713. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  39714. mostlyclean-libtool:
  39715. -rm -f *.lo
  39716. @@ -212,169 +324,178 @@
  39717. -rm -rf .libs _libs
  39718. distclean-libtool:
  39719. + -rm -f libtool
  39720. +uninstall-info-am:
  39721. -maintainer-clean-libtool:
  39722. -
  39723. -libatm.la: $(libatm_la_OBJECTS) $(libatm_la_DEPENDENCIES)
  39724. - $(LINK) -rpath $(libdir) $(libatm_la_LDFLAGS) $(libatm_la_OBJECTS) $(libatm_la_LIBADD) $(LIBS)
  39725. -
  39726. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  39727. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  39728. + unique=`for i in $$list; do \
  39729. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  39730. + done | \
  39731. + $(AWK) ' { files[$$0] = 1; } \
  39732. + END { for (i in files) print i; }'`; \
  39733. + mkid -fID $$unique
  39734. tags: TAGS
  39735. -ID: $(HEADERS) $(SOURCES) $(LISP)
  39736. - list='$(SOURCES) $(HEADERS)'; \
  39737. - unique=`for i in $$list; do echo $$i; done | \
  39738. - awk ' { files[$$0] = 1; } \
  39739. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  39740. + $(TAGS_FILES) $(LISP)
  39741. + tags=; \
  39742. + here=`pwd`; \
  39743. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  39744. + unique=`for i in $$list; do \
  39745. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  39746. + done | \
  39747. + $(AWK) ' { files[$$0] = 1; } \
  39748. END { for (i in files) print i; }'`; \
  39749. - here=`pwd` && cd $(srcdir) \
  39750. - && mkid -f$$here/ID $$unique $(LISP)
  39751. -
  39752. -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
  39753. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  39754. + test -n "$$unique" || unique=$$empty_fix; \
  39755. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  39756. + $$tags $$unique; \
  39757. + fi
  39758. +ctags: CTAGS
  39759. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  39760. + $(TAGS_FILES) $(LISP)
  39761. tags=; \
  39762. here=`pwd`; \
  39763. - list='$(SOURCES) $(HEADERS)'; \
  39764. - unique=`for i in $$list; do echo $$i; done | \
  39765. - awk ' { files[$$0] = 1; } \
  39766. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  39767. + unique=`for i in $$list; do \
  39768. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  39769. + done | \
  39770. + $(AWK) ' { files[$$0] = 1; } \
  39771. END { for (i in files) print i; }'`; \
  39772. - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  39773. - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  39774. -
  39775. -mostlyclean-tags:
  39776. -
  39777. -clean-tags:
  39778. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  39779. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  39780. + $$tags $$unique
  39781. +
  39782. +GTAGS:
  39783. + here=`$(am__cd) $(top_builddir) && pwd` \
  39784. + && cd $(top_srcdir) \
  39785. + && gtags -i $(GTAGS_ARGS) $$here
  39786. distclean-tags:
  39787. - -rm -f TAGS ID
  39788. -
  39789. -maintainer-clean-tags:
  39790. -
  39791. -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  39792. -
  39793. -subdir = src/lib
  39794. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  39795. distdir: $(DISTFILES)
  39796. - here=`cd $(top_builddir) && pwd`; \
  39797. - top_distdir=`cd $(top_distdir) && pwd`; \
  39798. - distdir=`cd $(distdir) && pwd`; \
  39799. - cd $(top_srcdir) \
  39800. - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/lib/Makefile
  39801. - @for file in $(DISTFILES); do \
  39802. - d=$(srcdir); \
  39803. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  39804. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  39805. + list='$(DISTFILES)'; for file in $$list; do \
  39806. + case $$file in \
  39807. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  39808. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  39809. + esac; \
  39810. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  39811. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  39812. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  39813. + dir="/$$dir"; \
  39814. + $(mkdir_p) "$(distdir)$$dir"; \
  39815. + else \
  39816. + dir=''; \
  39817. + fi; \
  39818. if test -d $$d/$$file; then \
  39819. - cp -pr $$d/$$file $(distdir)/$$file; \
  39820. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  39821. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  39822. + fi; \
  39823. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  39824. else \
  39825. test -f $(distdir)/$$file \
  39826. - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  39827. - || cp -p $$d/$$file $(distdir)/$$file || :; \
  39828. + || cp -p $$d/$$file $(distdir)/$$file \
  39829. + || exit 1; \
  39830. fi; \
  39831. done
  39832. -
  39833. -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  39834. -
  39835. --include $(DEP_FILES)
  39836. -
  39837. -mostlyclean-depend:
  39838. -
  39839. -clean-depend:
  39840. -
  39841. -distclean-depend:
  39842. - -rm -rf .deps
  39843. -
  39844. -maintainer-clean-depend:
  39845. -
  39846. -%.o: %.c
  39847. - @echo '$(COMPILE) -c $<'; \
  39848. - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  39849. - @-cp .deps/$(*F).pp .deps/$(*F).P; \
  39850. - tr ' ' '\012' < .deps/$(*F).pp \
  39851. - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  39852. - >> .deps/$(*F).P; \
  39853. - rm .deps/$(*F).pp
  39854. -
  39855. -%.lo: %.c
  39856. - @echo '$(LTCOMPILE) -c $<'; \
  39857. - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  39858. - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  39859. - < .deps/$(*F).pp > .deps/$(*F).P; \
  39860. - tr ' ' '\012' < .deps/$(*F).pp \
  39861. - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  39862. - >> .deps/$(*F).P; \
  39863. - rm -f .deps/$(*F).pp
  39864. -info-am:
  39865. -info: info-am
  39866. -dvi-am:
  39867. -dvi: dvi-am
  39868. check-am: all-am
  39869. check: check-am
  39870. -installcheck-am:
  39871. -installcheck: installcheck-am
  39872. -install-exec-am: install-libLTLIBRARIES
  39873. +all-am: Makefile $(LTLIBRARIES)
  39874. +installdirs:
  39875. + for dir in "$(DESTDIR)$(libdir)"; do \
  39876. + test -z "$$dir" || $(mkdir_p) "$$dir"; \
  39877. + done
  39878. +install: install-am
  39879. install-exec: install-exec-am
  39880. -
  39881. -install-data-am:
  39882. install-data: install-data-am
  39883. +uninstall: uninstall-am
  39884. install-am: all-am
  39885. @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  39886. -install: install-am
  39887. -uninstall-am: uninstall-libLTLIBRARIES
  39888. -uninstall: uninstall-am
  39889. -all-am: Makefile $(LTLIBRARIES)
  39890. -all-redirect: all-am
  39891. -install-strip:
  39892. - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  39893. -installdirs:
  39894. - $(mkinstalldirs) $(DESTDIR)$(libdir)
  39895. -
  39896. +installcheck: installcheck-am
  39897. +install-strip:
  39898. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  39899. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  39900. + `test -z '$(STRIP)' || \
  39901. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  39902. mostlyclean-generic:
  39903. clean-generic:
  39904. distclean-generic:
  39905. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  39906. - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  39907. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  39908. maintainer-clean-generic:
  39909. -mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
  39910. - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  39911. - mostlyclean-generic
  39912. + @echo "This command is intended for maintainers to use"
  39913. + @echo "it deletes files that may require special tools to rebuild."
  39914. +clean: clean-am
  39915. -mostlyclean: mostlyclean-am
  39916. +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
  39917. + mostlyclean-am
  39918. -clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
  39919. - clean-depend clean-generic mostlyclean-am
  39920. +distclean: distclean-am
  39921. + -rm -rf ./$(DEPDIR)
  39922. + -rm -f Makefile
  39923. +distclean-am: clean-am distclean-compile distclean-generic \
  39924. + distclean-libtool distclean-tags
  39925. -clean: clean-am
  39926. +dvi: dvi-am
  39927. -distclean-am: distclean-libLTLIBRARIES distclean-compile \
  39928. - distclean-libtool distclean-tags distclean-depend \
  39929. - distclean-generic clean-am
  39930. - -rm -f libtool
  39931. +dvi-am:
  39932. -distclean: distclean-am
  39933. +html: html-am
  39934. -maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
  39935. - maintainer-clean-compile maintainer-clean-libtool \
  39936. - maintainer-clean-tags maintainer-clean-depend \
  39937. - maintainer-clean-generic distclean-am
  39938. - @echo "This command is intended for maintainers to use;"
  39939. - @echo "it deletes files that may require special tools to rebuild."
  39940. +info: info-am
  39941. +
  39942. +info-am:
  39943. +
  39944. +install-data-am:
  39945. +
  39946. +install-exec-am: install-libLTLIBRARIES
  39947. +
  39948. +install-info: install-info-am
  39949. +
  39950. +install-man:
  39951. +
  39952. +installcheck-am:
  39953. maintainer-clean: maintainer-clean-am
  39954. + -rm -rf ./$(DEPDIR)
  39955. + -rm -f Makefile
  39956. +maintainer-clean-am: distclean-am maintainer-clean-generic
  39957. +
  39958. +mostlyclean: mostlyclean-am
  39959. -.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
  39960. -clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
  39961. -uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
  39962. -distclean-compile clean-compile maintainer-clean-compile \
  39963. -mostlyclean-libtool distclean-libtool clean-libtool \
  39964. -maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
  39965. -clean-tags maintainer-clean-tags distdir mostlyclean-depend \
  39966. -distclean-depend clean-depend maintainer-clean-depend info-am info \
  39967. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  39968. -install-exec install-data-am install-data install-am install \
  39969. -uninstall-am uninstall all-redirect all-am all installdirs \
  39970. -mostlyclean-generic distclean-generic clean-generic \
  39971. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  39972. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  39973. + mostlyclean-libtool
  39974. +
  39975. +pdf: pdf-am
  39976. +
  39977. +pdf-am:
  39978. +
  39979. +ps: ps-am
  39980. +
  39981. +ps-am:
  39982. +
  39983. +uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
  39984. +
  39985. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  39986. + clean-libLTLIBRARIES clean-libtool ctags distclean \
  39987. + distclean-compile distclean-generic distclean-libtool \
  39988. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  39989. + install install-am install-data install-data-am install-exec \
  39990. + install-exec-am install-info install-info-am \
  39991. + install-libLTLIBRARIES install-man install-strip installcheck \
  39992. + installcheck-am installdirs maintainer-clean \
  39993. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  39994. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  39995. + tags uninstall uninstall-am uninstall-info-am \
  39996. + uninstall-libLTLIBRARIES
  39997. #libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
  39998. @@ -389,7 +510,6 @@
  39999. #libatmd_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h \
  40000. # $(top_builddir)/src/include/atmd.h \
  40001. # $(top_builddir)/src/include/stdint.h
  40002. -
  40003. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  40004. # Otherwise a system limit (for SysV at least) may be exceeded.
  40005. .NOEXPORT:
  40006. Index: linux-atm-2.4.1/src/Makefile.in
  40007. ===================================================================
  40008. --- linux-atm-2.4.1.orig/src/Makefile.in 2007-10-20 21:45:35.786871805 +0200
  40009. +++ linux-atm-2.4.1/src/Makefile.in 2007-10-20 21:45:44.327358500 +0200
  40010. @@ -1,6 +1,8 @@
  40011. -# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  40012. +# Makefile.in generated by automake 1.9.6 from Makefile.am.
  40013. +# @configure_input@
  40014. -# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  40015. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  40016. +# 2003, 2004, 2005 Free Software Foundation, Inc.
  40017. # This Makefile.in is free software; the Free Software Foundation
  40018. # gives unlimited permission to copy and/or distribute it,
  40019. # with or without modifications, as long as this notice is preserved.
  40020. @@ -10,112 +12,209 @@
  40021. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  40022. # PARTICULAR PURPOSE.
  40023. -
  40024. -SHELL = @SHELL@
  40025. -
  40026. +@SET_MAKE@
  40027. srcdir = @srcdir@
  40028. top_srcdir = @top_srcdir@
  40029. VPATH = @srcdir@
  40030. -prefix = @prefix@
  40031. -exec_prefix = @exec_prefix@
  40032. -
  40033. -bindir = @bindir@
  40034. -sbindir = @sbindir@
  40035. -libexecdir = @libexecdir@
  40036. -datadir = @datadir@
  40037. -sysconfdir = @sysconfdir@
  40038. -sharedstatedir = @sharedstatedir@
  40039. -localstatedir = @localstatedir@
  40040. -libdir = @libdir@
  40041. -infodir = @infodir@
  40042. -mandir = @mandir@
  40043. -includedir = @includedir@
  40044. -oldincludedir = /usr/include
  40045. -
  40046. -DESTDIR =
  40047. -
  40048. pkgdatadir = $(datadir)/@PACKAGE@
  40049. pkglibdir = $(libdir)/@PACKAGE@
  40050. pkgincludedir = $(includedir)/@PACKAGE@
  40051. -
  40052. top_builddir = ..
  40053. -
  40054. -ACLOCAL = @ACLOCAL@
  40055. -AUTOCONF = @AUTOCONF@
  40056. -AUTOMAKE = @AUTOMAKE@
  40057. -AUTOHEADER = @AUTOHEADER@
  40058. -
  40059. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  40060. INSTALL = @INSTALL@
  40061. -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
  40062. -INSTALL_DATA = @INSTALL_DATA@
  40063. -INSTALL_SCRIPT = @INSTALL_SCRIPT@
  40064. -transform = @program_transform_name@
  40065. -
  40066. +install_sh_DATA = $(install_sh) -c -m 644
  40067. +install_sh_PROGRAM = $(install_sh) -c
  40068. +install_sh_SCRIPT = $(install_sh) -c
  40069. +INSTALL_HEADER = $(INSTALL_DATA)
  40070. +transform = $(program_transform_name)
  40071. NORMAL_INSTALL = :
  40072. PRE_INSTALL = :
  40073. POST_INSTALL = :
  40074. NORMAL_UNINSTALL = :
  40075. PRE_UNINSTALL = :
  40076. POST_UNINSTALL = :
  40077. -build_alias = @build_alias@
  40078. build_triplet = @build@
  40079. -host_alias = @host_alias@
  40080. host_triplet = @host@
  40081. -target_alias = @target_alias@
  40082. target_triplet = @target@
  40083. +subdir = src
  40084. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  40085. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  40086. +am__aclocal_m4_deps = $(top_srcdir)/configure.in
  40087. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  40088. + $(ACLOCAL_M4)
  40089. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  40090. +CONFIG_HEADER = $(top_builddir)/config.h
  40091. +CONFIG_CLEAN_FILES =
  40092. +SOURCES =
  40093. +DIST_SOURCES =
  40094. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  40095. + html-recursive info-recursive install-data-recursive \
  40096. + install-exec-recursive install-info-recursive \
  40097. + install-recursive installcheck-recursive installdirs-recursive \
  40098. + pdf-recursive ps-recursive uninstall-info-recursive \
  40099. + uninstall-recursive
  40100. +ETAGS = etags
  40101. +CTAGS = ctags
  40102. +DIST_SUBDIRS = $(SUBDIRS)
  40103. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  40104. +ACLOCAL = @ACLOCAL@
  40105. +AMDEP_FALSE = @AMDEP_FALSE@
  40106. +AMDEP_TRUE = @AMDEP_TRUE@
  40107. +AMTAR = @AMTAR@
  40108. AR = @AR@
  40109. -AS = @AS@
  40110. +AUTOCONF = @AUTOCONF@
  40111. +AUTOHEADER = @AUTOHEADER@
  40112. +AUTOMAKE = @AUTOMAKE@
  40113. +AWK = @AWK@
  40114. CC = @CC@
  40115. +CCDEPMODE = @CCDEPMODE@
  40116. +CFLAGS = @CFLAGS@
  40117. +CPP = @CPP@
  40118. +CPPFLAGS = @CPPFLAGS@
  40119. CXX = @CXX@
  40120. CXXCPP = @CXXCPP@
  40121. -DLLTOOL = @DLLTOOL@
  40122. +CXXDEPMODE = @CXXDEPMODE@
  40123. +CXXFLAGS = @CXXFLAGS@
  40124. +CYGPATH_W = @CYGPATH_W@
  40125. +DEFS = @DEFS@
  40126. +DEPDIR = @DEPDIR@
  40127. ECHO = @ECHO@
  40128. +ECHO_C = @ECHO_C@
  40129. +ECHO_N = @ECHO_N@
  40130. +ECHO_T = @ECHO_T@
  40131. EGREP = @EGREP@
  40132. EXEEXT = @EXEEXT@
  40133. F77 = @F77@
  40134. -GCJ = @GCJ@
  40135. -GCJFLAGS = @GCJFLAGS@
  40136. -HAVE_LIB = @HAVE_LIB@
  40137. +FFLAGS = @FFLAGS@
  40138. +GREP = @GREP@
  40139. +INSTALL_DATA = @INSTALL_DATA@
  40140. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  40141. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  40142. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  40143. +LDFLAGS = @LDFLAGS@
  40144. LEX = @LEX@
  40145. -LIB = @LIB@
  40146. +LEXLIB = @LEXLIB@
  40147. +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  40148. +LIBOBJS = @LIBOBJS@
  40149. +LIBS = @LIBS@
  40150. LIBTOOL = @LIBTOOL@
  40151. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  40152. LIBVER_AGE = @LIBVER_AGE@
  40153. LIBVER_CURRENT = @LIBVER_CURRENT@
  40154. LIBVER_REVISION = @LIBVER_REVISION@
  40155. LN_S = @LN_S@
  40156. -LTLIB = @LTLIB@
  40157. +LTLIBOBJS = @LTLIBOBJS@
  40158. MAKEINFO = @MAKEINFO@
  40159. -OBJDUMP = @OBJDUMP@
  40160. OBJEXT = @OBJEXT@
  40161. PACKAGE = @PACKAGE@
  40162. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  40163. +PACKAGE_NAME = @PACKAGE_NAME@
  40164. +PACKAGE_STRING = @PACKAGE_STRING@
  40165. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  40166. +PACKAGE_VERSION = @PACKAGE_VERSION@
  40167. +PATH_SEPARATOR = @PATH_SEPARATOR@
  40168. PERL = @PERL@
  40169. RANLIB = @RANLIB@
  40170. -RC = @RC@
  40171. +SET_MAKE = @SET_MAKE@
  40172. +SHELL = @SHELL@
  40173. STRIP = @STRIP@
  40174. VERSION = @VERSION@
  40175. YACC = @YACC@
  40176. -
  40177. +YFLAGS = @YFLAGS@
  40178. +ac_ct_CC = @ac_ct_CC@
  40179. +ac_ct_CXX = @ac_ct_CXX@
  40180. +ac_ct_F77 = @ac_ct_F77@
  40181. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  40182. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  40183. +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  40184. +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  40185. +am__include = @am__include@
  40186. +am__leading_dot = @am__leading_dot@
  40187. +am__quote = @am__quote@
  40188. +am__tar = @am__tar@
  40189. +am__untar = @am__untar@
  40190. +bindir = @bindir@
  40191. +build = @build@
  40192. +build_alias = @build_alias@
  40193. +build_cpu = @build_cpu@
  40194. +build_os = @build_os@
  40195. +build_vendor = @build_vendor@
  40196. +datadir = @datadir@
  40197. +datarootdir = @datarootdir@
  40198. +docdir = @docdir@
  40199. +dvidir = @dvidir@
  40200. +exec_prefix = @exec_prefix@
  40201. +host = @host@
  40202. +host_alias = @host_alias@
  40203. +host_cpu = @host_cpu@
  40204. +host_os = @host_os@
  40205. +host_vendor = @host_vendor@
  40206. +htmldir = @htmldir@
  40207. +includedir = @includedir@
  40208. +infodir = @infodir@
  40209. +install_sh = @install_sh@
  40210. +libdir = @libdir@
  40211. +libexecdir = @libexecdir@
  40212. +localedir = @localedir@
  40213. +localstatedir = @localstatedir@
  40214. +mandir = @mandir@
  40215. +mkdir_p = @mkdir_p@
  40216. +oldincludedir = @oldincludedir@
  40217. +pdfdir = @pdfdir@
  40218. +prefix = @prefix@
  40219. +program_transform_name = @program_transform_name@
  40220. +psdir = @psdir@
  40221. +sbindir = @sbindir@
  40222. +sharedstatedir = @sharedstatedir@
  40223. +sysconfdir = @sysconfdir@
  40224. +target = @target@
  40225. +target_alias = @target_alias@
  40226. +target_cpu = @target_cpu@
  40227. +target_os = @target_os@
  40228. +target_vendor = @target_vendor@
  40229. SUBDIRS = include lib arpd
  40230. -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  40231. -CONFIG_HEADER = ../config.h
  40232. -CONFIG_CLEAN_FILES =
  40233. -DIST_COMMON = Makefile.am Makefile.in
  40234. -
  40235. +all: all-recursive
  40236. -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  40237. -
  40238. -TAR = tar
  40239. -GZIP_ENV = --best
  40240. -all: all-redirect
  40241. .SUFFIXES:
  40242. -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  40243. - cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile
  40244. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  40245. + @for dep in $?; do \
  40246. + case '$(am__configure_deps)' in \
  40247. + *$$dep*) \
  40248. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  40249. + && exit 0; \
  40250. + exit 1;; \
  40251. + esac; \
  40252. + done; \
  40253. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  40254. + cd $(top_srcdir) && \
  40255. + $(AUTOMAKE) --gnu src/Makefile
  40256. +.PRECIOUS: Makefile
  40257. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  40258. + @case '$?' in \
  40259. + *config.status*) \
  40260. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  40261. + *) \
  40262. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  40263. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  40264. + esac;
  40265. +
  40266. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  40267. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  40268. +
  40269. +$(top_srcdir)/configure: $(am__configure_deps)
  40270. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  40271. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  40272. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  40273. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  40274. - cd $(top_builddir) \
  40275. - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  40276. +mostlyclean-libtool:
  40277. + -rm -f *.lo
  40278. +clean-libtool:
  40279. + -rm -rf .libs _libs
  40280. +
  40281. +distclean-libtool:
  40282. + -rm -f libtool
  40283. +uninstall-info-am:
  40284. # This directory's subdirectories are mostly independent; you can cd
  40285. # into them and run `make' without going through this Makefile.
  40286. @@ -123,13 +222,14 @@
  40287. # (1) if the variable is set in `config.status', edit `config.status'
  40288. # (which will cause the Makefiles to be regenerated when you run `make');
  40289. # (2) otherwise, pass the desired values on the `make' command line.
  40290. -
  40291. -@SET_MAKE@
  40292. -
  40293. -all-recursive install-data-recursive install-exec-recursive \
  40294. -installdirs-recursive install-recursive uninstall-recursive \
  40295. -check-recursive installcheck-recursive info-recursive dvi-recursive:
  40296. - @set fnord $(MAKEFLAGS); amf=$$2; \
  40297. +$(RECURSIVE_TARGETS):
  40298. + @failcom='exit 1'; \
  40299. + for f in x $$MAKEFLAGS; do \
  40300. + case $$f in \
  40301. + *=* | --[!k]*);; \
  40302. + *k*) failcom='fail=yes';; \
  40303. + esac; \
  40304. + done; \
  40305. dot_seen=no; \
  40306. target=`echo $@ | sed s/-recursive//`; \
  40307. list='$(SUBDIRS)'; for subdir in $$list; do \
  40308. @@ -141,7 +241,7 @@
  40309. local_target="$$target"; \
  40310. fi; \
  40311. (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  40312. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  40313. + || eval $$failcom; \
  40314. done; \
  40315. if test "$$dot_seen" = "no"; then \
  40316. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  40317. @@ -149,13 +249,24 @@
  40318. mostlyclean-recursive clean-recursive distclean-recursive \
  40319. maintainer-clean-recursive:
  40320. - @set fnord $(MAKEFLAGS); amf=$$2; \
  40321. + @failcom='exit 1'; \
  40322. + for f in x $$MAKEFLAGS; do \
  40323. + case $$f in \
  40324. + *=* | --[!k]*);; \
  40325. + *k*) failcom='fail=yes';; \
  40326. + esac; \
  40327. + done; \
  40328. dot_seen=no; \
  40329. - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
  40330. - rev="$$subdir $$rev"; \
  40331. - test "$$subdir" != "." || dot_seen=yes; \
  40332. + case "$@" in \
  40333. + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  40334. + *) list='$(SUBDIRS)' ;; \
  40335. + esac; \
  40336. + rev=''; for subdir in $$list; do \
  40337. + if test "$$subdir" = "."; then :; else \
  40338. + rev="$$subdir $$rev"; \
  40339. + fi; \
  40340. done; \
  40341. - test "$$dot_seen" = "no" && rev=". $$rev"; \
  40342. + rev="$$rev ."; \
  40343. target=`echo $@ | sed s/-recursive//`; \
  40344. for subdir in $$rev; do \
  40345. echo "Making $$target in $$subdir"; \
  40346. @@ -165,146 +276,210 @@
  40347. local_target="$$target"; \
  40348. fi; \
  40349. (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  40350. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  40351. + || eval $$failcom; \
  40352. done && test -z "$$fail"
  40353. tags-recursive:
  40354. list='$(SUBDIRS)'; for subdir in $$list; do \
  40355. test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  40356. done
  40357. +ctags-recursive:
  40358. + list='$(SUBDIRS)'; for subdir in $$list; do \
  40359. + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  40360. + done
  40361. -tags: TAGS
  40362. -
  40363. -ID: $(HEADERS) $(SOURCES) $(LISP)
  40364. - list='$(SOURCES) $(HEADERS)'; \
  40365. - unique=`for i in $$list; do echo $$i; done | \
  40366. - awk ' { files[$$0] = 1; } \
  40367. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  40368. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  40369. + unique=`for i in $$list; do \
  40370. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  40371. + done | \
  40372. + $(AWK) ' { files[$$0] = 1; } \
  40373. END { for (i in files) print i; }'`; \
  40374. - here=`pwd` && cd $(srcdir) \
  40375. - && mkid -f$$here/ID $$unique $(LISP)
  40376. + mkid -fID $$unique
  40377. +tags: TAGS
  40378. -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
  40379. +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  40380. + $(TAGS_FILES) $(LISP)
  40381. tags=; \
  40382. here=`pwd`; \
  40383. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  40384. + include_option=--etags-include; \
  40385. + empty_fix=.; \
  40386. + else \
  40387. + include_option=--include; \
  40388. + empty_fix=; \
  40389. + fi; \
  40390. list='$(SUBDIRS)'; for subdir in $$list; do \
  40391. - if test "$$subdir" = .; then :; else \
  40392. - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
  40393. - fi; \
  40394. + if test "$$subdir" = .; then :; else \
  40395. + test ! -f $$subdir/TAGS || \
  40396. + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  40397. + fi; \
  40398. done; \
  40399. - list='$(SOURCES) $(HEADERS)'; \
  40400. - unique=`for i in $$list; do echo $$i; done | \
  40401. - awk ' { files[$$0] = 1; } \
  40402. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  40403. + unique=`for i in $$list; do \
  40404. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  40405. + done | \
  40406. + $(AWK) ' { files[$$0] = 1; } \
  40407. END { for (i in files) print i; }'`; \
  40408. - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  40409. - || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  40410. -
  40411. -mostlyclean-tags:
  40412. -
  40413. -clean-tags:
  40414. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  40415. + test -n "$$unique" || unique=$$empty_fix; \
  40416. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  40417. + $$tags $$unique; \
  40418. + fi
  40419. +ctags: CTAGS
  40420. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  40421. + $(TAGS_FILES) $(LISP)
  40422. + tags=; \
  40423. + here=`pwd`; \
  40424. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  40425. + unique=`for i in $$list; do \
  40426. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  40427. + done | \
  40428. + $(AWK) ' { files[$$0] = 1; } \
  40429. + END { for (i in files) print i; }'`; \
  40430. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  40431. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  40432. + $$tags $$unique
  40433. +
  40434. +GTAGS:
  40435. + here=`$(am__cd) $(top_builddir) && pwd` \
  40436. + && cd $(top_srcdir) \
  40437. + && gtags -i $(GTAGS_ARGS) $$here
  40438. distclean-tags:
  40439. - -rm -f TAGS ID
  40440. -
  40441. -maintainer-clean-tags:
  40442. -
  40443. -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  40444. -
  40445. -subdir = src
  40446. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  40447. distdir: $(DISTFILES)
  40448. - here=`cd $(top_builddir) && pwd`; \
  40449. - top_distdir=`cd $(top_distdir) && pwd`; \
  40450. - distdir=`cd $(distdir) && pwd`; \
  40451. - cd $(top_srcdir) \
  40452. - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile
  40453. - @for file in $(DISTFILES); do \
  40454. - d=$(srcdir); \
  40455. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  40456. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  40457. + list='$(DISTFILES)'; for file in $$list; do \
  40458. + case $$file in \
  40459. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  40460. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  40461. + esac; \
  40462. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  40463. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  40464. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  40465. + dir="/$$dir"; \
  40466. + $(mkdir_p) "$(distdir)$$dir"; \
  40467. + else \
  40468. + dir=''; \
  40469. + fi; \
  40470. if test -d $$d/$$file; then \
  40471. - cp -pr $$d/$$file $(distdir)/$$file; \
  40472. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  40473. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  40474. + fi; \
  40475. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  40476. else \
  40477. test -f $(distdir)/$$file \
  40478. - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  40479. - || cp -p $$d/$$file $(distdir)/$$file || :; \
  40480. + || cp -p $$d/$$file $(distdir)/$$file \
  40481. + || exit 1; \
  40482. fi; \
  40483. done
  40484. - for subdir in $(SUBDIRS); do \
  40485. + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  40486. if test "$$subdir" = .; then :; else \
  40487. - test -d $(distdir)/$$subdir \
  40488. - || mkdir $(distdir)/$$subdir \
  40489. + test -d "$(distdir)/$$subdir" \
  40490. + || $(mkdir_p) "$(distdir)/$$subdir" \
  40491. || exit 1; \
  40492. - chmod 777 $(distdir)/$$subdir; \
  40493. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
  40494. + distdir=`$(am__cd) $(distdir) && pwd`; \
  40495. + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  40496. + (cd $$subdir && \
  40497. + $(MAKE) $(AM_MAKEFLAGS) \
  40498. + top_distdir="$$top_distdir" \
  40499. + distdir="$$distdir/$$subdir" \
  40500. + distdir) \
  40501. || exit 1; \
  40502. fi; \
  40503. done
  40504. -info-am:
  40505. -info: info-recursive
  40506. -dvi-am:
  40507. -dvi: dvi-recursive
  40508. check-am: all-am
  40509. check: check-recursive
  40510. -installcheck-am:
  40511. -installcheck: installcheck-recursive
  40512. -install-exec-am:
  40513. +all-am: Makefile
  40514. +installdirs: installdirs-recursive
  40515. +installdirs-am:
  40516. +install: install-recursive
  40517. install-exec: install-exec-recursive
  40518. -
  40519. -install-data-am:
  40520. install-data: install-data-recursive
  40521. +uninstall: uninstall-recursive
  40522. install-am: all-am
  40523. @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  40524. -install: install-recursive
  40525. -uninstall-am:
  40526. -uninstall: uninstall-recursive
  40527. -all-am: Makefile
  40528. -all-redirect: all-recursive
  40529. -install-strip:
  40530. - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  40531. -installdirs: installdirs-recursive
  40532. -installdirs-am:
  40533. -
  40534. +installcheck: installcheck-recursive
  40535. +install-strip:
  40536. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  40537. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  40538. + `test -z '$(STRIP)' || \
  40539. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  40540. mostlyclean-generic:
  40541. clean-generic:
  40542. distclean-generic:
  40543. - -rm -f Makefile $(CONFIG_CLEAN_FILES)
  40544. - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  40545. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  40546. maintainer-clean-generic:
  40547. -mostlyclean-am: mostlyclean-tags mostlyclean-generic
  40548. + @echo "This command is intended for maintainers to use"
  40549. + @echo "it deletes files that may require special tools to rebuild."
  40550. +clean: clean-recursive
  40551. -mostlyclean: mostlyclean-recursive
  40552. +clean-am: clean-generic clean-libtool mostlyclean-am
  40553. -clean-am: clean-tags clean-generic mostlyclean-am
  40554. +distclean: distclean-recursive
  40555. + -rm -f Makefile
  40556. +distclean-am: clean-am distclean-generic distclean-libtool \
  40557. + distclean-tags
  40558. -clean: clean-recursive
  40559. +dvi: dvi-recursive
  40560. -distclean-am: distclean-tags distclean-generic clean-am
  40561. - -rm -f libtool
  40562. +dvi-am:
  40563. -distclean: distclean-recursive
  40564. +html: html-recursive
  40565. -maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
  40566. - distclean-am
  40567. - @echo "This command is intended for maintainers to use;"
  40568. - @echo "it deletes files that may require special tools to rebuild."
  40569. +info: info-recursive
  40570. +
  40571. +info-am:
  40572. +
  40573. +install-data-am:
  40574. +
  40575. +install-exec-am:
  40576. +
  40577. +install-info: install-info-recursive
  40578. +
  40579. +install-man:
  40580. +
  40581. +installcheck-am:
  40582. maintainer-clean: maintainer-clean-recursive
  40583. + -rm -f Makefile
  40584. +maintainer-clean-am: distclean-am maintainer-clean-generic
  40585. +
  40586. +mostlyclean: mostlyclean-recursive
  40587. +
  40588. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  40589. +
  40590. +pdf: pdf-recursive
  40591. +
  40592. +pdf-am:
  40593. +
  40594. +ps: ps-recursive
  40595. +
  40596. +ps-am:
  40597. +
  40598. +uninstall-am: uninstall-info-am
  40599. -.PHONY: install-data-recursive uninstall-data-recursive \
  40600. -install-exec-recursive uninstall-exec-recursive installdirs-recursive \
  40601. -uninstalldirs-recursive all-recursive check-recursive \
  40602. -installcheck-recursive info-recursive dvi-recursive \
  40603. -mostlyclean-recursive distclean-recursive clean-recursive \
  40604. -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
  40605. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  40606. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  40607. -install-exec install-data-am install-data install-am install \
  40608. -uninstall-am uninstall all-redirect all-am all installdirs-am \
  40609. -installdirs mostlyclean-generic distclean-generic clean-generic \
  40610. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  40611. +uninstall-info: uninstall-info-recursive
  40612. +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  40613. + clean clean-generic clean-libtool clean-recursive ctags \
  40614. + ctags-recursive distclean distclean-generic distclean-libtool \
  40615. + distclean-recursive distclean-tags distdir dvi dvi-am html \
  40616. + html-am info info-am install install-am install-data \
  40617. + install-data-am install-exec install-exec-am install-info \
  40618. + install-info-am install-man install-strip installcheck \
  40619. + installcheck-am installdirs installdirs-am maintainer-clean \
  40620. + maintainer-clean-generic maintainer-clean-recursive \
  40621. + mostlyclean mostlyclean-generic mostlyclean-libtool \
  40622. + mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  40623. + uninstall uninstall-am uninstall-info-am
  40624. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  40625. # Otherwise a system limit (for SysV at least) may be exceeded.